update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): Convert char-specs in value of
4         `{<-|->}original[^*]*' to characters and put reverse links.
5         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
6         for `{<-|->}original[^*]*'.
7
8 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
11
12 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * mule-charset.c (Qsystem_char_id): New variable.
15
16         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
17         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
18
19 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * chartab.c (Fput_char_attribute): When processing a reference of
22         a character, put into the end of the reversed reference of each
23         target character.
24
25 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * chartab.c (Q_same): Deleted.
28         (Q_same_of): Deleted.
29         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
30         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
31         for `{<-|->}same'.
32         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
33
34 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
35
36         * chartab.c (Q_vulgar): Deleted.
37         (Q_vulgar_of): Deleted.
38         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
39         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
40         for `{<-|->}vulgar'.
41         (syms_of_chartab): Don't define `{<-|->}vulgar'.
42
43 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * chartab.c (Fput_char_attribute): Convert char-specs in value of
46         `{<-|->}wrong[^*]*' to characters and put reverse links.
47         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
48         for `{<-|->}wrong[^*]*'.
49
50 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Q_vulgar): New variable.
53         (Q_vulgar_of): New variable.
54         (Fput_char_attribute): Convert char-specs in value of
55         `{->|<-}vulgar' to characters and put reverse links.
56         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
57         for `{->|<-}vulgar'.
58         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
59
60 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * text-coding.c (decode_add_er_char): Must to quote prefix string
63         as regexp.
64
65 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * mule-charset.c (put_char_ccs_code_point): Store characters of
68         =ucs whose code_points >= 0xF0000.
69
70 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
73         CHISE.
74         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
75         CHISE.
76         (complex_vars_of_mule_charset): Add new coded-charset
77         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
78         builtin characters over 0xEFFFF.
79
80         * chartab.c (syms_of_chartab): Don't define symbol
81         `system-char-id' in every case.
82
83         * char-ucs.h (Qsystem_char_id): New extern variable.
84         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
85
86 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * text-coding.c (char_encode_utf8): Try to use entity-references
89         for U-000F0000 ...  U-0010FFFF.
90
91 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
92
93         * text-coding.c (ER_BUF_SIZE): New macro.
94         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
95         `er_buf'.
96         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
97         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
98
99 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * chartab.c (find_char_feature_in_family): New function.
102         (Fchar_feature): Use `find_char_feature_in_family' with
103         `->identical', `<-subsumptive' and `<-denotational'.
104
105 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * text-coding.c (char_encode_as_entity_reference): Allow prefix
108         within 8 characters; fix infinite loop.
109
110 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * chartab.c (Q_same): New variable.
113         (Q_same_of): New variable.
114         (Fput_char_attribute): Convert char-specs in value of
115         `{->|<-}same' to characters and put reverse links.
116         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
117         for `{->|<-}same'.
118         (syms_of_chartab): Add new symbols `{->|<-}same'.
119
120 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
121
122         * chartab.c (Q_component): New variable.
123         (Q_component_of): Likewise.
124         (Fput_char_attribute): Convert char-specs in value of
125         `{->|<-}ideographic-component-forms' to characters and put reverse
126         links.
127         (syms_of_chartab): Add new symbols
128         `{->|<-}ideographic-component-forms'.
129
130 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
131
132         * chartab.c (Q_identical): New variable.
133         (Q_identical_from): New variable.
134         (Fchar_feature): Regard `->identical' as a feature to find
135         ancestors.
136         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
137         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
138         for `{->|<-}identical'.
139         (syms_of_chartab): Add new symbols `{->|<-}identical'.
140
141 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * char-ucs.h (encode_char_2): New inline function.
144         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
145
146 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * chartab.c (Fput_char_attribute): Convert char-specs to
149         characters in value of `ideographic-structure'.
150         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
151         for `{<-|->}simplified(@...)'.
152         (Fdefine_char): bTry to use predefined character's id.
153
154 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * fns.c (simplify_char_spec): Try to convert builtin chars to
157         defined chars.
158
159 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * chartab.c (Fput_char_attribute): Convert char-specs in value of
162         `<-simplified[^*]*' to characters and put reverse links.
163
164 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * chartab.c (Q_subsumptive): Renamed from Q_unified.
167         (Q_subsumptive_from): Renamed from Q_unified_from.
168         (Fchar_feature): Use `Q_subsumptive_from' instead of
169         `Q_unified_from'.
170         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
171         `Q_unified'.
172         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
173         `<-unified' to `<-subsumptive'.
174
175 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
178         inheritance itself; fix typo; stop recursive search if cyclic
179         inheritance is found.
180
181 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (Q_denotational): New variable.
184         (Q_denotational_from): New variable.
185         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
186         (put_char_attribute): New function.
187         (Fput_char_attribute): Use `put_char_attribute'; regard
188         `->denotational' and `<-denotational' as same as `->unified' and
189         `<-unified'.
190         (syms_of_chartab): Add new symbols `->denotational' and
191         `<-denotational'.
192
193 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
196         `Fget_char_attribute'.
197         (Fchar_variants): Likewise.
198         (get_char_table): Likewise.
199         (Fchar_feature): New function.
200         (put_char_composition): Use `Fchar_feature' instead of
201         `Fget_char_attribute'.
202         (Fput_char_attribute): Likewise; don't put the target character
203         into its `->unified' value.
204         (syms_of_chartab): Add new builtin function `char-feature'.
205
206 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
209         `Fget_char_attribute'.
210         (char_encode_utf8): Likewise.
211
212         * chartab.h: Add an EXFUN for `Fchar_feature'.
213
214 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * chartab.c (Vnext_defined_char_id): New variable.
217         (Fput_char_attribute): Accept characters in `->unified'.
218         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
219         new characters which are not related with builtin char-id ranges.
220         (vars_of_chartab): Add new variable `next-defined-char-id'.
221
222 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * chartab.c (Q_unified): New variable.
225         (Q_unified_from): New variable.
226         (Fput_char_attribute): Add code for `->unified'.
227         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
228         XEmacs CHISE.
229
230 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * mule-charset.c (decode_ccs_conversion): New function.
233         (decode_defined_char): Use `decode_ccs_conversion'.
234         (decode_builtin_char): Likewise.
235
236 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * char-ucs.h: Change some charset-ids of private coded-charsets.
239
240 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
243         (char_encode_as_entity_reference): Likewise.
244         (decode_coding_big5): Modify for `decode_defined_char' and
245         `DECODE_CHAR'.
246         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
247         avoid compiler warning.
248         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
249
250         * mule-charset.c (decode_defined_char): Add new argument
251         `without_inheritance'.
252         (Fdecode_char): Add new optional argument `without_inheritance'.
253         (Fdecode_builtin_char): Modify for `Fdecode_char'.
254
255         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
256         (simplify_char_spec): Likewise.
257
258         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
259         setting.
260
261         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
262         (map_char_table): Likewise.
263         (Fdefine_char): Use `Fdecode_char' without inheritance.
264         (Ffind_char): Modify for `Fdecode_char'.
265
266         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
267
268         * char-ucs.h (decode_defined_char): Add new argument
269         `without_inheritance'.
270         (DECODE_CHAR): Likewise.
271         (MAKE_CHAR): Modify for `DECODE_CHAR'.
272
273 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * chartab.c (Vchise_system_db_directory): New variable.
276         (vars_of_chartab): Add new variable `chise-system-db-directory'.
277
278 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * chartab.c: EXFUN `Fmount_char_attribute_table'.
281         (print_chartab_range): Don't define when `UTF2000' is defined.
282         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
283         `CHISE_DS_open'.
284
285 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
288         and optional argument `rehash' is specified, call
289         `open_chise_data_source_maybe' before
290         `chise_ds_foreach_char_feature_name' is called.
291
292 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (char_attribute_list_reset_map_func): New function
295         when HAVE_LIBCHISE is defined.
296         (Fchar_attribute_list): Add new optional argument `rehash' when
297         HAVE_LIBCHISE is defined.
298         (open_chise_data_source_maybe): Use "chise-db" instead of
299         "char-db".
300         (char_attribute_system_db_file): Likewise.
301         (Fload_char_attribute_table): Use
302         `chise_feature_foreach_char_with_value' instead of
303         `chise_char_feature_value_iterate'.
304
305 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * chartab.c (Vchise_db_directory): New variable.
308         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
309
310 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
313         instead of HAVE_CHISE to specify using with libchise.
314
315         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
316
317         * chartab.h: Don't use HAVE_CHISE_CLIENT.
318
319         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
320         defined or HAVE_LIBCHISE_LIBCHISE is defined.
321         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
322         is defined.
323         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
324         HAVE_CHISE to specify using with libchise.
325         (syms_of_chartab): Don't define symbol `system-char-id' when
326         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
327
328 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
331         specify CHISE DB support.
332         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
333         of `char_attribute_system_db_file' to check feature DB file.
334
335         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
336         HAVE_CHISE_CLIENT to specify CHISE DB support.
337
338         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
339         specify CHISE DB support.
340         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
341         not defined.
342         (Freset_char_attribute_table): Use `chise_feature_setup_db'
343         instead of `char_attribute_system_db_file' to check feature DB
344         file.
345
346 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
349         `HAVE_CHISE_CLIENT'.
350
351 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
354         (Fsave_charset_mapping_table): Don't use
355         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
356
357         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
358         (HAVE_LIBCHISE): New macro.
359
360         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
361
362         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
363         (Fsave_char_attribute_table): Don't use
364         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
365
366 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
369         defined.
370         (save_uint16_byte_table): Likewise.
371         (save_byte_table): Likewise.
372         (char_table_get_db): Use `chise_ds_load_char_feature_value'
373         instead of `chise_char_load_feature_value'.
374         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
375
376 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.h (struct Lisp_Char_Table): Delete member
379         `feature_table' if CHISE is defined.
380
381         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
382         (Fcopy_char_table): Likewise.
383         (char_table_open_db_maybe): Likewise.
384         (char_table_close_db_maybe): Likewise.
385         (char_table_get_db): Likewise.
386         (Fmount_char_attribute_table): Likewise.
387         (Fload_char_attribute_table): Likewise.
388
389 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * mule-charset.c (load_char_decoding_entry_maybe): Use
392         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
393         `chise_ccs_decode'.
394
395 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
398         instead of `chise_open_data_source'.
399         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
400         `chise_ds_close'.
401
402 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
403
404         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
405         instead of `chise_ds_open_feature_table'.
406         (char_table_close_db_maybe): Don't use `chise_ft_close'.
407
408 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * mule-charset.c (Fsave_charset_mapping_table): Use
411         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
412         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
413         `chise_ccs_sync' instead of `chise_ccst_close'.
414         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
415
416         * chartab.c (open_chise_data_source_maybe): Modify for
417         `chise_open_data_source'.
418         (char_table_open_db_maybe): Modify for
419         `chise_ds_open_feature_table'.
420
421 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
422
423         * mule-charset.c (load_char_decoding_entry_maybe): Use
424         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
425         `chise_ccst_close'.
426
427 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
428
429         * mule-charset.c (Fsave_charset_mapping_table): Use
430         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
431         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
432         `chise_dt_put_char' and `chise_dt_close'.
433         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
434         `chise_ccs_decode' and `chise_ccst_close' instead of
435         `chise_ds_open_decoding_table', `chise_dt_get_char' and
436         `chise_dt_close'.
437
438         * chartab.c (char_table_get_db): Use
439         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
440         (load_char_attribute_table_map_func): Modify for
441         `chise_char_feature_value_iterate'.
442         (Fload_char_attribute_table): Use
443         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
444
445 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
448
449 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
450
451         * chartab.c (put_char_table): Modify for inherited coded-charsets
452         in XEmacs CHISE.
453
454 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
455
456         * chartab.c (Fput_char_table_map_function): Fixed.
457         (word_boundary_p): Don't check charset in XEmacs CHISE.
458
459 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
460
461         * mule-charset.c (Fsave_charset_mapping_table): Use
462         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
463         instead of `chise_open_decoding_table'; refer
464         `default_chise_data_source'; use `chise_dt_close' instead of
465         `chise_close_decoding_table'.
466         (load_char_decoding_entry_maybe): Likewise.
467
468         * chartab.c (default_chise_data_source): New variable when `CHISE'
469         is defined.
470         (Fcopy_char_table): `ct->ds' is deleted.
471         (open_chise_data_source_maybe): New function.
472         (Fclose_char_data_source): New function.
473         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
474         use `chise_ds_open_feature_table' instead of
475         `chise_open_feature_table'.
476         (char_table_close_db_maybe): Use `chise_ft_close' instead of
477         `chise_close_feature_table'; `cit->ds' is deleted.
478         (syms_of_chartab): Add new builtin function
479         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
480
481         * chartab.h (default_chise_data_source): New extern variable.
482         (open_chise_data_source_maybe): New prototype.
483         (struct Lisp_Char_Table): Delete `ds'.
484
485 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
486
487         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
488         `CHISE' is defined.
489
490 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
493         not defined; add code for non-libchise setting.
494         (char_table_close_db_maybe): Likewise.
495         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
496         defined.
497         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
498         even if `CHISE' is not defined.
499         (Freset_char_attribute_table): Likewise.
500         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
501         `char_table_close_db_maybe' even if `CHISE' is not defined; use
502         `char_table_get_db'.
503         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
504         `char_table_close_db_maybe' even if `CHISE' is not defined.
505
506 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
507
508         * chartab.c (char_table_open_db_maybe): New function.
509         (char_table_close_db_maybe): New function.
510         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
511         (Freset_char_attribute_table): Likewise.
512         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
513         `char_table_close_db_maybe'.
514         (Fload_char_attribute_table): Likewise.
515
516 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
517
518         * chartab.c: Don't include <chise.h> because it is included in
519         chartab.h.
520         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
521         defined.
522         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
523         `CHISE' is defined.
524         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
525         `CHISE' is defined.
526         (Fclose_char_attribute_table): Close `ct->feature_table' and
527         `ct->ds' when `CHISE' is defined.
528         (Freset_char_attribute_table): Likewise.
529         (load_char_attribute_maybe): Use `cit->ds' and
530         `cit->feature_table' when `CHISE' is defined.
531         (Fload_char_attribute_table): Likewise.
532
533         * chartab.h: Include <chise.h> when `CHISE' is defined.
534         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
535         when `CHISE' is defined.
536
537 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
538
539         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
540         is defined.
541         (char_table_description): Likewise.
542         (Fmake_char_table): Likewise.
543         (Fcopy_char_table): Likewise.
544         (Fmount_char_attribute_table): Likewise.
545         (Fclose_char_attribute_table): Likewise.
546         (Freset_char_attribute_table): Likewise.
547         (load_char_attribute_maybe): Likewise.
548         (Fload_char_attribute_table): Likewise.
549
550         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
551         defined.
552
553 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * chartab.c (load_char_attribute_table_map_func): New function
556         when CHISE is defined.
557         (Qload_char_attribute_table_map_function): Don't define when CHISE
558         is defined.
559         (Fload_char_attribute_table_map_function): Likewise.
560         (Fload_char_attribute_table): Use libchise when `CHISE' is
561         defined.
562         (syms_of_chartab): Don't define
563         `load-char-attribute-table-map-function' when CHISE is defined.
564
565 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
566
567         * chartab.c: Include <chise.h> when `CHISE' is defined.
568         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
569
570 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * mule-charset.c (charset_code_point): Fix problem when searching
573         in mother CCS fails with `defined_only' mode.
574
575 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
576
577         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
578         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
579         (put_char_composition): Likewise.
580         (Fput_char_attribute): Likewise.
581         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
582
583 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
584
585         * chartab.c (Q_ucs): Deleted.
586         (Fput_char_attribute): Don't refer `->ucs'.
587         (Fdefine_char): Likewise.
588         (Ffind_char): Likewise.
589         (syms_of_chartab): Delete `->ucs'.
590
591 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
592
593         * mule-charset.c (Qmap_cns11643_2): Renamed from
594         `Qchinese_cns11643_2'.
595         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
596         `chinese-cns11643-2'.
597         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
598         `=cns11643-2'.
599
600 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
601
602         * mule-charset.c (Qmap_cns11643_1): Renamed from
603         `Qchinese_cns11643_1'.
604         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
605         `chinese-cns11643-1'.
606         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
607         `=cns11643-1'.
608
609 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
610
611         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
612         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
613         `chinese-gb12345'.
614         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
615         `=gb12345'.
616
617 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
618
619         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
620         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
621         `chinese-gb2312'.
622         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
623         `=gb2312'.
624
625 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
628         (syms_of_mule_charset): Add new symbol `=big5' instead of
629         `chinese-big5'.
630         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
631
632 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
635         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
636         `korean-ksc5601'.
637         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
638         `=ks-x1001'.
639
640 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
641
642         * mule-charset.c (Qmap_jis_x0212): Renamed from
643         `Qjapanese_jisx0212'.
644         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
645         `japanese-jisx0212'.
646         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
647         `=jis-x0212'.
648
649 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
650
651         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
652         `Qjapanese_jisx0208'.
653         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
654         of `japanese-jisx0208'.
655         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
656         `=jis-x0208-1983'.
657
658 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
661         `Qjapanese_jisx0208_1978'.
662         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
663         of `japanese-jisx0208-1978'.
664         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
665         `=jis-x0208-1978'.
666
667 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
668
669         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
670         only for XEmacs CHISE.
671
672 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
673
674         * char-ucs.h: Compact non-ISO-IR charset-ids.
675         (LEADING_BYTE_UCS): Changed to -177.
676         (LEADING_BYTE_CONTROL_1): Changed to -77.
677         (LEADING_BYTE_UCS_BMP): Changed to -176.
678         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
679
680 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * mule-charset.c (Qiso_ir): New variable.
683         (Fmake_charset): Recognise new property `iso-ir'.
684         (syms_of_mule_charset): Add new symbol `iso-ir'.
685
686 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
687
688         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
689         n to -n; charset-id of non ISO-IR sets are changed to positive
690         numbers.
691
692 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
693
694         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
695         for &MCS-XXXXXXXX; values.
696
697 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
698
699         * mule.c (Vxemacs_chise_version): Renamed from
700         `Vutf_2000_version'.
701         (vars_of_mule): Add new variable `xemacs-chise-version'; define
702         `utf-2000-version' as an alias for `xemacs-chise-version'.
703
704 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
705
706         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
707         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
708         defined.
709
710         * config.h.in (CHISE): New macro.
711
712 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
713
714         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
715         of `ucs'.
716         (Qmap_ucs): New variable.
717         (syms_of_mule_charset): Add new symbol `=ucs'.
718         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
719
720         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
721         (simplify_char_spec): Likewise.
722
723         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
724
725         * char-ucs.h (Qmap_ucs): New extern variable.
726
727 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
730         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
731         don't define it when UTF2000 is not defined.
732         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
733         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
734         when UTF2000 is not defined.
735         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
736         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
737
738 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
741
742         * mule-charset.c (Vcharset_ucs_gb): Deleted.
743         (Qucs_gb): Deleted.
744         (syms_of_mule_charset): Delete `ucs-gb'.
745         (complex_vars_of_mule_charset): Likewise.
746
747 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
748
749         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
750
751         * mule-charset.c (Vcharset_ucs_cns): Deleted.
752         (Qucs_cns): Deleted.
753         (syms_of_mule_charset): Delete `ucs-cns'.
754         (complex_vars_of_mule_charset): Likewise.
755
756 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
759
760         * mule-charset.c (Vcharset_ucs_jis): Deleted.
761         (Qucs_jis): Deleted.
762         (syms_of_mule_charset): Delete `ucs-jis'.
763         (complex_vars_of_mule_charset): Likewise.
764
765 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
766
767         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
768
769         * mule-charset.c (Vcharset_ucs_ks): Deleted.
770         (Qucs_ks): Deleted.
771         (syms_of_mule_charset): Delete `ucs-ks'.
772         (complex_vars_of_mule_charset): Likewise.
773
774 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
775
776         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
777         (Qideograph_daikanwa_2): Deleted.
778         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
779         (complex_vars_of_mule_charset): Likewise.
780
781         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
782         (LEADING_BYTE_DAIKANWA_1): Deleted.
783         (LEADING_BYTE_DAIKANWA_2): Deleted.
784         (MIN_CHAR_DAIKANWA): Deleted.
785         (MAX_CHAR_DAIKANWA): Deleted.
786
787 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
788
789         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
790         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
791         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
792
793         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
794         (Vcharset_ideograph_daikanwa): Deleted.
795         (Qideograph_hanziku_{1..12}): Deleted.
796         (Qideograph_daikanwa): Deleted.
797         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
798         Vcharset_ideograph_daikanwa.
799         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
800         `ideograph-hanziku-{1..12}'.
801         (complex_vars_of_mule_charset): Likewise.
802
803 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
804
805         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
806
807         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
808         (Qideograph_gt_pj_{1..11}): Deleted.
809         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
810         (complex_vars_of_mule_charset): Likewise.
811
812 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * mule-charset.c (Vcharset_ucs_big5): Deleted.
815         (Vcharset_ideograph_gt): Deleted.
816         (Qucs_big5): Deleted.
817         (Qideograph_gt): Deleted.
818         (syms_of_mule_charset): Delete symbol `ucs-big5' and
819         `ideograph-gt'.
820         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
821         and `ideograph-gt'.
822
823         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
824         (LEADING_BYTE_GT): Deleted.
825         (MIN_CHAR_GT): Deleted.
826         (MAX_CHAR_GT): Deleted.
827
828 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
831
832 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
833
834         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
835         (save_uint16_byte_table): Likewise.
836         (save_byte_table): Likewise; convert values by it.
837         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
838         for `ideographic-structure'.
839         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
840         as the filter for `ideographic-structure'.
841
842 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
843
844         * chartab.c (put_char_composition): New function.
845         (Fput_char_attribute): Use `put_char_composition'; use
846         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
847
848         * fns.c (simplify_char_spec): New function.
849         (char_ref_simplify_spec): New function.
850         (Fchar_refs_simplify_char_specs): New function.
851         (syms_of_fns): Add new builtin function
852         `char-refs-simplify-char-specs'.
853
854 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
855
856         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
857         (Qideograph_cbeta): Deleted.
858         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
859         (complex_vars_of_mule_charset): Likewise.
860
861         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
862         (MIN_CHAR_CBETA): Comment out.
863         (MAX_CHAR_CBETA): Likewise.
864
865 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
866
867         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
868         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
869         CHISE client feature.
870
871 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
872
873         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
874
875 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
876
877         * mule-charset.c (charset_lookup_description_1): Use
878         `NUM_LEADING_BYTES' in UTF-2000.
879
880 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
881
882         * char-ucs.h (GC_CHARSETP): Deleted.
883
884 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * char-ucs.h (MAX_CHAR_GT): Updated.
887
888 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
889
890         * text-coding.c: Sync with XEmacs 21.4.10.
891
892 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
893
894         * mule-charset.c (Vcharset_china3_jef): Deleted.
895         (Qchina3_jef): Deleted.
896         (syms_of_mule_charset): Don't define `china3-jef'.
897         (complex_vars_of_mule_charset): Likewise.
898
899         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
900         (MIN_CHAR_CHINA3_JEF): Comment out.
901         (MAX_CHAR_CHINA3_JEF): Comment out.
902
903 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * mule-charset.c (Vcharset_ucs_gb): New variable.
906         (Qucs_gb): New variable.
907         (syms_of_mule_charset): Add new symbol `ucs-gb'.
908         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
909
910         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
911
912 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
913
914         * mule-charset.c (charset_code_point): if a coded-charset has a
915         final-byte, don't inherit the builtin range of the mother CCS.
916
917 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * mule-charset.c (charset_code_point): Fix problem about
920         inheritance.
921
922 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
923
924         * mule-charset.c (decode_builtin_char): Reorganized.
925
926 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * text-coding.c (char_encode_as_entity_reference): Modify for
929         `charset_code_point'.
930         (char_encode_shift_jis): Likewise.
931         (char_encode_big5): Likewise.
932         (char_encode_utf8): Likewise.
933         (char_encode_iso2022): Likewise.
934
935         * mule-charset.c (charset_code_point): Add new argument
936         `defined_only'.
937         (Fencode_char): Add new optional argument `defined_only'.
938
939         * chartab.c (put_char_table): Modify for `charset_code_point'.
940
941         * char-ucs.h (charset_code_point): Add new argument
942         `defined_only'.
943         (encode_char_1): Modify for `charset_code_point'.
944
945 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
948         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
949
950 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
951
952         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
953         (Qjis_x0208): Likewise.
954         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
955         XCHARSET_FINAL(charset).
956         (charset_code_point): Modify condition for final-byte based
957         builtin-chars.
958         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
959         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
960         in UTF-2000; specify `=jis-x0208' as the mother of
961         `japanese-jisx0208-1978', `japanese-jisx0208' and
962         `japanese-jisx0208-1990' in UTF-2000.
963
964 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
965
966         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
967
968 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * text-coding.c (decode_coding_utf16): Support UTF-16.
971         (char_encode_utf16): Fixed.
972
973 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
974
975         * text-coding.c (Qutf16): New variable in MULE.
976         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
977         (Fcoding_system_type): Add `utf-16' in MULE.
978         (struct detection_state): Add a structure for utf16 in MULE.
979         (detect_coding_type): Setup st->utf16.mask in MULE.
980         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
981         MULE.
982         (reset_encoding_stream): Use `char_encode_utf16' and
983         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
984         (detect_coding_utf16): New function [incomplete].
985         (decode_coding_utf16): New function [support only UCS-2].
986         (char_encode_utf16): New function.
987         (char_finish_utf16): New function.
988         (syms_of_file_coding): Add new symbol `utf-16'; setup
989         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
990
991         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
992         UTF-2000.
993         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
994         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
995
996 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
997
998         * chartab.c (put_char_table): When a charset is specified as a
999         range in UTF-2000, don't support builtin characters.
1000
1001 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1002
1003         * mule-charset.c (decode_defined_char): Don't refer external
1004         database if Qunbound or Qnil are found.
1005         (Fsave_charset_mapping_table): Don't define it if
1006         HAVE_CHISE_CLIENT is not defined.
1007         (Freset_charset_mapping_table): New function.
1008         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1009         found in external database.
1010         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1011         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1012         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1013
1014 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1015
1016         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1017         not.
1018
1019 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1020
1021         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1022         Q_lowercase, Q_uppercase in UTF-2000.
1023
1024         * chartab.c (get_char_table): Add special code for the standard
1025         case table to use character attribute `->downcase' and
1026         `->uppercase' for case operations in UTF-2000.
1027
1028         * casetab.c (Qflippedcase): New variable in UTF-2000.
1029         (Q_lowercase): Likewise.
1030         (Q_uppercase): Likewise.
1031         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1032         and `->uppercase' in UTF-2000.
1033         (complex_vars_of_casetab): Assign attribute name `downcase' to
1034         downcase and CANON table of Vstandard_case_table in UTF-2000;
1035         assign attribute name `flippedcase' to upcase and EQV table of
1036         Vstandard_case_table in UTF-2000.
1037
1038 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * text-coding.c (decode_add_er_char): Support isolated-chars.
1041         (char_encode_as_entity_reference): Likewise.
1042
1043 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * emacs.c (Vutf_2000_lisp_directory): New variable.
1046         (Vconfigure_utf_2000_lisp_directory): Likewise.
1047         (complex_vars_of_emacs): Add new variable
1048         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1049
1050 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * char-ucs.h (DECODE_CHAR): Delete special code for
1053         `chinese-big5-1' and `chinese-big5-2'.
1054
1055         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1056         (Qbig5_2): Likewise.
1057         (decode_defined_char): Support CONVERSION_BIG5_1 and
1058         CONVERSION_BIG5_2.
1059         (decode_builtin_char): Likewise.
1060         (charset_code_point): Likewise.
1061         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1062         'conversion in UTF-2000.
1063         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1064         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1065         `chinese-big5-2' as children of `chinese-big5'.
1066
1067         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1068         (CONVERSION_BIG5_2): New macro.
1069
1070 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1071
1072         * text-coding.c (char_encode_big5): Support entity-reference.
1073
1074 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1075
1076         * text-coding.c (char_encode_as_entity_reference): New function.
1077         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1078
1079 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1080
1081         * text-coding.c (decode_coding_big5): Support entity-reference
1082         decoding feature.
1083
1084 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1085
1086         * text-coding.c (allocate_coding_system): Initialize initial
1087         charsets for CODESYS_UTF8.
1088         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1089         charset-g2 for CODESYS_UTF8.
1090         (decode_coding_utf8): Use charset-g0.
1091         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1092         to force variants to map to UCS.
1093
1094 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * text-coding.c (Qutf_8_mcs): New variable.
1097         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1098         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1099         instead of `utf-8' in UTF-2000.
1100
1101 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1104         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1105         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1106         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1107         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1108         CONVERSION_96x96x96x96 are introduced.
1109         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1110         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1111         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1112
1113         * char-ucs.h (CONVERSION_94): New macro.
1114         (CONVERSION_96): New macro.
1115         (CONVERSION_94x94): New macro.
1116         (CONVERSION_96x96): New macro.
1117         (CONVERSION_94x94x94): New macro.
1118         (CONVERSION_96x96x96): New macro.
1119         (CONVERSION_94x94x94x60): New macro.
1120         (CONVERSION_94x94x94x94): New macro.
1121         (CONVERSION_96x96x96x96): New macro.
1122
1123 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1124
1125         * chartab.c (Vcharacter_variant_table): Deleted.
1126         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1127         of `Vcharacter_variant_table'.
1128         (Fput_char_attribute): Likewise.
1129         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1130         (complex_vars_of_chartab): Likewise.
1131
1132 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1135
1136         * fns.c (Qideographic_structure): New variable.
1137         (Qkeyword_char): New variable.
1138         (ids_format_unit): New function.
1139         (Fideographic_structure_to_ids): New function.
1140         (syms_of_fns): Add new symbols `ideographic-structure' and
1141         `:char'; add new builtin function `ideographic-structure-to-ids'.
1142
1143         * data.c (Fchar_ref_p): New function.
1144         (syms_of_data): Add new builtin function `char-ref-p'.
1145
1146         * chartab.h: Add an EXFUN for `Ffind_char'.
1147
1148 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1149
1150         * text-coding.c (Vcharacter_composition_table): Deleted.
1151         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1152         in every UTF-2000.
1153
1154         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1155         UTF-2000.
1156         (Vcharacter_composition_table): Deleted.
1157         (Fget_composite_char): Use the implementation for external-DB
1158         support in every UTF-2000.
1159         (Fput_char_attribute): Likewise.
1160         (char_attribute_system_db_file): Don't define if external-DB
1161         feature is not available.
1162         (Fsave_char_attribute_table): Likewise.
1163         (Fmount_char_attribute_table): Likewise.
1164         (Fclose_char_attribute_table): Likewise.
1165         (Freset_char_attribute_table): Likewise.
1166         (Fload_char_attribute_table): Likewise.
1167         (syms_of_chartab): Don't define `save-char-attribute-table',
1168         `mount-char-attribute-table', `reset-char-attribute-table',
1169         `close-char-attribute-table' and `load-char-attribute-table' if
1170         external-DB feature is not available.
1171         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1172
1173 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * text-coding.c (Qcomposition): Add extern if external-DB feature
1176         is supported.
1177         (Vcharacter_composition_table): Don't add extern if external-DB
1178         feature is supported.
1179         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1180         character composition rule if external-DB feature is supported.
1181
1182         * chartab.c (Vcharacter_composition_table): Don't define if
1183         external-DB feature is supported.
1184         (Qcomposition): New variable.
1185         (Fget_composite_char): New implementation for external-DB support.
1186         (Fput_char_attribute): Use `composition' property of each
1187         character instead of `Vcharacter_composition_table' to store
1188         character-composition rules if external-DB feature is supported.
1189         (syms_of_chartab): Add new symbol `composition'.
1190         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1191         external-DB feature is supported.
1192
1193 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1194
1195         * chartab.c (Vchar_db_stingy_mode): New variable.
1196         (load_char_attribute_maybe): Close database if
1197         Vchar_db_stingy_mode is not NIL.
1198         (Fload_char_attribute_table_map_function): Use
1199         `get_char_id_table_0' instead of `get_char_id_table'.
1200         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1201
1202         * chartab.h (get_char_id_table_0): New inline function.
1203         (get_char_id_table): Use `get_char_id_table_0'.
1204
1205 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1208         and `COMPOSE_ADD_CHAR'.
1209         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1210
1211 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1212
1213         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1214         instead of `DECODE_ADD_UCS_CHAR'.
1215         (COMPOSE_ADD_CHAR): Likewise.
1216
1217 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * text-coding.c (decode_flush_er_chars): New inline function.
1220         (decode_add_er_char): New function.
1221         (decode_coding_utf8): Use `decode_flush_er_chars' and
1222         `decode_add_er_char'.
1223
1224 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1225
1226         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1227         done before `decode_output_utf8_partial_char'.
1228
1229         * mule-charset.c (complex_vars_of_mule_charset): Specify
1230         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1231         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1232
1233 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234
1235         * mule-charset.c (decode_defined_char): New function; search
1236         mother.
1237         (decode_builtin_char): Don't search mother if
1238         XCHARSET_MAX_CODE(charset) == 0.
1239         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1240         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1241         (Fdecode_char): Use `decode_defined_char' instead of
1242         `DECODE_DEFINED_CHAR'.
1243         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1244         mother of `Vcharset_ucs_jis'.
1245
1246         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1247         instead of `DECODE_DEFINED_CHAR'.
1248
1249         * char-ucs.h (decode_defined_char): Renamed from
1250         `DECODE_DEFINED_CHAR'; changed to normal function.
1251         (DECODE_CHAR): Use `decode_defined_char' instead of
1252         `DECODE_DEFINED_CHAR'.
1253
1254         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1255
1256 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1259
1260         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1261         variable.
1262         (Quse_entity_reference): New variable.
1263         (Qd): New variable.
1264         (Qx): New variable.
1265         (QX): New variable.
1266         (coding_system_description): Add description for
1267         `ccs_priority_list'.
1268         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1269         (allocate_coding_system): Initialize `ccs_priority_list' in
1270         UTF-2000.
1271         (Fmake_coding_system): Add description about
1272         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1273         (codesys).
1274         (Fcoding_system_property): Accept `disable-composition' and
1275         `use-entity-reference' in UTF-2000.
1276         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1277         in UTF-2000.
1278         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1279         (decode_coding_utf8): Decode entity-reference if
1280         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1281         (char_encode_utf8): Encode non-Unicode characters as
1282         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1283         (str->codesys).
1284         (syms_of_file_coding): Add new symbols `use-entity-reference',
1285         `d', `x', `X'.
1286         (vars_of_file_coding): Add new variable
1287         `coded-charset-entity-reference-alist'.
1288         (complex_vars_of_file_coding): Declare `disable-composition' and
1289         `use-entity-reference' to be coding-system-properties in UTF-2000.
1290
1291         * file-coding.h (struct Lisp_Coding_System): Add new member
1292         `use_entity_reference' and `ccs_priority_list'.
1293         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1294         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1295         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1296
1297 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1298
1299         * chartab.c (save_uint8_byte_table): Don't clear the table.
1300         (save_uint16_byte_table): Likewise.
1301         (save_byte_table): Likewise.
1302         (Fmount_char_attribute_table): New function.
1303         (syms_of_chartab): Add new builtin function
1304         `mount-char-attribute-table'.
1305
1306 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1309         "w+" mode.
1310         (load_char_decoding_entry_maybe): Open database as read-only mode.
1311
1312         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1313         open database as "w+" mode.
1314         (load_char_attribute_maybe): Open database as read-only mode.
1315         (Fload_char_attribute_table): Likewise.
1316
1317 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1320         (char_table_description): Delete member `db_file'.
1321         (Fmake_char_table): Don't refer `ct->db_file'.
1322         (Fcopy_char_table): Likewise.
1323         (Fsave_char_attribute_table): Likewise.
1324         (Fclose_char_attribute_table): Likewise.
1325         (Freset_char_attribute_table): Likewise.
1326         (load_char_attribute_maybe): Likewise.
1327         (Fload_char_attribute_table): Likewise.
1328
1329         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1330
1331 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1332
1333         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1334         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1335         `ct->db' is living.
1336         (load_char_attribute_maybe): Likewise.
1337         (Fload_char_attribute_table): Likewise.
1338
1339 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1340
1341         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1342         `ct->db_file' unconditionally.
1343
1344 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1345
1346         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1347         UTF-2000.
1348         (char_table_description): Add description for `db_file' and `db'
1349         in UTF-2000.
1350         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1351         UTF-2000.
1352         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1353         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1354         (Fclose_char_attribute_table): New function.
1355         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1356         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1357         and `cit->db'.
1358         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1359         (syms_of_chartab): Add new builtin function
1360         `Fclose_char_attribute_table'.
1361
1362 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1365         `db' in UTF-2000.
1366         (load_char_attribute_maybe): Change interface.
1367         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1368
1369 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1370
1371         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1372
1373 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1376         instead of `DECODE_CHAR' for mother; don't use special code for
1377         chinese-big5 to use code space of chinese-big5-1 and
1378         chinese-big5-2.
1379         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1380         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1381
1382         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1383         (MAX_CHAR_BIG5_CDP): Revival.
1384
1385 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1388         the XLFD registry-encoding name of `chinese-big5'.
1389
1390 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1391
1392         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1393         (Qchinese_big5_cdp): Deleted.
1394         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1395         (complex_vars_of_mule_charset): Delete coded-charset
1396         `chinese-big5-cdp'.
1397
1398         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1399         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1400         `CHARSET_ID_OFFSET - n' for private CCS.
1401         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1402         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1403         of `MIN_LEADING_BYTE'.
1404         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1405         `(CHARSET_ID_OFFSET - 97)'.
1406         (MIN_CHAR_BIG5_CDP): Deleted.
1407         (MAX_CHAR_BIG5_CDP): Deleted.
1408
1409 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1412
1413 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1416         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1417         chartab.c].
1418
1419         * chartab.c (Vutf_2000_version): Moved to mule.c.
1420         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1421
1422 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1423
1424         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1425         when HAVE_CHISE_CLIENT is not defined.
1426
1427         * mule.c (vars_of_mule): Provide feature `chise' when
1428         HAVE_CHISE_CLIENT is defined.
1429
1430 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * config.h.in (UTF2000): Add comment.
1433         (HAVE_CHISE_CLIENT): New macro.
1434
1435 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1436
1437         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1438         CONSP.
1439         (Fput_char_attribute): Likewise.
1440         (char_attribute_system_db_file): Encode file-name of attribute.
1441         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1442         the initial value.
1443
1444 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1447         (Fsave_charset_mapping_table): Use
1448         `char_attribute_system_db_file'.
1449         (load_char_decoding_entry_maybe): Likewise.
1450
1451         * chartab.h (Qsystem_char_id): New external variable.
1452         (char_attribute_system_db_file): New prototype.
1453
1454         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1455         (char_attribute_system_db_file): New function.
1456         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1457         (Freset_char_attribute_table): Likewise.
1458         (load_char_attribute_maybe): Likewise.
1459         (Fload_char_attribute_table): Likewise.
1460         (syms_of_chartab): Add new symbol `system-char-id'.
1461
1462 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1465         `XCHARSET_GRAPHIC(ccs)'.
1466
1467 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1470
1471 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1472
1473         * chartab.c (Q_ucs_variants): New variable.
1474         (syms_of_chartab): Add new symbol `->ucs-variants'.
1475         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1476         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1477         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1478
1479         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1480
1481         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1482         `HAVE_DATABASE' is defined.
1483         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1484         `HAVE_DATABASE' is defined.
1485
1486 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1487
1488         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1489         attribute-table.
1490         (Freset_char_attribute_table): New function.
1491         (syms_of_chartab): Add new builtin function
1492         `reset-char-attribute-table'.
1493
1494 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * chartab.c (load_char_attribute_maybe): Don't make directories.
1497
1498 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1499
1500         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1501
1502         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1503         for decoding-table.
1504
1505 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * mule-charset.c (Fsave_charset_mapping_table): Use
1508         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1509
1510         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1511         instead of `XCHARSET_CHARS'.
1512
1513 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1514
1515         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1516         (XCHARSET_BYTE_SIZE): Likewise.
1517
1518         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1519         mule-charset.c].
1520         (XCHARSET_BYTE_SIZE): Likewise.
1521
1522 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1523
1524         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1525         data-directory to store database.
1526         (Fsave_char_attribute_table): Likewise.
1527         (load_char_attribute_maybe): Likewise.
1528         (Fload_char_attribute_table): Likewise.
1529
1530 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1531
1532         * mule-charset.c (Fsave_charset_mapping_table): New function.
1533         (syms_of_mule_charset): Add new builtin function
1534         `save-charset-mapping-table'.
1535
1536 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537
1538         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1539         (get_ccs_octet_table): New inline function.
1540         (put_ccs_octet_table): Likewise.
1541         (decoding_table_put_char): Use `get_ccs_octet_table' and
1542         `put_ccs_octet_table'.
1543         (decoding_table_remove_char): Use `decoding_table_put_char'.
1544         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1545
1546         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1547         into encoding_table.
1548         (make_charset): Use Qunbound instead Qnil as initial value of
1549         decoding_table.
1550
1551 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1552
1553         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1554         element is Qunloaded.
1555         (map_over_uint16_byte_table): Likewise.
1556         (map_over_byte_table): Likewise.
1557         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1558         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1559         database support, load encoding-table of the specified
1560         coded-charset if it is not loaded yet.
1561         (save_uint8_byte_table): New function of UTF-2000 with external
1562         database support.
1563         (save_uint16_byte_table): Likewise.
1564         (save_byte_table): Likewise.
1565         (Fput_char_attribute): Don't store value into external database
1566         even if the external database feature is supported in UTF-2000;
1567         set `attribute' as name of char-table if the external database
1568         feature is supported.
1569         (Fsave_char_attribute_table): New function in UTF-2000.
1570         (syms_of_chartab): Add new builtin function
1571         `save-char-attribute-table' in UTF-2000.
1572
1573 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1574
1575         * chartab.c (char_attribute_table_to_put): New variable in
1576         UTF-2000.
1577         (Qput_char_table_map_function): Likewise.
1578         (value_to_put): Likewise.
1579         (Fput_char_table_map_function): New function in UTF-2000.
1580         (put_char_table): Use `Fmap_char_attribute' for
1581         CHARTAB_RANGE_CHARSET in UTF-2000.
1582         (Fput_char_attribute): Store symbol instead of string in
1583         `XCHAR_TABLE_NAME (table)'.
1584         (load_char_attribute_maybe): Likewise.
1585         (syms_of_chartab): Add new symbol/function
1586         `put-char-table-map-function'.
1587
1588 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1589
1590         * database.h: Add new EXFUN for `Fmap_database'.
1591
1592         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1593         (syms_of_database): Likewise.
1594
1595         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1596         UTF-2000.
1597         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1598         (XCHAR_TABLE_UNLOADED): Likewise.
1599
1600         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1601         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1602         HAVE_DATABASE is defined.
1603         (char_attribute_table_to_load): New variable of UTF-2000 with
1604         external database support.
1605         (Qload_char_attribute_table_map_function): Likewise.
1606         (Fload_char_attribute_table_map_function): New function of
1607         UTF-2000 with external database support.
1608         (Fload_char_attribute_table): New function of UTF-2000.
1609         (Fmap_char_attribute): Call Fload_char_attribute_table if
1610         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1611         (syms_of_chartab): Add new symbol and function
1612         `load-char-attribute-table-map-function' in UTF-2000 with external
1613         database support; add new function `load-char-attribute-table' in
1614         UTF-2000.
1615
1616 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1617
1618         * chartab.h (load_char_attribute_maybe): New prototype for
1619         UTF-2000 with DATABASE support.
1620         (get_char_id_table): Use `load_char_attribute_maybe' if
1621         HAVE_DATABASE is defined.
1622
1623         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1624         with DATABASE support.
1625
1626 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1627
1628         * chartab.c (Fput_char_attribute): Use S-expression as key of
1629         external database.
1630
1631         * chartab.h (get_char_id_table): Use S-expression as key of
1632         external database.
1633
1634 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635
1636         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1637         if an element is not loaded, load the corresponding attributes
1638         from an external database.
1639         (map_over_uint16_byte_table): Likewise.
1640         (map_over_byte_table): Likewise.
1641         (map_char_table): Modify for `map_over_uint8_byte_table',
1642         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1643         element is not loaded, load the corresponding attributes from an
1644         external database.
1645         (Fput_char_attribute): Change initial values to Qunloaded.
1646
1647         * chartab.h (get_char_id_table): If a character attribute is not
1648         loaded and the attribute value is not found in an external
1649         database, store Qunbound as the attribute value.
1650
1651 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * chartab.c (BT_UINT8_unloaded): New macro.
1654         (UINT8_VALUE_P): Accept Qunloaded.
1655         (UINT8_ENCODE): Likewise.
1656         (UINT8_DECODE): Likewise.
1657         (BT_UINT16_unloaded): New macro.
1658         (UINT16_VALUE_P): Accept Qunloaded.
1659         (UINT16_ENCODE): Likewise.
1660         (UINT16_DECODE): Likewise.
1661         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1662         BT_UINT16_unloaded.
1663         (mark_char_table): Mark `ct->name' in UTF-2000.
1664         (char_table_description): Add `name' in UTF-2000.
1665         (Fmake_char_table): Initialize `ct->name'.
1666         (Fcopy_char_table): Copy `ct->name'.
1667         (Fput_char_attribute): Store value into an external database if
1668         HAVE_DATABASE is defined.
1669
1670         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1671         UTF-2000.
1672         (CHAR_TABLE_NAME): New macro in UTF-2000.
1673         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1674         (get_char_id_table): Try to read an external database if Qunloaded
1675         is stored in a table.
1676
1677         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1678         Qunloaded.
1679
1680 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1681
1682         * database.h: Add EXFUN definitions for Fopen_database,
1683         Fput_database, Fget_database and Fclose_database.
1684
1685         * data.c (Qunloaded): New variable in UTF-2000.
1686
1687         * lisp.h (Qunloaded): New variable in UTF-2000.
1688
1689 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * mule-charset.c (put_char_ccs_code_point): Modify for
1692         `decoding_table_remove_char' and `decoding_table_put_char'.
1693         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1694
1695         * char-ucs.h (decoding_table_remove_char): Change arguments to
1696         hide decoding_table vector.
1697         (decoding_table_put_char): Likewise.
1698
1699 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * mule-charset.c (decoding_table_remove_char): Moved to
1702         char-ucs.h.
1703         (decoding_table_put_char): Likewise.
1704
1705         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1706         from mule-charset.c].
1707         (decoding_table_remove_char): New inline function [moved from
1708         mule-charset.c].
1709         (decoding_table_put_char): Likewise.
1710
1711 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1712
1713         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1714         extension.
1715
1716 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1717
1718         * mule-charset.c (decode_builtin_char): Support mother charsets.
1719
1720 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1721
1722         * mule-charset.c (Q94x94x60): New variable.
1723         (charset_code_point): Support conversion `94x94x60'.
1724         (Fmake_charset): Likewise.
1725         (syms_of_mule_charset): Add new symbol `94x94x60'.
1726
1727         * char-ucs.h (CONVERSION_94x94x60): New macro.
1728
1729 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1730
1731         * mule-charset.c (charset_code_point): Unify code about
1732         `code-offset'.
1733
1734 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1735
1736         * mule-charset.c (charset_code_point): Merge code about builtin
1737         characters into code about mother charsets; don't use
1738         `range_charset_code_point'.
1739         (range_charset_code_point): Deleted.
1740
1741 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * mule-charset.c (Qcode_offset): New variable.
1744         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1745         `max-code'; accept new property `code-offset'.
1746         (syms_of_mule_charset): Add new symbol `code-offset'.
1747
1748 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1749
1750         * mule-charset.c (range_charset_code_point): Fixed.
1751
1752 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1753
1754         * mule-charset.c (decode_builtin_char): Change semantics of
1755         code-offset of coded-charset.
1756         (charset_code_point): Likewise.
1757         (range_charset_code_point): Likewise.
1758         (complex_vars_of_mule_charset): Modify for the change.
1759
1760 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761
1762         * mule-charset.c (Fencode_char): Reverse arguments.
1763
1764         * mule-charset.c (charset_code_point): Fixed.
1765
1766 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1767
1768         * mule-charset.c (Vcharset_mojikyo): Deleted.
1769         (Vcharset_mojikyo_2022_1): Deleted.
1770         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1771         (Qmin_code): New variable in UTF-2000.
1772         (Qmax_code): Likewise.
1773         (Qmother): Likewise.
1774         (Qconversion): Likewise.
1775         (Q94x60): Likewise.
1776         (Qmojikyo): Deleted.
1777         (Qmojikyo_2022_1): Deleted.
1778         (Qmojikyo_pj_{1..22}): Deleted.
1779         (mark_charset): Mark `cs->mother'.
1780         (charset_description): Add description for `mother'.
1781         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1782         new arguments `mother' and `conversion'; use
1783         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1784         (charset_code_point): Moved from char-ucs.h; support `mother'
1785         charset feature.
1786         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1787         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1788         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1789         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1790         allow 2 as the value of `graphic' in UTF-2000; add new properties
1791         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1792         require `final' in UTF-2000; modify for `make_charset'.
1793         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1794         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1795         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1796         (Fencode_char): New function.
1797         (syms_of_mule_charset): Add new builtin function `encode-char' in
1798         UTF-2000; add new symbols `min-code', `max-code', `mother',
1799         `conversion' and `94x60'; delete symbols `mojikyo',
1800         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1801         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1802         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1803         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1804
1805         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1806         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1807
1808         * char-ucs.h (Vcharset_mojikyo): Deleted.
1809         (Vcharset_mojikyo_2022_1): Deleted.
1810         (LEADING_BYTE_MOJIKYO): Deleted.
1811         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1812         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1813         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1814         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1815         add new member `mother'; add new member `conversion'.
1816         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1817         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1818         (CHARSET_MOTHER): New macro.
1819         (CHARSET_CONVERSION): New macro.
1820         (CONVERSION_IDENTICAL): New macro.
1821         (CONVERSION_94x60): New macro.
1822         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1823         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1824         (XCHARSET_MOTHER): New macro.
1825         (XCHARSET_CONVERSION): New macro.
1826         (MIN_CHAR_MOJIKYO): Deleted.
1827         (MAX_CHAR_MOJIKYO): Deleted.
1828         (DECODE_MOJIKYO_2022): Deleted.
1829         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1830         (charset_code_point): Changed to non-inline function.
1831         (encode_char_1): Use `charset_code_point'.
1832         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1833
1834 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * lread.c (read_compiled_function): Fix prototype.
1837         (read_vector): Likewise.
1838
1839 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * lrecord.h (struct lrecord_header): Delete `older'.
1842         (set_lheader_implementation): Delete code for `older'.
1843         (set_lheader_older_implementation): Deleted.
1844         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1845         (OLDER_RECORD_P): Deleted.
1846         (OLDER_RECORD_HEADER_P): Deleted.
1847         (alloc_older_lcrecord): Deleted.
1848         (alloc_older_lcrecord_type): Deleted.
1849
1850         * alloc.c (all_older_lcrecords): Deleted.
1851         (alloc_older_lcrecord): Deleted.
1852         (disksave_object_finalization_1): Delete code for older objects.
1853         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1854         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1855
1856 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1859         instead of `make_older_vector'.
1860         (put_char_ccs_code_point): Likewise.
1861         (mark_charset): Mark `cs->decoding_table'.
1862         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1863
1864         * lisp.h (make_older_vector): Deleted.
1865         (make_vector_newer): Deleted.
1866
1867         * config.h.in (HAVE_GGC): Deleted.
1868
1869         * alloc.c (make_older_vector): Deleted.
1870         (make_vector_newer_1): Deleted.
1871         (make_vector_newer): Deleted.
1872
1873 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874
1875         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1876         (Qideograph_daikanwa_2): New variable.
1877         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1878         (complex_vars_of_mule_charset): Add new coded-charset
1879         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1880         `LEADING_BYTE_DAIKANWA'.
1881
1882         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1883         (LEADING_BYTE_DAIKANWA_1): New macro.
1884         (LEADING_BYTE_DAIKANWA_2): New macro.
1885         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1886
1887 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * mule-charset.c (complex_vars_of_mule_charset): Change
1890         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1891         the second revised version.
1892
1893 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1894
1895         * mule-charset.c (Vcharset_ucs_smp): New variable.
1896         (Vcharset_ucs_sip): New variable.
1897         (Qucs_smp): New variable.
1898         (Qucs_sip): New variable.
1899         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1900         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1901         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1902         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1903         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1904         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1905
1906         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1907         (LEADING_BYTE_UCS_SIP): New macro.
1908         (MIN_CHAR_SMP): New macro.
1909         (MAX_CHAR_SMP): New macro.
1910         (MIN_CHAR_SIP): New macro.
1911         (MAX_CHAR_SIP): New macro.
1912
1913 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1914
1915         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1916         utf-2000.
1917
1918 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1921         value; don't store value into `encoding_table' of `Lisp_Charset'.
1922         (mark_charset): `encoding_table' was deleted.
1923         (charset_description): Likewise.
1924         (make_charset): Likewise.
1925         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1926         `put_char_ccs_code_point'.
1927
1928         * chartab.h (Fput_char_attribute): New EXFUN.
1929
1930         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1931         is unified with normal symbol space.
1932         (Fget_char_attribute): Likewise.
1933         (Fput_char_attribute): Likewise; behavior of
1934         `put_char_ccs_code_point' is changed.
1935
1936         * char-ucs.h: Include "elhash.h".
1937         (Vchar_attribute_hash_table): New external variable.
1938         (struct Lisp_Charset): Delete `encoding_table'.
1939         (CHARSET_ENCODING_TABLE): New implementation; refer
1940         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1941         `Lisp_Charset'.
1942
1943 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1946         (cs) == 0.
1947
1948 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949
1950         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1951         `chinese-big5'.
1952
1953 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1954
1955         * chartab.c (uint8_byte_table_description): New constant.
1956         (uint8-byte-table): Use `uint8_byte_table_description'.
1957         (uint16_byte_table_description): New constant.
1958         (uint16-byte-table): Use `uint16_byte_table_description'.
1959
1960 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1963         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1964
1965 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966
1967         * mule-charset.c (Vcharset_ucs_ks): New variable.
1968         (Qucs_ks): New variable.
1969         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1970         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1971
1972         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1973
1974 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1977         (Fdecode_char): Likewise.
1978
1979         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1980         chartab.h.
1981         (Fdefine_char): Modify for Fdecode_char.
1982         (Ffind_char): Likewise.
1983
1984         * mule-charset.c (Fdecode_char): Add new optional argument
1985         `defined-only'.
1986         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1987
1988 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989
1990         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1991         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1992         (allocate_coding_system): Initialize initial-charsets of
1993         CODESYS_BIG5 in XEmacs UTF-2000.
1994         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1995         CODESYS_BIG5 in XEmacs UTF-2000.
1996         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1997         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1998
1999         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2000         variables.
2001         (Qideograph_hanziku_{1 .. 12}): Likewise.
2002         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2003         .. 12}'.
2004         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2005         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2006         `ideograph-hanziku-{1 .. 12}'.
2007
2008         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2009         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2010         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2011         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2012         (DECODE_DEFINED_CHAR): New inline function.
2013         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2014
2015 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * mule-charset.c (Vcharset_china3_jef): Renamed from
2018         `Vcharset_japanese_jef_china3'.
2019         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2020         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2021         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2022         (syms_of_mule_charset): Rename `china3-jef' from
2023         `japanese-jef-china3'.
2024         (complex_vars_of_mule_charset): Likewise; rename
2025         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2026
2027         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2028         `LEADING_BYTE_JEF_CHINA3'.
2029         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2030         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2031
2032 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2033
2034         * mule-charset.c (encode_builtin_char_1): Comment out special code
2035         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2036
2037         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2038         (MAX_CHAR_MOJIKYO_0): Comment out.
2039         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2040         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2041         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2042         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2043
2044 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2045
2046         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2047         (Qideograph_cbeta): New variable.
2048         (encode_builtin_char_1): Comment out special code for
2049         coded-charset `mojikyo' and `japanese-jef-china3'.
2050         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2051         (complex_vars_of_mule_charset): Add new coded-charset
2052         `ideograph-cbeta'.
2053
2054         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2055         (MIN_CHAR_CBETA): New macro.
2056         (MAX_CHAR_CBETA): New macro.
2057
2058 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059
2060         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2061         (LEADING_BYTE_JEF_CHINA3): New macro.
2062         (MIN_CHAR_JEF_CHINA3): New macro.
2063         (MAX_CHAR_JEF_CHINA3): Likewise.
2064         (DECODE_CHAR): Fixed.
2065
2066 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067
2068         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2069         (Qjapanese_jef_china3): New variable.
2070         (encode_builtin_char_1): Support `japanese-jef-china3'.
2071         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2072         (complex_vars_of_mule_charset): Add new coded-charset
2073         `japanese-jef-china3'.
2074
2075 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2076
2077         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2078         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2079         94^4, 96^3, 96^4, 128^n and 256^n set.
2080         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2081         (map_char_table): Likewise.
2082
2083 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2086         UTF-2000.
2087
2088 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * chartab.h (get_char_id_table): New inline function.
2091
2092         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2093         function.
2094
2095 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096
2097         * chartab.h (decode_char_table_range): New prototype in XEmacs
2098         UTF-2000.
2099         (put_char_id_table): New inline function in XEmacs UTF-2000.
2100
2101         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2102         function.
2103         (decode_char_table_range): Delete static declaration in XEmacs
2104         UTF-2000.
2105
2106 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * chartab.c (put_char_id_table): Use `put_char_table'.
2109
2110 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111
2112         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2113         (map_over_uint16_byte_table): Likewise.
2114         (map_over_byte_table): Likewise.
2115         (map_char_table): Modify for `map_over_uint8_byte_table',
2116         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2117         UTF-2000.
2118
2119 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * chartab.c (struct map_char_table_for_charset_arg): New
2122         structure.
2123         (map_char_table_for_charset_fun): New function.
2124         (map_char_table): Use `map_char_table' for encoding_table of
2125         `range->charset'.
2126
2127 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * chartab.c (map_char_table): Check a character is found in
2130         range->charset instead of non default value is defined in
2131         char-table when range is CHARTAB_RANGE_ROW.
2132
2133 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * chartab.c (map_char_id_table): Deleted.
2136         (Fmap_char_attribute): Use `map_char_table' instead of
2137         `map_char_id_table'.
2138
2139 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140
2141         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2142         UTF-2000.
2143         (update_syntax_table): Deleted in XEmacs UTF-2000.
2144
2145         * syntax.c (find_defun_start): Use `syntax_table' instead of
2146         `mirror_syntax_table' in XEmacs UTF-2000.
2147         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2148         UTF-2000.
2149         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2150         XEmacs UTF-2000.
2151         (Fmatching_paren): Likewise.
2152         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2153         in XEmacs UTF-2000.
2154         (find_start_of_comment): Likewise.
2155         (find_end_of_comment): Likewise.
2156         (Fforward_comment): Likewise.
2157         (scan_lists): Likewise.
2158         (char_quoted): Likewise.
2159         (Fbackward_prefix_chars): Likewise.
2160         (scan_sexps_forward): Likewise.
2161         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2162         (update_syntax_table): Likewise.
2163
2164         * search.c (skip_chars): Use `syntax_table' instead of
2165         `mirror_syntax_table' in XEmacs UTF-2000.
2166         (wordify): Likewise.
2167         (Freplace_match): Likewise.
2168
2169         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2170         `mirror_syntax_table' in XEmacs UTF-2000.
2171         (WORDCHAR_P_UNSAFE): Likewise.
2172         (re_match_2_internal): Likewise.
2173
2174         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2175         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2176
2177         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2178         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2179
2180         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2181         XEmacs UTF-2000.
2182
2183         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2184         UTF-2000.
2185         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2186         (char_table_description): Delete `mirror_table' in XEmacs
2187         UTF-2000.
2188         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2189         UTF-2000.
2190         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2191         (Fcopy_char_table): Likewise.
2192         (put_char_table): Don't call `update_syntax_table' in XEmacs
2193         UTF-2000.
2194
2195         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2196         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2197         (casify_region_internal): Likewise.
2198
2199         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2200
2201         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2202         `mirror_syntax_table' in XEmacs UTF-2000.
2203
2204         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2205         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2206         (Fexpand_abbrev): Likewise.
2207
2208 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2209
2210         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2211
2212 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2213
2214         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2215         (map_over_uint16_byte_table): Likewise.
2216         (map_over_byte_table): Likewise.
2217         (get_char_id_table): Refer `cit->default_value'.
2218         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2219         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2220         of character-id ranges.
2221         (mark_char_table): Mark `ct->default_value'.
2222         (char_table_description): Add `default_value'.
2223         (fill_char_table): Use `default_value'.
2224         (decode_char_table_range): Decode `nil' as
2225         `CHARTAB_RANGE_DEFAULT'.
2226         (get_char_id_table): Refer `cit->default_value'.
2227         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2228         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2229         temporary hack; check value of char-table is bound or not.
2230         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2231
2232         * chartab.h (struct Lisp_Char_Table): Add new member
2233         `default_value' in XEmacs UTF-2000.
2234         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2235         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2236         UTF-2000.
2237
2238 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2239
2240         * chartab.h (Lisp_Char_ID_Table): Deleted.
2241
2242         * chartab.c (char_table_description): Fix typo.
2243         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2244         `Lisp_Char_ID_Table'.
2245
2246 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2249         `CHAR_ID_TABLE_P'.
2250
2251         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2252         `CHAR_ID_TABLE_P'.
2253
2254         * chartab.h (XCHAR_ID_TABLE): Deleted.
2255         (XSETCHAR_ID_TABLE): Deleted.
2256         (CHAR_ID_TABLE_P): Deleted.
2257
2258         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2259         `CHAR_ID_TABLE_P'.
2260         (Fget_composite_char): Likewise.
2261         (put_char_table): Likewise.
2262         (add_char_attribute_alist_mapper): Fixed.
2263         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2264         `CHAR_ID_TABLE_P'.
2265         (Fget_char_attribute): Likewise.
2266         (Fget_char_attribute): Likewise.
2267         (Fmap_char_attribute): Likewise.
2268
2269         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2270         `CHAR_ID_TABLE_P'.
2271         (encode_char_1): Likewise.
2272
2273 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2276         `XCHAR_ID_TABLE'.
2277
2278         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2279         instead of `XCHAR_ID_TABLE'.
2280         (remove_char_ccs): Likewise.
2281
2282         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2283         `XCHAR_ID_TABLE'.
2284         (Fget_composite_char): Likewise.
2285         (Fchar_variants): Likewise.
2286         (put_char_table): Likewise.
2287         (add_char_attribute_alist_mapper): Likewise.
2288         (Fchar_attribute_alist): Likewise.
2289         (Fget_char_attribute): Likewise.
2290         (Fput_char_attribute): Likewise.
2291         (Fmap_char_attribute): Likewise.
2292         (Fmap_char_attribute): Likewise.
2293
2294         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2295         `XCHAR_ID_TABLE'.
2296         (encode_char_1): Likewise.
2297
2298 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2301         `Lisp_Char_ID_Table'.
2302         (mark_char_id_table): Deleted.
2303         (print_char_id_table): Likewise.
2304         (char_id_table_equal): Likewise.
2305         (char_id_table_hash): Likewise.
2306         (char_id_table_description): Likewise.
2307         (char_id_table): Likewise.
2308         (make_char_id_table): Use `Fmake_char_table' and
2309         `fill_char_table'.
2310         (get_char_id_table): Use `Lisp_Char_Table' instead of
2311         `Lisp_Char_ID_Table'.
2312         (put_char_id_table): Likewise.
2313         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2314         `XCHAR_ID_TABLE'.
2315         (Fremove_char_attribute): Likewise.
2316         (syms_of_chartab): Don't define type `char-id-table'.
2317
2318         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2319         (char_id_table): Likewise.
2320         (GC_CHAR_ID_TABLE_P): Likewise.
2321         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2322         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2323         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2324         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2325         (get_char_id_table): Use `Lisp_Char_Table' instead of
2326         `Lisp_Char_ID_Table'.
2327         (put_char_id_table_0): Likewise.
2328         (put_char_id_table): Likewise.
2329
2330 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2331
2332         * chartab.h: Lisp_Byte_Table related codes are moved from
2333         chartab.h.
2334
2335         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2336
2337 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2338
2339         * chartab.h: Don't include "chartab.h".
2340         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2341         (Lisp_Char_ID_Table): Likewise.
2342         (char_id_table): Likewise.
2343         (XCHAR_ID_TABLE): Likewise.
2344         (XSETCHAR_ID_TABLE): Likewise.
2345         (CHAR_ID_TABLE_P): Likewise.
2346         (GC_CHAR_ID_TABLE_P): Likewise.
2347         (get_char_id_table): Likewise.
2348
2349         * char-ucs.h: Include "chartab.h".
2350         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2351         (Lisp_Char_ID_Table): Likewise.
2352         (char_id_table): Likewise.
2353         (XCHAR_ID_TABLE): Likewise.
2354         (XSETCHAR_ID_TABLE): Likewise.
2355         (CHAR_ID_TABLE_P): Likewise.
2356         (GC_CHAR_ID_TABLE_P): Likewise.
2357         (get_char_id_table): Likewise.
2358
2359 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2360
2361         * chartab.c (copy_uint8_byte_table): New function.
2362         (copy_uint16_byte_table): New function.
2363         (copy_byte_table): New function.
2364         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2365         characters to call.
2366         (map_over_uint16_byte_table): Likewise.
2367         (map_over_byte_table): Likewise.
2368         (get_byte_table): Move prototype to chartab.h.
2369         (put_byte_table): Likewise.
2370         (put_char_id_table_0): Moved to chartab.h.
2371         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2372         (char_table_entry_equal): Likewise.
2373         (char_table_entry_hash): Likewise.
2374         (char_table_entry_description): Likewise.
2375         (char_table_entry): Likewise.
2376         (make_char_table_entry): Likewise.
2377         (copy_char_table_entry): Likewise.
2378         (get_non_ascii_char_table_value): Likewise.
2379         (map_over_charset_ascii): Likewise.
2380         (map_over_charset_control_1): Likewise.
2381         (map_over_charset_row): Likewise.
2382         (map_over_other_charset): Likewise.
2383         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2384         (print_char_table): Likewise.
2385         (char_table_equal): Likewise.
2386         (char_table_hash): Likewise.
2387         (char_table_description): Likewise.
2388         (fill_char_table): Likewise.
2389         (Fcopy_char_table): Likewise.
2390         (get_char_table): Likewise.
2391         (Fget_range_char_table): Likewise.
2392         (put_char_table): Likewise.
2393         (map_char_table): Likewise.
2394         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2395         UTF-2000.
2396
2397 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2400         `Vauto_fill_chars' in XEmacs UTF-2000.
2401
2402         * chartab.h (get_byte_table): New prototype [moved from
2403         chartab.c].
2404         (put_byte_table): Likewise [moved from chartab.c].
2405         (put_char_id_table_0): New inline function [moved from chartab.c].
2406         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2407         (Lisp_Char_Table_Entry): Likewise.
2408         (char_table_entry): Likewise.
2409         (XCHAR_TABLE_ENTRY): Likewise.
2410         (XSETCHAR_TABLE_ENTRY): Likewise.
2411         (CHAR_TABLE_ENTRYP): Likewise.
2412         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2413         (NUM_ASCII_CHARS): Likewise.
2414         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2415         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2416
2417 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * chartab.c (get_char_id_table): Change interface.
2420         (put_char_id_table_0): New function.
2421         (put_char_id_table): Change interface; new implementation.
2422         (Fget_composite_char): Modify for interface change of
2423         `get_char_id_table'.
2424         (Fchar_variants): Likewise.
2425         (add_char_attribute_alist_mapper): Likewise.
2426         (Fchar_attribute_alist): Likewise.
2427         (Fget_char_attribute): Likewise.
2428         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2429         as same as character as the first argument like `put-char-table';
2430         modify for interface change of `put_char_id_table'.
2431         (Fremove_char_attribute): Modify for interface change of
2432         `put_char_id_table'.
2433
2434 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * text-coding.c: Sync up with XEmacs 21.2.41.
2437         (COMPOSE_ADD_CHAR): Modify for interface change of
2438         `get_char_id_table'.
2439
2440         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2441         change of `put_char_id_table'.
2442         (remove_char_ccs): Likewise.
2443
2444         * chartab.h (put_char_id_table): Change interface.
2445
2446         * char-ucs.h (get_char_id_table): Change interface.
2447         (charset_code_point): Modify for interface change of
2448         `get_char_id_table'.
2449         (encode_char_1): Likewise.
2450
2451 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452
2453         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2454         argument `ccs'.
2455         (map_over_uint16_byte_table): Likewise.
2456         (map_over_byte_table): Likewise.
2457         (map_char_id_table): Add new argument `range' like
2458         `map_char_table'.
2459         (Fmap_char_attribute): Add new argument `range' like
2460         `Fmap_char_table'.
2461
2462 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463
2464         * chartab.c (map_over_uint8_byte_table): Change interface of
2465         mapping function to use struct chartab_range instead of Emchar.
2466         (map_over_uint16_byte_table): Likewise.
2467         (map_over_byte_table): Likewise.
2468         (map_char_id_table): Likewise.
2469         (struct slow_map_char_id_table_arg): Deleted.
2470         (slow_map_char_id_table_fun): Deleted.
2471         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2472         function `slow_map_char_table_fun' instead of struct
2473         `slow_map_char_id_table_arg' and function
2474         `slow_map_char_id_table_fun'.
2475
2476 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2477
2478         * mule-charset.c: Move char-it-table related codes to chartab.c.
2479         (Vutf_2000_version): Moved to chartab.c.
2480         (Fdefine_char): Likewise.
2481         (Ffind_char): Likewise.
2482         (syms_of_mule_charset): Move types `uint8-byte-table',
2483         `uint16-byte-table', `byte-table' and `char-id-table' to
2484         chartab.c; move functions `char_attribute_list,
2485         `find_char_attribute_table, `char_attribute_alist,
2486         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2487         `map_char_attribute, `define_char, `find_char, `char_variants and
2488         `get_composite_char to chartab.c; move symbols `=>ucs',
2489         `->decomposition', `compat', `isolated', `initial', `medial',
2490         `final', `vertical', `noBreak', `fraction', `super', `sub',
2491         `circle', `square', `wide', `narrow', `small' and `font' to
2492         chartab.c.
2493         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2494         setting codes for `Vcharacter_composition_table' and
2495         `Vcharacter_variant_table' to chartab.c.
2496         (complex_vars_of_mule_charset): Move setting code for
2497         `Vchar_attribute_hash_table' to chartab.c.
2498
2499         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2500         (make_char_id_table): New prototype.
2501         (put_char_id_table): Likewise.
2502         (Fget_char_attribute): Likewise.
2503
2504         * chartab.c: Move char-id-table related code from mule-charset.c.
2505         (Vutf_2000_version): Moved from mule-charset.c.
2506
2507         * char-ucs.h (Qucs): New external variable.
2508         (put_char_ccs_code_point): New prototype.
2509         (remove_char_ccs): Likewise.
2510
2511 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2512
2513         * mule-charset.c (Vcharset_ucs_jis): New variable.
2514         (Qucs_jis): Likewise.
2515         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2516         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2517
2518         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2519
2520 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2521
2522         * mule-charset.c (map_over_uint8_byte_table): New function.
2523         (map_over_uint16_byte_table): Likewise.
2524         (map_over_byte_table): Likewise.
2525         (map_char_id_table): Likewise.
2526         (slow_map_char_id_table_fun): Likewise.
2527         (Fmap_char_attribute): Likewise.
2528         (syms_of_mule_charset): Add new function `map-char-attribute'.
2529
2530 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2531
2532         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2533         (syms_of_mule_charset): Add new function `find-char'.
2534
2535 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536
2537         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2538         XEmacs UTF-2000.
2539         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2540         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2541         XEmacs UTF-2000.
2542         (complex_vars_of_mule_charset): Add new coded-charset
2543         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2544         `ideograph-gt-pj-*'.
2545
2546         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2547
2548 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * mule-charset.c (encode_builtin_char_1): Purge codes about
2551         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2552         {MIN|MAX}_CHAR_HEBREW.
2553         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2554         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2555
2556         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2557         (MAX_CHAR_GREEK): Purged.
2558         (MIN_CHAR_CYRILLIC): Purged.
2559         (MAX_CHAR_CYRILLIC): Purged.
2560         (MIN_CHAR_HEBREW): Commented out.
2561         (MAX_CHAR_HEBREW): Likewise.
2562
2563 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * mule-charset.c (Qto_ucs): New variable.
2566         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2567         (Fdefine_char): Likewise.
2568         (syms_of_mule_charset): Add new symbol `=>ucs'.
2569
2570 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (Fdecode_char): Fixed.
2573
2574 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2577         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2578         "tcvn5712-1".
2579
2580 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2581
2582         * mule-charset.c (Vcharset_ucs_big5): New variable.
2583         (Qucs_big5): Likewise.
2584         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2585         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2586
2587         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2588
2589 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2590
2591         * mule-charset.c (decode_builtin_char): Check Big5 code range
2592         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2593
2594 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2595
2596         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2597         (Qchinese_gb12345): Likewise.
2598         (Fdecode_builtin_char): Fixed.
2599         (syms_of_mule_charset): Add `chinese-gb12345'.
2600         (complex_vars_of_mule_charset): Add coded-charset
2601         `chinese-gb12345'.
2602
2603         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2604         (LEADING_BYTE_CHINESE_GB12345): New macro.
2605
2606 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2607
2608         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2609         and `latin-viscii-upper' for `latin-viscii'.
2610
2611 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (Fdecode_builtin_char): Comment out
2614         regularization code for ISO-IR GR representation.
2615
2616 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * mule-charset.c (decode_builtin_char): New function; renamed from
2619         `make_builtin_char'; return -1 instead of signal.
2620         (Fdecode_builtin_char): Use `decode_builtin_char'.
2621
2622         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2623         `make_builtin_char'.
2624         (DECODE_CHAR): Use `decode_builtin_char' instead of
2625         `make_builtin_char'; use mapping table of `chinese-big5' for
2626         `chinese-big5-{1,2}'.
2627
2628 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2629
2630         * text-coding.c (char_encode_big5): New function.
2631         (char_finish_big5): Likewise.
2632         (reset_encoding_stream): Use `char_encode_big5' and
2633         `char_finish_big5' for CODESYS_BIG5.
2634         (mule_encode): Don't use `encode_coding_big5'.
2635         (encode_coding_big5): Deleted.
2636
2637 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638
2639         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2640         0x81- in XEmacs UTF-2000.
2641         (detect_coding_big5): Likewise.
2642
2643 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2646         generate character-id if the CCS property does not have
2647         corresponding predefined character.
2648         (make_builtin_char): Return -1 if corresponding predefined
2649         character is not found.
2650         (Fdecode_char): Return nil if corresponding character is not
2651         found.
2652         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2653         don't map to builtin ucs space.
2654
2655 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2656
2657         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2658         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2659
2660 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2661
2662         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2663         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2664         (Qideograph_gt): Likewise.
2665         (Qideograph_gt_pj_{1..11}): Likewise.
2666         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2667         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2668         `ideograph-gt-pj-11'.
2669         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2670         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2671         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2672
2673         * char-ucs.h (LEADING_BYTE_GT): New macro.
2674         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2675         (MIN_CHAR_GT): Likewise.
2676         (MAX_CHAR_GT): Likewise.
2677
2678 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679
2680         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2681         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2682
2683         * doprnt.c (unsigned_int_converters): Add `c'.
2684         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2685
2686         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2687         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2688         `MIN_CHAR_MOJIKYO'.
2689         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2690         (MAX_CHAR_MOJIKYO_0): New macro.
2691         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2692
2693 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2694
2695         * mule-charset.c (Fdefine_char): Delete cemented out code.
2696         (encode_builtin_char_1): Modify for new allocation of builtin
2697         Mojikyo characters.
2698
2699         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2700
2701 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * mule-charset.c (Vcharset_ucs_cns): New variable.
2704         (Qucs_cns): New variable.
2705         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2706         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2707
2708 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2709
2710         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2711
2712 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2713
2714         * search.c (search_buffer): Make `charset_base_code' as
2715         character-id >> 6 to eliminate the corresponding last byte in
2716         UTF-8 representation [I'm not sure it is right thing].
2717         (boyer_moore): Likewise.
2718
2719 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2720
2721         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2722         representation in MULE.
2723
2724 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * text-coding.c (Fmake_coding_system): Use
2727         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2728         `EXTERNAL_PROPERTY_LIST_LOOP'.
2729
2730 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2731
2732         * text-coding.c (decode_output_utf8_partial_char): New function.
2733         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2734
2735 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2736
2737         * text-coding.c (decode_coding_utf8): Output original byte
2738         sequence if it is broken; change order of conditions.
2739
2740         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2741         of conditions.
2742
2743         * mb-multibyte.h (BYTE_ASCII_P):
2744         Use bit ops for char-signedness safety.
2745         (BYTE_C0_P): Use bit ops for char-signedness safety.
2746         (BYTE_C1_P): Use bit ops for char-signedness safety.
2747
2748         * character.h: (XCHAR_OR_CHAR_INT):
2749         Always use inline function.
2750         Remove redundant type checking assert() - XINT will abort quite
2751         nicely.
2752
2753 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2754
2755         * text-coding.c: (Fencode_shift_jis_char):
2756         (Fencode_big5_char):
2757         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2758         Replace 0 with '\0' when working with bytes.
2759         Replace initial "(" with "\(" in docstrings.
2760
2761         (Fmake_coding_system):
2762         When type is ccl and value is vector, register it with a proper
2763         symbol.  And checks whether the given ccl program is valid.
2764         (mule_decode): When calling ccl_driver, if src indicates
2765         NULL pointer, set an empty string instead.
2766         (mule_encode): Likewise.
2767
2768         (detect_eol_type):
2769         (detect_coding_sjis):
2770         (decode_coding_sjis):
2771         (detect_coding_big5):
2772         (decode_coding_big5):
2773         (detect_coding_ucs4):
2774         (decode_coding_ucs4):
2775         (detect_coding_utf8):
2776         (decode_coding_utf8):
2777         (detect_coding_iso2022):
2778         (decode_coding_iso2022):
2779         (decode_coding_no_conversion):
2780         (mule_decode):
2781         Make all detecting and decoding functions take an Extbyte * arg.
2782         (text_encode_generic):
2783         (encode_coding_big5):
2784         (encode_coding_no_conversion):
2785         (mule_encode):
2786         Make all encoding functions take a Bufbyte * arg.
2787         Use size_t instead of unsigned int for memory sizes.
2788         Only cast to unsigned char whenever dereferencing Extbyte *.
2789
2790         (struct lrecord_description fcd_description_1): Use countof.
2791         (complex_vars_of_file_coding):
2792         Use countof instead of sizeof.
2793         Use CHECK_NATNUM instead of CHECK_INT.
2794
2795 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * mule-charset.c (Fget_char_attribute): Add new optional argument
2798         `default-value'.
2799         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2800         (remove_char_ccs): Likewise.
2801
2802 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * text-coding.c (char_encode_shift_jis): New implementation in
2805         UTF-2000.
2806         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2807         ...)'.
2808
2809         * mule-charset.c (Vcharset_chinese_big5): New variable in
2810         UTF-2000.
2811         (Qchinese_big5): New variable in UTF-2000.
2812         (BIG5_SAME_ROW): New macro in UTF-2000.
2813         (make_builtin_char): Use builtin characters of
2814         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2815         characters of `Vcharset_chinese_big5'.
2816         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2817         (complex_vars_of_mule_charset): Add new coded-charset
2818         `chinese-big5' in UTF-2000.
2819
2820         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2821         (Vcharset_chinese_big5): New external variable declaration.
2822         (Vcharset_japanese_jisx0208_1990): Likewise.
2823
2824 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2827         function.
2828         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2829
2830 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2831
2832         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2833         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2834         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2835         `mojikyo-pj-*'.
2836
2837 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2838
2839         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2840
2841 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2842
2843         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2844         to 0.17.
2845
2846 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847
2848         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2849         for `CHARSET_BY_ATTRIBUTES'.
2850         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2851         `CHARSET_BY_ATTRIBUTES'.
2852
2853         * text-coding.c (struct decoding_stream): Rename member `CH' to
2854         `CPOS'.
2855         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2856         (decode_coding_sjis): Likewise.
2857         (decode_coding_big5): Likewise.
2858         (decode_coding_ucs4): Likewise.
2859         (decode_coding_utf8): Likewise.
2860         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2861         `CHARSET_BY_ATTRIBUTES'.
2862         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2863         `str->counter'; decode 3, 4 bytes sets.
2864         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2865         sets.
2866         (decode_coding_no_conversion): Use `str->cpos' instead of
2867         `str->ch'.
2868
2869         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2870         (Qmojikyo_2022_1): New variable.
2871         (make_charset): Don't use `CHARSET_TYPE_*'.
2872         (range_charset_code_point): Support coded-charset
2873         `mojikyo-2022-1'.
2874         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2875         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2876         `CHARSET_BY_ATTRIBUTES'.
2877         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2878         `CHARSET_BY_ATTRIBUTES'.
2879         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2880         (complex_vars_of_mule_charset): Add new coded-charset
2881         `mojikyo-2022-1'.
2882
2883         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2884         interface; changed to inline function.
2885
2886         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2887         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2888         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2889         (CHARSET_TYPE_94): Deleted.
2890         (CHARSET_TYPE_94X94): Deleted.
2891         (CHARSET_TYPE_96): Deleted.
2892         (CHARSET_TYPE_96X96): Deleted.
2893         (CHARSET_TYPE_128): Deleted.
2894         (CHARSET_TYPE_128X128): Deleted.
2895         (CHARSET_TYPE_256): Deleted.
2896         (CHARSET_TYPE_256X256): Deleted.
2897         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2898         to inline function.
2899         (DECODE_MOJIKYO_2022): New inline function.
2900         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2901         `Vcharset_mojikyo_2022_1'.
2902
2903 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2906         instead of `EQ'.
2907         (put_byte_table): Likewise.
2908         (char_id_table_equal): Use `get_byte_table' [new implementation].
2909
2910 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2911
2912         * mule-charset.c: Include <limits.h> in UTF-2000.
2913         (BT_UINT8_MIN): New macro in UTF-2000.
2914         (BT_UINT8_MAX): New macro in UTF-2000.
2915         (BT_UINT8_t): New macro in UTF-2000.
2916         (BT_UINT8_nil): New macro in UTF-2000.
2917         (BT_UINT8_unbound): New macro in UTF-2000.
2918         (INT_UINT8_P): New inline function in UTF-2000.
2919         (UINT8_VALUE_P): New inline function in UTF-2000.
2920         (UINT8_ENCODE): New inline function in UTF-2000.
2921         (UINT8_DECODE): New inline function in UTF-2000.
2922         (mark_uint8_byte_table): New function in UTF-2000.
2923         (print_uint8_byte_table): New function in UTF-2000.
2924         (uint8_byte_table_equal): New function in UTF-2000.
2925         (uint8_byte_table_hash): New function in UTF-2000.
2926         (make_uint8_byte_table): New function in UTF-2000.
2927         (uint8_byte_table_same_value_p): New function in UTF-2000.
2928         (BT_UINT16_MIN): New macro in UTF-2000.
2929         (BT_UINT16_MAX): New macro in UTF-2000.
2930         (BT_UINT16_t): New macro in UTF-2000.
2931         (BT_UINT16_nil): New macro in UTF-2000.
2932         (BT_UINT16_unbound): New macro in UTF-2000.
2933         (INT_UINT16_P): New inline function in UTF-2000.
2934         (UINT16_VALUE_P): New inline function in UTF-2000.
2935         (UINT16_ENCODE): New inline function in UTF-2000.
2936         (UINT16_DECODE): New inline function in UTF-2000.
2937         (UINT8_TO_UINT16): New inline function in UTF-2000.
2938         (mark_uint16_byte_table): New function in UTF-2000.
2939         (print_uint16_byte_table): New function in UTF-2000.
2940         (uint16_byte_table_equal): New function in UTF-2000.
2941         (uint16_byte_table_hash): New function in UTF-2000.
2942         (make_uint16_byte_table): New function in UTF-2000.
2943         (uint16_byte_table_same_value_p): New function in UTF-2000.
2944         (print_byte_table): New function in UTF-2000.
2945         (byte-table): Use `print_byte_table' as printer.
2946         (make_byte_table): Delete second argument `older'.
2947         (byte_table_same_value_p): New function in UTF-2000.
2948         (copy_byte_table): Deleted.
2949         (get_byte_table): New function in UTF-2000.
2950         (put_byte_table): New function in UTF-2000.
2951         (print_char_id_table): New function in UTF-2000.
2952         (char-id-table): Use `print_char_id_table' as printer.
2953         (make_char_id_table): Delete second argument `older'.
2954         (get_char_id_table): Use `get_byte_table [new implementation].
2955         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2956         implementation].
2957         (Ffind_char_attribute_table): New function in UTF-2000.
2958         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2959         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2960         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2961         (syms_of_mule_charset): Add new function
2962         `find-char-attribute-table' in UTF-2000.
2963
2964         * lrecord.h (enum lrecord_type): Add
2965         `lrecord_type_uint16_byte_table' and
2966         `lrecord_type_uint8_byte_table'.
2967
2968         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2969         (Lisp_Uint8_Byte_Table): New type.
2970         (XUINT8_BYTE_TABLE): New macro.
2971         (XSETUINT8_BYTE_TABLE): New macro.
2972         (UINT8_BYTE_TABLE_P): New macro.
2973         (GC_UINT8_BYTE_TABLE_P): New macro.
2974         (struct Lisp_Uint16_Byte_Table): New structure.
2975         (Lisp_Uint16_Byte_Table): New type.
2976         (XUINT16_BYTE_TABLE): New macro.
2977         (XSETUINT16_BYTE_TABLE): New macro.
2978         (UINT16_BYTE_TABLE_P): New macro.
2979         (GC_UINT16_BYTE_TABLE_P): New macro.
2980
2981 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2982
2983         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2984         (Vcharacter_ideographic_strokes_table): Deleted.
2985         (Vcharacter_total_strokes_table): Deleted.
2986         (Vcharacter_morohashi_daikanwa_table): Deleted.
2987         (Vcharacter_decomposition_table): Deleted.
2988         (Qname): Deleted because it is duplicated.
2989         (Qideographic_radical): Deleted.
2990         (Qideographic_strokes): Deleted.
2991         (Qtotal_strokes): Deleted.
2992         (Qmorohashi_daikanwa): Deleted.
2993         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2994         `ideographic-radical', `ideographic-strokes', `total-strokes',
2995         `morohashi-daikanwa' and `->decomposition'.
2996         (Fget_char_attribute): Likewise.
2997         (Fput_char_attribute): Likewise; use `make-vector' instead of
2998         `make_older_vector' for `->decomposition' value.
2999         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3000         `ideograph-daikanwa'.
3001         (syms_of_mule_charset): Delete builtin symbols `name',
3002         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3003         `morohashi-daikanwa'.
3004         (vars_of_mule_charset): Don't setup
3005         `Vcharacter_ideographic_radical_table',
3006         `Vcharacter_ideographic_strokes_table',
3007         `Vcharacter_total_strokes_table',
3008         `Vcharacter_morohashi_daikanwa_table' and
3009         `Vcharacter_decomposition_table'.
3010
3011 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3014         `make_older_vector', `make_vector_newer_1' and
3015         `make_vector_newer'.
3016
3017         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3018         `make_older_vector' and `make_vector_newer'.
3019
3020         * config.h.in (HAVE_GGC): New macro.
3021
3022 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3023
3024         * mule-charset.c (struct char_attribute_list_closure): New
3025         structure in UTF-2000.
3026         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3027         (Fchar_attribute_list): Likewise.
3028         (Fset_charset_mapping_table): Use `make_vector_newer'.
3029         (Fdecode_builtin_char): New function in UTF-2000.
3030         (syms_of_mule_charset): Add new function `char-attribute-list' and
3031         `decode-builtin-char' in UTF-2000.
3032
3033         * lisp.h (make_vector_newer): New prototype.
3034
3035         * alloc.c (make_vector_newer_1): New function.
3036         (make_vector_newer): New function.
3037
3038 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3039
3040         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3041         50100)'.
3042
3043 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3044
3045         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3046         (Vcharacter_attribute_table): Deleted.
3047         (Vcharacter_name_table): Deleted.
3048         (put_char_attribute): Deleted.
3049         (remove_char_attribute): Deleted.
3050         (struct char_attribute_alist_closure): New structure.
3051         (add_char_attribute_alist_mapper): New function.
3052         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3053         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3054         (Fget_char_attribute): Likewise.
3055         (Fput_char_attribute): Likewise.
3056         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3057         of `remove_char_attribute'.
3058         (Fdefine_char): Return character.
3059         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3060         and `Vcharacter_name_table'.
3061         (complex_vars_of_mule_charset): Likewise
3062         `Vchar_attribute_hash_table'.
3063
3064 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * character.h (CHARC_CHARSET): New macro.
3067         (CHARC_CHARSET_ID): New macro.
3068         (CHARC_CODE_POINT): New macro.
3069         (CHARC_COLUMNS): New macro.
3070         (CHARC_TO_CHAR): New inline function.
3071         (CHARC_EQ): New inline function.
3072         (CHARC_ASCII_EQ): New inline function.
3073         (CHARC_IS_SPACE): New inline function.
3074         (ASCII_TO_CHARC): New inline function.
3075
3076         * char-ucs.h (encode_char_2): Deleted.
3077         (ENCODE_CHAR): Use `encode_char_1' again.
3078         (breakup_char_1): Likewise.
3079         (CHAR_TO_CHARC): New inline function.
3080
3081         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3082
3083 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3086         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3087         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3088         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3089         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3090         `CHARC_IS_SPACE'.
3091         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3092
3093         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3094         `CHARC_CODE_POINT'.
3095         (x_output_display_block): Use `CHARC_CHARSET' and
3096         `CHARC_ASCII_EQ'.
3097
3098         * redisplay-tty.c (tty_output_display_block): Use
3099         `CHARC_ASCII_EQ'.
3100         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3101
3102         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3103
3104         * insdel.c (find_charsets_in_charc_string): Use
3105         `CHARC_CHARSET_ID'.
3106         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3107         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3108         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3109         (convert_charc_string_into_malloced_string): Likewise.
3110
3111 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3112
3113         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3114         instead of <Emchar_dynarr *> for buf; use
3115         `convert_bufbyte_string_into_charc_dynarr' instead of
3116         `convert_bufbyte_string_into_emchar_dynarr'; use
3117         `find_charsets_in_charc_string' instead of
3118         `find_charsets_in_emchar_string'.
3119
3120         * redisplay.h:
3121         - Include "character.h".
3122         (struct rune): New member `cglyph'; delete member `chr'.
3123
3124         * redisplay.c (redisplay_text_width_charc_string): New function;
3125         delete `redisplay_text_width_emchar_string'.
3126         (rtw_charc_dynarr): New variable; renamed from
3127         `rtw_emchar_dynarr'.
3128         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3129         `rtw_emchar_dynarr'; use
3130         `convert_bufbyte_string_into_charc_dynarr' instead of
3131         `convert_bufbyte_string_into_emchar_dynarr'; use
3132         `redisplay_text_width_charc_string' instead of
3133         `redisplay_text_width_emchar_string'.
3134         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3135         instead of `rtw_emchar_dynarr'; use
3136         `convert_bufbyte_string_into_charc_dynarr' instead of
3137         `convert_bufbyte_string_into_emchar_dynarr'.
3138         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3139         `redisplay_text_width_charc_string' instead of
3140         `redisplay_text_width_emchar_string'.
3141         (create_text_block): Modify for <struct rune> change.
3142         (generate_formatted_string_db): Likewise.
3143         (create_string_text_block): Likewise.
3144         (pixel_to_glyph_translation): Likewise.
3145
3146         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3147         instead of <const Emchar *>.
3148         (x_text_width): Likewise.
3149         (x_output_display_block): Use <Charc_dynarr *> instead
3150         <Emchar_dynarr *>; modify for <structure rune> change.
3151         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3152         *>.
3153
3154         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3155         <const Emchar *>; use `charc_string_displayed_columns' instead of
3156         `emchar_string_displayed_columns'.
3157         (tty_output_display_block): Use <Charc_dynarr *> instead of
3158         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3159         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3160         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3161         `tty_output_emchar_dynarr_dynarr'.
3162         (tty_output_charc_dynarr): New function; delete
3163         `tty_output_charc_dynarr'.
3164
3165         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3166         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3167         <Emchar_dynarr *> for buf; use
3168         `convert_bufbyte_string_into_charc_dynarr' instead of
3169         `convert_bufbyte_string_into_emchar_dynarr'.
3170
3171         * frame.c (title_string_charc_dynarr): New variable; renamed from
3172         `title_string_emchar_dynarr'.
3173         (generate_title_string): Use `title_string_charc_dynarr' instead
3174         of `title_string_emchar_dynarr'; use
3175         `convert_charc_string_into_malloced_string' instead of
3176         `convert_emchar_string_into_malloced_string'.
3177         (init_frame): Use `title_string_charc_dynarr' instead of
3178         `title_string_emchar_dynarr'.
3179
3180         * console.h:
3181         - Include "character.h".
3182         (struct console_methods): Use <const Charc *> instead of <const
3183         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3184         <Emchar_dynarr *> in output_string_method.
3185
3186         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3187         <Emchar_dynarr *>.
3188
3189         * console-stream.c (stream_text_width): Use <const Charc *>
3190         instead of <const Emchar *>.
3191
3192         * character.h (Charc_dynarr): New type.
3193
3194         * char-ucs.h (structure Charc): New structure; define new type
3195         `Charc'.
3196
3197         * char-lb.h (DECODE_CHAR): New inline function.
3198         (encode_char_1): New inline function.
3199         (ENCODE_CHAR): New macro.
3200         (structure Charc): New structure; define new type `Charc'.
3201
3202         * char-1byte.h (Vcharset_control_1): New macro.
3203         (Vcharset_latin_iso8859_1): New macro.
3204         (DECODE_CHAR): New inline function.
3205         (encode_char_1): New inline function.
3206         (ENCODE_CHAR): New macro.
3207         (structure Charc): New structure; define new type `Charc'.
3208
3209         * insdel.c (find_charsets_in_charc_string): New function; delete
3210         `find_charsets_in_emchar_string'.
3211         (charc_string_displayed_columns): New function; delete
3212         `emchar_string_displayed_columns'.
3213         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3214         `convert_bufbyte_string_into_emchar_dynarr'.
3215         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3216         `convert_charc_string_into_bufbyte_dynarr'.
3217         (convert_charc_string_into_malloced_string): New function; delete
3218         `convert_charc_string_into_malloced_string'.
3219
3220         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3221         `find_charsets_in_emchar_string'.
3222         (charc_string_displayed_columns): New prototype; delete
3223         `emchar_string_displayed_columns'.
3224         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3225         `convert_charc_string_into_bufbyte_dynarr'.
3226         (convert_charc_string_into_malloced_string): New prototype; delete
3227         `convert_charc_string_into_malloced_string'.
3228
3229 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3232
3233 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3234
3235         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3236
3237         * char-ucs.h: Use <short> for <Charset_ID>.
3238
3239         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3240         <Charset_ID>.
3241
3242 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3243
3244         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3245         to 0.16.
3246
3247 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3248
3249         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3250         variable.
3251         (Qmorohashi_daikanwa): New variable.
3252         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3253         for `morohashi-daikanwa' attribute.
3254         (Fget_char_attribute): Likewise.
3255         (Fput_char_attribute): Likewise.
3256         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3257         has the same value of `ideograph-daikanwa'.
3258         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3259         (vars_of_mule_charset): Setup
3260         `Vcharacter_morohashi_daikanwa_table'.
3261
3262 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3263
3264         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3265         attributes.
3266         (add_charset_to_list_mapper): Add `key' instead of
3267         `XCHARSET_NAME (value)' to return aliases.
3268
3269 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3270
3271         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3272         variable.
3273         (Vcharacter_ideographic_strokes_table): New variable.
3274         (Qideographic_radical): New variable.
3275         (Qideographic_strokes): New variable.
3276         (Fchar_attribute_alist): Use
3277         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3278         attribute; use `Vcharacter_ideographic_strokes_table' for
3279         `ideographic-strokes' attribute.
3280         (Fget_char_attribute): Likewise.
3281         (Fput_char_attribute): Likewise.
3282         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3283         `ideographic-strokes'.
3284         (vars_of_mule_charset): Setup
3285         `Vcharacter_ideographic_radical_table' and
3286         `Vcharacter_ideographic_strokes_table'.
3287
3288 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3291         (Qtotal_strokes): New variable.
3292         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3293         `total-strokes' attribute.
3294         (Fget_char_attribute): Likewise.
3295         (Fput_char_attribute): Likewise.
3296         (syms_of_mule_charset): Add new symbol `total-strokes'.
3297         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3298
3299 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3300
3301         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3302         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3303         are found.
3304         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3305         `->decomposition' attribute.
3306         (Fput_char_attribute): Likewise.
3307         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3308
3309 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3310
3311         * mule-charset.c (decoding_table_check_elements): New function.
3312         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3313
3314 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3315
3316         * mule-charset.c (Fset_charset_mapping_table): Use
3317         `put_char_ccs_code_point'.
3318
3319 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3320
3321         * mule-charset.c (decoding_table_put_char): New inline function.
3322         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3323
3324 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3325
3326         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3327         (XCHARSET_BYTE_SIZE): New macro.
3328         (decoding_table_remove_char): New inline function.
3329         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3330         `decoding_table_remove_char'.
3331         (remove_char_ccs): Use `decoding_table_remove_char'.
3332         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3333
3334 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (Vcharacter_name_table): New variable.
3337         (Qname): New variable.
3338         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3339         attribute.
3340         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3341         `Vcharacter_name_table' for `name' attribute.
3342         (Fremove_char_attribute): Use function `remove_char_ccs'.
3343         (put_char_ccs_code_point): New function.
3344         (remove_char_ccs): New function.
3345         (syms_of_mule_charset): Add new symbol `name'.
3346         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3347
3348 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3349
3350         * mule-charset.c (make_byte_table): Add new argument `older'.
3351         (make_char_id_table): Likewise.
3352         (copy_char_id_table): Comment out because it is not used.
3353         (put_char_id_table): Modify for `make_byte_table'.
3354         (Fput_char_attribute): Make encoding_table as older object;
3355         inherit older bit of `Vcharacter_composition_table'.
3356         (mark_charset): Don't mark `cs->encoding_table'.
3357         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3358         normal object; make `Vcharacter_composition_table' as an older
3359         object; delete staticpro for `Vcharacter_composition_table'; make
3360         `Vcharacter_variant_table' as a normal object.
3361
3362         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3363         (mark_object): Don't check older object in UTF-2000.
3364
3365         * lrecord.h (struct lrecord_header): Add new member `older' in
3366         UTF-2000.
3367         (set_lheader_implementation): Setup `SLI_header->older' in
3368         UTF-2000.
3369         (set_lheader_older_implementation): New macro in UTF-2000.
3370         (OLDER_RECORD_P): New macro in UTF-2000.
3371         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3372         (alloc_older_lcrecord): New prototype in UTF-2000.
3373         (alloc_older_lcrecord_type): New macro in UTF-2000.
3374
3375 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3376
3377         * mule-charset.c (byte_table_description): Use
3378         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3379         (char_id_table_description): Delete bogus `, 1'.
3380         (Fget_char_attribute): Refer encoding_table of each coded-charset
3381         to get value of coded-charset attribute of a character.
3382         (Fput_char_attribute): Use `make_older_vector' instead of
3383         `make_vector'; use encoding_table of each coded-charset to store
3384         value of coded-charset attribute of a character.
3385         (Fremove_char_attribute): Use encoding_table of each coded-charset
3386         to store value of coded-charset attribute of a character.
3387         (mark_charset): Mark `cs->encoding_table'; don't mark
3388         `cs->decoding_table'.
3389         (charset_description): Add description of new member
3390         `encoding_table'.
3391         (make_charset): Initialize `encoding_table'.
3392
3393         * char-ucs.h (struct Lisp_Charset): Add new member
3394         `encoding_table'.
3395         (CHARSET_ENCODING_TABLE): New macro.
3396         (XCHARSET_ENCODING_TABLE): New macro.
3397         (charset_code_point): New implementation.
3398         (encode_char_1): Likewise.
3399
3400         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3401         (disksave_object_finalization_1): Call finalizers of
3402         `all_older_lcrecords' in UTF-2000.
3403         (make_older_vector): New function in UTF-2000.
3404         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3405         UTF-2000.
3406
3407         * lisp.h (make_older_vector): New prototype in UTF-2000.
3408
3409 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3410
3411         * lrecord.h (enum lrecord_type): Rename
3412         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3413
3414         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3415         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3416         `get_char_code_table'.
3417
3418         * mule-charset.c (mark_char_id_table): Renamed from
3419         `mark_char_code_table'.
3420         (char_id_table_equal): Renamed from `char_code_table_equal'.
3421         (char_id_table_hash): Renamed from `char_code_table_hash'.
3422         (make_char_id_table): Renamed from `make_char_code_table'.
3423         (copy_char_id_table): Renamed from `copy_char_code_table'.
3424         (get_char_id_table): Renamed from `get_char_code_table'.
3425         (put_char_id_table): Renamed from `put_char_code_table'.
3426         (to_char_id): Renamed from `to_char_code'.
3427
3428         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3429         `Lisp_Char_Code_Table'.
3430         (char_id_table): Renamed from `char_code_table'.
3431         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3432         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3433         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3434         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3435         (get_char_id_table): Renamed from `get_char_code_table'.
3436
3437 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3438
3439         * lrecord.h (enum lrecord_type): Rename
3440         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3441
3442         * mule-charset.c (mark_byte_table): Renamed from
3443         `mark_char_byte_table'.
3444         (byte_table_equal): Renamed from `char_byte_table_equal'.
3445         (byte_table_hash): Renamed from `byte_table_hash'.
3446         (make_byte_table): Renamed from `make_byte_table'.
3447         (copy_byte_table): Renamed from `copy_char_byte_table'.
3448
3449         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3450         `Lisp_Char_Byte_Table'.
3451         (byte_table): Renamed from `char_byte_table'.
3452         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3453         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3454         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3455         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3456
3457 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3458
3459         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3460         (dfc_convert_to_internal_format): Likewise.
3461         
3462         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3463         * text-coding.c (Fcoding_system_alias_p): New function.
3464         * text-coding.c (Fcoding_system_aliasee): New function.
3465         * text-coding.c (append_suffix_to_symbol): New function.
3466         * text-coding.c (dangling_coding_system_alias_p): New function.
3467         * text-coding.c (Ffind_coding_system):
3468         * text-coding.c (Fcopy_coding_system):
3469         * text-coding.c (encode_coding_no_conversion):
3470         * text-coding.c (syms_of_file_coding):
3471         * text-coding.c (vars_of_file_coding):
3472         Rewrite coding system alias code.
3473         Allow nested aliases, like symbolic links.
3474         Allow redefinition of coding system aliases.
3475         Prevent existence of dangling coding system aliases.
3476         Eliminate convert_to_external_format.
3477         Eliminate convert_to_internal_format.
3478         
3479         * text-coding.c: Change enum eol_type to eol_type_t.
3480
3481 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3482
3483         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3484         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3485
3486         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3487         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3488
3489 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3490
3491         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3492         `ideograph-daikanwa'.
3493
3494         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3495         (Vcharset_ucs_bmp): Likewise.
3496         (Vcharset_mojikyo): Add new extern variable definition.
3497         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3498         (Vcharset_latin_iso8859_3): Likewise.
3499         (Vcharset_latin_iso8859_4): Likewise.
3500         (Vcharset_latin_iso8859_9): Likewise.
3501         (Vcharset_latin_viscii_lower): Likewise.
3502         (Vcharset_latin_viscii_upper): Likewise.
3503         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3504         `mojikyo' code-point is used to decode.
3505         (encode_char_2): New function [to convert `mojikyo' code-point to
3506         Mojikyo font encoding].
3507         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3508         (breakup_char_1): Likewise.
3509         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3510
3511 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * text-coding.c (Fmake_coding_system): Add document about
3514         `disable-composition' property.
3515
3516 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3517
3518         * text-coding.c (Qdisable_composition): New variable; delete
3519         `Qcomposite'.
3520         (Fmake_coding_system): Add new property `disable-composite';
3521         delete property `composite'.
3522         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3523         instead of `!CODING_SYSTEM_COMPOSITE'.
3524         (syms_of_file_coding): Add new symbol `disable-composition';
3525         delete symbol `composite'.
3526
3527         * file-coding.h (struct Lisp_Coding_System): Add
3528         `disable_composition'; delete `enable_composition'.
3529         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3530         `CODING_SYSTEM_COMPOSITE'.
3531         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3532         `XCODING_SYSTEM_COMPOSITE'.
3533
3534 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3535
3536         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3537         to 0.15.
3538
3539 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3540
3541         * text-coding.c (Qcomposite): New variable.
3542         (Fmake_coding_system): Add new property `composite'.
3543         (struct decoding_stream): Add `combined_char_count',
3544         `combined_chars' and `combining_table' in UTF-2000.
3545         (COMPOSE_FLUSH_CHARS): New macro.
3546         (COMPOSE_ADD_CHAR): New macro.
3547         (reset_decoding_stream): Reset `str->combined_char_count' and
3548         `str->combining_table' in UTF-2000.
3549         (decode_coding_iso2022): Modify for character-decomposition.
3550         (syms_of_file_coding): Add new symbol `composite'.
3551
3552 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3553
3554         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3555         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3556         of `Vcharacter_composition_table' if `->decomposition' property
3557         has only 1 element.
3558         (Qlatin_tcvn5712): New variable.
3559         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3560         (complex_vars_of_mule_charset): Add new coded-charset
3561         `latin-tcvn5712'.
3562
3563         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3564
3565 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3566
3567         * file-coding.h (struct Lisp_Coding_System): Add
3568         `enable_composition'.
3569         (CODING_SYSTEM_COMPOSITE): New macro.
3570         (XCODING_SYSTEM_COMPOSITE): New macro.
3571
3572 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3573
3574         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3575
3576 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3577
3578         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3579         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3580
3581 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3582
3583         * mule-charset.c (Vcharset_mojikyo): New variable.
3584         (Fdefine_char): Don't use coded-charset which does not have
3585         non-builtin character range to allocate character-id.
3586         (Qmojikyo): New variable.
3587         (syms_of_mule_charset): Add new symbol `mojikyo'.
3588         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3589
3590         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3591         (LEADING_BYTE_MOJIKYO): New macro.
3592         (MIN_CHAR_MOJIKYO): New macro.
3593         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3594         (MAX_CHAR_MOJIKYO): New macro.
3595
3596 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3597
3598         * mule-charset.c (remove_char_attribute): Fixed.
3599
3600 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3601
3602         * mule-charset.c (remove_char_attribute): New function.
3603         (Fremove_char_attribute): New function.
3604         (encode_builtin_char_1): Comment out builtin-support for
3605         greek-iso8859-7 and cyrillic-iso8859-5.
3606         (Fdecode_char): Check `code' is an integer.
3607         (syms_of_mule_charset): Add `remove-char-attribute'.
3608         (MIN_CHAR_GREEK): Deleted.
3609         (MAX_CHAR_GREEK): Likewise.
3610         (MIN_CHAR_CYRILLIC): Likewise.
3611         (MAX_CHAR_CYRILLIC): Likewise.
3612         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3613         MAX_CHAR_GREEK for `greek-iso8859-7'.
3614
3615         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3616         (MAX_CHAR_GREEK): Likewise.
3617         (MIN_CHAR_CYRILLIC): Likewise.
3618         (MAX_CHAR_CYRILLIC): Likewise.
3619
3620 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3621
3622         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3623         format is used without `ucs' property.
3624         (Fdecode_char): Fix problem with GR representation.
3625         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3626         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3627
3628 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3629
3630         * mule-charset.c (make_builtin_char): New function.
3631         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3632         (Fset_charset_mapping_table): Modify for new representation of
3633         code-point.
3634         (Fdecode_char): New function.
3635         (syms_of_mule_charset): Add new builtin function `decode-char' in
3636         UTF-2000.
3637
3638         * char-ucs.h (make_builtin_char): New prototype.
3639         (DECODE_CHAR): New inline function.
3640         (MAKE_CHAR): Use `DECODE_CHAR'.
3641
3642 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3643
3644         * text-coding.c (parse_charset_conversion_specs): Use
3645         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3646         `XCHARSET_TYPE'.
3647         (iso2022_designate): Likewise.
3648
3649         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3650         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3651
3652         * mule-charset.c (Vcharset_ucs): New variable.
3653         (print_charset): Change design; use `CHARSET_CHARS' and
3654         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3655         (make_charset): Change signature to specify `chars' and
3656         `dimension' instead of `type'.
3657         (range_charset_code_point): Modify for 256^n-set.
3658         (encode_builtin_char_1): Encode as `ucs' in default.
3659         (Fmake_charset): Modify for `make_charset'.
3660         (Fmake_reverse_direction_charset): Likewise.
3661         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3662         UTF-2000.
3663         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3664         for `make_charset'.
3665
3666         * char-ucs.h (Vcharset_ucs): New variable.
3667         (LEADING_BYTE_UCS): New macro.
3668         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3669         and `chars' to `unsigned short' from `unsigned int'.
3670         (CHARSET_TYPE): Deleted.
3671         (XCHARSET_TYPE): Deleted.
3672
3673 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3674
3675         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3676
3677         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3678         (ENCODE_CHAR): New macro.
3679
3680 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3681
3682         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3683         to 0.14 (Kawachi-Katakami).
3684
3685 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3686
3687         * text-coding.c (char_encode_shift_jis): Modify for
3688         `charset_code_point'.
3689         (char_encode_iso2022): Likewise.
3690
3691         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3692         (integer) instead of list of <Lisp_Object>s (integers) as the
3693         format of code-point of a coded-charset.
3694         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3695         (encode_builtin_char_1): New function; delete
3696         `split_builtin_char'.
3697         (charset_code_point): Return <int> instead of <Lisp_Object>.
3698         (Fsplit_char): Don't use `SPLIT_CHAR'.
3699
3700         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3701         prototype for `split_builtin_char'.
3702         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3703         (charset_code_point): Likewise.
3704         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3705         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3706
3707 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3708
3709         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3710         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3711
3712 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3715
3716         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3717         (MAX_CHAR_OBS_94x94): Deleted.
3718
3719 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3722
3723         * char-ucs.h (MAX_CHAR_BMP): New macro.
3724
3725 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * text-coding.c: Sync with r21-2-24.
3728
3729 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3730
3731         * file-coding.c: Modify for UTF-2000.
3732
3733 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3734
3735         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3736         to 0.13 (Takaida).
3737
3738 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3739
3740         * mule-charset.c (split_builtin_char): Delete builtin support for
3741         `katakana-jisx0201'.
3742         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3743         BMP area in builtin representation.
3744
3745         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3746         `Vcharset_katakana_jisx0201'.
3747
3748 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3749
3750         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3751         (Qisolated): New variable.
3752         (Qinitial): New variable.
3753         (Qmedial): New variable.
3754         (Qfinal): New variable.
3755         (Qvertical): New variable.
3756         (Qsmall): New variable.
3757         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3758         `Qvertical' and `Qsmall'.
3759         (Qmojikyo_pj_[1 .. 21]): New variable.
3760         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3761         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3762         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3763         .. 21]'.
3764
3765 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3766
3767         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3768         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3769         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3770
3771 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3772
3773         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3774         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3775         BMP.
3776         (Qjapanese_jisx0208_1990): New variable.
3777         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3778         (complex_vars_of_mule_charset): Add new coded-charset
3779         `japanese-jisx0208-1990'.
3780
3781         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3782         (MIN_CHAR_JIS_X0208_1990): New macro.
3783         (MAX_CHAR_JIS_X0208_1990): New macro.
3784
3785 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3786
3787         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3788         coded-charset is not found.
3789
3790 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3791
3792         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3793         (Fdefine_char): Use `Fmake_char'.
3794
3795 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3796
3797         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3798         (Vcharset_hiragana_jisx0208): Deleted.
3799         (Vcharset_katakana_jisx0208): Deleted.
3800         (Qideograph_daikanwa): New variable.
3801         (Qhiragana_jisx0208): Deleted.
3802         (Qkatakana_jisx0208): Deleted.
3803         (split_builtin_char): Split `ideograph-daikanwa'.
3804         (Fsplit_char): New implementation for UTF-2000.
3805         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3806         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3807         (complex_vars_of_mule_charset): Add new coded-charset
3808         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3809         `katakana-jisx0208'.
3810
3811         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3812         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3813         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3814         (MIN_CHAR_DAIKANWA): New macro.
3815         (MAX_CHAR_DAIKANWA): New macro.
3816
3817 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3818
3819         * data.c (Fstring_to_number): Don't recognize floating point if
3820         base is not 10.
3821
3822 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3823
3824         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3825
3826 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3827
3828         * mule-charset.c (Qsquare): New variable.
3829         (to_char_code): Add `Qsquare'.
3830         (syms_of_mule_charset): Add new symbol `square'.
3831
3832 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3833
3834         * mule-charset.c (Qcircle): New variable.
3835         (to_char_code): Add `Qcircle'.
3836         (syms_of_mule_charset): Add new symbol `circle'.
3837
3838 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3839
3840         * mule-charset.c (Qfont): New variable.
3841         (to_char_code): Add `Qfont'.
3842         (syms_of_mule_charset): Add new symbol `font'.
3843
3844 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3845
3846         * mule-charset.c (Qsub): New variable.
3847         (to_char_code): Add `Qsub'.
3848         (syms_of_mule_charset): Add new symbol `sub'.
3849
3850 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3851
3852         * mule-charset.c (Fput_char_attribute): Convert each element of
3853         VALUE to GL position if ATTRIBUTE is a GR-set,
3854
3855 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3856
3857         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3858         coded-charset is a GR-set.
3859
3860 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3861
3862         * mule-charset.c (Fput_char_attribute): Check each element of
3863         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3864
3865 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3866
3867         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3868         UTF-2000.
3869         (Qethiopic_ucs): New variable in UTF-2000.
3870         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3871         (complex_vars_of_mule_charset): Add new coded-charset
3872         `ethiopic-ucs' in UTF-2000.
3873
3874         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3875         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3876         9)'.
3877         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3878         10)'.
3879         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3880
3881 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3882
3883         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3884         `ascii'.
3885
3886 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3887
3888         * mule-charset.c (Vcharacter_variant_table): New variable.
3889         (Q_ucs): New variable.
3890         (Fchar_variants): New function.
3891         (Fput_char_attribute): Register `->ucs' value to
3892         `Vcharacter_variant_table'.
3893         (syms_of_mule_charset): Add new function `char-variants' and new
3894         symbol `->ucs'.
3895         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3896
3897 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3898
3899         * mule-charset.c (get_char_code_table): Allow negative character
3900         code.
3901         (put_char_code_table): Likewise.
3902         (Vcharacter_composition_table): New variable.
3903         (Q_decomposition): New variable.
3904         (Qwide): New variable.
3905         (Qnarrow): New variable.
3906         (Qcompat): New variable.
3907         (QnoBreak): New variable.
3908         (Qsuper): New variable.
3909         (Qfraction): New variable.
3910         (to_char_code): New function.
3911         (Fget_composite_char): New function.
3912         (Fput_char_attribute): Register `->decomposition' value to
3913         `Vcharacter_composition_table'.
3914         (syms_of_mule_charset): Add new function `get-composite-char', new
3915         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3916         `super' and `fraction'.
3917         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3918
3919 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3920
3921         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3922         character; copy the return value.
3923
3924 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3925
3926         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3927
3928         * mule-charset.c (range_charset_code_point): Must use make_int.
3929         (split_builtin_char): New function.
3930
3931 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3932
3933         * mule-charset.c (char_byte_table): Change name from
3934         "char-code-table" to "char-byte-table".
3935         (mark_char_code_table): New function.
3936         (char_code_table_equal): New function.
3937         (char_code_table_hash): New function.
3938         (char_code_table_description): New constant.
3939         (char_code_table): New type.
3940         (make_char_code_table): New function.
3941         (copy_char_code_table): New function.
3942         (get_char_code_table): Modify for `char_code_table' type.
3943         (put_char_code_table): Likewise.
3944         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3945         (Kashiwara).
3946
3947         * char-ucs.h (char_code_table): New type.
3948         (XCHAR_CODE_TABLE): New macro.
3949         (XSETCHAR_CODE_TABLE): New macro.
3950         (CHAR_CODE_TABLE_P): New macro.
3951         (GC_CHAR_CODE_TABLE_P): New macro.
3952         (struct Lisp_Char_Code_Table): New structure.
3953
3954 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3955
3956         * mule-charset.c (Fmake_charset): Setup byte_offset for
3957         {94|96}^n-set.
3958
3959 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3960
3961         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3962         character.
3963
3964 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3965
3966         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3967         is found.
3968
3969 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3970
3971         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3972         charset, it is regarded as a charset.
3973         (put_char_attribute): New function in UTF-2000.
3974         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3975         charset, mapping-table of the charset is modified.
3976         (Fdefine_char): New function in UTF-2000.
3977         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3978         `Fput_char_attribute'.
3979         (syms_of_mule_charset): Add new function `define-char' and new
3980         symbol `ucs' in UTF-2000.
3981         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3982
3983 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3984
3985         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3986         non-UTF-2000 configuration.
3987
3988 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3989
3990         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3991         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3992
3993         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3994         deleted.
3995         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3996         (Fset_charset_mapping_table): Likewise.
3997
3998         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3999         (CHARSET_ENCODING_TABLE): Delete.
4000         (XCHARSET_ENCODING_TABLE): Delete.
4001         (charset_code_point): New interface.
4002
4003 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4004
4005         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4006         instead of `charset_get_byte1' and `charset_get_byte2'.
4007
4008         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4009         (charset_get_byte2): Deleted.
4010
4011 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4012
4013         * char-ucs.h (SPLIT_CHAR): New inline function.
4014         (breakup_char_1): Use `SPLIT_CHAR'.
4015
4016         * mule-charset.c (range_charset_code_point): New function.
4017         (charset_code_point): New function.
4018
4019         * char-ucs.h (range_charset_code_point): New interface.
4020         (breakup_char_1): Use `range_charset_code_point'.
4021
4022 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4023
4024         * mule-charset.c (Fmake_charset): Delete unused local variable
4025         `code_offset'.
4026
4027         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4028         (breakup_char_1): Find a charset and code-point in
4029         `Vcharacter_attribute_table'.
4030
4031 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4034         to 0.10 (Yao).
4035
4036 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4037
4038         * mule-charset.c (Vcharacter_attribute_table): New variable.
4039         (Fchar_attribute_alist): New function.
4040         (Fget_char_attribute): New function.
4041         (Fput_char_attribute): New function.
4042         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4043         too.
4044         (syms_of_mule_charset): Add new function `char-attribute-alist',
4045         `get-char-attribute' and `put-char-attribute'.
4046         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4047
4048 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4049
4050         * mule-charset.c (Fmake_charset): Just use
4051         `get_unallocated_leading_byte'.
4052
4053         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4054         sets; don't use final-byte based number for private sets.
4055
4056 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4057
4058         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4059         integer.
4060
4061 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4062
4063         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4064         to 0.9.
4065
4066 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4067
4068         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4069         of `CHAR_LEADING_BYTE' in UTF-2000.
4070
4071         * insdel.c (find_charsets_in_bufbyte_string): Use
4072         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4073         (find_charsets_in_emchar_string): Likewise.
4074
4075         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4076         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4077
4078         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4079         (CHAR_CHARSET_ID): New macro.
4080
4081 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4082
4083         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4084         charset-id - MIN_LEADING_BYTE.
4085         (put_char_table): Likewise.
4086
4087 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4088
4089         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4090         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4091         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4092         (CHARSET_ID_OFFSET): New macro.
4093         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4094         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4095         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4096         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4097         4).
4098         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4099         5).
4100         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4101         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4102         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4103         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4104         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4105
4106 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4107
4108         * mule-charset.c (next_allocated_leading_byte): New variable in
4109         UTF-2000.
4110         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4111         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4112         (get_unallocated_leading_byte): Simply use
4113         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4114         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4115         UTF-2000.
4116
4117         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4118         (MAX_LEADING_BYTE_PRIVATE): New macro.
4119         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4120         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4121
4122 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4123
4124         * mule-charset.c (Fmake_charset): Allocate final-byte based
4125         charset-id for 94-set, 96-set and 94x94-set.
4126
4127 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4128
4129         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4130         ambiguous `else'.
4131         (Fmake_charset): Likewise.
4132         (complex_vars_of_mule_charset): Modify the font registry of
4133         `ucs-bmp' not to match `Ethiopic-Unicode'.
4134
4135 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4136
4137         * mule-charset.c (complex_vars_of_mule_charset): Add font
4138         registory of `ucs-bmp'.
4139
4140 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4141
4142         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4143         coded-charsets in `default-coded-charset-priority-list' when
4144         breaking up a character.
4145
4146         * mule-charset.c (Vcharset_latin_viscii): New variable.
4147         (Qlatin_viscii): New variable.
4148         (make_charset): Don't use `decoding_table'.
4149         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4150         byte_offset.
4151         (Fset_charset_mapping_table): New implementation.
4152         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4153         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4154         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4155         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4156         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4157         charset `latin_viscii'.
4158
4159         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4160         (CHARSET_TYPE_94X94): Change to 1 from 2.
4161         (CHARSET_TYPE_96): Change to 2 from 1.
4162         (CHARSET_TYPE_128): New macro.
4163         (CHARSET_TYPE_128X128): Change to 5 from 4.
4164         (CHARSET_TYPE_256): New macro.
4165         (CHARSET_TYPE_256X256): Change to 7 from 5.
4166         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4167
4168 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4169
4170         * text-coding.c (char_encode_shift_jis): Refer
4171         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4172         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4173
4174         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4175         (char_byte_table_equal): New function in UTF-2000.
4176         (char_byte_table_hash): New function in UTF-2000.
4177         (char_byte_table_description): New constant in UTF-2000.
4178         (char_byte_table): New type in UTF-2000.
4179         (make_char_byte_table): New function in UTF-2000.
4180         (copy_char_byte_table): New function in UTF-2000.
4181         (make_char_code_table): New macro in UTF-2000.
4182         (get_char_code_table): New function in UTF-2000.
4183         (put_char_code_table): New function in UTF-2000.
4184         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4185         (charset_description): Add setting in UTF-2000.
4186         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4187         `CHARSET_TO_BYTE1_TABLE(cs)'.
4188         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4189         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4190         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4191         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4192         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4193         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4194         `CHARSET_TO_BYTE2_TABLE(cs)'.
4195
4196         * char-ucs.h (char_byte_table): New type.
4197         (XCHAR_BYTE_TABLE): New macro.
4198         (XSETCHAR_BYTE_TABLE): New macro.
4199         (CHAR_BYTE_TABLE_P): New macro.
4200         (GC_CHAR_BYTE_TABLE_P): New macro.
4201         (struct Lisp_Char_Byte_Table): New structure.
4202         (get_char_code_table): New interface.
4203         (Emchar_to_byte_table): Deleted.
4204         (get_byte_from_character_table): Deleted.
4205         (struct Lisp_Charset): Add `encoding_table'; delete
4206         `to_byte1_table' and `to_byte2_table'.
4207         (CHARSET_ENCODING_TABLE): New macro.
4208         (CHARSET_TO_BYTE1_TABLE): Deleted.
4209         (CHARSET_TO_BYTE2_TABLE): Deleted.
4210         (XCHARSET_ENCODING_TABLE): New macro.
4211         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4212         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4213
4214 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4215
4216         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4217         `vietnamese-viscii-*'.
4218
4219 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4220
4221         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4222         (Qvietnamese_viscii_upper): New variable.
4223         (Fdefine_charset_alias): New function.
4224         (syms_of_mule_charset): Add new function `define-charset-alias'.
4225         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4226         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4227         `latin-viscii-*'.
4228
4229 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4230
4231         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4232         (MAX_CHAR_OBS_94x94): New macro.
4233         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4234         for 94x94 sets.
4235
4236         * mule-charset.c (put_byte_from_character_table): Change unit size
4237         from 128 to 256.
4238         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4239         not defined.
4240         (Fmake_reverse_direction_charset): Modify dummy argument of
4241         `make_charset' for non-UTF-2000 environment.
4242
4243 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4244
4245         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4246
4247         * mule-charset.c (destroy_byte_from_character_table): New macro.
4248         (latin_jisx0201_to_ucs): Deleted.
4249         (latin_iso8859_2_to_ucs): Deleted.
4250         (latin_iso8859_3_to_ucs): Deleted.
4251         (latin_iso8859_4_to_ucs): Deleted.
4252         (latin_iso8859_9_to_ucs): Deleted.
4253         (latin_viscii_lower_to_ucs): Deleted.
4254         (latin_viscii_upper_to_ucs): Deleted.
4255         (mark_charset): Mark `cs->decoding_table'.
4256         (Fcharset_mapping_table): Fix DOC-string.
4257         (Fset_charset_mapping_table): New function.
4258         (syms_of_mule_charset): Add nwe function
4259         `set-charset-mapping-table'.
4260         (complex_vars_of_mule_charset): Don't setup and use
4261         `latin_*_to_ucs'.
4262
4263 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4264
4265         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4266         charset.
4267
4268 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4269
4270         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4271         (Vcharset_katakana_jisx0208): New variable.
4272         (Qhiragana_jisx0208): New variable.
4273         (Qkatakana_jisx0208): New variable.
4274         (make_charset): Add new argument `byte_offset'.
4275         (charset_get_byte1): Modify for new coded-charset definition; use
4276         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4277         `XCHARSET_BYTE_OFFSET'.
4278         (Fmake_charset): Modify for `make_charset'.
4279         (Fmake_reverse_direction_charset): Likewise.
4280         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4281         `katakana-jisx0208'.
4282         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4283         `.'  in font registry of charset `katakana-jisx0201',
4284         `latin-jisx0201', `vietnamese-viscii-lower' and
4285         `vietnamese-viscii-upper'; modify DOC-string of charset
4286         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4287         registry of charset `japanese-jisx0208' not to use font for JIS
4288         X0208:1990; add new charset `hiragana-jisx0208' and
4289         `katakana-jisx0208'.
4290
4291         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4292         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4293         (struct Lisp_Charset): Add `byte_offset'.
4294         (CHARSET_BYTE_OFFSET): New macro.
4295         (XCHARSET_UCS_MIN): New macro.
4296         (XCHARSET_UCS_MAX): New macro.
4297         (XCHARSET_CODE_OFFSET): New macro.
4298         (XCHARSET_BYTE_OFFSET): New macro.
4299         (MIN_CHAR_HIRAGANA): New macro.
4300         (MAX_CHAR_HIRAGANA): New macro.
4301         (MIN_CHAR_KATAKANA): New macro.
4302         (MAX_CHAR_KATAKANA): New macro.
4303         (MAKE_CHAR): Modify for new coded-charset definition; use
4304         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4305         `XCHARSET_BYTE_OFFSET'.
4306
4307 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4308
4309         * mule-charset.c (CHAR96): Deleted.
4310         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4311         <Lisp_Object>.
4312         (latin_iso8859_2_to_ucs): Likewise.
4313         (latin_iso8859_3_to_ucs): Likewise.
4314         (latin_iso8859_4_to_ucs): Likewise.
4315         (latin_iso8859_9_to_ucs): Likewise.
4316         (latin_viscii_lower_to_ucs): Likewise.
4317         (latin_viscii_upper_to_ucs): Likewise.
4318         (latin_tcvn5712_to_ucs): Commented out.
4319         (make_charset): Change type of argument `decoding_table' from
4320         <Emchar*> to <Lisp_Object> [vector of characters].
4321         (Fmake_charset): Modify for `make_charset'.
4322         (Fmake_reverse_direction_charset): Likewise.
4323         (Fcharset_mapping_table): New function in UTF-2000.
4324         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4325         UTF-2000.
4326         (complex_vars_of_mule_charset): Modify for type change of
4327         `*_to_ucs'; modify for `make_charset'.
4328
4329         * char-ucs.h (struct Lisp_Charset): Change type of
4330         `decoding_table' from <Emchar*> to <Lisp_Object>.
4331         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4332
4333 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4334
4335         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4336         error with non-UTF-2000-Mule.
4337
4338 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4339
4340         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4341         in lisp again].
4342         (Vcharset_chinese_cns11643_4): Likewise.
4343         (Vcharset_chinese_cns11643_5): Likewise.
4344         (Vcharset_chinese_cns11643_6): Likewise.
4345         (Vcharset_chinese_cns11643_7): Likewise.
4346         (Qchinese_cns11643_3): Likewise.
4347         (Qchinese_cns11643_4): Likewise.
4348         (Qchinese_cns11643_5): Likewise.
4349         (Qchinese_cns11643_6): Likewise.
4350         (Qchinese_cns11643_7): Likewise.
4351         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4352         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4353         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4354         (complex_vars_of_mule_charset): Likewise.
4355
4356 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4357
4358         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4359         96-set.
4360         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4361         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4362
4363 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4364
4365         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4366         0xFF60.
4367         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4368         (breakup_char_1): Likewise.
4369
4370         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4371         one of them includes the specified character.
4372
4373 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4374
4375         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4376
4377 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4378
4379         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4380
4381 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4382
4383         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4384         definition for non-UTF-2000 Mule.
4385         (latin_iso8859_3_to_ucs): Likewise.
4386         (latin_iso8859_4_to_ucs): Likewise.
4387         (latin_iso8859_9_to_ucs): Likewise.
4388         (latin_jisx0201_to_ucs): Likewise.
4389         (MIN_CHAR_THAI): Likewise.
4390         (MAX_CHAR_THAI): Likewise.
4391         (MIN_CHAR_GREEK): Likewise.
4392         (MAX_CHAR_GREEK): Likewise.
4393         (MIN_CHAR_HEBREW): Likewise.
4394         (MAX_CHAR_HEBREW): Likewise.
4395         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4396         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4397         (MIN_CHAR_CYRILLIC): Likewise.
4398         (MAX_CHAR_CYRILLIC): Likewise.
4399
4400 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4401
4402         * char-ucs.h (breakup_char_1): Use
4403         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4404         thai-tis620 and katakana-jisx0201 area.
4405
4406 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4407
4408         * char-ucs.h (breakup_char_1): Use
4409         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4410         area.
4411
4412         * text-coding.c (reset_encoding_stream): Fixed.
4413         (char_encode_ucs4): Delete `& 255'.
4414
4415         * char-ucs.h (breakup_char_1): Use
4416         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4417
4418 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4419
4420         * file-coding.c (Fmake_coding_system): Don't set up
4421         `codesys->fixed.size'.
4422         (encode_coding_no_conversion): Don't refer
4423         `str->codesys->fixed.size'.
4424
4425 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4426
4427         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4428         (latin_a_char_to_byte1): Deleted.
4429         (latin_a_char_to_byte2): Deleted.
4430
4431 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4432
4433         * mule-charset.c (make_charset): Add new argument `ucs_min',
4434         `ucs_max' and `code_offset'.
4435         (charset_get_byte1): New implementation [delete specific charset
4436         depended implementations].
4437         (Fmake_charset): Modify for `make_charset'.
4438         (Fmake_reverse_direction_charset): Likewise.
4439         (complex_vars_of_mule_charset): Likewise.
4440
4441         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4442         `code_offset'.
4443         (CHARSET_UCS_MIN): New macro.
4444         (CHARSET_UCS_MAX): New macro.
4445         (CHARSET_CODE_OFFSET): New macro.
4446         (MAKE_CHAR): Delete charset depended definitions [except
4447         katakana-jisx0201].
4448
4449 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4450
4451         * char-ucs.h (breakup_char_1): Use
4452         `Vdefault_coded_charset_priority_list' for C0-Controls,
4453         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4454
4455 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4456
4457         * char-ucs.h (charset_get_byte1): New function.
4458         (XCHARSET_GET_BYTE1): Deleted.
4459         (charset_get_byte2): New function.
4460         (XCHARSET_GET_BYTE2): Deleted.
4461         (Vdefault_coded_charset_priority_list): New external variable.
4462         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4463         `Vdefault_preferred_coded_charset_list'.
4464
4465         * mule-charset.c (charset_get_byte1): New function.
4466         (charset_get_byte2): New function.
4467         (Vdefault_coded_charset_priority_list): New variable.
4468         (vars_of_mule_charset): Add new variable
4469         `default-coded-charset-priority-list'.
4470
4471 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4472
4473         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4474         (XCHARSET_GET_BYTE2): New inline function.
4475         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4476         `XCHARSET_GET_BYTE2'.
4477
4478 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4479
4480         * mule-charset.c (make_charset): Initialize
4481         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4482         NULL if table is not defined.
4483
4484 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4485
4486         * text-coding.c (char_encode_shift_jis): Use
4487         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4488         `ucs_to_latin_jisx0201'.
4489
4490         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4491         (ucs_to_latin_iso8859_2): Deleted.
4492         (ucs_to_latin_iso8859_3): Deleted.
4493         (ucs_to_latin_iso8859_4): Deleted.
4494         (ucs_to_latin_iso8859_9): Deleted.
4495         (ucs_to_latin_viscii_lower): Deleted.
4496         (ucs_to_latin_viscii_upper): Deleted.
4497         (ucs_to_latin_tcvn5712): Deleted.
4498         (make_charset): Add new argument `decoding_table'; set up
4499         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4500         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4501         `decoding_table' is defined in UTF-2000.
4502         (Fmake_charset): Modify for `make_charset'.
4503         (Fmake_reverse_direction_charset): Likewise.
4504         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4505         and `GENERATE_96_SET'.
4506
4507         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4508         (ucs_to_latin_jisx0201): Deleted.
4509         (latin_iso8859_2_to_ucs): Deleted.
4510         (ucs_to_latin_iso8859_2): Deleted.
4511         (latin_iso8859_3_to_ucs): Deleted.
4512         (ucs_to_latin_iso8859_3): Deleted.
4513         (latin_iso8859_4_to_ucs): Deleted.
4514         (ucs_to_latin_iso8859_4): Deleted.
4515         (latin_iso8859_9_to_ucs): Deleted.
4516         (ucs_to_latin_iso8859_9): Deleted.
4517         (latin_viscii_lower_to_ucs): Deleted.
4518         (ucs_to_latin_viscii_lower): Deleted.
4519         (latin_viscii_upper_to_ucs): Deleted.
4520         (ucs_to_latin_viscii_upper): Deleted.
4521         (struct Lisp_Charset): Renamed `encoding_table' to
4522         `to_byte1_table'; add `to_byte2_table'.
4523         (CHARSET_DECODING_TABLE): New macro.
4524         (CHARSET_TO_BYTE1_TABLE): New macro.
4525         (CHARSET_TO_BYTE2_TABLE): New macro.
4526         (XCHARSET_DECODING_TABLE): New macro.
4527         (XCHARSET_TO_BYTE1_TABLE): New macro.
4528         (XCHARSET_TO_BYTE2_TABLE): New macro.
4529         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4530         tables.
4531         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4532         don't use `ucs_to_*' tables.
4533
4534 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4535
4536         * text-coding.c (Fmake_coding_system): Don't set up
4537         `codesys->fixed.size'.
4538         (encode_coding_no_conversion): Use `if' instead of `switch'.
4539
4540         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4541
4542 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4545         (Fmake_charset): Modify for `make_charset'.
4546         (Fmake_reverse_direction_charset): Likewise.
4547         (complex_vars_of_mule_charset): Likewise.
4548
4549 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * text-coding.c (char_encode_shift_jis): Use table
4552         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4553
4554 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * text-coding.c (text_encode_generic): Use `if' instead of
4557         `switch'.
4558         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4559         decode JIS-Latin.
4560
4561 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * text-coding.c (encode_coding_sjis): Deleted.
4564         (char_encode_shift_jis): New function.
4565         (char_finish_shift_jis): New function.
4566         (reset_encoding_stream): Set up `encode_char' and `finish' for
4567         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4568         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4569         (char_encode_utf8): Treat `eol_type'.
4570
4571 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4572
4573         * file-coding.c (decode_coding_iso2022): Use
4574         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4575
4576 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4577
4578         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4579         to 0.7 (Hirano).
4580
4581 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4582
4583         * char-lb.h (CHAR_COLUMNS): New macro.
4584
4585 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4586
4587         * text-coding.c (char_encode_ucs4): New function.
4588         (char_finish_ucs4): New function.
4589         (encode_coding_ucs4): Deleted.
4590         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4591         (text_encode_generic): Delete local variable `charset' and `half'.
4592         (ucs_to_mule_table): Deleted.
4593         (mule_to_ucs_table): Deleted.
4594         (Fset_ucs_char): Deleted.
4595         (ucs_to_char): Deleted.
4596         (Fucs_char): Deleted.
4597         (Fset_char_ucs): Deleted.
4598         (Fchar_ucs): Deleted.
4599         (decode_ucs4): Deleted.
4600         (mule_char_to_ucs4): Deleted.
4601         (encode_ucs4): Deleted.
4602         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4603         (decode_coding_utf8): Likewise.
4604         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4605         (char_encode_iso2022): Fixed.
4606         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4607         `Fset_char_ucs' and `Fchar_ucs'.
4608         (complex_vars_of_file_coding): Don't initialize
4609         `ucs_to_mule_table'.
4610
4611         * objects-tty.c (tty_initialize_font_instance): Don't use
4612         `XCHARSET_COLUMNS'.
4613
4614         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4615         UTF-2000.
4616
4617         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4618         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4619
4620         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4621         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4622         (emchar_string_displayed_columns): Likewise.
4623
4624         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4625         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4626         (string_column_at_point): Likewise.
4627         (Fmove_to_column): Likewise.
4628
4629         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4630         `encoding_table' and `decoding_table'.
4631         (CHARSET_REP_BYTES): Deleted.
4632         (XCHARSET_REP_BYTES): Deleted.
4633         (XCHARSET_COLUMNS): Deleted.
4634         (CHAR_COLUMNS): New macro.
4635         (lookup_composite_char): Deleted unconditionally.
4636         (composite_char_string): Likewise.
4637
4638 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4639
4640         * char-ucs.h (Emchar_to_byte_table): New type.
4641         (get_byte_from_character_table): New function interface.
4642         (Vcharset_latin_jisx0201): New variable.
4643         (latin_jisx0201_to_ucs): New variable.
4644         (ucs_to_latin_jisx0201): New variable.
4645         (Vcharset_latin_iso8859_2): New variable.
4646         (latin_iso8859_2_to_ucs): New variable.
4647         (ucs_to_latin_iso8859_2): New variable.
4648         (Vcharset_latin_iso8859_3): New variable.
4649         (latin_iso8859_3_to_ucs): New variable.
4650         (ucs_to_latin_iso8859_3): New variable.
4651         (Vcharset_latin_iso8859_4): New variable.
4652         (latin_iso8859_4_to_ucs): New variable.
4653         (ucs_to_latin_iso8859_4): New variable.
4654         (Vcharset_latin_iso8859_9): New variable.
4655         (latin_iso8859_9_to_ucs): New variable.
4656         (ucs_to_latin_iso8859_9): New variable.
4657         (Vcharset_latin_viscii_lower): New variable.
4658         (latin_viscii_lower_to_ucs): New variable.
4659         (ucs_to_latin_viscii_lower): New variable.
4660         (Vcharset_latin_viscii_upper): New variable.
4661         (latin_viscii_upper_to_ucs): New variable.
4662         (ucs_to_latin_viscii_upper): New variable.
4663         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4664         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4665         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4666         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4667         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4668         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4669         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4670         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4671         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4672         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4673
4674         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4675         (Vcharset_latin_viscii_upper): New variable.
4676         (make_byte_from_character_table): New function.
4677         (put_byte_from_character_table): New function.
4678         (get_byte_from_character_table): New function.
4679         (CHAR96): New macro.
4680         (ucs_to_latin_jisx0201): New variable.
4681         (latin_jisx0201_to_ucs): New variable.
4682         (ucs_to_latin_iso8859_2): New variable.
4683         (latin_iso8859_2_to_ucs): New variable.
4684         (ucs_to_latin_iso8859_3): New variable.
4685         (latin_iso8859_3_to_ucs): New variable.
4686         (ucs_to_latin_iso8859_4): New variable.
4687         (latin_iso8859_4_to_ucs): New variable.
4688         (ucs_to_latin_iso8859_9): New variable.
4689         (latin_iso8859_9_to_ucs): New variable.
4690         (ucs_to_latin_viscii_lower): New variable.
4691         (latin_viscii_lower_to_ucs): New variable.
4692         (ucs_to_latin_viscii_upper): New variable.
4693         (latin_viscii_upper_to_ucs): New variable.
4694         (ucs_to_latin_tcvn5712): New variable.
4695         (latin_tcvn5712_to_ucs): New variable.
4696         (Qlatin_viscii_lower): New variable.
4697         (Qlatin_viscii_upper): New variable.
4698         (syms_of_mule_charset): Set up new symbol
4699         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4700         (complex_vars_of_mule_charset): Set up new charset
4701         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4702         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4703         `ucs_to_<CHARSET>' tables.
4704
4705 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4706
4707         * text-coding.c: New file.
4708
4709 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4710
4711         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4712
4713         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4714         (MAKE_CHAR): Modify for `ucs-bmp'.
4715         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4716         non-MULE characters of BMP.
4717
4718 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4719
4720         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4721         to 0.6.
4722
4723 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4724
4725         * lstream.h:
4726         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4727         - Include character.h for `CHAR_ASCII_P'.
4728
4729         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4730
4731         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4732         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4733
4734         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4735         (BYTE_C0_P): Likewise.
4736         (BYTE_C1_P): Likewise.
4737         (Lstream_get_emchar_1): Likewise.
4738         (Lstream_fput_emchar): Likewise.
4739         (Lstream_funget_emchar): Likewise.
4740         (copy_internal_to_external): Likewise.
4741         (copy_external_to_internal): Likewise.
4742
4743         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4744         (BYTE_C0_P): Likewise.
4745         (BYTE_C1_P): Likewise.
4746         (Lstream_get_emchar_1): Likewise.
4747         (Lstream_fput_emchar): Likewise.
4748         (Lstream_funget_emchar): Likewise.
4749         (copy_internal_to_external): Likewise.
4750         (copy_external_to_internal): Likewise.
4751
4752         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4753         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4754
4755         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4756         (BYTE_ASCII_P): Moved to mb-1byte.h.
4757
4758 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4759
4760         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4761
4762         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4763         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4764         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4765         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4766         (VALIDATE_CHARPTR_FORWARD): Likewise.
4767         (simple_charptr_emchar): Moved to mb-multibyte.h.
4768         (simple_set_charptr_emchar): Likewise.
4769         (simple_charptr_copy_char): Likewise.
4770         (non_ascii_charptr_emchar): Likewise.
4771         (non_ascii_set_charptr_emchar): Likewise.
4772         (non_ascii_charptr_copy_char): Likewise.
4773         (charptr_emchar): Moved to mb-*byte.h.
4774         (set_charptr_emchar): Likewise.
4775         (charptr_copy_char): Likewise.
4776
4777         * mb-1byte.h, mb-multibyte.h: New files.
4778
4779 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4780
4781         * mb-utf-8.h (MULTIBYTE): New macro.
4782         (MAX_EMCHAR_LEN): Moved from buffer.h.
4783         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4784
4785         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4786
4787         * mb-lb.h, multibyte.h: New files.
4788
4789         * char-1byte.h (Charset_ID): Moved from buffer.h.
4790         (MIN_LEADING_BYTE): Likewise.
4791         (LEADING_BYTE_ASCII): Likewise.
4792         (NUM_LEADING_BYTES): Likewise.
4793         (CHARSETP): Likewise.
4794         (CHARSET_BY_LEADING_BYTE): Likewise.
4795         (XCHARSET_LEADING_BYTE): Likewise.
4796         (XCHARSET_GRAPHIC): Likewise.
4797         (XCHARSET_COLUMNS): Likewise.
4798         (XCHARSET_DIMENSION): Likewise.
4799         (CHAR_CHARSET): Likewise.
4800         (CHAR_LEADING_BYTE): Likewise.
4801         (BREAKUP_CHAR): Likewise.
4802         (Vcharset_ascii): Likewise.
4803
4804         * buffer.h: Include multibyte.h unconditionally.
4805         (VALID_CHARPTR_P): Moved to multibyte.h.
4806         (ASSERT_VALID_CHARPTR): Likewise.
4807         (REAL_INC_CHARPTR): Likewise.
4808         (REAL_INC_CHARBYTIND): Likewise.
4809         (REAL_DEC_CHARPTR): Likewise.
4810         (INC_CHARPTR): Likewise.
4811         (INC_CHARBYTIND): Likewise.
4812         (DEC_CHARPTR): Likewise.
4813         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4814         (VALIDATE_CHARPTR_FORWARD): Likewise.
4815         (charptr_n_addr): Likewise.
4816         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4817         (simple_charptr_emchar): Moved to 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): Likewise.
4824         (set_charptr_emchar): Likewise.
4825         (charptr_copy_char): Likewise.
4826         (charptr_emchar_n): Likewise.
4827         (Charset_ID): Moved to char-1byte.h.
4828         (Vcharset_ascii): Likewise.
4829         (CHAR_CHARSET): Likewise.
4830         (CHAR_LEADING_BYTE): Likewise.
4831         (LEADING_BYTE_ASCII): Likewise.
4832         (NUM_LEADING_BYTES): Likewise.
4833         (MIN_LEADING_BYTE): Likewise.
4834         (CHARSETP): Likewise.
4835         (CHARSET_BY_LEADING_BYTE): Likewise.
4836         (XCHARSET_LEADING_BYTE): Likewise.
4837         (XCHARSET_GRAPHIC): Likewise.
4838         (XCHARSET_COLUMNS): Likewise.
4839         (XCHARSET_DIMENSION): Likewise.
4840         (BREAKUP_CHAR): Likewise.
4841
4842 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4843
4844         * character.h: Add document about interface for characters.
4845
4846         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4847         (MAKE_CHAR): Delete comment about
4848         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4849         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4850         (BREAKUP_CHAR): Modify name of arguments.
4851         (CHAR_CHARSET): Modify name of argument.
4852
4853         * buffer.h: Delete document about Emchar accessors.
4854
4855 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4856
4857         * character.h (CHAR_INTP): Moved from buffer.h
4858         (CHAR_OR_CHAR_INTP): Likewise.
4859         (XCHAR_OR_CHAR_INT): Likewise.
4860         (CHECK_CHAR_COERCE_INT): Likewise.
4861
4862         * buffer.h (CHAR_INTP): Moved to character.h
4863         (CHAR_OR_CHAR_INTP): Likewise.
4864         (XCHAR_OR_CHAR_INT): Likewise.
4865         (CHECK_CHAR_COERCE_INT): Likewise.
4866
4867 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4868
4869         * character.h:
4870         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4871         - Include char-1byte.h, char-lb.h or char-ucs.h.
4872
4873         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4874
4875         * buffer.h: Include character unconditionally.
4876         (valid_char_p): Moved to char-*.h.
4877         (non_ascii_valid_char_p): Moved to char-lb.h.
4878
4879         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4880
4881 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4882
4883         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4884         in UTF-2000 because it is not ported yet and not to use
4885         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4886         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4887         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4888
4889         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4890         (CHAR_ASCII_P): Moved from character.h.
4891
4892         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4893         (CHAR_ASCII_P): Likewise.
4894         (CHAR_FIELD1_MASK): Deleted.
4895         (CHAR_FIELD2_MASK): Deleted.
4896         (CHAR_FIELD3_MASK): Deleted.
4897         (MAX_CHAR_BASIC_LATIN): New macro.
4898         (CHAR_FIELD1): Deleted.
4899         (CHAR_FIELD2_INTERNAL): Deleted.
4900         (CHAR_FIELD3_INTERNAL): Deleted.
4901         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4902         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4903         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4904         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4905         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4906         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4907         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4908         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4909         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4910         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4911         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4912         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4913         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4914         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4915         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4916         (MIN_CHAR_COMPOSITION): Deleted.
4917         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4918         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4919
4920 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4921
4922         * buffer.h: Include mb-utf-8.h in UTF-2000.
4923
4924         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4925
4926         * mb-utf-8.h: New file.
4927
4928 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4929
4930         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4931         instead of `int'.
4932
4933         * mule-charset.h, buffer.h (Charset_ID): New type.
4934
4935 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4936
4937         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4938         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4939         instead of `MULE_CHAR_PRIVATE_OFFSET',
4940         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4941         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4942         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4943
4944         * character.h (Vcharset_japanese_jisx0212): New variable
4945         definition.
4946
4947 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4948
4949         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4950         (charset_by_attributes): Delete array about direction.
4951         (latin_a_char_to_charset): New variable in UTF-2000.
4952         (latin_a_char_to_byte1): New variable in UTF-2000.
4953         (latin_a_char_to_byte2): New variable in UTF-2000.
4954         (Qucs_bmp): New variable.
4955         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4956         `Bufbyte'.
4957         (next_allocated_2_byte_leading_byte): Likewise.
4958         (non_ascii_set_charptr_emchar): Likewise.
4959         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4960         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4961         `charset_by_attributes'.
4962         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4963         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4964         and `CHARSET_BY_LEADING_BYTE'.
4965         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4966         `utf-2000-version' to `vars_of_mule_charset'.
4967         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4968         define `leading-code-private-11' in UTF-2000; move setting of
4969         `utf-2000-version' from `syms_of_mule_charset'.
4970         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4971         UTF-2000.
4972
4973         * character.h (Charset_ID): New type.
4974         (LEADING_BYTE_UCS_BMP): New macro.
4975         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4976         (CHARSET_ID_OFFSET_94): New macro.
4977         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4978         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4979         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4980         final-byte.
4981         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4982         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4983         (CHARSET_ID_OFFSET_96): New macro.
4984         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4985         CHARSET_ID_OFFSET_96 and final-byte.
4986         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4987         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4988         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4989         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4990         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4991         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4992         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4993         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4994         (LEADING_BYTE_THAI_TIS620): Likewise.
4995         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4996         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4997         (CHARSET_ID_OFFSET_94x94): New macro.
4998         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4999         CHARSET_ID_OFFSET_94x94 and final-byte.
5000         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5001         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5002         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5003         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5004         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5005         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5006         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5007         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5008         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5009         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5010         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5011         (CHARSET_TYPE_128X128): New macro.
5012         (CHARSET_TYPE_256X256): New macro.
5013         (XCHARSET_PRIVATE_P): Delete unconditionally.
5014         (charset_by_attributes): Delete array about direction.
5015         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5016         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5017         (MIN_CHAR_94): New macro.
5018         (MAX_CHAR_94): New macro.
5019         (MIN_CHAR_96): New macro.
5020         (MAX_CHAR_96): New macro.
5021         (MIN_CHAR_94x94): New macro.
5022         (MAX_CHAR_94x94): New macro.
5023         (MIN_CHAR_96x96): New macro.
5024         (MAX_CHAR_96x96): New macro.
5025         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5026         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5027         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5028         - 32)'.
5029         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5030         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5031         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5032         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5033         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5034         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5035         `XCHARSET_LEADING_BYTE' to make code-point.
5036         (latin_a_char_to_charset): New variable.
5037         (latin_a_char_to_byte1): New variable.
5038         (latin_a_char_to_byte2): New variable.
5039         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5040         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5041         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5042
5043         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5044         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5045         (find_charsets_in_emchar_string): Likewise.
5046         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5047
5048         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5049         `int'.
5050         (decode_coding_iso2022): Likewise.
5051
5052         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5053         of `unsigned char'.
5054
5055         * redisplay.c (redisplay_text_width_emchar_string): Use
5056         `Charset_ID' instead of `unsigned char'.
5057         (redisplay_frame_text_width_string): Likewise.
5058
5059         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5060         `unsigned char'.
5061
5062         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5063         instead of `unsigned char'.
5064         (face_cachel_charset_font_metric_info): Likewise.
5065
5066         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5067         (get_non_ascii_char_table_value): Likewise.
5068         (get_char_table): Likewise.
5069         (put_char_table): Likewise.
5070         (map_over_other_charset): Likewise.
5071         (map_char_table): Likewise.
5072
5073         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5074         instead of `unsigned char'.
5075
5076 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5077
5078         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5079         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5080
5081         * mule-charset.c (leading_code_private_11): Don't define in
5082         UTF-2000.
5083
5084         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5085         in UTF-2000 because it is not ported yet and not to use
5086         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5087
5088 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5089
5090         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5091
5092 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5093
5094         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5095         in UTF-2000.
5096
5097         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5098         of unsigned char to store leading-byte.
5099
5100         * chartab.c (get_non_ascii_char_table_value): Don't use
5101         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5102
5103         * file-coding.c (encode_coding_big5): Delete bogus implementation
5104         in UTF2000.
5105
5106         * character.h (LEADING_BYTE_*): Delete definition for
5107         non-UTF-2000.
5108         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5109         (LEADING_BYTE_PREFIX_P): Deleted.
5110         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5111         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5112         (BUFBYTE_LEADING_BYTE_P): Deleted.
5113         (CHARSET_PRIVATE_P): Deleted unconditionally.
5114         (rep_bytes_by_first_byte): Deleted unconditionally.
5115         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5116         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5117         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5118         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5119         (CHAR_FIELD2): Deleted.
5120         (CHAR_FIELD3): Deleted.
5121         (MAKE_CHAR): Delete definition for non-UTF-2000.
5122         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5123         (breakup_char_1): New implementation.
5124         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5125         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5126
5127 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5128
5129         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5130         condition.
5131
5132 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5133
5134         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5135         (CHARSET_PRIVATE_P): Likewise.
5136         (XCHARSET_PRIVATE_P): Likewise.
5137         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5138
5139         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5140         UTF2000.
5141         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5142
5143 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5144
5145         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5146         (NUM_LEADING_BYTES): Changed from 128 to 256.
5147         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5148         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5149         UTF2000.
5150         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5151
5152         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5153         UTF2000.
5154         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5155         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5156         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5157         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5158         (Qchinese_cns11643_3): New variable in UTF2000.
5159         (Qchinese_cns11643_4): New variable in UTF2000.
5160         (Qchinese_cns11643_5): New variable in UTF2000.
5161         (Qchinese_cns11643_6): New variable in UTF2000.
5162         (Qchinese_cns11643_7): New variable in UTF2000.
5163         (syms_of_mule_charset): Define `chinese-cns11643-3',
5164         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5165         and `chinese-cns11643-7' in UTF2000.
5166         (vars_of_mule_charset): Initialize
5167         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5168         + 1 in UTF2000.
5169         (complex_vars_of_mule_charset): Setup charset
5170         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5171         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5172
5173 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5174
5175         * mule-charset.c: Move setting for `leading-code-private-11' from
5176         `syms_of_mule_charset' to `vars_of_mule_charset'.
5177
5178 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5179
5180         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5181         and `NUM_LEADING_BYTES' in assert.
5182
5183 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5184
5185         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5186         instead of 128.
5187         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5188         `NUM_LEADING_BYTES' instead of 128.
5189
5190 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5191
5192         * mule-charset.h (charset_by_leading_byte): Use
5193         `NUM_LEADING_BYTES' instead of 128.
5194         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5195
5196         * mule-charset.c (charset_by_leading_byte): Use
5197         `NUM_LEADING_BYTES' instead of 128.
5198         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5199
5200         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5201         128.
5202
5203 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5204
5205         * mule-charset.c (syms_of_mule_charset): Update to
5206         0.4 (Shin-Imamiya).
5207
5208 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5209
5210         * file-coding.c (encode_coding_sjis): New implementation for
5211         UTF2000.  (decode_coding_sjis): Ditto.
5212
5213 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5214
5215         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5216         Don't define in UTF2000.
5217
5218         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5219         defined.
5220
5221         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5222         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5223         MULE.
5224
5225 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5226
5227         * config.h.in (CHAR_IS_UCS4): New macro.
5228
5229         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5230         conventional MULE representation.
5231         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5232
5233         * mule-charset.h: Reverted to original.
5234
5235         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5236         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5237         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5238
5239         * character.h: New file.
5240
5241         * file-coding.c (Fmake_coding_system): Set 1 to
5242         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5243         defined.
5244         (encode_coding_no_conversion): New implementation for UTF2000.
5245
5246         * file-coding.h (struct Lisp_Coding_System): Add new member
5247         `fixed.size'.
5248
5249 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5250
5251         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5252         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5253         (encode_coding_iso2022): New implementation for UTF2000.
5254
5255 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5256
5257         * mule-canna.c (c2mu): New implementation for UTF2000.
5258         (m2c): Likewise.
5259
5260 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5261
5262         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5263
5264 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5265
5266         * file-coding.c (reset_encoding_stream): Set 0 to
5267         `str->iso2022.current_char_boundary' in UTF2000.
5268         (encode_utf8): Don't define in UTF2000.
5269         (encode_coding_utf8): New implementation for UTF-8 representation
5270         of UTF2000.
5271         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5272
5273 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5274
5275         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5276
5277         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5278         UTF2000.
5279         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5280
5281         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5282
5283         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5284         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5285         as UTF-8 in UTF2000.
5286         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5287         (non_ascii_valid_char_p): Don't define in UTF2000.
5288         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5289         (Lstream_get_emchar_1): Likewise.
5290         (utf-2000-version): New variable in UTF2000.
5291
5292         * lread.c (read_escape): Add new reader `u'.
5293
5294         * insdel.c (three_to_one_table): Don't define in UTF2000.
5295         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5296         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5297         UTF2000.
5298         (bytind_to_bufpos_func): Likewise.
5299         (buffer_mule_signal_inserted_region): Likewise.
5300         (vars_of_insdel): Don't initialize `three_to_one_table'.
5301         (init_buffer_text): Use `buf->text->mule_size' instead of
5302         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5303         UTF2000.
5304
5305         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5306         UTF-8 representation in UTF2000.
5307         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5308         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5309         (decode_coding_iso2022): Don't define local variable `lb' in
5310         UTF2000; don't use LEADING_BYTE in UTF2000; use
5311         `DECODE_ADD_UCS_CHAR' in UTF2000.
5312         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5313
5314         * config.h.in (UTF2000): New macro.
5315
5316         * buffer.h (struct buffer_text): Add new member `mule_size' and
5317         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5318         (valid_char_p): Return always 1 in UTF2000.
5319         (MAX_EMCHAR_LEN): 6 in UTF2000.
5320         (three_to_one_table): Don't define in UTF2000.
5321         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5322         UTF2000.
5323         (real_bytind_to_bufpos): Likewise.
5324
5325         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5326
5327 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5328
5329         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5330         representation change.
5331         (Vutf_2000_version): New variable.
5332         (leading_code_private_11): New variable.
5333         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5334         `leading-code-private-11'.
5335
5336         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5337         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5338         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5339         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5340         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5341         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5342         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5343         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5344         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5345         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5346         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5347         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5348         (MIN_CHAR_GREEK): New macro.
5349         (MAX_CHAR_GREEK): New macro.
5350         (MIN_CHAR_CYRILLIC): New macro.
5351         (MAX_CHAR_CYRILLIC): New macro.
5352         (MIN_CHAR_HEBREW): New macro.
5353         (MAX_CHAR_HEBREW): New macro.
5354         (MIN_CHAR_THAI): New macro.
5355         (MAX_CHAR_THAI): New macro.
5356         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5357         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5358         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5359         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5360         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5361         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5362         (CHAR_FIELD2): New inline function.
5363         (CHAR_FIELD3): New inline function.
5364         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5365         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5366         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5367         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5368         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5369         (MIN_CHAR_COMPOSITION): Likewise.
5370         (CHAR_LEADING_BYTE): Modified for character representation change.
5371         (MAKE_CHAR): Likewise.
5372
5373         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5374         (Vcharset_greek_iso8859_7): Likewise.
5375         (Vcharset_cyrillic_iso8859_5): Likewise.
5376         (Vcharset_hebrew_iso8859_8): Likewise.
5377         (Vcharset_thai_tis620): Likewise.
5378         (Vcharset_katakana_jisx0201): Likewise.
5379
5380 2003-09-03  Vin Shelton <acs@xemacs.org>
5381
5382         * XEmacs 21.4.14 is released
5383
5384 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5385
5386         * config.h.in (REGEX_MALLOC): Make it configure'able.
5387
5388 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5389
5390         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5391         linking.
5392         * sysdll.c (dll_init):
5393         * sysdll.c (dll_open):
5394         * sysdll.c (dll_close):
5395         * sysdll.c (dll_function):
5396         * sysdll.c (dll_variable):
5397         * sysdll.c (dll_error):
5398         Add support for loading bundles using Darwin/MacOSX
5399         native API.
5400
5401 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5402
5403         * process.c (start-process-internal): Document coding systems.
5404
5405 2003-07-30  Jerry James  <james@xemacs.org>
5406
5407         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5408
5409 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5410
5411         * event-msw.c (mswindows_enqueue_mouse_button_event):
5412         * event-msw.c (mswindows_wnd_proc):
5413           enqueue button event when scrollwheel event isn't handled by 
5414           mswindows_handle_mousewheel_event, such as when the scrollbars
5415           are not showing.
5416
5417 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5418
5419         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5420
5421 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5422
5423         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5424
5425 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5426
5427         * regex.c (re_match_2_internal): Fix matching degenerate word
5428         boundaries.
5429
5430 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5431
5432         * XEmacs 21.4.13 is released
5433
5434 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5435
5436         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5437         * lisp.h (<inttypes.h>):
5438         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5439         the definition.
5440
5441 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5442
5443         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5444         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5445         Result: "temacs can only be run in -batch mode."
5446         Fix: Check xemacs executable candidate for directory-ness.
5447
5448 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5449
5450         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5451           they conflict with <sys/types.h>.
5452
5453 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5454
5455         * database.c: Berkeley DB wants __STDC__ to be defined.
5456
5457 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5458
5459         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5460
5461 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5462
5463         * process-unix.c (unix_send_process): Fix C++ compile error.
5464
5465 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5466
5467         * Added .dylib as an acceptable shared library file extension
5468         * to support MacOSX.
5469
5470 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5471
5472         * EmacsFrameP.h (EmacsFramePart):
5473         Kludge to allow compiling with Motif1, but linking with Motif2.
5474
5475 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5476
5477         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5478
5479
5480 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5481
5482         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5483
5484 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5485
5486         * sysdll.c: Included lisp.h to define needed alloca_array.
5487
5488 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5489
5490         Make XEmacs redisplay 10 times faster.
5491         If, that is, you're using a slow X connection and MoveOpaque.
5492         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5493         Use compress_motion = TRUE.
5494         * EmacsFrame.c (emacsFrameClassRec): 
5495         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5496         * EmacsManager.c (emacsManagerClassRec):
5497         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5498
5499 2003-01-30  Vin Shelton  <acs@xemacs.org>
5500
5501         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5502
5503 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5504
5505         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5506         Patch by Martin Buchholz.
5507
5508 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5509
5510         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5511         Thanks to icc for warning and Martin Buchholz for reporting.
5512
5513 2003-01-29  Vin Shelton <acs@xemacs.org>
5514
5515         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5516
5517         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5518         remember to multiply by the element size.
5519
5520 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5521
5522         * XEmacs 21.4.12 "Portable Code" is released.
5523
5524 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5525
5526         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5527         * s/cygwin.sc: new linker file.
5528
5529 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5530
5531         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5532
5533         * redisplay-x.c (x_output_string): Use X11-specified types.
5534         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5535         * emacs.c (__free_hook): Use typeof with Intel compiler.
5536         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5537
5538 2003-01-08  Andy Piper  <andy@xemacs.org>
5539
5540         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5541         reserve size during unexec().
5542
5543 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5544
5545         * process-unix.c (unix_create_process): Don't let outchannel block.
5546
5547 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5548
5549         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5550         Needed for IsBadReadPtr().
5551
5552 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5553
5554         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5555
5556 2002-12-14  Ben Wing  <ben@xemacs.org>
5557
5558         * callint.c: Declaration error.
5559         * dumper.c (pdump):
5560         * dumper.c (pdump_load): Warning fix.
5561         * process.c: GCPRO error.
5562         * glyphs.c (unmap_subwindow):
5563         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5564         * event-stream.c (maybe_kbd_translate): Wrong argument to
5565         character_to_event().
5566
5567         * alloc.c (garbage_collect_1):
5568         * emacs.c:
5569         * emacs.c (debug_can_access_memory):
5570         * emacs.c (fatal_error_signal):
5571         * emacs.c (mswindows_handle_hardware_exceptions):
5572         * emacs.c (main_1):
5573         * emacs.c (main):
5574         * emacs.c (assert_failed):
5575         * emacs.c (syms_of_emacs):
5576         * lisp.h:
5577         * print.c:
5578         * print.c (std_handle_out_va):
5579         * print.c (write_string_to_stdio_stream):
5580         * print.c (write_fmt_string):
5581         * print.c (printing_badness):
5582         * print.c (printing_major_badness):
5583         * print.c (print_internal):
5584         * print.c (debug_print_no_newline):
5585         * print.c (debug_backtrace):
5586         Be more defensive in handling bad values when printing.  Add code
5587         from trunk involving inhibit_non_essential_printing_operations.
5588         When going down or in debug_print(), don't do external conversion
5589         and such and try really, really hard when printing to avoid core
5590         dumping.  Add force-debugging-signal, debug_break().
5591
5592 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5593
5594         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5595         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5596
5597 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5598
5599         * database.c: Fix open_database. Berkeley DB API has changed in
5600         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5601
5602 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5603
5604         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5605
5606 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5607
5608         * event-Xt.c (Xt_timeout):
5609         (Xt_timeout_callback):
5610         (emacs_Xt_add_timeout):
5611         (emacs_Xt_remove_timeout):
5612         (Xt_timeout_to_emacs_event):
5613         Turn completed_timeouts from a stack into a queue.  Fixes
5614         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5615
5616 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5617
5618         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5619         * emacs.c (main): Assert that mmap'd allocation is disabled.
5620
5621 2002-10-14  Andy Piper  <andy@xemacs.org>
5622
5623         * glyphs-widget.c (layout_query_geometry): add in fiddle
5624         factor. Include border text in width layout calculation.
5625         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5626
5627 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5628
5629         * XEmacs 21.4.10 "Military Intelligence" is released.
5630
5631 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5632
5633         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5634         using the NAS private array SoundFileInfo that no longer exists in
5635         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5636         and earlier.  This is broken for some versions between 1.5a and
5637         1.5f.
5638
5639 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5640
5641         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5642
5643         * emacs.c (shut_down_emacs): Improve crash message.
5644
5645 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5646
5647         * file-coding.c (determine_real_coding_system): Check for coding
5648         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5649         shebangs and Python PEP 263.
5650
5651 2002-10-08  Andy Piper  <andy@xemacs.org>
5652
5653         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5654         if static sizes haven't been set.
5655
5656 2002-08-30  Mike Alexander  <mta@arbortext.com>
5657
5658         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5659         to close a socket.
5660
5661 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5662
5663         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5664
5665 2002-09-20  Mike Sperber <mike@xemacs.org>
5666
5667         (This partially gets back my patch from 2002-07-20 without the
5668         bug.)
5669         * callproc.c (child_setup): Remove Ben's comment noting confusion
5670         over the file descriptors >= 3: close_process_descs() doesn't
5671         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5672         * process-unix.c (unix_create_process): Call
5673         begin_dont_check_for_quit to inhibit unwanted interaction (and
5674         thus breaking of X event synchronicity) in the child.
5675
5676 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5677
5678         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5679         widget.
5680
5681 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5682
5683         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5684         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5685         the xemacs process did not exit, but looped infinitely here.  This
5686         fixes that problem.
5687
5688 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5689
5690         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5691         (find_context): Improve comments.
5692
5693         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5694         (re_match_2): An XCHAR_TABLE operation was missing.
5695
5696         Many of the following changes were inspired by Andy Piper's (now
5697         obsolete) patch to make syntax-table text property lookup optional.
5698
5699         [Documentation]
5700
5701         * syntax.h (top level): Document semantics of syntax flags.
5702         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5703         * syntax.c, syntax.h (top level): Document syntax cache better in
5704         comments.
5705
5706         [Instrument syntax caching (temporary change)]
5707
5708         * syntax.h (enum syntax_cache_statistics_functions, struct
5709         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5710         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5711         * syntax.c (scan_words, Fforward_comment, scan_lists,
5712         Fbackward_prefix_characters):
5713         * font-lock.c (find_context):
5714         Use them to instrument syntax caching. 
5715         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5716         syntax_cache_statistics_function_names): New type and variables.
5717         * syntax.c (update_syntax_cache): Update and report statistics.
5718
5719         [Major syntax cache optimizations]
5720
5721         syntax.c (lookup_syntax_properties): Default off.
5722
5723         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5724         * syntax.c (update_syntax_cache):
5725         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5726
5727         [Minor syntax cache optimizations and code clarifications]
5728
5729         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5730         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5731         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5732         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5733         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5734         (Code clarification.)
5735
5736         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5737         scan_lists): Compute code from syncode, use Boolean macros instead
5738         of redundant masking operations.  (Code clarification; any decent
5739         compiler can do this optimization.)
5740
5741         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5742         for clarity.
5743
5744         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5745         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5746         use F*_single_property_change instead of F*_extent_change.
5747         Currently F*_single_property_change is _much_ less efficient.
5748
5749         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5750         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5751         syntax_cache.object properly, don't leave Qt or Qnil.
5752         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5753         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5754         tests for Qt or Qnil.
5755
5756 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5757
5758         * redisplay.c (point_in_line_start_cache): 
5759         * extents.c (print_extent_1):
5760         Fix warnings.
5761
5762         * extents.c (Fset_extent_property): Document `syntax-table' property.
5763
5764         * extents.h (Fnext_single_property_change): EXFUN it.
5765
5766 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5767
5768         * search.c (clear_unused_search_regs): New static function.
5769         (search_buffer): 
5770         (simple_search): 
5771         (boyer_moore):
5772         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5773         Minor clarifications in comments.
5774
5775         * regex.c (re_match_2_internal): Ensure no stale submatches.
5776
5777 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5778
5779         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5780
5781 2002-08-29  Jerry James  <james@xemacs.org>
5782
5783         * lisp.h: structrures -> structures.
5784
5785 2002-06-03  Andy Piper  <andy@xemacs.org>
5786
5787         * frame.c (frame_conversion_internal): add conversion appropriate
5788         for setting frame dimensions in pixels.
5789
5790         * console.h (struct console_methods): add device-specific widget
5791         layout functions.
5792
5793         * emacs.c (main_1): initialize glyph vars.
5794
5795         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5796         (handle_focus_event_2): new function. Allow focus to
5797         be set to a particular window and widget.
5798         (enqueue_focus_event): new function. Create a
5799         synthetic focus event.
5800         (emacs_Xt_handle_magic_event): call
5801         handle_focus_event_2.
5802
5803         * frame.c (Fset_frame_pixel_height): new function. Allow
5804         pixel-based sizing. Does the right thing on character-oriented
5805         displays.
5806         (Fset_frame_pixel_width): ditto.
5807         (Fset_frame_pixel_size): ditto.
5808         (syms_of_frame): declare.
5809
5810         * general-slots.h: add :vertically-justify and
5811         :horizontally-justify.
5812
5813         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5814         (mswindows_widget_border_width): new function.
5815         (mswindows_combo_box_instantiate): set border widths.
5816         (console_type_create_glyphs_mswindows): declare.
5817
5818         * glyphs-widget.c:
5819         (check_valid_justification): allow vertical and horizontal
5820         justification.
5821         (widget_border_width): new function. Call device methods.
5822         (widget_instance_border_width): ditto.
5823         (logical_unit_height): new function. Determine the height of a
5824         logical-unit. Logical units are intended to provide grid-like
5825         layout for subcontrols in a layout. If the layout is
5826         :vertically-justify top then subcontrols will be positioned on
5827         logical-unit boundaries, thus allowing adjacent subcontrols to
5828         line up.
5829         (widget_logical_unit_height): ditto for widgets.
5830         (redisplay_widget): misc cleanup.
5831         (widget_spacing): new function. Call device specific
5832         methods. Intended to be the default gap between adjacent widgets.
5833         (widget_query_geometry): use new spacing functions to determine
5834         appropriate geometry.
5835         (initialize_widget_image_instance): initialize horizontal and
5836         vertical justification.
5837         (widget_instantiate): use logica-units where appropriate for
5838         sizing large widgets.
5839         (button_query_geometry): use widget_instance_border_width.
5840         (tree_view_query_geometry): ditto.
5841         (tab_control_query_geometry): ditto.
5842         (edit_field_query_geometry): new function.
5843         (layout_update): pick up :justify, :horizontally-justify and
5844         :vertically-justify none of which worked previously. :justify is
5845         used as a fallback for both horizontal and vertical justification.
5846         (layout_query_geometry): use logical units to size appropriately.
5847         (layout_layout): ditto.
5848         (Fwidget_logical_to_character_width): new function. Allow users to
5849         convert from logical units to characters so that frame sizes can
5850         be set appropriately.
5851         (Fwidget_logical_to_character_height): ditto.
5852         (syms_of_glyphs_widget): declare.
5853         (image_instantiator_edit_fields): add edit_field_query_geometry.
5854         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5855         :horizontally-justify.
5856         (specifier_vars_of_glyphs_widget): new function. Declare
5857         Vwidget_border_width which is not yet used.
5858
5859         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5860         (x_widget_border_width): new function.
5861         (x_widget_instantiate): create a sensible name for widgets.
5862         (console_type_create_glyphs_x): declare x_widget_border_width.
5863
5864         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5865         (struct Lisp_Image_Instance): add :vertically-justify and
5866         :horizontally-justify.
5867         (LAYOUT_JUSTIFY_TOP): new.
5868         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5869         (ROUND_UP): new macro. Round argument up to next integral
5870         interval.
5871
5872         * redisplay-output.c (redisplay_output_layout): misc formatting.
5873
5874         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5875
5876 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5877
5878         * XEmacs 21.4.9 "Informed Management" is released.
5879
5880 2002-08-19  Andy Piper  <andy@xemacs.org>
5881
5882         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5883         win32 format.
5884
5885         * realpath.c (xrealpath): normalize drive spec also so that dir
5886         sep chars are not mixed on cygwin.
5887
5888 2002-08-06  Jerry James  <james@xemacs.org>
5889
5890         * window.c (Fsplit_window): Count only half of the divider width
5891         against the left window when splitting horizontally. 
5892
5893 2002-06-24  Andy Piper  <andy@xemacs.org>
5894
5895         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5896         toolbar was cleared.
5897
5898         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5899         function. Split out from mswindows_output_frame_toolbars.
5900         (mswindows_output_frame_toolbars): move clear pieces to
5901         mswindows_output_frame_toolbars.
5902
5903         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5904         out from gtk_output_frame_toolbars.
5905         (gtk_output_frame_toolbars): move clear pieces to
5906         gtk_clear_frame_toolbars.
5907
5908         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5909         the frame is cleared. How this ever worked before is a mystery.
5910         (x_output_frame_toolbars): Only output toolbars.
5911         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5912
5913         * gutter.c (update_gutter_geometry):
5914         Mark frame layout changed.
5915         (update_frame_gutter_geometry, update_frame_gutters):
5916         Respect frame_layout_changed.
5917
5918         * console.h (struct console_methods): add
5919         clear_frame_toolbars_method.
5920
5921         * redisplay.c (redisplay_frame): call
5922         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5923
5924         * toolbar.h: declare update_frame_toolbars_geometry.
5925
5926         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5927         out from update_frame_toolbars.  Call clear_frame_toolbars.
5928         (update_frame_toolbars): only output, do not change geometry.
5929
5930         * redisplay.c: add frame_layout_changed.
5931
5932         * redisplay.h: add frame_layout_changed.
5933         (CLASS_RESET_CHANGED_FLAGS): set it.
5934         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5935         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5936         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5937
5938         * device.h (struct device): add frame_layout_changed.
5939         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5940
5941         * frame.h (struct frame): add frame_layout_changed.
5942         (MARK_FRAME_LAYOUT_CHANGED): new.
5943
5944 2002-06-30  Mike Alexander  <mta@arbortext.com>
5945
5946         * event-msw.c (mswindows_need_event): Don't wait for a new message
5947         if the queue is not empty.  Suggested by Paul Moore.
5948
5949 2002-06-12  Andy Piper  <andy@xemacs.org>
5950
5951         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5952         for printing on accurately.
5953
5954 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5955
5956         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5957         WM_ACTIVATE message. Make sure that the frame is visible if the
5958         window is visible. This seemss to fix the problem where XEmacs
5959         appears to freeze after switching desktops with certain virtual
5960         window managers.
5961         (debug_output_mswin_message): Added code to output message
5962         parameters for WM_WINDOWPOSCHANGED, 
5963         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5964
5965 2002-05-25  Andy Piper  <andy@xemacs.org>
5966
5967         * select-x.c (vars_of_select_x): Fix docstring of
5968         x-selection-strict-motif-ownership
5969
5970 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5971
5972         * keymap.c (get_keymap):
5973         Add comment about do_autoload GCPROs own args.
5974
5975 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5976
5977         * bytecode.c (execute_optimized_program): check_opcode ifdef
5978         ERROR_CHECK_BYTE_CODE.
5979
5980 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5981
5982         Thanks to Ben Wing and Michael Sperber.
5983
5984         * eval.c (Fcommand_execute):
5985         (Feval):
5986         (Ffuncall):
5987         (Fmacroexpand_internal):
5988         (function_argcount):
5989         callint.c (Fcall_interactively):
5990         Add comment about do_autoload GCPROs own args.
5991
5992         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5993
5994         * eval.c (Ffuncall): Extra braces to placate GCC.
5995
5996 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5997
5998         * backtrace.h (grow_specpdl):
5999         (SPECPDL_RESERVE):
6000         * EmacsFrame.c (EmacsFrameSetValues):
6001         * eval.c (grow_specpdl):
6002         * ExternalShell.c (hack_event_masks_1):
6003         * glyphs-x.c (convert_EImage_to_XImage): 
6004         (x_finalize_image_instance):
6005         * ralloc.c (page_size):
6006         (r_alloc_sbrk):
6007         * xgccache.c (gc_cache_hash):
6008         Fix unsigned comparison warnings.
6009
6010 2002-07-29  Jerry James  <james@xemacs.org>
6011
6012         * lread.c (locate_file): Any nonnegative return value indicates
6013         success if MODE is nonnegative.
6014
6015 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6016
6017         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6018         argument. 
6019
6020 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6021
6022         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6023
6024         * dumper.c (pdump_get_indirect_count):
6025         (pdump_scan_by_alignment):
6026         (pdump_dump_root_struct_ptrs):
6027         (pdump_dump_rtables):
6028         (pdump_dump_root_objects):
6029         (pdump):
6030         * nas.c (WaveOpenDataForReading):
6031         * fns.c (print_bit_vector):
6032         * font-lock.c (SINGLE_SYNTAX_STYLE):
6033         * glyphs.c (check_for_ignored_expose):
6034         (find_matching_subwindow):
6035         * glyphs-eimage.c:
6036         * imgproc.c (get_histogram):
6037         * redisplay.c (point_in_line_start_cache):
6038         * redisplay-output.c (redisplay_unmap_subwindows):
6039         * symbols.c (defsymbol_massage_name_1):
6040         (defkeyword_massage_name):
6041         (deferror_massage_name_and_message):
6042         * redisplay-x.c (x_output_string): 
6043         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6044         * frame.h (struct frame):
6045         * filelock.c (current_lock_owner):
6046         * doprnt.c (emacs_doprnt_1):
6047         * lisp.h (struct Lisp_Bit_Vector):
6048         (DO_REALLOC):
6049         Fix warnings.
6050
6051 2002-02-13  Ben Wing  <ben@xemacs.org>
6052
6053         * event-stream.c (reset_key_echo):
6054         * event-stream.c (reset_this_command_keys):
6055         * event-stream.c (execute_command_event):
6056         If console is dead as a result of C-x 5 0, then post-command stuff
6057         needs to be careful and do only non-console-specific stuff.
6058
6059 2002-07-01  Mike Sperber <mike@xemacs.org>
6060
6061         * process-unix.c (unix_send_process): Mark coding_outstream as
6062         non-open upon SIGPIPE.
6063
6064         * event-stream.c (Fnext_event): Reorder switch cases to something
6065         that makes sense.
6066
6067 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6068
6069         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6070         Don't bogusly reinitialize ascii_character property.
6071
6072 2002-07-08  Mike Sperber <mike@xemacs.org>
6073
6074         * process.c (Fstart_process_internal): Do error checking before we
6075         fork off the child, so the child can't muck with the state of the
6076         parent.
6077
6078 2002-07-08  Mike Sperber <mike@xemacs.org>
6079
6080         * ralloc.c (init_ralloc): Allocate properly for pdump.
6081
6082 2002-06-12  Andy Piper  <andy@xemacs.org>
6083
6084         * glyphs.c (query_string_geometry): check the string.
6085
6086         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6087         widget names.
6088
6089 2002-06-17  Jerry James  <james@xemacs.org>
6090
6091         * sysdll.c: Remove RTLD_GLOBAL initialization.
6092         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6093
6094 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6095
6096         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6097
6098 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6099
6100         * sysdep.c (sys_rename): Make sys_rename work for the case where
6101         Windows rename sets errno to EACCES if target file exists.
6102
6103 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6104
6105         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6106         Fix detection of metric units to work on Win95
6107
6108 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6109
6110         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6111
6112 2002-04-25  Andy Piper  <andy@xemacs.org>
6113
6114         * redisplay.c (create_text_block): Remove extra comment trailer.
6115
6116 2002-04-24  Andy Piper  <andy@xemacs.org>
6117
6118         * redisplay.c (create_text_block): Don't actually add propagation
6119         data if the line ends after we have added a glyph.
6120
6121 2002-04-22  Andy Piper  <andy@xemacs.org>
6122
6123         * extents.c (extent_fragment_update): check for glyphs we have
6124         previously displayed.
6125         * extents.c (print_extent_1): warning removal.
6126         * extents.h: change prototype.
6127         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6128         widths correctly for wide glyphs.
6129         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6130         * redisplay.c (prop_type): add PROP_GLYPH.
6131         * redisplay.c (struct prop_block): add glyph type
6132         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6133         to the propagation data.
6134         * redisplay.c (create_text_block): if there is a glyph in the
6135         propagation data use it to salt extent_fragment_update.
6136         * redisplay.c (create_string_text_block): ditto.
6137
6138 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6139
6140         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6141         * redisplay-output.c (compare_runes): Compare them.
6142         * redisplay.c: Update copyright date.
6143         * redisplay.c (pos_data): Add need_baseline_computation field.
6144         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6145         need_baseline_computation; zero yoffset. Set max_pixmap_height
6146         for all pixmaps, not just automatically positioned ones.
6147         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6148         * redisplay.c (calculate_baseline): New, compute textual baseline.
6149         * redisplay.c (add_glyph_rune): Call them.
6150         * redisplay.c (create_text_block): Likewise.
6151         * redisplay.c (create_overlay_glyph_block): Likewise.
6152         * redisplay.c (add_margin_runes): Likewise.
6153         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6154
6155         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6156         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6157         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6158         * redisplay-msw.c (mswindows_output_string): Likewise.
6159         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6160         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6161         * redisplay-x.c (x_output_display_block): Likewise.
6162
6163 2002-03-28  Ben Wing  <ben@xemacs.org>
6164
6165         * redisplay.c: Fixed bug in redisplay
6166         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6167         and down of the lines, since they're bigger than the line
6168         size. (It was seen most obviously when there's a horizontal scroll
6169         bar, e.g. do C-h a glyph or something like that.) The problem was
6170         that the glyph-contrib-p setting on glyphs was ignored even if it
6171         was set properly, which it wasn't until now.
6172
6173 2002-04-24  Andy Piper  <andy@xemacs.org>
6174
6175         * lisp.h (Dynarr_end): Fix definition.
6176
6177 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6178
6179         * redisplay.c (mark_redisplay): Remove call to
6180         update_frame_window_mirror.
6181
6182 2001-11-15  Andy Piper  <andy@xemacs.org>
6183
6184         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6185         cygwin (again).
6186
6187 2002-02-13  Andy Piper  <andy@xemacs.org>
6188
6189         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6190         we did in fact enqueue the XM_MAPFRAME event.
6191
6192 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6193
6194         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6195         to fix problem switching between virtual desktops under virtuawin
6196         virtual window manager.
6197
6198 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6199
6200         * event-msw.c: Typo fix.
6201         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6202         magic XM_MAPFRAME event has been sent.
6203
6204 2001-11-23  Andy Piper  <andy@xemacs.org>
6205
6206         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6207
6208 2001-11-21  Andy Piper  <andy@xemacs.org>
6209
6210         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6211         mouse events outside the frame.
6212
6213 2002-03-20  Andy Piper  <andy@xemacs.org>
6214
6215         * menubar-msw.c (mswindows_popup_menu): warning removal.
6216         * dialog-msw.c (dialog_popped_down): ditto.
6217
6218 2001-12-11  Andy Piper  <andy@xemacs.org>
6219
6220         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6221         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6222         popup_up_p.
6223         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6224         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6225         * menubar-msw.c (mswindows_popup_menu): ditto.
6226
6227 2001-10-29  Andy Piper  <andy@xemacs.org>
6228
6229         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6230         cancels.
6231
6232 2002-01-03  Andy Piper  <andy@xemacs.org>
6233
6234         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6235         letters.
6236         (xrealpath): ditto.
6237
6238 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6239
6240         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6241         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6242         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6243         Detect and handle case where machine is set up for metric units
6244
6245 2002-04-02  Andy Piper  <andy@xemacs.org>
6246
6247         * dired-msw.c (mswindows_get_files): 
6248         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6249         completely handled by XEmacs. Suggested by Thomas Vogler
6250         <mail@thomas-vogler.de>.
6251
6252 2001-11-14  Andy Piper  <andy@xemacs.org>
6253
6254         * nt.c (REG_ROOT): change registry key to XEmacs.
6255
6256 2002-04-27  Andy Piper  <andy@xemacs.org>
6257
6258         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6259
6260 2002-04-26  Andy Piper  <andy@xemacs.org>
6261
6262         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6263         behavior.
6264
6265 2002-03-14  Mike Alexander  <mta@arbortext.com>
6266
6267         * event-msw.c (mswindows_unwait_process): New, remove process from
6268         wait list
6269         * process-nt.c (nt_finalize_process_data): Call
6270         mswindows_unwait_process
6271         * console-msw.h: Declare mswindows_unwait_process
6272
6273 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6274
6275         * editfns.c (Fdecode_time):
6276         (Fformat_time_string):
6277         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6278         (make_time): Warning elimination (change arg name).
6279
6280 2001-11-24  Andy Piper  <andy@xemacs.org>
6281
6282         * window.c (Fsplit_window): Doc return type.
6283
6284 2002-04-01  Andy Piper  <andy@xemacs.org>
6285
6286         * emacs.c (Fkill_emacs): Only output message box in interactive
6287         mode.
6288
6289 2002-04-26  Andy Piper  <andy@xemacs.org>
6290  
6291         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6292         cygwin.
6293
6294 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6295
6296         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6297         bit platform.
6298
6299 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6300
6301         * XEmacs 21.4.8 "Honest Recruiter" is released.
6302
6303 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6304
6305         Supersedes 2002-04-17 patch.
6306
6307         * process.h (PROCESS_LIVE_P): Use the process status as
6308         evidence of health, not the state of the input stream.
6309         (PROCESS_READABLE_P): Say if the process is readable
6310         from. (It may be dead nonetheless.)
6311         (CHECK_READABLE_PROCESS): Test for that condition.
6312
6313         * process.c (create_process): Use PROCESS_READABLE_P.
6314         (read_process_output, set_process_filter): Likewise.
6315
6316         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6317         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6318
6319         This code is #if 0'd, this is not the time to add new functions:
6320
6321         * process.c (Fprocess_readable_p): Report readability status.
6322         * process.c (Qprocess_readable_p): New, associated symbol...
6323         * process.c (syms_of_process): ... initialize it.
6324
6325 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6326
6327         * XEmacs 21.4.7 "Economic Science" is released.
6328
6329 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6330
6331         * process.h (PROCESS_LIVE_P): Use the process status as
6332         evidence of health, not the state of the input stream.
6333
6334 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6335
6336         * sysdep.c (sys_siglist): change "signum" to "signal"
6337
6338 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6339
6340         * s/darwin.h: New file.
6341         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6342         
6343 2002-04-23  Andreas Jaeger  <aj@suse.de>
6344
6345         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6346         which use lib64 for 64-bit libs.
6347         (START_FILES): Likewise.
6348
6349 2002-02-11  Mike Sperber  <mike@xemacs.org>
6350
6351         * device-x.c: 
6352         (x_IO_error_handler):
6353         (x_init_device): Temporarily keep device in static variable
6354         `device_being_initialized' so we can recover gracefully from
6355         internal XOpenDevice failure.  (XOpenDevice is documented to
6356         return NULL on failure, but sometimes calls the IO error handler
6357         instead.)
6358
6359 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6360
6361         * dired.c (Ffile_name_all_completions): Change documentation --
6362         remove reference to completion-ignored-extensions.
6363         * dired.c (vars_of_dired): Change documentation for
6364         completion-ignored-extensions -- remove reference to
6365         file-name-all-completions.
6366
6367 2002-03-06  Jerry James  <james@xemacs.org>
6368
6369         * emodules.c (emodules_load): Fix multiple loading of same module.
6370
6371 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6372         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6373         RTLD_LAZY to avoid incorrect symbol binding when using nested
6374         shared libraries on Solaris.
6375
6376 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6377
6378         * fileio.c (Ffind_file_name_handler): Improve docstring.
6379
6380 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6381
6382         * fns.c (Fmapconcat): Improve docstring.
6383
6384 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6385
6386         * device-gtk.c: Add prototype for
6387         emacs_gtk_selection_clear_event_handle.
6388         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6389         selection.  Setup signal handler for "selection_clear_event"
6390         (emacs_gtk_selection_clear_event_handle).
6391
6392         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6393         other applications owning the clipboard (based on
6394         x_handle_selection_clear).
6395
6396 2001-12-23  William M. Perry  <wmperry@gnu.org>
6397
6398         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6399         
6400 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6401
6402         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6403
6404 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6405
6406         * XEmacs 21.4.6 "Common Lisp" is released.
6407
6408 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6409
6410         * search.c (Freplace_match): Add missing sub-expression functionality.
6411
6412         * buffer.c (decode_buffer): Add a check for pointer type to
6413         decode_buffer, before gcc's CSE optimization reorders a
6414         dereference in front of the allow_string test.
6415
6416 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6417
6418         * window.c (window_loop): Fix bug that sometimes prevented
6419         window_loop() from iterating across multiple devices.  Also, at
6420         Ben's request, changed infloop-detecting code to abort() instead
6421         of silently terminating window_loop().
6422
6423 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6424
6425         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6426         * editfns.c (make_time): New function.
6427         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6428         * lisp.h (make_time): Prototype and comment it.
6429         * dired.c (wasteful_word_to_lisp): Deprecate.
6430         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6431
6432 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6433
6434         * fileio.c (auto_save_1): Use current coding system, not
6435         escape-quoted.
6436
6437 2001-11-13  Ben Wing  <ben@xemacs.org>
6438
6439         * window.c:
6440         * window.c (window_truncation_on):
6441         * window.c (syms_of_window):
6442         truncate-partial-width-windows should respect the buffer being
6443         displayed, like other redisplay vars.
6444
6445 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6446
6447         * event-stream.c (Fread_key_sequence): save current buffer.
6448
6449 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6450
6451         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6452
6453 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6454
6455         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6456
6457 2001-10-26  Mike Alexander  <mta@arbortext.com>
6458
6459         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6460
6461 2001-10-25  Andy Piper  <andy@xemacs.org>
6462
6463         * ChangeLog:
6464         * dialog-msw.c (handle_directory_proc): new function.
6465          (handle_directory_dialog_box): new fucntion.
6466          (handle_file_dialog_box): use new directory dialog support.
6467          (mswindows_make_dialog_box_internal): ditto.
6468         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6469         handling.
6470         (mswindows_find_frame): make global.
6471         * fileio.c (Fexpand_file_name): build fix.
6472         * general-slots.h: add Qdirectory.
6473         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6474         handling.
6475         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6476         cygwin not leaving win32 paths unchanged.
6477         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6478         cygwin runtime to do path conversion.
6479         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6480         (syms_of_win32): add new function.
6481         * window.c (window_loop): build fix.
6482
6483 2001-10-15  Andy Piper  <andy@xemacs.org>
6484
6485         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6486
6487 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6488
6489         * XEmacs 21.4.5 "Civil Service" is released.
6490
6491 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6492
6493         * glyphs-x.c: Force buffer-tab highlight update when moving the
6494         buffer, avoiding an ugly black border, used for keyboard focus
6495         indication, on a widget that can never have keyboard focus, the
6496         buffer tab.
6497
6498 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6499
6500         * process-unix.c (unix_open_multicast_group): Remove too much
6501         conversion between host and network byte order.
6502
6503 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6504
6505         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6506         before replacing them.
6507
6508         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6509         operation.
6510
6511         * src/window.c (undedicate_windows): Use it.
6512         * src/window.h: Add prototype.
6513
6514 2001-09-17  Ben Wing  <ben@xemacs.org>
6515
6516         * fileio.c (normalize_filename):
6517         * fileio.c (Fexpand_file_name):
6518         Fix various C++ compile errors in Andy's recent code.
6519         
6520         * callint.c (Fcall_interactively):
6521         * editfns.c (Ftemp_directory):
6522         * editfns.c (Fuser_full_name):
6523         * emacs.c (argmatch):
6524         * lread.c (locate_file_map_suffixes):
6525         * redisplay-x.c (x_ring_bell):
6526         Fix sign-compare warnings.
6527         
6528 2001-09-08  Andy Piper  <andy@xemacs.org>
6529
6530         * fileio.c (normalize_filename): copied from nt.c
6531         * (Ffile_name_directory): enable win32 paths under cygwin.
6532         * (Ffile_name_nondirectory): ditto.
6533         * (directory_file_name): ditto.
6534         * (Fexpand_file_name): ditto.
6535         * (Ffile_truename): ditto.
6536         * (Fsubstitute_in_file_name): ditto.
6537         * (Ffile_name_absolute_p): ditto.
6538         * (Ffile_readable_p): ditto.
6539
6540 2001-09-08  Andy Piper  <andy@xemacs.org>
6541
6542         * device-msw.c (mswindows_finish_init_device): remove dde
6543         initialization.
6544         * device-msw.c (mswindows_init_dde): factor out from
6545         mswindows_finish_init_device()
6546         * device-msw.c (init_mswindows_very_early): new function
6547         initialize but don't enable dde.
6548         * emacs.c (main_1): call init_mswindows_very_early.
6549         * event-msw.c:
6550         * event-msw.c (mswindows_dde_callback): only execute when we are
6551         ready.
6552         * symsinit.h: declare init_mswindows_very_early.
6553
6554 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6555
6556         [sjt: This has been in 21.5 for months with no complaints.]
6557
6558         * console.h (struct console_methods): Added flags member.
6559         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6560         (CONMETH_IMPL_FLAG):
6561         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6562         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6563
6564         * device.c (window_system_pixelated_geometry): Use the above macros.
6565
6566         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6567         implememntation flag.
6568         * device.h (DEVICE_DISPLAY_P): Use it.
6569
6570         * frame.c (delete_frame_internal): Use the above macro.
6571
6572         * redisplay.c (redisplay_device): Use it.
6573         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6574         (redisplay_frame): Ditto.
6575
6576         * device-msw.c (mswindows_device_implementation_flags): Removed.
6577         (msprinter_device_implementation_flags): Removed.
6578         (console_type_create_device_mswindows): Removed references to
6579         implementation_flags methods, set implementation flags here.
6580         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6581
6582         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6583         (console_type_create_device_gtk): Removed method declaration.
6584         Added commented out statement which semantically matches the
6585         commented out statement in the above removed method.
6586
6587 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6588
6589         The attached patch fixes a few warnings. 
6590
6591         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6592         * src/frame-gtk.c: guard against GNOME calls in GTK only
6593         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6594         * src/select-gtk.c: prototype lisp_to_time
6595
6596 2001-06-08  Ben Wing  <ben@xemacs.org>
6597
6598         ------ gc-in-window-procedure fixes ------
6599         
6600         * alloc.c:
6601         * alloc.c (struct post_gc_action):
6602         * alloc.c (register_post_gc_action):
6603         * alloc.c (run_post_gc_actions):
6604         * alloc.c (garbage_collect_1):
6605         Create "post-gc actions", to avoid those dreaded "GC during window
6606         procedure" problems.
6607
6608         * event-msw.c:
6609         Abort, clean and simple, when GC in window procedure.  We want
6610         to flush these puppies out.
6611
6612         * glyphs-msw.c:
6613         * glyphs-msw.c (finalize_destroy_window):
6614         * glyphs-msw.c (mswindows_finalize_image_instance):
6615         Use a post-gc action when destroying subwindows.
6616
6617         * lisp.h:
6618         Declare register_post_gc_action().
6619
6620         * scrollbar-msw.c:
6621         * scrollbar-msw.c (unshow_that_mofo):
6622         Use a post-gc action when unshowing scrollbar windows, if in gc.
6623
6624         * redisplay.c (mark_redisplay):
6625         Add comment about the utter evilness of what's going down here.
6626
6627         ------ cygwin setitimer fixes ------
6628         
6629         * Makefile.in.in (sheap_objs):
6630         * Makefile.in.in (profile_objs):
6631         * Makefile.in.in (objs):
6632         Compile profile.c only when HAVE_SETITIMER.
6633         
6634         * nt.c (mswindows_sigset):
6635         * nt.c (mswindows_sighold):
6636         * nt.c (mswindows_sigrelse):
6637         * nt.c (mswindows_sigpause):
6638         * nt.c (mswindows_raise):
6639         * nt.c (close_file_data):
6640         Style fixes.
6641         
6642         * nt.c:
6643         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6644         
6645         * profile.c:
6646         * profile.c (Fstart_profiling):
6647         * profile.c (Fstop_profiling):
6648         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6649         instead of just plain setitimer().
6650         
6651         * signal.c:
6652         * signal.c (set_one_shot_timer):
6653         * signal.c (alarm):
6654         Define qxe_setitimer() as an encapsulation around setitimer() --
6655         call setitimer() directly unless Cygwin or MS Win, in which case
6656         we use our simulated version in win32.c.
6657         
6658         * systime.h:
6659         * systime.h (struct itimerval):
6660         * systime.h (ITIMER_REAL):
6661         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6662         comment about "qxe" and the policy regarding encapsulation.
6663
6664         * win32.c:
6665         * win32.c (setitimer_helper_proc):
6666         * win32.c (setitimer_helper_period):
6667         * win32.c (setitimer_helper):
6668         * win32.c (mswindows_setitimer):
6669         Move setitimer() emulation here, so Cygwin can use it.
6670         Rename a couple of functions and variables to be longer and more
6671         descriptive.  In setitimer_helper_proc(), send the signal
6672         using either mswindows_raise() or (on Cygwin) kill().  If for
6673         some reason we are still getting lockups, we'll change the kill()
6674         to directly invoke the signal handlers.
6675
6676         ------ windows shell fixes ------
6677         
6678         * callproc.c:
6679         * ntproc.c:
6680         Comments about how these two files must die.
6681
6682         * callproc.c (init_callproc):
6683         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6684         not just COMSPEC. (more correct and closer to FSF.) Don't
6685         force a value for SHELL into the environment. (Comments added
6686         to explain why not.)
6687         
6688         * nt.c (init_user_info):
6689         Don't shove a fabricated SHELL into the environment.  See above.
6690
6691 2001-06-01  Ben Wing  <ben@xemacs.org>
6692
6693         * Makefile.in.in (ldflags):
6694         eliminate that pesky "defaulting to 00401000" warning.
6695         * nt.h:
6696         eliminate warnings.
6697
6698 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6699
6700         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6701         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6702
6703 2001-04-24  Jerry James <james@xemacs.org>
6704
6705         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6706         correct order.
6707
6708 2001-06-01  Ben Wing  <ben@xemacs.org>
6709
6710         * event-msw.c (debug_mswin_messages):
6711         conditionalize the messages that were causing compile errors.
6712         (if only macros could generate #ifdef statements ...)
6713
6714 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6715
6716         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6717
6718 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6719
6720         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6721
6722 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6723
6724         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6725         * process-unix.c (unix_canonicalize_host_name):
6726         sysdep.c (init_system_name):
6727         Use it to conditionally support IPv6 canonicalization.
6728
6729 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6730
6731         * event-msw.c:
6732         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6733
6734 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6735
6736         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6737         attempt is made to scroll when no scroll bar is available.
6738
6739 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6740
6741         * input-method-motif.c (XIM_delete_frame): New callback.
6742         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6743         got deleted from 21.4.3.)
6744
6745 2001-06-01  Ben Wing  <ben@xemacs.org>
6746
6747         * nt.c (mswindows_utime):
6748         * nt.c (close_file_data):
6749         fix off-by-one-indirection error.
6750
6751 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6752
6753         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6754         because set_file_times() now takes Lisp_Object path, instead of
6755         char*.
6756         * nt.c: Include buffer.h.
6757         * nt.c (convert_from_time_t): New.
6758         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6759         not set mtime correctly.
6760         * nt.h: Declare mswindows_utime().
6761         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6762         path, instead of char*.
6763         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6764
6765 2001-05-30  Ben Wing  <ben@xemacs.org>
6766
6767         For 21.4:
6768
6769         (Stephen, just take all event-msw.c patches.  This includes
6770         the "iconify" fix below.)
6771
6772         * event-msw.c:
6773         * event-msw.c (mswindows_dequeue_dispatch_event):
6774         * event-msw.c (assert):
6775         * event-msw.c (emacs_mswindows_quit_p):
6776         * event-msw.c (debug_mswin_messages):
6777         * event-msw.c (debug_output_mswin_message):
6778         * event-msw.c (vars_of_event_mswindows):
6779         Fix yet more problems with C-g handling.
6780         Implement debug-mswindows-events.
6781         
6782 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6783
6784         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6785         
6786 2001-05-23  Ben Wing  <ben@xemacs.org>
6787
6788         * event-msw.c (winsock_writer):
6789         * event-msw.c (winsock_closer):
6790         prior kludgy code was clobbering the buffer, thinking it was
6791         "unused" space to store an unneeded return value; instead, use
6792         the variable we've already got staring us in the face.
6793
6794 2001-05-17  Andy Piper  <andy@xemacs.org>
6795
6796         * sysfile.h: don't assume that file attributes are boolean
6797
6798 2001-05-23  Ben Wing  <ben@xemacs.org>
6799
6800         * device-msw.c (msprinter_init_device):
6801         signal an error rather than crash with an unavailable network
6802         printer (from Mike Alexander).
6803         
6804         * event-msw.c:
6805         * event-msw.c (struct winsock_stream):
6806         * event-msw.c (winsock_writer):
6807         * event-msw.c (winsock_closer):
6808         * event-msw.c (make_winsock_stream_1):
6809         cleanup headers.  fix (hopefully) an error with data corruption
6810         when sending to a network connection.
6811
6812         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6813         to handle the ~user prefix by (a) always assuming we're referencing
6814         ourselves and not even verifying the user -- hence any file with
6815         a tilde as its first char is invalid! (b) if there wasn't a slash
6816         following the filename, the pointer was set *past* the end of
6817         file and we started reading from uninitialized memory.  Now we
6818         simply treat these as files, always.
6819
6820         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6821         
6822 2001-05-19  Ben Wing  <ben@xemacs.org>
6823
6824         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6825
6826         * process-nt.c:
6827         * process-nt.c (vars_of_process_nt):
6828         remove unused mswindows-quote-process-args.  rec for 21.4.
6829         
6830 2001-05-12  Ben Wing  <ben@xemacs.org>
6831
6832         * event-msw.c (mswindows_dde_callback):
6833         * event-msw.c (mswindows_wnd_proc):
6834         eliminate cygwin warnings.
6835
6836 2001-05-06  Ben Wing  <ben@xemacs.org>
6837
6838         * console-msw.h:
6839         * device-msw.c:
6840         * device-msw.c (print_dialog_worker):
6841         * device-msw.c (mswindows_handle_print_dialog_box):
6842         * device-msw.c (syms_of_device_mswindows):
6843         * dialog-msw.c (mswindows_make_dialog_box_internal):
6844         * general-slots.h:
6845         implement printing the selection when it's selected.
6846
6847 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6848
6849         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6850
6851 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6852
6853         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6854         EMACS_INT is signed.
6855
6856 2001-04-15  Michael Lausch  <mla@1012surf.net>
6857
6858         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6859         gtk_widget_request_size() to give scrollbar >0 width for
6860         GTK >1.2.8.
6861
6862 2001-05-30  William M. Perry  <wmperry@gnu.org>
6863
6864         * event-gtk.c: Check for buttons as modifier keys.
6865
6866 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6867
6868         * s\mingw32.h:
6869         Properly find MinGW's <process.h> inside Cygwin's restructured
6870         include directories.  Don't try to include <cygwin/version.h>
6871         since we are dropping support for MinGW in versions of Cygwin
6872         earlier than b21.
6873         * nt.c:
6874         Drop support for MinGW in versions of Cygwin before b21.
6875         * sysdep.c:
6876         Properly find MinGW's <process.h> inside Cygwin's restructured
6877         include directories.
6878         * syswindows.h:
6879         Drop support for MinGW in versions of Cygwin before b21.
6880         * unexcw.c:
6881         Even though a.out.h is no longer detected by configure, allow
6882         MinGW to use it until we figure out how to do the job with Win32.
6883
6884 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6885
6886         * syntax.c (find_start_of_comment):
6887         Fix `unbalanced parentheses' bug when dealing with mixed comment
6888         styles in c++/java/etc. mode
6889
6890 2001-05-29  Mike Alexander  <mta@arbortext.com>
6891
6892         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6893         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6894
6895 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6896
6897         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6898
6899 2001-03-31  Mike Sperber <mike@xemacs.org>
6900
6901         * search.c (Freplace_match): Support FSF-style specification of
6902         match subexpression when applied to a buffer.
6903
6904 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6905
6906         * event-stream.c (is_scrollbar_event): add missing semicolon
6907
6908 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6909
6910         * Makefile.in.in: Use TAR macro instead of hardcoding
6911           tar.  Allows use of GNU tar instead of system tar
6912
6913 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6914
6915         * event-stream.c (is_scrollbar_event): add missing semicolon
6916
6917 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6918
6919         * XEmacs 21.4.3 "Academic Rigor" is released.
6920
6921 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6922
6923         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6924
6925 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6926
6927         * buffer.c (Vcase_fold_search): Remove obsolete
6928           comment about non ASCII case-fold-search.  This
6929           bug has been fixed by case-table changes.
6930
6931 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6932
6933         * event-msw.c: Restore include of events-mod.h.
6934
6935 2001-04-22   zhaoway  <zw@debian.org>
6936
6937         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6938         !HAVE_SCROLLBARS.
6939
6940 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6941
6942         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6943
6944 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6945
6946         * mule-charset.c (Fmake_charset): Add missing else.
6947
6948 2001-04-23  Ben Wing  <ben@xemacs.org>
6949
6950         * event-msw.c (FAKE_MOD_QUIT):
6951         * event-msw.c (mswindows_dequeue_dispatch_event):
6952         * event-msw.c (mswindows_wnd_proc):
6953         * event-msw.c (emacs_mswindows_quit_p):
6954         Get critical quit working.
6955
6956 2001-05-05  Ben Wing  <ben@xemacs.org>
6957
6958         * console-msw.h:
6959         * device-msw.c:
6960         * device-msw.c (mswindows_get_default_margin):
6961         * frame-msw.c (mswindows_size_frame_internal):
6962         * frame-msw.c (msprinter_init_frame_1):
6963         * frame-msw.c (vars_of_frame_mswindows):
6964         Change top/bottom margin defaults to 0.5 inches.
6965
6966 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6967
6968         Fix link error with gcc 3.0 on Linux.
6969         * terminfo.c (UP): Remove.
6970         * terminfo.c (BC): Remove.
6971         * terminfo.c (PC): Remove.
6972         They weren't used, and in any case, these symbols should be
6973         defined in the *library*.
6974
6975 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6976
6977         * s/aix4.h: Fix crash with xlc -O3.
6978         Improve comment explaining how -O3 works.
6979
6980 2001-04-15  Ben Wing  <ben@xemacs.org>
6981
6982         * event-stream.c:
6983         * event-stream.c (Fnext_event):
6984         * event-stream.c (is_scrollbar_event):
6985         * event-stream.c (execute_command_event):
6986         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6987         crash' problem.  His fix introduces other problems.  We filter
6988         out scrollbar events specifically, making them somewhat invisible
6989         to command-building, and not appearing in `this-command-keys'.
6990         More work is still needed (see comments in event-stream.c), but
6991         this fixes all the major problems.
6992
6993 2001-04-20  Ben Wing  <ben@xemacs.org>
6994
6995         * .cvsignore: Added stuff for Windows.
6996
6997 2001-04-28  Ben Wing  <ben@xemacs.org>
6998
6999         * buffer.c (Ferase_buffer):
7000         * editfns.c (buffer_insert1):
7001         * editfns.c (Finsert_before_markers):
7002         * editfns.c (Finsert_string):
7003         * editfns.c (Finsert_char):
7004         * editfns.c (Fdelete_region):
7005         * editfns.c (Fwiden):
7006         * editfns.c (Fnarrow_to_region):
7007         remove bogus lines setting zmacs_region_stays to 0.
7008         
7009 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7010
7011         * process-unix.c (unix_open_network_stream): If connect() fails
7012         invalidate file descriptor after closing it.
7013
7014 2001-03-08  Mike Alexander  <mta@arbortext.com>
7015
7016         * event-msw.c (mswindows_need_event_in_modal_loop):
7017         Don't dispatch a message if we didn't get one.
7018         (mswindows_need_event):
7019         Terminate the correct process when one exits instead of the first
7020         one on Vprocess_list and look for process termination when in
7021         mswindows_protect_modal_loop.
7022
7023 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7024
7025         * XEmacs 21.4.1 "Copyleft" is released.
7026
7027 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7028
7029         * input-method-motif.c (XIM_delete_frame): New callback.
7030         (XIM_init_frame): Register it.
7031
7032 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7033
7034         * XEmacs 21.4.0 "Solid Vapor" is released.
7035
7036 2001-04-15  Ben Wing  <ben@xemacs.org>
7037
7038         * cmdloop.c (call_command_loop):
7039         Fix braino in bit-rotting code.
7040         
7041 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7042
7043         * extents.c (Fset_extent_endpoints): Force creation of extent info
7044         in buffer_or_string.
7045
7046         * extents.c (process_extents_for_insertion_mapper): Correctly
7047         check for open-open zero-length extents.
7048
7049 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7050
7051         * lisp.h: New typedefs Memory_count, Element_count.
7052         * regex.c:
7053         * regex.h:
7054         Sign-compare warning elimination: several unsigned -> signed.
7055         Based on work by Ben Wing <ben@xemacs.org>.
7056
7057 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7058
7059         * XEmacs 21.2.47 "Zephir" is released.
7060
7061 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7062
7063         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7064
7065 2001-04-03  Mike Sperber <mike@xemacs.org>
7066
7067         * search.c: Revert previous patch due because of release.
7068
7069 2001-03-30  Ben Wing  <ben@xemacs.org>
7070
7071         * s\cygwin32.h:
7072         Add missing killpg prototype.
7073
7074         * elhash.c:
7075         Add a comment about fixing problems when a new entry is added
7076         while mapping.
7077
7078         * frame-msw.c (mswindows_init_frame_1):
7079         Fix compile warnings.
7080
7081         * menubar.c (vars_of_menubar):
7082         Provide `menu-accelerator-support' to indicate that we properly
7083         support %_ in menu specifications, so that package code can
7084         conditionalize on this (and remove %_ from menu specifications
7085         on older versions).
7086
7087         * event-msw.c:
7088         * scrollbar-msw.c:
7089         * scrollbar-msw.c (can_scroll):
7090         * scrollbar-msw.h:
7091         Fix handling of mouse wheel under Windows to follow standards --
7092         now scrolls window under pointer, not selected window.
7093
7094 2001-03-31  Mike Sperber <mike@xemacs.org>
7095
7096         * search.c (Freplace_match): Support FSF-style specification of
7097         match subexpression when applied to a buffer.
7098
7099 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7100
7101         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7102         function to modify KEYMAP, so map over a copy of the hash table.
7103
7104 2001-03-21  Martin Buchholz <martin@xemacs.org>
7105
7106         * XEmacs 21.2.46 "Urania" is released.
7107
7108 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7109
7110         * realpath.c (xrealpath): Make file-truename work with symlinks to
7111         /cygdrive paths on cygwin. Always lowercase drive-letters on
7112         native windows.
7113         (cygwin_readlink): Don't try to find canonical filename unless
7114         file exists.
7115
7116 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7117
7118         * ChangeLog: Log GTK merge.
7119
7120         * dumper.c:
7121         * select-x.c:
7122         * specifier.c:
7123         * symeval.h:
7124         Revert gratuitous whitespace changes from GTK merge.
7125
7126         * emacs.c: Document end of complex #ifdef @ l. 1495.
7127
7128
7129 2001-03-12  Andy Piper  <andy@xemacs.org>
7130
7131         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7132         have to do likewise.
7133
7134 2001-03-12  Andy Piper  <andy@xemacs.org>
7135
7136         * sysdep.c: we only support mingw now.
7137
7138 2001-03-09  Andy Piper  <andy@xemacs.org>
7139
7140         * unexcw.c (copy_executable_and_dump_data_section): making approx
7141         overrun a warning only.
7142
7143 2001-03-10  William M. Perry  <wmperry@aventail.com>
7144
7145         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7146         satisfy Stephen's identical-after-cpp plea.
7147
7148 2001-03-02  Ben Wing  <ben@xemacs.org>
7149
7150         * cmds.c:
7151         * cmds.c (Fforward_char):
7152         * syntax.c:
7153         * window.c:
7154
7155         Augment documentation of the most common motion commands to make
7156         note of the shifted-motion support.
7157         
7158 2001-03-02  Ben Wing  <ben@xemacs.org>
7159
7160         * nt.c (mswindows_fstat):
7161         * nt.c (mswindows_stat):
7162         * search.c (boyer_moore):
7163         Fix compile warnings under Windows.
7164         
7165         * sysdep.c (sys_readdir):
7166         Fix buggy filename-conversion code under Mule.
7167
7168 2001-03-09  William M. Perry  <wmperry@aventail.com>
7169
7170         * Makefile.in.in:
7171         * config.h.in:
7172         * console.c:
7173         * console.h:
7174         * device.c:
7175         * device.h:
7176         * dragdrop.c:
7177         * emacs.c:
7178         * event-stream.c:
7179         * events.c:
7180         * events.h:
7181         * faces.c:
7182         * frame.h:
7183         * general-slots.h:
7184         * glyphs.c:
7185         * gutter.c:
7186         * inline.c:
7187         * lisp.h:
7188         * lrecord.h:
7189         * make-src-depend:
7190         * redisplay-output.c:
7191         * redisplay.c:
7192         * symsinit.h:
7193         * sysfile.h:
7194         * toolbar.c:
7195         * window.c:
7196         The Great GTK Merge.
7197
7198         * ChangeLog.GTK:
7199         * console-gtk.c:
7200         * console-gtk.h:
7201         * device-gtk.c:
7202         * emacs-marshals.c:
7203         * emacs-widget-accessors.c:
7204         * event-gtk.c:
7205         * frame-gtk.c:
7206         * gccache-gtk.c:
7207         * gccache-gtk.h:
7208         * glade.c:
7209         * glyphs-gtk.c:
7210         * glyphs-gtk.h:
7211         * gtk-glue.c:
7212         * gtk-xemacs.c:
7213         * gtk-xemacs.h:
7214         * gui-gtk.c:
7215         * gui-gtk.h:
7216         * menubar-gtk.c:
7217         * native-gtk-toolbar.c:
7218         * objects-gtk.c:
7219         * objects-gtk.h:
7220         * redisplay-gtk.c:
7221         * scrollbar-gtk.c:
7222         * scrollbar-gtk.h:
7223         * select-gtk.c:
7224         * toolbar-gtk.c:
7225         * ui-byhand.c:
7226         * ui-gtk.c:
7227         * ui-gtk.h:
7228         The Great GTK Merge: new files.
7229
7230 2001-02-26  Ben Wing  <ben@xemacs.org>
7231
7232         Reapplied Lstream change.
7233
7234 2001-02-26  Ben Wing  <ben@xemacs.org>
7235
7236         Undid the last change, since it is more controversial than I
7237         thought.  It should be back in at some point soon.
7238         
7239 2001-02-25  Ben Wing  <ben@xemacs.org>
7240
7241         * buffer.c:
7242         * callproc.c (Fold_call_process_internal):
7243         * event-msw.c (ntpipe_slurp_reader):
7244         * event-msw.c (ntpipe_shove_writer):
7245         * event-msw.c (winsock_reader):
7246         * event-msw.c (winsock_writer):
7247         * file-coding.c:
7248         * file-coding.c (detect_eol_type):
7249         * file-coding.c (detect_coding_type):
7250         * file-coding.c (determine_real_coding_system):
7251         * file-coding.c (Fdetect_coding_region):
7252         * file-coding.c (decoding_reader):
7253         * file-coding.c (decoding_writer):
7254         * file-coding.c (mule_decode):
7255         * file-coding.c (Fdecode_coding_region):
7256         * file-coding.c (encoding_reader):
7257         * file-coding.c (encoding_writer):
7258         * file-coding.c (mule_encode):
7259         * file-coding.c (Fencode_coding_region):
7260         * file-coding.c (detect_coding_sjis):
7261         * file-coding.c (decode_coding_sjis):
7262         * file-coding.c (encode_coding_sjis):
7263         * file-coding.c (detect_coding_big5):
7264         * file-coding.c (decode_coding_big5):
7265         * file-coding.c (encode_coding_big5):
7266         * file-coding.c (detect_coding_ucs4):
7267         * file-coding.c (decode_coding_ucs4):
7268         * file-coding.c (encode_coding_ucs4):
7269         * file-coding.c (detect_coding_utf8):
7270         * file-coding.c (decode_coding_utf8):
7271         * file-coding.c (encode_coding_utf8):
7272         * file-coding.c (detect_coding_iso2022):
7273         * file-coding.c (decode_coding_iso2022):
7274         * file-coding.c (encode_coding_iso2022):
7275         * file-coding.c (decode_coding_no_conversion):
7276         * file-coding.c (encode_coding_no_conversion):
7277         * glyphs-x.c (write_lisp_string_to_temp_file):
7278         * gpmevent.c (tty_get_foreign_selection):
7279         * lisp.h:
7280         * lstream.c:
7281         * lstream.c (Lstream_flush_out):
7282         * lstream.c (Lstream_adding):
7283         * lstream.c (Lstream_write_1):
7284         * lstream.c (Lstream_write):
7285         * lstream.c (Lstream_raw_read):
7286         * lstream.c (Lstream_read_more):
7287         * lstream.c (Lstream_read):
7288         * lstream.c (Lstream_unread):
7289         * lstream.c (Lstream_fputc):
7290         * lstream.c (stdio_reader):
7291         * lstream.c (stdio_writer):
7292         * lstream.c (filedesc_reader):
7293         * lstream.c (filedesc_writer):
7294         * lstream.c (lisp_string_reader):
7295         * lstream.c (struct fixed_buffer_stream):
7296         * lstream.c (make_fixed_buffer_input_stream):
7297         * lstream.c (make_fixed_buffer_output_stream):
7298         * lstream.c (fixed_buffer_reader):
7299         * lstream.c (fixed_buffer_writer):
7300         * lstream.c (struct resizing_buffer_stream):
7301         * lstream.c (resizing_buffer_writer):
7302         * lstream.c (dynarr_writer):
7303         * lstream.c (lisp_buffer_reader):
7304         * lstream.c (lisp_buffer_writer):
7305         * lstream.h:
7306         * lstream.h (lstream_implementation):
7307         * lstream.h (struct lstream):
7308         * md5.c (Fmd5):
7309         * process-nt.c (nt_send_process):
7310         * process-unix.c (unix_send_process):
7311         
7312         Correct Lstream lossage due to mixing of signed and unsigned
7313         quantities.  All Lstream uses of size_t and ssize_t are now a
7314         single signed data type Lstream_data_count.  This fixes problems
7315         under Windows with sending large quantities of data to a process,
7316         and may well fix other subtle bugs.
7317
7318 2001-02-23  Martin Buchholz <martin@xemacs.org>
7319
7320         * XEmacs 21.2.45 "Thelxepeia" is released.
7321
7322 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7323
7324         * lisp-union.h (XSETINT): 
7325         (XSETCHAR):
7326         (XSETOBJ): 
7327         Reverse previous change of 2001-02-06.
7328
7329 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7330
7331         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7332         buffers.
7333         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7334         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7335         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7336         * regex.c (POS_AS_IN_BUFFER): removed
7337         * regex.c (re_search_2):
7338         * regex.c (re_match_2):
7339         Don't use an offset of 1 when calculating buffer positions, since
7340         `BI_BUF_BEGV' does it already.
7341
7342 2001-02-18  Wim Dumon  <wim@easics.be>
7343
7344         * insdel.c (prepare_to_modify_buffer): Also check for
7345         supersession when clash-detection is enabled. 
7346
7347 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7348
7349         * regex.c (re_match_2_internal):
7350         Convert temp characters from 'const unsigned char' to 're_char'.
7351         Fix crashing bug with extended characters under mule.
7352         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7353         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7354         font-lock, pdump, and new syntax-table code.
7355         * syntax.c (find_start_of_comment):
7356         (find_end_of_comment):
7357         (forward-comment):
7358         Fix crashing bugs involving moving beyond end of buffer.
7359         * syntax.c (find_start_of_comment):
7360         Fixed logic to allow proper detection of cases where the same
7361         character is used to end both a two-char comment start and a
7362         two-char comment end sequence. Fixes `(forward-comment -1)'.
7363         * syntax.c (find_start_of_comment):
7364         Return position just past last comment-end character for all cases
7365         (previously was only done for two-char comment-end sequences).
7366         * syntax.c (forward-comment):
7367         Take value returned from `find_end_of_comment', rather than
7368         incrementing it.
7369         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7370         Properly deal with BUFFERP (syntax_cache.object)
7371
7372 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7373
7374         * alloc.c (Fgarbage_collect): 
7375         * alloc.c (make_bit_vector_from_byte_vector):
7376         -Wsign-compare-correctness.
7377
7378 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7379
7380         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7381         (XSETCHAR): Likewise.
7382         (XSETOBJ): Likewise.
7383
7384 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7385
7386         * mule-canna.c (canna-func-delete_previous): 
7387         Rename to canna-func-delete-previous.
7388
7389 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7390
7391         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7392
7393 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7394
7395         * font-lock.c (find_context): Fix C++ compile errors introduced by
7396         recent patch
7397
7398 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7399
7400         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7401         pragma, but earlier ones barf on the same pragma.
7402
7403 2001-02-06  Mike Sperber <mike@xemacs.org>
7404
7405         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7406         `configure-mule-lisp-directory'.
7407
7408 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7409
7410         Make sure dump-id.c is compiled in the same way as other .c's.
7411         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7412         * dump-id.h: Remove.
7413         * emacs.c: Move dump-id.h into dumper.h.
7414         * dumper.h: Move dump-id.h into dumper.h.
7415         * Makefile.in.in:
7416         Use standard .c.o rule for building dump-id.o.
7417         Remove preprocessor flags from link command.
7418         Add dump-id.o to ${otherobjs} if PDUMP.
7419
7420 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7421
7422         Port FSF 20.7 syntax table improvements.
7423         * syntax.c.
7424         * syntax.h.
7425
7426         Fixups for new syntax table stuff.
7427         * dired.c: Include syntax.c.
7428         (Fdirectory_files): Initialize regex_match_object and
7429         regex_emacs_buffer.
7430         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7431         and Fget_char_property.
7432
7433         Use ported FSF 20.7 syntax table improvements.
7434         * font-lock.c.
7435         * regex.c.
7436         * search.c.
7437         
7438 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7439
7440         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7441         Unixware's enum boolean from sys/types.h.
7442
7443 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7444
7445         Fix support for building with latest Purify.
7446         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7447         (PURIFY_FLAGS): Likewise.
7448
7449 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7450
7451         * fileio.c (lisp_string_set_file_times): New.
7452         * fileio.c (Fcopy_file): Use it.
7453         Fixes bug:
7454         (copy-file filename non-ascii-filename t t)
7455         ==> No such file or directory, non-ascii-filename
7456
7457 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7458
7459         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7460         USHRT_MAX seems clearer than ~0 anyways.
7461
7462 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7463
7464         dumper improvements.  Inspired by Olivier.
7465         * dumper.c (pdump_max_align): New.
7466         * dumper.c (pdump_add_entry): Use pdump_max_align.
7467         * dumper.c (pdump_get_entry_list): Likewise.
7468         * dumper.c (pdump_scan_by_alignment): Likewise.
7469         Don't iterate through unnecessary alignments.
7470         * dumper.c (pdump_file_get): No need to align result of malloc().
7471         * dumper.c (pdump_mallocadr): Remove.  
7472         The result of malloc() is guaranteed to be maximally aligned.
7473         * dumper.c: s/elmt/elt/g;
7474         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7475         * dumper.c (pdump_alert_undump_object): Likewise.
7476         * dumper.c (pdump_align_table): 
7477         Don't support alignments > 64.
7478         Store ALIGNOF's, not shift counts, in table.
7479
7480 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7481
7482         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7483         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7484         * systime.h: Use HAVE_UTIME.
7485         * sysdep.c (struct utimbuf): Remove.
7486         * sysdep.c (set_file_times): Prefer utime() to utimes().
7487         * config.h.in (HAVE_UTIME): New.
7488         * config.h.in (HAVE_UTIME_H): Remove.
7489         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7490
7491 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7492
7493         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7494
7495 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7496
7497         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7498
7499 2001-02-08  Martin Buchholz <martin@xemacs.org>
7500
7501         * XEmacs 21.2.44 "Thalia" is released.
7502
7503 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7504
7505         Fixes crashes in kill-emacs on some systems.
7506         * process-unix.c (unix_kill_child_process):
7507         It's OK for kill() to fail with ESRCH.
7508
7509 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7510
7511         Contortions to make .gdbinit tricks work on most systems.
7512         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7513         * alloc.c (dbg_valmask): Make non-const.
7514         * alloc.c (dbg_typemask): Make non-const.
7515         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7516         * alloc.c (dbg_valbits): Make non-const.
7517         * alloc.c (dbg_gctypebits): Make non-const.
7518         * .gdbinit (decode_object): Make it work with AIX cc.
7519
7520 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7521
7522         * elhash.c (make_general_lisp_hash_table):
7523         Use simpler and more efficient calloc to clear entries.
7524
7525 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7526
7527         * window.c (window_scroll): Work around an AIX C compiler bug.
7528         Fixes 'scroll-up' does nothing problem with xlC.
7529
7530 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7531
7532         * .gdbinit: Remove obsolete comment.
7533
7534 2001-01-31  Mike Alexander  <mta@arbortext.com>
7535
7536         * select.c (Fown_selection_internal): Set owned_p for device
7537         method correctly.
7538
7539 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7540
7541         Port to g++ 2.97.
7542         "not" cannot be used as a macro name as it is an operator in C++
7543         * config.h.in: Stop #defining `not'.
7544         * chartab.c (check_category_char): not ==> not_p
7545         * chartab.h: Likewise.
7546         * regex.c (re_match_2_internal): Likewise.
7547
7548 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7549
7550         * lisp-disunion.h: Fix up comments.
7551
7552 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7553
7554         * keymap.c (define_key_check_and_coerce_keysym):
7555         (syms_of_keymap):
7556         Support mouse-6 and mouse-7 bindings in the obvious way.
7557
7558 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7559
7560         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7561
7562 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7563
7564         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7565         Previous patch missed DEFVAR_INT_MAGIC.
7566         Make sure future DEFVAR_foo use correct types.
7567         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7568         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7569         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7570         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7571         * (DEFVAR_INT): Likewise.
7572         * redisplay.c (vertical_clip): Should be of type Fixnum.
7573         * redisplay.c (horizontal_clip): Likewise.
7574         * lisp.h (dump_add_opaque_int): New.
7575         (dump_add_opaque_fixnum): New.
7576
7577 2001-01-29  Andy Piper  <andy@xemacs.org>
7578
7579         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7580         since they can be eval'ed
7581
7582 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7583
7584         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7585         Oops, XEmacs redefines `class'.  Use `typename' instead.
7586
7587 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7588
7589         * dumper.c: Fix C++ compile errors.
7590
7591 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7592
7593         * tparam.c: Use correct prototypes.
7594
7595 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7596
7597         * sysproc.h: #include util.h for NetBSD's openpty.
7598
7599 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7600
7601         More 64-bit correctness.
7602         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7603         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7604         Fix up comments.
7605         This finally finishes the 64-bit SGI port.
7606         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7607         * symbols.c: Fix up comments and type casts.
7608         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7609         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7610         * symeval.h (Fixnum): New type.
7611         * symeval.h (symbol_value_type): Fix up comment.
7612
7613         * commands.h:
7614         * nt.c:
7615         * emacs.c:
7616         * data.c:
7617         * redisplay.c:
7618         * abbrev.c:
7619         * dired-msw.c:
7620         * event-Xt.c:
7621         * eldap.c:
7622         * window.c:
7623         * sound.c:
7624         * event-stream.c:
7625         * eval.c:
7626         * buffer.c:
7627         * mule-canna.c: A million DEFVAR_INTs here...
7628         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7629         * extents.c:
7630         * cmdloop.c:
7631         * lisp.h:
7632         * select-x.c:
7633         * console-x.h:
7634         * event-msw.c:
7635         * mule-wnnfns.c:
7636         * hpplay.c:
7637         * ralloc.c:
7638         * alloc.c:
7639         * keymap.c:
7640         * profile.c:
7641         s/int/Fixnum/g in DEFVAR_INT declarations.
7642
7643 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7644
7645         Port pdump to SGI alignment-sensitive environment.
7646         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7647         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7648         properly aligned.
7649         Define and use aligned reading and writing macros.
7650         Use buffered stdio instead of posix i/o for faster dumping.
7651         Eliminate kludgy 256 byte space for header.
7652         Read and write from dump file using structs for alignment safety.
7653         * dumper.c (pdump_align_stream): New.
7654         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7655         * dumper.c (PDUMP_READ_ALIGNED): New.
7656         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7657         * dumper.c (pdump_static_Lisp_Object): New struct.
7658         * dumper.c (pdump_static_pointer): New struct.
7659         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7660         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7661         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7662         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7663
7664         * dumper.c (pdump_backtrace):
7665         * dumper.c (pdump_get_indirect_count):
7666         * dumper.c (pdump_register_object):
7667         * dumper.c (pdump_register_struct):
7668         * dumper.c (pdump_reloc_one):
7669         * dumper.c (pdump_scan_by_alignment):
7670         * dumper.c (pdump_dump_from_root_struct_ptrs):
7671         * dumper.c (pdump_dump_opaques):
7672         * dumper.c (pdump_dump_rtables):
7673         * dumper.c (pdump_dump_from_root_objects):
7674         * dumper.c (pdump):
7675         * dumper.c (pdump_load_finish):
7676         Use aligned reading and writing.
7677
7678         * dumper.c (pdump_free): Make static.
7679         * dumper.c (pdump_hFile): Likewise.
7680         * dumper.c (pdump_hMap): Likewise.
7681
7682 2001-01-26  Martin Buchholz <martin@xemacs.org>
7683
7684         * XEmacs 21.2.43 "Terspichore" is released.
7685
7686 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7687
7688         Type fiddling for window_config.saved_windows_count
7689         * window.c (struct window_config): 
7690         Make saved_windows_count member unsigned.
7691         * window.c (sizeof_window_config_for_n_windows): 
7692         Make parameter unsigned.
7693         * window.c (mark_window_config):
7694         * window.c (window_config_equal):
7695         * window.c (free_window_configuration):
7696         * window.c (Fset_window_configuration):
7697         * window.c (count_windows):
7698         * window.c (Fcurrent_window_configuration):
7699         * window.c (reinit_vars_of_window):
7700         Update all callers and users.
7701
7702 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7703
7704         Alignment correctness for flexible arrays.
7705         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7706         Make alignment-correct. Add interesting comments.
7707         * alloc.c (size_vector):
7708         * alloc.c (make_vector_internal):
7709         * alloc.c (make_bit_vector_internal):
7710         * alloc.c (sweep_bit_vectors_1):
7711         * fns.c (size_bit_vector):
7712         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7713         * window.c (sizeof_window_config_for_n_windows): 
7714         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7715
7716 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7717
7718         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7719
7720 2001-01-23  Andy Piper  <andy@xemacs.org>
7721
7722         * select.c (Fown_selection_internal): pass owned_p
7723
7724         * select-msw.c (mswindows_own_selection): New Signature.
7725
7726         * console.h (struct console_methods): add owned_p to
7727         _own_selection.
7728
7729         * select-x.c (x_own_selection): pass owned_p
7730         (hack_motif_clipboard_selection): use owned_p
7731         (vars_of_select_x): new variable -
7732         x_selection_strict_motif_ownership.
7733
7734 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7735
7736         * specifier.h (specifier_data_offset): Remove pointless parens.
7737         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7738
7739 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7740
7741         Make Lisp_Object sizeof methods be alignment-correct.
7742         pdump must restore objects to the same alignment as the C compiler
7743         assumes.  It really matters on SGIs.
7744         * lstream.c (aligned_sizeof_lstream): New.
7745         (sizeof_lstream): Use aligned_sizeof_lstream.
7746         (Lstream_new): Likewise.
7747         * opaque.c (aligned_sizeof_opaque): New.
7748         (sizeof_opaque): Use aligned_sizeof_opaque.
7749         (make_opaque): Likewise.
7750         * specifier.c (aligned_sizeof_specifier): New.
7751         (sizeof_specifier): Use aligned_sizeof_specifier.
7752         (make_specifier_internal): Likewise.
7753
7754 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7755
7756         * lstream.h (struct lstream): Use max_align_t for trailing data.
7757         * specifier.h (struct Lisp_Specifier): Likewise.
7758
7759 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7760
7761         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7762         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7763         (CCL_SUSPEND): Likewise.
7764         (CCL_INVALID_CMD): Likewise.
7765         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7766         (ccl_driver): Likewise.
7767         (CCL_WRITE_CHAR): Macro hygiene.
7768         (CCL_WRITE_STRING): Macro hygiene.
7769
7770 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7771
7772         Port "portable" dumper to SunOS 4 and HP-UX.
7773         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7774         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7775         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7776
7777 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7778
7779         * lisp.h (ALIGNOF): A better definition for C++.
7780
7781 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7782
7783         Macro hygiene.
7784         Fix printf warnings: int format, long int arg.
7785         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7786         (PUSH_FAILURE_POINT): Use correct printf formats.
7787         (POP_FAILURE_POINT): Use correct printf formats.  
7788         Use do {...} while (0)
7789
7790 2001-01-20  Martin Buchholz <martin@xemacs.org>
7791
7792         * XEmacs 21.2.42 "Poseidon" is released.
7793
7794 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7795
7796         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7797
7798 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7799
7800         De-kludgify FIXED_TYPE free list frobbing.
7801         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7802         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7803         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7804         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7805         * alloc.c (LRECORD_FREE_P): New.
7806         * alloc.c (MARK_LRECORD_AS_FREE): New.
7807         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7808         * alloc.c (STRUCT_FREE_P): Deleted.
7809         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7810         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7811         * alloc.c (STRING_CHARS_FREE_P): New.
7812         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7813         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7814         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7815         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7816         * alloc.c (resize_string): Use new definitions.
7817         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7818         * alloc.c (verify_string_chars_integrity): Use new definitions.
7819         * alloc.c (compact_string_chars): Use new definitions.
7820         * alloc.c: Update monster comments.
7821         * lrecord.h (lrecord_type): Add some new lrecord types for
7822         alloc.c's use.
7823
7824 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7825
7826         Improve alignment hackery.
7827         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7828         (max_align_t): Moved from opaque.h - general purpose.
7829         (ALIGN_PTR): Use size_t, not long.
7830         * opaque.h (max_align_t): Move to lisp.h.
7831
7832 2001-01-18  Norbert Koch  <nk@LF.net>
7833
7834         * gui.h: Fix and add prototypes to fix build problems.
7835
7836 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7837
7838         temacs is going away, so `dump-temacs' is now a bad name.
7839         * .dbxrc (dump-temacs): Rename to `dmp'.
7840         * .gdbinit (dump-temacs): Rename to `dmp'.
7841
7842 2001-01-17  Andy Piper  <andy@xemacs.org>
7843
7844         * glyphs.c (print_image_instance): comment to make martin happy.
7845
7846         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7847         change.
7848
7849         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7850         activation.
7851         (mswindows_tab_control_redisplay): warning suppression.
7852
7853         * glyphs-widget.c (widget_update): re-write to cope with updated
7854         items.
7855         (widget_instantiate): use new gui_item functions.
7856         (tab_control_update): deleted.
7857         (progress_gauge_update): deleted.
7858         (image_instantiator_progress_guage): take out update reference.
7859         (image_instantiator_tree_view): ditto.
7860         (image_instantiator_tab_control): ditto.
7861
7862         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7863         Right the new way.
7864         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7865         return whether anything was changed.
7866         (update_gui_item_keywords): as it sounds.
7867
7868         * gui.h: declare widget_gui_parse_item_keywords.
7869
7870         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7871         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7872
7873 2001-01-17  Martin Buchholz <martin@xemacs.org>
7874
7875         * XEmacs 21.2.41 "Polyhymnia" is released.
7876
7877 2001-01-16  Didier Verna  <didier@xemacs.org>
7878
7879         * glyphs.c (image_instantiate): don't use fallbacks when
7880         instantiating a face's background pixmap by inheritance.
7881
7882 2001-01-14  Mike Sperber <mike@xemacs.org>
7883
7884         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7885         Conditionalize accordingly.
7886
7887 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7888
7889         * dumper.c (pdump_file_get): Fix a compiler warning.
7890
7891 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7892
7893         Make Purify happy when pdumping.
7894         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7895         iniitalizing all bits of new lisp object memory.
7896         * symbols.c (Fmake_local_variable): Likewise.
7897         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7898         * symbols.c (Fdefvaralias): Likewise.
7899         * mule-charset.c (vars_of_mule_charset): Likewise.
7900
7901 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7902         Add the `-nd' flag when running pre-dump operations under the debugger.
7903         * .dbxrc (run-temacs): Add `-nd'.
7904         * .dbxrc (update-elc): Likewise.
7905         * .dbxrc (dump-temacs): Likewise.
7906         * .gdbinit (run-temacs): Likewise.
7907         * .gdbinit (check-temacs): Likewise.
7908         * .gdbinit (update-elc): Likewise.
7909         * .gdbinit (dump-temacs): Likewise.
7910
7911 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7912
7913         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7914         export OBJECT_MODE=64
7915         configure --pdump --use-union-type=no
7916         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7917         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7918
7919         * miscplay.c (sndcnv8U_2mono):
7920         Avoid two uses of `++' in the same expression.
7921         Suppresses a GCC warning.
7922
7923 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7924
7925         Make sure future compilers don't miscompile alloc.c.
7926         * alloc.c:
7927         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7928         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7929
7930 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7931
7932         * dumper.c: A little post-pdump-rename comment fixup.
7933
7934 2001-01-09  Jerry James  <james@eecs.ku.edu>
7935
7936         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7937
7938 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7939
7940         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7941         script:
7942         #!/bin/sh
7943         replace_symbol () {
7944           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7945         }
7946
7947         replace_symbol pdump_wire_lists pdump_weak_object_chains
7948         replace_symbol pdump_wire_list dump_add_weak_object_chain
7949
7950         replace_symbol pdump_wires pdump_root_objects
7951         replace_symbol pdump_wire dump_add_root_object
7952
7953         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7954         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7955
7956         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7957         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7958         replace_symbol dumpstructinfo pdump_root_struct_ptr
7959         replace_symbol dumpstruct dump_add_root_struct_ptr
7960
7961         replace_symbol dumpopaque dump_add_opaque
7962         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7963         replace_symbol dumpopaqueinfos pdump_opaques
7964         replace_symbol dumpopaqueinfo pdump_opaque
7965
7966         replace_symbol nb_structdump nb_root_struct_ptrs
7967         replace_symbol nb_opaquedump nb_opaques
7968
7969         replace_symbol align_table pdump_align_table
7970         replace_symbol dump_header pdump_header
7971
7972         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7973         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7974
7975
7976 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7977
7978         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7979         optimizing bytecount_to_charcount().
7980
7981 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7982
7983         * config.h.in:
7984         (HAVE_DLFCN_H): Removed.
7985         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7986
7987 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7988
7989         Portable dumper maintainability improvements.
7990         * alloc.c (staticpro):
7991         * alloc.c (staticpro_nodump):
7992         * alloc.c (garbage_collect_1):
7993         * alloc.c (reinit_alloc_once_early):
7994         * alloc.c (init_alloc_once_early):
7995         * alloc.c: Move dumper functions to alloc.c.
7996         * dumper.c (pdump_backtrace):
7997         * dumper.c (pdump_dump_structs):
7998         * dumper.c (pdump_dump_opaques):
7999         * dumper.c (pdump_dump_rtables):
8000         * dumper.c (pdump_dump_wired):
8001         * dumper.c (pdump):
8002         * dumper.c (pdump_load_check):
8003         * dumper.c (pdump_load_finish):
8004         * dumper.c (pdump_file_unmap):
8005         * dumper.c (pdump_file_get):
8006         * dumper.c (pdump_resource_free):
8007         * dumper.c (pdump_resource_get):
8008         * dumper.c (pdump_file_free):
8009         * dumper.c (pdump_file_try):
8010         * dumper.c (pdump_load):
8011         Remove fixed size limits on staticpro(), staticpro_nodump(),
8012         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8013         Remove custom code for dumping lrecord_implementations_table - use
8014         dumpopaque instead.
8015         Remove (most of the) custom code for dumping staticpros - dump it
8016         like any other dynarr.
8017
8018         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8019         * dumper.c: Moved functions from alloc.c.
8020         * alloc.c (dumpstruct): Moved to dumper.c.
8021         * alloc.c (dumpopaque): Likewise.
8022         * alloc.c (pdump_wire): Likewise.
8023         * alloc.c (pdump_wire_list): Likewise.
8024
8025         * lisp.h (Dynarr_sizeof): New.
8026         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8027         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8028         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8029
8030         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8031         * lisp.h (dumpopaque): ditto.
8032         * lisp.h (pdump_wire): ditto.
8033         * lisp.h (pdump_wire_list): ditto.
8034
8035 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8036
8037         * make-src-depend (PrintPatternDeps):
8038         Use `sort' to make output independent of perl version.
8039
8040 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8041
8042         Port to Netbsd 1.5.
8043         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8044         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8045
8046 2001-01-03  Didier Verna  <didier@xemacs.org>
8047
8048         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8049         that `focus_frame' is alive before thinking of calling
8050         `redisplay_redraw_cursor' on it.
8051
8052 2001-01-08  Martin Buchholz <martin@xemacs.org>
8053
8054         * XEmacs 21.2.40 is released.
8055
8056 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8057
8058         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8059
8060 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8061
8062         * alloc.c (dbg_valmask): Make const.
8063         * alloc.c (dbg_typemask): Make const.
8064         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8065         * alloc.c (dbg_valbits): Make const.
8066         * alloc.c (dbg_gctypebits): Make const.
8067
8068 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8069
8070         * redisplay-x.c (x_bevel_area):
8071         redisplay.h (struct rune):
8072         Typo fixes in comments.
8073
8074 2001-01-05  Andy Piper  <andy@xemacs.org>
8075
8076         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8077         adjustment.
8078
8079         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8080
8081 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8082
8083         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8084
8085         * mule-ccl.c (stack_idx_of_map_multiple):
8086         Non const global data must not be initialized!
8087         Found by MIYASHITA Hisashi.
8088
8089 2001-01-02  Andy Piper  <andy@xemacs.org>
8090
8091         * frame.c (change_frame_size): make sure frame size is always
8092         marked as changed.
8093
8094         * glyphs.c (image_instance_layout): minor code reuse.
8095
8096         * window.c (Fcurrent_window_configuration): revert previous
8097         change.
8098
8099 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8100
8101         * glyphs.h:
8102         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8103
8104 2000-12-31  Andy Piper  <andy@xemacs.org>
8105
8106         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8107         when widget gets unmapped.
8108
8109         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8110         function. Make sure widgets losing focus don't just drop it.
8111         (handle_focus_event_1): record the widget with focus.
8112
8113 2000-12-31  Andy Piper  <andy@xemacs.org>
8114
8115         * window.c (allocate_window): use
8116         make_image_instance_cache_hash_table.
8117         (make_dummy_parent): ditto.
8118         (Fset_window_configuration): ditto.
8119
8120         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8121
8122         * glyphs.c (process_image_string_instantiator): use
8123         INSTANTIATOR_TYPE.
8124         (get_image_instantiator_governing_domain): ditto.
8125         (normalize_image_instantiator): ditto.
8126         (instantiate_image_instantiator): ditto.
8127         (make_image_instance_1): ditto.
8128         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8129         (instantiator_eq_equal): new function for use with instance hash
8130         tables.
8131         (instantiator_eq_hash): ditto.
8132         (make_image_instance_cache_hash_table): create a suitable hash
8133         table for storing image instances.
8134
8135         * elhash.h (hash_table_weakness): new internal weakness type
8136         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8137         declare new functions.
8138
8139         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8140         another weakness type for glyphs.
8141         (make_standard_lisp_hash_table): new function split out from
8142         make_general_lisp_hash_table.
8143         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8144         (hash_table_instantiate): ditto.
8145         (Fmake_hash_table): ditto.
8146
8147 2000-12-31  Martin Buchholz <martin@xemacs.org>
8148
8149         * XEmacs 21.2.39 is released.
8150
8151 2000-12-29  Andy Piper  <andy@xemacs.org>
8152
8153         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8154
8155         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8156         the frame has changed so that we pick up geometry changes such as
8157         menubar visibility.
8158
8159 2000-12-28  Andy Piper  <andy@xemacs.org>
8160
8161         * lastfile.c (my_ebss): make a char array so we can pad the
8162         bss. Fixes cygwin unexec.
8163
8164         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8165
8166 2000-12-26  Andy Piper  <andy@xemacs.org>
8167
8168         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8169         comments and try and be more precise about a non-/SIGIO world.
8170         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8171         SIGIO.
8172
8173         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8174         we don't normalize to zero width or height.
8175
8176 2000-12-24  Andy Piper  <andy@xemacs.org>
8177
8178         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8179
8180 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8181
8182         * s/sco5.h: SCO 5 has pty support.
8183
8184 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8185
8186         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8187         input-method-xlib.c contains whole contents of input-method-xfs.c,
8188         so we can use input-method-xlib.c's code for USE_XFONTSET
8189         using #ifdefs.
8190         * input-method-xfs.c: removed.
8191
8192 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8193
8194         * file-coding.h (enum coding_category_type): reorder enumerators to
8195         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8196         (now one greater than largest real coding_category_type enumerator).
8197         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8198         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8199         Fcoding_category_list, Fset_coding_priority_list,
8200         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8201         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8202
8203 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8204
8205         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8206         * redisplay-output.c (redisplay_output_window): Clear top of window
8207         when face is changed.
8208         * redisplay-x.c (x_redraw_exposed_window): Call
8209         redisplay_clear_top_of_window.
8210         * redisplay.h: Publish redisplay_clear_top_of_window.
8211
8212 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8213
8214         * buffer.c (Fkill_buffer): Map over all devices.
8215         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8216         (list_windows): New function.
8217         (list_all_windows): Ditto.
8218         (Freplace_buffer_in_windows): Use them.
8219
8220 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8221
8222         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8223         (Fopen_database): Use `db_create' instead of `db_open'.
8224         (syms_of_database): Initialize Qqueue.
8225
8226 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8227
8228         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8229         buffer_local_face_property.
8230         * buffer.h (struct buffer): New member buffer_local_face_property.
8231         * window.c (Fset_window_buffer):  Mark window's face as changed
8232         when buffer has buffer local face.
8233         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8234         * objects.c (color_after_change): Set buffer_local_face_property
8235         when locale of face specifier is buffer.
8236         * objects.c (font_after_change): Ditto.
8237         * objects.c (face_boolean_after_change): Ditto.
8238         * glyphs.c (image_after_change): Ditto.
8239
8240 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8241
8242         * nt.c (mswindows_fstat): Report file permissions, volume serial
8243         number, etc. Code adapted from FSF Emacs 20.7.
8244
8245 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8246
8247         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8248         of stat when we don't have symbolic links, to make sure
8249         mswindows_stat is called on mswindows.
8250
8251 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8252
8253         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8254
8255 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8256
8257         * doprnt.c (emacs_doprnt_1): More printing fixes.
8258         Make printing of numbers compatible with libc and FSF Emacs.
8259         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8260         Use the system printf to do most of the hard work of formatting,
8261         instead of doprnt_1().
8262         Calculate memory to allocate for format string.
8263         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8264         (doprnt_1): Cleaner code and documentation.
8265
8266 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8267
8268         * Makefile.in.in: Use the loop variable to install headers.
8269
8270 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8271
8272         * window.c (Fsplit_window): Don't invalidate face cache.
8273
8274 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8275
8276         * minibuf.c (Fall_completions): Undo the previous change
8277         which removed checking elements start with space.
8278
8279 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8280
8281         * mule-canna.c: Didier suppression.
8282
8283 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8284
8285         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8286         (warning suppression).  Add English comment translations.
8287
8288 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8289
8290         * unexelfsgi.c (unexec): Better test for mmap failure.
8291
8292 2000-12-05  Martin Buchholz <martin@xemacs.org>
8293
8294         * XEmacs 21.2.38 is released.
8295
8296 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8297
8298         * redisplay.c (bar-cursor): Make a user variable.
8299
8300         * symsinit.h: Add init_postgresql_from_environment.
8301
8302 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8303
8304         * regex.c: Convert to clean C.
8305
8306 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8307
8308         * realpath.c:
8309         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8310         initialization.
8311         (sys_readlink): renamed to system_readlink to avoid conflict with
8312         the other sys_readlink.
8313
8314 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8315
8316         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8317
8318 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8319
8320         * postgresql.c (init_postgresql_from_environment): new function.
8321         (vars_of_postgresql): Move code initializing Lisp variables out and
8322         into init_postgresql_from_environment.
8323         emacs.c (main_1): Call init_postgresql_from_environment if and only
8324         if running a dumped XEmacs.
8325
8326 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8327
8328         * buffer.c: Make find-file-compare-truenames default to true on
8329         windows.
8330
8331         * realpath.c (win32_abs_start):
8332         (cygwin_readlink):
8333         (win32_readlink): New functions.
8334         (xrealpath): Return really real filenames on windows.
8335
8336         * fileio.c (Ffile_truename): Make file-truename work on windows.
8337
8338 2000-11-29  Didier Verna  <didier@xemacs.org>
8339
8340         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8341         * faces.c (update_face_cachel_data): use it.
8342         * faces.c (add_face_cachel): use it. Complete background pixmap
8343         frobbing in face cache if `update_face_cachel_data' has not done so.
8344
8345 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8346
8347         * search.c (string_match_1): Don't set last_thing_searched
8348         when search failed.
8349
8350 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8351
8352         * buffer.c: Include casetab.h
8353         (common_init_complex_vars_of_buffer): Use new case-table object.
8354         * buffer.h: Include casetab.h
8355         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8356         (DOWNCASE_TABLE_OF): Ditto.
8357         * bufslots.h: Remove char-tables and add case-table.
8358         * casetab.c: Include casetab.h
8359         (CASE_TABLE_P): Removed.
8360         (mark_case_table): New function.
8361         (allocate_case_table): New function.
8362         (Fcase_table_p): Use new case-table.
8363         (case_table_char): New function.
8364         (Fget_case_table): Ditto.
8365         (Fput_case_table): Ditto.
8366         (Fput_case_table_pair): Ditto.
8367         (Fcopy_case_table): Ditto.
8368         (Fcurrent_case_table): Return case-table.
8369         (Fstandard_case_table): Return case-table.
8370         (Fset_case_table): Fix doc-string.
8371         (set_case_table): Use case-table
8372         (syms_of_casetab): DEFSUBR new functions.
8373         (complex_vars_of_casetab): Set up standard case-table.
8374         * casetab.h: New file.
8375         * editfns.c: Include casetab.h
8376         (Fcompare_buffer_substrings): Use case-table.
8377         * inline.c: Include casetab.h
8378         * lisp.h: Remove bogus extern.
8379         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8380         * search.c: Include casetab.h
8381         (TRANSLATE_ASCII): Removed.
8382         (TRANSLATE): Unconditionally translate character.
8383         (looking_at_1): Use case-table.
8384         (string_match_1): Ditto.
8385         (fast_string_match): Ditto.
8386         (search_command): Ditto.
8387         (search_buffer): Separate boyer_moore.  Check whether
8388         boyer_moore is possible.
8389         (simple_search): New function.
8390         (boyer_moore): Separated from search_buffer. Translate char.
8391
8392 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8393
8394         * regex.c (RE_TR_ASCII): Removed.
8395         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8396         (PATFETCH): Call PATFETCH_RAW.
8397         (PATFETCH_RAW): Fetch Emchar.
8398         (PATUNFETCH): Decrement charptr.
8399         (GET_BUFFER_SPACE): Rename b to buf_end.
8400         (BUF_PUSH): Ditto.
8401         (BUF_PUSH_2): Ditto.
8402         (BUF_PUSH_3): Ditto.
8403         (EXTEND_BUFFER): Ditto.
8404         (SET_LIST_BIT): Ditto.
8405         (regex_compile): Ditto.  Translate non ASCII char.
8406         (compile_range): Ditto.
8407         (re_search_2): Ditto.
8408         (re_match_2_internal): Compare Emchar.
8409         (bcmp_translate): Ditto.
8410
8411 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8412
8413         * lisp.h (basic char/int typedefs):  comment improvement.
8414
8415 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8416
8417         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8418         unstomp inhibit_site_lisp.  Improve comments.
8419
8420 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8421
8422         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8423
8424 2000-11-28  Andy Piper  <andy@xemacs.org>
8425
8426         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8427         clipped display for windows in the gutter also.
8428         (redisplay_display_boxes_in_window_p): change semantics of return
8429         codes to be more intuitive.
8430
8431         * gutter.h: declare display_boxes_in_gutter_p.
8432
8433         * gutter.c (display_boxes_in_gutter_p): new function for
8434         redisplay.
8435
8436 2000-11-22  Andy Piper  <andy@xemacs.org>
8437
8438         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8439         autodetect domain.
8440
8441 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8442
8443         * callproc.c (Fold_call_process_internal):
8444         * gpm.c (Freceive_gpm_event):
8445         (tty_get_foreign_selection): Might be just warning supression.
8446         * fileio.c (Fwrite_region_internal):
8447         (Fset_visited_file_modtime):
8448         * keymap.c (event_matches_key_specifier_p):
8449         Initialize GCPROed variable.
8450
8451         * menubar-x.c (command_builder_find_menu_accelerator):
8452         Initialize before use.
8453
8454 2000-11-23  Andy Piper  <andy@xemacs.org>
8455
8456         * unexcw.c (unexec): make the resulting executable executable.
8457
8458 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8459
8460         * doc.c (get_doc_string):
8461         Use size_t, not int, for result of XSTRING_LENGTH.
8462
8463         * cmds.c (Fdelete_char):
8464         * cmds.c (Fpoint_at_eol):
8465         * cmds.c (Fself_insert_command):
8466         Use EMACS_INT, not int, for result of XINT.
8467         Someday, someone will want to insert more than 2**31 identical characters.
8468
8469         * cmds.c (Fdelete_char):
8470         * cmds.c (Fdelete_backward_char):
8471         * syntax.c (Fforward_word):
8472         * syntax.c (Fforward_comment):
8473         Make COUNT argument optional, for consistency with forward-char et al.
8474
8475 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8476
8477         * lisp.h:
8478         * print.c (long_to_string):
8479         Return a useful value: the pointer at end of data written.
8480
8481         * doprnt.c:
8482         Use `static const char * const' for constant strings.
8483         (union printf_arg): Delete `i', `ui' members.
8484         (get_doprnt_args):
8485         (emacs_doprnt_1):
8486         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8487         Do all printf-ing via the `l' specifier.
8488         Use EMACS_INT instead of int.
8489         Optimize.
8490
8491 2000-11-20  Didier Verna  <didier@xemacs.org>
8492
8493         * faces.c (update_face_cachel_data): don't frob the background
8494         pixmap when the window is being created. The face is needed but
8495         does not exist yet.
8496
8497 2000-11-20  Andy Piper  <andy@xemacs.org>
8498
8499         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8500         messing with a debug environment.
8501
8502 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8503
8504         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8505
8506 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8507
8508         * casetab.c (Fcase_table_p): Fix compile error and crash.
8509
8510 2000-11-18  Philip Aston  <philipa@mail.com>
8511
8512         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8513
8514 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8515
8516         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8517         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8518
8519 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8520
8521         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8522         * unexelf.c: Use HAVE_ELF_H.
8523         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8524         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8525         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8526         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8527         for testing.
8528         So this is an unexelfsgi.c from a different line of development.
8529
8530 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8531
8532         * regex.c (RE_TR_ASCII): New function.
8533         (RE_TRANSLATE): Call it.
8534
8535 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8536
8537         * buffer.h (TRT_TABLE_OF): Remove assert.
8538         (IN_TRT_TABLE_DOMAIN): Removed.
8539
8540 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8541
8542         * free-hook.c (log_gcpro):
8543         (show_gcprohist): Add support for GCPRO5.
8544
8545 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8546
8547         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8548
8549 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8550
8551         * symeval.h: Declare flush_all_buffer_local_cache.
8552
8553         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8554         (flush_buffer_local_cache): Added.
8555         (flush_all_buffer_local_cache): Added.
8556
8557         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8558
8559         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8560         (pdump_dump_data): Ditto.
8561         (pdump_reloc_one): Ditto.
8562         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8563         before dumping.
8564
8565
8566 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8567
8568         * buffer.c: Remove if 0'ed entry.
8569         * buffer.h: Rewrite TRT to use char-table.
8570         * bufslots.h: Remove mirror tables.
8571         * casetab.c: Remove mirror tables.
8572         (CASE_TABLE_P): New macro.
8573         (Fcase_table_p): Element of a case table is string or char-table.
8574         (make_mirror_trt_table): Removed.
8575         (set_case_table): Setup char-table from strings for backward
8576         compatibility.
8577         * dired.c (Fdirectory_files):
8578         * dired-msw.c: (mswindows_get_files):
8579         * lisp.h: Change prototype of re_pattern_buffer.
8580         * regex.c: (RE_TRANSLATE): New macro.
8581         (TRANSLATE_P): Ditto.
8582         Change translate to type RE_TRANSLATE_TYPE.
8583         * regex.h: Define RE_TRANSLATE_TYPE
8584         * search.c (TRANSLATE): New macro.
8585         (TRANSLATE_ASCII): New macro.
8586         Translate table is changed to Lisp_Object.
8587         (signal_failure): Inhibit return.
8588
8589 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8590
8591         * device-msw.c:
8592         * eldap.c:
8593         * event-Xt.c:
8594         * event-stream.c:
8595         * print.c:
8596         Do UNGCPRO before return.
8597
8598 2000-11-14  Martin Buchholz <martin@xemacs.org>
8599
8600         * XEmacs 21.2.37 is released.
8601
8602 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8603
8604         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8605         Add comments about discarded return value.
8606
8607 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8608
8609         * callint.c:
8610         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8611
8612 2000-10-27  Andy Piper  <andy@xemacs.org>
8613
8614         * gutter.c (Fset_default_gutter_position): default left and right
8615         gutters to visible.
8616         (calculate_gutter_size): calculate resonable heuristic for left
8617         and right gutter sizes.
8618         (specifier_vars_of_gutter): change left and right gutter sizes to
8619         autodetect.
8620         (calculate_gutter_size_from_display_lines): new function.
8621         (output_gutter): check for resizing on left and right gutters.
8622         (clear_gutter): don't special case top and left gutters.
8623         (specifier_vars_of_gutter): use new signature for
8624         set_specifier_caching.
8625
8626         * glyphs-x.c (x_redisplay_widget): spelling fix.
8627         * glyphs.c (specifier_vars_of_glyphs):
8628         * menubar.c (specifier_vars_of_menubar):
8629         * redisplay.c (specifier_vars_of_redisplay):
8630         * toolbar.c (specifier_vars_of_toolbar):
8631         * window.c (specifier_vars_of_window):
8632         * scrollbar.c (specifier_vars_of_scrollbar):
8633         (complex_vars_of_scrollbar): use new signature for
8634         set_specifier_caching.
8635
8636         * specifier.c (set_specifier_caching): include recompute flag.
8637         (recompute_one_cached_specifier_in_window): always recompute if
8638         flag set.
8639         (recompute_one_cached_specifier_in_frame): ditto.
8640
8641         * specifier.h (struct specifier_caching): add recompute flag.
8642
8643 2000-10-24  Andy Piper  <andy@xemacs.org>
8644
8645         * unexcw.c (copy_executable_and_dump_data_section): add new
8646         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8647         5.0 happy.
8648
8649 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8650
8651         * console-x.h (x_device): New member modifier_release_time.
8652         * event-Xt.c (x_handle_sticky_modifiers):
8653         Bound interval modifier keys are sticky.
8654         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8655         * events.h: extern it.
8656
8657 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8658
8659         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8660
8661 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8662
8663         * event-stream.c (execute_command_event): Preserve current_events
8664         and the like when event is misc-user-event.
8665         Inhibit quit during the call to maybe_echo_keys.
8666
8667 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8668
8669         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8670         symlink when buffer is killed.
8671         (inhibit_clash_detection): New variable.
8672
8673 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8674
8675         * console.c (Fset_input_method): Trigger redisplay on tty.
8676
8677 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8678
8679         * process.c (Fprocess_status): Revert to previous behavior:
8680         (process-status "nosuchprocess") ==> nil
8681
8682 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8683
8684         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8685         Work around another GCC 2.95.2 optimizer bug.
8686
8687 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8688
8689         * process.c (Fget_process): Use LIST_LOOP_2.
8690         (kill_buffer_processes): Use LIST_LOOP_2.
8691
8692         * minibuf.c (Fall_completions):
8693         Delete old non-functional code for FSF fourth argument.
8694
8695         * frame.c (frame_matches_frame_spec):
8696         Renamed from `frame_matches_frametype'.  Update all callers.
8697         (device_matches_device_spec):
8698         Renamed from 'device_matches_console_spec'.  Update all callers.
8699
8700         * doc.c (Fsubstitute_command_keys):
8701         Remove buffer overflow crash.  Small code cleanups.
8702
8703         * casetab.c (check_case_table): Simpler code.
8704
8705         * window.c (Freplace_buffer_in_windows):
8706         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8707         (and similar implementation) as Fdelete_windows_on.
8708         Update all callers.
8709
8710         * alloc.c (Fmake_list):
8711         * alloc.c (make_vector):
8712         * alloc.c (Fmake_vector):
8713         * alloc.c (make_bit_vector):
8714         * alloc.c (Fmake_bit_vector):
8715         * alloc.c (Fbit_vector):
8716         * alloc.c (Fmake_string):
8717         * alloc.c (Fpurecopy):
8718         * alloc.c (Fmemory_limit):
8719         * buffer.c:
8720         * buffer.c (Fget_buffer):
8721         * buffer.c (Fkill_buffer):
8722         * buffer.c (complex_vars_of_buffer):
8723         * bytecode.c (Fcompiled_function_stack_depth):
8724         * callint.c (Fprefix_numeric_value):
8725         * event-stream.c:
8726         * event-stream.c (Fread_key_sequence):
8727         * casetab.c:
8728         * casetab.c (Fcase_table_p):
8729         * casetab.c (check_case_table):
8730         * casetab.c (Fset_case_table):
8731         * casetab.c (Fset_standard_case_table):
8732         * chartab.c:
8733         * chartab.c (Fchar_table_type):
8734         * chartab.c (Freset_char_table):
8735         * chartab.c (Fget_char_table):
8736         * chartab.c (Fget_range_char_table):
8737         * chartab.c (Fput_char_table):
8738         * chartab.c (Fmap_char_table):
8739         * chartab.c (Fcategory_table_p):
8740         * chartab.c (Fcheck_category_at):
8741         * chartab.c (Fchar_in_category_p):
8742         * chartab.c (Fcategory_table):
8743         * chartab.c (Fcopy_category_table):
8744         * chartab.c (Fset_category_table):
8745         * chartab.c (Fcategory_designator_p):
8746         * chartab.c (Fcategory_table_value_p):
8747         * cmds.c (Fdelete_char):
8748         * cmds.c (Fdelete_backward_char):
8749         * cmds.c (Fself_insert_command):
8750         * cmds.c (Fself_insert_internal):
8751         * console.c (Fvalid_console_type_p):
8752         * console.c (Fcdfw_console):
8753         * console.c (Fconsole_type):
8754         * console.c (Fconsole_name):
8755         * console.c (Fconsole_device_list):
8756         * console.c (Fconsole_on_window_system_p):
8757         * data.c:
8758         * data.c (Feq):
8759         * data.c (Fold_eq):
8760         * data.c (Fsubr_interactive):
8761         * data.c (Fchar_to_int):
8762         * data.c (Fint_to_char):
8763         * data.c (Fsetcar):
8764         * data.c (Fsetcdr):
8765         * data.c (Fnumber_to_string):
8766         * data.c (Fstring_to_number):
8767         * data.c (Frem):
8768         * database.c (mark_database):
8769         * database.c (finalize_database):
8770         * database.c (Fdatabase_live_p):
8771         * database.c (Fdatabasep):
8772         * device-x.c (Fx_get_resource):
8773         * device.c (Fdfw_device):
8774         * dired.c:
8775         * dired.c (Ffile_name_completion):
8776         * dired.c (Ffile_name_all_completions):
8777         * dired.c (Fuser_name_completion):
8778         * dired.c (Fuser_name_completion_1):
8779         * dired.c (Fuser_name_all_completions):
8780         * doc.c (Fdocumentation):
8781         * doc.c (Fdocumentation_property):
8782         * doc.c (Fsubstitute_command_keys):
8783         * editfns.c:
8784         * editfns.c (Fchar_to_string):
8785         * editfns.c (Fstring_to_char):
8786         * editfns.c (Ftemp_directory):
8787         * editfns.c (Finsert_char):
8788         * editfns.c (Fbuffer_substring_no_properties):
8789         * editfns.c (Fnarrow_to_region):
8790         * editfns.c (Fchar_equal):
8791         * editfns.c (Fchar_Equal):
8792         * editfns.c (Ftranspose_regions):
8793         * emacs.c (Fdump_emacs):
8794         * eval.c (Fthrow):
8795         * eval.c (Fcommand_execute):
8796         * eval.c (Fautoload):
8797         * eval.c (Fbacktrace):
8798         * eval.c (Fbacktrace_frame):
8799         * events.c:
8800         * events.c (Fcopy_event):
8801         * events.c (Fcharacter_to_event):
8802         * events.c (Fevent_button):
8803         * events.c (Fevent_process):
8804         * extents.c:
8805         * extents.c (Fnext_extent_change):
8806         * extents.c (Fextent_property):
8807         * faces.c (Ffacep):
8808         * faces.c (Fmake_face):
8809         * file-coding.c:
8810         * file-coding.c (Fencode_shift_jis_char):
8811         * file-coding.c (Fencode_big5_char):
8812         * fileio.c (Ffile_name_directory):
8813         * fileio.c (Ffile_name_nondirectory):
8814         * fileio.c (Ffile_name_as_directory):
8815         * fileio.c (Fdirectory_file_name):
8816         * fileio.c (Ffile_truename):
8817         * fileio.c (Fsubstitute_in_file_name):
8818         * fileio.c (Ffile_modes):
8819         * fileio.c (Fset_file_modes):
8820         * fileio.c (Fset_default_file_modes):
8821         * fileio.c (Fverify_visited_file_modtime):
8822         * floatfns.c (Facos):
8823         * floatfns.c (Fasin):
8824         * floatfns.c (Fatan):
8825         * floatfns.c (Fcos):
8826         * floatfns.c (Fsin):
8827         * floatfns.c (Ftan):
8828         * floatfns.c (Fbessel_j0):
8829         * floatfns.c (Fbessel_j1):
8830         * floatfns.c (Fbessel_jn):
8831         * floatfns.c (Fbessel_y0):
8832         * floatfns.c (Fbessel_y1):
8833         * floatfns.c (Fbessel_yn):
8834         * floatfns.c (Ferf):
8835         * floatfns.c (Ferfc):
8836         * floatfns.c (Flog_gamma):
8837         * floatfns.c (Fexp):
8838         * floatfns.c (Fexpt):
8839         * floatfns.c (Flog):
8840         * floatfns.c (Flog10):
8841         * floatfns.c (Fsqrt):
8842         * floatfns.c (Fcube_root):
8843         * floatfns.c (Facosh):
8844         * floatfns.c (Fasinh):
8845         * floatfns.c (Fatanh):
8846         * floatfns.c (Fcosh):
8847         * floatfns.c (Fsinh):
8848         * floatfns.c (Ftanh):
8849         * floatfns.c (Fabs):
8850         * floatfns.c (Ffloat):
8851         * floatfns.c (Flogb):
8852         * floatfns.c (Fceiling):
8853         * floatfns.c (Ffloor):
8854         * floatfns.c (Fround):
8855         * floatfns.c (Ftruncate):
8856         * floatfns.c (Ffceiling):
8857         * floatfns.c (Fffloor):
8858         * floatfns.c (Ffround):
8859         * floatfns.c (Fftruncate):
8860         * fns.c (Fstring_equal):
8861         * fns.c (Fstring_lessp):
8862         * fns.c (concat2):
8863         * fns.c (concat3):
8864         * fns.c (vconcat2):
8865         * fns.c (vconcat3):
8866         * fns.c (Fsubstring):
8867         * fns.c (Fassoc):
8868         * fns.c (Fold_assoc):
8869         * fns.c (assoc_no_quit):
8870         * fns.c (Fassq):
8871         * fns.c (Fold_assq):
8872         * fns.c (assq_no_quit):
8873         * fns.c (Frassoc):
8874         * fns.c (Fold_rassoc):
8875         * fns.c (Frassq):
8876         * fns.c (Fold_rassq):
8877         * fns.c (rassq_no_quit):
8878         * fns.c (Fremassoc):
8879         * fns.c (remassoc_no_quit):
8880         * fns.c (Fremassq):
8881         * fns.c (remassq_no_quit):
8882         * fns.c (Fremrassoc):
8883         * fns.c (Fremrassq):
8884         * fns.c (remrassq_no_quit):
8885         * fns.c (Fsort):
8886         * fns.c (Fplist_get):
8887         * fns.c (Fplist_put):
8888         * fns.c (Fplist_remprop):
8889         * fns.c (Fplist_member):
8890         * fns.c (Flax_plist_get):
8891         * fns.c (Flax_plist_put):
8892         * fns.c (Flax_plist_remprop):
8893         * fns.c (Flax_plist_member):
8894         * fns.c (Fequal):
8895         * fns.c (Fold_equal):
8896         * fns.c (Frequire):
8897         * fns.c (Fbase64_encode_region):
8898         * fns.c (Fbase64_encode_string):
8899         * fns.c (Fbase64_decode_region):
8900         * frame.c:
8901         * frame.c (frame_matches_frame_spec):
8902         * frame.c (device_matches_device_spec):
8903         * frame.c (next_frame):
8904         * frame.c (previous_frame):
8905         * frame.c (Fnext_frame):
8906         * frame.c (Fprevious_frame):
8907         * frame.c (Fframe_property):
8908         * frame.c (Fset_frame_height):
8909         * frame.c (Fset_frame_size):
8910         * frame.h:
8911         * glyphs.c:
8912         * glyphs.c (if):
8913         * glyphs.c (decode_error_behavior_flag):
8914         * glyphs.c (Fmake_image_instance):
8915         * indent.c (Findent_to):
8916         * intl.c (Fignore_defer_gettext):
8917         * keymap.c (Fkeymapp):
8918         * keymap.c (Flookup_key):
8919         * lread.c:
8920         * lread.c (Fload_internal):
8921         * lread.c (Feval_buffer):
8922         * lread.c (Feval_region):
8923         * macros.c (Fexecute_kbd_macro):
8924         * marker.c (set_marker_internal):
8925         * marker.c (Fset_marker):
8926         * marker.c (set_marker_restricted):
8927         * marker.c (Fcopy_marker):
8928         * marker.c (noseeum_copy_marker):
8929         * menubar.c:
8930         * menubar.c (Fpopup_menu):
8931         * minibuf.c:
8932         * mule-charset.c (Fcharset_name):
8933         * mule-charset.c (Fchar_charset):
8934         * mule-charset.c (Fchar_octet):
8935         * mule-charset.c (Fsplit_char):
8936         * mule-wnnfns.c (Fwnn_open):
8937         * mule-wnnfns.c (Fwnn_dict_comment):
8938         * mule-wnnfns.c (Fwnn_quit_henkan):
8939         * mule-wnnfns.c (Fwnn_word_toroku):
8940         * mule-wnnfns.c (Fwnn_word_sakujo):
8941         * mule-wnnfns.c (Fwnn_word_use):
8942         * mule-wnnfns.c (Fwnn_hindo_set):
8943         * objects.c:
8944         * objects.c (Fmake_color_instance):
8945         * objects.c (Fmake_font_instance):
8946         * print.c (Fwrite_char):
8947         * process.c:
8948         * process.c (mark_process):
8949         * process.c (print_process):
8950         * process.c (get_process_from_usid):
8951         * process.c (Fprocessp):
8952         * process.c (Fprocess_live_p):
8953         * process.c (Fget_process):
8954         * process.c (Fget_buffer_process):
8955         * process.c (get_process):
8956         * process.c (Fprocess_id):
8957         * process.c (Fprocess_name):
8958         * process.c (Fprocess_command):
8959         * process.c (init_process_io_handles):
8960         * process.c (start_process_unwind):
8961         * process.c (Fstart_process_internal):
8962         * process.c (Fopen_multicast_group_internal):
8963         * process.c (Fset_process_window_size):
8964         * process.c (read_process_output):
8965         * process.c (send_process):
8966         * process.c (Fprocess_tty_name):
8967         * process.c (Fset_process_buffer):
8968         * process.c (Fprocess_buffer):
8969         * process.c (Fprocess_mark):
8970         * process.c (set_process_filter):
8971         * process.c (Fset_process_filter):
8972         * process.c (Fprocess_filter):
8973         * process.c (Fprocess_send_region):
8974         * process.c (Fprocess_send_string):
8975         * process.c (exec_sentinel):
8976         * process.c (Fset_process_sentinel):
8977         * process.c (Fprocess_sentinel):
8978         * process.c (status_notify):
8979         * process.c (Fprocess_status):
8980         * process.c (Fprocess_exit_status):
8981         * process.c (process_send_signal):
8982         * process.c (Fprocess_send_eof):
8983         * process.c (deactivate_process):
8984         * process.c (remove_process):
8985         * process.c (Fdelete_process):
8986         * process.c (kill_buffer_processes):
8987         * process.c (Fprocess_kill_without_query):
8988         * process.c (Fprocess_kill_without_query_p):
8989         * rangetab.c:
8990         * rangetab.c (Fget_range_table):
8991         * rangetab.c (Fput_range_table):
8992         * rangetab.c (Fremove_range_table):
8993         * rangetab.c (Fclear_range_table):
8994         * search.c:
8995         * search.c (Fskip_chars_forward):
8996         * search.c (Fskip_chars_backward):
8997         * search.c (Fskip_syntax_forward):
8998         * search.c (Fskip_syntax_backward):
8999         * search.c (search_command):
9000         * search.c (Freplace_match):
9001         * search.c (Fregexp_quote):
9002         * select.c (Fown_selection_internal):
9003         * select.c (Fselection_owner_p):
9004         * select.c (Fselection_exists_p):
9005         * select.c (Fget_selection_internal):
9006         * specifier.c:
9007         * symbols.c:
9008         * symbols.c (Fintern):
9009         * symbols.c (Fintern_soft):
9010         * symbols.c (Funintern):
9011         * symbols.c (Fapropos_internal):
9012         * symbols.c (Fset_default):
9013         * syntax.c:
9014         * syntax.c (Fsyntax_table_p):
9015         * syntax.c (Fcopy_syntax_table):
9016         * syntax.c (Fset_syntax_table):
9017         * syntax.c (Fchar_syntax):
9018         * syntax.c (syntax_match):
9019         * syntax.c (Fmatching_paren):
9020         * syntax.c (Fforward_word):
9021         * syntax.c (scan_lists):
9022         * syntax.c (Fscan_lists):
9023         * syntax.c (Fscan_sexps):
9024         * syntax.c (Fparse_partial_sexp):
9025         * toolbar.c (Fcheck_toolbar_button_syntax):
9026         * tooltalk.doc:
9027         * window.c:
9028         * window.c (Fwindowp):
9029         * window.c (Fwindow_live_p):
9030         * window.c (Fwindow_point):
9031         * window.c (Fdelete_window):
9032         * window.c (Fnext_window):
9033         * window.c (Fprevious_window):
9034         * window.c (Fother_window):
9035         * window.c (window_loop):
9036         * window.c (Fget_lru_window):
9037         * window.c (Fsplit_window):
9038         * window.c (Fenlarge_window):
9039         * window.c (Fenlarge_window_pixels):
9040         * window.c (Fshrink_window):
9041         * window.c (Fshrink_window_pixels):
9042         * window.c (change_window_height):
9043         * window.c (Fwindow_configuration_p):
9044         * window.c (Fcurrent_window_configuration):
9045         * window.h:
9046         * casefiddle.c (casify_object):
9047         * casefiddle.c (Fupcase):
9048         * casefiddle.c (Fdowncase):
9049         * casefiddle.c (Fcapitalize):
9050         * casefiddle.c (Fupcase_initials):
9051         * casefiddle.c (casify_region_internal):
9052         * casefiddle.c (casify_region):
9053         * casefiddle.c (Fupcase_region):
9054         * casefiddle.c (Fdowncase_region):
9055         * casefiddle.c (Fcapitalize_region):
9056         * casefiddle.c (Fupcase_initials_region):
9057         * casefiddle.c (Fupcase_word):
9058         * casefiddle.c (Fdowncase_word):
9059         * casefiddle.c (Fcapitalize_word):
9060         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9061         Replace 0 with '\0' when working with bytes.
9062         Replace initial "(" with "\(" in docstrings.
9063
9064 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9065
9066         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9067
9068         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9069
9070 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9071
9072         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9073
9074 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9075
9076         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9077         correctly.
9078
9079 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9080
9081         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9082         (inhibit_auto_save_session): New variable.
9083         (vars_of_fileio): Declare and initialize them.
9084         * fileio.c (Fdo_auto_save): Don't create session file if
9085         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9086
9087 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9088
9089         * sgiplay.c (play_internal): C++ compilability.
9090         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9091         * callproc.c (Fold_call_process_internal):
9092         Remove unused vars `env', `first'.
9093         * scrollbar.c (update_scrollbar_instance):
9094         #### unused var `current_window'.
9095         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9096         etc. within #ifdef NOT_YET.
9097         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9098         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9099         * specifier.c (specifier_instance):
9100         #### unused var `tag'.
9101         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9102
9103 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9104
9105         * fns.c (Fbutlast):
9106         * fns.c (list_sort):
9107         * fns.c (Ffillarray):
9108         * fns.c (bytecode_nconc2):
9109         * fns.c (Fnconc):
9110         * fns.c (mapcar1):
9111         * fns.c (Fmapconcat):
9112         Be pedantically 64-bit correct.  For the time when someone will
9113         want to have a list with length > 2**32.
9114
9115         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9116         Work around MIPSpro compiler bug.
9117
9118         * process-unix.c (unix_kill_child_process): Add snarky comment.
9119         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9120
9121         * config.h.in: Oops, _getpt ==> _getpty
9122
9123 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9124
9125         * config.h.in:
9126         * regex.c:
9127         Use void*, not char*, as return type of alloca().
9128
9129         * alloc.c (free_marker): Side effect inside assert expression!
9130
9131 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9132
9133         * mule-charset.c (Fset_charset_ccl_program): To check
9134         if the given ccl program is valid, use setup_ccl_program()
9135         instead of CHECK_VECTOR().
9136         (Fmake_charset): Likewise.
9137
9138 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9139
9140         * faces.c (get_extent_fragment_face_cache_index):
9141         Fix cachel.merged_faces memory leak.
9142
9143 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9144
9145         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9146         Reset MSB of octets obtained by DECODE_SJIS
9147         because of the incompatibility with Emacs.
9148         (ccl_driver)<CCL_ENCODE_SJIS>:
9149         Set MSB of octets before passing them to
9150         ENCODE_SJIS because of the incompatibility
9151         with Emacs.
9152
9153 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9154
9155         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9156         (DECLARE_LRECORD): Undo the last change.
9157         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9158
9159 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9160
9161         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9162         the implementation to lrecord_implementations_table.
9163
9164 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9165
9166         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9167         initial value of `lrecord_type_##c_name' and
9168         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9169         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9170         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9171         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9172         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9173
9174 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9175
9176         * miscplay.c (sndcnv8S_2mono):
9177         (sndcnv2monounsigned):
9178         (sndcnvULaw_2linear):
9179         (sndcnv16swap):
9180         Remove implementation-defined behavior.
9181
9182 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9183
9184         * input-method-xlib.c: Warning suppression.
9185
9186 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9187
9188         * mule-ccl.c: Sync up with Emacs 21.0.90.
9189         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9190         Do nothing.
9191         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9192         Likewise.
9193         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9194         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9195         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9196         leading char belongs to official 2-dimensional charset.
9197         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9198         write the given character as is.  Otherwise,
9199         if it is a multibyte char, convert it by
9200         non_ascii_set_charptr_emchar, then write it.
9201         (CCL_WRITE_STRING): Likewise.
9202         (ccl_get_compiled_code): New function.
9203         (setup_ccl_program): When ccl_prog is invalid,
9204         return -1.
9205         (Fregister_code_conversion_map): New function.
9206         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9207
9208         * mule-ccl.h: Sync up with Emacs 21.0.90.
9209         (Fregister_ccl_program): export it.
9210
9211         * redisplay-msw.c (separate_textual_runs):
9212         If ccl program is not valid, don't do ccl conversion.
9213
9214         * redisplay-x.c (separate_textual_runs): Ditto.
9215
9216         * file-coding.c (Fmake_coding_system):
9217         When type is ccl and value is vector, register it
9218         with a proper symbol.  And checks whether the
9219         given ccl program is valid.
9220         (mule_decode): When calling ccl_driver, if src indicates
9221         NULL pointer, set an empty string instead.
9222         (mule_encode): Likewise.
9223
9224 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9225
9226         The following large batch of changes gets us back to a state of
9227         C++ compilability.  Extbyte is now a char, which means that
9228         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9229
9230         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9231
9232         * sound.c (Fplay_sound): Type correctness.
9233
9234         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9235         (x_get_window_property): Type correctness.
9236         (receive_incremental_selection): unsigned char ==> Extbyte
9237         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9238         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9239         (Fx_store_cutbuffer_internal): Type correctness.
9240
9241         * process-unix.c (try_to_initialize_subtty): Type correctness.
9242
9243         * objects-x.c (x_print_color_instance): Type correctness.
9244         (x_print_font_instance): Type correctness.
9245         (x_list_fonts): SExtbyte ==> Extbyte.
9246         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9247         (x_find_charset_font): SExtbyte ==> Extbyte.
9248         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9249         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9250         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9251         Use bufbyte_strcmp.
9252
9253         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9254         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9255         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9256         (BYTE_C0_P): Use bit ops for char-signedness safety.
9257         (BYTE_C1_P): Use bit ops for char-signedness safety.
9258         (CHARSET_BY_LEADING_BYTE):
9259         (CHARSET_BY_ATTRIBUTES):
9260         Always use inline function.
9261         Use type_checking_assert.
9262         Hide chlook.
9263
9264         * mule-charset.c (non_ascii_charptr_copy_char):
9265         Modify to work with both ASCII and non-ASCII characters.
9266         Improve docs and variable names.
9267         Replace over-clever fall-through switch with a simple loop.
9268         (Lstream_get_emchar_1):
9269         Replace over-clever fall-through switch with a simple loop.
9270
9271         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9272         Warning suppression.
9273
9274         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9275         the return value of Lstream_getc, which could be EOF as well.
9276
9277         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9278
9279         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9280         APIs can be used on Extbytes without casts.  Risky!
9281         (SExtbyte): Remove.
9282         (UExtbyte): Remove.
9283
9284         * input-method-xlib.c (XIM_init_device):
9285         Use Xlib.h instead of IntrinsicP.h.
9286         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9287         which will break in X11R7.
9288         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9289         to call XRegisterIMInstantiateCallback with correct types.
9290
9291         * gui-x.c (button_item_to_widget_value): Type correctness.
9292
9293         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9294
9295         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9296         (xbm_instantiate_1): Type correctness.
9297         (BUILD_GLYPH_INST):  Type correctness.
9298
9299         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9300
9301         * file-coding.c:
9302         (decode_coding_sjis):
9303         (decode_coding_big5):
9304         (decode_coding_ucs4):
9305         (decode_coding_utf8):
9306         (decode_coding_iso2022):
9307         (decode_coding_no_conversion):
9308         Make all decoding functions take an Extbyte * arg.
9309         (encode_coding_sjis):
9310         (encode_coding_big5):
9311         (encode_coding_ucs4):
9312         (encode_coding_utf8):
9313         (encode_coding_iso2022):
9314         (encode_coding_no_conversion):
9315         Make all encoding functions take a Bufbyte * arg.
9316         Use size_t instead of unsigned int for memory sizes.
9317         Only cast to unsigned char whenever dereferencing Extbyte *.
9318
9319         * doc.c (unparesseuxify_doc_string): Type correctness.
9320
9321         * console-x.c (split_up_display_spec):
9322         Rewrite without using details of internal string representation.
9323         (x_semi_canonicalize_device_connection): Type correctness.
9324
9325         * config.h.in:
9326         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9327         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9328         (HAVE_XFREE386): Removed.
9329
9330         * buffer.h (DEC_CHARPTR): `const' correctness.
9331         (bufbyte_strcmp): New.
9332         (bufbyte_memcmp): New.
9333
9334         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9335
9336         * buffer.h (XCHAR_OR_CHAR_INT):
9337         Always use inline function.
9338         Remove redundant type checking assert() - XINT will abort quite nicely.
9339
9340 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9341
9342         * search.c (Freplace_match): Set newtext to an empty string.
9343
9344 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9345
9346         * s/decosf1-3.h: Remove #include of stropts.h
9347         * s/ptx.h: Remove #include of stropts.h
9348         * s/usg5-4.h: Remove #include of stropts.h
9349         * sysproc.h:
9350         * config.h.in:
9351         Use stropts.h, not sys/stropts.h.
9352         Use strtio.h, not sys/strtio.h.
9353
9354 2000-10-04  Martin Buchholz <martin@xemacs.org>
9355
9356         * XEmacs 21.2.36 is released.
9357
9358 2000-09-21  Andy Piper  <andy@xemacs.org>
9359
9360         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9361         changes still involve copying the widget tree.
9362         (update_widget_face): make sure a change is register in the widget
9363         tree. Call update_tab_widget_face appropriately.
9364         (update_tab_widget_face): ditto.
9365         (x_tab_control_redisplay): make sure non-structural changes still
9366         involve copying the widget tree.
9367
9368 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9369
9370         * lread.c (locate_file): Check the path element is non-nil.
9371
9372 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9373
9374         * lisp.h: Warning suppression for SCO compilers.
9375
9376         * redisplay-tty.c (reset_tty_modes): Fix crash.
9377         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9378
9379 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9380
9381         Big signal/process handling overhaul.  Bugs fixed:
9382         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9383         M-x comint-kill-subjob should work for both values nil and t of
9384         process-connection-type. It was broken on most platforms.
9385         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9386         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9387         * process-unix.c: Signal/Process handling overhaul.
9388         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9389         (allocate_pty): Use all available modern methods of allocating
9390         ptys, falling back to old style BSD allocation as a last resort.
9391         Use allegedly more secure Unix98 pty allocation by default.
9392         (allocate_pty_the_old_fashioned_way): New. the last resort.
9393         (unix_create_process): Push ptem, ldterm, ttcompat where
9394         available.  Autoconfiscate.
9395         (try_to_initialize_subtty): New.
9396         (unix_kill_child_process): Proper signal handling for ptys on most
9397         platforms, using special knowledge of AIX, BSD, etc...
9398         (unix_create_process): Always disconnect_controlling_terminal() for
9399         subprocesses, whether using ptys or not.
9400         * process.h: Remove old getpt-dependent PTY code.
9401         * process.c (Fprocess_send_signal): New, obvious generic function.
9402         (decode_signal): New.
9403         (Finterrupt_process):
9404         (Fkill_process):
9405         (Fquit_process):
9406         (Fstop_process):
9407         (Fcontinue_process):
9408         (Fsignal_process): Use decode_signal.
9409         (process_send_signal):
9410         Many docstring corrections.
9411         Allow any signal to be sent to a process object.
9412         * config.h.in: Add symbols for big signal/process overhaul.
9413         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9414         * sysproc.h: Include process-related headers, where available:
9415         sys/stropts.h sys/strtio.h pty.h libutil.h
9416         * s/irix4-0.h:
9417         * s/irix5-0.h:
9418         * s/cygwin32.h:
9419         * s/gnu.h:
9420         * s/linux.h:
9421         * s/hpux.h:
9422         * s/aix3-1.h:
9423         Remove old S&M pty stuff.
9424         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9425         * systty.h: Simplify cpp hackery, improve comments.
9426         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9427
9428         * editfns.c (Fformat_time_string):
9429         Be a little more paranoid with the return value of ctime.
9430
9431         * fileio.c (check_executable):
9432         (check_writable):
9433         Use symbolic constants X_OK, W_OK.
9434
9435         * console-x.c (split_up_display_spec): Fix a warning.
9436
9437 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9438
9439         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9440         * ntproc.c (sys_spawnve): make_string ==> build_string
9441         Small clarity improvements.
9442
9443 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9444
9445         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9446
9447         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9448
9449         * config.h.in (HAVE_STRCASECMP): Remove.
9450
9451 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9452
9453         * redisplay-output.c (redisplay_output_pixmap):
9454         Cleaner and possibly more 64-bit correct code.
9455
9456 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9457
9458         * dumper.c (pdump_load_finish): move restoration of
9459         `noninteractive1' to emacs.c (main_1).
9460         * emacs.c (main_1): protect LISP-visible command-line flags
9461         from pdump_load().
9462
9463 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9464
9465         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9466         DUMP_TARGET instead of literal program names.
9467
9468 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9469
9470         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9471
9472 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9473
9474         * *: Spelling mega-patch
9475
9476 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9477
9478         * fns.c (bad_bad_turtle):
9479         Delete "Eek!" comment, since we fixed the bug to which it refers.
9480
9481 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9482
9483         * alloca.c: Replace REGISTER with register.
9484
9485 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9486
9487         * file-coding.c (ucs_to_char): Use countof.
9488
9489 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9490
9491         * file-coding.c: (ucs_to_char):
9492         (complex_vars_of_file_coding):
9493         Use countof instead of sizeof.
9494         Use CHECK_NATNUM instead of CHECK_INT.
9495
9496         * sysdep.c (strcasecmp): Remove.
9497         * device-x.c (ascii_strcasecmp): New.
9498         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9499         Avoid using non-standard non-portable strcasecmp.
9500
9501 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9502
9503         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9504         * font-lock.c: remove reference to emacsfns.h.
9505         * search.c: small doc improvement.
9506         * event-Xt.c: correct file names in comments.
9507         * console-x.h Correct file names in comments.
9508         * frame.c: Correct file names in comments.
9509         * event-stream.c: remove Energize from comments.
9510
9511 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9512
9513         * symeval.h (DEFERROR_STANDARD):
9514         (DEFERROR):
9515         (DEFSYMBOL):
9516         (DEFSYMBOL_NO_DUMP):
9517         (DEFSYMBOL_MULTIWORD_PREDICATE):
9518         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9519         (DEFKEYWORD):
9520         The construct &##name is not sensible C.
9521         Fixes compilation errors with Unixware native compiler.
9522
9523 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9524
9525         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9526         (next_frame_internal): Removed.  We now just have next_frame.
9527         (next_frame):
9528         Write a simpler and cleaner one-pass algorithm.
9529         Remove called_from_delete_device arg and #ifdefed-out code.
9530         (previous_frame):
9531         Renamed from prev_frame.  Update callers.
9532         Cleaned up to have an analogous implementation to next_frame.
9533         (other_visible_frames_internal): Remove the
9534         called_from_delete_device bogus arg, and hence, remove this
9535         function.  Just use other_visible_frames().
9536
9537         * window.c (Fnext_window):
9538         Prettify docstring.
9539         Since next_frame() is guaranteed to return a frame, remove check
9540         for nil inserted in previous patch.
9541         (Fprevious_window):
9542         Prettify docstring.
9543         Make code look more like Fnext_window.
9544         (window_loop):
9545         Respect the `console' arg when iterating through windows.
9546         Fixes bug: (get-buffer-window buffer t device) not respecting
9547         the `device' arg.
9548         This function needs more work, as others have pointed out.
9549
9550         * frame.h: Rename prev_frame to previous_frame.
9551         device_matches_console_spec no longer takes a `frame' arg.
9552
9553         * s/gnu.h:
9554         * s/linux.h:
9555         * s/hpux.h:
9556         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9557         From "Golubev I. N." <gin@mo.msk.ru>.
9558
9559         * make-src-depend: Fix typo.
9560
9561 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9562
9563         * window.c (Fnext_window):
9564         next_frame() might return nil, not a frame.
9565         Fixes this crash:
9566         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9567
9568         * frame.c (next_frame_internal):
9569         We've passed a frame if we've passed its device.
9570         Fixes this crash:
9571         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9572 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9573
9574 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9575
9576         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9577         Allow option to suppress accelerators in menu/dialog items.
9578         (populate_or_checksum_helper): Pass dialog title through above.
9579
9580 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9581
9582         * event-msw.c (mswindows_key_to_emacs_keysym):
9583         Add "pause" key, fix "menu" key.
9584
9585 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9586
9587         * eval.c (reinit_vars_of_eval):
9588         Increase max_lisp_eval_depth to 1000,
9589         required for thai-xtis.el to byte-compile under some circumstances.
9590
9591 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9592
9593         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9594         From Kenichi Handa.
9595
9596 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9597
9598         * make-src-depend: Make the generated Makefiles smaller.
9599
9600         * s/hpux.h (SETUP_SLAVE_PTY):
9601         Provide a %d in the format string for the errno argument.
9602
9603         * editfns.c (Ftemp_directory):
9604         Warning fix.
9605         Avoid buffer overrun on very long file name.
9606
9607         * input-method-xlib.c (XIM_init_device):
9608         6th parameter of XRegisterIMInstantiateCallback has different
9609         pointer types on different OSes, so simply cast to (void *).
9610
9611         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9612
9613         * sysdll.c (dll_open):
9614         shl_load will hang hard if passed a NULL filename.
9615         Simply return NULL for compatibility with dlopen.
9616         * sysdll.c: Conform to XEmacs coding standards.
9617
9618         * sysdep.c (get_pty_max_bytes):
9619         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9620
9621 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9622
9623         * tooltalk.c: Add #include <syssignal.h>
9624
9625 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9626
9627         * s/hpux.h: Don't use undefined function sigunblock().
9628
9629 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9630
9631         * config.h.in: Add HAVE_BALLOON_HELP.
9632         * emacs.c: Use HAVE_BALLOON_HELP.
9633         * Makefile.in.in (x_objs):
9634         Make Balloon Help conditional on finding shape.h.
9635
9636 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9637
9638         * syntax.c (regex_emacs_buffer_p): New variable.
9639         * syntax.h (regex_emacs_buffer_p): extern.
9640         * search.c (looking_at_1):
9641         (string_match_1):
9642         (fast_string_match):
9643         (search_buffer): Set regex_emacs_buffer_p.
9644         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9645         when before_dot, at_dot, after_dot.
9646
9647 2000-08-23  Andy Piper  <andy@xemacs.org>
9648
9649         * gui-x.c (popup_selection_callback): Only set action_occurred
9650         when we really have an image instance.
9651         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9652
9653 2000-08-23  Andy Piper  <andy@xemacs.org>
9654
9655         * gui-msw.c (mswindows_handle_gui_wm_command): set
9656         action_occurred.
9657         * gui-x.c (popup_selection_callback): ditto.
9658
9659         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9660         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9661         (struct Lisp_Image_Instance): add action_occurred flag.
9662
9663         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9664         (image_instance_changed): ditto.
9665         (reset_frame_subwindow_instance_cache): only unmap windows - do
9666         not remove them from the cache also.
9667
9668         * glyphs-widget.c (tab_control_update): better debug.
9669         (progress_gauge_update): ditto.
9670         (layout_update): ditto.
9671         (layout_instantiate): ditto.
9672         (tab_control_order_only_changed): cope with null pending items.
9673
9674         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9675         debug. Force selection of an item when an action occurred. Cope
9676         with null pending_items.
9677         (mswindows_progress_gauge_redisplay): better debug.
9678         * glyphs-x.c (x_tab_control_redisplay): ditto.
9679
9680         * redisplay.c (redisplay_frame): reset the frame cache if the
9681         frame is garbaged.
9682
9683         * window.c (Fset_window_configuration): potentially re-enable
9684         frame cache reset.
9685         (window_unmap_subwindows): need to finalize instances here since
9686         it is only used in mark_window_as_deleted.
9687
9688 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9689
9690         * nas.c (SndOpenDataForReading):
9691         nas.c (WaveOpenDataForReading):
9692         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9693         Somehow escaped from the 2000-08-14 patch.
9694
9695 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9696
9697         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9698         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9699
9700 2000-08-21  Andy Piper  <andy@xemacs.org>
9701
9702         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9703         window if it is not already displayed.
9704
9705         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9706         it is not already displayed.
9707
9708         * window.c (Fset_window_configuration): don't reset the frame
9709         cache.
9710
9711         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9712         instances from the frame cache if we are actually finalizing them.
9713         (reset_frame_subwindow_instance_cache): reset frame cache only
9714         after unmapping everything.
9715         (map_subwindow): set displayed flag after mapping.
9716
9717 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9718
9719         * data.c (indirect_function):
9720         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9721
9722         * eval.c (function_argcount):
9723         Use original function when signaling errors.
9724
9725 2000-08-18  Andy Piper  <andy@xemacs.org>
9726
9727         * frame.c (delete_frame_internal): use new
9728         free_frame_subwindow_instances name.
9729
9730         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9731         (add_tab_item): make return type correct.
9732         (mswindows_tab_control_instantiate): assert index of tab.
9733         (mswindows_tab_control_redisplay): Re-code to use
9734         gui_item_equal_sans_selected and gui_item_list_find_selected.
9735
9736         * glyphs-widget.c (tab_control_update): Correct comment.
9737
9738         * window.c (window_unmap_subwindows): use new
9739         unmap_subwindow_instance_cache_mapper.
9740         (window_unmap_subwindows_cache_mapper): deleted.
9741         (Fset_window_configuration): comparisons should now be with
9742         EQ. Preserve the subwindow instance cache across configuration
9743         changes.
9744         (allocate_window): ditto.
9745         (make_dummy_parent): ditto.
9746
9747         * glyphs.c (free_frame_subwindow_instances): rename from
9748         free_frame_subwindow_instance_cache. finalize all instances rather
9749         than just those in the display cache.
9750         (finalize_all_subwindow_instances): walk windows unmapping and
9751         finalizing subwindows.
9752         (unmap_subwindow_instance_cache_mapper): moved from
9753         window.c. Allow finalization as well as unmapping.
9754
9755         * gui.c (gui_item_list_find_selected): new function.
9756
9757         * gui.h (gui_item_list_find_selected): declare.
9758
9759         * glyphs-x.c (x_tab_control_redisplay): pick tab
9760         explicitly. Re-code to use gui_item_equal_sans_selected and
9761         gui_item_list_find_selected.
9762
9763         * glyphs-x.h: add lwlib-utils.h
9764
9765         * buffer.c (Frecord_buffer): undo previous change.
9766
9767 2000-08-09  Vin Shelton  <acs@xemacs.org>
9768
9769         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9770         possible.  Create temporary files more securely.  The patch was
9771         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9772         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9773         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9774         for details.
9775
9776 2000-08-07  Ben Wing  <ben@xemacs.org>
9777
9778         * getloadavg.c: remove duplicate (and windows-breaking)
9779         includes of fcntl.h and sys/file.h.
9780
9781         * nt.c: remove duplicate getloadavg() definition.
9782
9783         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9784         encodings.
9785
9786 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9787
9788         * eval.c (function_argcount): If function needs to be autoloaded
9789         actually use the loaded definition.
9790         GCPRO function.
9791
9792 2000-08-05  Ben Wing  <ben@xemacs.org>
9793
9794         * getloadavg.c: add prototype for getloadavg().  remove
9795         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9796         of the code).  remove duplicate header includes.
9797
9798         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9799
9800         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9801         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9802         useful load average.
9803
9804         * alloc.c (reinit_alloc_once_early): removed references to
9805         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9806         the lisp vars are the only things referencing the malloc_sbrk_*
9807         vars, and they were already if 0'd out.  these vars only exist
9808         in the older malloc.c, which is basically unused, and they're
9809         only for informational purposes.
9810
9811         * m\*.h: removed useless VIRT_ADDR_VARIES.
9812
9813         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9814
9815 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9816
9817         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9818         color if the image is a mono pixmap.
9819
9820 2000-07-30  Ben Wing  <ben@xemacs.org>
9821
9822         * Makefile.in.in (release):
9823         Remove stray @.
9824
9825         * buffer.c (directory_is_current_directory):
9826         * dired-msw.c (mswindows_get_files):
9827         * dired.c:
9828         * dired.c (Fdirectory_files):
9829         * dired.c (file_name_completion_stat):
9830         * dired.c (Ffile_attributes):
9831         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9832         preprocessor tricks, to avoid problems on some machines
9833         (e.g. SCO).
9834
9835         * callproc.c (egetenv): GC docs.
9836
9837         * console-msw.h:
9838         * console-msw.h (struct mswindows_dialog_id):
9839         * lrecord.h (lrecord_type):
9840         New object for use with MSW dialogs.
9841
9842         * console.h (struct console_methods):
9843         New enable/disable frame methods, for proper modal dialogs.
9844
9845         * device-msw.c (msprinter_default_printer): Fix to follow
9846         proper Mule conventions.
9847
9848         * device-msw.c:
9849         * device-msw.c (signal_open_printer_error):
9850         * device-msw.c (msprinter_init_device):
9851         * device-msw.c (ensure_not_printing):
9852         * device-msw.c (plist_get_margin):
9853         * device-msw.c (Fmsprinter_select_settings):
9854         * device-msw.c (finalize_devmode):
9855         * device-msw.c (Fmsprinter_settings_despecialize):
9856         * device-msw.c (signal_enum_priner_error):
9857         * extents.c (decode_extent):
9858         * extents.c (decode_map_extents_flags):
9859         * extents.c (decode_extent_at_flag):
9860         * extents.c (Fextent_at):
9861         * extents.c (Fextents_at):
9862         * extents.c (symbol_to_glyph_layout):
9863         [[[[2]]]] Use structured errors.
9864
9865         * dialog-msw.c:
9866         * dialog-msw.c (mswindows_is_dialog_msg):
9867         * dialog-msw.c (mark_mswindows_dialog_id):
9868         * dialog-msw.c (dialog_proc):
9869         * dialog-msw.c (handle_question_dialog_box):
9870         * dialog-msw.c (syms_of_dialog_mswindows):
9871         Define new object to clean up marking; use it as a dialog identifier.
9872         Call new delete-dialog-box-hook.
9873
9874         * dialog-x.c (dbox_selection_callback):
9875         * dialog-x.c (dbox_descriptor_to_widget_value):
9876         * dialog-x.c (x_make_dialog_box_internal):
9877         Call new delete-dialog-box-hook.
9878         Return an id.
9879
9880         * dialog.c:
9881         * dialog.c (syms_of_dialog):
9882         * dialog.c (vars_of_dialog):
9883         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9884
9885         * eval.c:
9886         * eval.c (signal_call_debugger):
9887         when noninteractive, output stack traces on the console instead
9888         of in a (never-seen) buffer.
9889
9890         * eval.c (signal_type_error):
9891         * eval.c (invalid_argument_2):
9892         * lisp.h:
9893         new funs for use w/structured errors.
9894
9895         * event-Xt.c:
9896         * event-Xt.c (x_to_emacs_keysym):
9897         * event-Xt.c (describe_event):
9898         * event-Xt.c (emacs_Xt_event_handler):
9899         * event-Xt.c (vars_of_event_Xt):
9900         * event-msw.c:
9901         * event-msw.c (mswindows_wnd_proc):
9902         * event-msw.c (vars_of_event_mswindows):
9903         rename {x,mswindows}-debug-events to debug-{}-events for
9904         consistency with other debug-foo variables.
9905
9906         * event-stream.c:
9907         document next-event more clearly.
9908
9909         * fileio.c (Ffile_name_directory):
9910         * fileio.c (Ffile_name_nondirectory):
9911         * fileio.c (Funhandled_file_name_directory):
9912         * fileio.c (file_name_as_directory):
9913         * fileio.c (Ffile_name_as_directory):
9914         * fileio.c (directory_file_name):
9915         * fileio.c (Fdirectory_file_name):
9916         * fileio.c (Fmake_temp_name):
9917         * fileio.c (Ffile_truename):
9918         * fileio.c (Fsubstitute_in_file_name):
9919         * fileio.c (expand_and_dir_to_file):
9920         * fileio.c (barf_or_query_if_file_exists):
9921         * fileio.c (check_executable):
9922         * fileio.c (Ffile_exists_p):
9923         * fileio.c (Ffile_writable_p):
9924         * fileio.c (Ffile_directory_p):
9925         * fileio.c (Ffile_regular_p):
9926         * fileio.c (Ffile_modes):
9927         * fileio.c (Ffile_newer_than_file_p):
9928         * fileio.c (Fverify_visited_file_modtime):
9929         * fileio.c (Fset_visited_file_modtime):
9930         * fileio.c (auto_save_1):
9931         (1). (2).
9932         fix up gcpro's.
9933
9934         * frame-msw.c:
9935         * frame-msw.c (mswindows_init_frame_1):
9936         * frame-msw.c (mswindows_enable_frame):
9937         * frame-msw.c (error_frame_unsizable):
9938         * frame-msw.c (msprinter_init_frame_1):
9939         * frame-msw.c (msprinter_init_frame_3):
9940         * frame-msw.c (console_type_create_frame_mswindows):
9941         (2).
9942         implement new enable/disable frame methods.
9943
9944         * frame-x.c:
9945         * frame-x.c (x_enable_frame):
9946         * frame-x.c (console_type_create_frame_x):
9947         implement new enable/disable frame methods.
9948
9949         * frame.c:
9950         * frame.c (Fdisable_frame):
9951         * frame.c (syms_of_frame):
9952         * frame.h (struct frame):
9953         implement new enable/disable frame methods/functions.
9954
9955         * general-slots.h:
9956         add initial-focus.
9957
9958         * glyphs-msw.c (mswindows_widget_instantiate):
9959         comment that initial-focus should be implemented.
9960
9961         * glyphs-widget.c:
9962         * glyphs-widget.c (check_valid_instantiator):
9963         * glyphs-widget.c (check_valid_orientation):
9964         * glyphs-widget.c (check_valid_tab_orientation):
9965         * glyphs-widget.c (check_valid_justification):
9966         * glyphs-widget.c (check_valid_border):
9967         * glyphs-widget.c (check_valid_callback):
9968         * glyphs-widget.c (check_valid_int_or_function):
9969         * glyphs-widget.c (check_valid_string_or_vector):
9970         * glyphs-widget.c (check_valid_item_list_1):
9971         * glyphs-widget.c (widget_validate):
9972         * glyphs-widget.c (combo_box_validate):
9973         * glyphs-widget.c (widget_instantiate):
9974         * glyphs-widget.c (syms_of_glyphs_widget):
9975         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9976         * glyphs-widget.c (image_instantiator_combo_box):
9977         * glyphs-widget.c (image_instantiator_scrollbar):
9978         * glyphs-widget.c (image_instantiator_tab_control):
9979         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9980         (2).
9981         support (unimplemented) keyword initial-focus.
9982         reindent long macros.
9983
9984         * glyphs-x.c (x_redisplay_widget):
9985         * glyphs-x.c (x_button_instantiate):
9986         * glyphs-x.c (x_button_redisplay):
9987         * glyphs-x.c (x_progress_gauge_instantiate):
9988         * glyphs-x.c (x_edit_field_instantiate):
9989         * glyphs-x.c (x_combo_box_instantiate):
9990         * glyphs-x.c (x_tab_control_instantiate):
9991         * glyphs-x.c (x_label_instantiate):
9992         * gui-x.c:
9993         * gui-x.c (button_item_to_widget_value):
9994         * gui-x.c (gui_items_to_widget_values_1):
9995         * gui-x.c (gui_item_children_to_widget_values):
9996         * gui-x.c (gui_items_to_widget_values):
9997         * gui-x.h:
9998         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9999         add new flag to gui-parsing routines to indicate whether
10000         accelerator specs should be supported.
10001
10002         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10003
10004         * glyphs.h (struct Lisp_Image_Instance):
10005         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10006         add initial-focus flag.
10007
10008         * gui.c:
10009         * gui.c (syms_of_gui):
10010         * gui.c (vars_of_gui):
10011         clean up menu-no-selection-hook.
10012
10013         * gui.h:
10014         support delete-dialog-box-hook.
10015
10016         * lread.c (Fload_internal):
10017         * lread.c (locate_file_in_directory_mapper):
10018         (1).
10019
10020         * lrecord.h:
10021         * lrecord.h (struct toolbar_button):
10022         * lrecord.h (syms_of_toolbar):
10023         document how to create a new object.
10024
10025         * menubar-msw.c (mswindows_char_is_accelerator):
10026         may be called on frames w/o menus.
10027
10028         * menubar.c (vars_of_menubar):
10029         clean up :filter docs.
10030
10031         * nt.c (readdir):
10032         * ntproc.c:
10033         (1).
10034
10035         * process-nt.c:
10036         * process-nt.c (validate_signal_number):
10037         * process-nt.c (signal_cannot_launch):
10038         * process-nt.c (nt_create_process):
10039         * process-nt.c (nt_send_process):
10040         * process-nt.c (nt_kill_child_process):
10041         * process-nt.c (nt_open_network_stream):
10042         * process-nt.c (syms_of_process_nt):
10043         (2).
10044         delete quote-handling.  call new lisp code that does it better.
10045
10046         * process-unix.c (connect_to_file_descriptor):
10047         * process-unix.c (allocate_pty):
10048         * process-unix.c (unix_send_process):
10049         * process-unix.c (unix_kill_child_process):
10050         * process-unix.c (unix_open_network_stream):
10051         * process-unix.c (unix_open_multicast_group):
10052         (1). (2).
10053
10054         * process.c:
10055         * process.c (Fstart_process_internal):
10056         (2).  need to canonicalize process path even if absolute.
10057
10058         * select-msw.c (symbol_to_ms_cf):
10059         * select-msw.c (ms_cf_to_symbol):
10060         * select-msw.c (cf_is_autofreed):
10061         * select-msw.c (mswindows_destroy_selection):
10062         * select.c:
10063         * select.c (syms_of_select):
10064         * select.h:
10065         support dibv5, fix bugs. (from Mike Alexander)
10066
10067         * select.c (Fget_selection_internal):
10068         * select.c (select_convert_out):
10069
10070         * sysdep.c:
10071         * sysdep.c (xemacs_stat):
10072         renamed.
10073
10074         * sysdep.c (mkdir):
10075         * sysdep.c (rmdir):
10076         but keep original stat() here because we provide encapsulation
10077         around these funs.
10078
10079         * sysfile.h:
10080         * sysfile.h (fstat):
10081         remove stat garbage.
10082
10083         * syswindows.h:
10084         fix X/MSW conflict.
10085         don't include tchar.h.  it's inappropriate because it makes
10086         compile-time distinctions when we want runtime distinctions.
10087         (we provide our own tchar replacements)
10088
10089         * toolbar.c:
10090         use default object printer for toolbar-button.
10091
10092         * unexcw.c:
10093         make sure we don't encapsulate.
10094
10095         * window.c (vars_of_window):
10096         emphasize that temp-buffer-show-hook is obsolete.
10097
10098 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10099
10100         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10101         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10102
10103         * events.c (Fevent_timestamp_lessp):
10104         Not 64-bit clean.  Use EMACS_INT, not int.
10105
10106 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10107
10108         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10109         unsigned int and changed the last enum to
10110         lrecord_type_last_built_in_type.
10111         (lrecord_implementations_table): changed prototype to know how
10112         long the array is supposed to be.
10113         (lrecord_type_count): new unsigned int to keep track of the
10114         current number of lisp lrecord types.
10115         (DEFINE_EXTERNAL_LRECORD):
10116         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10117         dynamic-modules to declare new lisp types. They are the same
10118         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10119         int for each new type, and increment lrecord_type_count by 1.
10120
10121         * alloc.c (lrecord_implementations_table): Changed to reference
10122         lrecord_type_last_built_in_type for the size of the array.
10123         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10124
10125 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10126
10127         * glyphs.h (check_valid_item_list): Renamed from
10128         check_valid_item_list_1.
10129
10130 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10131
10132         * select.c (Qselect_coerce): New.
10133         * select.c (Vselection_coercion_alist): New.
10134         * select.c (syms_of_select): Declare.
10135         * select.c (get-selection-internal): Use it.
10136         Use the new select-coerce functionality.
10137
10138         * select.c (select_coerce): New.
10139         * select.h (select_coerce): Declare.
10140         New function to coerce one type of data into another.
10141
10142 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10143
10144         * callproc.c (Fcall_process_internal):
10145         (Fcall_process_internal):
10146         * process-unix.c (unix_create_process):
10147         Save and restore the value of errno, so that error messages are accurate.
10148
10149 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10150
10151         * elhash.c (print_hash_table):
10152         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10153         Prettify docstrings and indentation.
10154
10155 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10156
10157         * window.c (Fwindow_pixel_edges): Subtract frame border and
10158         gutter size.
10159
10160 2000-07-31  Andy Piper  <andy@xemacs.org>
10161
10162         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10163         will acknowledge the change.
10164
10165         * glyphs.h: declare tab_control_order_only_changed.
10166
10167         * glyphs-x.c (x_tab_control_redisplay): use
10168         tab_control_order_only_changed.
10169
10170         * glyphs-widget.c (tab_control_order_only_changed): new function.
10171
10172         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10173         tab_control_order_only_changed.
10174
10175         * gui.c (gui_item_equal_sans_selected): new function.
10176         (gui_item_equal): use it.
10177
10178         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10179         :properties in favor of :items..
10180
10181         * glyphs-widget.c (check_valid_item_list): rename from
10182         check_valid_item_list_1.
10183         (check_valid_item_list_1): renamed.
10184         (combo_box_validate): deprecate :properties in favor of :items.
10185         (widget_instantiate): ditto.
10186         (tab_control_update): ditto.
10187         (image_instantiator_combo_box): ditto.
10188         (image_instantiator_tree_view): ditto.
10189         (image_instantiator_tab_control): ditto.
10190         (layout_post_instantiate): remove dead code.
10191
10192         * print.c (debug_print_no_newline): only write to debugger if in
10193         WIN32_NATIVE.
10194
10195         * elhash.c (Fmake_hash_table): update doc string.
10196
10197         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10198         messages whilst in GC. This at least stops XEmacs crashing but has
10199         the potential for wierd behaviour.
10200
10201 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10202
10203         * config.h.in:
10204         Make existence of s&m files optional.
10205
10206         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10207         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10208         * s/gnu.h: Remove HAVE_GETLOADAVG.
10209         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10210         * s/sol2.h: Remove HAVE_GETLOADAVG.
10211         * lisp.h: Remove getloadavg() declaration.
10212         * fns.c:
10213         Include <sys/loadavg.h> if available.
10214         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10215         * config.h.in:  Group together getloadavg()-related macros.
10216         Use only configure-time tests to detect getloadavg().
10217
10218 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10219
10220         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10221
10222 2000-07-25  Andy Piper  <andy@xemacs.org>
10223
10224         * syswindows.h: add tchar.h for native builds.
10225
10226         * frame.c (syms_of_frame): remove set-glyph-image.
10227
10228         * general-slots.h: add Qset_glyph_image.
10229
10230         * glyphs-widget.c (layout_update): add domain arg to
10231         set-glyph-image.
10232         (syms_of_glyphs_widget): remove set-glyph-image.
10233
10234 2000-07-23  Ben Wing  <ben@xemacs.org>
10235
10236         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10237         Vpopup_frame_list.
10238
10239 2000-07-22  Andy Piper  <andy@xemacs.org>
10240
10241         * symsinit.h: add syms_of_win32().
10242
10243         * gui-msw.c (syms_of_gui_mswindows): remove
10244         Fmswindows_shell_execute.
10245         (Fmswindows_shell_execute): moved to win32.c.
10246
10247         * emacs.c (main_1): add syms_of_win32 ().
10248
10249         * win32.c (init_potentially_nonexistent_functions): rewrite in
10250         compiler-friendly terms.
10251         (Fmswindows_shell_execute): move here from gui-msw.c.
10252         (syms_of_win32): new.
10253
10254         * device-msw.c (Fmswindows_printer_list): clean up args to
10255         EnumPrinters.
10256         Don't include tchar under cygwin or mingw.
10257         (msprinter_default_printer): make cygwin-friendly.
10258
10259 2000-07-21  Andy Piper  <andy@xemacs.org>
10260
10261         * glyphs-widget.c (image_instantiator_tree_view): use tab
10262         control's update function.
10263         (layout_property): new function. Retrieve items.
10264
10265         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10266         function. Re-populate the tree view from the pending items.
10267
10268         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10269         is designated the parent if the domain is an image instance. This
10270         is needed so that dirtiness can be cascade up the hierarchy and
10271         thus for layout children to be redisplayed correctly.
10272         (allocate_image_instance): rename glyph -> parent.
10273
10274         * redisplay.h: change redisplay_output_layout signature.
10275
10276         * redisplay-msw.c (mswindows_output_display_block): use domain
10277         arg.
10278
10279         * redisplay-x.c (x_output_display_block): use domain arg.
10280
10281 2000-07-10  Andy Piper  <andy@xemacs.org>
10282
10283         * window.c (Fset_window_configuration): add comment.
10284
10285         * redisplay-output.c (compare_runes):
10286         (redisplay_output_subwindow): redisplay rather than update subwindow.
10287         (redisplay_output_layout): ditto.
10288
10289         * redisplay-msw.c (mswindows_frame_output_end):
10290         (mswindows_frame_output_end): make defer window pos optional.
10291
10292         * lisp.h: add Flast.
10293
10294         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10295         normalize method. Change update method to be for changed
10296         instantiators. Add redisplay method. Change signature of layout
10297         method.
10298         (struct Lisp_Image_Instance): add instantiator.
10299         (IMAGE_INSTANCE_INSTANTIATOR): new.
10300         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10301         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10302         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10303
10304         * glyphs.c:
10305         (find_instantiator_differences): new function.
10306         (Fset_instantiator_property): new convenience function.
10307         (check_image_instance_structure): strictly check for vector
10308         instantiators.
10309         (normalize_image_instantiator): make non-static.
10310         (instantiate_image_instantiator): pass on dest_mask and use new
10311         signatures for image_instance_layout and friends.
10312         (mark_image_instance): mark the instantiator. Mark the subwindow
10313         face not the widget face.
10314         (image_instance_equal): add instantiator.
10315         (image_instance_hash): ditto.
10316         (allocate_image_instance): ditto.
10317         (Fset_image_instance_property): removed.
10318         (Fimage_instance_file_name): ditto.
10319         (Fcolorize_image_instance): ditto.
10320         (image_instance_layout): add offsets to be set.
10321         (update_image_instance): new function. update an image instance
10322         from its changed instantiator.
10323         (inherit_normalize): add dest_mask.
10324         (xbm_normalize): ditto.
10325         (xface_normalize): ditto.
10326         (xpm_normalize): ditto.
10327         (text_update): set_property -> update.
10328         (image_instantiate): use the glyph identity as a hash key, not the
10329         instantiator.
10330         (glyph_width): use new image_instance_layout signature.
10331         (glyph_ascent): ditto.
10332         (glyph_descent): ditto.
10333         (glyph_height): ditto.
10334         (glyph_query_geometry): ressurrect.
10335         (glyph_layout): ditto.
10336         (redisplay_subwindow): update -> redisplay.
10337         (syms_of_glyphs): add Fset_instantiator_property.
10338         (image_instantiator_format_create): set_property -> update.
10339
10340         * glyphs-x.c:
10341         (autodetect_normalize): add dest_maks to signature.
10342         (x_redisplay_subwindow): update -> redisplay.
10343         (x_redisplay_widget): ditto.
10344         (x_button_redisplay): ditto.
10345         (x_progress_gauge_redisplay): ditto.
10346         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10347         stacking order.
10348         (console_type_create_glyphs_x): update -> redisplay.
10349         (image_instantiator_format_create_glyphs_x): ditto.
10350
10351         * glyphs-widget.c:
10352         (check_valid_instantiator): disallow glyphs in the instantiator,
10353         they must now be vectors.
10354         (check_valid_instantiator_list): ditto.
10355         (glyph_instantiator_to_glyph): use internal symbol rather than
10356         intern.
10357         (widget_update): renamed from widget_set_property. Call cascaded
10358         update methods.
10359         (redisplay_widget): renamed from update_widget.
10360         (widget_layout): image_instance_layout now takes position as well
10361         as size.
10362         (widget_normalize): ditto.
10363         (widget_instantiate): ditto.
10364         (tab_control_query_geometry) ditto.:
10365         (tab_control_update): renamed from tab_control_set_property.
10366         (progress_gauge_update): set_property -> update.
10367         (layout_normalize): rewrite so that child instantiators are
10368         normalized also.
10369         (layout_update): new function. Create glyphs from the normalized
10370         children and cope with any other layout keywords. We do not
10371         instantiate children here that will be take care of by
10372         redisplay_output_layout.
10373         (layout_instantiate): call layout_update and not much else.
10374         (layout_post_instantiate): not sure whether this is needed
10375         anymore.
10376         (layout_query_geometry): query glyph geometry rather than
10377         image_instance geometry.
10378         (layout_layout): set offsets from pass in parameters. Use glyph
10379         geometry and layout functions rather than image instance ones.
10380         (native_layout_layout): ditto.
10381         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10382         (image_instantiator_widget): set_property -> update.
10383         (image_instantiator_buttons): ditto.
10384         (image_instantiator_progress_guage): ditto.
10385         (image_instantiator_tab_control): ditto.
10386         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10387         (image_instantiator_layout): add update method.
10388
10389         * glyphs-msw.c (bmp_normalize):
10390         (mswindows_resource_normalize): add dest_mask so that it can be
10391         proprogated by layout_normalize.
10392         (begin_defer_window_pos): make optional because it may not be the
10393         right thing to do and it introduces differences with X.
10394         (mswindows_unmap_subwindow): ditto.
10395         (mswindows_map_subwindow): ditto.
10396         (mswindows_redisplay_subwindow): renamed from
10397         mswindows_update_subwindow.
10398         (mswindows_redisplay_widget): ditto.
10399         (mswindows_button_redisplay): renamed from
10400         mswindows_button_update. Update is now what the instantiation
10401         function does for a changed instantiator.
10402         (mswindows_progress_gauge_instantiate): set the progress value
10403         here if appropriate.
10404         (mswindows_tab_control_redisplay): cope with re-ordering of the
10405         members of the tab widget by simply selecting the new top
10406         widget. This makes things appear ok if you click on a tab.
10407         (mswindows_combo_box_instantiate): image_instance_layout now takes
10408         position as well as size.
10409         (mswindows_progress_gauge_redisplay): renamed from
10410         mswindows_progress_gauge_update.
10411         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10412         (image_instantiator_format_create_glyphs_mswindows): ditto.
10413
10414         * glyphs-eimage.c (jpeg_normalize):
10415         (gif_normalize):
10416         (png_normalize):
10417         (tiff_normalize): add dest_mask so that it can be proprogated by
10418         layout_normalize.
10419
10420         * elhash.c:
10421         (print_hash_table):
10422         (hash_table_weakness_validate):
10423         (decode_hash_table_weakness):
10424         (Fhash_table_weakness):
10425         (Fhash_table_type):
10426         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10427
10428         * console.h (struct console_methods): move update_* to
10429         redisplay_*.
10430
10431 2000-07-20  Ben Wing  <ben@xemacs.org>
10432
10433         * *.[ch] (XSETOBJ): remove unused middle argument.
10434         lisp-disunion.h: correct wrap_object() to one argument.
10435
10436 2000-07-15  Ben Wing  <ben@xemacs.org>
10437
10438         * s/cygwin32.h:
10439         * s/cygwin32.h (CYGWIN_CONV_PATH):
10440         Add missing logb prototype for v1.1.
10441         Use post-b20 names and alias to pre-b20 names when pre-b20.
10442
10443         * s/windowsnt.h: [5].
10444
10445 2000-07-15  Ben Wing  <ben@xemacs.org>
10446
10447         * Makefile.in.in (x_objs):
10448         * Makefile.in.in (sheap_objs):
10449         * Makefile.in.in (objs):
10450         added win32.o, cosmetic cleanups.
10451
10452         * alloc.c (Fmake_byte_code):
10453         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10454         etc. macros which declare their own args now.
10455
10456         * alloc.c (syms_of_alloc):
10457         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10458
10459         * buffer.c:
10460         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10461
10462         * buffer.c (Fget_file_buffer):
10463         Fixed GCPRO problem.
10464
10465         * buffer.c (get_truename_buffer):
10466         Fixed comment about GC checking.
10467
10468         * buffer.c (syms_of_buffer):
10469         Undeclared those dedicated frame funs.
10470         [2].
10471
10472         * buffer.h:
10473         Define convenience macros for internal/external conversions.
10474         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10475         and Qenvironment_variable_encoding for cleaner code.
10476
10477         * bufslots.h:
10478         Remove dedicated-frame; in lisp.
10479
10480         * bytecode.c (funcall_compiled_function):
10481         [1].
10482
10483         * bytecode.c (syms_of_bytecode):
10484         [2].
10485
10486         * console-msw.c:
10487         * console-msw.c (mswindows_show_console): Rewrote.
10488
10489         * console-msw.c (Fmswindows_debugging_output): New.
10490         Sends to OutputDebugString (special MSWin debugger interface).
10491
10492         * console-msw.c (Fmswindows_message_box):
10493         Fixed stupid bugs so it works when called from kill-emacs.
10494
10495         * console-msw.c (syms_of_console_mswindows):
10496         Declare Fmswindows_debugging_output.
10497
10498         * console-msw.h:
10499         New MSWin prototypes.
10500
10501         * console-msw.h (struct mswindows_frame):
10502         New entry last-click-mods for improved button-modifier support.
10503
10504         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10505         New struct entry `popup' with corresponding accessor.
10506
10507         * console-x.c:
10508         * console-x.c (split_up_display_spec):
10509         * console-x.c (get_display_arg_connection):
10510         * console-x.c (x_semi_canonicalize_console_connection):
10511         * console-x.c (x_canonicalize_device_connection):
10512         [[[6]]]: Change char to more specific type.
10513         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10514
10515         * console-x.c (x_semi_canonicalize_console_connection):
10516         * console-x.c (x_canonicalize_device_connection):
10517         [[[9]]]: Fix up error signalling to use new structured error system.
10518
10519         * console-x.h:
10520         [[[4]]]: Define codesys aliases:
10521         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10522         Qx_color_name_encoding, Qx_display_name_encoding.
10523
10524         * console.h (struct console_methods):
10525         New method make_dialog_box_internal supersedes older
10526         popup_dialog_box method.
10527
10528         * data.c:
10529         Define many new errors, part of new structured errors.
10530
10531         * data.c (init_errors_once_early):
10532         * data.c (syms_of_data):
10533         [2].
10534
10535         * device-msw.c (mswindows_init_device):
10536         [[[5]]]: Cleanup to support NT 3.51.
10537
10538         * device-msw.c (decode_devmode): Cleanup.
10539
10540         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10541         * device-msw.c (mswindows_handle_print_dialog_box):
10542         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10543         * device-msw.c (syms_of_device_mswindows):
10544         Delete the dialog box primitives recently introduced by Kirill and
10545         instead interface to general dialog box interface.
10546
10547         * device-x.c:
10548         * device-x.c (compute_x_app_name):
10549         * device-x.c (x_init_device):
10550         * device-x.c (Fx_valid_keysym_name_p):
10551         * device-x.c (Fx_set_font_path):
10552         [6].
10553         [7].
10554
10555         * device.h (wrap_device): New.
10556         First of its kind; meant to replace XSETDEVICE.
10557
10558         * dialog-msw.c: Many file-dialog symbols.
10559
10560         * dialog-msw.c (mswindows_register_popup_frame): New.
10561         * dialog-msw.c (mswindows_is_dialog_msg): New.
10562         For supporting kbd traversal in dialog boxes.
10563
10564         * dialog-msw.c (dialog_proc):
10565         Support hitting ESC in dialogs.
10566
10567         * dialog-msw.c (struct):
10568         Common dialog box errors.
10569
10570         * dialog-msw.c (handle_file_dialog_box): New.
10571         Add file dialog code.
10572
10573         * dialog-msw.c (handle_question_dialog_box):
10574         Redo existing code to support new question dialog syntax.
10575
10576         * dialog-msw.c (console_type_create_dialog_mswindows):
10577         We support new dialog console method.
10578
10579         * dialog-msw.c (syms_of_dialog_mswindows):
10580         * dialog-msw.c (vars_of_dialog_mswindows):
10581         New file dialog symbols, vars.
10582
10583         * dialog-x.c:
10584         * dialog-x.c (maybe_run_dbox_text_callback):
10585         * dialog-x.c (dbox_descriptor_to_widget_value):
10586         * dialog-x.c (x_make_dialog_box_internal):
10587         * dialog-x.c (console_type_create_dialog_x):
10588         Mule-ize entire file.
10589         Redo to support question dialog syntax.
10590         [6].
10591
10592         * dialog.c:
10593         * dialog.c (Fmake_dialog_box_internal):
10594         * dialog.c (syms_of_dialog):
10595         Kill old popup-dialog-box, replace with new primitive.
10596         Just call device method or signal error.
10597
10598         * eldap.c (Fldap_open):
10599         * eldap.c (Fldap_search_basic):
10600         * eldap.c (Fldap_add):
10601         * eldap.c (Fldap_modify):
10602         [1].
10603         [7].
10604
10605         * emacs.c:
10606         * emacs.c (make_arg_list_1):
10607         * emacs.c (make_arg_list):
10608         Mule-ize call to dll_init().
10609         [6].
10610         [8].
10611
10612         * emacs.c (make_argc_argv):
10613         * emacs.c (free_argc_argv):
10614         * emacs.c (init_cmdargs):
10615         * emacs.c (main_1):
10616         * emacs.c (Fkill_emacs):
10617         * emacs.c (Fdump_emacs):
10618         Update comments about what can be used in syms_* etc.
10619         Call init_win32() when necessary.
10620         Fix up MS Win dialog box in kill-buffer to actually work right.
10621         [7].
10622
10623         * eval.c:
10624         * eval.c (For):
10625         * eval.c (Fand):
10626         * eval.c (Fprogn):
10627         * eval.c (Fprog1):
10628         * eval.c (Fprog2):
10629         * eval.c (FletX):
10630         * eval.c (Flet):
10631         * eval.c (condition_case_3):
10632         * eval.c (Feval):
10633         * eval.c (function_argcount):
10634         * eval.c (funcall_lambda):
10635         [1].
10636
10637         * eval.c (type_error): New.
10638         * eval.c (maybe_type_error): New.
10639         * eval.c (continuable_type_error): New.
10640         * eval.c (maybe_continuable_type_error): New.
10641         * eval.c (type_error_with_frob): New.
10642         * eval.c (maybe_type_error_with_frob): New.
10643         * eval.c (continuable_type_error_with_frob): New.
10644         * eval.c (maybe_continuable_type_error_with_frob): New.
10645         New functions for use with structured errors.
10646
10647         * event-Xt.c:
10648         * event-Xt.c (x_event_to_emacs_event):
10649         Buttons are now modifiers too.
10650
10651         * event-Xt.c (emacs_Xt_current_event_timestamp):
10652         Implement new event method.
10653         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10654
10655         * event-msw.c:
10656         * event-msw.c (ntpipe_shove_writer): [5].
10657         * event-msw.c (mswindows_enqueue_mouse_button_event):
10658         * event-msw.c (mswindows_drain_windows_queue):
10659         * event-msw.c (mswindows_wnd_proc): [7].
10660         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10661         * event-msw.c (mswindows_modifier_state):
10662         Throughout: support new button modifiers.
10663
10664         * event-msw.c (emacs_mswindows_current_event_timestamp):
10665         Implement new event method.
10666         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10667
10668         * event-stream.c:
10669         * event-stream.c (event_stream_current_event_timestamp): New.
10670         * event-stream.c (maybe_kbd_translate): New functionality.
10671         * event-stream.c (vars_of_event_stream):
10672         Document new kbd-translate-table functionality.
10673
10674         * event-stream.c (Fcurrent_event_timestamp): New.
10675         New primitive for use in fabricated events.
10676         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10677
10678         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10679
10680         * events.c:
10681         * events.c (Fmake_event):
10682         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10683         [1].
10684         [9].
10685
10686         * events.c (format_event_object): fix gcc warnings.
10687
10688         * events.c (Fevent_timestamp): Document new primitives.
10689
10690         * events.c (TIMESTAMP_HALFSPACE): New.
10691
10692         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10693         comparing timestamps correctly (half-space algorithm).
10694
10695         * events.c (Fevent_modifier_bits): Doc fix.
10696
10697         * events.c (Fevent_modifiers): Major doc addition.
10698         * events.c (event_x_y_pixel_internal): Typo fix.
10699         * events.c (syms_of_events): Declare new primitives.
10700
10701         * events.h:
10702         Update long comment for button modifiers, timestamps.
10703
10704         * events.h (struct event_stream):
10705         New current_event_timestamp method.
10706
10707         * extents.c:
10708         * extents.c (extent_in_region_p):
10709         * extents.c (decode_extent):
10710         * extents.c (Fset_extent_parent):
10711         * extents.c (decode_map_extents_flags):
10712         Fix gcc warnings.
10713         [9].
10714
10715         * extents.c (struct extent_at_arg):
10716         * extents.c (decode_extent_at_flag):
10717         * extents.c (extent_at_mapper):
10718         * extents.c (extent_at_bytind):
10719         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10720         * extents.c (Fextents_at): New primitive. [9].
10721         * extents.c (symbol_to_glyph_layout): [9].
10722         Support new primitive `extents-at'.
10723
10724
10725         * extents.c (get_text_property_bytind):
10726         extent_at_bytind has another arg.
10727         [9].
10728
10729         * extents.c (syms_of_extents): New primitive.
10730
10731         * file-coding.c (Fmake_coding_system): [1].
10732         * file-coding.c (subsidiary_coding_system): fix gcc warning
10733         * file-coding.c (syms_of_file_coding): [2].
10734
10735         * fileio.c (Fexpand_file_name):
10736         * fileio.c (Fsysnetunam):
10737         * fileio.c (Ffile_exists_p):
10738         * fileio.c (Ffile_executable_p):
10739         * fileio.c (Fverify_visited_file_modtime):
10740         Clean up GCPROing.
10741
10742         * fileio.c (syms_of_fileio): [2].
10743
10744         * filelock.c (lock_file_1):
10745         * filelock.c (current_lock_owner):
10746         * filelock.c (lock_if_free):
10747         * filelock.c (lock_file):
10748         * filelock.c (unlock_file):
10749         Clean up GCPROing.
10750
10751         * fns.c (concat): Fix gcc warning.
10752
10753         * fns.c (Fmember):
10754         * fns.c (Fold_member):
10755         * fns.c (Fmemq):
10756         * fns.c (Fold_memq):
10757         * fns.c (memq_no_quit):
10758         * fns.c (Fassoc):
10759         * fns.c (Fold_assoc):
10760         * fns.c (Fassq):
10761         * fns.c (Fold_assq):
10762         * fns.c (assq_no_quit):
10763         * fns.c (Frassoc):
10764         * fns.c (Fold_rassoc):
10765         * fns.c (Frassq):
10766         * fns.c (Fold_rassq):
10767         * fns.c (rassq_no_quit):
10768         * fns.c (Fdelete):
10769         * fns.c (Fold_delete):
10770         * fns.c (Fdelq):
10771         * fns.c (Fold_delq):
10772         * fns.c (delq_no_quit):
10773         * fns.c (Fremassoc):
10774         * fns.c (Fremassq):
10775         * fns.c (remassq_no_quit):
10776         * fns.c (Fremrassoc):
10777         * fns.c (Fremrassq):
10778         * fns.c (remrassq_no_quit):
10779         * fns.c (Freverse):
10780         * fns.c (mapcar1):
10781         [1].
10782
10783         * frame-msw.c (mswindows_init_frame_1):
10784         * frame-msw.c (mswindows_delete_frame):
10785         Register popups with dialog code so keyboard traversing works.
10786
10787         * frame-tty.c (tty_raise_frame_no_select): [1].
10788
10789         * frame-x.c:
10790         * frame-x.c (x_set_frame_text_value):
10791         * frame-x.c (x_set_frame_properties):
10792         * frame-x.c (x_create_widgets):
10793         [7].
10794
10795         * frame.c:
10796         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10797
10798         * frame.h (wrap_frame): New.
10799         Macro like wrap_device.
10800
10801         * general.c:
10802         * general.c (SYMBOL):
10803         * general.c (syms_of_general):
10804         Major reorg.  This is now just a wrapper and symbols themselves
10805         are listed in general-slots.h.
10806
10807         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10808         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10809
10810         * glyphs-msw.c (mswindows_native_layout_instantiate):
10811         Add DS_CONTROL so keyboard traversal will work.
10812
10813         * glyphs-widget.c:
10814         * glyphs-widget.c (syms_of_glyphs_widget):
10815         Move some symbols to general-slots.h.
10816
10817         * glyphs-x.c:
10818         * glyphs-x.c (xbm_instantiate_1):
10819         * glyphs-x.c (x_xbm_instantiate):
10820         * glyphs-x.c (x_xface_instantiate):
10821         * glyphs-x.c (autodetect_instantiate):
10822         * glyphs-x.c (cursor_font_instantiate):
10823         * glyphs-x.c (x_update_widget):
10824         * glyphs-x.c (x_widget_instantiate):
10825         * glyphs.c (bitmap_to_lisp_data):
10826         * glyphs.c (pixmap_to_lisp_data):
10827         [7].
10828
10829         * glyphs.c (syms_of_glyphs):
10830         [2].
10831
10832         * gui-x.c:
10833         * gui-x.c (print_widget_value):
10834         * gui-x.c (menu_separator_style_and_to_external):
10835         * gui-x.c (add_accel_and_to_external):
10836         * gui-x.c (button_item_to_widget_value):
10837         * gui-x.c (gui_items_to_widget_values_1):
10838         * gui-x.c (gui_items_to_widget_values):
10839         * gui-x.c (syms_of_gui_x):
10840         * gui-x.c (vars_of_gui_x):
10841         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10842         [9].
10843
10844         * gui-x.h:
10845         Muleize, prototype changes matching gui-x.c.
10846
10847         * gui.c:
10848         * gui.c (separator_string_p):
10849         * gui.c (gui_item_add_keyval_pair):
10850         * gui.c (make_gui_item_from_keywords_internal):
10851         * gui.c (signal_too_long_error):
10852         * gui.c (parse_gui_item_tree_item):
10853         * gui.c (syms_of_gui):
10854         * gui.c (vars_of_gui):
10855         * gui.h:
10856         menu-no-selection-hook moved here (used by MSWin).
10857         Move some symbols to general-slots.h.
10858         [6].
10859         [9].
10860
10861         * insdel.c (get_buffer_pos_char):
10862         * insdel.c (get_buffer_range_char):
10863         Add GC comments.
10864
10865         * keymap.c (keymap_lookup_directly):
10866         * keymap.c (keymap_store):
10867         * keymap.c (ensure_meta_prefix_char_keymapp):
10868         * keymap.c (describe_map):
10869         * keymap.h:
10870         Support new button modifiers.
10871
10872         * lisp-disunion.h (wrap_object):
10873         * lisp-disunion.h (XSETOBJ):
10874         Rename make_obj to wrap_object.
10875
10876         * lisp-union.h:
10877         * lisp-union.h (make_int):
10878         * lisp-union.h (make_char):
10879         Support wrap_object.
10880
10881         * lisp.h:
10882         * lisp.h (LIST_LOOP):
10883         * lisp.h (EXTERNAL_LIST_LOOP):
10884         * lisp.h (LIST_LOOP_2):
10885         * lisp.h (EXTERNAL_LIST_LOOP_1):
10886         * lisp.h (EXTERNAL_LIST_LOOP_2):
10887         * lisp.h (EXTERNAL_LIST_LOOP_3):
10888         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10889         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10890         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10891         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10892         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10893         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10894         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10895         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10896         * lisp.h (struct Lisp_Symbol):
10897         * lisp.h (maybe_continuable_error_with_frob):
10898         Fix up section comments.
10899         Add new types for char to indicate usage.
10900         Delete symbols auto-generated from general-slots.h.
10901         Add prototypes for structured error functions.
10902         Add long comments describing looping macros and change interface
10903         so that lvalues are automatically declared.
10904         Add NO_DECLARE macro in case callers want to declare lvalues
10905         themselves.
10906
10907         * lread.c (read_syntax_error):
10908         * lread.c (continuable_read_syntax_error):
10909         * lread.c (read_structure):
10910         * lread.c (sequence_reader):
10911         * lread.c (read_list_conser):
10912         * lread.c (read_compiled_function):
10913         Rename syntax_error and continuable_syntax_error to avoid clash
10914         with same-named structured error functions.
10915
10916         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10917         * menubar-msw.c (populate_menu_add_item):
10918         * menubar-msw.c (populate_or_checksum_helper):
10919         [5].
10920         [9].
10921
10922         * menubar-x.c:
10923         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10924         Mule-ize whole file.
10925
10926         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10927
10928         * mule-charset.c (Fmake_charset):
10929         * mule-wnnfns.c (Fwnn_set_param):
10930         [1].
10931
10932         * ntproc.c (create_child):
10933         * ntproc.c (Fwin32_set_current_locale):
10934         Add comments portending doom.
10935
10936         * objects-msw.c:
10937         * objects-msw.c (old_font_enum_callback_2):
10938         * objects-msw.c (font_enum_callback_1):
10939         * objects-msw.c (mswindows_enumerate_fonts):
10940         [5].
10941
10942         * objects-x.c:
10943         * objects-x.c (allocate_nearest_color):
10944         * objects-x.c (x_parse_nearest_color):
10945         * objects-x.c (x_initialize_color_instance):
10946         * objects-x.c (x_print_color_instance):
10947         * objects-x.c (x_finalize_color_instance):
10948         * objects-x.c (x_valid_color_name_p):
10949         * objects-x.c (x_initialize_font_instance):
10950         * objects-x.c (x_print_font_instance):
10951         * objects-x.c (valid_x_font_name_p):
10952         * objects-x.c (truename_via_FONT_prop):
10953         * objects-x.c (truename_via_random_props):
10954         * objects-x.c (truename_via_XListFonts):
10955         * objects-x.c (x_font_truename):
10956         * objects-x.c (x_font_instance_truename):
10957         * objects-x.c (x_font_instance_properties):
10958         * objects-x.c (x_list_fonts):
10959         * objects-x.c (x_find_charset_font):
10960         Mule-ize entire file.
10961         [7].
10962
10963         * objects-x.h:
10964         Mule-verify.
10965
10966         * print.c:
10967         * print.c (std_handle_out_external):
10968         * print.c (debug_print_no_newline):
10969         * print.c (syms_of_print):
10970         Output to all debugger kinds in debug-print.
10971         Fix console-output code under MSWin to actually work.
10972
10973         * process-nt.c (send_signal):
10974         * process-nt.c (nt_create_process):
10975         Use newer Unicode macros.
10976
10977         * process-unix.c (unix_create_process):
10978         * process-unix.c (unix_canonicalize_host_name):
10979         * process-unix.c (unix_open_network_stream):
10980         [7].
10981
10982         * scrollbar-x.c:
10983         Mule-verify.
10984
10985         * search.c (syms_of_search):
10986         [2].
10987
10988         * select-msw.c (mswindows_destroy_selection):
10989         Use LIST_LOOP_2.
10990
10991         * select-x.c (symbol_to_x_atom):
10992         [7].
10993
10994         * select.c (syms_of_select):
10995         [2].
10996
10997         * sound.c (Fplay_sound_file):
10998         [7].
10999
11000         * specifier.c:
11001         * specifier.c (decode_specifier_type):
11002         * specifier.c (Fvalid_specifier_locale_type_p):
11003         * specifier.c (check_valid_locale_or_locale_type):
11004         * specifier.c (decode_locale):
11005         * specifier.c (decode_locale_type):
11006         * specifier.c (decode_locale_list):
11007         * specifier.c (check_valid_domain):
11008         * specifier.c (decode_specifier_tag_set):
11009         * specifier.c (Fcanonicalize_tag_set):
11010         * specifier.c (Fdefine_specifier_tag):
11011         * specifier.c (Fspecifier_tag_predicate):
11012         * specifier.c (check_valid_inst_list):
11013         * specifier.c (check_valid_spec_list):
11014         * specifier.c (decode_how_to_add_specification):
11015         * specifier.c (check_modifiable_specifier):
11016         * specifier.c (specifier_add_spec):
11017         * specifier.c (boolean_validate):
11018         * specifier.c (display_table_validate):
11019         [9].
11020
11021         * specifier.c (syms_of_specifier):
11022         Move some symbols to general-slots.h.
11023         [2].
11024
11025         * symbols.c:
11026         * symbols.c (Fmapatoms):
11027         * symbols.c (Fapropos_internal):
11028         Add GCPROs.
11029
11030         * symbols.c (set_default_buffer_slot_variable):
11031         * symbols.c (set_default_console_slot_variable):
11032         [1].
11033
11034         * symbols.c (defsymbol_massage_name_1):
11035         * symbols.c (defkeyword_massage_name):
11036         * symbols.c (deferror_1):
11037         * symbols.c (deferror):
11038         * symbols.c (deferror_massage_name_and_message):
11039         * symeval.h:
11040         * symeval.h (DEFSYMBOL):
11041         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11042
11043         * symbols.c (syms_of_symbols):
11044         [2].
11045
11046         * symsinit.h:
11047         * symsinit.h (init_win32): New.
11048         Also new is syms_of_dialog_mswindows.
11049
11050         * syswindows.h:
11051         Add new Unicode macros, missing Cygwin wide-char functions,
11052         convenience conversion macros for Qmswindows_tstr, macros for
11053         encapsulating required MSWin <-> Cygwin filename conversions,
11054         prototype for dynamically-extracted (not in NT 3.51) functions.
11055
11056         * toolbar-x.c:
11057         Mule-verify.
11058
11059         * tooltalk.c (Fadd_tooltalk_message_arg):
11060         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11061         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11062         [7].
11063
11064         * tooltalk.c (syms_of_tooltalk):
11065         [2].
11066
11067         * unexnt.c:
11068         * unexnt.c (unexec):
11069         Fix up headers, declaration of unexec() to be more standard.
11070
11071 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11072
11073         * offix.h: Revert change to guard macros - they're used in offix.c!
11074
11075 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11076
11077         * lisp.h: Defsubred Fdelete.
11078
11079         * console-msw.h:  (msprinter_default_printer): Added.
11080
11081         * console-msw.c (msprinter_canonicalize_console_connection):
11082         (msprinter_canonicalize_device_connection): Added.
11083
11084         * device-msw.c (msprinter_default_printer):
11085         (Fmswingows_get_default_printer):
11086         (signal_enum_priner_error):
11087         (Fmswingows_printer_list): Added.
11088
11089 2000-07-19  Martin Buchholz <martin@xemacs.org>
11090
11091         * XEmacs 21.2.35 is released.
11092
11093 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11094
11095         * select-x.c (x_handle_selection_request):
11096         Text selected in xemacs and pasted into xterm failed to appear.
11097         Spelling fixes and cosmetic changes.
11098
11099 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11100
11101         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11102         XEmacs frame (fix for doubling chars in dialog boxes).
11103
11104 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11105
11106         * select.c (select_convert_in, select_convert_out):
11107         Don't call intern() every time.
11108
11109         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11110         * select.c (vars_of_select): Initialise them.
11111
11112 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11113
11114         * select.c (selection-coercible-types): New.
11115
11116         * select.c (own-selection-internal):
11117         * select.c (get-selection-internal):
11118         MULE bug fix - these should default to COMPOUND_TEXT and not
11119         STRING for MULE. I think.
11120
11121         * select.c (select_convert_out): Use selection-coercible-types
11122         to find types that we can attempt to perform coercions on.
11123
11124 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11125
11126         * mule-wnnfns.c:
11127         * mule-canna.c:
11128         Add coding: cookie to identify encoding.
11129
11130         * mule-canna.c (CANNA_mode_keys): make static.
11131         Use proper prototypes, even for functions of no arguments.
11132         Remove external prototype for Fding().
11133
11134         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11135
11136         * select.c (syms_of_select): Add missing DEFSUBR.
11137
11138 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11139
11140         * select.c (get_selection_internal, own_selection_internal):
11141         Make the type default to STRING, rather than placing a nil type
11142         into Vselection_alist.
11143
11144 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11145
11146         * gpmevent.c (tty_selection_exists_p):
11147         * gpmevent.c (tty_own_selection):
11148         Updated parameter lists.
11149
11150 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11151
11152         * select.h (selection-alist): Removed declaration.
11153
11154         * select.h (get_local_selection):
11155         * select.c (get_local_selection):
11156         Made static.
11157
11158         * select.h (convert_selection): Removed declaration.
11159         * select.c (convert_selection): Removed.
11160         This function belongs in Lisp.
11161
11162         * select.h (select_convert_in): Declare.
11163         * select.h (select_convert_out): Declare.
11164         * select.c (select_convert_in): New.
11165         * select.c (select_convert_out): New.
11166         New conversion functions for other files to call.
11167
11168         * select.h (select_notify_buffer_kill): Declare.
11169         * select.c (select_notify_buffer_kill): New.
11170         New functions that get called from kill-buffer.
11171
11172         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11173         X-specific lisp code.
11174
11175         * select.h: Declare some of the lisp-visible functions for
11176         external use.
11177
11178         * select.c (clean_local_selection_data): Removed. This was
11179         a disgusting function, and previously should have been in
11180         select-x.c in any case. The functionality is now provided
11181         in select-convert-from-integer (select.el).
11182
11183         * select.c (available-selection-types): Fixed stupidity where
11184         INTEGER and ATOM got added twice. Also add STRING when we see an
11185         extent.
11186
11187         * select.c (get-selection-internal): Removed symbol stripping. No
11188         longer causes conversion when data comes from the internal cache.
11189
11190         * select.c (syms_of_select): Added new functions.
11191
11192         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11193         error checking - previously this called abort!
11194
11195         * select-x.c (x_own_selection): Changed comment.
11196
11197         * select-x.c (x_handle_selection_request): Use select_convert_out.
11198         Don't mess with selection-alist; it's an internal variable of select.c.
11199
11200         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11201
11202         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11203         rather than messing with selection-alist.
11204
11205         * select-msw.c (mswindows_get_foreign_selection):
11206         Use TO_INTERNAL_FORMAT rather than hacking.
11207
11208 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11209
11210         * process-unix.c (unix_open_multicast_group):
11211         (unix_open_multicast_group): Remove useless casts.
11212
11213 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11214
11215         * sound.c (Fplay_sound): Fix `unused variable' warning.
11216
11217         * emacs.c (main): Use correct type for _environ on SCO5.
11218
11219 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11220
11221         * console.h (own_selection_method):
11222         * console.h (selection_exists_p_method):
11223         * console.h (available_selection_types_method): New.
11224         * console.h (register_selection_data_type_method): New.
11225         * console.h (selection_data_type_name): New.
11226
11227         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11228         function & alist to track GlobalAlloc()'d handles that need
11229         releasing when the clipboard data gets replaced or emptied.
11230
11231         * event-msw.c (mswindows_wnd_proc): Call it.
11232
11233         * lisp.h, general.c (Qappend): New symbol representing a
11234         `how-to-add' mode.
11235
11236         * select.c (own-selection-internal):
11237         * select.c (selection-exists-p):
11238         * select.c (available-selection-types): New.
11239         * select.c (register-selection-data-type): New.
11240         * select.c (selection-data-type-name): New.  New functions to deal
11241         with device-specific selection data formats.
11242         * select.c (selection-converter-out-alist): Renamed.
11243         * select.c (selection-converter-in-alist): New.
11244         * select.c (selection-appender-alist): New.  Added new alists.
11245         * select.c (syms_of_select, vars_of_select): Added new symbols &
11246         variables.
11247         * select.c (get_local_selection): Split.
11248         * select.c: Removed spurious type checking - selections may now be
11249         of any type, not just strings.
11250         * select.c (own-selection-internal):
11251
11252         * select.h, select.c (convert_selection): New. Created
11253         convert_selection() function based on get_local_selection().
11254         * select.h, select.c (QCF_*): New symbols representing mswindows
11255         clipboard formats.
11256         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11257         symbols representing `how-to-add' modes.
11258
11259         * select-msw.c (x_sym_p): New.
11260         * select-msw.c (symbol_to_ms_cf): New.
11261         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11262         symbols & clipboard formats. Can also handle string names.
11263         * select-msw.c (mswindows_own_selection):
11264         * select-msw.c (mswindows_selection_exists_p):
11265         Added `data-type' parameter. Use it.
11266         * select-msw.c (mswindows_available_selection_types): New.
11267         * select-msw.c (mswindows_register_selection_data_type): New.
11268         * select-msw.c (mswindows_selection_data_type_name): New.
11269         * select-msw.c (mswindows_own_selection):
11270         * select-msw.c (mswindows_get_foreign_selection):
11271         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11272         * select-msw.c (console_create_select_mswindows): Added new methods.
11273         * select-msw.c (mswindows_destroy_selection): New.
11274         * select-msw.c (Vhandle_alist): New list.
11275         * select-msw.c (mswindows_own_selection):
11276
11277         * select-x.c (x_own_selection):
11278         * select-x.c (x_selection_exists_p):
11279         * select-x.c: Added some comments about maybe using new
11280         functionality.
11281         * select-x.c (x_own_selection):
11282
11283         * specifier.c: Remove definition of Qappend (now in general.c)
11284         * specifier.c (syms_of_specifier): Remove Qappend.
11285
11286 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11287
11288         * config.h.in: Add socklen_t.
11289
11290         * s/decosf4-0.h: No special compiler flags needed or desired.
11291         In particular, undefine _BSD for DEC OSF 4.0.
11292
11293 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11294
11295         * redisplay-msw.c (msprinter_frame_output_end): Added.
11296         (console_type_create_redisplay_mswindows): Referred the above.
11297
11298         * frame.c (setup_frame_without_minibuffer): Do not create a
11299         default minibuffer frame on a printer device.
11300
11301         * frame-msw.c (apply_dc_geometry): Added.
11302         (msprinter_start_page):
11303         (msprinter_init_frame_3):
11304         (msprinter_eject_page): Use it.
11305
11306         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11307         and removed residual duplex and orientation properties.
11308
11309 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11310
11311         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11312
11313         * unexalpha.c: Remove system prototypes from C sources!
11314
11315 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11316
11317         * eval.c: Remove references to M-x edit-options in DEFUNs for
11318         `defvar' and `defconst'.
11319
11320 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11321
11322         * config.h.in: Remove SMART_INCLUDE hackery.
11323
11324         PostgreSQL hacking:
11325         * config.h.in: Don't use SMART_INCLUDE.
11326
11327         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11328         * inline.c: Simply #include "postgresql.h"
11329         * postgresql.c:
11330         - Don't use SMART_INCLUDE
11331         - Use simply "const".
11332         - Use standard doc string conventions.
11333         - Use correct type for result of PQstatus.
11334
11335 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11336
11337         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11338
11339         C++ compilation changes.
11340         * config.h.in (EXTERN_C): Define.
11341         * config.h.in (not): This is also a C++ keyword.
11342         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11343         * cm.c: Use EXTERN_C.
11344         * redisplay-tty.c: Use EXTERN_C.
11345         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11346
11347 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11348
11349         * general.c: Remove duplicate definition for Qfunction.
11350
11351 2000-07-08  Ben Wing  <ben@xemacs.org>
11352
11353         * device-msw.c (msprinter_init_device):
11354         * device-msw.c (sync_printer_with_devmode):
11355         * device-msw.c (handle_devmode_changes):
11356         * device-msw.c (print_dialog_worker):
11357         * device-msw.c (Fmsprinter_apply_settings):
11358         * device-msw.c (hash_devmode):
11359         * device-msw.c (Fmsprinter_settings_despecialize):
11360         use Qmswindows_tstr, not Qctext.
11361
11362         * vm-limit.c (check_memory_limits):
11363         avoid infinite loop printing warning messages.
11364
11365 2000-07-05  Craig Lanning  <lanning@scra.org>
11366
11367         * Makefile.in.in: Add support for including the Windows resources
11368         when building with the cygwin and mingw targets.
11369
11370         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11371         not set or not correct.
11372         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11373         (init_initial_directory): Don't try to use $PWD on the
11374         WIN32_NATIVE target.
11375
11376         * s\cygwin32.h:
11377         [[Add -mwindows to eliminate console window.]] not required --ben
11378         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11379         (MAIL_USE_POP): removed; now handled by configure.
11380
11381         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11382         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11383         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11384         (MAIL_USE_POP): removed; now handled by configure.
11385         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11386         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11387         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11388         constant string.
11389         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11390         up from <winsock.h> via systime.h.
11391         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11392         (getpagesize): from Dan Holmsand, added.
11393         Added #endif which was left dangling by Ben's mega patch; added
11394         comment to help prevent this in the future.
11395
11396         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11397
11398 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11399
11400         * console-msw.h (struct mswindows_device): Removed unnecessary
11401         cached device geometry values.
11402         Added update_tick and an accessor macro.
11403         (Lisp_Devmode): Added lrecord declaration.
11404         (struct msprinter_device): Contain devmode as a Lisp object.
11405         Added mswindows_get_selected_frame_hwnd();
11406
11407         * console.h (struct console_methods): Indentation nitpicking.
11408
11409         * device-msw.c (mswindows_init_device): Do not initialize geometry
11410         cache. Initialize update tick.
11411         (mswindows_device_system_metrics): Ask the device for its geometry.
11412         (global_free_2_maybe):
11413         (devmode_to_hglobal):
11414         (handle_printer_changes):
11415         (ensure_not_printing):
11416         (print_dialog_worker):
11417         (Fmsprinter_print_setup_dialog):
11418         (Fmsprinter_print_dialog):
11419         (plist_get_margin):
11420         (plist_set_margin):
11421         (Fmsprinter_page_setup_dialog): Added functions.
11422         (sync_printer_with_devmode):
11423         (handle_devmode_changes):
11424         (Fmsprinter_get_settings):
11425         (Fmsprinter_select_settings):
11426         (Fmsprinter_apply_settings):
11427         (allocate_devmode):
11428         (Fmsprinter_settings_copy):
11429         (Fmsprinter_settings_despecialize):
11430         (print_devmode):
11431         (finalize_devmode):
11432         (equal_devmode):
11433         (hash_devmode): Added functions
11434         (syms_of_device_mswindows): Init devmode lrecord class.
11435
11436         * device.h: Added an exfun for find-device.
11437
11438         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11439         geometry; although, recreate the device compatible DC.
11440
11441         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11442         (msprinter_init_frame_3):
11443         (msprinter_frame_property):
11444         (msprinter_internal_frame_property_p):
11445         (msprinter_frame_properties):
11446         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11447         print job properties (will move to device settings).
11448
11449         * lisp.h: Added symbols.
11450
11451         * general.c (syms_of_general): Declared them.
11452
11453         * hash.c (string_hash): Added.
11454
11455         * lrecord.h (lrecord_type): Added devmode lrecord type.
11456
11457 2000-07-02  Mike Sperber <mike@xemacs.org>
11458
11459         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11460         FreeBSD 4.0.
11461
11462 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11463
11464         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11465         integer.
11466
11467 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11468
11469         * data.c (Fstring_to_number): Don't recognize floating point if
11470         base is not 10.
11471
11472 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11473
11474         * glyphs-widget.c (tab_control_query_geometry):
11475         (widget_query_geometry):
11476         (button_query_geometry):
11477         * glyphs.c (text_query_geometry):
11478         Enforce type correctness.
11479
11480 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11481
11482         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11483         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11484
11485 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11486
11487         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11488         conflicts with gcc's fixincluded version of FOO.h.
11489
11490         * glyphs.h (image_instance_geometry): Remove trailing `,'
11491
11492 2000-06-08  Mike Alexander  <mta@arbortext.com>
11493
11494         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11495         (shove_thread): Don't write the same output twice
11496         (make_ntpipe_output_stream): Increase priority of shove thread
11497         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11498         chance to run
11499         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11500         it.
11501
11502 2000-06-12  Ben Wing  <ben@xemacs.org>
11503
11504         * s\mingw32.h (sigset):
11505         * s\windowsnt.h (sigset):
11506         rename msw_ to mswindows_ for consistency with general convention.
11507
11508 2000-06-12  Ben Wing  <ben@xemacs.org>
11509
11510         * console-msw.c:
11511         * console-msw.c (mswindows_get_console_hwnd):
11512         * console-msw.c (mswindows_ensure_console_allocated):
11513         * console-msw.c (mswindows_hide_console):
11514         * console-msw.c (mswindows_show_console):
11515         * console-msw.c (mswindows_ensure_console_buffered):
11516         * console-msw.c (mswindows_output_console_string):
11517         * console-msw.c (mswindows_windows9x_p):
11518         * console-msw.h:
11519         * device-msw.c (mswindows_get_workspace_coords):
11520         * device-msw.c (mswindows_device_system_metrics):
11521         * dialog-msw.c (mswindows_popup_dialog_box):
11522         * event-msw.c (mswindows_wnd_proc):
11523         * frame-msw.c (mswindows_size_frame_internal):
11524         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11525         * menubar-msw.c (displayable_menu_item):
11526         * menubar-msw.c (mswindows_char_is_accelerator):
11527         * nt.c:
11528         * nt.c (mswindows_sigset):
11529         * nt.c (mswindows_sigrelse):
11530         * nt.c (mswindows_sigpause):
11531         * nt.c (mswindows_raise):
11532         * nt.c (timer_proc):
11533         * ntproc.c:
11534         * ntproc.c (find_child_console):
11535         * ntproc.c (sys_kill):
11536         * print.c:
11537         * print.c (std_handle_out_external):
11538         * process-nt.c (find_child_console):
11539         * process-nt.c (send_signal_the_95_way):
11540         * process-nt.c (ensure_console_window_exists):
11541         * process-nt.c (nt_create_process):
11542         * syssignal.h:
11543         rename msw_ to mswindows_ for consistency with general convention.
11544
11545         * emacs.c:
11546         * dumper.c:
11547         include nt.h, not syswindows.h.
11548
11549         * nt.c (mswindows_fstat):
11550         * nt.c (mswindows_stat):
11551         prefix mswindows_ instead of attempting to directly override the
11552         library functions.  fix declarations.
11553
11554         * nt.h:
11555         include syswindows.h.  move some sysdep.h stuff here.
11556
11557         * ntheap.h:
11558         include syswindows.h, not <windows.h>.
11559
11560         * ntplay.c:
11561         clean up headers.
11562
11563         * sysdep.c:
11564         clean up headers.
11565
11566         * sysdep.c (sys_fstat):
11567         * sysdep.c (sys_stat):
11568         call mswindows versions when appropriate.
11569
11570         * sysdep.h:
11571         move mswin decls to nt.h.
11572
11573         * syswindows.h:
11574         add long comment describing appropriate use of the various windows
11575         headers.
11576
11577 2000-06-11  Ben Wing  <ben@xemacs.org>
11578
11579         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11580
11581 2000-06-10  Ben Wing  <ben@xemacs.org>
11582
11583         * Makefile.in.in (release):
11584         Correction to make sure xemacs.exe always dumped when correct.
11585
11586         * alloca.c:
11587         * balloon_help.c:
11588         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11589
11590         * buffer.c (set_buffer_internal):
11591         [[[[2]]]]: Remove HAVE_FEP code.
11592
11593         * buffer.c (init_initial_directory):
11594         [3].
11595
11596         * bytecode.c:
11597         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11598         individual files.
11599
11600         * callproc.c:
11601         * callproc.c (call_process_cleanup):
11602         * callproc.c (Fold_call_process_internal):
11603         * callproc.c (child_setup):
11604         * callproc.c (getenv_internal):
11605         * callproc.c (init_callproc):
11606         * callproc.c (vars_of_callproc):
11607         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11608         __CYGWIN32__ -> CYGWIN.
11609         DOS_NT -> WIN32_NATIVE.
11610         Remove MSDOS support/references, converting to WIN32_NATIVE
11611           where correct.
11612         __MINGW32__ -> MINGW.
11613         Fix windows.h includes.
11614         Remove bogus HAVE_NTGUI.
11615
11616         * config.h.in:
11617         [2].
11618
11619         * console-msw.c:
11620         mswindows_message_outputted added for use in allowing startup
11621         errors on the console to be seen.
11622
11623         * console-msw.c (msw_ensure_console_allocated):
11624         * console-msw.c (msw_output_console_string):
11625         * console-msw.c (DHEADER):
11626         * console-msw.c (DOPAQUE_DATA):
11627         * console-msw.c (DEVENT):
11628         * console-msw.c (DCONS):
11629         * console-msw.c (DCONSCDR):
11630         * console-msw.c (DSTRING):
11631         * console-msw.c (DVECTOR):
11632         * console-msw.c (DSYMBOL):
11633         * console-msw.c (DSYMNAME):
11634         Fix warnings.
11635
11636         * console-stream.c (stream_init_console):
11637         Fix text/binary problems.
11638
11639         * device-msw.c:
11640         * device-msw.c (mswindows_finish_init_device):
11641         * device-msw.c (mswindows_delete_device):
11642         [1].
11643
11644         * device.c (handle_asynch_device_change):
11645         [3].
11646
11647         * dgif_lib.c:
11648         * dgif_lib.c (DGifOpenFileName):
11649         * dgif_lib.c (DGifOpenFileHandle):
11650         * dgif_lib.c (DGifGetLine):
11651         * dgif_lib.c (DGifGetPixel):
11652         Added config.h/lisp.h, fix up includes.
11653         [1].
11654
11655         * dired-msw.c:
11656         [4].
11657
11658         * dired.c:
11659         * dired.c (file_name_completion):
11660         * dired.c (Ffile_attributes):
11661         * dired.c (syms_of_dired):
11662         [1].
11663
11664         * dumper.c:
11665         * dumper.c (pdump_file_unmap):
11666         * dumper.c (pdump_load):
11667         [1].
11668
11669         * editfns.c:
11670         * editfns.c (Ftemp_directory):
11671         * editfns.c (user_login_name):
11672         * editfns.c (Fuser_real_login_name):
11673         * editfns.c (get_home_directory):
11674         [1].
11675
11676         * elhash.c (finish_marking_weak_hash_tables):
11677         [[[[5]]]]: Fix GCC warnings.
11678
11679         * emacs.c:
11680         * emacs.c (mswindows_handle_hardware_exceptions):
11681         * emacs.c (make_arg_list_1):
11682         * emacs.c (main_1):
11683         * emacs.c (Fkill_emacs):
11684         * emacs.c (Fdump_emacs):
11685         [1].
11686         Fix problems with nested crashes, add long comment.
11687
11688         * event-Xt.c (init_event_Xt_late):
11689         [1].
11690
11691         * event-msw.c:
11692         * event-msw.c (mswindows_dde_callback):
11693         * event-msw.c (mswindows_handle_sticky_modifiers):
11694         * event-msw.c (mswindows_wnd_proc):
11695         [1].
11696         [5].
11697
11698         * events.c (character_to_event):
11699         [1].
11700
11701         * fileio.c:
11702         * fileio.c (Ffile_name_directory):
11703         * fileio.c (Ffile_name_nondirectory):
11704         * fileio.c (directory_file_name):
11705         * fileio.c (Fexpand_file_name):
11706         * fileio.c (Fsubstitute_in_file_name):
11707         * fileio.c (Ffile_name_absolute_p):
11708         * fileio.c (check_executable):
11709         * fileio.c (Ffile_readable_p):
11710         * fileio.c (Ffile_accessible_directory_p):
11711         * fileio.c (Ffile_modes):
11712         * fileio.c (Funix_sync):
11713         * fileio.c (vars_of_fileio):
11714         [1]. [4].
11715
11716         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11717
11718         Expand getdefdir defn.
11719         Fix bogus rename() comment.
11720
11721         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11722         to use standard XEmacs include files, e.g. sysfile.h, rather
11723         than system-specific includes.
11724
11725         * fns.c:
11726         * fns.c (Fsubseq):
11727         [5]. [6].
11728
11729         * frame.c (vars_of_frame):
11730         [1].
11731
11732         * getloadavg.c:
11733         * getloadavg.c (getloadavg):
11734         [1]. [6].
11735         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11736         (We don't use it elsewhere in the code; just add a comment.)
11737
11738         * gif_io.c:
11739         [6].
11740         Add config.h.
11741
11742         * glyphs-msw.c:
11743         * glyphs-msw.c (mswindows_resource_instantiate):
11744         [1].
11745
11746         * glyphs-x.c (x_native_layout_instantiate):
11747         [5].
11748
11749         * gui-msw.c (Fmswindows_shell_execute):
11750         [1].
11751
11752         * insdel.c:
11753         [4].
11754
11755         * lisp.h:
11756         [4]. [5].
11757
11758         * lread.c (locate_file_in_directory_mapper):
11759         [1].
11760
11761         * lstream.c:
11762         [4].
11763
11764         * mem-limits.h:
11765         * mem-limits.h (get_lim_data):
11766         [1].
11767
11768         * menubar-msw.c:
11769         [4].
11770
11771         * ndir.h:
11772         [1].
11773
11774         * nt.c:
11775         * nt.c (getwd):
11776         * nt.c (closedir):
11777         * nt.c (rva_to_section):
11778         * nt.c (mswindows_executable_type):
11779         [1]. [6].
11780         Fix closedir() defn.
11781
11782         * nt.h:
11783         [[[[8]]]]: *_OK defs moved to sysfile.h.
11784
11785         * ntproc.c:
11786         [6]. [7].
11787
11788         * objects-x.c:
11789         [4].
11790
11791         * print.c:
11792         * print.c (std_handle_out_external):
11793         [1]. [4].
11794
11795         * process-nt.c:
11796         * process-nt.c (nt_create_process):
11797         [6].
11798         try to fix process quoting somewhat.
11799
11800         * process-unix.c (unix_create_process):
11801         [1].
11802
11803         * process.c:
11804         * process.c (vars_of_process):
11805         Add Vnull_device.
11806
11807         * process.h:
11808         [1].
11809
11810         * realpath.c:
11811         * realpath.c (xrealpath):
11812         [1].
11813
11814         * redisplay-tty.c (init_tty_for_redisplay):
11815         [3].
11816
11817         * redisplay.c:
11818         [4]. [6].
11819
11820         * scrollbar-msw.c:
11821         [4].
11822
11823         * sheap.c:
11824         * sheap.c (more_static_core):
11825         * sheap.c (report_sheap_usage):
11826         [5]. [6].
11827
11828         * signal.c:
11829         * signal.c (alarm_signal):
11830         [1]. [6].
11831
11832         * sound.c:
11833         [6].
11834
11835         * strftime.c:
11836         * strftime.c (zone_name):
11837         [1]. [5].
11838
11839         * symsinit.h (init_sunpro):
11840         [1].
11841
11842         * syscommctrl.h:
11843         commctrl.h not in Cygwin b20.1.
11844
11845         * sysdep.c:
11846         * sysdep.c (endif):
11847         * sysdep.c (sys_subshell):
11848         * sysdep.c (init_baud_rate):
11849         * sysdep.c (emacs_get_tty):
11850         * sysdep.c (emacs_set_tty):
11851         * sysdep.c (tty_init_sys_modes_on_device):
11852         * sysdep.c (init_system_name):
11853         * sysdep.c (sys_open):
11854         * sysdep.c (interruptible_open):
11855         * sysdep.c (sys_fopen):
11856         * sysdep.c (sys_mkdir):
11857         * sysdep.c (sys_rename):
11858         * sysdep.c (get_process_times_1):
11859         [1]. [6].
11860
11861         * sysdep.h:
11862         [1].
11863
11864         * sysdir.h:
11865         * sysdir.h (DIRENTRY_NONEMPTY):
11866         [1]. [6].
11867
11868         * sysdll.c (dll_init):
11869         * sysdll.h:
11870         [1].
11871
11872         * sysfile.h:
11873         [1]. [6]. [8].
11874         added text/binary defs.
11875
11876         * sysfloat.h:
11877         [1].
11878
11879         * sysproc.h:
11880         * sysproc.h (EDESTADDRREQ):
11881         * sysproc.h (poll_fds_for_input):
11882         [1]. [6].
11883
11884         * syspwd.h:
11885         [6].
11886
11887         * syssignal.h:
11888         [1].
11889
11890         * systime.h:
11891         [1]. [6].
11892
11893         * systty.h:
11894         [1].
11895
11896         * syswindows.h:
11897         [1].
11898         Always define WIN32_LEAN_AND_MEAN.
11899
11900         * unexcw.c (unexec):
11901         [5].
11902
11903         * unexec.c:
11904         * unexec.c (copy_text_and_data):
11905         * unexec.c (adjust_lnnoptrs):
11906         [1].
11907
11908         * unexnt.c:
11909         * unexnt.c (_start):
11910         [1].
11911
11912 2000-06-07  Ben Wing  <ben@xemacs.org>
11913
11914         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11915         was used only as a model.  We've long since extracted any useful
11916         logic or code out of this. (I just did an exhaustive search.)
11917
11918         * s\msdos.h: Removed.
11919
11920         * s\windows95.h: Removed.
11921
11922 2000-06-10  Ben Wing  <ben@xemacs.org>
11923
11924         * s\cygwin32.h:
11925         [1]. [5].
11926         Don't use extern with fun defs.
11927
11928         * s\mingw32.h:
11929         [1]. [7].
11930         Remove nt\inc include.
11931         Remove getdisk, getdefdir. (The former is unused, the latter
11932         expanded in fileio.h.)
11933
11934         * s\windowsnt.h:
11935         * s\windowsnt.h (WIN32_NATIVE):
11936         * s\windowsnt.h (HAVE_STRCASECMP):
11937         [1]. [7].
11938         Add long comment about preprocessor changes.
11939         Remove getdisk, getdefdir. (The former is unused, the latter
11940         expanded in fileio.h.)
11941
11942 2000-06-10  Ben Wing  <ben@xemacs.org>
11943
11944         * m\arm.h:
11945         * m\delta.h:
11946         * m\intel386.h:
11947         * m\sequent.h:
11948         * m\template.h:
11949         * m\windowsnt.h:
11950         [1].
11951         Remove bogus/unused NO_SOCK_SIGIO.
11952
11953 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11954
11955         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11956         not an Emchar.
11957
11958 2000-06-04  Mike Sperber <mike@xemacs.org>
11959
11960         * casetab.c (set_case_table): For `set-standard-case-table',
11961         actually deposit the new case tables where the rest of XEmacs can
11962         see them.
11963
11964 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11965
11966         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11967
11968 2000-06-05  Ben Wing  <ben@xemacs.org>
11969
11970         * callproc.c (child_setup): Don't do close_load_descs() under
11971         MS Windows.  Put in a comment explaining why.
11972
11973 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11974
11975         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11976         Toolkit shell" which breaks `kill-compilation' on Windows NT
11977         native, retaining STDERR handling improvements.
11978
11979 2000-06-01  Andreas Jaeger  <aj@suse.de>
11980
11981         * s/s390.h: Support for S390, based on a patch by Martin
11982         Schwidefsky <schwidefsky@de.ibm.com>.
11983
11984 2000-05-30  Andy Piper  <andy@xemacs.org>
11985
11986         * window.c (allocate_window):
11987         (make_dummy_parent):
11988         (Fset_window_configuration): use new hashtable type.
11989
11990         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11991         (struct image_instantiator_methods):
11992         (struct Lisp_Image_Instance): make instance geometry signed.
11993
11994         * glyphs.c (instantiate_image_instantiator):
11995         (image_instance_query_geometry):
11996         (image_instance_layout):
11997         (image_instance_layout):
11998         (query_string_geometry):
11999         (text_query_geometry):
12000         (image_instantiate):
12001         (image_instantiate):
12002         (cache_subwindow_instance_in_frame_maybe):
12003         (subwindow_query_geometry): make instance geometry signed.
12004
12005         * glyphs-widget.c (widget_query_geometry):
12006         (widget_layout):
12007         (button_query_geometry):
12008         (tree_view_query_geometry):
12009         (tab_control_query_geometry):
12010         (layout_query_geometry):
12011         (layout_layout):
12012         (native_layout_layout): make instance geometry signed.
12013
12014 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12015
12016         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12017         constant.
12018
12019         * general.c (syms_of_general): Add Qfull_assoc symbol.
12020
12021         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12022         correctly.
12023         (decode_weak_list_type): Decode full-assoc type.
12024         (encode_weak_list_type): Encode full-assoc type.
12025         (Fmake_weak_list): Update doc string.
12026
12027 2000-05-30  Andy Piper  <andy@xemacs.org>
12028
12029         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12030
12031         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12032         (decode_hash_table_weakness): ditto.
12033         (Fhash_table_weakness): ditto.
12034         (Fhash_table_type): ditto.
12035         (finish_marking_weak_hash_tables): ditto.
12036         (hash_table_weakness_validate): ditto.
12037         (syms_of_elhash): ditto.
12038
12039 2000-05-28  Martin Buchholz <martin@xemacs.org>
12040
12041         * XEmacs 21.2.34 is released.
12042
12043 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12044
12045         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12046         start cache.
12047         (updating_line_start_cache): Gone.
12048         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12049         generic code to force a minimum of 1 line laid out in the
12050         CMOTION_DISP case.
12051
12052 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12053
12054         * glyphs.c (instantiate_image_instantiator): Check for initialized
12055         height & width no longer special cases IMAGE_NOTHING.
12056         (nothing_instantiate): Set height and width of instance.
12057
12058 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12059
12060         * unexelf.c (unexec): Search for ".data" section.
12061         Initialize new_data2_offset from old_data_index.
12062         Remove redundant check for ElfW.
12063
12064 2000-05-23  Andy Piper  <andy@xemacs.org>
12065
12066         * glyphs.c (get_image_instantiator_governing_domain): allow more
12067         specific domains as the governing domain rather than expecting an
12068         exact match. This fixes problems with layouts.
12069
12070 2000-05-22  Andy Piper  <andy@xemacs.org>
12071
12072         * redisplay-output.c (compare_runes): check for non-images
12073
12074         * glyphs.c (set_glyph_dirty_p): ditto.
12075         (update_glyph_cachel_data): ditto.
12076
12077         * glyphs-widget.c (layout_post_instantiate): ditto.
12078         (layout_post_instantiate): ditto.
12079
12080         * event-msw.c (mswindows_wnd_proc): warning removal.
12081
12082 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12083
12084         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12085
12086         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12087
12088         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12089
12090         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12091         (mswindows_executable_type): mingw32 now has enough headers for
12092         this to work.
12093
12094 2000-05-20  Andy Piper  <andy@xemacs.org>
12095
12096         * console-msw.c (mswindows_output_last_error): ; -> ,
12097
12098 2000-05-12  Andy Piper  <andy@xemacs.org>
12099
12100         * console-msw.c (FROB): compare ints with ints.
12101
12102 2000-05-11  Andy Piper  <andy@xemacs.org>
12103
12104         * glyphs-x.c (x_finalize_image_instance): make minimal build
12105         happy.
12106
12107 2000-05-20  Ben Wing  <ben@xemacs.org>
12108
12109         * event-Xt.c:
12110         * event-Xt.c (vars_of_event_Xt):
12111         move modifier-keys-are-sticky to event-stream.c.
12112
12113         * event-msw.c:
12114         * event-msw.c (mswindows_enqueue_mouse_button_event):
12115         * event-msw.c (key_needs_default_processing_p):
12116         * event-msw.c (XEMSW_LCONTROL):
12117         * event-msw.c (mswindows_handle_sticky_modifiers):
12118         * event-msw.c (FROB):
12119         * event-msw.c (clear_sticky_modifiers):
12120         * event-msw.c (output_modifier_keyboard_state):
12121         * event-msw.c (output_alt_keyboard_state):
12122         * event-msw.c (mswindows_wnd_proc):
12123         * event-msw.c (mswindows_modifier_state):
12124         * event-msw.c (emacs_mswindows_handle_magic_event):
12125         implement sticky modifiers.
12126
12127         * event-stream.c:
12128         * event-stream.c (vars_of_event_stream):
12129         move modifier-keys-are-sticky here.
12130
12131         * lisp.h:
12132         add CHECK_FUNCTION.
12133
12134         * rangetab.c:
12135         implement map-range-table.
12136
12137
12138 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12139
12140         * redisplay-tty.c (reset_tty_modes):
12141         (tty_redisplay_shutdown): Adjust argument type to
12142         tty_frame_output_end.
12143
12144 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12145
12146         * eval.c (Fbacktrace): Don't output a line with only right
12147         parenthesis.
12148
12149 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12150
12151         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12152         (Fpq_reset_poll): Ditto.
12153
12154 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12155
12156         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12157
12158 2000-05-16  Ben Wing  <ben@xemacs.org>
12159
12160         * buffer.c:
12161         * buffer.c (dfc_convert_to/from_internal_format):
12162         * buffer.c (reinit_vars_of_buffer):
12163         Fix conversion functions to allow reentrancy.
12164
12165         * console-msw.c:
12166         * console-msw.c (mswindows_output_last_error):
12167         New fun, generally useful -- output a human-readable
12168         version of GetLastError() on the console.
12169
12170         * console-msw.h:
12171         * console-msw.h (struct mswindows_frame):
12172         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12173
12174         * console-stream.c (stream_output_begin):
12175         * console-stream.c (stream_output_end):
12176         * console-stream.c (stream_output_vertical_divider):
12177         * console-stream.c (stream_clear_region):
12178         * console-stream.c (stream_flash):
12179         * console-stream.c (console_type_create_stream):
12180         Delete blank stream methods, not needed.
12181
12182         * console.h (struct console_methods):
12183         Split begin/end methods into window and frame.
12184
12185         * event-msw.c:
12186         * event-msw.c (mswindows_handle_paint):
12187         * event-msw.c (output_alt_keyboard_state):
12188         * event-msw.c (mswindows_wnd_proc):
12189         * event-msw.c (vars_of_event_mswindows):
12190         Comment about problems with ignored-expose.
12191         Define mswindows-debug-events; not really implemented.
12192
12193         * frame-msw.c (mswindows_init_frame_1):
12194         random cleanups.
12195
12196         * glyphs-msw.c:
12197         * glyphs-msw.c (begin_defer_window_pos):
12198         * glyphs-msw.c (mswindows_unmap_subwindow):
12199         * glyphs-msw.c (mswindows_map_subwindow):
12200         * glyphs-msw.c (mswindows_resize_subwindow):
12201         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12202
12203         * glyphs.c (make_image_instance_1):
12204         Fix crash.
12205
12206         * gutter.c (Fredisplay_gutter_area):
12207         Use new begin/end methods.
12208
12209         * lisp.h (Dynarr_new2):
12210         New creation fun.
12211
12212         * redisplay-msw.c:
12213         * redisplay-msw.c (mswindows_frame_output_begin):
12214         * redisplay-msw.c (mswindows_frame_output_end):
12215         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12216         New begin/end methods -- handle DeferWindowPos.
12217
12218         * redisplay-output.c (redisplay_move_cursor):
12219         * redisplay-output.c (redraw_cursor_in_window):
12220         * redisplay-output.c (redisplay_update_line):
12221         * redisplay-output.c (redisplay_output_window):
12222         New begin/end methods.
12223
12224         * redisplay-tty.c:
12225         * redisplay-tty.c (tty_frame_output_begin):
12226         * redisplay-tty.c (tty_frame_output_end):
12227         * redisplay-tty.c (console_type_create_redisplay_tty):
12228         New begin/end methods.
12229
12230         * redisplay-x.c:
12231         * redisplay-x.c (x_window_output_begin):
12232         * redisplay-x.c (x_window_output_end):
12233         * redisplay-x.c (console_type_create_redisplay_x):
12234         New begin/end methods.
12235
12236         * redisplay.c (redisplay_frame):
12237         * redisplay.c (Fredisplay_echo_area):
12238         New begin/end methods.
12239         use MAYBE_DEVMETH for clear_frame; it may not exist.
12240
12241         * window.h (WINDOW_XFRAME):
12242         WINDOW_XFOO macros -- get locale and decode struct pointer.
12243
12244
12245 2000-05-12  Ben Wing  <ben@xemacs.org>
12246
12247         * emacs.c:
12248         * emacs.c (ensure_no_quitting_from_now_on):
12249         * emacs.c (fatal_error_signal):
12250         * emacs.c (mswindows_handle_hardware_exceptions):
12251         * emacs.c (main):
12252         * emacs.c (Fkill_emacs):
12253         * emacs.c (shut_down_emacs):
12254         * emacs.c (assert_failed):
12255         various improvements in fatal error handling.
12256
12257         * eval.c:
12258         move preparing_for_armageddon to emacs.c.
12259
12260         * lisp.h:
12261         declare fatal_error_in_progress.
12262
12263         * print.c:
12264         * print.c (std_handle_out_external):
12265         * print.c (std_handle_out_va):
12266         * print.c (stderr_out):
12267         * print.c (stdout_out):
12268         use console under mswin when no standard output.
12269         don't do code conversion during fatal error.
12270
12271         * scrollbar.c (Fscrollbar_page_up):
12272         * scrollbar.c (Fscrollbar_page_down):
12273         fix missing else.  reindent.
12274
12275 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12276
12277         Emergency fix.
12278
12279         * glyphs.h (GLYPH_CACHEL_DESCENT):
12280         (GLYPH_CACHEL_DESCENT):
12281         (GLYPH_CACHEL_DESCENT):
12282         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12283         used in case these are inline functions.
12284         Use more absurd values to error check.
12285
12286         include window.h for error check functions.
12287
12288 2000-05-11  Ben Wing  <ben@xemacs.org>
12289
12290         * cmdloop.c (Freally_early_error_handler):
12291         Display message box under windows; otherwise, message will disappear
12292         before it can be viewed.
12293
12294         * console-msw.c:
12295         * console-msw.c (Fmswindows_message_box):
12296         * console-msw.c (FROB):
12297         * console-msw.c (syms_of_console_mswindows):
12298         Define new fun `mswindows-message-box'.
12299         #### I will merge this into `popup-dialog-box'; just give me
12300         a bit of time.
12301
12302         * general.c:
12303         * general.c (syms_of_general):
12304         Some new symbols used in `mswindows-message-box'.
12305
12306         * glyphs.c:
12307         * glyphs.c (Fset_image_instance_property):
12308         put warning in this fun.
12309
12310         * glyphs.h:
12311         * glyphs.h (GLYPH_CACHEL_WIDTH):
12312         * glyphs.h (GLYPH_CACHEL_ASCENT):
12313         * glyphs.h (GLYPH_CACHEL):
12314         * glyphs.h (GLYPH_CACHEL_GLYPH):
12315         define error-checking versions to try to catch a bug i've seen --
12316         redisplay gets in an infinite loop because the glyph width of the
12317         continuation glyph is 65535.
12318
12319         * lisp.h:
12320         Extern message-box stuff.
12321
12322         * window.c (allocate_window):
12323         * window.c (make_dummy_parent):
12324         * window.c (Fset_window_configuration):
12325         Use EQUAL not EQ for subwindow caches to make them work a bit
12326         better. (Something is still very broken.)
12327
12328
12329 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12330
12331         * glyphs.c (image_instantiate): Suppress gcc warnings.
12332         (Fmake_image_instance): Fix doc string.
12333         * specifier.c (Fmake_specifier): Ditto.
12334
12335 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12336
12337         * paths.h.in (PATH_LOCK): Removed.
12338         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12339         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12340
12341 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12342
12343         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12344         Document (featurep '(and xemacs 21.02)).
12345
12346 2000-05-09  Ben Wing  <ben@xemacs.org>
12347
12348         * buffer.c (complex_vars_of_buffer):
12349         update modeline-format doc.
12350
12351         * device.h:
12352         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12353
12354         * emacs.c:
12355         timeline of all released versions of Emacs, for use in creating
12356         authorship comments and in synching up.
12357
12358         * glyphs-widget.c (image_instantiator_buttons):
12359         * glyphs-widget.c (image_instantiator_edit_fields):
12360         * glyphs-widget.c (image_instantiator_combo_box):
12361         * glyphs-widget.c (image_instantiator_scrollbar):
12362         * glyphs-widget.c (image_instantiator_progress_guage):
12363         * glyphs-widget.c (image_instantiator_tree_view):
12364         * glyphs-widget.c (image_instantiator_tab_control):
12365         * glyphs-widget.c (image_instantiator_labels):
12366         * glyphs-widget.c (image_instantiator_layout):
12367         * glyphs-widget.c (image_instantiator_native_layout):
12368         rename decode_domain method to governing_domain.
12369
12370         * glyphs.c:
12371         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12372         * glyphs.c (add_entry_to_device_ii_format_list):
12373         make sure we don't put an entry more than once into the list.
12374         * glyphs.c (check_instance_cache_mapper):
12375         *************************************************************
12376         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12377         HAVE BEEN GETTING.
12378         *************************************************************
12379         * glyphs.c (get_image_instantiator_governing_domain):
12380         clean up, expand on new concept of governing domain.
12381         * glyphs.c (instantiate_image_instantiator):
12382         * glyphs.c (allocate_image_instance):
12383         use governing_domain instead of cache_domain in naming.
12384         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12385         * glyphs.c (make_image_instance_1):
12386         * glyphs.c (Fmake_image_instance):
12387         allow for any domain (not just device), and process the
12388         governing domain correctly.  very big doc fix.
12389         * glyphs.c (Fimage_instance_domain):
12390         new primitive, to retrieve the governing domain of an image instance.
12391         * glyphs.c (image_instantiate):
12392         use new governing_domain stuff.  this fixes a crash you could get
12393         by instantiating certain widget glyphs in frame locales. (should
12394         signal an error instead of crashing.)
12395         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12396         * glyphs.c (Fglyphp): clean up doc.
12397         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12398         * glyphs.c (syms_of_glyphs):
12399         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12400         * glyphs.c (image_instantiator_format_create): add some comments about
12401         bogus code.
12402         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12403         for current-display-table. (Apparently Hrjove implemented in 1998 a
12404         design I wrote up in 1996, but didn't update the doc string.)
12405
12406         * glyphs.h: clean up a doc string.
12407         * glyphs.h (governing_domain):
12408         * glyphs.h (struct image_instantiator_methods):
12409         changes for governing_domain stuff.
12410
12411         * gutter.c:
12412         * gutter.c (Fgutter_specifier_p):
12413         * gutter.c (Fgutter_size_specifier_p):
12414         * gutter.c (Fgutter_visible_specifier_p):
12415         * objects.c:
12416         * objects.c (Fcolor_specifier_p):
12417         * objects.c (Ffont_specifier_p):
12418         * objects.c (Fface_boolean_specifier_p):
12419         doc strings moved to make-*-specifier.
12420
12421         * redisplay.c (add_disp_table_entry_runes_1):
12422         * redisplay.c (generate_fstring_runes):
12423         * redisplay.c (screen):
12424         add random comments and doc strings.
12425
12426         * specifier.c:
12427         * specifier.c (Fmake_specifier):
12428         major overhaul of this doc string.
12429
12430         * specifier.c (Fvalid_specifier_domain_p):
12431         comment about the bogosity of image instances being domains.
12432         * specifier.c (decode_domain):
12433         now non-static, used in glyphs.c.
12434         * specifier.c (specifier_instance):
12435         comment about the bogosity of image instances being domains.
12436         * specifier.c (Fgeneric_specifier_p):
12437         move doc string to make-generic-specifier.
12438         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12439         rebackslashify.
12440
12441         * specifier.h:
12442         * specifier.h (DOMAIN_FRAME):
12443         * specifier.h (DOMAIN_LIVE_P):
12444         * specifier.h (DOMAIN_XDEVICE):
12445         rebackslashify.
12446         add comments about problems with these macros.
12447         prototype for decode_domain.
12448
12449         * toolbar.c:
12450         * toolbar.c (Ftoolbar_specifier_p):
12451         move doc string to `make-toolbar-specifier'.
12452
12453         * window.c (window_unmap_subwindows_cache_mapper):
12454         *************************************************************
12455         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12456         HAVE BEEN GETTING.
12457         *************************************************************
12458
12459 2000-05-09  Andy Piper  <andy@xemacs.org>
12460
12461         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12462
12463         * window.c (Fset_window_configuration): reset the frame subwindow
12464         cache and re-initialize the window subwindow caches.
12465
12466         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12467
12468 2000-05-09  Ben Wing  <ben@xemacs.org>
12469
12470         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12471         DWORD.
12472
12473 2000-04-26  Mike Woolley  <mike@bulsara.com>
12474
12475         * ntheap.c: Changed recreate_heap to limit the amount reserved
12476         for the heap to that which is actually available. Also now
12477         displays a message box (with some dignostics) in the event that
12478         it still can't start.
12479
12480 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12481
12482         * callproc.c (Fold_call_process_internal): GCPRO path
12483
12484 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12485
12486         Patch by Bill Perry.
12487
12488         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12489         back data instead of #ifdef.
12490         (Fscrollbar_page_down): ditto.
12491
12492 2000-05-07  Ben Wing  <ben@xemacs.org>
12493
12494         * buffer.h:
12495         Kludge for defining Qmswindows_tstr.
12496
12497         * nt.c:
12498         * nt.c (open_input_file):
12499         * nt.c (open_output_file):
12500         * nt.c (rva_to_section):
12501         * nt.c (mswindows_executable_type):
12502         Move all memory-mapped-file routines here (some were in unexnt.c,
12503         which is bad because they are used by process-nt.c, and unexnt
12504         won't be around when portable dumping).  Synched the above routines
12505         with FSF 20.6.
12506
12507         * nt.h:
12508         Removed ifdef'd out bogus code.
12509         Fixed some prototypes.
12510
12511         * nt.h (file_data):
12512         * nt.h (OFFSET_TO_RVA):
12513         * nt.h (RVA_TO_OFFSET):
12514         * nt.h (RVA_TO_PTR):
12515         Moved the memory-mapped-file structures, macros and prototypes
12516         here, to parallel nt.c.  ntheap.h should really be removed
12517         entirely, and it's a non-portable-dumper specific file.
12518
12519         * ntheap.h (round_to_next):
12520         Moved the memory-mapped-file structures, macros and prototypes
12521         to nt.h.
12522
12523         * ntproc.c (compare_env):
12524         Moved rva_to_section and mswindows_executable_type to nt.c.
12525         Moved compare_env to process-nt.c.
12526         ntproc.c will die, one day.
12527
12528         * ntproc.c (sys_spawnve):
12529         Account for win32_ -> mswindows_.
12530
12531         * process-nt.c:
12532         * process-nt.c (struct nt_process_data):
12533         * process-nt.c (ensure_console_window_exists):
12534         * process-nt.c (compare_env):
12535         * process-nt.c (nt_create_process):
12536         * process-nt.c (nt_kill_process_by_pid):
12537         * process-nt.c (syms_of_process_nt):
12538         * process-nt.c (vars_of_process_nt):
12539         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12540         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12541         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12542         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12543         Move compare_env here from ntproc.c.
12544
12545         * process.c (Fprocess_send_region):
12546         Takes an optional fourth argument, BUFFER, which should fix some
12547         problems with call-process.
12548
12549         * syscommctrl.h:
12550         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12551
12552         * syswindows.h:
12553         Move ICC_BAR_CLASSES to syscommctrl.h.
12554         Add preliminary macros for MSWindows/Mule.  More to come.
12555
12556         * unexnt.c:
12557         * unexnt.c (unexec):
12558         open_output_file moved to nt.c.
12559
12560
12561 2000-05-05  Andy Piper  <andy@xemacs.org>
12562
12563         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12564         instance from the frame cache also since GC may catch up too late
12565         to make frame deletion sane.
12566
12567 2000-05-04  Andy Piper  <andy@xemacs.org>
12568
12569         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12570         (x_finalize_image_instance): ungcpro on deletion.
12571
12572         * glyphs.c (image_instantiator_format_create): give pointers a
12573         query geometry method so that the geometry is at least set.
12574
12575         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12576         initialize layouts if using widgets.
12577
12578 2000-05-03  Andy Piper  <andy@xemacs.org>
12579
12580         * nt.c: remove bogus reference to sysmmsystem.h
12581
12582         * gui-x.c (popup_selection_callback): fix no selection abort.
12583
12584 2000-05-02  Andy Piper  <andy@xemacs.org>
12585
12586         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12587         (mswindows_widget_instantiate): ditto.
12588
12589         * glyphs-widget.c (initialize_widget_image_instance): initialize
12590         children correctly.
12591         (widget_instantiate): cope with children and items in the same
12592         instance.
12593
12594         * glyphs.c (mark_image_instance): cope with children as a first
12595         class member.
12596         (image_instance_equal): ditto.
12597         (image_instance_hash): ditto.
12598         (image_instance_changed): ditto.
12599
12600 2000-04-30  Andy Piper  <andy@xemacs.org>
12601
12602         * glyphs.c (subwindow_query_geometry): new function. Return some
12603         defaults.
12604         (subwindow_instantiate): don't assign dimensions if none have been
12605         given.
12606         (image_instantiator_format_create): add subwindow_query_geometry.
12607         (print_image_instance): cope with layouts as widgets.
12608
12609 2000-04-29  Andy Piper  <andy@xemacs.org>
12610
12611         * frame.c (delete_frame_internal): call
12612         free_frame_subwindow_instance_cache so that all subwindows are
12613         finalized before their parent.
12614         (mark_frame): remove subwindow_cachels.
12615         (Fmake_frame): remove subwindow_cachel manipulation.
12616         (allocate_frame_core): subwindow_instance_cache is a weak list.
12617         (delete_frame_internal): set subwindow_instance_cache to nil.
12618
12619         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12620         finalization safe.
12621         (mswindows_finalize_image_instance): use the device
12622         not the domain as the domain may have died already.
12623
12624         * glyphs-x.c (x_finalize_image_instance): ditto.
12625         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12626         HEIGHT.
12627
12628         * redisplay-output.c (redisplay_unmap_subwindows): update for
12629         subwindow instance cache as a weak list.
12630         (redisplay_unmap_subwindows_maybe): ditto.
12631         (redisplay_unmap_subwindows_except_us): ditto.
12632
12633         * glyphs.c (unmap_subwindow): error checking will check the domain
12634         so don't deal with it here. Don't use cachels anymore.
12635         (map_subwindow): ditto.
12636         (update_subwindow_cachel_data): remove old accessor names.
12637         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12638         (Fresize_subwindow): don't update cachel.
12639         (mark_subwindow_cachels):
12640         (update_subwindow_cachel_data):
12641         (add_subwindow_cachel):
12642         (get_subwindow_cachel_index):
12643         (update_subwindow_cachel):
12644         (reset_subwindow_cachels):
12645         (mark_subwindow_cachels_as_not_updated): deleted.
12646         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12647         subwindow instance to the frame cache.
12648         (find_matching_subwindow): update for subwindow instance cache as
12649         a weak list.
12650         (update_widget_instances): ditto.
12651         (image_instance_type_to_mask):inlined.
12652         (free_frame_subwindow_instance_cache): new function. finalize all
12653         subwindows that are instantiated.
12654
12655         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12656         of cachel information.
12657         (IMAGE_INSTANCE_DISPLAY_X):
12658         (IMAGE_INSTANCE_DISPLAY_Y):
12659         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12660         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12661         (XIMAGE_INSTANCE_DISPLAY_X):
12662         (XIMAGE_INSTANCE_DISPLAY_Y):
12663         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12664         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12665         remove subwindow_cachel structure and function references.
12666         (image_instance_type_to_mask): inline from glyphs.c
12667
12668         * redisplay.c (redisplay_frame): remove subwindow_cachel
12669         references.
12670
12671         * frame.h (struct frame): remove subwindow_cachels.
12672         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12673
12674         * frameslots.h: add subwindow_instance_cache.
12675
12676         * window.c (replace_window): check subwindow cache of replacement.
12677         (window_unmap_subwindows_cache_mapper):
12678         (window_unmap_subwindows): new functions. Unmap all subwindows
12679         cached on this window.
12680         (mark_window_as_deleted): unmap all subwindows.
12681
12682 2000-04-27  Andy Piper  <andy@xemacs.org>
12683
12684         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12685
12686         * glyphs-widget.c (widget_layout): return something.
12687         (layout_layout): return something. Fail if not initialized.
12688         (layout_query_geometry): ditto.
12689         (image_instantiator_native_layout): new function. Initialized the
12690         native layout type.
12691         (widget_instantiate): don't do layout stuff here.
12692
12693         * glyphs.c (instantiate_image_instantiator): reorded calling or
12694         instantiate and post_instantiate with layout in between.
12695         (image_instance_layout): be more selective about deciding whether
12696         the layout has been done or not.
12697
12698         * glyphs.h (struct image_instantiator_methods): return a value
12699         from layout_method.
12700
12701 2000-04-26  Andy Piper  <andy@xemacs.org>
12702
12703         * glyphs.c (allocate_image_instance): make initial width and
12704         height unspecified. Set initialized to 0.
12705
12706         * syscommctrl.h new file. Encapsulates commctrl.h.
12707
12708         * syswindows.h new file. Encapsulates windows.h.
12709
12710         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12711         * nt.c: ditto.
12712         * console-msw.h: ditto.
12713
12714         * redisplay-tty.c (tty_output_display_block): remove layout references.
12715
12716         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12717         window handle rather than just the frame.
12718
12719         * glyphs.c (mark_image_instance): remove layout references.
12720         (print_image_instance): ditto.
12721         (image_instance_equal): ditto.
12722         (image_instance_hash): ditto.
12723         (decode_image_instance_type): ditto.
12724         (encode_image_instance_type): ditto.
12725         (image_instantiate): ditto.
12726         (allocate_glyph): ditto.
12727         (Fimage_instance_height): ditto.
12728         (Fimage_instance_width): ditto.
12729         (update_subwindow): ditto.
12730
12731         * redisplay-x.c (x_output_display_block): recode for layouts as
12732         widgets.
12733
12734         * redisplay-output.c (redisplay_output_layout): recode for layouts
12735         as widgets.
12736         (compare_runes): remove layout references.
12737
12738         * redisplay-msw.c (mswindows_output_display_block): recode for
12739         layouts as widgets.
12740
12741         * glyphs-widget.c (image_instantiator_layout): remove
12742         layout_possible_dest_types.
12743         (layout_possible_dest_types): deleted.
12744
12745         * glyphs.h (image_instance_type): remove layout references.
12746         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12747         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12748         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12749
12750 2000-04-25  Andy Piper  <andy@xemacs.org>
12751
12752         * glyphs-widget.c (image_instantiator_buttons):
12753         (image_instantiator_edit_fields):
12754         (image_instantiator_combo_box):
12755         (image_instantiator_scrollbar):
12756         (image_instantiator_progress_guage):
12757         (image_instantiator_tree_view):
12758         (image_instantiator_tab_control):
12759         (image_instantiator_labels):
12760         (image_instantiator_layout): call default post_instantiate method.
12761         (widget_post_instantiate): new function. Simply lays out the
12762         widgets.
12763
12764         * glyphs.h (struct image_instantiator_methods): add
12765         post_instantiate method.
12766
12767         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12768         method calls.
12769
12770 2000-04-23  Andy Piper  <andy@xemacs.org>
12771
12772         * glyphs.h (struct image_instantiator_methods): add
12773         decode_domain_method.
12774         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12775         derived from the domain.
12776         (IMAGE_INSTANCE_FRAME): new accessor.
12777         (XIMAGE_INSTANCE_FRAME): ditto.
12778
12779         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12780         instead of _SUBWINDOW_FRAME.
12781         (finalize_image_instance): ditto.
12782         (Fimage_instance_foreground): ditto.
12783         (Fimage_instance_background): ditto.
12784         (image_instantiate): ditto.
12785         (update_subwindow_cachel): ditto.
12786         (update_subwindow): ditto.
12787         (unmap_subwindow): ditto.
12788         (map_subwindow): ditto
12789         (subwindow_instantiate): ditto.
12790         * glyphs-msw.c (mswindows_update_widget): ditto.
12791         (mswindows_progress_gauge_instantiate): ditto.
12792         (mswindows_tab_control_update): ditto.
12793         * glyphs-x.c (x_update_widget): ditto.
12794         (x_widget_instantiate): ditto.
12795         (x_tab_control_instantiate): ditto.
12796         (x_tab_control_update): ditto.
12797         * event-msw.c (mswindows_wnd_proc): ditto
12798
12799         * glyphs-widget.c (image_instantiator_layout): use
12800         subwindow_decode_domain.
12801         (image_instantiator_buttons): ditto.
12802         (image_instantiator_edit_fields): ditto.
12803         (image_instantiator_combo_box): ditto.
12804         (image_instantiator_scrollbar): ditto.
12805         (image_instantiator_progress_guage): ditto.
12806         (image_instantiator_tree_view): ditto.
12807         (image_instantiator_tab_control): ditto.
12808         (image_instantiator_labels): ditto.
12809         (image_instantiator_layout): ditto.
12810
12811         * glyphs.c: add instance error checking to many functions.
12812         (instantiate_image_instantiator): decode device from cache_domain.
12813         (image_instantiate): partially rewrite by using
12814         decode_image_instantiator_domain to determine what domain the
12815         instance needs to be cached in.
12816         (decode_image_instantiator_domain): new function. Determine what
12817         domain the image needs to be cached in.
12818         (check_window_subwindow_cache): new error checking function.
12819         (check_instance_cache_mapper): ditto.
12820         (check_image_instance_structure): ditto.
12821         (subwindow_decode_domain): new function. Encodes a window as a
12822         subwindow's cache domain.
12823         (image_instantiator_format_create): use it for text and
12824         subwindows.
12825
12826 2000-04-21  Andy Piper  <andy@xemacs.org>
12827
12828         * glyphs.c (image_instance_device): new function.
12829         (image_instance_frame): new function.
12830         (image_instance_window): new function.
12831         (image_instance_live_p): new function.
12832
12833         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12834         cache to nil.
12835
12836         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12837         (IMAGE_INSTANCE_DOMAIN): new accessor.
12838         (XIMAGE_INSTANCE_DOMAIN): ditto.
12839
12840         * glyphs-x.c (x_finalize_image_instance): device->domain.
12841
12842         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12843         (mswindows_finalize_image_instance): ditto.
12844
12845         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12846         (gif_instantiate): ditto.
12847         (png_instantiate): ditto.
12848         (tiff_instantiate): ditto.
12849
12850         * glyphs.c (instantiate_image_instantiator): use domain rather
12851         than device.
12852         (mark_image_instance): device -> domain.
12853         (print_image_instance): ditto.
12854         (finalize_image_instance): ditto.
12855         (image_instance_equal): ditto.
12856         (allocate_image_instance): ditto.
12857         (Fcolorize_image_instance): ditto.
12858         (query_string_geometry): ditto.
12859         (image_instantiate): ditto
12860         (query_string_font): ditto.
12861         (image_instantiate): ditto.
12862         (update_subwindow): ditto.
12863         (unmap_subwindow): ditto.
12864         (map_subwindow): ditto.
12865         (subwindow_instantiate): ditto.
12866
12867         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12868         (DOMAIN_FRAME): ditto.
12869         (DOMAIN_WINDOW): ditto.
12870         (DOMAIN_LIVE_P): ditto.
12871         (XDOMAIN_DEVICE): ditto.
12872         (XDOMAIN_FRAME): ditto.
12873         (XDOMAIN_WINDOW): ditto.
12874
12875         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12876         a valid specifier domain.
12877
12878 2000-04-19  Andy Piper  <andy@xemacs.org>
12879
12880         * glyphs-widget.c (syms_of_glyphs_widget): remove
12881         widget-callback-current-channel.
12882         (vars_of_glyphs_widget): ditto.
12883         * glyphs.h: ditto
12884
12885         * gui.c (get_gui_callback): revert to previous behaviour.
12886
12887 2000-04-18  Andy Piper  <andy@xemacs.org>
12888
12889         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12890         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12891         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12892
12893         * glyphs.c (image_instance_equal): add margin_width.
12894         (image_instance_hash): ditto.
12895
12896         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12897         (layout_query_geometry): ditto.
12898         (layout_layout): ditto.
12899         (syms_of_glyphs_widget): add margin-width.
12900         (image_instantiator_layout): allow margin-width.
12901
12902         * glyphs.c (update_widget_instances): make a normal function.
12903         (syms_of_glyphs): remove Qupdate_widget_instances.
12904         * glyphs.h: ditto.
12905
12906         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12907         so that we don't corrupt ideas about the last event or
12908         command. Remove widget-callback-current-channel fiddling.
12909         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12910
12911 2000-05-01  Martin Buchholz <martin@xemacs.org>
12912
12913         * XEmacs 21.2.33 is released.
12914
12915 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12916
12917         * make-src-depend: Allow dots in header file name.
12918
12919 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12920
12921         * mule-charset.h (struct charset_lookup): Add
12922         next_allocated_1_byte_leading_byte and
12923         next_allocated_2_byte_leading_byte.
12924         * mule-charset.c: Move above two variables so that those values
12925         will be dumped.
12926
12927 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12928
12929         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12930         when string length is zero.
12931         (find_charsets_in_emchar_string): Ditto.
12932
12933 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12934
12935         * lisp.h: extern Qdialog and Qmenubar.
12936
12937         * gui-x.c: added events.h.
12938                 also fixed typo which made the file uncompilable.
12939
12940         * general.c: Added Qmenubar and Qdialog
12941
12942 2000-04-28  Ben Wing  <ben@xemacs.org>
12943
12944         * frame-msw.c (mswindows_init_frame_1):
12945         * frame-msw.c (mswindows_mark_frame):
12946         * event-msw.c (mswindows_enqueue_dispatch_event):
12947         * console-msw.h:
12948         * console-msw.h (struct mswindows_frame):
12949         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12950         there are now three hash tables for callbacks.
12951         mswindows_enqueue_dispatch_event is no longer static.
12952
12953         * dialog-x.c (maybe_run_dbox_text_callback):
12954         * dialog-x.c (dbox_descriptor_to_widget_value):
12955         switch to new cons3 form for callbacks.
12956
12957         * glyphs-msw.c (mswindows_register_gui_item):
12958         * glyphs-msw.c (mswindows_widget_instantiate):
12959         * glyphs-msw.c (add_tree_item):
12960         * glyphs-msw.c (add_tab_item):
12961         new image instance parameter, so it can be passed to callback-ex.
12962         respect :callback-ex as well as :callback.
12963
12964         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12965         add :callback-ex.
12966
12967         * glyphs.c (print_image_instance):
12968         prettify, e.g. now prints widget type.
12969
12970         * gui-x.h:
12971         certain funs have new image instance parameter.
12972
12973         * gui.c:
12974         * gui.c (get_gui_callback):
12975         * gui.c (gui_item_add_keyval_pair):
12976         * gui.c (gui_item_init):
12977         * gui.c (gui_add_item_keywords_to_plist):
12978         * gui.c (mark_gui_item):
12979         * gui.c (gui_item_hash):
12980         * gui.c (gui_item_equal):
12981         * gui.c (copy_gui_item):
12982         * gui.c (syms_of_gui):
12983         recognize callback-ex in a number of places.
12984         also, fix the annoying "can't get out of yes-no dialog" bug.
12985
12986         * gui.h:
12987         * gui.h (struct Lisp_Gui_Item):
12988         recognize callback-ex in a number of places.
12989
12990         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12991         new parameter in button_item_to_widget_value.
12992
12993         * glyphs-x.c (x_update_widget):
12994         * glyphs-x.c (x_button_instantiate):
12995         * glyphs-x.c (x_button_update):
12996         * glyphs-x.c (x_progress_gauge_instantiate):
12997         * glyphs-x.c (x_edit_field_instantiate):
12998         * glyphs-x.c (x_combo_box_instantiate):
12999         * glyphs-x.c (x_tab_control_instantiate):
13000         * glyphs-x.c (x_label_instantiate):
13001         new image instance parameter in various places.
13002
13003         * event-Xt.c:
13004         * event-Xt.c (enqueue_Xt_dispatch_event):
13005         this fun gets exported.
13006
13007         * gui-msw.c:
13008         * gui-msw.c (mswindows_handle_gui_wm_command):
13009         handle both :callback and :callback-ex, and generate our own
13010         event because it's one of the callback-ex arguments.
13011
13012         * gui-x.c:
13013         * gui-x.c (popup_selection_callback):
13014         handle both :callback and :callback-ex, and generate our own
13015         event because it's one of the callback-ex arguments.
13016         * gui-x.c (button_item_to_widget_value):
13017         * gui-x.c (gui_items_to_widget_values_1):
13018         * gui-x.c (gui_item_children_to_widget_values):
13019         * gui-x.c (gui_items_to_widget_values):
13020         new image instance parameter in various places.
13021
13022         * fns.c (Freplace_list):
13023         fix small typo in doc string.
13024
13025         * lisp.h:
13026         declare enqueue_Xt_dispatch_event.
13027
13028 2000-04-28  Ben Wing  <ben@xemacs.org>
13029
13030         * buffer.c:
13031         * buffer.c (Frecord_buffer):
13032         * buffer.c (syms_of_buffer):
13033         delete record-buffer-hook.
13034
13035         * fns.c:
13036         * fns.c (Freplace_list):
13037         * fns.c (syms_of_fns):
13038         new primitive replace-list.
13039
13040         * frameslots.h:
13041         slot for old buffer-alist.
13042
13043         * lisp.h:
13044         exfun replace-list.
13045
13046         * redisplay.c:
13047         * redisplay.c (redisplay_frame):
13048         * redisplay.c (syms_of_redisplay):
13049         * redisplay.c (vars_of_redisplay):
13050         new hook buffer-list-changed-hook.
13051         call it.
13052
13053 2000-04-27  Ben Wing  <ben@xemacs.org>
13054
13055         * extents.h: extern in_modeline_generation.
13056
13057         * redisplay.c (generate_formatted_string_db): set
13058         in_modeline_generation.
13059
13060         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13061         flags if in modeline generation.  otherwise frame-modified-tick
13062         is ticked far too often.
13063         Declare in_modeline_generation.
13064
13065 2000-04-26  Ben Wing  <ben@xemacs.org>
13066
13067         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13068         option.
13069         (vars_of_emacs): add quick-build as an error-checking option.
13070         A bit kludgy, but there doesn't seem much point in creating
13071         a real var for this.
13072
13073         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13074
13075 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13076
13077         * redisplay.h (struct display_line): Add a new variable,
13078         line_continuation.
13079
13080         * redisplay.c (create_text_block): Set dl->line_continuation if
13081         the line continues.
13082         (create_string_text_block): Ditto.
13083         (regenerate_window_incrementally): Use line_continuation instead
13084         of searching continuation glyph.
13085         (add_margin_runes): Call add_glyph_rune.
13086         (add_glyph_rune): Handle margin glyph.
13087
13088 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13089
13090         * filelock.c (fill_in_lock_file_name):
13091         ANSIfy.
13092         Check for IS_ANY_SEP instead of '/'.
13093         (lock_file_1):
13094         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13095         Never check errno without first seeing that system call failed.
13096         (unlock_file): Add GCPRO.
13097         (Flock_buffer): Fix docstring.
13098         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13099
13100 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13101
13102         * sysdep.c (get_pty_max_bytes):
13103         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13104         strings longer than 252 bytes.
13105
13106         * md5.c: Unconditionally include ANSI header <limits.h>
13107
13108         * glyphs-x.c (convert_EImage_to_XImage):
13109         * lisp-union.h (union Lisp_Object):
13110         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13111
13112 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13113
13114         * filelock.c (current_lock_owner): Remove unused variable o, p.
13115
13116 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13117
13118         * callint.c: Remove multiply defined symbol Qlet
13119         (syms_of_callint): ditto.
13120
13121 2000-04-14  Andy Piper  <andy@xemacs.org>
13122
13123         * general.c (syms_of_general): add last-command, this-command, let
13124         and funcall.
13125
13126         * lisp.h: declare various symbols.
13127
13128         * glyphs.h: declare Qwidget_callback_current_channel;
13129
13130         * glyphs-widget.c (syms_of_glyphs_widget): add
13131         Qgui_callback_current_channel.
13132         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13133
13134         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13135         widget-callback-current-channel when invoking the interactive
13136         arg. Also bind last-command and next-command when invoking the
13137         widget updates.
13138         * gui-x.c (popup_selection_callback): ditto.
13139
13140         * gui.c (get_gui_callback): massage args so that we are always
13141         calling eval. This allows us to add our own variable bindings
13142         outside.
13143
13144         * glyphs-x.c (x_button_instantiate): use
13145         gui_items_to_widget_values since this is GC safe.
13146         (x_progress_gauge_instantiate): ditto.
13147         (x_edit_field_instantiate): ditto.
13148         (x_label_instantiate): ditto.
13149
13150         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13151         (emacs_Xt_event_widget_focus_out): new function
13152         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13153         focus.
13154         (emacs_Xt_event_add_widget_actions): new function. add focus
13155         functions as actions.
13156         (init_event_Xt_late): use it.
13157
13158 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13159
13160         * event-stream.c (Fdispatch_event): Doc fix.
13161
13162 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13163
13164         * postgresql.c: Remove all references to PQsetenv*.
13165
13166         * postgresql.h: Remove references to PGsetenvHandler object.
13167         * lrecord.h (lrecord_type): Ditto.
13168
13169 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13170
13171         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13172         real_heigh and real_width members, and accessor macros for these.
13173
13174         * glyphs-msw.c (init_image_instance_geometry): New function.
13175         (init_image_instance_from_dibitmap): Use it.
13176         (mswindows_resource_instantiate): Use it.
13177         (init_image_instance_from_xbm_inline): Use it.
13178         (mswindows_initialize_image_instance_mask): Use real bitmap
13179         geometry.
13180         (mswindows_create_resized_bitmap): Ditto.
13181         (mswindows_create_resized_mask): Ditto.
13182
13183         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13184         and bitmap to their surface size.
13185
13186 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13187
13188         * process-unix.c (unix_send_process): Guard against process MIA
13189         after Faccept_process_output.
13190
13191 2000-04-11  Ben Wing  <ben@xemacs.org>
13192
13193         * eval.c (unbind_to_hairy): fix brokenness introduced by
13194         nanosecond speed improvements.
13195
13196 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13197
13198         * sunplay.c (init_device): To play sounds correctly, the device
13199         apparently needs to be initialized at least once by XEmacs.  Make
13200         it so.
13201
13202 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13203
13204         * redisplay.c (add_margin_runes): Add text image glyph
13205           handling.
13206
13207 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13208
13209         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13210         gcc is newer than 2.5.
13211
13212 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13213
13214         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13215
13216         * fns.c (size_bit_vector):
13217         * alloc.c (size_vector):
13218         (make_vector_internal):
13219         (make_bit_vector_internal):
13220         (sweep_bit_vectors_1):
13221         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13222
13223 2000-04-06  Andy Piper  <andy@xemacs.org>
13224
13225         * gmalloc.c (malloc): undo previous change.
13226         (malloc): ditto.
13227         (free): ditto.
13228         (realloc): ditto.
13229
13230 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13231
13232         * line-number.c (buffer_line_number): Revert to former version.
13233
13234 2000-04-06  Andy Piper  <andy@xemacs.org>
13235
13236         * gmalloc.c (malloc): add error checking.
13237         (malloc): ditto.
13238         (free): ditto.
13239         (realloc): ditto.
13240
13241         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13242         button_item_to_widget_value arg.
13243
13244         * glyphs-x.c (x_button_instantiate): add extra
13245         button_item_to_widget_value arg.
13246         (x_progress_gauge_instantiate): ditto.
13247         (x_edit_field_instantiate): ditto.
13248         (x_label_instantiate): ditto.
13249
13250         * gui-x.c (gui_items_to_widget_values_1): add extra
13251         button_item_to_widget_value arg.
13252         (button_item_to_widget_value): add extra menu_item_p arg.
13253
13254         * gui-x.h: change signature of button_item_to_widget_value.
13255
13256         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13257         button_item_to_widget_value arg.
13258
13259 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13260
13261         * buffer.h (struct buffer): auto_save_modified should be long.
13262
13263 2000-04-05  Andy Piper  <andy@xemacs.org>
13264
13265         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13266         type.
13267         (button_query_geometry): give a little more room so that athena
13268         buttons fit.
13269
13270 2000-04-05  Andy Piper  <andy@xemacs.org>
13271
13272         * faces.c (complex_vars_of_faces): The widget face should inherit
13273         the font of the gui-element face.
13274
13275 2000-04-04  Andy Piper  <andy@xemacs.org>
13276
13277         * glyphs-x.c (x_button_update): new function. unconditionally
13278         update a button's state when the instance is dirty.
13279         (image_instantiator_format_create_glyphs_x): add x_button_update.
13280         (x_widget_instantiate): remove old resize cruft.
13281
13282 2000-04-02  Andy Piper  <andy@xemacs.org>
13283
13284         * frame.c (change_frame_size_1): The introduction of gutters means
13285         that we need to allow 0 as a potential frame dimension.
13286
13287 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13288
13289         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13290         image glyph if allow_cursor.
13291         (add_hscroll_rune): Don't allow cursor to border glyph.
13292         (create_text_block): Ditto.
13293
13294         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13295         text not in buffer.
13296         (redisplay_output_layout): Call ensure_face_cachel_complete for
13297         text image glyph.
13298
13299
13300 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13301
13302         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13303
13304         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13305         not in buffer
13306
13307         * redisplay-tty.c (tty_output_display_block): Delete the routine
13308         for text image glyph
13309         * redisplay-x.c (x_output_display_block): ditto
13310         * redisplay-msw.c (mswindows_output_display_block): ditto
13311
13312 2000-02-02  Mike Alexander  <mta@arbortext.com>
13313
13314         Note: Some of these were committed by accident as part of other
13315         patches.
13316
13317         * regex.c (regex_compile): Avoid compiler warnings.
13318
13319         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13320
13321         * nt.h: Declare term_ntproc correctly.
13322
13323         * nt.c: Remove incorrect declaration of get_home_directory which
13324         is declared correctly in lisp.h.
13325
13326         * keymap.c (get_keyelt): Avoid compiler warnings.
13327         (raw_lookup_key_mapper): Avoid compiler warnings.
13328
13329         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13330
13331         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13332
13333         * filemode.c (mode_string): Avoid compiler warnings.
13334
13335         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13336         avoid warning.
13337
13338         * events-mod.h: Undef some things that winuser.h defines differently.
13339
13340         * data.c (Faset): Avoid compiler warnings.
13341
13342         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13343
13344 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13345
13346         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13347         Fall through to simple beep on error.
13348         Replace "extern" by real header file.
13349
13350         * linuxplay.c: Use nativesound.h
13351         (play_sound_data): Return error code. Be less verbose on error.
13352
13353         * sunplay.c: Use nativesound.h
13354         (play_sound_data): Return error code. Be less verbose on error.
13355
13356         * ntplay.c: Use nativesound.h
13357         (play_sound_data): Return fake error code
13358
13359         * sgiplay.c: Use nativesound.h
13360         (play_sound_data): Return error code
13361
13362         * hpplay.c: Use nativesound.h, partially implement
13363         new error code. Break compilation until finished.
13364         (play_sound_data): error code.
13365
13366         * nativesound.h (play_sound_file):
13367           (play_sound_data): Prototype in new header.
13368
13369 2000-03-31  Andy Piper  <andy@xemacs.org>
13370
13371         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13372         for toggle and radio buttons.
13373         (image_instantiator_buttons): use it.
13374
13375 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13376
13377         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13378         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13379         found. Scrollbar event probably belonged to some old config.
13380
13381 2000-03-31  Andy Piper  <andy@xemacs.org>
13382
13383         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13384         than 1.
13385         (initialize_widget_image_instance): default layout to
13386         LAYOUT_HORIZONTAL rather than 0.
13387         (widget_instantiate): reverse the item list at the end rather than
13388         every iteration.
13389         (layout_layout): re-code for the border text at the front of the
13390         item list rather than at the end.
13391         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13392         provided by the user.
13393         (widget_query_geometry): comment.
13394
13395 2000-03-30  Andy Piper  <andy@xemacs.org>
13396
13397         * glyphs-widget.c (image_instantiator_layout): allow standard
13398         widget keywords in layouts.
13399
13400         * gutter.c (output_gutter): cope with nil gutter contents.
13401
13402         * frame.c (Fset_frame_properties): add gutter docs.
13403
13404 2000-03-29  Andy Piper  <andy@xemacs.org>
13405
13406         * toolbar-msw.c (TBSTYLE_FLAT): add.
13407         (mswindows_output_toolbar): minor fiddling.
13408
13409 2000-03-29  Andy Piper  <andy@xemacs.org>
13410
13411         * gutter.c (output_gutter): force gutter size recalculation if
13412         what we are trying to display won't fit.
13413         (update_gutter_geometry): new function. A per-gutter version of
13414         update_frame_gutter_geometry.
13415         (update_frame_gutter_geometry): use it.
13416         (redraw_exposed_gutter): add extra debugging output.
13417
13418 2000-03-28  Mike Alexander  <mta@arbortext.com>
13419
13420         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13421         (pdump_file_unmap): Implement it on Windows
13422         (pdump_file_get): Save alocated handles for pdump_file_unmap
13423
13424 2000-03-28  Andy Piper  <andy@xemacs.org>
13425
13426         * gui.c (get_gui_callback): treat Quit specially.
13427
13428 2000-03-27  Andy Piper  <andy@xemacs.org>
13429
13430         * glyphs.c (image_instantiate): be careful to check in the same
13431         way we assigned.
13432
13433 2000-03-27  Didier Verna  <didier@xemacs.org>
13434
13435         * config.h.in: define the proper SMART_INCLUDE macro.
13436         handle renaming of `foo_h_path' to `foo_h_file'.
13437
13438         * database.c: ditto.
13439
13440         * emacs.c: ditto.
13441
13442         * linuxplay.c: ditto.
13443
13444         * terminfo.c: ditto.
13445
13446         * tooltalk.h: ditto.
13447
13448 2000-03-27  Andy Piper  <andy@xemacs.org>
13449
13450         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13451         gets updated whenever the face might have changed.
13452
13453 2000-03-26  Mike Alexander  <mta@arbortext.com>
13454
13455         * dumper.c (pdump_resource_free): Fix the comment.
13456
13457 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13458
13459         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13460
13461 2000-03-22  Mike Alexander  <mta@arbortext.com>
13462
13463         * dumper.c: Include Windows headers on Windows
13464         (pdump_resource_free): Add a body to the function
13465         (pdump_load): exe_name -> exe_path and add some comments.
13466
13467 2000-03-25  Mike Alexander  <mta@arbortext.com>
13468
13469         * gui.c (copy_gui_item_tree): Return a value in all cases
13470
13471 2000-03-21  Didier Verna  <didier@xemacs.org>
13472
13473         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13474         lwlib/config.h.in.
13475         (SMART_INCLUDE): new macro.
13476         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13477         the proper location.
13478
13479         * postgresql.c: use it.
13480
13481         * inline.c: ditto.
13482
13483 2000-03-24  Andy Piper  <andy@xemacs.org>
13484
13485         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13486         do this.
13487
13488 2000-03-24  Andy Piper  <andy@xemacs.org>
13489
13490         * redisplay-output.c (compare_runes): use image_instance_changed
13491         to detect changes. Do not depend on glyphs_changed, only depend on
13492         dirtiness.
13493          (redisplay_output_layout): add debug messages.
13494         (compare_runes): ditto.
13495
13496         * glyphs.h: declare new functions.
13497         (struct Lisp_Image_Instance): remove percent and associated
13498         accessors.
13499
13500         * gui.h: declare new copying functions.
13501
13502         * gui.c (copy_gui_item_tree): new function.
13503         (copy_gui_item): new function.
13504         (gui_item_id_hash): revert to standard hash.
13505         (gui_item_hash): ditto.
13506         (gui_item_hash_internal): deleted.
13507         (mark_gui_item): mark value.
13508         (gui_item_add_keyval_pair): add value.
13509         (gui_item_init): ditto.
13510         (gui_add_item_keywords_to_plist): ditto.
13511         (gui_item_equal): ditto.
13512         (syms_of_gui): add Q_value.
13513
13514         * glyphs-x.c (x_progress_gauge_update): use pending items and
13515         value for setting the state.
13516         (x_update_widget): don't set items from pending here.
13517
13518         * glyphs-widget.c (update_widget): update items here.
13519         (progress_gauge_set_property): use items for storing value. Put
13520         new value in pending items.
13521
13522         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13523         items for new value. Convert percent -> value.
13524         (mswindows_tab_control_update): don't update items here.
13525
13526         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13527         (update_subwindow): ditto.
13528         (image_instance_changed): new function. Compare hash values and
13529         past and present widget items.
13530         (image_instantiate): We more careful about where we instantiate
13531         things.
13532         (image_instantiate): add error checking.
13533
13534         * gutter.c (syms_of_gutter): use -hook.
13535
13536 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13537
13538         * console-tty.c (Fset_console_tty_input_coding_system): Use
13539         Qkeyboard.
13540         (Fset_console_tty_output_coding_system): Use Qterminal.
13541         (tty_init_console): Use Qkeyboard and Qterminal.
13542
13543 2000-03-21  Ben Wing  <ben@xemacs.org>
13544
13545         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13546         From Mike Alexander <mta@arbortext.com>.
13547
13548 2000-03-21  Ben Wing  <ben@xemacs.org>
13549
13550         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13551         process brokenness.  Proper implementation to come.
13552         * callproc.c:
13553         Rename call-process-internal to old-call-process-internal.
13554         New impl. in process.el.
13555
13556 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13557
13558         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13559
13560 2000-03-20  Andy Piper  <andy@xemacs.org>
13561
13562         * glyphs.c (full_list_hash): make hashes of the same elements in
13563         different orders return different values.
13564
13565 2000-03-20  Martin Buchholz <martin@xemacs.org>
13566
13567         * XEmacs 21.2.32 is released.
13568
13569 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13570
13571         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13572         (DFC_MALLOC_USE_CONVERTED_DATA):
13573         Add aliasing-safe casts to allow use with char* or unsigned char*
13574         lvalues.
13575
13576         * eldap.c (Fldap_open):
13577         (Fldap_search_basic):
13578         (Fldap_add):
13579         (Fldap_modify):
13580         Make C++-compilable.
13581         Make sure GCPRO'ed variables are initialized.
13582         Use temp variables to avoid repeated calls to Flength.
13583
13584 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13585
13586         * sysfile.h:
13587         Make sure PATH_MAX is always defined.
13588         Include limits.h for PATH_MAX.
13589         Deprecate use of MAXPATHLEN.
13590
13591 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13592
13593         * emacs.c: Add reinit_vars_of_fileio.
13594         * symsinit.h: Add reinit_vars_of_fileio.
13595         * fileio.c (reinit_vars_of_fileio): New.
13596         * fileio.c (Fmake_temp_name):
13597         Initialize temp_name random number from microseconds to make
13598         collisions even less likely.  Initialize always at process startup
13599         time.  (make-temp-name) used to return the same file name twice in
13600         a row when PDUMP.
13601         Random stylistic fiddling.
13602         Comment fixes.
13603
13604 2000-03-20  Andy Piper  <andy@xemacs.org>
13605
13606         * glyphs.c (image_instantiate): allow text glyphs to be
13607         instantiated in the minibuffer window.
13608
13609 2000-03-19  Andy Piper  <andy@xemacs.org>
13610
13611         * glyphs.c (image_instance_hash): be careful about which items we
13612         hash on.
13613
13614         * glyphs-widget.c (tab_control_set_property): record into pending
13615         items rather than the actual items.
13616
13617         * glyphs-x.c (x_update_widget): use pending items to update with.
13618
13619         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13620         to update with.
13621
13622         * glyphs.c (mark_image_instance): mark pending items.
13623
13624         * window.c (Fset_window_configuration): record the buffer.
13625         (Fselect_window): totally revert previous change which breaks many
13626         things.
13627
13628 2000-03-18  Andy Piper  <andy@xemacs.org>
13629
13630         * glyphs-msw.c (mswindows_tab_control_update): force selected
13631         item.
13632
13633         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13634         window domain cache, otherwise we get inconsistencies at
13635         startup. There is something fishy at startup which can lead to the
13636         minibuffer being the selected window when the gutter content is
13637         instantiated.
13638
13639         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13640         gcpros.
13641         (parse_gui_item_tree_children): ditto.
13642         (parse_gui_item_tree_item): ditto.
13643
13644         * glyphs.c (Fupdate_widget_instances): return something.
13645
13646 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13647
13648         * window.c (Fselect_window): Undo 2000-03-17 change.
13649
13650 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13651
13652         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13653         against v7.0 libraries.  Insta-coredump city until the postgres
13654         folks fix it.
13655
13656 2000-03-17  Andy Piper  <andy@xemacs.org>
13657
13658         * faces.c (complex_vars_of_faces): don't give the widget face an
13659         inherited background pixmap.
13660
13661         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13662         selected item.
13663
13664         * event-stream.c (Fdispatch_non_command_events): return something.
13665
13666         * gutter.c (output_gutter): use widget face.
13667         (clear_gutter): ditto.
13668
13669         * NEWS: adjust again.
13670
13671         * window.c (Fselect_window): make sure this runs to completion to
13672         avoid oddities with Fset_window_configuration.
13673         (Fcurrent_window_configuration): in general do not save the
13674         minibuffer as the selected window.
13675
13676         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13677
13678 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13679
13680         * emacs.c (Frunning_temacs_p): Revert previous patch.
13681         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13682
13683 2000-03-16  Andy Piper  <andy@xemacs.org>
13684
13685         * glyphs-x.c (x_tab_control_update): if no widget values then
13686         return.
13687
13688         * NEWS: update for new features.
13689
13690         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13691         synthetic event to the native system.
13692         (reinit_vars_of_event_Xt): set force_event_pending to
13693         emacs_Xt_force_event_pending.
13694
13695         * events.h (struct event_stream): add force_event_pending.
13696
13697         * specifier.c (recompute_one_cached_specifier_in_window): add
13698         comment.
13699
13700         * redisplay.c (redisplay_frame): don't call
13701         update_frame_subwindows. Reset subwindow cachels when
13702         subwindows_changed, removing this was an optimization too far.
13703
13704         * redisplay-output.c (compare_runes): reorganize so that we catch
13705         glyph changes when we want them. Set optimize_output when this
13706         would help layouts.
13707         (redisplay_output_layout): remove frame_really_changed, use
13708         optimize_output instead.
13709
13710         * redisplay-msw.c (mswindows_output_display_block): reset
13711         optimize_output after outputting a glyph.
13712         * redisplay-x.c (x_output_display_block): ditto.
13713         * redisplay-tty.c (tty_output_display_block): ditto.
13714
13715         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13716         functions.
13717         (gutter_specs_changed): do specific gutter positions.
13718         (top_gutter_specs_changed): new function. Only update the
13719         specified gutter specs.
13720         (bottom_gutter_specs_changed): ditto.
13721         (left_gutter_specs_changed): ditto.
13722         (right_gutter_specs_changed): ditto.
13723
13724         * gui.c (gui_item_hash_internal): new function, does a real hash.
13725         (gui_item_id_hash): use it.
13726         (gui_item_hash): hash the eval'ed gui_item.
13727
13728         * gui-x.c (popup_selection_callback): send an eval event to call
13729         Fupdate_widget_instances.
13730
13731         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13732         to call Fupdate_widget_instances.
13733
13734         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13735         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13736
13737         * glyphs.c: (update_frame_subwindows): deleted.
13738         (Fupdate_widget_instances): new function for updating the dirty
13739         state of widgets that might have changed.
13740         (syms_of_glyphs): add Qupdate_widget_instances.
13741         (full_list_hash): hash a list completely.
13742         (image_instance_hash): use it for items and properties.
13743
13744         * frame-msw.c (mswindows_size_frame_internal): remove unused
13745         variable.
13746
13747         * faces.h (struct face_cachel): fix comment.
13748
13749         * event-stream.c (Fdispatch_non_command_events): new
13750         function. Process non-command events, forcing an event cycle
13751         beforehand.
13752         (syms_of_event_stream): declare.
13753         (event_stream_force_event_pending): new function. Force an event
13754         on the native event queue so that an event cycle will occur next
13755         time we check.
13756
13757         * event-msw.c:
13758         (struct ntpipe_shove_stream):
13759         (mswindows_enqueue_dispatch_event):
13760         (mswindows_dequeue_dispatch_event):
13761         (mswindows_cancel_dispatch_event):
13762         (mswindows_pump_outstanding_events):
13763         (mswindows_drain_windows_queue):
13764         (mswindows_handle_paint):
13765         (mswindows_wnd_proc):
13766         (mswindows_key_to_emacs_keysym):
13767         (get_process_input_waitable):
13768         (emacs_mswindows_delete_stream_pair): re-indent file.
13769         (mswindows_need_event): do not process further fds if the windows
13770         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13771         fixes the 100% cpu problem.
13772         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13773
13774 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13775
13776         * alloc.h: New.
13777         * dumper.h: New.
13778         * dumper.c: New.
13779
13780         * emacs.c: Moved dump file searching to dumper.c.
13781         (Frunning_temacs_p): Fixed.
13782
13783         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13784         last_lrecord_type_index_assigned.
13785
13786 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13787
13788         * symsinit.h: Added reinit parameter to init_console_stream
13789         declaration.
13790
13791         * lisp.h: Added file parameter to pdump_load declaration.
13792
13793         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13794         support.  Added dump file searching.
13795
13796         * config.h.in: Added EMACS_PROGNAME.
13797
13798         * console-stream.c (init_console_stream): Fix reinitialisation
13799         when running from temacs.
13800
13801         * alloc.c (pdump): Add id support.
13802         (pdump_load): Add file parameter and signature/id support.
13803
13804         * Makefile.in.in: Add full pdump support.
13805
13806 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13807
13808         * postgresql.c: Update documentation to reflect latest code
13809         status.
13810         (print_result): Show tuple counts in printed representation when
13811         appropriate.
13812         (Fpq_put_nbytes): MULE-ize.
13813         (Fpq_get_line_async): Ditto.
13814
13815 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13816
13817         * postgresql.c (Fpq_lo_import): Fix return value.
13818         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13819
13820 2000-03-13  Ben Wing  <ben@xemacs.org>
13821
13822         * alloc.c (pdump_load):
13823         Fix compile warning under mswin.
13824
13825 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13826
13827         * postgresql.c: Mule-ization, bug fixes.
13828         Use PG_CODING to encapsulate coding system name changes.
13829         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13830         (pg-coding-system): Create.
13831
13832         (Fpq_conn_defaults): Mule-ize.
13833         (Fpq_connectdb): Mule-ize & bug fix.
13834         (Fpq_connect_start): Mule-ize.
13835         (Fpq_set_client_encoding): Mule-ize.
13836         (Fpq_finish): Document `DEAD' connection status.
13837         (Fpq_clear): Ditto.
13838         (Fpq_pgconn): Mule-ize.
13839         (Fpq_exec): Mule-ize & bug fix.
13840         (Fpq_send_query): Ditto.
13841         (Fpq_get_result): Ditto.
13842         (Fpq_res_status): Mule-ize.
13843         (Fpq_result_error_message): Mule-ize.
13844         (Fpq_ntuples): fix comments.
13845         (Fpq_fname): Mule-ize.
13846         (Fpq_fnumber): Mule-ize.
13847         (Fpq_ftype): fix comments.
13848         (Fpq_get_value): Mule-ize.
13849         (Fpq_cmd_status): Ditto.
13850         (Fpq_cmd_tuples): Ditto.
13851         (Fpq_oid_value): Ditto.
13852         (Fpq_notifies): Ditto.
13853         (Fpq_lo_import): Ditto.
13854         (Fpq_lo_export): Ditto.
13855         (Fpq_get_line): Ditto.
13856         (Fpq_put_line): Mule-ize and bug fix.
13857         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13858
13859 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13860
13861         * postgresql.c (vars_of_postgresql): Mule-ize.
13862         (Fpq_conn_defaults): Ditto.
13863
13864 2000-03-12  Ben Wing  <ben@xemacs.org>
13865
13866         * alloc.c (Fmake_byte_code):
13867         * alloc.c (debug_string_purity_print):
13868         * alloc.c (pdump_backtrace):
13869         * alloc.c (pdump_get_indirect_count):
13870         * alloc.c (pdump_register_sub):
13871         * alloc.c (pdump_register_object):
13872         * alloc.c (pdump_register_struct):
13873         * alloc.c (pdump_dump_data):
13874         * alloc.c (pdump_reloc_one):
13875         Minor cleanups.
13876
13877         * console-msw.c:
13878         * console-msw.c (GetConsoleHwnd):
13879         * console-msw.c (msw_hide_console):
13880         * console-msw.c (msw_show_console):
13881         * console-msw.c (msw_ensure_console_buffered):
13882         * console-msw.c (msw_output_console_string):
13883         * console-msw.c (console_type_create_mswindows):
13884
13885         a) Added functions to manipulate the console window for use with
13886         shell support.
13887
13888         b) Added support for writing text to the console, which is now
13889         used under Windows when xemacs is not being run non-interactively,
13890         to write text that would otherwise be destined for stdout because
13891         under these circumstances, text written to stdout tends to
13892         disappear and not be seen.
13893
13894         * console-msw.h:
13895         * event-Xt.c:
13896         * event-Xt.c (x_event_to_emacs_event):
13897         * event-Xt.c (describe_event_window):
13898         * events-mod.h (XEMACS_MOD_CONTROL):
13899         * events.c:
13900         * events.c (Fmake_event):
13901         * events.c (character_to_event):
13902         * events.c (event_to_character):
13903         * events.c (format_event_object):
13904         * events.c (Fevent_modifiers):
13905         * events.h:
13906         * events.h (struct key_data):
13907         * events.h (struct button_data):
13908         * events.h (struct misc_user_data):
13909         * frame-x.c (Fcde_start_drag_internal):
13910         * frame-x.c (Foffix_start_drag_internal):
13911         * gpmevent.c (Freceive_gpm_event):
13912         * keymap.c:
13913         * keymap.c (bucky_sym_to_bucky_bit):
13914         * keymap.c (control_meta_superify):
13915         * keymap.c (make_key_description):
13916         * keymap.c (keymap_lookup_directly):
13917         * keymap.c (create_bucky_submap):
13918         * keymap.c (keymap_store):
13919         * keymap.c (define_key_check_and_coerce_keysym):
13920         * keymap.c (define_key_parser):
13921         * keymap.c (define_key_alternate_name):
13922         * keymap.c (Fdefine_key):
13923         * keymap.c (raw_lookup_key_mapper):
13924         * keymap.c (struct map_keymap_unsorted_closure):
13925         * keymap.c (map_keymap_unsorted_mapper):
13926         * keymap.c (map_keymap_sort_predicate):
13927         * keymap.c (map_keymap_sorted):
13928         * keymap.c (accessible_keymaps_mapper_1):
13929         * keymap.c (where_is_recursive_mapper):
13930         * keymap.c (describe_map_mapper):
13931         * keymap.c (describe_map_sort_predicate):
13932         * keymap.c (describe_map):
13933         * keymap.c (complex_vars_of_keymap):
13934         And a number of other files, the key modifier preprocessor
13935         constants that xemacs uses have names that conflict with constants
13936         defined under MS Windows for other purposes, so they were renamed
13937         to begin with the prefix XEMACS_. The variables that hold such
13938         modifiers were changed to consistently be of type int to fix
13939         various compile warnings.
13940
13941         * console.c (complex_vars_of_console):
13942         * device.c:
13943         * device-msw.c:
13944         * device-msw.c (mswindows_finish_init_device):
13945         * device-msw.c (msw_get_workspace_coords):
13946         * device-msw.c (mswindows_device_system_metrics):
13947         and various other files, added support for a new
13948         device property called offset-workspace which returns the position
13949         of the upper left corner of the workspace area and goes along with
13950         the existing size-workspace property.
13951
13952         * dialog-msw.c:
13953         * dialog-msw.c (push_bufbyte_string_as_unicode):
13954         * dialog-msw.c (mswindows_popup_dialog_box):
13955         Added support for XEmacs-style accelerator specifications in
13956         button text.  Note: I didn't add support for this under X Windows,
13957         and somebody needs to do this.
13958
13959         * dialog.c:
13960         * dialog.c (Fpopup_dialog_box):
13961         Documented the support for accelerators that was just mentioned.
13962
13963         editfns.c (get_home_directory): Changed behavior under Windows
13964         when HOME not defined; former behavior was irretrievably broken.
13965
13966         * emacs.c:
13967         * emacs.c (main_1):
13968         * emacs.c (main):
13969         * minibuf.c (clear_echo_area_internal):
13970         * minibuf.c (echo_area_append):
13971         * print.c:
13972         * print.c (std_handle_out_external):
13973         * print.c (std_handle_out_va):
13974         * print.c (fatal):
13975         * print.c (write_string_to_stdio_stream):
13976         * print.c (output_string):
13977         * print.c (debug_print):
13978         * print.c (debug_backtrace):
13979         * print.c (debug_short_backtrace):
13980         Cleaned up the code that prints text to stdout so that this can be
13981         changed to output into a console window instead under MS Windows,
13982         as described above.
13983
13984         * eval.c:
13985         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13986         * eval.c (internal_catch):
13987         * eval.c (unwind_to_catch):
13988         * eval.c (throw_or_bomb_out):
13989         * eval.c (condition_case_1):
13990         * eval.c (signal_1):
13991         * eval.c (check_error_state_sanity):
13992         * eval.c (call_with_suspended_errors_1):
13993         * eval.c (call_with_suspended_errors):
13994         * eval.c (reinit_vars_of_eval):
13995         Added code to catch throw loops and check for a pesky bug that may
13996         be gone now.
13997
13998         * event-msw.c:
13999         * event-msw.c (key_needs_default_processing_p):
14000         * event-msw.c (mswindows_wnd_proc):
14001         * event-msw.c (mswindows_modifier_state):
14002         * event-msw.c (emacs_mswindows_quit_p):
14003         * event-msw.c (vars_of_event_mswindows):
14004         a) Added support for using the alt key to select menu items as is
14005         standard under MS Windows.  This is controlled using the variable
14006         menu-accelerator-enabled, just like under X Windows.  There is an
14007         option on the options menu to turn this support on.  I really
14008         think that it should be on by default under Windows, but I'm not
14009         going to make this change yet.
14010
14011         b)  Added support for dynamic display size changes under Windows.
14012
14013         * event-stream.c:
14014         * event-stream.c (maybe_echo_keys):
14015         * event-stream.c (Fnext_event):
14016         * event-stream.c (command_builder_find_leaf):
14017         * event-stream.c (lookup_command_event):
14018         * event-stream.c (execute_command_event):
14019         * event-stream.c (pre_command_hook):
14020         * event-stream.c (post_command_hook):
14021         * event-stream.c (syms_of_event_stream):
14022         * event-stream.c (vars_of_event_stream):
14023         * event-stream.c (complex_vars_of_event_stream):
14024         * events.h (struct command_builder):
14025
14026         a) Tried to clean up a little bit the horribly written x-specific
14027         accelerator code that crept into this file.  I moved this code
14028         into menubar-x.c where it belongs. I also needed to move the
14029         command builder structure into the file events.h because it is
14030         accessed directly by this accelerator code.  What I didn't do, but
14031         which should be done at some point, is to properly abstract this
14032         code using device methods instead of the kludgy way that it
14033         currently hooks into the event code.
14034
14035         b) Added the lisp variables this-command-properties and
14036         last-command- properties, which should be used to synchronize two
14037         adjacent commands in preference to playing games with the variable
14038         this-command, which is typically what happens.
14039
14040         c) Added some slightly nasty code to hook into the lisp support
14041         for shifted- motion-key selection.  This is actually necessary for
14042         somewhat complicated reasons, which are described in
14043         simple.el. (NB: I think the proper thing would be to have the code
14044         that calls the pre and post command hooks also call out to generic
14045         lisp functions in simple.el, where all built-in stuff could be
14046         added.  I will think about this more.)
14047
14048         * event-unixoid.c (poll_fds_for_input):
14049         * lread.c (readchar):
14050         * redisplay-tty.c (tty_clear_frame):
14051         * redisplay-x.c (x_get_gc):
14052         * signal.c (interrupt_signal):
14053         And a whole bunch of other files: fixed up places that printed
14054         directly to stderr to instead call the function stderr_out so that
14055         the changes I made under Windows work correctly.
14056
14057         * filemode.c (mode_string):
14058         Warning fixes.
14059
14060         * frame-msw.c:
14061         * frame-msw.c (mswindows_size_frame_internal):
14062         Fixed the computation of frame size and position to keep the frame
14063         within the workspace area, rather than within the physical
14064         dimensions of the screen, so that the frame doesn't overlap window
14065         manager decorations, such as the start menu and toolbar, typically
14066         at the bottom of the screen.
14067
14068         * frame.c (vars_of_frame):
14069         Changed the default frame title format under MS Windows to consist
14070         of buffername-XEmacs, which is standard under MS Windows.  I think
14071         it might be a good idea to change this everywhere because I think
14072         it is superior to the current frame title format, but this is the
14073         kind of change that is likely to cause some people to get annoyed,
14074         so I'm not making it.
14075
14076         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14077
14078         * gui-msw.c (mswindows_handle_gui_wm_command):
14079         Fixed compile warnings.
14080
14081         * gui-x.c:
14082         * gui-x.c (strdup_and_add_accel):
14083         * gui-x.c (button_item_to_widget_value):
14084         * gui-x.h:
14085         Added code to automatically put an accelerator onto the beginning
14086         of menu items that don't have one as is now the standard, and is
14087         described more later.  Also fixed things so that the menu item
14088         name can be an evaluated expression, again a new standard.
14089
14090         * gui.c:
14091         * gui.c (gui_item_add_keyval_pair):
14092         * gui.c (make_gui_item_from_keywords_internal):
14093         * gui.c (gui_add_item_keywords_to_plist):
14094         * gui.c (gui_item_accelerator):
14095         * gui.c (gui_name_accelerator):
14096         * gui.c (gui_item_included_p):
14097         * gui.c (gui_item_display_flush_left):
14098         * gui.c (gui_item_display_flush_right):
14099         * gui.c (parse_gui_item_tree_item):
14100         * gui.c (parse_gui_item_tree_children):
14101         * gui.c (parse_gui_item_tree_list):
14102         Mule-ized.  Cleanup.  GCPRO addition.
14103
14104         * line-number.c (buffer_line_number):
14105         * lisp.h:
14106         * lisp.h (EMACS_INT_MAX):
14107         Added the manifest constant EMACS_INT_MIN corresponding to the
14108         existing constant EMACS_INT_MAX.  This is partially to fix compile
14109         warnings under Windows, and partly for cleanliness.
14110
14111         * menubar-msw.c:
14112         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14113         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14114         * menubar-msw.c (displayable_menu_item):
14115         * menubar-msw.c (populate_menu_add_item):
14116         * menubar-msw.c (populate_or_checksum_helper):
14117         * menubar-msw.c (populate_menu):
14118         * menubar-msw.c (update_frame_menubar_maybe):
14119         * menubar-msw.c (prune_menubar):
14120         * menubar-msw.c (msw_char_is_accelerator):
14121         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14122         * menubar-msw.c (mswindows_handle_wm_command):
14123         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14124         * menubar-msw.c (mswindows_handle_wm_initmenu):
14125         * menubar-msw.c (mswindows_update_frame_menubars):
14126         * menubar-msw.c (mswindows_free_frame_menubars):
14127         * menubar-msw.c (mswindows_popup_menu):
14128         Fixed a bug in handling accelerators where an extra character
14129         would be displayed in the menu item.  Also generalized the
14130         function displayable_menu_item because it is now used by the
14131         dialog box code as well.  And finally, added code in the functions
14132         that create the menubar to extract a list of accelerators for the
14133         top level menubar, which is used in the event code to determine
14134         whether a particular alt-key combination should be used to invoke
14135         a menu item, or should be passed through to access the standard
14136         XEmacs keymap binding for this key combination.
14137
14138         Much needed GCPROing.
14139
14140         * menubar-x.c:
14141         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14142         * menubar-x.c (menu_item_descriptor_to_widget_value):
14143         * menubar-x.c (restore_in_menu_callback):
14144         * menubar-x.c (x_popup_menu):
14145         * menubar-x.c (menu_move_up):
14146         * menubar-x.c (menu_move_down):
14147         * menubar-x.c (menu_move_left):
14148         * menubar-x.c (menu_move_right):
14149         * menubar-x.c (menu_select_item):
14150         * menubar-x.c (command_builder_operate_menu_accelerator):
14151         * menubar-x.c (menu_accelerator_junk_on_error):
14152         * menubar-x.c (command_builder_find_menu_accelerator):
14153         * menubar-x.c (Faccelerate_menu):
14154         * menubar.h:
14155         Moved a whole bunch of code here that was previously in
14156         event-stream.c as described above.  There is also code connected
14157         to the new standard of adding an accelerator to the beginning of
14158         menu items that don't have one as described above and below.
14159
14160         * menubar.c:
14161         * menubar.c (menu_parse_submenu_keywords):
14162         * menubar.c (Fmenu_find_real_submenu):
14163         * menubar.c (Fnormalize_menu_item_name):
14164         * menubar.c (syms_of_menubar):
14165         * menubar.c (vars_of_menubar):
14166         * menubar.c (complex_vars_of_menubar):
14167
14168         a) Cleaned up a bunch of documentation and improved it.
14169
14170         b) XEmacs now automatically adds an accelerator onto the beginning
14171         of any menu items that don't have one.  I did this because there
14172         will inevitably be some menu items on the main menubar that don't
14173         have accelerators on them because the package that adds that
14174         particular menu item hasn't yet been fixed up to have accelerators
14175         in them and it looked rather strange to have some items with and
14176         some items without accelerators, especially since even in items
14177         without accelerators, you can, at least under windows, still
14178         access the item through an accelerator corresponding to the first
14179         character in the item's name.  If people don't like this behavior,
14180         I can add a variable to turn it off optionally, but I'm not sure
14181         this is a good idea because we really do need to have accelerators
14182         on all of the menu items, and if a package doesn't like the
14183         accelerators being put on the first character, then it should put
14184         the accelerators where they belong.
14185
14186         c) I made a behavior change, which is that the descriptor that
14187         specifies the text of the menu item, which formerly was just a
14188         string, can now also be an evaluated expression.  This makes this
14189         descriptor parallel with all of the others, which could also be
14190         evaluated expressions.  This also obviates the need for the
14191         keyword :label, which was previously listed in the documentation
14192         as unimplemented, and which was for the same purpose.
14193
14194         d) GCPROing.
14195
14196         * ntproc.c:
14197         * ntproc.c (new_child):
14198         * ntproc.c (sys_spawnve):
14199         * ntproc.c (find_child_console):
14200         * ntproc.c (sys_kill):
14201         Fixed compile warnings.  By the way, this file should really go
14202         away entirely, and this will happen as soon as Kirill makes his
14203         final round of process cleanups, which affect the function
14204         call-process.
14205
14206         * process-nt.c:
14207         * process-nt.c (struct nt_process_data):
14208         * process-nt.c (find_process_from_pid):
14209         * process-nt.c (send_signal_the_nt_way):
14210         * process-nt.c (enable_child_signals):
14211         * process-nt.c (find_child_console):
14212         * process-nt.c (send_signal_the_95_way):
14213         * process-nt.c (nt_finalize_process_data):
14214         * process-nt.c (ensure_console_window_exists):
14215         * process-nt.c (nt_create_process):
14216         * process-nt.c (nt_kill_child_process):
14217         * process-nt.c (nt_kill_process_by_pid):
14218         * process-nt.c (nt_open_network_stream):
14219         * process-nt.c (vars_of_process_nt):
14220         Copied over code from Emacs 20.5 to correctly send signals to sub-
14221         processes under Windows 95.  Also added code to automatically
14222         create and hide console window when a sub-process is created under
14223         Windows 95, which obviates the need for the separate runemacs.exe
14224         executable, and finally implemented some variables that were
14225         implemented in Emacs 20.5, but previously not in XEmacs.  These
14226         include mswindows- start-process-share-console and
14227         mswindows-start-process-inherit-error-mode. (Both of these only
14228         apply to Windows 95.)
14229
14230         * regex.c (regex_compile): Fixed a compile warning.
14231
14232         * select-msw.c:
14233         * select-msw.c (mswindows_own_selection):
14234         * select-msw.c (mswindows_get_foreign_selection):
14235         * select-msw.c (mswindows_disown_selection):
14236         * select-msw.c (console_type_create_select_mswindows):
14237         * select-msw.c (syms_of_select_mswindows):
14238         Cleaned up the file and implemented the device method
14239         selection_exists_p, which had accidentally been left out.  Also
14240         removed four lisp functions that were remnants from before the
14241         time when the selection code was properly device abstracted.
14242         These functions are no longer needed because there are generic
14243         equivalents, and because they were added recently and don't exist
14244         in FSF Emacs, I don't think there's any problem with just deleting
14245         them.
14246
14247         * sysdep.c:
14248         * sysdep.c (sys_subshell):
14249         Fixed a compile warning, although in this case there's probably
14250         something wrong with this code, and it ought to be looked into
14251         more thoroughly by somebody who understands it.
14252
14253         * window.c:
14254         * window.c (Fwindow_text_area_height):
14255         * window.c (Fwindow_width):
14256         * window.c (Fwindow_full_width):
14257         * window.c (Fwindow_pixel_width):
14258         * window.c (debug_print_window):
14259         * window.c (syms_of_window):
14260         Added functions window-text-area-height and window-full-width,
14261         which are functions for returning various width and height
14262         characteristics of a window. (One of these functions is necessary
14263         for making the file dialog box work correctly, and the other one
14264         was added for completeness.)  Also added a table to the
14265         documentation for window-height which describes the entire scheme
14266         for accessing width and height characteristics of a window.
14267
14268 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14269
14270         * nt.c (fstat): Added a comment for another problem with
14271         non-encapsulated [f]stat(), reported by Adrian Aichner
14272         <aichner@ecf.teradyne.com>.
14273
14274 2000-03-11  Andy Piper  <andy@xemacs.org>
14275
14276         * window.c (make_dummy_parent): initialize subwindow instance
14277         cache.
14278         (Fset_window_configuration): zero extent_modiff.
14279
14280 2000-03-10  Andy Piper  <andy@xemacs.org>
14281
14282         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14283         more changes can be triggered.
14284         (Fredisplay_frame): ditto.
14285         (Fredraw_device): ditto.
14286         (Fredisplay_device): ditto.
14287         (redisplay_frame): make non-static.
14288         (redisplay_frame): call update_frame_gutter_geometry outside of
14289         display proper.
14290
14291         * gutter.h: declare update_frame_gutter_geometry.
14292
14293         * redisplay.h: declare redisplay_frame.
14294
14295         * gutter.c (update_frame_gutter_geometry): move geometry changes
14296         in update_frame_gutters here. Geometry changes can only occur
14297         outside of redisplay.
14298         (update_frame_gutters): remove geometry change code.
14299         (Fredisplay_gutter_area): make sure that we are in display when we
14300         update and that we have flushed any size changes.
14301
14302 2000-03-11  Andy Piper  <andy@xemacs.org>
14303
14304         * alloc.c (pdump_dump_data): remove i & count shadows.
14305
14306 2000-02-27  Mike Alexander  <mta@arbortext.com>
14307
14308         * sysdep.h: Declare pdump_read_file
14309
14310         * sysdep.c (pdump_read_file): New function
14311
14312         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14313         dump data
14314
14315 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14316
14317         * lrecord.h: add `lrecord_type_pgsetenv'.
14318
14319 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14320
14321         * symsinit.h: declare (vars|syms)_of* functions.
14322         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14323
14324 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14325
14326         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14327
14328         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14329         GCCs.
14330
14331         * emacs.c (main_1): Call postgres initialization code.
14332
14333         * postgresql.h: New file.  PostgreSQL RDBMS support.
14334         * postgresql.c: New file.
14335
14336 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14337
14338         * redisplay-output.c (redisplay_output_display_block): Disable
14339         redundant code.
14340
14341 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14342
14343         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14344         (Fcanna_henkan_next): Ditto.
14345         (Fcanna_bunsetu_henkou): Ditto.
14346         (Fcanna_henkan_kakutei): Ditto.
14347         (Fcanna_henkan_end): Ditto.
14348         (Fcanna_henkan_quit): Ditto.
14349         (Fcanna_henkan_next): Set retun value correctly.
14350         (c2mu): Use unsigned char instead of signed char.
14351
14352 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14353
14354         * emacs.c (main_1): Always call syms_of_gui.
14355         * inline.c: include gui.h
14356
14357 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14358
14359         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14360         converted to Lisp_Object.
14361         (Qtop_bottom): New variable.
14362         (syms_of_redisplay): Initialize it.
14363         * redisplay.h (Vvisible_bell): Ditto.
14364         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14365         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14366         only flash top and bottom.
14367
14368 2000-03-08  Andy Piper  <andy@xemacs.org>
14369
14370         * buffer.c (Frename_buffer): record new buffer name the right way.
14371
14372 2000-03-08  Andy Piper  <andy@xemacs.org>
14373
14374         * glyphs.c (update_subwindow): increase hash depth so that widget
14375         items get picked up properly.
14376
14377         * redisplay-output.c (compare_runes): increase hash depth so that
14378         widget items get picked up properly.
14379
14380 2000-03-08  Andy Piper  <andy@xemacs.org>
14381
14382         * gutter.c (output_gutter): add some debug.
14383
14384         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14385         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14386         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14387
14388         * redisplay-output.c (compare_runes): use display_hash to
14389         determine if glyphs really are not the same.
14390
14391         * glyphs.c (update_subwindow): check display_hash to see if
14392         anything really needs to be updated. If not then do
14393         nothing. Record the display_hash after updating.
14394         (image_instance_equal): compare the image_instance face also.
14395
14396 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14397
14398         * redisplay.h: Fix comment style.
14399
14400 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14401
14402         * consle-msw.h (struct mswindows_frame):
14403         Added new member paint_pending to indicate whether a WM_PAINT
14404         magic event has been queued for this frame.
14405
14406         * event-msw.c (mswindows_drain_windows_queue):
14407         Don't queue a WM_PAINT magic event if one is already queued.
14408         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14409
14410         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14411
14412 2000-03-07  Didier Verna  <didier@xemacs.org>
14413
14414         * dired.c: #include `regex.h' after `sysfile.h'.
14415
14416 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14417
14418         * sound.c (init_nas_sound): Fix compiler warning.
14419
14420         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14421         (FREE_STRUCT_P):
14422         (MARK_STRUCT_AS_FREE):
14423         (MARK_STRUCT_AS_NOT_FREE):
14424         Make `gcc -fstrict-aliasing' work properly.
14425
14426 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14427
14428         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14429         (mswindows_delete_device): Call CoUnnitialize().
14430
14431         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14432
14433 2000-02-25    <CraigL@DyCon.com>
14434
14435         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14436         <errno.h>.
14437
14438         * sysdep.c: This extern declaration for environ prevents MinGW
14439         from finding the variable in CRTDLL.DLL.
14440
14441         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14442         windows headers.
14443         (SHGFI_EXETYPE): ..
14444         (WM_MOUSEWHEEL): ..
14445         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14446         definitions.
14447         (MMRESULT): Removed, now defined in cygwin's windows headers.
14448         (TIMECAPS): ..
14449         (uid_t,gid_t,pid_t,ssize_t): ..
14450         (_timeb): Removed, MinGW defines both _timeb and timeb.
14451         (HAVE_H_ERRNO): Added.
14452         (HAVE_TZNAME): Added, configure is not detecting this.
14453
14454 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14455
14456         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14457         * syntax.c (syntax_match): Use it.
14458
14459         * cmds.c: Import auto-fill-chars from FSF Emacs.
14460         (Vauto_fill_chars): New variables.
14461         (internal_self_insert): Check Vauto_fill_chars.
14462         (vars_of_cmds):
14463         Declare auto-fill-chars as a Lisp variable and initialize it.
14464
14465 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14466
14467         * fileio.c (Fmake_symbolic_link):
14468         (Ffile_symlink_p):
14469         Run handlers even if local machine doesn't have symlinks.
14470
14471 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14472
14473         * event-msw.c (mswindows_drain_windows_queue):
14474         Don't generate paint magic events for non-XEmacs frames.
14475
14476 2000-03-05  Andy Piper  <andy@xemacs.org>
14477
14478         * redisplay.c (redisplay_frame): generate_displayable_area and
14479         friends assumes that we are not in GC, we therefore have to make
14480         sure that this doesn't happen.
14481
14482         * gutter.c (calculate_gutter_size): generate_displayable_area
14483         assumes that we are not in GC, we therefore have to make sure that
14484         this doesn't happen.
14485
14486 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14487
14488         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14489
14490 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14491
14492         * redisplay.c (regenerate_window): Make sure we set a sane value
14493         for end_pos even if we jump out of the loop.
14494         (regenerate_window): Answer Ben's question :-).
14495         (start_end_of_last_line): Add may_error argument.
14496         (start_of_last_line):
14497         (end_of_last_line): Pass may_error = 0.
14498         (end_of_last_line_may_error): New function.
14499         (pixel_to_glyph_translation): Use it, so we don't crash in
14500         event_to_glyph.
14501
14502 2000-03-04  Andy Piper  <andy@xemacs.org>
14503
14504         * window.h (struct window): add gutter_extent_modiff.
14505
14506         * window.c (allocate_window): zero out gutter_extent_modiff.
14507
14508         * redisplay.h: declare sync_display_line_structs.
14509
14510         * redisplay.c (add_glyph_rune): add a better comment.
14511
14512         * redisplay-output.c (sync_display_line_structs): made non-static.
14513         (compare_runes): remove unneccesary glyph cachel access.
14514
14515         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14516
14517         * gutter.c (output_gutter): don't output the gutter if extent
14518         changes only involve extents in buffers. use 4 sets of display
14519         lines.
14520         (gutter_extent_signal_changed_region_maybe): new function. Mark
14521         extents in gutters as changed.
14522         (update_frame_gutters): use 4 sets of display lines.
14523         (reset_gutter_display_lines): ditto.
14524         (free_frame_gutters): ditto.
14525         (redraw_exposed_gutter): force output of gutters.
14526
14527         * frame.h (struct frame): add 4 sets of gutter display lines.
14528
14529         * extents.c: (extent_changed_for_redisplay): signal changes to
14530         extents in strings in the gutter as well as extents in buffers.
14531
14532 2000-03-02  Andy Piper  <andy@xemacs.org>
14533
14534         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14535
14536         * frame.c (Fmake_frame): make sure the gutters get initialized
14537         after the frame is visible.
14538         (set_frame_selected_window): re-arrange compilation macros a
14539         little.
14540         (change_frame_size_1): mark gutters changed.
14541
14542         * device.c (Fset_device_class): mark gutters changed.
14543
14544 2000-03-01  Andy Piper  <andy@xemacs.org>
14545
14546         * window.c (window_top_frame_gutter_height): deleted.
14547         (window_bottom_frame_gutter_height): ditto.
14548         (window_left_frame_gutter_height): ditto.
14549         (window_right_frame_gutter_height): ditto.
14550         (window_top_gutter_height): don't use them.
14551         (window_bottom_gutter_height): ditto.
14552         (window_left_gutter_width): ditto.
14553         (window_right_gutter_width): ditto.
14554         (Fsplit_window): ditto.
14555         (Fwindow_pixel_edges): don't use border dimensions here.
14556
14557         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14558         (update_scrollbar_instance): ditto.
14559
14560         * redisplay.c (generate_modeline): don't take gutters into account.
14561         (generate_modeline): ditto.
14562         (redisplay_frame): small gutter display optimization.
14563
14564         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14565
14566         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14567         gutters into account.
14568
14569         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14570         for window position and type.
14571
14572         * gutter.c (get_gutter_coords): fix for frame gutters.
14573         (update_frame_gutters): update frame geometry if the gutters have
14574         changed.
14575         (init_frame_gutters): record current gutter geometries.
14576
14577         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14578         var.
14579         (mswindows_widget_instantiate): ditto.
14580
14581         * frame.h (struct frame): add current_gutter_bounds.
14582
14583         * frame.c (change_frame_size_1): position window and minibuffer
14584         appropriately taking into account the frame gutters.
14585
14586         * frame-x.c: (x_initialize_frame_size): take into account the
14587         frame gutters.
14588
14589 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14590
14591         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14592
14593 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14594
14595         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14596
14597 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14598
14599         * file-coding.c (reset_decoding_stream): Clear previous
14600         detection state when autodetect.
14601
14602 2000-02-29  Didier Verna  <didier@xemacs.org>
14603
14604         * extents.c (set_extent_glyph_1): don't require extents to be
14605         attached.
14606
14607 2000-02-27  Andy Piper  <andy@xemacs.org>
14608
14609         * gutter.c (Fset_default_gutter_position): don't default left and
14610         right gutter visibility to t.
14611         (Fset_default_gutter_position): run
14612         default-gutter-position-changed-hook.
14613         (syms_of_gutter): add default-gutter-position-changed-hook.
14614
14615 2000-02-26  Andy Piper  <andy@xemacs.org>
14616
14617         * specifier.c (Fmake_specifier): add gutter references.
14618
14619         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14620
14621         * lisp.h: declare Fvalid_plist_p.
14622
14623         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14624         as changed.
14625         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14626         well as its visibility so that it gets reconstructed.
14627         (construct_window_gutter_spec): new function. Construct a string
14628         to be displayed in the gutter from a plist of strings. Take care
14629         to only use elements that are declared as visible.
14630         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14631         WINDOW_GUTTER.
14632         (gutter_validate): allow plists of strings in the specifier.
14633         (gutter_specs_changed): construct the real_gutter from the gutter
14634         specs using construct_window_gutter_spec.
14635         (gutter_visible_validate): gutter-visible is a new specifier type.
14636         (Fgutter_visible_specifier_p): new function for the new specifier.
14637         (syms_of_gutter): declare gutter-visible and
14638         Fgutter_visible_specifier_p.
14639         (specifier_type_create_gutter): intitalize new gutter-visible
14640         specifier.
14641         (reinit_specifier_type_create_gutter): ditto.
14642         (specifier_vars_of_gutter): use new specifier type for gutter
14643         visibility.
14644         (init_frame_gutters): construct real_gutter correctly.
14645         (Fgutter_specifier_p): beef up documentation.
14646         (Fgutter_size_specifier_p): ditto.
14647
14648         * winslots.h: add real_gutter slots.
14649
14650 2000-02-25  Andy Piper  <andy@xemacs.org>
14651
14652         * device-msw.c: Be kind to older cygwin versions. From Raymond
14653         Toy <toy@rtp.ericsson.se>.
14654
14655         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14656         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14657
14658 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14659
14660         * elhash.c (MARK_OBJ): Practice macro hygiene.
14661
14662 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14663
14664         * miscplay.c: s/__inline__/inline/g;
14665         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14666         (get_device_compdc): INLINE ==> static inline
14667         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14668         find -name '*.h' | \
14669         xargs global-replace \
14670         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14671
14672 2000-02-25  Andy Piper  <andy@xemacs.org>
14673
14674         * window.c (window_top_frame_gutter_height): new function.
14675         (window_top_window_gutter_height): ditto.
14676         (window_top_gutter_height): use them.
14677         (window_bottom_frame_gutter_height): new function.
14678         (window_bottom_window_gutter_height): ditto.
14679         (window_bottom_gutter_height): use them.
14680         (window_left_window_gutter_width): new function.
14681         (window_left_frame_gutter_width): ditto.
14682         (window_left_gutter_width): use them.
14683         (window_right_window_gutter_width): new function.
14684         (window_right_frame_gutter_width): ditto.
14685         (window_right_gutter_width): use them.
14686         (window_pixel_height): new function. calulate window pixel height
14687         with frame gutter involvement.
14688         (Fsplit_window): calculate new sizes taking frame gutters into
14689         account.
14690         (window_char_height_to_pixel_height): don't include frame gutters.
14691         (window_char_height): use window_pixel_height.
14692         (window_pixheight): rename from window_pixel_height.
14693         (change_window_height): use it.
14694         (window_pixel_height_to_char_height): don't include frame gutters.
14695         (window_char_width_to_pixel_width): ditto.
14696
14697 2000-02-25  Andy Piper  <andy@xemacs.org>
14698
14699         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14700         if it is.
14701
14702 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14703
14704         * alloc.c (staticpro):
14705         (staticpro_nodump):
14706         (dumpstruct):
14707         (dumpopaque):
14708         (pdump_wire):
14709         (pdump_wire_list):
14710         (compact_string_chars):
14711         (pdump_dump_wired):
14712         Convert:  if (foo) abort();  ==>  assert (! foo);
14713
14714         * eldap.c (Fldap_search_basic):
14715         (Fldap_add):
14716         (Fldap_modify):
14717         (Fldap_delete):
14718         Fix compiler warnings, and possible crashes if (random) return
14719         value were to be used.
14720
14721 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14722
14723         * device-msw.c: Workaround ResetDC failure.
14724
14725         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14726         applying a devmode.
14727
14728         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14729         (mswindows_text_width): Do not start printer page.
14730
14731         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14732
14733         * glyphs-msw.c: Added image methods to msprinter console and
14734         msprinter-specific image instantiation.
14735
14736 2000-02-20  Mike Alexander  <mta@arbortext.com>
14737
14738         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14739         to avoid crashes when selection-sets-clipboard is on
14740         (mswindows_own_selection): ditto
14741
14742 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14743
14744         * glyphs-msw.c:
14745         * redisplay-msw.c (get_frame_dc):
14746         (get_frame_compdc):
14747         * console-msw.h:
14748         * device-msw.c (mswindows_init_device):
14749         (mswindows_delete_device):
14750         (msprinter_init_device):
14751         (msprinter_delete_device):
14752         * frame-msw.c (mswindows_init_frame_1):
14753         (mswindows_delete_frame):
14754         (msprinter_init_frame_3):
14755         (msprinter_delete_frame): Move compatible DC to device object from
14756         frame object, for both mswindows and msprinter. Only one at a time
14757         is needed, it is a real waste to have one per frame!
14758
14759 2000-02-23  Andy Piper  <andy@xemacs.org>
14760
14761         * glyphs.c: add dynamic width and height elements.
14762         (image_instance_equal): ditto.
14763
14764         * glyphs-widget.c (widget_query_geometry): calculate width and
14765         height dynamically if required.
14766         (initialize_widget_image_instance): initialize dynamic dimensions.
14767         (widget_instantiate): pick-up dynamic dimensions.
14768
14769         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14770         dynamic determination. Add appropriate macros.
14771
14772         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14773         dimensions safe.
14774         (WINDOW_GUTTER_SIZE): ditto.
14775         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14776
14777         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14778         inline.
14779         (get_frame_dc): ditto.
14780
14781         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14782         here.
14783
14784 2000-02-23  Martin Buchholz <martin@xemacs.org>
14785
14786         * XEmacs 21.2.31 is released.
14787
14788 2000-02-22  Ben Wing <ben@xemacs.org>
14789
14790         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14791
14792 2000-02-22  Andy Piper  <andy@xemacs.org>
14793
14794         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14795
14796 2000-02-21  Mike Sperber <mike@xemacs.org>
14797
14798         * .dbxrc:
14799         * .gdbinit:
14800         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14801         variables.
14802
14803 2000-02-21  Mike Sperber <mike@xemacs.org>
14804
14805         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14806
14807 2000-02-21  Martin Buchholz <martin@xemacs.org>
14808
14809         * XEmacs 21.2.30 is released.
14810
14811 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14812
14813         Performance hacking.
14814         * *.c (syms_of_*):
14815         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14816         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14817         * emacs.c (main_1):
14818         * lisp.h (DEFUN):
14819         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14820         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14821         * symeval.h (DEFVAR_SYMVAL_FWD):
14822         * symbols.c (guts_of_unbound_marker):
14823         Make all c_readonly objects also lisp_readonly and marked for life.
14824         * lrecord.h (struct lrecord_implementation):
14825         Document flags better.
14826         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14827         * lrecord.h (DECLARE_LRECORD):
14828         * lrecord.h (XSETRECORD):
14829         * lrecord.h (RECORDP):
14830         * lrecord.h (RECORD_TYPEP):
14831         * lrecord.h (RECORD_MARKER): New.
14832         * lrecord.h (error_check_*):
14833         * lrecord.h (CONCHECK_NONRECORD):
14834         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14835         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14836         * lrecord.h (set_lheader_implementation):
14837         * lrecord.h (enum lrecord_type): New.
14838         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14839         * alloc.c (disksave_object_finalization_1):
14840         * alloc.c (mark_object):
14841         * alloc.c (lrecord_type_index):
14842         * alloc.c (tick_lcrecord_stats):
14843         * alloc.c (Fgarbage_collect):
14844         * alloc.c (init_alloc_once_early):
14845         * alloc.c (pdump_load):
14846         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14847         * alloc.c (lrecord_type_index): Delete.
14848         Make lisp object type indexes be constant.
14849           Makes (byte-compile) 5% faster.
14850         Put all marker functions into their own array.
14851           Makes (garbage-collect) 5% faster.
14852         Optimize SYMBOL_VALUE_MAGIC_P.
14853           Makes (byte-compile) 2-3% faster.
14854         * config.h.in (gc_checking_assert): New.
14855         * alloc.c: Use gc_checking_assert().
14856         * .dbxrc: Make compatible with new object type implementation.
14857         * .gdbinit: Make compatible with new object type implementation.
14858         * alloc.c: Delete all symbols defined only for debugging, such as
14859         Lisp_Type_Vector and lrecord_charset.
14860
14861 2000-02-21  Andy Piper  <andy@xemacs.org>
14862
14863         * gui-msw.c (Fmswindows_shell_execute): fix file location
14864         problems.
14865
14866         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14867         unshowing so that set_window_buffer doesn't undo
14868         kill_buffer_hook's hard work.
14869
14870         * glyphs-widget.c (tab_control_query_geometry): don't count the
14871         first item when calculating geometry.
14872
14873         * glyphs.c (map_subwindow): remove redundant code.
14874         (update_frame_subwindows): be more circumspect about when to
14875         update subwindows.
14876
14877         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14878         when items haven't changed. Update faces if faces have changed as
14879         well as just the widget face.
14880         (x_tab_control_update): Update faces if faces have changed as well
14881         as just the widget face.
14882
14883 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14884
14885         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14886         registration.
14887         (build_syscolor_string): Use mswindows_color_to_string to try to
14888         get a named color.
14889         (mswindows_device_system_metrics): Reverse the foreground and
14890         background colors so that they match the documentation.
14891
14892         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14893         they match the default Windows palette.
14894         (mswindows_color_to_string): New function.
14895
14896 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14897
14898         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14899
14900 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14901
14902         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14903         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14904
14905         * symbols.c (init_symbols_once_early): Removed obsolete
14906         DATA_SEG_BITS related kludge.
14907         (defvar_magic): Ditto.
14908
14909         * malloc.c: Removed obsolete DATA_SEG_BITS
14910         * ralloc.c: Ditto.
14911         * mem-limits.h: Ditto.
14912
14913         * Makefile.in.in: Removed obsolete HAVE_SHM
14914         * emacs.c: Ditto.
14915
14916 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14917
14918         *  device-msw.c (mswindows_delete_device): Free DDE string
14919         handles.
14920
14921 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14922
14923         * keymap.c (get_keyelt):
14924         * unexnt.c (unexec):
14925         * vm-limit.c (memory_warnings):
14926         * ntheap.c (recreate_heap):
14927         * ntheap.h (UNINIT_PTR):
14928         * select-msw.c (Fmswindows_get_clipboard):
14929         (Fmswindows_set_clipboard):
14930         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14931         * objects-msw.c:
14932         * menubar-msw.c (displayable_menu_item):
14933         * glyphs-msw.c:
14934         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14935         * sysdep.c (sys_subshell):
14936         * process-nt.c (nt_create_process):
14937         * nt.c (normalize_filename):
14938         (dostounix_filename):
14939         (unixtodos_filename):
14940         * ntproc.c (win32_executable_type):
14941         * ntplay.c (play_sound_data_1):
14942         (play_sound_file):
14943         * editfns.c (get_home_directory):
14944         * event-msw.c (struct winsock_stream):
14945         (mswindows_dde_callback):
14946         * device-msw.c (msprinter_init_device):
14947         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14948
14949         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14950         mswindows_clear_toolbar were swapped!
14951
14952         * objects-msw.c:(colormap_t):
14953         (fontmap_t):
14954         * emacs.c (struct standard_args): Fixed const jumble.
14955
14956         * glyphs-widget.c (update_widget): Fixed comparison notation.
14957
14958         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14959
14960         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14961         __declspec(noreturn) syntax.
14962
14963 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14964
14965         * eldap.c (Fldap_open):
14966         (Fldap_search_basic):
14967         (Fldap_add):
14968         (Fldap_modify):
14969         Use new coding system conversion macros.
14970
14971 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14972
14973         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14974
14975 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14976
14977         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14978         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14979
14980         * eldap.c (Qadd, Qreplace): New constant symbols
14981         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14982         interruptions by XEmacs signals
14983         Remove unnecessary calls to slow_down_interrupts and
14984         speed_up_interrupts
14985         (Fldap_search_basic): Renamed from Fldap_search_internal
14986         Added new optional parameter VERBOSE that triggers the
14987         display of progress messages
14988         Remove unnecessary calls to slow_down_interrupts and
14989         speed_up_interrupts
14990         LDAP result code analysis rewritten
14991         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14992         (syms_of_eldap): Define the new symbols and functions
14993
14994
14995 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14996
14997         * realpath.c: Determine PATH_MAX maximally portably.
14998
14999         * insdel.c (bytecount_to_charcount): Optimize.
15000         The function used to be optimized for entirely ASCII sequences.
15001         Now it is optimized for successive characters from the same
15002         charset.  This also wins big for _mostly_ ASCII sequences.
15003
15004         * fileio.c (Ffile_truename): convert return from realpath() using
15005         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15006         - Rewrite GCPROing slightly.
15007
15008         * sysdep.c (sys_open): Do filename conversion, like all other
15009         sys_* functions.  Fixes bug:
15010         (let ((file-name-coding-system 'iso-8859-2))
15011            (write-region x y latin2-name))
15012         ==> writes filename using internal encoding.
15013
15014 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15015
15016         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15017         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15018         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15019         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15020         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15021         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15022         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15023         (CONST_IF_NOT_DEBUG): Delete.
15024         * alloc.c (this_one_is_unmarkable): Delete.
15025         (mark_object): Don't check for this_one_is_unmarkable. Use the
15026         c_readonly flag instead.
15027         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15028
15029 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15030
15031         * event-msw.c (mswindows_drain_windows_queue):
15032         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15033         away redundant repaint events.
15034
15035 2000-02-17  Andy Piper  <andy@xemacs.org>
15036
15037         * redisplay.h: declare mark_redisplay_structs.
15038
15039         * redisplay.c (redisplay_window):
15040         (redisplay_frame): don't check subwindows_state_changed.
15041         (mark_redisplay): mark gutters here.
15042
15043         * glyphs.c: (instantiate_image_instantiator): always layout if we
15044         haven't done so already.
15045         (allocate_image_instance): don't mark as dirty.
15046         (update_subwindow): bind inhibit_quit.
15047
15048         * gutter.c (mark_gutters): new function.
15049
15050         * glyphs-x.c (x_update_widget): Always resize to get round a
15051         widget bug.
15052
15053         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15054         breaking absolutely everything.
15055
15056         * gutter.h: declare mark_gutters.
15057
15058 2000-02-16  Martin Buchholz <martin@xemacs.org>
15059
15060         * XEmacs 21.2.29 is released.
15061
15062 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15063
15064         * fns.c (size_bit_vector): Fix computation of the size.
15065
15066 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15067
15068         * *.[ch]: Change CONST to const globally.
15069         find -name '*.[ch]' | \
15070         xargs global-replace \
15071         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15072         - Remove vestigial references to CONST_IS_LOSING
15073
15074 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15075
15076         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15077         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15078         events instead of dispatching them directly.
15079         (mswindows_handle_paint): New function to do repainting.
15080         (mswindows_wnd_proc):
15081         (emacs_mswindows_handle_magic_event): Call above function.
15082
15083 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15084
15085         * objects-msw.c (mswindows_create_font_variant): Return the new
15086         font handle.
15087         (initialize_font_instance): Get font metrics from the underlined
15088         variant of the font to cope with the case where the underlined
15089         font has a bigger descent.
15090
15091 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15092
15093         * gui.c (gui_item_accelerator): Return the first underlined
15094         character in item name.
15095
15096 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15097
15098         * lisp.h: Added Qprinter.
15099
15100         * general.c (syms_of_general): Initialized it.
15101
15102         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15103         (get_frame_dc):
15104         (get_frame_compdc): Made inline.
15105
15106         * console.h (struct console_methods): Added eject_page method.
15107
15108         * frame.h: Added FRAME_DISPLAY_P and friends.
15109         Aligned backslahes in many macros in more readable fashion.
15110         Added page_number to struct frame, and an accessor macro
15111         for it.
15112
15113         * defice.h: Added DEVICE_DISPLAY_P and friends.
15114
15115         * device.c (Fdevice_printer_p): Used these.
15116
15117         * frame.c (allocate_frame_core): Initialize page number.
15118         (Fprint_job_page_number):
15119         (Fprint_job_eject_page): Implemented.
15120
15121         * frame-msw.c (msprinter_eject_page): Added method.
15122         (msprinter_start_page): Added.
15123
15124         * window.c (Fwindow_truncated_p): Fixed docstring.
15125         (Fwindow_last_line_visible_height): Implemented.
15126
15127 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15128
15129         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15130
15131 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15132
15133         * syntax.c (scan_words): Always advance at least one character.
15134
15135 2000-02-13  Andy Piper  <andy@xemacs.org>
15136
15137         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15138         to make sure the glyph is in the cachels.
15139
15140         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15141         global image instance flag.
15142         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15143         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15144
15145         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15146         (Fset_image_instance_property): mark layout as changed.
15147         (invalidate_glyph_geometry_maybe): mark layout as changed.
15148         (glyph_width): use new NEEDS_LAYOUT macro.
15149         (glyph_ascent): ditto.
15150         (glyph_descent): ditto.
15151         (glyph_height): ditto.
15152         (image_instance_layout): mark layout as clean after laying out.
15153         (update_subwindow): don't mark layout as clean here.
15154
15155         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15156         should no longer be needed.
15157
15158         * glyphs-x.c (x_update_widget): sanitize asserts.
15159         (x_finalize_image_instance): sanitize assignment to widgets.
15160
15161         * glyphs-widget.c (widget_instantiate): don't need to clear the
15162         layout flag here.
15163
15164 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15165
15166         * sysdep.c (getcwd): Use standard prototype.
15167         * sysdep.h (getcwd): Use standard prototype.
15168
15169         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15170         (sequence, start, end).
15171         Remove redundant type checking.
15172         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15173         view of `caller-protects') to avoid a crash where the real fix was
15174         found elsewhere.
15175
15176 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15177
15178         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15179
15180         * s/sol2.h: Remove feature macro initialization.
15181
15182         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15183         (vector_hash): New.  Code from internal_hash.
15184         * lrecord.h:
15185         Fix up allocation subsystem comments.
15186
15187         * config.h.in: Add __EXTENSIONS__ for Solaris.
15188
15189         * systime.h (EMACS_GETTIMEOFDAY): New.
15190         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15191         Remove Solaris-specific code.
15192         Use void* for the (ignored) second arg for gettimeofday().
15193
15194         * elhash.c (hash_table_hash): Implement it, finally.
15195         * elhash.c:  Use hashcode_t.
15196
15197         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15198         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15199
15200         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15201         * fns.c (size_bit_vector):
15202         * alloc.c (size_vector):
15203         (make_vector_internal):
15204         (make_bit_vector_internal):
15205         (sweep_bit_vectors_1):
15206         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15207
15208 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15209
15210         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15211         Include strings.h to avoid warnings for bzero and strcasecmp.
15212
15213 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15214
15215         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15216         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15217
15218         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15219         sequence.
15220
15221 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15222
15223         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15224         use a value field instead.
15225         (symbol_value_forward_forward): Use value field.
15226         (DEFVAR_SYMVAL_FWD): Use value field.
15227         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15228         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15229         (DEFVAR_CONST_INT): Ditto.
15230         (DEFVAR_BOOL): Ditto.
15231         (DEFVAR_CONST_BOOL): Ditto.
15232         (DEFVAR_INT_MAGIC): Ditto.
15233         (DEFVAR_BOOL_MAGIC): Ditto.
15234
15235         * symbols.c (guts_of_unbound_marker): Use value field.
15236         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15237         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15238
15239         * lisp.h: Declare dumpopaque and noninteractive1.
15240
15241         * alloc.c (dumpopaque): Added.
15242         (pdump_dump_opaquevec): Added.
15243         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15244         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15245         noninteractive.
15246
15247 2000-02-10  Andy Piper  <andy@xemacs.org>
15248
15249         * glyphs.c (image_instance_layout): if the size changes, mark it
15250         as such.
15251
15252         * redisplay-output.c (redisplay_output_layout): Update the
15253         subwindow here.
15254         (redisplay_output_subwindow): ditto.
15255
15256         * glyphs.c (update_subwindow): make sure we reset flags for
15257         layouts as well as everything else.
15258
15259         * glyphs-widget.c (layout_layout): don't need to set the instances
15260         dimensions here.
15261
15262 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15263
15264         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15265         not HAVE_DLOPEN, which is a lower-level thing.
15266
15267         * .cvsignore: Ignore gmon.out
15268
15269 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15270
15271         * .cvsignore: Ignore portable dumper xemacs.dmp file
15272
15273 2000-02-09  Andy Piper  <andy@xemacs.org>
15274
15275         * redisplay-output.c (redisplay_output_layout): be more clever
15276         about when we output based on the changed flags.
15277
15278         * glyphs.h (struct image_instantiator_methods): add update_method.
15279         (struct Lisp_Image_Instance): add changed flags. Declare new
15280         macros for manipulating them.
15281
15282         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15283         (image_instance_parent_glyph): find an image_instance's parent
15284         glyph or image_instance.
15285         (image_instance_layout): mark the size as changed.
15286         (set_image_instance_dirty_p): new function. mark an image
15287         instance, plus all of its parents, as dirty.
15288         (Fset_image_instance_property): use it.
15289         (Fglyph_animated_timeout_handler): use it.
15290         (update_subwindow): call update_widget and device methods for
15291         update_subwindow. Mark all changed flags as clean.
15292         (Fresize_subwindow): mark size as changed.
15293
15294         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15295         failures.
15296         (x_update_subwindow): only resize subwindows here.
15297         (x_update_widget): new function. Update all changed properties of
15298         a widget.
15299         (x_resize_subwindow): deleted.
15300         (x_widget_set_property): deleted.
15301         (x_progress_gauge_set_property): deleted.
15302         (x_progress_gauge_update): new function. Implement recorded
15303         changes.
15304         (x_tab_control_update): ditto.
15305         (x_tab_control_set_property): deleted.
15306         (console_type_create_glyphs_x): declare new functions.
15307         (image_instantiator_format_create_glyphs_x): ditto.
15308
15309         * glyphs-widget.c (widget_set_property): mark text changed.
15310         (update_widget): new function. Update properties of a widget.
15311         (widget_instantiate): for layouts make sure we set their
15312         children's parent correctly.
15313         (tab_control_set_property): new function. Record changes that will
15314         take place under redisplay's control.
15315         (progress_gauge_set_property): ditto.
15316         (image_instantiator_progress_guage): declare new functions.
15317         (image_instantiator_tab_control): ditto.
15318
15319         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15320         now.
15321         (mswindows_update_widget): new function. Update all properties on
15322         a widget that have changed.
15323         (mswindows_button_update): new function. Update a button's set
15324         state.
15325         (mswindows_tab_control_update): new function. Update the items in
15326         a tab.
15327         (mswindows_tab_control_set_property): deleted.
15328         (mswindows_progress_gauge_update): new function. Update the
15329         progress gauge's progress.
15330         (mswindows_widget_set_property): deleted. This is all done
15331         asynchronously now.
15332         (mswindows_progress_gauge_set_property): ditto.
15333         (console_type_create_glyphs_mswindows): declare new methods.
15334         (image_instantiator_format_create_glyphs_mswindows): ditto.
15335
15336         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15337         (msprinter_set_frame_properties): ditto.
15338
15339         * console.h (struct console_methods): Add update_widget_method.
15340
15341 2000-02-09  Andy Piper  <andy@xemacs.org>
15342
15343         * gui-msw.c (Fmswindows_shell_execute): Make
15344         mswindows-shell-execute industrial strength.
15345
15346 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15347
15348         * lrecord.h: Make macro argument `props' match member function `plist'.
15349         * fns.c (Fget):
15350         * fns.c (Fput):
15351         * fns.c (Fremprop):
15352         * fns.c (Fobject_plist):
15353         * alloc.c:
15354         * symbols.c:
15355         Object property list frobbing cleanup.
15356         - Allow any lisp object (compared with `eq'), not just symbols, as
15357           keys in object plists.
15358         - Move symbol plist frobbing into symbols.c, where it belongs.
15359         - Move string plist frobbing into alloc.c, where it belongs.
15360         - Everything's an lrecord now, so no need to test for symbolp, etc.
15361         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15362
15363         * extents.c: Reorder code to remove declarations.
15364
15365         * frame.h (store_in_alist): Remove useless declaration.
15366
15367 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15368
15369         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15370         * config.h.in: Add HAVE_XCONVERTCASE.
15371
15372 2000-02-07  Andy Piper  <andy@xemacs.org>
15373
15374         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15375         it breaks many things.
15376
15377 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15378
15379         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15380         actually can start a common comment type.
15381         * src/syntax.h (SYNTAX_END_P): ditto for end.
15382
15383 2000-02-07  Martin Buchholz <martin@xemacs.org>
15384
15385         * XEmacs 21.2.28 is released.
15386
15387 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15388
15389         * event-Xt.c (x_keysym_to_character): New.
15390         (maybe_define_x_key_as_self_inserting_character): New.
15391         (x_has_keysym): New.
15392         Auto-define all keys on the keyboard as self-insert-key.
15393
15394 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15395
15396         * menubar.c (vars_of_menubar): A small code simplification.
15397
15398         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15399
15400         * ExternalShell.c:
15401         * ExternalClient.c:
15402         * EmacsShell-sub.c:
15403         * EmacsManager.c:
15404         * EmacsFrame.c:
15405         Use consistent style for specifying X resources.
15406
15407         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15408         This makes (dontusethis-set-symbol-value-handler) actually usable.
15409
15410         * lrecord.h (lrecord_decription_type):
15411         * alloc.c (pdump_register_sub):
15412         (pdump_dump_data):
15413         (pdump_reloc_one):
15414         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15415         Comply with XEmacs coding style.
15416         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15417         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15418
15419         * keymap.c (Faccessible_keymaps):
15420         Make (accessible-keymaps map "\C-h") do the Right Thing.
15421         Make (accessible-keymaps map []) do the Right Thing.
15422         Make (accessible-keymaps map "") do the Right Thing.
15423         (check_keymap_definition_loop): New function.
15424         (keymap_store_internal): Keep luser from shooting self in foot,
15425           via (define-key ctl-x-4-map "p" global-map).
15426         Remove fullness slot from struct Lisp_Keymap, since hash tables
15427         are now reliable.
15428         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15429
15430 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15431
15432         * redisplay.c (init_redisplay): Fix small memory leak.
15433         * elhash.h:
15434         * elhash.c (pdump_reorganize_hash_table):
15435         Rename from reorganize_hash_table. Change prototype.
15436         Reuse the original memory for hentries.  Save 100k.
15437         * alloc.c (PDUMP_READ): new macro.
15438         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15439         * alloc.c: No need to #ifndef before #undef.
15440
15441         * print.c: Allow debug_print() to print readably by modifying
15442         debug_print_readably.  Use consistent variable names.
15443
15444         * .dbxrc: Try to get things to work even if stopped in a function
15445         without source available by explicitly specifying source files.
15446 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15447
15448         * unexnt.c (_start): Removed bogus code which caused loading heap
15449         from differrent executable file.
15450         Removed bogus assignment to _fmode, which caused inconsistencies.
15451
15452 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15453
15454         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15455         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15456         Do not preliminary `#define signal sigset'.
15457
15458         * systime.h: Do not prototype environ on windows nt and cygwin,
15459         this conflicts with system header.
15460
15461         * syssignal.h: Use correct define for WINDOWSNT
15462
15463         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15464         with system header.
15465
15466         * sysdep.c (near start of file): Fixed commentary and rearranged
15467         ifdefs in readable order.
15468         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15469         (start_of_text):
15470         (end_of_text):
15471         (end_of_data): Do not compile in if using PDUMP.
15472
15473         * symsinit.h: Prototyped vars_of_nt().
15474
15475         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15476         (find_child_console): Use it.
15477         (sys_kill): Use it.
15478
15479         * ntheap.h: Do not extern os_subtype.
15480
15481         * ntheap.c (cache_system_info): Do not cache unneeded:
15482         nt_major_version, nt_minor_version and os_subtype.
15483         (recreate_heap): Do not compile in when PDUMPing.
15484
15485         * nt.c (geteuid and friends): Use the new varibale
15486         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15487         (init_user_info): Removed the above mentioned hackery.
15488         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15489         stat has been fixed in the C runtime.
15490         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15491
15492         * file-coding.c (struct file_coding_dump): Do not define
15493         ucs_to_mule_table in the struct if not MULE.
15494         (struct struct lrecord_description fcd_description_1): Do not dump
15495         the above.
15496
15497         * emacs.c (main_1): Call vars_of_nt().
15498         (right before Fdump_emacs_data): Don't need lastfile if using both
15499         portabe dumper and system malloc.
15500
15501         * alloc.c (Fmemory_limit): Conditionalized out.
15502         (pdump): Use OPEN_BINARY for the portable dump file.
15503         (pdump_load): Ditto.
15504
15505 2000-02-02  Mike Alexander  <mta@arbortext.com>
15506
15507         * nt.c (convert_time): Set tm_isdst before calling mktime and
15508         avoid calling it at all if the compiler supports 64 bit integers.
15509         Also initialize utc_base_ft before using it.
15510
15511 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15512
15513         * frame.c (change_frame_size_1): Take f->internal_border_width
15514         into consideration when calculating the width of the frame.
15515
15516 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15517
15518         * window.c (frame_min_height):
15519         (frame_size_valid_p):
15520         (frame_pixsize_valid_p): Added.
15521         (check_frame_size): Generalized.
15522
15523         * window.h: Prototyped the above.
15524
15525         * lisp.h:
15526         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15527         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15528         Deleted Vwin32_* and Vbinary_process_* unused variables.
15529
15530         * device-msw.c (msprinter_init_device): Do not get printer font
15531         list; Added DEVMODE functions.
15532
15533         * frame-msw.c: Added lots of printer code.
15534
15535         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15536         general.c.
15537
15538         * console-msw.h: Added more msprinter device private slots.
15539
15540 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15541
15542         * event-msw.c (key_needs_default_processing_p): Added.
15543         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15544
15545 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15546
15547         * glyphs.c (image_instance_layout): Mark image instance as clean
15548         after layout.
15549         (glyph_dirty_p): Removed redundant function.
15550         (invalidate_glyph_geometry_maybe): Added.
15551         (update_glyph_cachel_data): Call it.
15552
15553         * glyphs.h: Prototyped it.
15554
15555         * redisplay.c (add_glyph_rune): Call it.
15556         (redisplay_window): Reset glyphs cachels when frame faces have
15557         changed, thus forcing recomputation of built-in border glyphs.
15558
15559 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15560
15561         * Makefile.in.in: Make portable dumper and purify play well together.
15562         Add imperfect, but better than nothing, support for pdump.
15563         Remove xemacs.dmp when temacs is re-generated.
15564         Don't ignore errors when dumping xemacs.
15565
15566         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15567
15568 2000-01-28  Andy Piper  <andy@xemacs.org>
15569
15570         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15571         (setup_normal_frame): ditto.
15572         (setup_frame_without_minibuffer): ditto.
15573         (setup_minibuffer_frame): ditto.
15574         (delete_frame_internal): ditto.
15575         (Fmake_frame_invisible): ditto.
15576         (Ficonify_frame): ditto.
15577
15578         * window.h: change Fset_window_buffer signature.
15579
15580         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15581         (Fset_window_buffer): allow recording of buffer if the window is
15582         the selected window.
15583         (window_loop): Use new Fset_window signature.
15584
15585 2000-01-23  Daniel Pittman  <daniel@danann.net>
15586
15587         * config.h.in: Added template for `HAVE_ATHENA_3D'
15588
15589 2000-01-29  Andy Piper  <andy@xemacs.org>
15590
15591         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15592
15593         * gutter.c (output_gutter): Don't output if the window isn't live.
15594
15595 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15596
15597         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15598         of 01/12/00: Moved SetFocus back here where it belongs.
15599
15600 2000-01-23  Andy Piper  <andy@xemacs.org>
15601
15602         * s/cygwin32.h: declare printer things.
15603
15604 2000-01-26  Andy Piper  <andy@xemacs.org>
15605
15606         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15607         Alexander.
15608
15609 2000-01-24  Andy Piper  <andy@xemacs.org>
15610
15611         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15612         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15613
15614         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15615
15616         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15617
15618         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15619
15620         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15621         (mswindows_output_display_block): Avoid local shadows.
15622
15623         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15624         (mswindows_enqueue_mouse_button_event): ditto.
15625         (mswindows_handle_gui_wm_command): remove declaration.
15626
15627         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15628         warnings.
15629
15630         * console-msw.h: Avoid shadows.
15631         (mswindows_get_toolbar_button_text):
15632         (emacs_mswindows_create_stream_pair):
15633         (emacs_mswindows_delete_stream_pair):
15634         (mswindows_handle_toolbar_wm_command): declare.
15635
15636         * device-msw.c (build_syscolor_string): Avoid shadows.
15637
15638 2000-01-23  Andy Piper  <andy@xemacs.org>
15639
15640         * glyphs-widget.c (widget_instantiate): reverse the items for
15641         layouts so that children are in the expected order.
15642
15643 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15644
15645         * ralloc.c: safe_bcopy ==> memmove
15646         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15647         * s/msdos.h: Remove BCOPY macros.
15648         * insdel.c (gap_right): Remove BCOPY conditional code.
15649         * insdel.c (gap_left): Remove BCOPY conditional code.
15650         XEmacs demands a working ANSI C compiler - hence memmove.
15651
15652         * regex.c (regex_compile): Remove accidental use of trigraphs.
15653
15654 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15655
15656         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15657         event timestamp.
15658
15659 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15660
15661         * event-msw.c (mswindows_drain_windows_queue): Added the
15662         parameter.
15663         (mswindows_need_event): Commented the call to
15664         mswindows_drain_windows_queue().
15665         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15666         only.
15667
15668         * console-msw.h: Moved a few function prototypes here from
15669         event-msw.c.
15670
15671         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15672         parameter from unsigned short to unsigned long.
15673         (Fmswindows_shell_execute): Added return value.
15674
15675 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15676
15677         * sysdep.c (init_system_name):
15678           process-unix.c (unix_canonicalized_host_name):
15679         Don't call freeaddrinfo() if getaddrinfo() fails.
15680
15681         * process-unix.c (unix_open_unix_network_stream):
15682         Moved the code to get a port # into address loop.
15683
15684 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15685
15686         * buffer.c (reinit_vars_of_buffer):
15687         The right place to initialize conversion_in_dynarr and
15688         conversion_out_dynarr.
15689
15690         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15691
15692         * process-unix.c (unix_canonicalize_host_name): Muleize.
15693         (unix_open_network_stream): Muleize.
15694
15695         * buffer.h: Fix up prototypes for ralloc.c functions.
15696
15697 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15698         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15699         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15700                 instead of gethostbyname()
15701         * process-unix.c: In unix_canonicalize_host_name() and
15702                 unix_open_network_stream(), add code to use getaddrinfo()
15703                 instead of gethostbyname().
15704
15705 2000-01-27  Daniel Pittman <daniel@danann.net>
15706
15707         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15708         libs when built with flat Athena.
15709
15710 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15711
15712         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15713         Use coding standards for function prototypes.
15714
15715 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15716
15717         * dialog-msw.c (push_lisp_string_as_unicode):
15718         * doc.c (unparesseuxify_doc_string):
15719         * dired.c (Fuser_name_completion_1):
15720         * dired.c (Fuser_name_all_completions):
15721         * dired.c (free_user_cache):
15722         * dired.c (user_name_completion):
15723         * console-x.c (get_display_arg_connection):
15724         * minibuf.c (clear_echo_area_internal):
15725         * minibuf.c (echo_area_append):
15726         * eldap.c (Fldap_open):
15727         * eldap.c (Fldap_search_internal):
15728         * frame-x.c (x_set_frame_text_value):
15729         * frame-x.c (x_set_frame_properties):
15730         * frame-x.c (x_create_widgets):
15731         * redisplay-tty.c (term_get_fkeys_1):
15732         * objects-x.c (x_parse_nearest_color):
15733         * objects-x.c (x_valid_color_name_p):
15734         * objects-x.c (x_initialize_font_instance):
15735         * objects-x.c (x_list_fonts):
15736         * objects-x.c (x_find_charset_font):
15737         * tooltalk.c (Fadd_tooltalk_message_arg):
15738         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15739         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15740         * process-unix.c (unix_create_process):
15741         * ntproc.c (sys_spawnve):
15742         * sound.c (Fplay_sound_file):
15743         * sound.c (Fplay_sound):
15744         * buffer.c (init_initial_directory):
15745         * buffer.c (init_buffer):
15746         * editfns.c (init_editfns):
15747         * editfns.c (Ftemp_directory):
15748         * editfns.c (Fuser_full_name):
15749         * editfns.c (uncache_home_directory):
15750         * editfns.c (get_home_directory):
15751         * editfns.c (Fuser_home_directory):
15752         * editfns.c (Fformat_time_string):
15753         * editfns.c (Fcurrent_time_string):
15754         * gui-x.c (button_item_to_widget_value):
15755         * database.c (Fopen_database):
15756         * event-Xt.c (x_to_emacs_keysym):
15757         * event-Xt.c (x_event_to_emacs_event):
15758         * event-Xt.c (describe_event_window):
15759         * event-msw.c (mswindows_wnd_proc):
15760         * glyphs-eimage.c (jpeg_instantiate):
15761         * glyphs-eimage.c (gif_instantiate):
15762         * glyphs-eimage.c (png_instantiate):
15763         * glyphs-eimage.c (tiff_instantiate):
15764         * glyphs-x.c (xbm_instantiate_1):
15765         * glyphs-x.c (x_xbm_instantiate):
15766         * glyphs-x.c (x_xface_instantiate):
15767         * glyphs-x.c (autodetect_instantiate):
15768         * glyphs-x.c (cursor_font_instantiate):
15769         * glyphs-x.c (x_widget_instantiate):
15770         * glyphs-x.c (x_widget_set_property):
15771         * glyphs-x.c (x_widget_property):
15772         * glyphs-x.c (BUILD_GLYPH_INST):
15773         * print.c (write_string_to_stdio_stream):
15774         * print.c (output_string):
15775         * print.c (Falternate_debugging_output):
15776         * print.c (Fexternal_debugging_output):
15777         * glyphs-msw.c (extract_xpm_color_names):
15778         * glyphs-msw.c (mswindows_xpm_instantiate):
15779         * glyphs-msw.c (bmp_instantiate):
15780         * glyphs-msw.c (resource_name_to_resource):
15781         * glyphs-msw.c (mswindows_resource_instantiate):
15782         * glyphs-msw.c (xbm_instantiate_1):
15783         * glyphs-msw.c (mswindows_xbm_instantiate):
15784         * glyphs-msw.c (mswindows_xface_instantiate):
15785         * glyphs-msw.c (mswindows_widget_instantiate):
15786         * glyphs-msw.c (add_tree_item):
15787         * glyphs-msw.c (add_tab_item):
15788         * glyphs-msw.c (mswindows_combo_box_instantiate):
15789         * glyphs-msw.c (mswindows_widget_property):
15790         * glyphs-msw.c (mswindows_combo_box_property):
15791         * glyphs-msw.c (mswindows_widget_set_property):
15792         * console.c (stuff_buffered_input):
15793         * objects-msw.c (mswindows_initialize_color_instance):
15794         * objects-msw.c (mswindows_valid_color_name_p):
15795         * objects-msw.c (mswindows_list_fonts):
15796         * objects-msw.c (mswindows_font_instance_truename):
15797         * bytecode.c (optimize_compiled_function):
15798         * select-x.c (symbol_to_x_atom):
15799         * select-x.c (x_atom_to_symbol):
15800         * select-x.c (hack_motif_clipboard_selection):
15801         * select-x.c (selection_data_to_lisp_data):
15802         * select-x.c (lisp_data_to_selection_data):
15803         * select-x.c (Fx_get_cutbuffer_internal):
15804         * select-x.c (Fx_store_cutbuffer_internal):
15805         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15806         * buffer.h (TO_INTERNAL_FORMAT): New function.
15807         * emacs.c (make_arg_list_1):
15808         * emacs.c (make_argc_argv):
15809         * emacs.c (main_1):
15810         * emacs.c (Fdump_emacs):
15811         * emacs.c (split_string_by_emchar_1):
15812         * file-coding.h:
15813         * lisp.h:
15814         * lstream.h:
15815         * symsinit.h:
15816         * device-x.c (x_init_device):
15817         * device-x.c (Fx_valid_keysym_name_p):
15818         * device-x.c (Fx_get_font_path):
15819         * device-x.c (Fx_set_font_path):
15820         * glyphs.c (bitmap_to_lisp_data):
15821         * glyphs.c (pixmap_to_lisp_data):
15822         * alloc.c (make_ext_string): Use coding system arguments.  Update
15823         all callers.
15824         * alloc.c (build_string):
15825         * callproc.c (child_setup):
15826         * callproc.c (init_callproc):
15827         * fileio.c (lisp_strerror):
15828         * fileio.c (directory_file_name):
15829         * fileio.c (Fexpand_file_name):
15830         * fileio.c (Ffile_truename):
15831         * fileio.c (Fsysnetunam):
15832         * fileio.c (Fdo_auto_save):
15833         * sysdep.c (sys_readdir):
15834         * tests.c: New file.  Allow adding C tests.
15835         Replace GET_* macros with a more comprehensible and flexible
15836         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15837         Modify all calls.
15838         Any coding system can be used to do format conversion.
15839         Eliminate enum external_data_format.
15840         Eliminate convert_to_external_format.
15841         Eliminate convert_to_internal_format.
15842         Make sure file-name, keyboard, terminal, and ctext are always
15843         defined as coding systems or aliases.  Make
15844         file-name-coding-system, terminal-coding-system, and
15845         keyboard-coding-system magical variables that are equivalent to
15846         defining the corresponding coding system aliases.
15847
15848         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15849         * file-coding.c (Fcoding_system_alias_p): New function.
15850         * file-coding.c (Fcoding_system_aliasee): New function.
15851         * file-coding.c (append_suffix_to_symbol): New function.
15852         * file-coding.c (dangling_coding_system_alias_p): New function.
15853         * file-coding.c (Ffind_coding_system):
15854         * file-coding.c (Fcopy_coding_system):
15855         * file-coding.c (encode_coding_no_conversion):
15856         * file-coding.c (syms_of_file_coding):
15857         * file-coding.c (vars_of_file_coding):
15858         Rewrite coding system alias code.
15859         Allow nested aliases, like symbolic links.
15860         Allow redefinition of coding system aliases.
15861         Prevent existence of dangling coding system aliases.
15862
15863         * dired.c (Fuser_name_completion_1):
15864         * dired.c (Fuser_name_all_completions):
15865         A crash would happen if user did QUIT in the middle of building
15866         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15867
15868         * lisp.h:
15869         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15870
15871         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15872         an unsigned char *.  Update all callers.
15873
15874 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15875
15876         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15877
15878 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15879
15880         * elhash.c (hentry_description): Use more portable definition.
15881         (resize_hash_table): Initialize new hentries using
15882         xnew_array_and_zero, thereby simplifying the code.
15883
15884         * mule-charset.c (make_charset): Make sure entire object is
15885         initialized, to avoid Purify warnings.
15886
15887         * alloc.c (resize_string): Fix unlikely crash with big strings.
15888
15889 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15890
15891         * realpath.c (xrealpath):
15892         Don't call getwd().
15893
15894 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15895
15896         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15897
15898 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15899
15900         * unexelfsgi.c (unexec): Change the way we decide which segment
15901         should be extended.
15902
15903         Assumption that .bss section should be outside the PT_LOADable
15904         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15905         it's present) is inside the 'data' segment. This would fail the
15906         test which was used to find a segment to grow and cover new
15907         heap. Instead of this assumption, I created another one - on IRIX
15908         the segment to grow should start below .bss and it's address
15909         should extent above the end of .bss. Once this segment is
15910         identified, it's grown to accommodate the new heap and new
15911         zero-length .bss section is added at the end of .data2.
15912
15913 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15914
15915         * eval.c (Feval): Wrong number of arguments should use original
15916         function, not the indirect_function version of it.
15917
15918 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15919
15920         * glyphs-x.c (x_button_instantiate): Don't add image if
15921         it is not a pixmap.
15922         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15923         is relative.
15924
15925 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15926
15927         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15928         declaration.
15929         (DEFVAR_INT_MAGIC): Ditto.
15930         (DEFVAR_BOOL_MAGIC): Ditto.
15931         * glyphs.h: Reindent backslash.
15932
15933 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15934
15935         * glyphs-widget.c (layout_query_geometry):
15936         (layout_layout): Use correct types for gheight, gwidth.
15937
15938 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15939
15940         * EmacsManager.c (QueryGeometry): Purified.
15941
15942 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15943
15944         * alloc.c (make_float): Make sure entire object is initialized, to
15945         avoid Purify warnings.
15946         (pdump_register_sub): Remove useless assignment.
15947         (pdump): Use xmalloc, not malloc.
15948         (pdump_load): Use xmalloc, not malloc.
15949
15950 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15951
15952         * callproc.c:
15953         * dired-msw.c:
15954         * fileio.c:
15955         * process-nt.c:
15956         * redisplay-msw.c:
15957         * sysdep.c: Removed redundant #include <windows.h>
15958
15959 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15960
15961         * frame.c (delete_frame_internal): Do not delete device when its
15962         implementation so declares.
15963         (delete_frame_internal): Set device selected frame to nil when
15964         last frame goes away.
15965
15966         * device-msw.c (msprinter_device_system_metrics): Implemented.
15967         (mswindows_device_system_metrics): Added 'device-dpi property.
15968
15969         * device.c: (Fdevice_printer_p): Added.
15970         Added 'offset-workspace device metric.
15971
15972         * console.h (device_metrics): Declared DM_offset_workspace.
15973
15974 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15975
15976         * fileio.c (Ffile_truename): Remove pointless and confusing
15977         initialization of elen.
15978
15979         * glyphs-widget.c: Compiler warning fixes.
15980
15981 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15982
15983         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15984         instead of a Lisp_Object as argument to make it consistent with
15985         the other LIVE_P macros.
15986         (CHECK_LIVE_PROCESS): New macro.
15987
15988         * process.c: Declare Qprocess_live_p.
15989         (Fprocess_live_p): New function.
15990         (create_process): Use PROCESS_LIVE_P.
15991         (read_process_output): Ditto.
15992         (set_process_filter): Ditto.
15993         (Fdelete_process): Ditto.
15994         (kill_buffer_processes): Ditto
15995         (process_send_signal): Use CHECK_LIVE_PROCESS.
15996         (Fprocess_input_coding_system): Check whether process is still
15997         alive (fix PR#1061).
15998         (Fprocess_output_coding_system): Ditto.
15999         (Fprocess_coding_system): Ditto.
16000         (Fset_process_input_coding_system): Ditto.
16001         (Fset_process_output_coding_system): Ditto.
16002
16003 2000-01-23  Andy Piper  <andy@xemacs.org>
16004
16005         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16006         layout and widget.
16007
16008         * glyphs.c (mark_image_instance): take into account changed
16009         image_instance format.
16010         (image_instance_equal): ditto.
16011         (image_instance_hash): ditto.
16012
16013         * glyphs-widget.c (widget_instantiate): Incorporate layout
16014         instantiation here. Delay layout of the layout until later.
16015         (layout_instantiate): deleted.
16016         (layout_query_geometry): new function. get the geometry of a
16017         layout.
16018         (layout_layout): layout a layout dynamically.
16019         (image_instantiator_widget): New function - splitting up
16020         image_instantiator_format_create_glyphs_widget for netwinder
16021         compilation.
16022         (image_instantiator_buttons):
16023         (image_instantiator_edit_fields):
16024         (image_instantiator_combo_box):
16025         (image_instantiator_scrollbar):
16026         (image_instantiator_progress_guage):
16027         (image_instantiator_tree_view):
16028         (image_instantiator_tab_control):
16029         (image_instantiator_labels):
16030         (image_instantiator_layout): ditto.
16031         (image_instantiator_format_create_glyphs_widget): Call preceding
16032         functions.
16033
16034 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16035
16036         * process.c (Fset_process_coding_system):
16037         * device-x.c (Fx_keysym_hash_table):
16038         Docstring fixes.
16039
16040         * lstream.c (Lstream_write): Return documented value, not 0.
16041
16042         * fileio.c (directory_file_name):
16043         (Fsubstitute_in_file_name):
16044         (Fsubstitute_insert_file_contents_internal):
16045         (Fwrite_region_internal):
16046         * emacs.c:
16047         * sysdep.c:
16048         * getloadavg.c:
16049         * systty.h:
16050         Remove vestigial APOLLO-conditional code.
16051
16052 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16053
16054         * getpagesize.h: Add guard macros.
16055         * libsst.h: Add guard macros.
16056         * libst.h: Add guard macros.
16057         * line-number.h: Add guard macros.
16058         * ndir.h: Add guard macros.
16059         * sysfloat.h: Add guard macros.
16060         * sysfile.h: Add guard macros.
16061         * sysproc.h: Add guard macros.
16062         * syswait.h: Add guard macros.
16063         * xintrinsic.h: Add guard macros.
16064         * xintrinsicp.h: Add guard macros.
16065         * xmmanager.h: Add guard macros.
16066         * xmmanagerp.h: Add guard macros.
16067         * xmprimitive.h: Add guard macros.
16068         * xmu.h: Add guard macros.
16069         * gpmevent.h: Add copyright statement. Add guard macros.
16070         * miscplay.h: Add guard macros.
16071         * *.h: Use consistent C-standards-approved guard macro names.
16072
16073         * opaque.c (make_opaque): Switch parameter order.
16074         * opaque.h (make_opaque): Switch parameter order.
16075         Update all callers.
16076         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16077
16078         * config.h.in (type_checking_assert): Added.
16079         (bufpos_checking_assert): Added.
16080
16081 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16082
16083         * alloc.c: Harmless pdump changes.
16084         - Use countof().
16085         - spell alignment correctly.
16086         * sysdep.c: Use countof()
16087
16088 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16089
16090         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16091         initially_selected_for_input() console method, default to 0.
16092         (semi_canonicalize_console_connection): Try to delegate to
16093         canonicalize_console_connection if no such console method.
16094         (canonicalize_console_connection): Vice versa.
16095         (print_console): Do not print nil connection.
16096
16097         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16098         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16099         (XDEVIMPF_FRAMELESS_OK): Added.
16100         (CONSOLE_INHERITS_METHOD): Added.
16101
16102         * console-msw.c (mswindows_canonicalize_console_connection):
16103         Added.
16104         (mswindows_canonicalize_device_connection): Added.
16105
16106         * console-msw.h (struct msprinter_device): Added this struct and
16107         accessor macros.
16108         (mswindows_device): Made fontlist a lisp object.
16109
16110         * device.c (semi_canonicalize_device_connection):  Try to delegate
16111         to canonicalize_device_connection if no such console method.
16112         (canonicalize_device_connection): Vice versa.
16113         (print_device): Do not print nil connection.
16114
16115         * device-msw.c (mswindows_init_device): Call InitCommonControls
16116         when have widgets.
16117         (mswindows_delete_device): Removed fontlist deallocation.
16118         (mswindows_mark_device): Added.
16119
16120         * events.c (event_equal): Added abort() at unreached code.
16121         (event_hash): Ditto.
16122
16123         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16124         fallback tags of Windows devices.
16125
16126         * general.c (syms_of_general): Initialized Qmsprinter.
16127
16128         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16129         of fallback tags of Windows devices.
16130
16131         * lisp.h: Declared Qmsprinter.
16132
16133         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16134         of strings.
16135         (mswindows_list_fonts): Ditto.
16136         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16137         that it can be used by both mswindows and msprinter devices.
16138         (initialize_font_instance): Added.
16139         (mswindows_initialize_font_instance): Use it.
16140         (msprinter_initialize_font_instance): Added.
16141
16142         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16143         and implementation flags check.
16144         (redisplay_without_hooks): Changed the call to the above.
16145         (Fredraw_device): Ditto.
16146         (Fredisplay_device): Ditto.
16147
16148         * redisplay-msw.c (get_frame_dc): Implemented.
16149         (get_frame_compdc): Implemented.
16150         (many functions): Use the two functions above to get device
16151         contexts, ether for a window or a printer.
16152
16153 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16154
16155         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16156         initialization here.
16157         (init_symbols_once_early): Call it.
16158         * emacs.c (main_1): Call it.
16159         * symsinit.h: Declare it.
16160
16161 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16162
16163         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16164         Lisp_Object.
16165         (pdump_backtrace): Ditto.
16166         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16167         (pdump_get_entry): Abort if trying to register a null pointer.
16168         (pdump_dump_data): Cleanup types when relocating.
16169         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16170         (pdump_dump_rtables): Remove bad casts.
16171         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16172         Lisp_Object instead of a EMACS_INT for the hashtable
16173         reorganization.
16174
16175 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16176
16177         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16178
16179         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16180
16181         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16182
16183         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16184
16185 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16186
16187         * faces.h (FACE_STRIKETHRU_P): Added.
16188
16189         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16190         of font variants.
16191
16192         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16193         (mswindows_set_dc_font): New function, aware of font variants,
16194         separated from mswindows_update_dc.
16195
16196         * objects-msw.h (struct mswindows_font_instance_data): Added
16197         definition.
16198
16199         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16200         cached fonts and the data structure.
16201         (mswindows_initialize_font_instance): Added creation of font data
16202         structure.
16203         (mswindows_print_font_instance): Print at least something.
16204         (mswindows_create_font_variant): Implemented.
16205         (mswindows_get_hfont): Implemented.
16206
16207 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16208
16209         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16210         prototyping problem with msvc.
16211
16212         * emacs.c (main_1): added syms_of_gui_mswindows() call
16213
16214         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16215         syms_of_gui_mswindows() function
16216
16217         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16218
16219 2000-01-18  Martin Buchholz <martin@xemacs.org>
16220
16221         * XEmacs 21.2.27 is released.
16222
16223 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16224
16225         * glyphs-eimage.c (struct tiff_error_struct):
16226         (tiff_error_func):
16227         (tiff_warning_func):
16228         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16229
16230         * unexmips.c:
16231         * unexhp9k3.c:
16232         * unexfreebsd.c:
16233         * unexec.c: Remove vestigial Lucid C code.
16234         * unexalpha.c:
16235         * unexaix.c:
16236         * termcap.c:
16237         * libsst.c: Ansify.
16238         Remove declarations of errno and strerror().
16239
16240         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16241
16242         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16243
16244 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16245
16246         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16247         Optimize.
16248
16249 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16250
16251         * md5.c:
16252         * file-coding.c:
16253         * file-coding.h:
16254         Change enum eol_type to eol_type_t.
16255
16256 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16257
16258         * gui.c (get_gui_callback): Check cons before accessing car.
16259
16260 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16261
16262         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16263         (XSETSPECIFIER_TYPE): Ditto.
16264
16265 2000-01-17  Didier Verna  <didier@xemacs.org>
16266
16267         * redisplay.c (generate_fstring_runes): compute string size in
16268         characters, not bytes.
16269
16270 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16271
16272         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16273
16274 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16275
16276         * print.c (print_error_message): Call print_prepare().
16277
16278 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16279
16280         * .dbxrc: Renamed from dbxrc.
16281
16282         * events.c (event_to_character):
16283         Use `assert (foo)' instead of `if (!foo) abort()'
16284
16285         * .gdbinit (xtype): Add documentation.
16286         * .gdbinit (check-temacs): New function.
16287         * .gdbinit (check-xemacs): New function.
16288         * dbxrc (check-xemacs): New function.
16289         * dbxrc (check-xemacs): New function.
16290
16291 2000-01-14  Andy Piper  <andy@xemacs.org>
16292
16293         * glyphs-widget.c (widget_query_geometry): Make sure that we
16294         calculate default dimensions correctly.
16295
16296 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16297
16298         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16299
16300         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16301         pdump_wire'd variable.
16302
16303         * emacs.c: (main_1): Conditionalized calls to
16304         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16305
16306 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16307
16308         * window.c (Fset_window_configuration):
16309         * sysdep.c (_start):
16310         * input-method-motif.c (res):
16311         * event-Xt.c (Xt_process_to_emacs_event):
16312         Simple compiler warning fixes.
16313
16314         * bytecode.c (funcall_compiled_function): Use the original
16315         function symbol on the backtrace list in preference to the
16316         compiled_function object in error messages.
16317
16318 2000-01-13  Andy Piper  <andy@xemacs.org>
16319
16320         * glyphs-x.c (update_widget_face): Make sure we update the widget
16321         background as well as foreground.
16322
16323 2000-01-13  Andy Piper  <andy@xemacs.org>
16324
16325         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16326         fields to subwindow.
16327         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16328         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16329         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16330         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16331
16332         * glyphs-widget.c (check_valid_tab_orientation): new function.
16333         (initialize_widget_image_instance): zero orientation and
16334         justification.
16335         (widget_instantiate): pick up orientation.
16336         (tab_control_query_geometry): return appropriate values for
16337         vertical tabs.
16338
16339         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16340         appropriate creation flags for left, right and bottom tabs.
16341
16342         * s/cygwin32.h: add tab definitions.
16343
16344 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16345
16346         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16347         frame upon hiding a subwindow.
16348         (mswindows_button_instantiate): Changed the push button style to
16349         BS_PUSHBUTTON.
16350         (mswindows_button_instantiate): Removed button BS_NOTIFY
16351         style.
16352         (mswindows_button_instantiate): Removed redundant check for
16353         a disabled gui item.
16354         (mswindows_button_instantiate): Made use of WS_TABSTOP
16355         consistent: "operable" controls (edit, button, tree, scroll) have
16356         this style, "display-only" ones (static, progress gauge) do
16357         not. This style is currently ignored by XEmacs though. Also,
16358         removed the WS_EX_CONTROLPARENT style - it is not for children,
16359         it is for their parents!
16360         (mswindows_edit_field_instantiate): Ditto.
16361         (mswindows_progress_gauge_instantiate): Ditto.
16362         (mswindows_tree_view_instantiate): Ditto.
16363         (mswindows_tab_control_instantiate): Ditto.
16364         (mswindows_scrollbar_instantiate): Ditto.
16365         (mswindows_combo_box_instantiate): Ditto.
16366         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16367         style to the "clip" window.
16368         (mswindows_button_instantiate): Removed compilation warning by
16369         equally typing terms of the ?: operator.
16370
16371 2000-01-12  Didier Verna  <didier@xemacs.org>
16372
16373         * redisplay.c (generate_fstring_runes): new parameter holding the
16374         last modeline-format extent.
16375         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16376         extent, fill the glyph block with it.
16377         (generate_fstring_runes): handle these parameters.
16378         (generate_formatted_string_db): ditto.
16379
16380         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16381         glyphs'extents in the modeline.
16382
16383 1999-01-11  Mike Woolley  <mike@bulsara.com>
16384
16385         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16386         256Mb, as a workaround for the non-starting problem many people
16387         have experienced.
16388
16389 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16390
16391         * console-tty.c (Fset_console_tty_output_coding_system):
16392         Force redrawing tty frame.
16393
16394 2000-01-10  Didier Verna  <didier@xemacs.org>
16395
16396         * redisplay.c (generate_fstring_runes): fix size computation bug.
16397
16398 2000-01-09  William M. Perry <wmperry@aventail.com>
16399
16400         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16401
16402 2000-01-09  Andy Piper  <andy@xemacs.org>
16403
16404         * glyphs-msw.c: index -> i to avoid shadows.
16405         (xbm_create_bitmap_from_data): make static.
16406         (check_valid_string_or_int): deleted.
16407         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16408
16409         * glyphs-x.c (x_update_subwindow): remove unused args.
16410
16411         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16412         back pointer - this is done in allocate_image_instance.
16413         (query_string_font): return Qnil to make the compiler happy.
16414         (unmap_subwindow): set to ~0 to make the compiler happy.
16415         (glyph_query_geometry): comment out until used.
16416         (glyph_layout): ditto.
16417
16418 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16419
16420         * insdel.c (signal_after_change): Remove extraneous unbind_to().