Sync up with r21-4-15.
[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 2004-02-02  Vin Shelton <acs@xemacs.org>
5381
5382         * XEmacs 21.4.15 is released
5383
5384 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5385
5386         * device-x.c (x_error_handler): Don't call stderr_out
5387
5388 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5389
5390         * buffer.c (other-buffer): Clarify documentation of order of
5391         arguments for FSF Emacs.
5392
5393 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5394
5395         * window.c (Fdelete_window): Dirty the mirror structure _before_
5396         marking the window deleted.
5397
5398 2003-09-15  Jerry James  <james@xemacs.org>
5399
5400         * event-msw.c (debug_mswin_messages): Conditionally compile
5401         messages missing from the Cygwin headers.
5402
5403 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5404
5405         * data.c (eq_with_ebola_notice): Fix typo in comment.
5406         (Ftrue_list_p): Improve docstring.
5407
5408 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5409
5410         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5411
5412 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5413
5414         * search.c (trivial_regexp_p): Regexps containing "\{" are
5415         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5416         Stefan Monnier for suggesting a diagnosis.
5417
5418 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5419
5420         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5421
5422 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5423
5424         * search.c (Fsearch_forward):
5425         (Fsearch_backward):
5426         Document negative count.
5427
5428 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5429
5430         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5431
5432 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5433
5434         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5435
5436 2003-09-15  Vin Shelton  <acs@xemacs.org>
5437
5438         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5439         21.5.
5440
5441 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5442
5443         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5444         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5445         (re_match_2_internal): Use TRANSLATE instead of
5446         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5447         non-ASCII char case conversion.
5448
5449 2003-09-08  Mike Sperber  <mike@xemacs.org>
5450
5451         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5452         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5453
5454 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5455
5456        * .gdbinit (pobj): fix printing of symbol name.
5457
5458 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5459
5460         * frame-x.c (x_layout_widgets): When resizing is about to cause
5461         frame size slip, mark it for redisplay.
5462
5463 2003-08-18  Jerry James  <james@xemacs.org>
5464
5465         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5466
5467 2003-09-03  Vin Shelton <acs@xemacs.org>
5468
5469         * XEmacs 21.4.14 is released
5470
5471 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5472
5473         * config.h.in (REGEX_MALLOC): Make it configure'able.
5474
5475 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5476
5477         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5478         linking.
5479         * sysdll.c (dll_init):
5480         * sysdll.c (dll_open):
5481         * sysdll.c (dll_close):
5482         * sysdll.c (dll_function):
5483         * sysdll.c (dll_variable):
5484         * sysdll.c (dll_error):
5485         Add support for loading bundles using Darwin/MacOSX
5486         native API.
5487
5488 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5489
5490         * process.c (start-process-internal): Document coding systems.
5491
5492 2003-07-30  Jerry James  <james@xemacs.org>
5493
5494         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5495
5496 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5497
5498         * event-msw.c (mswindows_enqueue_mouse_button_event):
5499         * event-msw.c (mswindows_wnd_proc):
5500           enqueue button event when scrollwheel event isn't handled by 
5501           mswindows_handle_mousewheel_event, such as when the scrollbars
5502           are not showing.
5503
5504 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5505
5506         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5507
5508 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5509
5510         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5511
5512 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5513
5514         * regex.c (re_match_2_internal): Fix matching degenerate word
5515         boundaries.
5516
5517 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5518
5519         * XEmacs 21.4.13 is released
5520
5521 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5522
5523         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5524         * lisp.h (<inttypes.h>):
5525         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5526         the definition.
5527
5528 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5529
5530         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5531         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5532         Result: "temacs can only be run in -batch mode."
5533         Fix: Check xemacs executable candidate for directory-ness.
5534
5535 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5536
5537         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5538           they conflict with <sys/types.h>.
5539
5540 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5541
5542         * database.c: Berkeley DB wants __STDC__ to be defined.
5543
5544 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5545
5546         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5547
5548 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5549
5550         * process-unix.c (unix_send_process): Fix C++ compile error.
5551
5552 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5553
5554         * Added .dylib as an acceptable shared library file extension
5555         * to support MacOSX.
5556
5557 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5558
5559         * EmacsFrameP.h (EmacsFramePart):
5560         Kludge to allow compiling with Motif1, but linking with Motif2.
5561
5562 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5563
5564         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5565
5566
5567 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5568
5569         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5570
5571 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5572
5573         * sysdll.c: Included lisp.h to define needed alloca_array.
5574
5575 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5576
5577         Make XEmacs redisplay 10 times faster.
5578         If, that is, you're using a slow X connection and MoveOpaque.
5579         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5580         Use compress_motion = TRUE.
5581         * EmacsFrame.c (emacsFrameClassRec): 
5582         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5583         * EmacsManager.c (emacsManagerClassRec):
5584         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5585
5586 2003-01-30  Vin Shelton  <acs@xemacs.org>
5587
5588         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5589
5590 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5591
5592         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5593         Patch by Martin Buchholz.
5594
5595 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5596
5597         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5598         Thanks to icc for warning and Martin Buchholz for reporting.
5599
5600 2003-01-29  Vin Shelton <acs@xemacs.org>
5601
5602         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5603
5604         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5605         remember to multiply by the element size.
5606
5607 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5608
5609         * XEmacs 21.4.12 "Portable Code" is released.
5610
5611 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5612
5613         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5614         * s/cygwin.sc: new linker file.
5615
5616 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5617
5618         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5619
5620         * redisplay-x.c (x_output_string): Use X11-specified types.
5621         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5622         * emacs.c (__free_hook): Use typeof with Intel compiler.
5623         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5624
5625 2003-01-08  Andy Piper  <andy@xemacs.org>
5626
5627         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5628         reserve size during unexec().
5629
5630 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5631
5632         * process-unix.c (unix_create_process): Don't let outchannel block.
5633
5634 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5635
5636         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5637         Needed for IsBadReadPtr().
5638
5639 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5640
5641         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5642
5643 2002-12-14  Ben Wing  <ben@xemacs.org>
5644
5645         * callint.c: Declaration error.
5646         * dumper.c (pdump):
5647         * dumper.c (pdump_load): Warning fix.
5648         * process.c: GCPRO error.
5649         * glyphs.c (unmap_subwindow):
5650         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5651         * event-stream.c (maybe_kbd_translate): Wrong argument to
5652         character_to_event().
5653
5654         * alloc.c (garbage_collect_1):
5655         * emacs.c:
5656         * emacs.c (debug_can_access_memory):
5657         * emacs.c (fatal_error_signal):
5658         * emacs.c (mswindows_handle_hardware_exceptions):
5659         * emacs.c (main_1):
5660         * emacs.c (main):
5661         * emacs.c (assert_failed):
5662         * emacs.c (syms_of_emacs):
5663         * lisp.h:
5664         * print.c:
5665         * print.c (std_handle_out_va):
5666         * print.c (write_string_to_stdio_stream):
5667         * print.c (write_fmt_string):
5668         * print.c (printing_badness):
5669         * print.c (printing_major_badness):
5670         * print.c (print_internal):
5671         * print.c (debug_print_no_newline):
5672         * print.c (debug_backtrace):
5673         Be more defensive in handling bad values when printing.  Add code
5674         from trunk involving inhibit_non_essential_printing_operations.
5675         When going down or in debug_print(), don't do external conversion
5676         and such and try really, really hard when printing to avoid core
5677         dumping.  Add force-debugging-signal, debug_break().
5678
5679 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5680
5681         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5682         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5683
5684 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5685
5686         * database.c: Fix open_database. Berkeley DB API has changed in
5687         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5688
5689 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5690
5691         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5692
5693 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5694
5695         * event-Xt.c (Xt_timeout):
5696         (Xt_timeout_callback):
5697         (emacs_Xt_add_timeout):
5698         (emacs_Xt_remove_timeout):
5699         (Xt_timeout_to_emacs_event):
5700         Turn completed_timeouts from a stack into a queue.  Fixes
5701         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5702
5703 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5704
5705         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5706         * emacs.c (main): Assert that mmap'd allocation is disabled.
5707
5708 2002-10-14  Andy Piper  <andy@xemacs.org>
5709
5710         * glyphs-widget.c (layout_query_geometry): add in fiddle
5711         factor. Include border text in width layout calculation.
5712         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5713
5714 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5715
5716         * XEmacs 21.4.10 "Military Intelligence" is released.
5717
5718 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5719
5720         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5721         using the NAS private array SoundFileInfo that no longer exists in
5722         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5723         and earlier.  This is broken for some versions between 1.5a and
5724         1.5f.
5725
5726 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5727
5728         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5729
5730         * emacs.c (shut_down_emacs): Improve crash message.
5731
5732 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5733
5734         * file-coding.c (determine_real_coding_system): Check for coding
5735         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5736         shebangs and Python PEP 263.
5737
5738 2002-10-08  Andy Piper  <andy@xemacs.org>
5739
5740         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5741         if static sizes haven't been set.
5742
5743 2002-08-30  Mike Alexander  <mta@arbortext.com>
5744
5745         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5746         to close a socket.
5747
5748 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5749
5750         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5751
5752 2002-09-20  Mike Sperber <mike@xemacs.org>
5753
5754         (This partially gets back my patch from 2002-07-20 without the
5755         bug.)
5756         * callproc.c (child_setup): Remove Ben's comment noting confusion
5757         over the file descriptors >= 3: close_process_descs() doesn't
5758         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5759         * process-unix.c (unix_create_process): Call
5760         begin_dont_check_for_quit to inhibit unwanted interaction (and
5761         thus breaking of X event synchronicity) in the child.
5762
5763 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5764
5765         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5766         widget.
5767
5768 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5769
5770         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5771         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5772         the xemacs process did not exit, but looped infinitely here.  This
5773         fixes that problem.
5774
5775 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5776
5777         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5778         (find_context): Improve comments.
5779
5780         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5781         (re_match_2): An XCHAR_TABLE operation was missing.
5782
5783         Many of the following changes were inspired by Andy Piper's (now
5784         obsolete) patch to make syntax-table text property lookup optional.
5785
5786         [Documentation]
5787
5788         * syntax.h (top level): Document semantics of syntax flags.
5789         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5790         * syntax.c, syntax.h (top level): Document syntax cache better in
5791         comments.
5792
5793         [Instrument syntax caching (temporary change)]
5794
5795         * syntax.h (enum syntax_cache_statistics_functions, struct
5796         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5797         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5798         * syntax.c (scan_words, Fforward_comment, scan_lists,
5799         Fbackward_prefix_characters):
5800         * font-lock.c (find_context):
5801         Use them to instrument syntax caching. 
5802         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5803         syntax_cache_statistics_function_names): New type and variables.
5804         * syntax.c (update_syntax_cache): Update and report statistics.
5805
5806         [Major syntax cache optimizations]
5807
5808         syntax.c (lookup_syntax_properties): Default off.
5809
5810         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5811         * syntax.c (update_syntax_cache):
5812         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5813
5814         [Minor syntax cache optimizations and code clarifications]
5815
5816         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5817         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5818         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5819         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5820         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5821         (Code clarification.)
5822
5823         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5824         scan_lists): Compute code from syncode, use Boolean macros instead
5825         of redundant masking operations.  (Code clarification; any decent
5826         compiler can do this optimization.)
5827
5828         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5829         for clarity.
5830
5831         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5832         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5833         use F*_single_property_change instead of F*_extent_change.
5834         Currently F*_single_property_change is _much_ less efficient.
5835
5836         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5837         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5838         syntax_cache.object properly, don't leave Qt or Qnil.
5839         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5840         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5841         tests for Qt or Qnil.
5842
5843 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5844
5845         * redisplay.c (point_in_line_start_cache): 
5846         * extents.c (print_extent_1):
5847         Fix warnings.
5848
5849         * extents.c (Fset_extent_property): Document `syntax-table' property.
5850
5851         * extents.h (Fnext_single_property_change): EXFUN it.
5852
5853 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5854
5855         * search.c (clear_unused_search_regs): New static function.
5856         (search_buffer): 
5857         (simple_search): 
5858         (boyer_moore):
5859         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5860         Minor clarifications in comments.
5861
5862         * regex.c (re_match_2_internal): Ensure no stale submatches.
5863
5864 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5865
5866         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5867
5868 2002-08-29  Jerry James  <james@xemacs.org>
5869
5870         * lisp.h: structrures -> structures.
5871
5872 2002-06-03  Andy Piper  <andy@xemacs.org>
5873
5874         * frame.c (frame_conversion_internal): add conversion appropriate
5875         for setting frame dimensions in pixels.
5876
5877         * console.h (struct console_methods): add device-specific widget
5878         layout functions.
5879
5880         * emacs.c (main_1): initialize glyph vars.
5881
5882         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5883         (handle_focus_event_2): new function. Allow focus to
5884         be set to a particular window and widget.
5885         (enqueue_focus_event): new function. Create a
5886         synthetic focus event.
5887         (emacs_Xt_handle_magic_event): call
5888         handle_focus_event_2.
5889
5890         * frame.c (Fset_frame_pixel_height): new function. Allow
5891         pixel-based sizing. Does the right thing on character-oriented
5892         displays.
5893         (Fset_frame_pixel_width): ditto.
5894         (Fset_frame_pixel_size): ditto.
5895         (syms_of_frame): declare.
5896
5897         * general-slots.h: add :vertically-justify and
5898         :horizontally-justify.
5899
5900         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5901         (mswindows_widget_border_width): new function.
5902         (mswindows_combo_box_instantiate): set border widths.
5903         (console_type_create_glyphs_mswindows): declare.
5904
5905         * glyphs-widget.c:
5906         (check_valid_justification): allow vertical and horizontal
5907         justification.
5908         (widget_border_width): new function. Call device methods.
5909         (widget_instance_border_width): ditto.
5910         (logical_unit_height): new function. Determine the height of a
5911         logical-unit. Logical units are intended to provide grid-like
5912         layout for subcontrols in a layout. If the layout is
5913         :vertically-justify top then subcontrols will be positioned on
5914         logical-unit boundaries, thus allowing adjacent subcontrols to
5915         line up.
5916         (widget_logical_unit_height): ditto for widgets.
5917         (redisplay_widget): misc cleanup.
5918         (widget_spacing): new function. Call device specific
5919         methods. Intended to be the default gap between adjacent widgets.
5920         (widget_query_geometry): use new spacing functions to determine
5921         appropriate geometry.
5922         (initialize_widget_image_instance): initialize horizontal and
5923         vertical justification.
5924         (widget_instantiate): use logica-units where appropriate for
5925         sizing large widgets.
5926         (button_query_geometry): use widget_instance_border_width.
5927         (tree_view_query_geometry): ditto.
5928         (tab_control_query_geometry): ditto.
5929         (edit_field_query_geometry): new function.
5930         (layout_update): pick up :justify, :horizontally-justify and
5931         :vertically-justify none of which worked previously. :justify is
5932         used as a fallback for both horizontal and vertical justification.
5933         (layout_query_geometry): use logical units to size appropriately.
5934         (layout_layout): ditto.
5935         (Fwidget_logical_to_character_width): new function. Allow users to
5936         convert from logical units to characters so that frame sizes can
5937         be set appropriately.
5938         (Fwidget_logical_to_character_height): ditto.
5939         (syms_of_glyphs_widget): declare.
5940         (image_instantiator_edit_fields): add edit_field_query_geometry.
5941         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5942         :horizontally-justify.
5943         (specifier_vars_of_glyphs_widget): new function. Declare
5944         Vwidget_border_width which is not yet used.
5945
5946         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5947         (x_widget_border_width): new function.
5948         (x_widget_instantiate): create a sensible name for widgets.
5949         (console_type_create_glyphs_x): declare x_widget_border_width.
5950
5951         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5952         (struct Lisp_Image_Instance): add :vertically-justify and
5953         :horizontally-justify.
5954         (LAYOUT_JUSTIFY_TOP): new.
5955         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5956         (ROUND_UP): new macro. Round argument up to next integral
5957         interval.
5958
5959         * redisplay-output.c (redisplay_output_layout): misc formatting.
5960
5961         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5962
5963 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5964
5965         * XEmacs 21.4.9 "Informed Management" is released.
5966
5967 2002-08-19  Andy Piper  <andy@xemacs.org>
5968
5969         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5970         win32 format.
5971
5972         * realpath.c (xrealpath): normalize drive spec also so that dir
5973         sep chars are not mixed on cygwin.
5974
5975 2002-08-06  Jerry James  <james@xemacs.org>
5976
5977         * window.c (Fsplit_window): Count only half of the divider width
5978         against the left window when splitting horizontally. 
5979
5980 2002-06-24  Andy Piper  <andy@xemacs.org>
5981
5982         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5983         toolbar was cleared.
5984
5985         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5986         function. Split out from mswindows_output_frame_toolbars.
5987         (mswindows_output_frame_toolbars): move clear pieces to
5988         mswindows_output_frame_toolbars.
5989
5990         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5991         out from gtk_output_frame_toolbars.
5992         (gtk_output_frame_toolbars): move clear pieces to
5993         gtk_clear_frame_toolbars.
5994
5995         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5996         the frame is cleared. How this ever worked before is a mystery.
5997         (x_output_frame_toolbars): Only output toolbars.
5998         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5999
6000         * gutter.c (update_gutter_geometry):
6001         Mark frame layout changed.
6002         (update_frame_gutter_geometry, update_frame_gutters):
6003         Respect frame_layout_changed.
6004
6005         * console.h (struct console_methods): add
6006         clear_frame_toolbars_method.
6007
6008         * redisplay.c (redisplay_frame): call
6009         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6010
6011         * toolbar.h: declare update_frame_toolbars_geometry.
6012
6013         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6014         out from update_frame_toolbars.  Call clear_frame_toolbars.
6015         (update_frame_toolbars): only output, do not change geometry.
6016
6017         * redisplay.c: add frame_layout_changed.
6018
6019         * redisplay.h: add frame_layout_changed.
6020         (CLASS_RESET_CHANGED_FLAGS): set it.
6021         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6022         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6023         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6024
6025         * device.h (struct device): add frame_layout_changed.
6026         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6027
6028         * frame.h (struct frame): add frame_layout_changed.
6029         (MARK_FRAME_LAYOUT_CHANGED): new.
6030
6031 2002-06-30  Mike Alexander  <mta@arbortext.com>
6032
6033         * event-msw.c (mswindows_need_event): Don't wait for a new message
6034         if the queue is not empty.  Suggested by Paul Moore.
6035
6036 2002-06-12  Andy Piper  <andy@xemacs.org>
6037
6038         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6039         for printing on accurately.
6040
6041 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6042
6043         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6044         WM_ACTIVATE message. Make sure that the frame is visible if the
6045         window is visible. This seemss to fix the problem where XEmacs
6046         appears to freeze after switching desktops with certain virtual
6047         window managers.
6048         (debug_output_mswin_message): Added code to output message
6049         parameters for WM_WINDOWPOSCHANGED, 
6050         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6051
6052 2002-05-25  Andy Piper  <andy@xemacs.org>
6053
6054         * select-x.c (vars_of_select_x): Fix docstring of
6055         x-selection-strict-motif-ownership
6056
6057 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6058
6059         * keymap.c (get_keymap):
6060         Add comment about do_autoload GCPROs own args.
6061
6062 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6063
6064         * bytecode.c (execute_optimized_program): check_opcode ifdef
6065         ERROR_CHECK_BYTE_CODE.
6066
6067 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6068
6069         Thanks to Ben Wing and Michael Sperber.
6070
6071         * eval.c (Fcommand_execute):
6072         (Feval):
6073         (Ffuncall):
6074         (Fmacroexpand_internal):
6075         (function_argcount):
6076         callint.c (Fcall_interactively):
6077         Add comment about do_autoload GCPROs own args.
6078
6079         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6080
6081         * eval.c (Ffuncall): Extra braces to placate GCC.
6082
6083 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6084
6085         * backtrace.h (grow_specpdl):
6086         (SPECPDL_RESERVE):
6087         * EmacsFrame.c (EmacsFrameSetValues):
6088         * eval.c (grow_specpdl):
6089         * ExternalShell.c (hack_event_masks_1):
6090         * glyphs-x.c (convert_EImage_to_XImage): 
6091         (x_finalize_image_instance):
6092         * ralloc.c (page_size):
6093         (r_alloc_sbrk):
6094         * xgccache.c (gc_cache_hash):
6095         Fix unsigned comparison warnings.
6096
6097 2002-07-29  Jerry James  <james@xemacs.org>
6098
6099         * lread.c (locate_file): Any nonnegative return value indicates
6100         success if MODE is nonnegative.
6101
6102 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6103
6104         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6105         argument. 
6106
6107 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6108
6109         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6110
6111         * dumper.c (pdump_get_indirect_count):
6112         (pdump_scan_by_alignment):
6113         (pdump_dump_root_struct_ptrs):
6114         (pdump_dump_rtables):
6115         (pdump_dump_root_objects):
6116         (pdump):
6117         * nas.c (WaveOpenDataForReading):
6118         * fns.c (print_bit_vector):
6119         * font-lock.c (SINGLE_SYNTAX_STYLE):
6120         * glyphs.c (check_for_ignored_expose):
6121         (find_matching_subwindow):
6122         * glyphs-eimage.c:
6123         * imgproc.c (get_histogram):
6124         * redisplay.c (point_in_line_start_cache):
6125         * redisplay-output.c (redisplay_unmap_subwindows):
6126         * symbols.c (defsymbol_massage_name_1):
6127         (defkeyword_massage_name):
6128         (deferror_massage_name_and_message):
6129         * redisplay-x.c (x_output_string): 
6130         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6131         * frame.h (struct frame):
6132         * filelock.c (current_lock_owner):
6133         * doprnt.c (emacs_doprnt_1):
6134         * lisp.h (struct Lisp_Bit_Vector):
6135         (DO_REALLOC):
6136         Fix warnings.
6137
6138 2002-02-13  Ben Wing  <ben@xemacs.org>
6139
6140         * event-stream.c (reset_key_echo):
6141         * event-stream.c (reset_this_command_keys):
6142         * event-stream.c (execute_command_event):
6143         If console is dead as a result of C-x 5 0, then post-command stuff
6144         needs to be careful and do only non-console-specific stuff.
6145
6146 2002-07-01  Mike Sperber <mike@xemacs.org>
6147
6148         * process-unix.c (unix_send_process): Mark coding_outstream as
6149         non-open upon SIGPIPE.
6150
6151         * event-stream.c (Fnext_event): Reorder switch cases to something
6152         that makes sense.
6153
6154 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6155
6156         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6157         Don't bogusly reinitialize ascii_character property.
6158
6159 2002-07-08  Mike Sperber <mike@xemacs.org>
6160
6161         * process.c (Fstart_process_internal): Do error checking before we
6162         fork off the child, so the child can't muck with the state of the
6163         parent.
6164
6165 2002-07-08  Mike Sperber <mike@xemacs.org>
6166
6167         * ralloc.c (init_ralloc): Allocate properly for pdump.
6168
6169 2002-06-12  Andy Piper  <andy@xemacs.org>
6170
6171         * glyphs.c (query_string_geometry): check the string.
6172
6173         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6174         widget names.
6175
6176 2002-06-17  Jerry James  <james@xemacs.org>
6177
6178         * sysdll.c: Remove RTLD_GLOBAL initialization.
6179         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6180
6181 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6182
6183         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6184
6185 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6186
6187         * sysdep.c (sys_rename): Make sys_rename work for the case where
6188         Windows rename sets errno to EACCES if target file exists.
6189
6190 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6191
6192         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6193         Fix detection of metric units to work on Win95
6194
6195 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6196
6197         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6198
6199 2002-04-25  Andy Piper  <andy@xemacs.org>
6200
6201         * redisplay.c (create_text_block): Remove extra comment trailer.
6202
6203 2002-04-24  Andy Piper  <andy@xemacs.org>
6204
6205         * redisplay.c (create_text_block): Don't actually add propagation
6206         data if the line ends after we have added a glyph.
6207
6208 2002-04-22  Andy Piper  <andy@xemacs.org>
6209
6210         * extents.c (extent_fragment_update): check for glyphs we have
6211         previously displayed.
6212         * extents.c (print_extent_1): warning removal.
6213         * extents.h: change prototype.
6214         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6215         widths correctly for wide glyphs.
6216         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6217         * redisplay.c (prop_type): add PROP_GLYPH.
6218         * redisplay.c (struct prop_block): add glyph type
6219         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6220         to the propagation data.
6221         * redisplay.c (create_text_block): if there is a glyph in the
6222         propagation data use it to salt extent_fragment_update.
6223         * redisplay.c (create_string_text_block): ditto.
6224
6225 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6226
6227         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6228         * redisplay-output.c (compare_runes): Compare them.
6229         * redisplay.c: Update copyright date.
6230         * redisplay.c (pos_data): Add need_baseline_computation field.
6231         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6232         need_baseline_computation; zero yoffset. Set max_pixmap_height
6233         for all pixmaps, not just automatically positioned ones.
6234         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6235         * redisplay.c (calculate_baseline): New, compute textual baseline.
6236         * redisplay.c (add_glyph_rune): Call them.
6237         * redisplay.c (create_text_block): Likewise.
6238         * redisplay.c (create_overlay_glyph_block): Likewise.
6239         * redisplay.c (add_margin_runes): Likewise.
6240         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6241
6242         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6243         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6244         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6245         * redisplay-msw.c (mswindows_output_string): Likewise.
6246         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6247         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6248         * redisplay-x.c (x_output_display_block): Likewise.
6249
6250 2002-03-28  Ben Wing  <ben@xemacs.org>
6251
6252         * redisplay.c: Fixed bug in redisplay
6253         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6254         and down of the lines, since they're bigger than the line
6255         size. (It was seen most obviously when there's a horizontal scroll
6256         bar, e.g. do C-h a glyph or something like that.) The problem was
6257         that the glyph-contrib-p setting on glyphs was ignored even if it
6258         was set properly, which it wasn't until now.
6259
6260 2002-04-24  Andy Piper  <andy@xemacs.org>
6261
6262         * lisp.h (Dynarr_end): Fix definition.
6263
6264 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6265
6266         * redisplay.c (mark_redisplay): Remove call to
6267         update_frame_window_mirror.
6268
6269 2001-11-15  Andy Piper  <andy@xemacs.org>
6270
6271         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6272         cygwin (again).
6273
6274 2002-02-13  Andy Piper  <andy@xemacs.org>
6275
6276         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6277         we did in fact enqueue the XM_MAPFRAME event.
6278
6279 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6280
6281         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6282         to fix problem switching between virtual desktops under virtuawin
6283         virtual window manager.
6284
6285 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6286
6287         * event-msw.c: Typo fix.
6288         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6289         magic XM_MAPFRAME event has been sent.
6290
6291 2001-11-23  Andy Piper  <andy@xemacs.org>
6292
6293         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6294
6295 2001-11-21  Andy Piper  <andy@xemacs.org>
6296
6297         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6298         mouse events outside the frame.
6299
6300 2002-03-20  Andy Piper  <andy@xemacs.org>
6301
6302         * menubar-msw.c (mswindows_popup_menu): warning removal.
6303         * dialog-msw.c (dialog_popped_down): ditto.
6304
6305 2001-12-11  Andy Piper  <andy@xemacs.org>
6306
6307         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6308         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6309         popup_up_p.
6310         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6311         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6312         * menubar-msw.c (mswindows_popup_menu): ditto.
6313
6314 2001-10-29  Andy Piper  <andy@xemacs.org>
6315
6316         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6317         cancels.
6318
6319 2002-01-03  Andy Piper  <andy@xemacs.org>
6320
6321         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6322         letters.
6323         (xrealpath): ditto.
6324
6325 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6326
6327         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6328         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6329         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6330         Detect and handle case where machine is set up for metric units
6331
6332 2002-04-02  Andy Piper  <andy@xemacs.org>
6333
6334         * dired-msw.c (mswindows_get_files): 
6335         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6336         completely handled by XEmacs. Suggested by Thomas Vogler
6337         <mail@thomas-vogler.de>.
6338
6339 2001-11-14  Andy Piper  <andy@xemacs.org>
6340
6341         * nt.c (REG_ROOT): change registry key to XEmacs.
6342
6343 2002-04-27  Andy Piper  <andy@xemacs.org>
6344
6345         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6346
6347 2002-04-26  Andy Piper  <andy@xemacs.org>
6348
6349         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6350         behavior.
6351
6352 2002-03-14  Mike Alexander  <mta@arbortext.com>
6353
6354         * event-msw.c (mswindows_unwait_process): New, remove process from
6355         wait list
6356         * process-nt.c (nt_finalize_process_data): Call
6357         mswindows_unwait_process
6358         * console-msw.h: Declare mswindows_unwait_process
6359
6360 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6361
6362         * editfns.c (Fdecode_time):
6363         (Fformat_time_string):
6364         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6365         (make_time): Warning elimination (change arg name).
6366
6367 2001-11-24  Andy Piper  <andy@xemacs.org>
6368
6369         * window.c (Fsplit_window): Doc return type.
6370
6371 2002-04-01  Andy Piper  <andy@xemacs.org>
6372
6373         * emacs.c (Fkill_emacs): Only output message box in interactive
6374         mode.
6375
6376 2002-04-26  Andy Piper  <andy@xemacs.org>
6377  
6378         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6379         cygwin.
6380
6381 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6382
6383         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6384         bit platform.
6385
6386 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6387
6388         * XEmacs 21.4.8 "Honest Recruiter" is released.
6389
6390 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6391
6392         Supersedes 2002-04-17 patch.
6393
6394         * process.h (PROCESS_LIVE_P): Use the process status as
6395         evidence of health, not the state of the input stream.
6396         (PROCESS_READABLE_P): Say if the process is readable
6397         from. (It may be dead nonetheless.)
6398         (CHECK_READABLE_PROCESS): Test for that condition.
6399
6400         * process.c (create_process): Use PROCESS_READABLE_P.
6401         (read_process_output, set_process_filter): Likewise.
6402
6403         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6404         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6405
6406         This code is #if 0'd, this is not the time to add new functions:
6407
6408         * process.c (Fprocess_readable_p): Report readability status.
6409         * process.c (Qprocess_readable_p): New, associated symbol...
6410         * process.c (syms_of_process): ... initialize it.
6411
6412 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6413
6414         * XEmacs 21.4.7 "Economic Science" is released.
6415
6416 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6417
6418         * process.h (PROCESS_LIVE_P): Use the process status as
6419         evidence of health, not the state of the input stream.
6420
6421 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6422
6423         * sysdep.c (sys_siglist): change "signum" to "signal"
6424
6425 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6426
6427         * s/darwin.h: New file.
6428         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6429         
6430 2002-04-23  Andreas Jaeger  <aj@suse.de>
6431
6432         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6433         which use lib64 for 64-bit libs.
6434         (START_FILES): Likewise.
6435
6436 2002-02-11  Mike Sperber  <mike@xemacs.org>
6437
6438         * device-x.c: 
6439         (x_IO_error_handler):
6440         (x_init_device): Temporarily keep device in static variable
6441         `device_being_initialized' so we can recover gracefully from
6442         internal XOpenDevice failure.  (XOpenDevice is documented to
6443         return NULL on failure, but sometimes calls the IO error handler
6444         instead.)
6445
6446 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6447
6448         * dired.c (Ffile_name_all_completions): Change documentation --
6449         remove reference to completion-ignored-extensions.
6450         * dired.c (vars_of_dired): Change documentation for
6451         completion-ignored-extensions -- remove reference to
6452         file-name-all-completions.
6453
6454 2002-03-06  Jerry James  <james@xemacs.org>
6455
6456         * emodules.c (emodules_load): Fix multiple loading of same module.
6457
6458 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6459         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6460         RTLD_LAZY to avoid incorrect symbol binding when using nested
6461         shared libraries on Solaris.
6462
6463 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6464
6465         * fileio.c (Ffind_file_name_handler): Improve docstring.
6466
6467 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6468
6469         * fns.c (Fmapconcat): Improve docstring.
6470
6471 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6472
6473         * device-gtk.c: Add prototype for
6474         emacs_gtk_selection_clear_event_handle.
6475         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6476         selection.  Setup signal handler for "selection_clear_event"
6477         (emacs_gtk_selection_clear_event_handle).
6478
6479         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6480         other applications owning the clipboard (based on
6481         x_handle_selection_clear).
6482
6483 2001-12-23  William M. Perry  <wmperry@gnu.org>
6484
6485         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6486         
6487 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6488
6489         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6490
6491 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6492
6493         * XEmacs 21.4.6 "Common Lisp" is released.
6494
6495 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6496
6497         * search.c (Freplace_match): Add missing sub-expression functionality.
6498
6499         * buffer.c (decode_buffer): Add a check for pointer type to
6500         decode_buffer, before gcc's CSE optimization reorders a
6501         dereference in front of the allow_string test.
6502
6503 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6504
6505         * window.c (window_loop): Fix bug that sometimes prevented
6506         window_loop() from iterating across multiple devices.  Also, at
6507         Ben's request, changed infloop-detecting code to abort() instead
6508         of silently terminating window_loop().
6509
6510 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6511
6512         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6513         * editfns.c (make_time): New function.
6514         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6515         * lisp.h (make_time): Prototype and comment it.
6516         * dired.c (wasteful_word_to_lisp): Deprecate.
6517         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6518
6519 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6520
6521         * fileio.c (auto_save_1): Use current coding system, not
6522         escape-quoted.
6523
6524 2001-11-13  Ben Wing  <ben@xemacs.org>
6525
6526         * window.c:
6527         * window.c (window_truncation_on):
6528         * window.c (syms_of_window):
6529         truncate-partial-width-windows should respect the buffer being
6530         displayed, like other redisplay vars.
6531
6532 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6533
6534         * event-stream.c (Fread_key_sequence): save current buffer.
6535
6536 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6537
6538         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6539
6540 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6541
6542         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6543
6544 2001-10-26  Mike Alexander  <mta@arbortext.com>
6545
6546         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6547
6548 2001-10-25  Andy Piper  <andy@xemacs.org>
6549
6550         * ChangeLog:
6551         * dialog-msw.c (handle_directory_proc): new function.
6552          (handle_directory_dialog_box): new fucntion.
6553          (handle_file_dialog_box): use new directory dialog support.
6554          (mswindows_make_dialog_box_internal): ditto.
6555         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6556         handling.
6557         (mswindows_find_frame): make global.
6558         * fileio.c (Fexpand_file_name): build fix.
6559         * general-slots.h: add Qdirectory.
6560         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6561         handling.
6562         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6563         cygwin not leaving win32 paths unchanged.
6564         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6565         cygwin runtime to do path conversion.
6566         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6567         (syms_of_win32): add new function.
6568         * window.c (window_loop): build fix.
6569
6570 2001-10-15  Andy Piper  <andy@xemacs.org>
6571
6572         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6573
6574 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6575
6576         * XEmacs 21.4.5 "Civil Service" is released.
6577
6578 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6579
6580         * glyphs-x.c: Force buffer-tab highlight update when moving the
6581         buffer, avoiding an ugly black border, used for keyboard focus
6582         indication, on a widget that can never have keyboard focus, the
6583         buffer tab.
6584
6585 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6586
6587         * process-unix.c (unix_open_multicast_group): Remove too much
6588         conversion between host and network byte order.
6589
6590 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6591
6592         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6593         before replacing them.
6594
6595         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6596         operation.
6597
6598         * src/window.c (undedicate_windows): Use it.
6599         * src/window.h: Add prototype.
6600
6601 2001-09-17  Ben Wing  <ben@xemacs.org>
6602
6603         * fileio.c (normalize_filename):
6604         * fileio.c (Fexpand_file_name):
6605         Fix various C++ compile errors in Andy's recent code.
6606         
6607         * callint.c (Fcall_interactively):
6608         * editfns.c (Ftemp_directory):
6609         * editfns.c (Fuser_full_name):
6610         * emacs.c (argmatch):
6611         * lread.c (locate_file_map_suffixes):
6612         * redisplay-x.c (x_ring_bell):
6613         Fix sign-compare warnings.
6614         
6615 2001-09-08  Andy Piper  <andy@xemacs.org>
6616
6617         * fileio.c (normalize_filename): copied from nt.c
6618         * (Ffile_name_directory): enable win32 paths under cygwin.
6619         * (Ffile_name_nondirectory): ditto.
6620         * (directory_file_name): ditto.
6621         * (Fexpand_file_name): ditto.
6622         * (Ffile_truename): ditto.
6623         * (Fsubstitute_in_file_name): ditto.
6624         * (Ffile_name_absolute_p): ditto.
6625         * (Ffile_readable_p): ditto.
6626
6627 2001-09-08  Andy Piper  <andy@xemacs.org>
6628
6629         * device-msw.c (mswindows_finish_init_device): remove dde
6630         initialization.
6631         * device-msw.c (mswindows_init_dde): factor out from
6632         mswindows_finish_init_device()
6633         * device-msw.c (init_mswindows_very_early): new function
6634         initialize but don't enable dde.
6635         * emacs.c (main_1): call init_mswindows_very_early.
6636         * event-msw.c:
6637         * event-msw.c (mswindows_dde_callback): only execute when we are
6638         ready.
6639         * symsinit.h: declare init_mswindows_very_early.
6640
6641 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6642
6643         [sjt: This has been in 21.5 for months with no complaints.]
6644
6645         * console.h (struct console_methods): Added flags member.
6646         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6647         (CONMETH_IMPL_FLAG):
6648         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6649         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6650
6651         * device.c (window_system_pixelated_geometry): Use the above macros.
6652
6653         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6654         implememntation flag.
6655         * device.h (DEVICE_DISPLAY_P): Use it.
6656
6657         * frame.c (delete_frame_internal): Use the above macro.
6658
6659         * redisplay.c (redisplay_device): Use it.
6660         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6661         (redisplay_frame): Ditto.
6662
6663         * device-msw.c (mswindows_device_implementation_flags): Removed.
6664         (msprinter_device_implementation_flags): Removed.
6665         (console_type_create_device_mswindows): Removed references to
6666         implementation_flags methods, set implementation flags here.
6667         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6668
6669         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6670         (console_type_create_device_gtk): Removed method declaration.
6671         Added commented out statement which semantically matches the
6672         commented out statement in the above removed method.
6673
6674 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6675
6676         The attached patch fixes a few warnings. 
6677
6678         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6679         * src/frame-gtk.c: guard against GNOME calls in GTK only
6680         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6681         * src/select-gtk.c: prototype lisp_to_time
6682
6683 2001-06-08  Ben Wing  <ben@xemacs.org>
6684
6685         ------ gc-in-window-procedure fixes ------
6686         
6687         * alloc.c:
6688         * alloc.c (struct post_gc_action):
6689         * alloc.c (register_post_gc_action):
6690         * alloc.c (run_post_gc_actions):
6691         * alloc.c (garbage_collect_1):
6692         Create "post-gc actions", to avoid those dreaded "GC during window
6693         procedure" problems.
6694
6695         * event-msw.c:
6696         Abort, clean and simple, when GC in window procedure.  We want
6697         to flush these puppies out.
6698
6699         * glyphs-msw.c:
6700         * glyphs-msw.c (finalize_destroy_window):
6701         * glyphs-msw.c (mswindows_finalize_image_instance):
6702         Use a post-gc action when destroying subwindows.
6703
6704         * lisp.h:
6705         Declare register_post_gc_action().
6706
6707         * scrollbar-msw.c:
6708         * scrollbar-msw.c (unshow_that_mofo):
6709         Use a post-gc action when unshowing scrollbar windows, if in gc.
6710
6711         * redisplay.c (mark_redisplay):
6712         Add comment about the utter evilness of what's going down here.
6713
6714         ------ cygwin setitimer fixes ------
6715         
6716         * Makefile.in.in (sheap_objs):
6717         * Makefile.in.in (profile_objs):
6718         * Makefile.in.in (objs):
6719         Compile profile.c only when HAVE_SETITIMER.
6720         
6721         * nt.c (mswindows_sigset):
6722         * nt.c (mswindows_sighold):
6723         * nt.c (mswindows_sigrelse):
6724         * nt.c (mswindows_sigpause):
6725         * nt.c (mswindows_raise):
6726         * nt.c (close_file_data):
6727         Style fixes.
6728         
6729         * nt.c:
6730         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6731         
6732         * profile.c:
6733         * profile.c (Fstart_profiling):
6734         * profile.c (Fstop_profiling):
6735         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6736         instead of just plain setitimer().
6737         
6738         * signal.c:
6739         * signal.c (set_one_shot_timer):
6740         * signal.c (alarm):
6741         Define qxe_setitimer() as an encapsulation around setitimer() --
6742         call setitimer() directly unless Cygwin or MS Win, in which case
6743         we use our simulated version in win32.c.
6744         
6745         * systime.h:
6746         * systime.h (struct itimerval):
6747         * systime.h (ITIMER_REAL):
6748         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6749         comment about "qxe" and the policy regarding encapsulation.
6750
6751         * win32.c:
6752         * win32.c (setitimer_helper_proc):
6753         * win32.c (setitimer_helper_period):
6754         * win32.c (setitimer_helper):
6755         * win32.c (mswindows_setitimer):
6756         Move setitimer() emulation here, so Cygwin can use it.
6757         Rename a couple of functions and variables to be longer and more
6758         descriptive.  In setitimer_helper_proc(), send the signal
6759         using either mswindows_raise() or (on Cygwin) kill().  If for
6760         some reason we are still getting lockups, we'll change the kill()
6761         to directly invoke the signal handlers.
6762
6763         ------ windows shell fixes ------
6764         
6765         * callproc.c:
6766         * ntproc.c:
6767         Comments about how these two files must die.
6768
6769         * callproc.c (init_callproc):
6770         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6771         not just COMSPEC. (more correct and closer to FSF.) Don't
6772         force a value for SHELL into the environment. (Comments added
6773         to explain why not.)
6774         
6775         * nt.c (init_user_info):
6776         Don't shove a fabricated SHELL into the environment.  See above.
6777
6778 2001-06-01  Ben Wing  <ben@xemacs.org>
6779
6780         * Makefile.in.in (ldflags):
6781         eliminate that pesky "defaulting to 00401000" warning.
6782         * nt.h:
6783         eliminate warnings.
6784
6785 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6786
6787         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6788         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6789
6790 2001-04-24  Jerry James <james@xemacs.org>
6791
6792         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6793         correct order.
6794
6795 2001-06-01  Ben Wing  <ben@xemacs.org>
6796
6797         * event-msw.c (debug_mswin_messages):
6798         conditionalize the messages that were causing compile errors.
6799         (if only macros could generate #ifdef statements ...)
6800
6801 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6802
6803         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6804
6805 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6806
6807         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6808
6809 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6810
6811         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6812         * process-unix.c (unix_canonicalize_host_name):
6813         sysdep.c (init_system_name):
6814         Use it to conditionally support IPv6 canonicalization.
6815
6816 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6817
6818         * event-msw.c:
6819         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6820
6821 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6822
6823         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6824         attempt is made to scroll when no scroll bar is available.
6825
6826 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6827
6828         * input-method-motif.c (XIM_delete_frame): New callback.
6829         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6830         got deleted from 21.4.3.)
6831
6832 2001-06-01  Ben Wing  <ben@xemacs.org>
6833
6834         * nt.c (mswindows_utime):
6835         * nt.c (close_file_data):
6836         fix off-by-one-indirection error.
6837
6838 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6839
6840         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6841         because set_file_times() now takes Lisp_Object path, instead of
6842         char*.
6843         * nt.c: Include buffer.h.
6844         * nt.c (convert_from_time_t): New.
6845         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6846         not set mtime correctly.
6847         * nt.h: Declare mswindows_utime().
6848         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6849         path, instead of char*.
6850         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6851
6852 2001-05-30  Ben Wing  <ben@xemacs.org>
6853
6854         For 21.4:
6855
6856         (Stephen, just take all event-msw.c patches.  This includes
6857         the "iconify" fix below.)
6858
6859         * event-msw.c:
6860         * event-msw.c (mswindows_dequeue_dispatch_event):
6861         * event-msw.c (assert):
6862         * event-msw.c (emacs_mswindows_quit_p):
6863         * event-msw.c (debug_mswin_messages):
6864         * event-msw.c (debug_output_mswin_message):
6865         * event-msw.c (vars_of_event_mswindows):
6866         Fix yet more problems with C-g handling.
6867         Implement debug-mswindows-events.
6868         
6869 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6870
6871         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6872         
6873 2001-05-23  Ben Wing  <ben@xemacs.org>
6874
6875         * event-msw.c (winsock_writer):
6876         * event-msw.c (winsock_closer):
6877         prior kludgy code was clobbering the buffer, thinking it was
6878         "unused" space to store an unneeded return value; instead, use
6879         the variable we've already got staring us in the face.
6880
6881 2001-05-17  Andy Piper  <andy@xemacs.org>
6882
6883         * sysfile.h: don't assume that file attributes are boolean
6884
6885 2001-05-23  Ben Wing  <ben@xemacs.org>
6886
6887         * device-msw.c (msprinter_init_device):
6888         signal an error rather than crash with an unavailable network
6889         printer (from Mike Alexander).
6890         
6891         * event-msw.c:
6892         * event-msw.c (struct winsock_stream):
6893         * event-msw.c (winsock_writer):
6894         * event-msw.c (winsock_closer):
6895         * event-msw.c (make_winsock_stream_1):
6896         cleanup headers.  fix (hopefully) an error with data corruption
6897         when sending to a network connection.
6898
6899         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6900         to handle the ~user prefix by (a) always assuming we're referencing
6901         ourselves and not even verifying the user -- hence any file with
6902         a tilde as its first char is invalid! (b) if there wasn't a slash
6903         following the filename, the pointer was set *past* the end of
6904         file and we started reading from uninitialized memory.  Now we
6905         simply treat these as files, always.
6906
6907         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6908         
6909 2001-05-19  Ben Wing  <ben@xemacs.org>
6910
6911         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6912
6913         * process-nt.c:
6914         * process-nt.c (vars_of_process_nt):
6915         remove unused mswindows-quote-process-args.  rec for 21.4.
6916         
6917 2001-05-12  Ben Wing  <ben@xemacs.org>
6918
6919         * event-msw.c (mswindows_dde_callback):
6920         * event-msw.c (mswindows_wnd_proc):
6921         eliminate cygwin warnings.
6922
6923 2001-05-06  Ben Wing  <ben@xemacs.org>
6924
6925         * console-msw.h:
6926         * device-msw.c:
6927         * device-msw.c (print_dialog_worker):
6928         * device-msw.c (mswindows_handle_print_dialog_box):
6929         * device-msw.c (syms_of_device_mswindows):
6930         * dialog-msw.c (mswindows_make_dialog_box_internal):
6931         * general-slots.h:
6932         implement printing the selection when it's selected.
6933
6934 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6935
6936         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6937
6938 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6939
6940         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6941         EMACS_INT is signed.
6942
6943 2001-04-15  Michael Lausch  <mla@1012surf.net>
6944
6945         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6946         gtk_widget_request_size() to give scrollbar >0 width for
6947         GTK >1.2.8.
6948
6949 2001-05-30  William M. Perry  <wmperry@gnu.org>
6950
6951         * event-gtk.c: Check for buttons as modifier keys.
6952
6953 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6954
6955         * s\mingw32.h:
6956         Properly find MinGW's <process.h> inside Cygwin's restructured
6957         include directories.  Don't try to include <cygwin/version.h>
6958         since we are dropping support for MinGW in versions of Cygwin
6959         earlier than b21.
6960         * nt.c:
6961         Drop support for MinGW in versions of Cygwin before b21.
6962         * sysdep.c:
6963         Properly find MinGW's <process.h> inside Cygwin's restructured
6964         include directories.
6965         * syswindows.h:
6966         Drop support for MinGW in versions of Cygwin before b21.
6967         * unexcw.c:
6968         Even though a.out.h is no longer detected by configure, allow
6969         MinGW to use it until we figure out how to do the job with Win32.
6970
6971 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6972
6973         * syntax.c (find_start_of_comment):
6974         Fix `unbalanced parentheses' bug when dealing with mixed comment
6975         styles in c++/java/etc. mode
6976
6977 2001-05-29  Mike Alexander  <mta@arbortext.com>
6978
6979         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6980         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6981
6982 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6983
6984         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6985
6986 2001-03-31  Mike Sperber <mike@xemacs.org>
6987
6988         * search.c (Freplace_match): Support FSF-style specification of
6989         match subexpression when applied to a buffer.
6990
6991 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6992
6993         * event-stream.c (is_scrollbar_event): add missing semicolon
6994
6995 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6996
6997         * Makefile.in.in: Use TAR macro instead of hardcoding
6998           tar.  Allows use of GNU tar instead of system tar
6999
7000 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7001
7002         * event-stream.c (is_scrollbar_event): add missing semicolon
7003
7004 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7005
7006         * XEmacs 21.4.3 "Academic Rigor" is released.
7007
7008 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7011
7012 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7013
7014         * buffer.c (Vcase_fold_search): Remove obsolete
7015           comment about non ASCII case-fold-search.  This
7016           bug has been fixed by case-table changes.
7017
7018 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7019
7020         * event-msw.c: Restore include of events-mod.h.
7021
7022 2001-04-22   zhaoway  <zw@debian.org>
7023
7024         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7025         !HAVE_SCROLLBARS.
7026
7027 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7028
7029         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7030
7031 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7032
7033         * mule-charset.c (Fmake_charset): Add missing else.
7034
7035 2001-04-23  Ben Wing  <ben@xemacs.org>
7036
7037         * event-msw.c (FAKE_MOD_QUIT):
7038         * event-msw.c (mswindows_dequeue_dispatch_event):
7039         * event-msw.c (mswindows_wnd_proc):
7040         * event-msw.c (emacs_mswindows_quit_p):
7041         Get critical quit working.
7042
7043 2001-05-05  Ben Wing  <ben@xemacs.org>
7044
7045         * console-msw.h:
7046         * device-msw.c:
7047         * device-msw.c (mswindows_get_default_margin):
7048         * frame-msw.c (mswindows_size_frame_internal):
7049         * frame-msw.c (msprinter_init_frame_1):
7050         * frame-msw.c (vars_of_frame_mswindows):
7051         Change top/bottom margin defaults to 0.5 inches.
7052
7053 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7054
7055         Fix link error with gcc 3.0 on Linux.
7056         * terminfo.c (UP): Remove.
7057         * terminfo.c (BC): Remove.
7058         * terminfo.c (PC): Remove.
7059         They weren't used, and in any case, these symbols should be
7060         defined in the *library*.
7061
7062 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7063
7064         * s/aix4.h: Fix crash with xlc -O3.
7065         Improve comment explaining how -O3 works.
7066
7067 2001-04-15  Ben Wing  <ben@xemacs.org>
7068
7069         * event-stream.c:
7070         * event-stream.c (Fnext_event):
7071         * event-stream.c (is_scrollbar_event):
7072         * event-stream.c (execute_command_event):
7073         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7074         crash' problem.  His fix introduces other problems.  We filter
7075         out scrollbar events specifically, making them somewhat invisible
7076         to command-building, and not appearing in `this-command-keys'.
7077         More work is still needed (see comments in event-stream.c), but
7078         this fixes all the major problems.
7079
7080 2001-04-20  Ben Wing  <ben@xemacs.org>
7081
7082         * .cvsignore: Added stuff for Windows.
7083
7084 2001-04-28  Ben Wing  <ben@xemacs.org>
7085
7086         * buffer.c (Ferase_buffer):
7087         * editfns.c (buffer_insert1):
7088         * editfns.c (Finsert_before_markers):
7089         * editfns.c (Finsert_string):
7090         * editfns.c (Finsert_char):
7091         * editfns.c (Fdelete_region):
7092         * editfns.c (Fwiden):
7093         * editfns.c (Fnarrow_to_region):
7094         remove bogus lines setting zmacs_region_stays to 0.
7095         
7096 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7097
7098         * process-unix.c (unix_open_network_stream): If connect() fails
7099         invalidate file descriptor after closing it.
7100
7101 2001-03-08  Mike Alexander  <mta@arbortext.com>
7102
7103         * event-msw.c (mswindows_need_event_in_modal_loop):
7104         Don't dispatch a message if we didn't get one.
7105         (mswindows_need_event):
7106         Terminate the correct process when one exits instead of the first
7107         one on Vprocess_list and look for process termination when in
7108         mswindows_protect_modal_loop.
7109
7110 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7111
7112         * XEmacs 21.4.1 "Copyleft" is released.
7113
7114 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7115
7116         * input-method-motif.c (XIM_delete_frame): New callback.
7117         (XIM_init_frame): Register it.
7118
7119 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7120
7121         * XEmacs 21.4.0 "Solid Vapor" is released.
7122
7123 2001-04-15  Ben Wing  <ben@xemacs.org>
7124
7125         * cmdloop.c (call_command_loop):
7126         Fix braino in bit-rotting code.
7127         
7128 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7129
7130         * extents.c (Fset_extent_endpoints): Force creation of extent info
7131         in buffer_or_string.
7132
7133         * extents.c (process_extents_for_insertion_mapper): Correctly
7134         check for open-open zero-length extents.
7135
7136 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7137
7138         * lisp.h: New typedefs Memory_count, Element_count.
7139         * regex.c:
7140         * regex.h:
7141         Sign-compare warning elimination: several unsigned -> signed.
7142         Based on work by Ben Wing <ben@xemacs.org>.
7143
7144 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7145
7146         * XEmacs 21.2.47 "Zephir" is released.
7147
7148 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7149
7150         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7151
7152 2001-04-03  Mike Sperber <mike@xemacs.org>
7153
7154         * search.c: Revert previous patch due because of release.
7155
7156 2001-03-30  Ben Wing  <ben@xemacs.org>
7157
7158         * s\cygwin32.h:
7159         Add missing killpg prototype.
7160
7161         * elhash.c:
7162         Add a comment about fixing problems when a new entry is added
7163         while mapping.
7164
7165         * frame-msw.c (mswindows_init_frame_1):
7166         Fix compile warnings.
7167
7168         * menubar.c (vars_of_menubar):
7169         Provide `menu-accelerator-support' to indicate that we properly
7170         support %_ in menu specifications, so that package code can
7171         conditionalize on this (and remove %_ from menu specifications
7172         on older versions).
7173
7174         * event-msw.c:
7175         * scrollbar-msw.c:
7176         * scrollbar-msw.c (can_scroll):
7177         * scrollbar-msw.h:
7178         Fix handling of mouse wheel under Windows to follow standards --
7179         now scrolls window under pointer, not selected window.
7180
7181 2001-03-31  Mike Sperber <mike@xemacs.org>
7182
7183         * search.c (Freplace_match): Support FSF-style specification of
7184         match subexpression when applied to a buffer.
7185
7186 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7187
7188         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7189         function to modify KEYMAP, so map over a copy of the hash table.
7190
7191 2001-03-21  Martin Buchholz <martin@xemacs.org>
7192
7193         * XEmacs 21.2.46 "Urania" is released.
7194
7195 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7196
7197         * realpath.c (xrealpath): Make file-truename work with symlinks to
7198         /cygdrive paths on cygwin. Always lowercase drive-letters on
7199         native windows.
7200         (cygwin_readlink): Don't try to find canonical filename unless
7201         file exists.
7202
7203 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7204
7205         * ChangeLog: Log GTK merge.
7206
7207         * dumper.c:
7208         * select-x.c:
7209         * specifier.c:
7210         * symeval.h:
7211         Revert gratuitous whitespace changes from GTK merge.
7212
7213         * emacs.c: Document end of complex #ifdef @ l. 1495.
7214
7215
7216 2001-03-12  Andy Piper  <andy@xemacs.org>
7217
7218         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7219         have to do likewise.
7220
7221 2001-03-12  Andy Piper  <andy@xemacs.org>
7222
7223         * sysdep.c: we only support mingw now.
7224
7225 2001-03-09  Andy Piper  <andy@xemacs.org>
7226
7227         * unexcw.c (copy_executable_and_dump_data_section): making approx
7228         overrun a warning only.
7229
7230 2001-03-10  William M. Perry  <wmperry@aventail.com>
7231
7232         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7233         satisfy Stephen's identical-after-cpp plea.
7234
7235 2001-03-02  Ben Wing  <ben@xemacs.org>
7236
7237         * cmds.c:
7238         * cmds.c (Fforward_char):
7239         * syntax.c:
7240         * window.c:
7241
7242         Augment documentation of the most common motion commands to make
7243         note of the shifted-motion support.
7244         
7245 2001-03-02  Ben Wing  <ben@xemacs.org>
7246
7247         * nt.c (mswindows_fstat):
7248         * nt.c (mswindows_stat):
7249         * search.c (boyer_moore):
7250         Fix compile warnings under Windows.
7251         
7252         * sysdep.c (sys_readdir):
7253         Fix buggy filename-conversion code under Mule.
7254
7255 2001-03-09  William M. Perry  <wmperry@aventail.com>
7256
7257         * Makefile.in.in:
7258         * config.h.in:
7259         * console.c:
7260         * console.h:
7261         * device.c:
7262         * device.h:
7263         * dragdrop.c:
7264         * emacs.c:
7265         * event-stream.c:
7266         * events.c:
7267         * events.h:
7268         * faces.c:
7269         * frame.h:
7270         * general-slots.h:
7271         * glyphs.c:
7272         * gutter.c:
7273         * inline.c:
7274         * lisp.h:
7275         * lrecord.h:
7276         * make-src-depend:
7277         * redisplay-output.c:
7278         * redisplay.c:
7279         * symsinit.h:
7280         * sysfile.h:
7281         * toolbar.c:
7282         * window.c:
7283         The Great GTK Merge.
7284
7285         * ChangeLog.GTK:
7286         * console-gtk.c:
7287         * console-gtk.h:
7288         * device-gtk.c:
7289         * emacs-marshals.c:
7290         * emacs-widget-accessors.c:
7291         * event-gtk.c:
7292         * frame-gtk.c:
7293         * gccache-gtk.c:
7294         * gccache-gtk.h:
7295         * glade.c:
7296         * glyphs-gtk.c:
7297         * glyphs-gtk.h:
7298         * gtk-glue.c:
7299         * gtk-xemacs.c:
7300         * gtk-xemacs.h:
7301         * gui-gtk.c:
7302         * gui-gtk.h:
7303         * menubar-gtk.c:
7304         * native-gtk-toolbar.c:
7305         * objects-gtk.c:
7306         * objects-gtk.h:
7307         * redisplay-gtk.c:
7308         * scrollbar-gtk.c:
7309         * scrollbar-gtk.h:
7310         * select-gtk.c:
7311         * toolbar-gtk.c:
7312         * ui-byhand.c:
7313         * ui-gtk.c:
7314         * ui-gtk.h:
7315         The Great GTK Merge: new files.
7316
7317 2001-02-26  Ben Wing  <ben@xemacs.org>
7318
7319         Reapplied Lstream change.
7320
7321 2001-02-26  Ben Wing  <ben@xemacs.org>
7322
7323         Undid the last change, since it is more controversial than I
7324         thought.  It should be back in at some point soon.
7325         
7326 2001-02-25  Ben Wing  <ben@xemacs.org>
7327
7328         * buffer.c:
7329         * callproc.c (Fold_call_process_internal):
7330         * event-msw.c (ntpipe_slurp_reader):
7331         * event-msw.c (ntpipe_shove_writer):
7332         * event-msw.c (winsock_reader):
7333         * event-msw.c (winsock_writer):
7334         * file-coding.c:
7335         * file-coding.c (detect_eol_type):
7336         * file-coding.c (detect_coding_type):
7337         * file-coding.c (determine_real_coding_system):
7338         * file-coding.c (Fdetect_coding_region):
7339         * file-coding.c (decoding_reader):
7340         * file-coding.c (decoding_writer):
7341         * file-coding.c (mule_decode):
7342         * file-coding.c (Fdecode_coding_region):
7343         * file-coding.c (encoding_reader):
7344         * file-coding.c (encoding_writer):
7345         * file-coding.c (mule_encode):
7346         * file-coding.c (Fencode_coding_region):
7347         * file-coding.c (detect_coding_sjis):
7348         * file-coding.c (decode_coding_sjis):
7349         * file-coding.c (encode_coding_sjis):
7350         * file-coding.c (detect_coding_big5):
7351         * file-coding.c (decode_coding_big5):
7352         * file-coding.c (encode_coding_big5):
7353         * file-coding.c (detect_coding_ucs4):
7354         * file-coding.c (decode_coding_ucs4):
7355         * file-coding.c (encode_coding_ucs4):
7356         * file-coding.c (detect_coding_utf8):
7357         * file-coding.c (decode_coding_utf8):
7358         * file-coding.c (encode_coding_utf8):
7359         * file-coding.c (detect_coding_iso2022):
7360         * file-coding.c (decode_coding_iso2022):
7361         * file-coding.c (encode_coding_iso2022):
7362         * file-coding.c (decode_coding_no_conversion):
7363         * file-coding.c (encode_coding_no_conversion):
7364         * glyphs-x.c (write_lisp_string_to_temp_file):
7365         * gpmevent.c (tty_get_foreign_selection):
7366         * lisp.h:
7367         * lstream.c:
7368         * lstream.c (Lstream_flush_out):
7369         * lstream.c (Lstream_adding):
7370         * lstream.c (Lstream_write_1):
7371         * lstream.c (Lstream_write):
7372         * lstream.c (Lstream_raw_read):
7373         * lstream.c (Lstream_read_more):
7374         * lstream.c (Lstream_read):
7375         * lstream.c (Lstream_unread):
7376         * lstream.c (Lstream_fputc):
7377         * lstream.c (stdio_reader):
7378         * lstream.c (stdio_writer):
7379         * lstream.c (filedesc_reader):
7380         * lstream.c (filedesc_writer):
7381         * lstream.c (lisp_string_reader):
7382         * lstream.c (struct fixed_buffer_stream):
7383         * lstream.c (make_fixed_buffer_input_stream):
7384         * lstream.c (make_fixed_buffer_output_stream):
7385         * lstream.c (fixed_buffer_reader):
7386         * lstream.c (fixed_buffer_writer):
7387         * lstream.c (struct resizing_buffer_stream):
7388         * lstream.c (resizing_buffer_writer):
7389         * lstream.c (dynarr_writer):
7390         * lstream.c (lisp_buffer_reader):
7391         * lstream.c (lisp_buffer_writer):
7392         * lstream.h:
7393         * lstream.h (lstream_implementation):
7394         * lstream.h (struct lstream):
7395         * md5.c (Fmd5):
7396         * process-nt.c (nt_send_process):
7397         * process-unix.c (unix_send_process):
7398         
7399         Correct Lstream lossage due to mixing of signed and unsigned
7400         quantities.  All Lstream uses of size_t and ssize_t are now a
7401         single signed data type Lstream_data_count.  This fixes problems
7402         under Windows with sending large quantities of data to a process,
7403         and may well fix other subtle bugs.
7404
7405 2001-02-23  Martin Buchholz <martin@xemacs.org>
7406
7407         * XEmacs 21.2.45 "Thelxepeia" is released.
7408
7409 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7410
7411         * lisp-union.h (XSETINT): 
7412         (XSETCHAR):
7413         (XSETOBJ): 
7414         Reverse previous change of 2001-02-06.
7415
7416 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7417
7418         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7419         buffers.
7420         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7421         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7422         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7423         * regex.c (POS_AS_IN_BUFFER): removed
7424         * regex.c (re_search_2):
7425         * regex.c (re_match_2):
7426         Don't use an offset of 1 when calculating buffer positions, since
7427         `BI_BUF_BEGV' does it already.
7428
7429 2001-02-18  Wim Dumon  <wim@easics.be>
7430
7431         * insdel.c (prepare_to_modify_buffer): Also check for
7432         supersession when clash-detection is enabled. 
7433
7434 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7435
7436         * regex.c (re_match_2_internal):
7437         Convert temp characters from 'const unsigned char' to 're_char'.
7438         Fix crashing bug with extended characters under mule.
7439         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7440         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7441         font-lock, pdump, and new syntax-table code.
7442         * syntax.c (find_start_of_comment):
7443         (find_end_of_comment):
7444         (forward-comment):
7445         Fix crashing bugs involving moving beyond end of buffer.
7446         * syntax.c (find_start_of_comment):
7447         Fixed logic to allow proper detection of cases where the same
7448         character is used to end both a two-char comment start and a
7449         two-char comment end sequence. Fixes `(forward-comment -1)'.
7450         * syntax.c (find_start_of_comment):
7451         Return position just past last comment-end character for all cases
7452         (previously was only done for two-char comment-end sequences).
7453         * syntax.c (forward-comment):
7454         Take value returned from `find_end_of_comment', rather than
7455         incrementing it.
7456         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7457         Properly deal with BUFFERP (syntax_cache.object)
7458
7459 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7460
7461         * alloc.c (Fgarbage_collect): 
7462         * alloc.c (make_bit_vector_from_byte_vector):
7463         -Wsign-compare-correctness.
7464
7465 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7466
7467         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7468         (XSETCHAR): Likewise.
7469         (XSETOBJ): Likewise.
7470
7471 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7472
7473         * mule-canna.c (canna-func-delete_previous): 
7474         Rename to canna-func-delete-previous.
7475
7476 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7477
7478         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7479
7480 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7481
7482         * font-lock.c (find_context): Fix C++ compile errors introduced by
7483         recent patch
7484
7485 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7486
7487         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7488         pragma, but earlier ones barf on the same pragma.
7489
7490 2001-02-06  Mike Sperber <mike@xemacs.org>
7491
7492         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7493         `configure-mule-lisp-directory'.
7494
7495 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7496
7497         Make sure dump-id.c is compiled in the same way as other .c's.
7498         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7499         * dump-id.h: Remove.
7500         * emacs.c: Move dump-id.h into dumper.h.
7501         * dumper.h: Move dump-id.h into dumper.h.
7502         * Makefile.in.in:
7503         Use standard .c.o rule for building dump-id.o.
7504         Remove preprocessor flags from link command.
7505         Add dump-id.o to ${otherobjs} if PDUMP.
7506
7507 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7508
7509         Port FSF 20.7 syntax table improvements.
7510         * syntax.c.
7511         * syntax.h.
7512
7513         Fixups for new syntax table stuff.
7514         * dired.c: Include syntax.c.
7515         (Fdirectory_files): Initialize regex_match_object and
7516         regex_emacs_buffer.
7517         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7518         and Fget_char_property.
7519
7520         Use ported FSF 20.7 syntax table improvements.
7521         * font-lock.c.
7522         * regex.c.
7523         * search.c.
7524         
7525 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7526
7527         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7528         Unixware's enum boolean from sys/types.h.
7529
7530 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7531
7532         Fix support for building with latest Purify.
7533         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7534         (PURIFY_FLAGS): Likewise.
7535
7536 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7537
7538         * fileio.c (lisp_string_set_file_times): New.
7539         * fileio.c (Fcopy_file): Use it.
7540         Fixes bug:
7541         (copy-file filename non-ascii-filename t t)
7542         ==> No such file or directory, non-ascii-filename
7543
7544 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7545
7546         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7547         USHRT_MAX seems clearer than ~0 anyways.
7548
7549 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7550
7551         dumper improvements.  Inspired by Olivier.
7552         * dumper.c (pdump_max_align): New.
7553         * dumper.c (pdump_add_entry): Use pdump_max_align.
7554         * dumper.c (pdump_get_entry_list): Likewise.
7555         * dumper.c (pdump_scan_by_alignment): Likewise.
7556         Don't iterate through unnecessary alignments.
7557         * dumper.c (pdump_file_get): No need to align result of malloc().
7558         * dumper.c (pdump_mallocadr): Remove.  
7559         The result of malloc() is guaranteed to be maximally aligned.
7560         * dumper.c: s/elmt/elt/g;
7561         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7562         * dumper.c (pdump_alert_undump_object): Likewise.
7563         * dumper.c (pdump_align_table): 
7564         Don't support alignments > 64.
7565         Store ALIGNOF's, not shift counts, in table.
7566
7567 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7568
7569         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7570         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7571         * systime.h: Use HAVE_UTIME.
7572         * sysdep.c (struct utimbuf): Remove.
7573         * sysdep.c (set_file_times): Prefer utime() to utimes().
7574         * config.h.in (HAVE_UTIME): New.
7575         * config.h.in (HAVE_UTIME_H): Remove.
7576         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7577
7578 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7579
7580         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7581
7582 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7583
7584         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7585
7586 2001-02-08  Martin Buchholz <martin@xemacs.org>
7587
7588         * XEmacs 21.2.44 "Thalia" is released.
7589
7590 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7591
7592         Fixes crashes in kill-emacs on some systems.
7593         * process-unix.c (unix_kill_child_process):
7594         It's OK for kill() to fail with ESRCH.
7595
7596 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7597
7598         Contortions to make .gdbinit tricks work on most systems.
7599         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7600         * alloc.c (dbg_valmask): Make non-const.
7601         * alloc.c (dbg_typemask): Make non-const.
7602         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7603         * alloc.c (dbg_valbits): Make non-const.
7604         * alloc.c (dbg_gctypebits): Make non-const.
7605         * .gdbinit (decode_object): Make it work with AIX cc.
7606
7607 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7608
7609         * elhash.c (make_general_lisp_hash_table):
7610         Use simpler and more efficient calloc to clear entries.
7611
7612 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7613
7614         * window.c (window_scroll): Work around an AIX C compiler bug.
7615         Fixes 'scroll-up' does nothing problem with xlC.
7616
7617 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7618
7619         * .gdbinit: Remove obsolete comment.
7620
7621 2001-01-31  Mike Alexander  <mta@arbortext.com>
7622
7623         * select.c (Fown_selection_internal): Set owned_p for device
7624         method correctly.
7625
7626 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7627
7628         Port to g++ 2.97.
7629         "not" cannot be used as a macro name as it is an operator in C++
7630         * config.h.in: Stop #defining `not'.
7631         * chartab.c (check_category_char): not ==> not_p
7632         * chartab.h: Likewise.
7633         * regex.c (re_match_2_internal): Likewise.
7634
7635 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7636
7637         * lisp-disunion.h: Fix up comments.
7638
7639 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7640
7641         * keymap.c (define_key_check_and_coerce_keysym):
7642         (syms_of_keymap):
7643         Support mouse-6 and mouse-7 bindings in the obvious way.
7644
7645 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7646
7647         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7648
7649 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7650
7651         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7652         Previous patch missed DEFVAR_INT_MAGIC.
7653         Make sure future DEFVAR_foo use correct types.
7654         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7655         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7656         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7657         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7658         * (DEFVAR_INT): Likewise.
7659         * redisplay.c (vertical_clip): Should be of type Fixnum.
7660         * redisplay.c (horizontal_clip): Likewise.
7661         * lisp.h (dump_add_opaque_int): New.
7662         (dump_add_opaque_fixnum): New.
7663
7664 2001-01-29  Andy Piper  <andy@xemacs.org>
7665
7666         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7667         since they can be eval'ed
7668
7669 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7670
7671         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7672         Oops, XEmacs redefines `class'.  Use `typename' instead.
7673
7674 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7675
7676         * dumper.c: Fix C++ compile errors.
7677
7678 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7679
7680         * tparam.c: Use correct prototypes.
7681
7682 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7683
7684         * sysproc.h: #include util.h for NetBSD's openpty.
7685
7686 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7687
7688         More 64-bit correctness.
7689         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7690         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7691         Fix up comments.
7692         This finally finishes the 64-bit SGI port.
7693         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7694         * symbols.c: Fix up comments and type casts.
7695         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7696         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7697         * symeval.h (Fixnum): New type.
7698         * symeval.h (symbol_value_type): Fix up comment.
7699
7700         * commands.h:
7701         * nt.c:
7702         * emacs.c:
7703         * data.c:
7704         * redisplay.c:
7705         * abbrev.c:
7706         * dired-msw.c:
7707         * event-Xt.c:
7708         * eldap.c:
7709         * window.c:
7710         * sound.c:
7711         * event-stream.c:
7712         * eval.c:
7713         * buffer.c:
7714         * mule-canna.c: A million DEFVAR_INTs here...
7715         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7716         * extents.c:
7717         * cmdloop.c:
7718         * lisp.h:
7719         * select-x.c:
7720         * console-x.h:
7721         * event-msw.c:
7722         * mule-wnnfns.c:
7723         * hpplay.c:
7724         * ralloc.c:
7725         * alloc.c:
7726         * keymap.c:
7727         * profile.c:
7728         s/int/Fixnum/g in DEFVAR_INT declarations.
7729
7730 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7731
7732         Port pdump to SGI alignment-sensitive environment.
7733         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7734         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7735         properly aligned.
7736         Define and use aligned reading and writing macros.
7737         Use buffered stdio instead of posix i/o for faster dumping.
7738         Eliminate kludgy 256 byte space for header.
7739         Read and write from dump file using structs for alignment safety.
7740         * dumper.c (pdump_align_stream): New.
7741         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7742         * dumper.c (PDUMP_READ_ALIGNED): New.
7743         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7744         * dumper.c (pdump_static_Lisp_Object): New struct.
7745         * dumper.c (pdump_static_pointer): New struct.
7746         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7747         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7748         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7749         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7750
7751         * dumper.c (pdump_backtrace):
7752         * dumper.c (pdump_get_indirect_count):
7753         * dumper.c (pdump_register_object):
7754         * dumper.c (pdump_register_struct):
7755         * dumper.c (pdump_reloc_one):
7756         * dumper.c (pdump_scan_by_alignment):
7757         * dumper.c (pdump_dump_from_root_struct_ptrs):
7758         * dumper.c (pdump_dump_opaques):
7759         * dumper.c (pdump_dump_rtables):
7760         * dumper.c (pdump_dump_from_root_objects):
7761         * dumper.c (pdump):
7762         * dumper.c (pdump_load_finish):
7763         Use aligned reading and writing.
7764
7765         * dumper.c (pdump_free): Make static.
7766         * dumper.c (pdump_hFile): Likewise.
7767         * dumper.c (pdump_hMap): Likewise.
7768
7769 2001-01-26  Martin Buchholz <martin@xemacs.org>
7770
7771         * XEmacs 21.2.43 "Terspichore" is released.
7772
7773 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7774
7775         Type fiddling for window_config.saved_windows_count
7776         * window.c (struct window_config): 
7777         Make saved_windows_count member unsigned.
7778         * window.c (sizeof_window_config_for_n_windows): 
7779         Make parameter unsigned.
7780         * window.c (mark_window_config):
7781         * window.c (window_config_equal):
7782         * window.c (free_window_configuration):
7783         * window.c (Fset_window_configuration):
7784         * window.c (count_windows):
7785         * window.c (Fcurrent_window_configuration):
7786         * window.c (reinit_vars_of_window):
7787         Update all callers and users.
7788
7789 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7790
7791         Alignment correctness for flexible arrays.
7792         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7793         Make alignment-correct. Add interesting comments.
7794         * alloc.c (size_vector):
7795         * alloc.c (make_vector_internal):
7796         * alloc.c (make_bit_vector_internal):
7797         * alloc.c (sweep_bit_vectors_1):
7798         * fns.c (size_bit_vector):
7799         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7800         * window.c (sizeof_window_config_for_n_windows): 
7801         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7802
7803 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7804
7805         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7806
7807 2001-01-23  Andy Piper  <andy@xemacs.org>
7808
7809         * select.c (Fown_selection_internal): pass owned_p
7810
7811         * select-msw.c (mswindows_own_selection): New Signature.
7812
7813         * console.h (struct console_methods): add owned_p to
7814         _own_selection.
7815
7816         * select-x.c (x_own_selection): pass owned_p
7817         (hack_motif_clipboard_selection): use owned_p
7818         (vars_of_select_x): new variable -
7819         x_selection_strict_motif_ownership.
7820
7821 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7822
7823         * specifier.h (specifier_data_offset): Remove pointless parens.
7824         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7825
7826 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7827
7828         Make Lisp_Object sizeof methods be alignment-correct.
7829         pdump must restore objects to the same alignment as the C compiler
7830         assumes.  It really matters on SGIs.
7831         * lstream.c (aligned_sizeof_lstream): New.
7832         (sizeof_lstream): Use aligned_sizeof_lstream.
7833         (Lstream_new): Likewise.
7834         * opaque.c (aligned_sizeof_opaque): New.
7835         (sizeof_opaque): Use aligned_sizeof_opaque.
7836         (make_opaque): Likewise.
7837         * specifier.c (aligned_sizeof_specifier): New.
7838         (sizeof_specifier): Use aligned_sizeof_specifier.
7839         (make_specifier_internal): Likewise.
7840
7841 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7842
7843         * lstream.h (struct lstream): Use max_align_t for trailing data.
7844         * specifier.h (struct Lisp_Specifier): Likewise.
7845
7846 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7847
7848         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7849         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7850         (CCL_SUSPEND): Likewise.
7851         (CCL_INVALID_CMD): Likewise.
7852         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7853         (ccl_driver): Likewise.
7854         (CCL_WRITE_CHAR): Macro hygiene.
7855         (CCL_WRITE_STRING): Macro hygiene.
7856
7857 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7858
7859         Port "portable" dumper to SunOS 4 and HP-UX.
7860         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7861         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7862         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7863
7864 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7865
7866         * lisp.h (ALIGNOF): A better definition for C++.
7867
7868 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7869
7870         Macro hygiene.
7871         Fix printf warnings: int format, long int arg.
7872         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7873         (PUSH_FAILURE_POINT): Use correct printf formats.
7874         (POP_FAILURE_POINT): Use correct printf formats.  
7875         Use do {...} while (0)
7876
7877 2001-01-20  Martin Buchholz <martin@xemacs.org>
7878
7879         * XEmacs 21.2.42 "Poseidon" is released.
7880
7881 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7882
7883         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7884
7885 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7886
7887         De-kludgify FIXED_TYPE free list frobbing.
7888         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7889         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7890         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7891         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7892         * alloc.c (LRECORD_FREE_P): New.
7893         * alloc.c (MARK_LRECORD_AS_FREE): New.
7894         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7895         * alloc.c (STRUCT_FREE_P): Deleted.
7896         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7897         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7898         * alloc.c (STRING_CHARS_FREE_P): New.
7899         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7900         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7901         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7902         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7903         * alloc.c (resize_string): Use new definitions.
7904         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7905         * alloc.c (verify_string_chars_integrity): Use new definitions.
7906         * alloc.c (compact_string_chars): Use new definitions.
7907         * alloc.c: Update monster comments.
7908         * lrecord.h (lrecord_type): Add some new lrecord types for
7909         alloc.c's use.
7910
7911 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7912
7913         Improve alignment hackery.
7914         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7915         (max_align_t): Moved from opaque.h - general purpose.
7916         (ALIGN_PTR): Use size_t, not long.
7917         * opaque.h (max_align_t): Move to lisp.h.
7918
7919 2001-01-18  Norbert Koch  <nk@LF.net>
7920
7921         * gui.h: Fix and add prototypes to fix build problems.
7922
7923 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7924
7925         temacs is going away, so `dump-temacs' is now a bad name.
7926         * .dbxrc (dump-temacs): Rename to `dmp'.
7927         * .gdbinit (dump-temacs): Rename to `dmp'.
7928
7929 2001-01-17  Andy Piper  <andy@xemacs.org>
7930
7931         * glyphs.c (print_image_instance): comment to make martin happy.
7932
7933         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7934         change.
7935
7936         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7937         activation.
7938         (mswindows_tab_control_redisplay): warning suppression.
7939
7940         * glyphs-widget.c (widget_update): re-write to cope with updated
7941         items.
7942         (widget_instantiate): use new gui_item functions.
7943         (tab_control_update): deleted.
7944         (progress_gauge_update): deleted.
7945         (image_instantiator_progress_guage): take out update reference.
7946         (image_instantiator_tree_view): ditto.
7947         (image_instantiator_tab_control): ditto.
7948
7949         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7950         Right the new way.
7951         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7952         return whether anything was changed.
7953         (update_gui_item_keywords): as it sounds.
7954
7955         * gui.h: declare widget_gui_parse_item_keywords.
7956
7957         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7958         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7959
7960 2001-01-17  Martin Buchholz <martin@xemacs.org>
7961
7962         * XEmacs 21.2.41 "Polyhymnia" is released.
7963
7964 2001-01-16  Didier Verna  <didier@xemacs.org>
7965
7966         * glyphs.c (image_instantiate): don't use fallbacks when
7967         instantiating a face's background pixmap by inheritance.
7968
7969 2001-01-14  Mike Sperber <mike@xemacs.org>
7970
7971         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7972         Conditionalize accordingly.
7973
7974 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7975
7976         * dumper.c (pdump_file_get): Fix a compiler warning.
7977
7978 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7979
7980         Make Purify happy when pdumping.
7981         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7982         iniitalizing all bits of new lisp object memory.
7983         * symbols.c (Fmake_local_variable): Likewise.
7984         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7985         * symbols.c (Fdefvaralias): Likewise.
7986         * mule-charset.c (vars_of_mule_charset): Likewise.
7987
7988 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7989         Add the `-nd' flag when running pre-dump operations under the debugger.
7990         * .dbxrc (run-temacs): Add `-nd'.
7991         * .dbxrc (update-elc): Likewise.
7992         * .dbxrc (dump-temacs): Likewise.
7993         * .gdbinit (run-temacs): Likewise.
7994         * .gdbinit (check-temacs): Likewise.
7995         * .gdbinit (update-elc): Likewise.
7996         * .gdbinit (dump-temacs): Likewise.
7997
7998 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7999
8000         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8001         export OBJECT_MODE=64
8002         configure --pdump --use-union-type=no
8003         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8004         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8005
8006         * miscplay.c (sndcnv8U_2mono):
8007         Avoid two uses of `++' in the same expression.
8008         Suppresses a GCC warning.
8009
8010 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8011
8012         Make sure future compilers don't miscompile alloc.c.
8013         * alloc.c:
8014         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8015         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8016
8017 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8018
8019         * dumper.c: A little post-pdump-rename comment fixup.
8020
8021 2001-01-09  Jerry James  <james@eecs.ku.edu>
8022
8023         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8024
8025 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8026
8027         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8028         script:
8029         #!/bin/sh
8030         replace_symbol () {
8031           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8032         }
8033
8034         replace_symbol pdump_wire_lists pdump_weak_object_chains
8035         replace_symbol pdump_wire_list dump_add_weak_object_chain
8036
8037         replace_symbol pdump_wires pdump_root_objects
8038         replace_symbol pdump_wire dump_add_root_object
8039
8040         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8041         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8042
8043         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8044         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8045         replace_symbol dumpstructinfo pdump_root_struct_ptr
8046         replace_symbol dumpstruct dump_add_root_struct_ptr
8047
8048         replace_symbol dumpopaque dump_add_opaque
8049         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8050         replace_symbol dumpopaqueinfos pdump_opaques
8051         replace_symbol dumpopaqueinfo pdump_opaque
8052
8053         replace_symbol nb_structdump nb_root_struct_ptrs
8054         replace_symbol nb_opaquedump nb_opaques
8055
8056         replace_symbol align_table pdump_align_table
8057         replace_symbol dump_header pdump_header
8058
8059         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8060         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8061
8062
8063 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8064
8065         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8066         optimizing bytecount_to_charcount().
8067
8068 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8069
8070         * config.h.in:
8071         (HAVE_DLFCN_H): Removed.
8072         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8073
8074 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8075
8076         Portable dumper maintainability improvements.
8077         * alloc.c (staticpro):
8078         * alloc.c (staticpro_nodump):
8079         * alloc.c (garbage_collect_1):
8080         * alloc.c (reinit_alloc_once_early):
8081         * alloc.c (init_alloc_once_early):
8082         * alloc.c: Move dumper functions to alloc.c.
8083         * dumper.c (pdump_backtrace):
8084         * dumper.c (pdump_dump_structs):
8085         * dumper.c (pdump_dump_opaques):
8086         * dumper.c (pdump_dump_rtables):
8087         * dumper.c (pdump_dump_wired):
8088         * dumper.c (pdump):
8089         * dumper.c (pdump_load_check):
8090         * dumper.c (pdump_load_finish):
8091         * dumper.c (pdump_file_unmap):
8092         * dumper.c (pdump_file_get):
8093         * dumper.c (pdump_resource_free):
8094         * dumper.c (pdump_resource_get):
8095         * dumper.c (pdump_file_free):
8096         * dumper.c (pdump_file_try):
8097         * dumper.c (pdump_load):
8098         Remove fixed size limits on staticpro(), staticpro_nodump(),
8099         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8100         Remove custom code for dumping lrecord_implementations_table - use
8101         dumpopaque instead.
8102         Remove (most of the) custom code for dumping staticpros - dump it
8103         like any other dynarr.
8104
8105         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8106         * dumper.c: Moved functions from alloc.c.
8107         * alloc.c (dumpstruct): Moved to dumper.c.
8108         * alloc.c (dumpopaque): Likewise.
8109         * alloc.c (pdump_wire): Likewise.
8110         * alloc.c (pdump_wire_list): Likewise.
8111
8112         * lisp.h (Dynarr_sizeof): New.
8113         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8114         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8115         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8116
8117         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8118         * lisp.h (dumpopaque): ditto.
8119         * lisp.h (pdump_wire): ditto.
8120         * lisp.h (pdump_wire_list): ditto.
8121
8122 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8123
8124         * make-src-depend (PrintPatternDeps):
8125         Use `sort' to make output independent of perl version.
8126
8127 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8128
8129         Port to Netbsd 1.5.
8130         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8131         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8132
8133 2001-01-03  Didier Verna  <didier@xemacs.org>
8134
8135         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8136         that `focus_frame' is alive before thinking of calling
8137         `redisplay_redraw_cursor' on it.
8138
8139 2001-01-08  Martin Buchholz <martin@xemacs.org>
8140
8141         * XEmacs 21.2.40 is released.
8142
8143 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8144
8145         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8146
8147 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8148
8149         * alloc.c (dbg_valmask): Make const.
8150         * alloc.c (dbg_typemask): Make const.
8151         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8152         * alloc.c (dbg_valbits): Make const.
8153         * alloc.c (dbg_gctypebits): Make const.
8154
8155 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8156
8157         * redisplay-x.c (x_bevel_area):
8158         redisplay.h (struct rune):
8159         Typo fixes in comments.
8160
8161 2001-01-05  Andy Piper  <andy@xemacs.org>
8162
8163         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8164         adjustment.
8165
8166         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8167
8168 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8169
8170         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8171
8172         * mule-ccl.c (stack_idx_of_map_multiple):
8173         Non const global data must not be initialized!
8174         Found by MIYASHITA Hisashi.
8175
8176 2001-01-02  Andy Piper  <andy@xemacs.org>
8177
8178         * frame.c (change_frame_size): make sure frame size is always
8179         marked as changed.
8180
8181         * glyphs.c (image_instance_layout): minor code reuse.
8182
8183         * window.c (Fcurrent_window_configuration): revert previous
8184         change.
8185
8186 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8187
8188         * glyphs.h:
8189         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8190
8191 2000-12-31  Andy Piper  <andy@xemacs.org>
8192
8193         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8194         when widget gets unmapped.
8195
8196         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8197         function. Make sure widgets losing focus don't just drop it.
8198         (handle_focus_event_1): record the widget with focus.
8199
8200 2000-12-31  Andy Piper  <andy@xemacs.org>
8201
8202         * window.c (allocate_window): use
8203         make_image_instance_cache_hash_table.
8204         (make_dummy_parent): ditto.
8205         (Fset_window_configuration): ditto.
8206
8207         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8208
8209         * glyphs.c (process_image_string_instantiator): use
8210         INSTANTIATOR_TYPE.
8211         (get_image_instantiator_governing_domain): ditto.
8212         (normalize_image_instantiator): ditto.
8213         (instantiate_image_instantiator): ditto.
8214         (make_image_instance_1): ditto.
8215         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8216         (instantiator_eq_equal): new function for use with instance hash
8217         tables.
8218         (instantiator_eq_hash): ditto.
8219         (make_image_instance_cache_hash_table): create a suitable hash
8220         table for storing image instances.
8221
8222         * elhash.h (hash_table_weakness): new internal weakness type
8223         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8224         declare new functions.
8225
8226         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8227         another weakness type for glyphs.
8228         (make_standard_lisp_hash_table): new function split out from
8229         make_general_lisp_hash_table.
8230         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8231         (hash_table_instantiate): ditto.
8232         (Fmake_hash_table): ditto.
8233
8234 2000-12-31  Martin Buchholz <martin@xemacs.org>
8235
8236         * XEmacs 21.2.39 is released.
8237
8238 2000-12-29  Andy Piper  <andy@xemacs.org>
8239
8240         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8241
8242         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8243         the frame has changed so that we pick up geometry changes such as
8244         menubar visibility.
8245
8246 2000-12-28  Andy Piper  <andy@xemacs.org>
8247
8248         * lastfile.c (my_ebss): make a char array so we can pad the
8249         bss. Fixes cygwin unexec.
8250
8251         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8252
8253 2000-12-26  Andy Piper  <andy@xemacs.org>
8254
8255         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8256         comments and try and be more precise about a non-/SIGIO world.
8257         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8258         SIGIO.
8259
8260         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8261         we don't normalize to zero width or height.
8262
8263 2000-12-24  Andy Piper  <andy@xemacs.org>
8264
8265         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8266
8267 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8268
8269         * s/sco5.h: SCO 5 has pty support.
8270
8271 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8272
8273         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8274         input-method-xlib.c contains whole contents of input-method-xfs.c,
8275         so we can use input-method-xlib.c's code for USE_XFONTSET
8276         using #ifdefs.
8277         * input-method-xfs.c: removed.
8278
8279 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8280
8281         * file-coding.h (enum coding_category_type): reorder enumerators to
8282         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8283         (now one greater than largest real coding_category_type enumerator).
8284         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8285         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8286         Fcoding_category_list, Fset_coding_priority_list,
8287         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8288         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8289
8290 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8291
8292         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8293         * redisplay-output.c (redisplay_output_window): Clear top of window
8294         when face is changed.
8295         * redisplay-x.c (x_redraw_exposed_window): Call
8296         redisplay_clear_top_of_window.
8297         * redisplay.h: Publish redisplay_clear_top_of_window.
8298
8299 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8300
8301         * buffer.c (Fkill_buffer): Map over all devices.
8302         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8303         (list_windows): New function.
8304         (list_all_windows): Ditto.
8305         (Freplace_buffer_in_windows): Use them.
8306
8307 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8308
8309         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8310         (Fopen_database): Use `db_create' instead of `db_open'.
8311         (syms_of_database): Initialize Qqueue.
8312
8313 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8314
8315         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8316         buffer_local_face_property.
8317         * buffer.h (struct buffer): New member buffer_local_face_property.
8318         * window.c (Fset_window_buffer):  Mark window's face as changed
8319         when buffer has buffer local face.
8320         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8321         * objects.c (color_after_change): Set buffer_local_face_property
8322         when locale of face specifier is buffer.
8323         * objects.c (font_after_change): Ditto.
8324         * objects.c (face_boolean_after_change): Ditto.
8325         * glyphs.c (image_after_change): Ditto.
8326
8327 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8328
8329         * nt.c (mswindows_fstat): Report file permissions, volume serial
8330         number, etc. Code adapted from FSF Emacs 20.7.
8331
8332 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8333
8334         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8335         of stat when we don't have symbolic links, to make sure
8336         mswindows_stat is called on mswindows.
8337
8338 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8339
8340         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8341
8342 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8343
8344         * doprnt.c (emacs_doprnt_1): More printing fixes.
8345         Make printing of numbers compatible with libc and FSF Emacs.
8346         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8347         Use the system printf to do most of the hard work of formatting,
8348         instead of doprnt_1().
8349         Calculate memory to allocate for format string.
8350         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8351         (doprnt_1): Cleaner code and documentation.
8352
8353 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8354
8355         * Makefile.in.in: Use the loop variable to install headers.
8356
8357 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8358
8359         * window.c (Fsplit_window): Don't invalidate face cache.
8360
8361 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8362
8363         * minibuf.c (Fall_completions): Undo the previous change
8364         which removed checking elements start with space.
8365
8366 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8367
8368         * mule-canna.c: Didier suppression.
8369
8370 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8371
8372         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8373         (warning suppression).  Add English comment translations.
8374
8375 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8376
8377         * unexelfsgi.c (unexec): Better test for mmap failure.
8378
8379 2000-12-05  Martin Buchholz <martin@xemacs.org>
8380
8381         * XEmacs 21.2.38 is released.
8382
8383 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8384
8385         * redisplay.c (bar-cursor): Make a user variable.
8386
8387         * symsinit.h: Add init_postgresql_from_environment.
8388
8389 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8390
8391         * regex.c: Convert to clean C.
8392
8393 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8394
8395         * realpath.c:
8396         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8397         initialization.
8398         (sys_readlink): renamed to system_readlink to avoid conflict with
8399         the other sys_readlink.
8400
8401 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8402
8403         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8404
8405 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8406
8407         * postgresql.c (init_postgresql_from_environment): new function.
8408         (vars_of_postgresql): Move code initializing Lisp variables out and
8409         into init_postgresql_from_environment.
8410         emacs.c (main_1): Call init_postgresql_from_environment if and only
8411         if running a dumped XEmacs.
8412
8413 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8414
8415         * buffer.c: Make find-file-compare-truenames default to true on
8416         windows.
8417
8418         * realpath.c (win32_abs_start):
8419         (cygwin_readlink):
8420         (win32_readlink): New functions.
8421         (xrealpath): Return really real filenames on windows.
8422
8423         * fileio.c (Ffile_truename): Make file-truename work on windows.
8424
8425 2000-11-29  Didier Verna  <didier@xemacs.org>
8426
8427         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8428         * faces.c (update_face_cachel_data): use it.
8429         * faces.c (add_face_cachel): use it. Complete background pixmap
8430         frobbing in face cache if `update_face_cachel_data' has not done so.
8431
8432 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8433
8434         * search.c (string_match_1): Don't set last_thing_searched
8435         when search failed.
8436
8437 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8438
8439         * buffer.c: Include casetab.h
8440         (common_init_complex_vars_of_buffer): Use new case-table object.
8441         * buffer.h: Include casetab.h
8442         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8443         (DOWNCASE_TABLE_OF): Ditto.
8444         * bufslots.h: Remove char-tables and add case-table.
8445         * casetab.c: Include casetab.h
8446         (CASE_TABLE_P): Removed.
8447         (mark_case_table): New function.
8448         (allocate_case_table): New function.
8449         (Fcase_table_p): Use new case-table.
8450         (case_table_char): New function.
8451         (Fget_case_table): Ditto.
8452         (Fput_case_table): Ditto.
8453         (Fput_case_table_pair): Ditto.
8454         (Fcopy_case_table): Ditto.
8455         (Fcurrent_case_table): Return case-table.
8456         (Fstandard_case_table): Return case-table.
8457         (Fset_case_table): Fix doc-string.
8458         (set_case_table): Use case-table
8459         (syms_of_casetab): DEFSUBR new functions.
8460         (complex_vars_of_casetab): Set up standard case-table.
8461         * casetab.h: New file.
8462         * editfns.c: Include casetab.h
8463         (Fcompare_buffer_substrings): Use case-table.
8464         * inline.c: Include casetab.h
8465         * lisp.h: Remove bogus extern.
8466         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8467         * search.c: Include casetab.h
8468         (TRANSLATE_ASCII): Removed.
8469         (TRANSLATE): Unconditionally translate character.
8470         (looking_at_1): Use case-table.
8471         (string_match_1): Ditto.
8472         (fast_string_match): Ditto.
8473         (search_command): Ditto.
8474         (search_buffer): Separate boyer_moore.  Check whether
8475         boyer_moore is possible.
8476         (simple_search): New function.
8477         (boyer_moore): Separated from search_buffer. Translate char.
8478
8479 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8480
8481         * regex.c (RE_TR_ASCII): Removed.
8482         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8483         (PATFETCH): Call PATFETCH_RAW.
8484         (PATFETCH_RAW): Fetch Emchar.
8485         (PATUNFETCH): Decrement charptr.
8486         (GET_BUFFER_SPACE): Rename b to buf_end.
8487         (BUF_PUSH): Ditto.
8488         (BUF_PUSH_2): Ditto.
8489         (BUF_PUSH_3): Ditto.
8490         (EXTEND_BUFFER): Ditto.
8491         (SET_LIST_BIT): Ditto.
8492         (regex_compile): Ditto.  Translate non ASCII char.
8493         (compile_range): Ditto.
8494         (re_search_2): Ditto.
8495         (re_match_2_internal): Compare Emchar.
8496         (bcmp_translate): Ditto.
8497
8498 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8499
8500         * lisp.h (basic char/int typedefs):  comment improvement.
8501
8502 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8503
8504         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8505         unstomp inhibit_site_lisp.  Improve comments.
8506
8507 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8508
8509         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8510
8511 2000-11-28  Andy Piper  <andy@xemacs.org>
8512
8513         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8514         clipped display for windows in the gutter also.
8515         (redisplay_display_boxes_in_window_p): change semantics of return
8516         codes to be more intuitive.
8517
8518         * gutter.h: declare display_boxes_in_gutter_p.
8519
8520         * gutter.c (display_boxes_in_gutter_p): new function for
8521         redisplay.
8522
8523 2000-11-22  Andy Piper  <andy@xemacs.org>
8524
8525         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8526         autodetect domain.
8527
8528 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8529
8530         * callproc.c (Fold_call_process_internal):
8531         * gpm.c (Freceive_gpm_event):
8532         (tty_get_foreign_selection): Might be just warning supression.
8533         * fileio.c (Fwrite_region_internal):
8534         (Fset_visited_file_modtime):
8535         * keymap.c (event_matches_key_specifier_p):
8536         Initialize GCPROed variable.
8537
8538         * menubar-x.c (command_builder_find_menu_accelerator):
8539         Initialize before use.
8540
8541 2000-11-23  Andy Piper  <andy@xemacs.org>
8542
8543         * unexcw.c (unexec): make the resulting executable executable.
8544
8545 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8546
8547         * doc.c (get_doc_string):
8548         Use size_t, not int, for result of XSTRING_LENGTH.
8549
8550         * cmds.c (Fdelete_char):
8551         * cmds.c (Fpoint_at_eol):
8552         * cmds.c (Fself_insert_command):
8553         Use EMACS_INT, not int, for result of XINT.
8554         Someday, someone will want to insert more than 2**31 identical characters.
8555
8556         * cmds.c (Fdelete_char):
8557         * cmds.c (Fdelete_backward_char):
8558         * syntax.c (Fforward_word):
8559         * syntax.c (Fforward_comment):
8560         Make COUNT argument optional, for consistency with forward-char et al.
8561
8562 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8563
8564         * lisp.h:
8565         * print.c (long_to_string):
8566         Return a useful value: the pointer at end of data written.
8567
8568         * doprnt.c:
8569         Use `static const char * const' for constant strings.
8570         (union printf_arg): Delete `i', `ui' members.
8571         (get_doprnt_args):
8572         (emacs_doprnt_1):
8573         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8574         Do all printf-ing via the `l' specifier.
8575         Use EMACS_INT instead of int.
8576         Optimize.
8577
8578 2000-11-20  Didier Verna  <didier@xemacs.org>
8579
8580         * faces.c (update_face_cachel_data): don't frob the background
8581         pixmap when the window is being created. The face is needed but
8582         does not exist yet.
8583
8584 2000-11-20  Andy Piper  <andy@xemacs.org>
8585
8586         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8587         messing with a debug environment.
8588
8589 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8590
8591         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8592
8593 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8594
8595         * casetab.c (Fcase_table_p): Fix compile error and crash.
8596
8597 2000-11-18  Philip Aston  <philipa@mail.com>
8598
8599         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8600
8601 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8602
8603         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8604         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8605
8606 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8607
8608         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8609         * unexelf.c: Use HAVE_ELF_H.
8610         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8611         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8612         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8613         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8614         for testing.
8615         So this is an unexelfsgi.c from a different line of development.
8616
8617 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8618
8619         * regex.c (RE_TR_ASCII): New function.
8620         (RE_TRANSLATE): Call it.
8621
8622 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8623
8624         * buffer.h (TRT_TABLE_OF): Remove assert.
8625         (IN_TRT_TABLE_DOMAIN): Removed.
8626
8627 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8628
8629         * free-hook.c (log_gcpro):
8630         (show_gcprohist): Add support for GCPRO5.
8631
8632 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8633
8634         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8635
8636 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8637
8638         * symeval.h: Declare flush_all_buffer_local_cache.
8639
8640         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8641         (flush_buffer_local_cache): Added.
8642         (flush_all_buffer_local_cache): Added.
8643
8644         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8645
8646         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8647         (pdump_dump_data): Ditto.
8648         (pdump_reloc_one): Ditto.
8649         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8650         before dumping.
8651
8652
8653 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8654
8655         * buffer.c: Remove if 0'ed entry.
8656         * buffer.h: Rewrite TRT to use char-table.
8657         * bufslots.h: Remove mirror tables.
8658         * casetab.c: Remove mirror tables.
8659         (CASE_TABLE_P): New macro.
8660         (Fcase_table_p): Element of a case table is string or char-table.
8661         (make_mirror_trt_table): Removed.
8662         (set_case_table): Setup char-table from strings for backward
8663         compatibility.
8664         * dired.c (Fdirectory_files):
8665         * dired-msw.c: (mswindows_get_files):
8666         * lisp.h: Change prototype of re_pattern_buffer.
8667         * regex.c: (RE_TRANSLATE): New macro.
8668         (TRANSLATE_P): Ditto.
8669         Change translate to type RE_TRANSLATE_TYPE.
8670         * regex.h: Define RE_TRANSLATE_TYPE
8671         * search.c (TRANSLATE): New macro.
8672         (TRANSLATE_ASCII): New macro.
8673         Translate table is changed to Lisp_Object.
8674         (signal_failure): Inhibit return.
8675
8676 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8677
8678         * device-msw.c:
8679         * eldap.c:
8680         * event-Xt.c:
8681         * event-stream.c:
8682         * print.c:
8683         Do UNGCPRO before return.
8684
8685 2000-11-14  Martin Buchholz <martin@xemacs.org>
8686
8687         * XEmacs 21.2.37 is released.
8688
8689 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8690
8691         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8692         Add comments about discarded return value.
8693
8694 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8695
8696         * callint.c:
8697         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8698
8699 2000-10-27  Andy Piper  <andy@xemacs.org>
8700
8701         * gutter.c (Fset_default_gutter_position): default left and right
8702         gutters to visible.
8703         (calculate_gutter_size): calculate resonable heuristic for left
8704         and right gutter sizes.
8705         (specifier_vars_of_gutter): change left and right gutter sizes to
8706         autodetect.
8707         (calculate_gutter_size_from_display_lines): new function.
8708         (output_gutter): check for resizing on left and right gutters.
8709         (clear_gutter): don't special case top and left gutters.
8710         (specifier_vars_of_gutter): use new signature for
8711         set_specifier_caching.
8712
8713         * glyphs-x.c (x_redisplay_widget): spelling fix.
8714         * glyphs.c (specifier_vars_of_glyphs):
8715         * menubar.c (specifier_vars_of_menubar):
8716         * redisplay.c (specifier_vars_of_redisplay):
8717         * toolbar.c (specifier_vars_of_toolbar):
8718         * window.c (specifier_vars_of_window):
8719         * scrollbar.c (specifier_vars_of_scrollbar):
8720         (complex_vars_of_scrollbar): use new signature for
8721         set_specifier_caching.
8722
8723         * specifier.c (set_specifier_caching): include recompute flag.
8724         (recompute_one_cached_specifier_in_window): always recompute if
8725         flag set.
8726         (recompute_one_cached_specifier_in_frame): ditto.
8727
8728         * specifier.h (struct specifier_caching): add recompute flag.
8729
8730 2000-10-24  Andy Piper  <andy@xemacs.org>
8731
8732         * unexcw.c (copy_executable_and_dump_data_section): add new
8733         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8734         5.0 happy.
8735
8736 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8737
8738         * console-x.h (x_device): New member modifier_release_time.
8739         * event-Xt.c (x_handle_sticky_modifiers):
8740         Bound interval modifier keys are sticky.
8741         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8742         * events.h: extern it.
8743
8744 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8745
8746         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8747
8748 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8749
8750         * event-stream.c (execute_command_event): Preserve current_events
8751         and the like when event is misc-user-event.
8752         Inhibit quit during the call to maybe_echo_keys.
8753
8754 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8755
8756         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8757         symlink when buffer is killed.
8758         (inhibit_clash_detection): New variable.
8759
8760 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8761
8762         * console.c (Fset_input_method): Trigger redisplay on tty.
8763
8764 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8765
8766         * process.c (Fprocess_status): Revert to previous behavior:
8767         (process-status "nosuchprocess") ==> nil
8768
8769 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8770
8771         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8772         Work around another GCC 2.95.2 optimizer bug.
8773
8774 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8775
8776         * process.c (Fget_process): Use LIST_LOOP_2.
8777         (kill_buffer_processes): Use LIST_LOOP_2.
8778
8779         * minibuf.c (Fall_completions):
8780         Delete old non-functional code for FSF fourth argument.
8781
8782         * frame.c (frame_matches_frame_spec):
8783         Renamed from `frame_matches_frametype'.  Update all callers.
8784         (device_matches_device_spec):
8785         Renamed from 'device_matches_console_spec'.  Update all callers.
8786
8787         * doc.c (Fsubstitute_command_keys):
8788         Remove buffer overflow crash.  Small code cleanups.
8789
8790         * casetab.c (check_case_table): Simpler code.
8791
8792         * window.c (Freplace_buffer_in_windows):
8793         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8794         (and similar implementation) as Fdelete_windows_on.
8795         Update all callers.
8796
8797         * alloc.c (Fmake_list):
8798         * alloc.c (make_vector):
8799         * alloc.c (Fmake_vector):
8800         * alloc.c (make_bit_vector):
8801         * alloc.c (Fmake_bit_vector):
8802         * alloc.c (Fbit_vector):
8803         * alloc.c (Fmake_string):
8804         * alloc.c (Fpurecopy):
8805         * alloc.c (Fmemory_limit):
8806         * buffer.c:
8807         * buffer.c (Fget_buffer):
8808         * buffer.c (Fkill_buffer):
8809         * buffer.c (complex_vars_of_buffer):
8810         * bytecode.c (Fcompiled_function_stack_depth):
8811         * callint.c (Fprefix_numeric_value):
8812         * event-stream.c:
8813         * event-stream.c (Fread_key_sequence):
8814         * casetab.c:
8815         * casetab.c (Fcase_table_p):
8816         * casetab.c (check_case_table):
8817         * casetab.c (Fset_case_table):
8818         * casetab.c (Fset_standard_case_table):
8819         * chartab.c:
8820         * chartab.c (Fchar_table_type):
8821         * chartab.c (Freset_char_table):
8822         * chartab.c (Fget_char_table):
8823         * chartab.c (Fget_range_char_table):
8824         * chartab.c (Fput_char_table):
8825         * chartab.c (Fmap_char_table):
8826         * chartab.c (Fcategory_table_p):
8827         * chartab.c (Fcheck_category_at):
8828         * chartab.c (Fchar_in_category_p):
8829         * chartab.c (Fcategory_table):
8830         * chartab.c (Fcopy_category_table):
8831         * chartab.c (Fset_category_table):
8832         * chartab.c (Fcategory_designator_p):
8833         * chartab.c (Fcategory_table_value_p):
8834         * cmds.c (Fdelete_char):
8835         * cmds.c (Fdelete_backward_char):
8836         * cmds.c (Fself_insert_command):
8837         * cmds.c (Fself_insert_internal):
8838         * console.c (Fvalid_console_type_p):
8839         * console.c (Fcdfw_console):
8840         * console.c (Fconsole_type):
8841         * console.c (Fconsole_name):
8842         * console.c (Fconsole_device_list):
8843         * console.c (Fconsole_on_window_system_p):
8844         * data.c:
8845         * data.c (Feq):
8846         * data.c (Fold_eq):
8847         * data.c (Fsubr_interactive):
8848         * data.c (Fchar_to_int):
8849         * data.c (Fint_to_char):
8850         * data.c (Fsetcar):
8851         * data.c (Fsetcdr):
8852         * data.c (Fnumber_to_string):
8853         * data.c (Fstring_to_number):
8854         * data.c (Frem):
8855         * database.c (mark_database):
8856         * database.c (finalize_database):
8857         * database.c (Fdatabase_live_p):
8858         * database.c (Fdatabasep):
8859         * device-x.c (Fx_get_resource):
8860         * device.c (Fdfw_device):
8861         * dired.c:
8862         * dired.c (Ffile_name_completion):
8863         * dired.c (Ffile_name_all_completions):
8864         * dired.c (Fuser_name_completion):
8865         * dired.c (Fuser_name_completion_1):
8866         * dired.c (Fuser_name_all_completions):
8867         * doc.c (Fdocumentation):
8868         * doc.c (Fdocumentation_property):
8869         * doc.c (Fsubstitute_command_keys):
8870         * editfns.c:
8871         * editfns.c (Fchar_to_string):
8872         * editfns.c (Fstring_to_char):
8873         * editfns.c (Ftemp_directory):
8874         * editfns.c (Finsert_char):
8875         * editfns.c (Fbuffer_substring_no_properties):
8876         * editfns.c (Fnarrow_to_region):
8877         * editfns.c (Fchar_equal):
8878         * editfns.c (Fchar_Equal):
8879         * editfns.c (Ftranspose_regions):
8880         * emacs.c (Fdump_emacs):
8881         * eval.c (Fthrow):
8882         * eval.c (Fcommand_execute):
8883         * eval.c (Fautoload):
8884         * eval.c (Fbacktrace):
8885         * eval.c (Fbacktrace_frame):
8886         * events.c:
8887         * events.c (Fcopy_event):
8888         * events.c (Fcharacter_to_event):
8889         * events.c (Fevent_button):
8890         * events.c (Fevent_process):
8891         * extents.c:
8892         * extents.c (Fnext_extent_change):
8893         * extents.c (Fextent_property):
8894         * faces.c (Ffacep):
8895         * faces.c (Fmake_face):
8896         * file-coding.c:
8897         * file-coding.c (Fencode_shift_jis_char):
8898         * file-coding.c (Fencode_big5_char):
8899         * fileio.c (Ffile_name_directory):
8900         * fileio.c (Ffile_name_nondirectory):
8901         * fileio.c (Ffile_name_as_directory):
8902         * fileio.c (Fdirectory_file_name):
8903         * fileio.c (Ffile_truename):
8904         * fileio.c (Fsubstitute_in_file_name):
8905         * fileio.c (Ffile_modes):
8906         * fileio.c (Fset_file_modes):
8907         * fileio.c (Fset_default_file_modes):
8908         * fileio.c (Fverify_visited_file_modtime):
8909         * floatfns.c (Facos):
8910         * floatfns.c (Fasin):
8911         * floatfns.c (Fatan):
8912         * floatfns.c (Fcos):
8913         * floatfns.c (Fsin):
8914         * floatfns.c (Ftan):
8915         * floatfns.c (Fbessel_j0):
8916         * floatfns.c (Fbessel_j1):
8917         * floatfns.c (Fbessel_jn):
8918         * floatfns.c (Fbessel_y0):
8919         * floatfns.c (Fbessel_y1):
8920         * floatfns.c (Fbessel_yn):
8921         * floatfns.c (Ferf):
8922         * floatfns.c (Ferfc):
8923         * floatfns.c (Flog_gamma):
8924         * floatfns.c (Fexp):
8925         * floatfns.c (Fexpt):
8926         * floatfns.c (Flog):
8927         * floatfns.c (Flog10):
8928         * floatfns.c (Fsqrt):
8929         * floatfns.c (Fcube_root):
8930         * floatfns.c (Facosh):
8931         * floatfns.c (Fasinh):
8932         * floatfns.c (Fatanh):
8933         * floatfns.c (Fcosh):
8934         * floatfns.c (Fsinh):
8935         * floatfns.c (Ftanh):
8936         * floatfns.c (Fabs):
8937         * floatfns.c (Ffloat):
8938         * floatfns.c (Flogb):
8939         * floatfns.c (Fceiling):
8940         * floatfns.c (Ffloor):
8941         * floatfns.c (Fround):
8942         * floatfns.c (Ftruncate):
8943         * floatfns.c (Ffceiling):
8944         * floatfns.c (Fffloor):
8945         * floatfns.c (Ffround):
8946         * floatfns.c (Fftruncate):
8947         * fns.c (Fstring_equal):
8948         * fns.c (Fstring_lessp):
8949         * fns.c (concat2):
8950         * fns.c (concat3):
8951         * fns.c (vconcat2):
8952         * fns.c (vconcat3):
8953         * fns.c (Fsubstring):
8954         * fns.c (Fassoc):
8955         * fns.c (Fold_assoc):
8956         * fns.c (assoc_no_quit):
8957         * fns.c (Fassq):
8958         * fns.c (Fold_assq):
8959         * fns.c (assq_no_quit):
8960         * fns.c (Frassoc):
8961         * fns.c (Fold_rassoc):
8962         * fns.c (Frassq):
8963         * fns.c (Fold_rassq):
8964         * fns.c (rassq_no_quit):
8965         * fns.c (Fremassoc):
8966         * fns.c (remassoc_no_quit):
8967         * fns.c (Fremassq):
8968         * fns.c (remassq_no_quit):
8969         * fns.c (Fremrassoc):
8970         * fns.c (Fremrassq):
8971         * fns.c (remrassq_no_quit):
8972         * fns.c (Fsort):
8973         * fns.c (Fplist_get):
8974         * fns.c (Fplist_put):
8975         * fns.c (Fplist_remprop):
8976         * fns.c (Fplist_member):
8977         * fns.c (Flax_plist_get):
8978         * fns.c (Flax_plist_put):
8979         * fns.c (Flax_plist_remprop):
8980         * fns.c (Flax_plist_member):
8981         * fns.c (Fequal):
8982         * fns.c (Fold_equal):
8983         * fns.c (Frequire):
8984         * fns.c (Fbase64_encode_region):
8985         * fns.c (Fbase64_encode_string):
8986         * fns.c (Fbase64_decode_region):
8987         * frame.c:
8988         * frame.c (frame_matches_frame_spec):
8989         * frame.c (device_matches_device_spec):
8990         * frame.c (next_frame):
8991         * frame.c (previous_frame):
8992         * frame.c (Fnext_frame):
8993         * frame.c (Fprevious_frame):
8994         * frame.c (Fframe_property):
8995         * frame.c (Fset_frame_height):
8996         * frame.c (Fset_frame_size):
8997         * frame.h:
8998         * glyphs.c:
8999         * glyphs.c (if):
9000         * glyphs.c (decode_error_behavior_flag):
9001         * glyphs.c (Fmake_image_instance):
9002         * indent.c (Findent_to):
9003         * intl.c (Fignore_defer_gettext):
9004         * keymap.c (Fkeymapp):
9005         * keymap.c (Flookup_key):
9006         * lread.c:
9007         * lread.c (Fload_internal):
9008         * lread.c (Feval_buffer):
9009         * lread.c (Feval_region):
9010         * macros.c (Fexecute_kbd_macro):
9011         * marker.c (set_marker_internal):
9012         * marker.c (Fset_marker):
9013         * marker.c (set_marker_restricted):
9014         * marker.c (Fcopy_marker):
9015         * marker.c (noseeum_copy_marker):
9016         * menubar.c:
9017         * menubar.c (Fpopup_menu):
9018         * minibuf.c:
9019         * mule-charset.c (Fcharset_name):
9020         * mule-charset.c (Fchar_charset):
9021         * mule-charset.c (Fchar_octet):
9022         * mule-charset.c (Fsplit_char):
9023         * mule-wnnfns.c (Fwnn_open):
9024         * mule-wnnfns.c (Fwnn_dict_comment):
9025         * mule-wnnfns.c (Fwnn_quit_henkan):
9026         * mule-wnnfns.c (Fwnn_word_toroku):
9027         * mule-wnnfns.c (Fwnn_word_sakujo):
9028         * mule-wnnfns.c (Fwnn_word_use):
9029         * mule-wnnfns.c (Fwnn_hindo_set):
9030         * objects.c:
9031         * objects.c (Fmake_color_instance):
9032         * objects.c (Fmake_font_instance):
9033         * print.c (Fwrite_char):
9034         * process.c:
9035         * process.c (mark_process):
9036         * process.c (print_process):
9037         * process.c (get_process_from_usid):
9038         * process.c (Fprocessp):
9039         * process.c (Fprocess_live_p):
9040         * process.c (Fget_process):
9041         * process.c (Fget_buffer_process):
9042         * process.c (get_process):
9043         * process.c (Fprocess_id):
9044         * process.c (Fprocess_name):
9045         * process.c (Fprocess_command):
9046         * process.c (init_process_io_handles):
9047         * process.c (start_process_unwind):
9048         * process.c (Fstart_process_internal):
9049         * process.c (Fopen_multicast_group_internal):
9050         * process.c (Fset_process_window_size):
9051         * process.c (read_process_output):
9052         * process.c (send_process):
9053         * process.c (Fprocess_tty_name):
9054         * process.c (Fset_process_buffer):
9055         * process.c (Fprocess_buffer):
9056         * process.c (Fprocess_mark):
9057         * process.c (set_process_filter):
9058         * process.c (Fset_process_filter):
9059         * process.c (Fprocess_filter):
9060         * process.c (Fprocess_send_region):
9061         * process.c (Fprocess_send_string):
9062         * process.c (exec_sentinel):
9063         * process.c (Fset_process_sentinel):
9064         * process.c (Fprocess_sentinel):
9065         * process.c (status_notify):
9066         * process.c (Fprocess_status):
9067         * process.c (Fprocess_exit_status):
9068         * process.c (process_send_signal):
9069         * process.c (Fprocess_send_eof):
9070         * process.c (deactivate_process):
9071         * process.c (remove_process):
9072         * process.c (Fdelete_process):
9073         * process.c (kill_buffer_processes):
9074         * process.c (Fprocess_kill_without_query):
9075         * process.c (Fprocess_kill_without_query_p):
9076         * rangetab.c:
9077         * rangetab.c (Fget_range_table):
9078         * rangetab.c (Fput_range_table):
9079         * rangetab.c (Fremove_range_table):
9080         * rangetab.c (Fclear_range_table):
9081         * search.c:
9082         * search.c (Fskip_chars_forward):
9083         * search.c (Fskip_chars_backward):
9084         * search.c (Fskip_syntax_forward):
9085         * search.c (Fskip_syntax_backward):
9086         * search.c (search_command):
9087         * search.c (Freplace_match):
9088         * search.c (Fregexp_quote):
9089         * select.c (Fown_selection_internal):
9090         * select.c (Fselection_owner_p):
9091         * select.c (Fselection_exists_p):
9092         * select.c (Fget_selection_internal):
9093         * specifier.c:
9094         * symbols.c:
9095         * symbols.c (Fintern):
9096         * symbols.c (Fintern_soft):
9097         * symbols.c (Funintern):
9098         * symbols.c (Fapropos_internal):
9099         * symbols.c (Fset_default):
9100         * syntax.c:
9101         * syntax.c (Fsyntax_table_p):
9102         * syntax.c (Fcopy_syntax_table):
9103         * syntax.c (Fset_syntax_table):
9104         * syntax.c (Fchar_syntax):
9105         * syntax.c (syntax_match):
9106         * syntax.c (Fmatching_paren):
9107         * syntax.c (Fforward_word):
9108         * syntax.c (scan_lists):
9109         * syntax.c (Fscan_lists):
9110         * syntax.c (Fscan_sexps):
9111         * syntax.c (Fparse_partial_sexp):
9112         * toolbar.c (Fcheck_toolbar_button_syntax):
9113         * tooltalk.doc:
9114         * window.c:
9115         * window.c (Fwindowp):
9116         * window.c (Fwindow_live_p):
9117         * window.c (Fwindow_point):
9118         * window.c (Fdelete_window):
9119         * window.c (Fnext_window):
9120         * window.c (Fprevious_window):
9121         * window.c (Fother_window):
9122         * window.c (window_loop):
9123         * window.c (Fget_lru_window):
9124         * window.c (Fsplit_window):
9125         * window.c (Fenlarge_window):
9126         * window.c (Fenlarge_window_pixels):
9127         * window.c (Fshrink_window):
9128         * window.c (Fshrink_window_pixels):
9129         * window.c (change_window_height):
9130         * window.c (Fwindow_configuration_p):
9131         * window.c (Fcurrent_window_configuration):
9132         * window.h:
9133         * casefiddle.c (casify_object):
9134         * casefiddle.c (Fupcase):
9135         * casefiddle.c (Fdowncase):
9136         * casefiddle.c (Fcapitalize):
9137         * casefiddle.c (Fupcase_initials):
9138         * casefiddle.c (casify_region_internal):
9139         * casefiddle.c (casify_region):
9140         * casefiddle.c (Fupcase_region):
9141         * casefiddle.c (Fdowncase_region):
9142         * casefiddle.c (Fcapitalize_region):
9143         * casefiddle.c (Fupcase_initials_region):
9144         * casefiddle.c (Fupcase_word):
9145         * casefiddle.c (Fdowncase_word):
9146         * casefiddle.c (Fcapitalize_word):
9147         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9148         Replace 0 with '\0' when working with bytes.
9149         Replace initial "(" with "\(" in docstrings.
9150
9151 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9152
9153         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9154
9155         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9156
9157 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9158
9159         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9160
9161 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9162
9163         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9164         correctly.
9165
9166 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9167
9168         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9169         (inhibit_auto_save_session): New variable.
9170         (vars_of_fileio): Declare and initialize them.
9171         * fileio.c (Fdo_auto_save): Don't create session file if
9172         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9173
9174 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9175
9176         * sgiplay.c (play_internal): C++ compilability.
9177         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9178         * callproc.c (Fold_call_process_internal):
9179         Remove unused vars `env', `first'.
9180         * scrollbar.c (update_scrollbar_instance):
9181         #### unused var `current_window'.
9182         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9183         etc. within #ifdef NOT_YET.
9184         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9185         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9186         * specifier.c (specifier_instance):
9187         #### unused var `tag'.
9188         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9189
9190 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9191
9192         * fns.c (Fbutlast):
9193         * fns.c (list_sort):
9194         * fns.c (Ffillarray):
9195         * fns.c (bytecode_nconc2):
9196         * fns.c (Fnconc):
9197         * fns.c (mapcar1):
9198         * fns.c (Fmapconcat):
9199         Be pedantically 64-bit correct.  For the time when someone will
9200         want to have a list with length > 2**32.
9201
9202         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9203         Work around MIPSpro compiler bug.
9204
9205         * process-unix.c (unix_kill_child_process): Add snarky comment.
9206         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9207
9208         * config.h.in: Oops, _getpt ==> _getpty
9209
9210 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9211
9212         * config.h.in:
9213         * regex.c:
9214         Use void*, not char*, as return type of alloca().
9215
9216         * alloc.c (free_marker): Side effect inside assert expression!
9217
9218 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9219
9220         * mule-charset.c (Fset_charset_ccl_program): To check
9221         if the given ccl program is valid, use setup_ccl_program()
9222         instead of CHECK_VECTOR().
9223         (Fmake_charset): Likewise.
9224
9225 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9226
9227         * faces.c (get_extent_fragment_face_cache_index):
9228         Fix cachel.merged_faces memory leak.
9229
9230 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9231
9232         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9233         Reset MSB of octets obtained by DECODE_SJIS
9234         because of the incompatibility with Emacs.
9235         (ccl_driver)<CCL_ENCODE_SJIS>:
9236         Set MSB of octets before passing them to
9237         ENCODE_SJIS because of the incompatibility
9238         with Emacs.
9239
9240 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9241
9242         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9243         (DECLARE_LRECORD): Undo the last change.
9244         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9245
9246 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9247
9248         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9249         the implementation to lrecord_implementations_table.
9250
9251 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9252
9253         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9254         initial value of `lrecord_type_##c_name' and
9255         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9256         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9257         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9258         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9259         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9260
9261 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9262
9263         * miscplay.c (sndcnv8S_2mono):
9264         (sndcnv2monounsigned):
9265         (sndcnvULaw_2linear):
9266         (sndcnv16swap):
9267         Remove implementation-defined behavior.
9268
9269 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9270
9271         * input-method-xlib.c: Warning suppression.
9272
9273 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9274
9275         * mule-ccl.c: Sync up with Emacs 21.0.90.
9276         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9277         Do nothing.
9278         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9279         Likewise.
9280         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9281         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9282         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9283         leading char belongs to official 2-dimensional charset.
9284         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9285         write the given character as is.  Otherwise,
9286         if it is a multibyte char, convert it by
9287         non_ascii_set_charptr_emchar, then write it.
9288         (CCL_WRITE_STRING): Likewise.
9289         (ccl_get_compiled_code): New function.
9290         (setup_ccl_program): When ccl_prog is invalid,
9291         return -1.
9292         (Fregister_code_conversion_map): New function.
9293         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9294
9295         * mule-ccl.h: Sync up with Emacs 21.0.90.
9296         (Fregister_ccl_program): export it.
9297
9298         * redisplay-msw.c (separate_textual_runs):
9299         If ccl program is not valid, don't do ccl conversion.
9300
9301         * redisplay-x.c (separate_textual_runs): Ditto.
9302
9303         * file-coding.c (Fmake_coding_system):
9304         When type is ccl and value is vector, register it
9305         with a proper symbol.  And checks whether the
9306         given ccl program is valid.
9307         (mule_decode): When calling ccl_driver, if src indicates
9308         NULL pointer, set an empty string instead.
9309         (mule_encode): Likewise.
9310
9311 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9312
9313         The following large batch of changes gets us back to a state of
9314         C++ compilability.  Extbyte is now a char, which means that
9315         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9316
9317         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9318
9319         * sound.c (Fplay_sound): Type correctness.
9320
9321         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9322         (x_get_window_property): Type correctness.
9323         (receive_incremental_selection): unsigned char ==> Extbyte
9324         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9325         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9326         (Fx_store_cutbuffer_internal): Type correctness.
9327
9328         * process-unix.c (try_to_initialize_subtty): Type correctness.
9329
9330         * objects-x.c (x_print_color_instance): Type correctness.
9331         (x_print_font_instance): Type correctness.
9332         (x_list_fonts): SExtbyte ==> Extbyte.
9333         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9334         (x_find_charset_font): SExtbyte ==> Extbyte.
9335         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9336         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9337         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9338         Use bufbyte_strcmp.
9339
9340         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9341         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9342         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9343         (BYTE_C0_P): Use bit ops for char-signedness safety.
9344         (BYTE_C1_P): Use bit ops for char-signedness safety.
9345         (CHARSET_BY_LEADING_BYTE):
9346         (CHARSET_BY_ATTRIBUTES):
9347         Always use inline function.
9348         Use type_checking_assert.
9349         Hide chlook.
9350
9351         * mule-charset.c (non_ascii_charptr_copy_char):
9352         Modify to work with both ASCII and non-ASCII characters.
9353         Improve docs and variable names.
9354         Replace over-clever fall-through switch with a simple loop.
9355         (Lstream_get_emchar_1):
9356         Replace over-clever fall-through switch with a simple loop.
9357
9358         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9359         Warning suppression.
9360
9361         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9362         the return value of Lstream_getc, which could be EOF as well.
9363
9364         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9365
9366         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9367         APIs can be used on Extbytes without casts.  Risky!
9368         (SExtbyte): Remove.
9369         (UExtbyte): Remove.
9370
9371         * input-method-xlib.c (XIM_init_device):
9372         Use Xlib.h instead of IntrinsicP.h.
9373         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9374         which will break in X11R7.
9375         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9376         to call XRegisterIMInstantiateCallback with correct types.
9377
9378         * gui-x.c (button_item_to_widget_value): Type correctness.
9379
9380         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9381
9382         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9383         (xbm_instantiate_1): Type correctness.
9384         (BUILD_GLYPH_INST):  Type correctness.
9385
9386         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9387
9388         * file-coding.c:
9389         (decode_coding_sjis):
9390         (decode_coding_big5):
9391         (decode_coding_ucs4):
9392         (decode_coding_utf8):
9393         (decode_coding_iso2022):
9394         (decode_coding_no_conversion):
9395         Make all decoding functions take an Extbyte * arg.
9396         (encode_coding_sjis):
9397         (encode_coding_big5):
9398         (encode_coding_ucs4):
9399         (encode_coding_utf8):
9400         (encode_coding_iso2022):
9401         (encode_coding_no_conversion):
9402         Make all encoding functions take a Bufbyte * arg.
9403         Use size_t instead of unsigned int for memory sizes.
9404         Only cast to unsigned char whenever dereferencing Extbyte *.
9405
9406         * doc.c (unparesseuxify_doc_string): Type correctness.
9407
9408         * console-x.c (split_up_display_spec):
9409         Rewrite without using details of internal string representation.
9410         (x_semi_canonicalize_device_connection): Type correctness.
9411
9412         * config.h.in:
9413         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9414         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9415         (HAVE_XFREE386): Removed.
9416
9417         * buffer.h (DEC_CHARPTR): `const' correctness.
9418         (bufbyte_strcmp): New.
9419         (bufbyte_memcmp): New.
9420
9421         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9422
9423         * buffer.h (XCHAR_OR_CHAR_INT):
9424         Always use inline function.
9425         Remove redundant type checking assert() - XINT will abort quite nicely.
9426
9427 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9428
9429         * search.c (Freplace_match): Set newtext to an empty string.
9430
9431 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9432
9433         * s/decosf1-3.h: Remove #include of stropts.h
9434         * s/ptx.h: Remove #include of stropts.h
9435         * s/usg5-4.h: Remove #include of stropts.h
9436         * sysproc.h:
9437         * config.h.in:
9438         Use stropts.h, not sys/stropts.h.
9439         Use strtio.h, not sys/strtio.h.
9440
9441 2000-10-04  Martin Buchholz <martin@xemacs.org>
9442
9443         * XEmacs 21.2.36 is released.
9444
9445 2000-09-21  Andy Piper  <andy@xemacs.org>
9446
9447         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9448         changes still involve copying the widget tree.
9449         (update_widget_face): make sure a change is register in the widget
9450         tree. Call update_tab_widget_face appropriately.
9451         (update_tab_widget_face): ditto.
9452         (x_tab_control_redisplay): make sure non-structural changes still
9453         involve copying the widget tree.
9454
9455 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9456
9457         * lread.c (locate_file): Check the path element is non-nil.
9458
9459 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9460
9461         * lisp.h: Warning suppression for SCO compilers.
9462
9463         * redisplay-tty.c (reset_tty_modes): Fix crash.
9464         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9465
9466 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9467
9468         Big signal/process handling overhaul.  Bugs fixed:
9469         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9470         M-x comint-kill-subjob should work for both values nil and t of
9471         process-connection-type. It was broken on most platforms.
9472         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9473         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9474         * process-unix.c: Signal/Process handling overhaul.
9475         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9476         (allocate_pty): Use all available modern methods of allocating
9477         ptys, falling back to old style BSD allocation as a last resort.
9478         Use allegedly more secure Unix98 pty allocation by default.
9479         (allocate_pty_the_old_fashioned_way): New. the last resort.
9480         (unix_create_process): Push ptem, ldterm, ttcompat where
9481         available.  Autoconfiscate.
9482         (try_to_initialize_subtty): New.
9483         (unix_kill_child_process): Proper signal handling for ptys on most
9484         platforms, using special knowledge of AIX, BSD, etc...
9485         (unix_create_process): Always disconnect_controlling_terminal() for
9486         subprocesses, whether using ptys or not.
9487         * process.h: Remove old getpt-dependent PTY code.
9488         * process.c (Fprocess_send_signal): New, obvious generic function.
9489         (decode_signal): New.
9490         (Finterrupt_process):
9491         (Fkill_process):
9492         (Fquit_process):
9493         (Fstop_process):
9494         (Fcontinue_process):
9495         (Fsignal_process): Use decode_signal.
9496         (process_send_signal):
9497         Many docstring corrections.
9498         Allow any signal to be sent to a process object.
9499         * config.h.in: Add symbols for big signal/process overhaul.
9500         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9501         * sysproc.h: Include process-related headers, where available:
9502         sys/stropts.h sys/strtio.h pty.h libutil.h
9503         * s/irix4-0.h:
9504         * s/irix5-0.h:
9505         * s/cygwin32.h:
9506         * s/gnu.h:
9507         * s/linux.h:
9508         * s/hpux.h:
9509         * s/aix3-1.h:
9510         Remove old S&M pty stuff.
9511         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9512         * systty.h: Simplify cpp hackery, improve comments.
9513         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9514
9515         * editfns.c (Fformat_time_string):
9516         Be a little more paranoid with the return value of ctime.
9517
9518         * fileio.c (check_executable):
9519         (check_writable):
9520         Use symbolic constants X_OK, W_OK.
9521
9522         * console-x.c (split_up_display_spec): Fix a warning.
9523
9524 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9525
9526         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9527         * ntproc.c (sys_spawnve): make_string ==> build_string
9528         Small clarity improvements.
9529
9530 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9531
9532         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9533
9534         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9535
9536         * config.h.in (HAVE_STRCASECMP): Remove.
9537
9538 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9539
9540         * redisplay-output.c (redisplay_output_pixmap):
9541         Cleaner and possibly more 64-bit correct code.
9542
9543 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9544
9545         * dumper.c (pdump_load_finish): move restoration of
9546         `noninteractive1' to emacs.c (main_1).
9547         * emacs.c (main_1): protect LISP-visible command-line flags
9548         from pdump_load().
9549
9550 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9551
9552         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9553         DUMP_TARGET instead of literal program names.
9554
9555 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9556
9557         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9558
9559 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9560
9561         * *: Spelling mega-patch
9562
9563 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9564
9565         * fns.c (bad_bad_turtle):
9566         Delete "Eek!" comment, since we fixed the bug to which it refers.
9567
9568 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9569
9570         * alloca.c: Replace REGISTER with register.
9571
9572 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9573
9574         * file-coding.c (ucs_to_char): Use countof.
9575
9576 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9577
9578         * file-coding.c: (ucs_to_char):
9579         (complex_vars_of_file_coding):
9580         Use countof instead of sizeof.
9581         Use CHECK_NATNUM instead of CHECK_INT.
9582
9583         * sysdep.c (strcasecmp): Remove.
9584         * device-x.c (ascii_strcasecmp): New.
9585         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9586         Avoid using non-standard non-portable strcasecmp.
9587
9588 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9589
9590         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9591         * font-lock.c: remove reference to emacsfns.h.
9592         * search.c: small doc improvement.
9593         * event-Xt.c: correct file names in comments.
9594         * console-x.h Correct file names in comments.
9595         * frame.c: Correct file names in comments.
9596         * event-stream.c: remove Energize from comments.
9597
9598 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9599
9600         * symeval.h (DEFERROR_STANDARD):
9601         (DEFERROR):
9602         (DEFSYMBOL):
9603         (DEFSYMBOL_NO_DUMP):
9604         (DEFSYMBOL_MULTIWORD_PREDICATE):
9605         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9606         (DEFKEYWORD):
9607         The construct &##name is not sensible C.
9608         Fixes compilation errors with Unixware native compiler.
9609
9610 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9611
9612         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9613         (next_frame_internal): Removed.  We now just have next_frame.
9614         (next_frame):
9615         Write a simpler and cleaner one-pass algorithm.
9616         Remove called_from_delete_device arg and #ifdefed-out code.
9617         (previous_frame):
9618         Renamed from prev_frame.  Update callers.
9619         Cleaned up to have an analogous implementation to next_frame.
9620         (other_visible_frames_internal): Remove the
9621         called_from_delete_device bogus arg, and hence, remove this
9622         function.  Just use other_visible_frames().
9623
9624         * window.c (Fnext_window):
9625         Prettify docstring.
9626         Since next_frame() is guaranteed to return a frame, remove check
9627         for nil inserted in previous patch.
9628         (Fprevious_window):
9629         Prettify docstring.
9630         Make code look more like Fnext_window.
9631         (window_loop):
9632         Respect the `console' arg when iterating through windows.
9633         Fixes bug: (get-buffer-window buffer t device) not respecting
9634         the `device' arg.
9635         This function needs more work, as others have pointed out.
9636
9637         * frame.h: Rename prev_frame to previous_frame.
9638         device_matches_console_spec no longer takes a `frame' arg.
9639
9640         * s/gnu.h:
9641         * s/linux.h:
9642         * s/hpux.h:
9643         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9644         From "Golubev I. N." <gin@mo.msk.ru>.
9645
9646         * make-src-depend: Fix typo.
9647
9648 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9649
9650         * window.c (Fnext_window):
9651         next_frame() might return nil, not a frame.
9652         Fixes this crash:
9653         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9654
9655         * frame.c (next_frame_internal):
9656         We've passed a frame if we've passed its device.
9657         Fixes this crash:
9658         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9659 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9660
9661 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9662
9663         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9664         Allow option to suppress accelerators in menu/dialog items.
9665         (populate_or_checksum_helper): Pass dialog title through above.
9666
9667 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9668
9669         * event-msw.c (mswindows_key_to_emacs_keysym):
9670         Add "pause" key, fix "menu" key.
9671
9672 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9673
9674         * eval.c (reinit_vars_of_eval):
9675         Increase max_lisp_eval_depth to 1000,
9676         required for thai-xtis.el to byte-compile under some circumstances.
9677
9678 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9679
9680         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9681         From Kenichi Handa.
9682
9683 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9684
9685         * make-src-depend: Make the generated Makefiles smaller.
9686
9687         * s/hpux.h (SETUP_SLAVE_PTY):
9688         Provide a %d in the format string for the errno argument.
9689
9690         * editfns.c (Ftemp_directory):
9691         Warning fix.
9692         Avoid buffer overrun on very long file name.
9693
9694         * input-method-xlib.c (XIM_init_device):
9695         6th parameter of XRegisterIMInstantiateCallback has different
9696         pointer types on different OSes, so simply cast to (void *).
9697
9698         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9699
9700         * sysdll.c (dll_open):
9701         shl_load will hang hard if passed a NULL filename.
9702         Simply return NULL for compatibility with dlopen.
9703         * sysdll.c: Conform to XEmacs coding standards.
9704
9705         * sysdep.c (get_pty_max_bytes):
9706         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9707
9708 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9709
9710         * tooltalk.c: Add #include <syssignal.h>
9711
9712 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9713
9714         * s/hpux.h: Don't use undefined function sigunblock().
9715
9716 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9717
9718         * config.h.in: Add HAVE_BALLOON_HELP.
9719         * emacs.c: Use HAVE_BALLOON_HELP.
9720         * Makefile.in.in (x_objs):
9721         Make Balloon Help conditional on finding shape.h.
9722
9723 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9724
9725         * syntax.c (regex_emacs_buffer_p): New variable.
9726         * syntax.h (regex_emacs_buffer_p): extern.
9727         * search.c (looking_at_1):
9728         (string_match_1):
9729         (fast_string_match):
9730         (search_buffer): Set regex_emacs_buffer_p.
9731         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9732         when before_dot, at_dot, after_dot.
9733
9734 2000-08-23  Andy Piper  <andy@xemacs.org>
9735
9736         * gui-x.c (popup_selection_callback): Only set action_occurred
9737         when we really have an image instance.
9738         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9739
9740 2000-08-23  Andy Piper  <andy@xemacs.org>
9741
9742         * gui-msw.c (mswindows_handle_gui_wm_command): set
9743         action_occurred.
9744         * gui-x.c (popup_selection_callback): ditto.
9745
9746         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9747         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9748         (struct Lisp_Image_Instance): add action_occurred flag.
9749
9750         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9751         (image_instance_changed): ditto.
9752         (reset_frame_subwindow_instance_cache): only unmap windows - do
9753         not remove them from the cache also.
9754
9755         * glyphs-widget.c (tab_control_update): better debug.
9756         (progress_gauge_update): ditto.
9757         (layout_update): ditto.
9758         (layout_instantiate): ditto.
9759         (tab_control_order_only_changed): cope with null pending items.
9760
9761         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9762         debug. Force selection of an item when an action occurred. Cope
9763         with null pending_items.
9764         (mswindows_progress_gauge_redisplay): better debug.
9765         * glyphs-x.c (x_tab_control_redisplay): ditto.
9766
9767         * redisplay.c (redisplay_frame): reset the frame cache if the
9768         frame is garbaged.
9769
9770         * window.c (Fset_window_configuration): potentially re-enable
9771         frame cache reset.
9772         (window_unmap_subwindows): need to finalize instances here since
9773         it is only used in mark_window_as_deleted.
9774
9775 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9776
9777         * nas.c (SndOpenDataForReading):
9778         nas.c (WaveOpenDataForReading):
9779         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9780         Somehow escaped from the 2000-08-14 patch.
9781
9782 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9783
9784         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9785         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9786
9787 2000-08-21  Andy Piper  <andy@xemacs.org>
9788
9789         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9790         window if it is not already displayed.
9791
9792         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9793         it is not already displayed.
9794
9795         * window.c (Fset_window_configuration): don't reset the frame
9796         cache.
9797
9798         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9799         instances from the frame cache if we are actually finalizing them.
9800         (reset_frame_subwindow_instance_cache): reset frame cache only
9801         after unmapping everything.
9802         (map_subwindow): set displayed flag after mapping.
9803
9804 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9805
9806         * data.c (indirect_function):
9807         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9808
9809         * eval.c (function_argcount):
9810         Use original function when signaling errors.
9811
9812 2000-08-18  Andy Piper  <andy@xemacs.org>
9813
9814         * frame.c (delete_frame_internal): use new
9815         free_frame_subwindow_instances name.
9816
9817         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9818         (add_tab_item): make return type correct.
9819         (mswindows_tab_control_instantiate): assert index of tab.
9820         (mswindows_tab_control_redisplay): Re-code to use
9821         gui_item_equal_sans_selected and gui_item_list_find_selected.
9822
9823         * glyphs-widget.c (tab_control_update): Correct comment.
9824
9825         * window.c (window_unmap_subwindows): use new
9826         unmap_subwindow_instance_cache_mapper.
9827         (window_unmap_subwindows_cache_mapper): deleted.
9828         (Fset_window_configuration): comparisons should now be with
9829         EQ. Preserve the subwindow instance cache across configuration
9830         changes.
9831         (allocate_window): ditto.
9832         (make_dummy_parent): ditto.
9833
9834         * glyphs.c (free_frame_subwindow_instances): rename from
9835         free_frame_subwindow_instance_cache. finalize all instances rather
9836         than just those in the display cache.
9837         (finalize_all_subwindow_instances): walk windows unmapping and
9838         finalizing subwindows.
9839         (unmap_subwindow_instance_cache_mapper): moved from
9840         window.c. Allow finalization as well as unmapping.
9841
9842         * gui.c (gui_item_list_find_selected): new function.
9843
9844         * gui.h (gui_item_list_find_selected): declare.
9845
9846         * glyphs-x.c (x_tab_control_redisplay): pick tab
9847         explicitly. Re-code to use gui_item_equal_sans_selected and
9848         gui_item_list_find_selected.
9849
9850         * glyphs-x.h: add lwlib-utils.h
9851
9852         * buffer.c (Frecord_buffer): undo previous change.
9853
9854 2000-08-09  Vin Shelton  <acs@xemacs.org>
9855
9856         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9857         possible.  Create temporary files more securely.  The patch was
9858         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9859         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9860         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9861         for details.
9862
9863 2000-08-07  Ben Wing  <ben@xemacs.org>
9864
9865         * getloadavg.c: remove duplicate (and windows-breaking)
9866         includes of fcntl.h and sys/file.h.
9867
9868         * nt.c: remove duplicate getloadavg() definition.
9869
9870         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9871         encodings.
9872
9873 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9874
9875         * eval.c (function_argcount): If function needs to be autoloaded
9876         actually use the loaded definition.
9877         GCPRO function.
9878
9879 2000-08-05  Ben Wing  <ben@xemacs.org>
9880
9881         * getloadavg.c: add prototype for getloadavg().  remove
9882         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9883         of the code).  remove duplicate header includes.
9884
9885         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9886
9887         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9888         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9889         useful load average.
9890
9891         * alloc.c (reinit_alloc_once_early): removed references to
9892         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9893         the lisp vars are the only things referencing the malloc_sbrk_*
9894         vars, and they were already if 0'd out.  these vars only exist
9895         in the older malloc.c, which is basically unused, and they're
9896         only for informational purposes.
9897
9898         * m\*.h: removed useless VIRT_ADDR_VARIES.
9899
9900         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9901
9902 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9903
9904         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9905         color if the image is a mono pixmap.
9906
9907 2000-07-30  Ben Wing  <ben@xemacs.org>
9908
9909         * Makefile.in.in (release):
9910         Remove stray @.
9911
9912         * buffer.c (directory_is_current_directory):
9913         * dired-msw.c (mswindows_get_files):
9914         * dired.c:
9915         * dired.c (Fdirectory_files):
9916         * dired.c (file_name_completion_stat):
9917         * dired.c (Ffile_attributes):
9918         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9919         preprocessor tricks, to avoid problems on some machines
9920         (e.g. SCO).
9921
9922         * callproc.c (egetenv): GC docs.
9923
9924         * console-msw.h:
9925         * console-msw.h (struct mswindows_dialog_id):
9926         * lrecord.h (lrecord_type):
9927         New object for use with MSW dialogs.
9928
9929         * console.h (struct console_methods):
9930         New enable/disable frame methods, for proper modal dialogs.
9931
9932         * device-msw.c (msprinter_default_printer): Fix to follow
9933         proper Mule conventions.
9934
9935         * device-msw.c:
9936         * device-msw.c (signal_open_printer_error):
9937         * device-msw.c (msprinter_init_device):
9938         * device-msw.c (ensure_not_printing):
9939         * device-msw.c (plist_get_margin):
9940         * device-msw.c (Fmsprinter_select_settings):
9941         * device-msw.c (finalize_devmode):
9942         * device-msw.c (Fmsprinter_settings_despecialize):
9943         * device-msw.c (signal_enum_priner_error):
9944         * extents.c (decode_extent):
9945         * extents.c (decode_map_extents_flags):
9946         * extents.c (decode_extent_at_flag):
9947         * extents.c (Fextent_at):
9948         * extents.c (Fextents_at):
9949         * extents.c (symbol_to_glyph_layout):
9950         [[[[2]]]] Use structured errors.
9951
9952         * dialog-msw.c:
9953         * dialog-msw.c (mswindows_is_dialog_msg):
9954         * dialog-msw.c (mark_mswindows_dialog_id):
9955         * dialog-msw.c (dialog_proc):
9956         * dialog-msw.c (handle_question_dialog_box):
9957         * dialog-msw.c (syms_of_dialog_mswindows):
9958         Define new object to clean up marking; use it as a dialog identifier.
9959         Call new delete-dialog-box-hook.
9960
9961         * dialog-x.c (dbox_selection_callback):
9962         * dialog-x.c (dbox_descriptor_to_widget_value):
9963         * dialog-x.c (x_make_dialog_box_internal):
9964         Call new delete-dialog-box-hook.
9965         Return an id.
9966
9967         * dialog.c:
9968         * dialog.c (syms_of_dialog):
9969         * dialog.c (vars_of_dialog):
9970         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9971
9972         * eval.c:
9973         * eval.c (signal_call_debugger):
9974         when noninteractive, output stack traces on the console instead
9975         of in a (never-seen) buffer.
9976
9977         * eval.c (signal_type_error):
9978         * eval.c (invalid_argument_2):
9979         * lisp.h:
9980         new funs for use w/structured errors.
9981
9982         * event-Xt.c:
9983         * event-Xt.c (x_to_emacs_keysym):
9984         * event-Xt.c (describe_event):
9985         * event-Xt.c (emacs_Xt_event_handler):
9986         * event-Xt.c (vars_of_event_Xt):
9987         * event-msw.c:
9988         * event-msw.c (mswindows_wnd_proc):
9989         * event-msw.c (vars_of_event_mswindows):
9990         rename {x,mswindows}-debug-events to debug-{}-events for
9991         consistency with other debug-foo variables.
9992
9993         * event-stream.c:
9994         document next-event more clearly.
9995
9996         * fileio.c (Ffile_name_directory):
9997         * fileio.c (Ffile_name_nondirectory):
9998         * fileio.c (Funhandled_file_name_directory):
9999         * fileio.c (file_name_as_directory):
10000         * fileio.c (Ffile_name_as_directory):
10001         * fileio.c (directory_file_name):
10002         * fileio.c (Fdirectory_file_name):
10003         * fileio.c (Fmake_temp_name):
10004         * fileio.c (Ffile_truename):
10005         * fileio.c (Fsubstitute_in_file_name):
10006         * fileio.c (expand_and_dir_to_file):
10007         * fileio.c (barf_or_query_if_file_exists):
10008         * fileio.c (check_executable):
10009         * fileio.c (Ffile_exists_p):
10010         * fileio.c (Ffile_writable_p):
10011         * fileio.c (Ffile_directory_p):
10012         * fileio.c (Ffile_regular_p):
10013         * fileio.c (Ffile_modes):
10014         * fileio.c (Ffile_newer_than_file_p):
10015         * fileio.c (Fverify_visited_file_modtime):
10016         * fileio.c (Fset_visited_file_modtime):
10017         * fileio.c (auto_save_1):
10018         (1). (2).
10019         fix up gcpro's.
10020
10021         * frame-msw.c:
10022         * frame-msw.c (mswindows_init_frame_1):
10023         * frame-msw.c (mswindows_enable_frame):
10024         * frame-msw.c (error_frame_unsizable):
10025         * frame-msw.c (msprinter_init_frame_1):
10026         * frame-msw.c (msprinter_init_frame_3):
10027         * frame-msw.c (console_type_create_frame_mswindows):
10028         (2).
10029         implement new enable/disable frame methods.
10030
10031         * frame-x.c:
10032         * frame-x.c (x_enable_frame):
10033         * frame-x.c (console_type_create_frame_x):
10034         implement new enable/disable frame methods.
10035
10036         * frame.c:
10037         * frame.c (Fdisable_frame):
10038         * frame.c (syms_of_frame):
10039         * frame.h (struct frame):
10040         implement new enable/disable frame methods/functions.
10041
10042         * general-slots.h:
10043         add initial-focus.
10044
10045         * glyphs-msw.c (mswindows_widget_instantiate):
10046         comment that initial-focus should be implemented.
10047
10048         * glyphs-widget.c:
10049         * glyphs-widget.c (check_valid_instantiator):
10050         * glyphs-widget.c (check_valid_orientation):
10051         * glyphs-widget.c (check_valid_tab_orientation):
10052         * glyphs-widget.c (check_valid_justification):
10053         * glyphs-widget.c (check_valid_border):
10054         * glyphs-widget.c (check_valid_callback):
10055         * glyphs-widget.c (check_valid_int_or_function):
10056         * glyphs-widget.c (check_valid_string_or_vector):
10057         * glyphs-widget.c (check_valid_item_list_1):
10058         * glyphs-widget.c (widget_validate):
10059         * glyphs-widget.c (combo_box_validate):
10060         * glyphs-widget.c (widget_instantiate):
10061         * glyphs-widget.c (syms_of_glyphs_widget):
10062         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10063         * glyphs-widget.c (image_instantiator_combo_box):
10064         * glyphs-widget.c (image_instantiator_scrollbar):
10065         * glyphs-widget.c (image_instantiator_tab_control):
10066         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10067         (2).
10068         support (unimplemented) keyword initial-focus.
10069         reindent long macros.
10070
10071         * glyphs-x.c (x_redisplay_widget):
10072         * glyphs-x.c (x_button_instantiate):
10073         * glyphs-x.c (x_button_redisplay):
10074         * glyphs-x.c (x_progress_gauge_instantiate):
10075         * glyphs-x.c (x_edit_field_instantiate):
10076         * glyphs-x.c (x_combo_box_instantiate):
10077         * glyphs-x.c (x_tab_control_instantiate):
10078         * glyphs-x.c (x_label_instantiate):
10079         * gui-x.c:
10080         * gui-x.c (button_item_to_widget_value):
10081         * gui-x.c (gui_items_to_widget_values_1):
10082         * gui-x.c (gui_item_children_to_widget_values):
10083         * gui-x.c (gui_items_to_widget_values):
10084         * gui-x.h:
10085         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10086         add new flag to gui-parsing routines to indicate whether
10087         accelerator specs should be supported.
10088
10089         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10090
10091         * glyphs.h (struct Lisp_Image_Instance):
10092         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10093         add initial-focus flag.
10094
10095         * gui.c:
10096         * gui.c (syms_of_gui):
10097         * gui.c (vars_of_gui):
10098         clean up menu-no-selection-hook.
10099
10100         * gui.h:
10101         support delete-dialog-box-hook.
10102
10103         * lread.c (Fload_internal):
10104         * lread.c (locate_file_in_directory_mapper):
10105         (1).
10106
10107         * lrecord.h:
10108         * lrecord.h (struct toolbar_button):
10109         * lrecord.h (syms_of_toolbar):
10110         document how to create a new object.
10111
10112         * menubar-msw.c (mswindows_char_is_accelerator):
10113         may be called on frames w/o menus.
10114
10115         * menubar.c (vars_of_menubar):
10116         clean up :filter docs.
10117
10118         * nt.c (readdir):
10119         * ntproc.c:
10120         (1).
10121
10122         * process-nt.c:
10123         * process-nt.c (validate_signal_number):
10124         * process-nt.c (signal_cannot_launch):
10125         * process-nt.c (nt_create_process):
10126         * process-nt.c (nt_send_process):
10127         * process-nt.c (nt_kill_child_process):
10128         * process-nt.c (nt_open_network_stream):
10129         * process-nt.c (syms_of_process_nt):
10130         (2).
10131         delete quote-handling.  call new lisp code that does it better.
10132
10133         * process-unix.c (connect_to_file_descriptor):
10134         * process-unix.c (allocate_pty):
10135         * process-unix.c (unix_send_process):
10136         * process-unix.c (unix_kill_child_process):
10137         * process-unix.c (unix_open_network_stream):
10138         * process-unix.c (unix_open_multicast_group):
10139         (1). (2).
10140
10141         * process.c:
10142         * process.c (Fstart_process_internal):
10143         (2).  need to canonicalize process path even if absolute.
10144
10145         * select-msw.c (symbol_to_ms_cf):
10146         * select-msw.c (ms_cf_to_symbol):
10147         * select-msw.c (cf_is_autofreed):
10148         * select-msw.c (mswindows_destroy_selection):
10149         * select.c:
10150         * select.c (syms_of_select):
10151         * select.h:
10152         support dibv5, fix bugs. (from Mike Alexander)
10153
10154         * select.c (Fget_selection_internal):
10155         * select.c (select_convert_out):
10156
10157         * sysdep.c:
10158         * sysdep.c (xemacs_stat):
10159         renamed.
10160
10161         * sysdep.c (mkdir):
10162         * sysdep.c (rmdir):
10163         but keep original stat() here because we provide encapsulation
10164         around these funs.
10165
10166         * sysfile.h:
10167         * sysfile.h (fstat):
10168         remove stat garbage.
10169
10170         * syswindows.h:
10171         fix X/MSW conflict.
10172         don't include tchar.h.  it's inappropriate because it makes
10173         compile-time distinctions when we want runtime distinctions.
10174         (we provide our own tchar replacements)
10175
10176         * toolbar.c:
10177         use default object printer for toolbar-button.
10178
10179         * unexcw.c:
10180         make sure we don't encapsulate.
10181
10182         * window.c (vars_of_window):
10183         emphasize that temp-buffer-show-hook is obsolete.
10184
10185 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10186
10187         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10188         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10189
10190         * events.c (Fevent_timestamp_lessp):
10191         Not 64-bit clean.  Use EMACS_INT, not int.
10192
10193 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10194
10195         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10196         unsigned int and changed the last enum to
10197         lrecord_type_last_built_in_type.
10198         (lrecord_implementations_table): changed prototype to know how
10199         long the array is supposed to be.
10200         (lrecord_type_count): new unsigned int to keep track of the
10201         current number of lisp lrecord types.
10202         (DEFINE_EXTERNAL_LRECORD):
10203         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10204         dynamic-modules to declare new lisp types. They are the same
10205         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10206         int for each new type, and increment lrecord_type_count by 1.
10207
10208         * alloc.c (lrecord_implementations_table): Changed to reference
10209         lrecord_type_last_built_in_type for the size of the array.
10210         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10211
10212 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10213
10214         * glyphs.h (check_valid_item_list): Renamed from
10215         check_valid_item_list_1.
10216
10217 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10218
10219         * select.c (Qselect_coerce): New.
10220         * select.c (Vselection_coercion_alist): New.
10221         * select.c (syms_of_select): Declare.
10222         * select.c (get-selection-internal): Use it.
10223         Use the new select-coerce functionality.
10224
10225         * select.c (select_coerce): New.
10226         * select.h (select_coerce): Declare.
10227         New function to coerce one type of data into another.
10228
10229 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10230
10231         * callproc.c (Fcall_process_internal):
10232         (Fcall_process_internal):
10233         * process-unix.c (unix_create_process):
10234         Save and restore the value of errno, so that error messages are accurate.
10235
10236 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10237
10238         * elhash.c (print_hash_table):
10239         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10240         Prettify docstrings and indentation.
10241
10242 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10243
10244         * window.c (Fwindow_pixel_edges): Subtract frame border and
10245         gutter size.
10246
10247 2000-07-31  Andy Piper  <andy@xemacs.org>
10248
10249         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10250         will acknowledge the change.
10251
10252         * glyphs.h: declare tab_control_order_only_changed.
10253
10254         * glyphs-x.c (x_tab_control_redisplay): use
10255         tab_control_order_only_changed.
10256
10257         * glyphs-widget.c (tab_control_order_only_changed): new function.
10258
10259         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10260         tab_control_order_only_changed.
10261
10262         * gui.c (gui_item_equal_sans_selected): new function.
10263         (gui_item_equal): use it.
10264
10265         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10266         :properties in favor of :items..
10267
10268         * glyphs-widget.c (check_valid_item_list): rename from
10269         check_valid_item_list_1.
10270         (check_valid_item_list_1): renamed.
10271         (combo_box_validate): deprecate :properties in favor of :items.
10272         (widget_instantiate): ditto.
10273         (tab_control_update): ditto.
10274         (image_instantiator_combo_box): ditto.
10275         (image_instantiator_tree_view): ditto.
10276         (image_instantiator_tab_control): ditto.
10277         (layout_post_instantiate): remove dead code.
10278
10279         * print.c (debug_print_no_newline): only write to debugger if in
10280         WIN32_NATIVE.
10281
10282         * elhash.c (Fmake_hash_table): update doc string.
10283
10284         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10285         messages whilst in GC. This at least stops XEmacs crashing but has
10286         the potential for wierd behaviour.
10287
10288 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10289
10290         * config.h.in:
10291         Make existence of s&m files optional.
10292
10293         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10294         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10295         * s/gnu.h: Remove HAVE_GETLOADAVG.
10296         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10297         * s/sol2.h: Remove HAVE_GETLOADAVG.
10298         * lisp.h: Remove getloadavg() declaration.
10299         * fns.c:
10300         Include <sys/loadavg.h> if available.
10301         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10302         * config.h.in:  Group together getloadavg()-related macros.
10303         Use only configure-time tests to detect getloadavg().
10304
10305 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10306
10307         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10308
10309 2000-07-25  Andy Piper  <andy@xemacs.org>
10310
10311         * syswindows.h: add tchar.h for native builds.
10312
10313         * frame.c (syms_of_frame): remove set-glyph-image.
10314
10315         * general-slots.h: add Qset_glyph_image.
10316
10317         * glyphs-widget.c (layout_update): add domain arg to
10318         set-glyph-image.
10319         (syms_of_glyphs_widget): remove set-glyph-image.
10320
10321 2000-07-23  Ben Wing  <ben@xemacs.org>
10322
10323         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10324         Vpopup_frame_list.
10325
10326 2000-07-22  Andy Piper  <andy@xemacs.org>
10327
10328         * symsinit.h: add syms_of_win32().
10329
10330         * gui-msw.c (syms_of_gui_mswindows): remove
10331         Fmswindows_shell_execute.
10332         (Fmswindows_shell_execute): moved to win32.c.
10333
10334         * emacs.c (main_1): add syms_of_win32 ().
10335
10336         * win32.c (init_potentially_nonexistent_functions): rewrite in
10337         compiler-friendly terms.
10338         (Fmswindows_shell_execute): move here from gui-msw.c.
10339         (syms_of_win32): new.
10340
10341         * device-msw.c (Fmswindows_printer_list): clean up args to
10342         EnumPrinters.
10343         Don't include tchar under cygwin or mingw.
10344         (msprinter_default_printer): make cygwin-friendly.
10345
10346 2000-07-21  Andy Piper  <andy@xemacs.org>
10347
10348         * glyphs-widget.c (image_instantiator_tree_view): use tab
10349         control's update function.
10350         (layout_property): new function. Retrieve items.
10351
10352         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10353         function. Re-populate the tree view from the pending items.
10354
10355         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10356         is designated the parent if the domain is an image instance. This
10357         is needed so that dirtiness can be cascade up the hierarchy and
10358         thus for layout children to be redisplayed correctly.
10359         (allocate_image_instance): rename glyph -> parent.
10360
10361         * redisplay.h: change redisplay_output_layout signature.
10362
10363         * redisplay-msw.c (mswindows_output_display_block): use domain
10364         arg.
10365
10366         * redisplay-x.c (x_output_display_block): use domain arg.
10367
10368 2000-07-10  Andy Piper  <andy@xemacs.org>
10369
10370         * window.c (Fset_window_configuration): add comment.
10371
10372         * redisplay-output.c (compare_runes):
10373         (redisplay_output_subwindow): redisplay rather than update subwindow.
10374         (redisplay_output_layout): ditto.
10375
10376         * redisplay-msw.c (mswindows_frame_output_end):
10377         (mswindows_frame_output_end): make defer window pos optional.
10378
10379         * lisp.h: add Flast.
10380
10381         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10382         normalize method. Change update method to be for changed
10383         instantiators. Add redisplay method. Change signature of layout
10384         method.
10385         (struct Lisp_Image_Instance): add instantiator.
10386         (IMAGE_INSTANCE_INSTANTIATOR): new.
10387         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10388         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10389         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10390
10391         * glyphs.c:
10392         (find_instantiator_differences): new function.
10393         (Fset_instantiator_property): new convenience function.
10394         (check_image_instance_structure): strictly check for vector
10395         instantiators.
10396         (normalize_image_instantiator): make non-static.
10397         (instantiate_image_instantiator): pass on dest_mask and use new
10398         signatures for image_instance_layout and friends.
10399         (mark_image_instance): mark the instantiator. Mark the subwindow
10400         face not the widget face.
10401         (image_instance_equal): add instantiator.
10402         (image_instance_hash): ditto.
10403         (allocate_image_instance): ditto.
10404         (Fset_image_instance_property): removed.
10405         (Fimage_instance_file_name): ditto.
10406         (Fcolorize_image_instance): ditto.
10407         (image_instance_layout): add offsets to be set.
10408         (update_image_instance): new function. update an image instance
10409         from its changed instantiator.
10410         (inherit_normalize): add dest_mask.
10411         (xbm_normalize): ditto.
10412         (xface_normalize): ditto.
10413         (xpm_normalize): ditto.
10414         (text_update): set_property -> update.
10415         (image_instantiate): use the glyph identity as a hash key, not the
10416         instantiator.
10417         (glyph_width): use new image_instance_layout signature.
10418         (glyph_ascent): ditto.
10419         (glyph_descent): ditto.
10420         (glyph_height): ditto.
10421         (glyph_query_geometry): ressurrect.
10422         (glyph_layout): ditto.
10423         (redisplay_subwindow): update -> redisplay.
10424         (syms_of_glyphs): add Fset_instantiator_property.
10425         (image_instantiator_format_create): set_property -> update.
10426
10427         * glyphs-x.c:
10428         (autodetect_normalize): add dest_maks to signature.
10429         (x_redisplay_subwindow): update -> redisplay.
10430         (x_redisplay_widget): ditto.
10431         (x_button_redisplay): ditto.
10432         (x_progress_gauge_redisplay): ditto.
10433         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10434         stacking order.
10435         (console_type_create_glyphs_x): update -> redisplay.
10436         (image_instantiator_format_create_glyphs_x): ditto.
10437
10438         * glyphs-widget.c:
10439         (check_valid_instantiator): disallow glyphs in the instantiator,
10440         they must now be vectors.
10441         (check_valid_instantiator_list): ditto.
10442         (glyph_instantiator_to_glyph): use internal symbol rather than
10443         intern.
10444         (widget_update): renamed from widget_set_property. Call cascaded
10445         update methods.
10446         (redisplay_widget): renamed from update_widget.
10447         (widget_layout): image_instance_layout now takes position as well
10448         as size.
10449         (widget_normalize): ditto.
10450         (widget_instantiate): ditto.
10451         (tab_control_query_geometry) ditto.:
10452         (tab_control_update): renamed from tab_control_set_property.
10453         (progress_gauge_update): set_property -> update.
10454         (layout_normalize): rewrite so that child instantiators are
10455         normalized also.
10456         (layout_update): new function. Create glyphs from the normalized
10457         children and cope with any other layout keywords. We do not
10458         instantiate children here that will be take care of by
10459         redisplay_output_layout.
10460         (layout_instantiate): call layout_update and not much else.
10461         (layout_post_instantiate): not sure whether this is needed
10462         anymore.
10463         (layout_query_geometry): query glyph geometry rather than
10464         image_instance geometry.
10465         (layout_layout): set offsets from pass in parameters. Use glyph
10466         geometry and layout functions rather than image instance ones.
10467         (native_layout_layout): ditto.
10468         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10469         (image_instantiator_widget): set_property -> update.
10470         (image_instantiator_buttons): ditto.
10471         (image_instantiator_progress_guage): ditto.
10472         (image_instantiator_tab_control): ditto.
10473         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10474         (image_instantiator_layout): add update method.
10475
10476         * glyphs-msw.c (bmp_normalize):
10477         (mswindows_resource_normalize): add dest_mask so that it can be
10478         proprogated by layout_normalize.
10479         (begin_defer_window_pos): make optional because it may not be the
10480         right thing to do and it introduces differences with X.
10481         (mswindows_unmap_subwindow): ditto.
10482         (mswindows_map_subwindow): ditto.
10483         (mswindows_redisplay_subwindow): renamed from
10484         mswindows_update_subwindow.
10485         (mswindows_redisplay_widget): ditto.
10486         (mswindows_button_redisplay): renamed from
10487         mswindows_button_update. Update is now what the instantiation
10488         function does for a changed instantiator.
10489         (mswindows_progress_gauge_instantiate): set the progress value
10490         here if appropriate.
10491         (mswindows_tab_control_redisplay): cope with re-ordering of the
10492         members of the tab widget by simply selecting the new top
10493         widget. This makes things appear ok if you click on a tab.
10494         (mswindows_combo_box_instantiate): image_instance_layout now takes
10495         position as well as size.
10496         (mswindows_progress_gauge_redisplay): renamed from
10497         mswindows_progress_gauge_update.
10498         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10499         (image_instantiator_format_create_glyphs_mswindows): ditto.
10500
10501         * glyphs-eimage.c (jpeg_normalize):
10502         (gif_normalize):
10503         (png_normalize):
10504         (tiff_normalize): add dest_mask so that it can be proprogated by
10505         layout_normalize.
10506
10507         * elhash.c:
10508         (print_hash_table):
10509         (hash_table_weakness_validate):
10510         (decode_hash_table_weakness):
10511         (Fhash_table_weakness):
10512         (Fhash_table_type):
10513         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10514
10515         * console.h (struct console_methods): move update_* to
10516         redisplay_*.
10517
10518 2000-07-20  Ben Wing  <ben@xemacs.org>
10519
10520         * *.[ch] (XSETOBJ): remove unused middle argument.
10521         lisp-disunion.h: correct wrap_object() to one argument.
10522
10523 2000-07-15  Ben Wing  <ben@xemacs.org>
10524
10525         * s/cygwin32.h:
10526         * s/cygwin32.h (CYGWIN_CONV_PATH):
10527         Add missing logb prototype for v1.1.
10528         Use post-b20 names and alias to pre-b20 names when pre-b20.
10529
10530         * s/windowsnt.h: [5].
10531
10532 2000-07-15  Ben Wing  <ben@xemacs.org>
10533
10534         * Makefile.in.in (x_objs):
10535         * Makefile.in.in (sheap_objs):
10536         * Makefile.in.in (objs):
10537         added win32.o, cosmetic cleanups.
10538
10539         * alloc.c (Fmake_byte_code):
10540         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10541         etc. macros which declare their own args now.
10542
10543         * alloc.c (syms_of_alloc):
10544         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10545
10546         * buffer.c:
10547         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10548
10549         * buffer.c (Fget_file_buffer):
10550         Fixed GCPRO problem.
10551
10552         * buffer.c (get_truename_buffer):
10553         Fixed comment about GC checking.
10554
10555         * buffer.c (syms_of_buffer):
10556         Undeclared those dedicated frame funs.
10557         [2].
10558
10559         * buffer.h:
10560         Define convenience macros for internal/external conversions.
10561         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10562         and Qenvironment_variable_encoding for cleaner code.
10563
10564         * bufslots.h:
10565         Remove dedicated-frame; in lisp.
10566
10567         * bytecode.c (funcall_compiled_function):
10568         [1].
10569
10570         * bytecode.c (syms_of_bytecode):
10571         [2].
10572
10573         * console-msw.c:
10574         * console-msw.c (mswindows_show_console): Rewrote.
10575
10576         * console-msw.c (Fmswindows_debugging_output): New.
10577         Sends to OutputDebugString (special MSWin debugger interface).
10578
10579         * console-msw.c (Fmswindows_message_box):
10580         Fixed stupid bugs so it works when called from kill-emacs.
10581
10582         * console-msw.c (syms_of_console_mswindows):
10583         Declare Fmswindows_debugging_output.
10584
10585         * console-msw.h:
10586         New MSWin prototypes.
10587
10588         * console-msw.h (struct mswindows_frame):
10589         New entry last-click-mods for improved button-modifier support.
10590
10591         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10592         New struct entry `popup' with corresponding accessor.
10593
10594         * console-x.c:
10595         * console-x.c (split_up_display_spec):
10596         * console-x.c (get_display_arg_connection):
10597         * console-x.c (x_semi_canonicalize_console_connection):
10598         * console-x.c (x_canonicalize_device_connection):
10599         [[[6]]]: Change char to more specific type.
10600         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10601
10602         * console-x.c (x_semi_canonicalize_console_connection):
10603         * console-x.c (x_canonicalize_device_connection):
10604         [[[9]]]: Fix up error signalling to use new structured error system.
10605
10606         * console-x.h:
10607         [[[4]]]: Define codesys aliases:
10608         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10609         Qx_color_name_encoding, Qx_display_name_encoding.
10610
10611         * console.h (struct console_methods):
10612         New method make_dialog_box_internal supersedes older
10613         popup_dialog_box method.
10614
10615         * data.c:
10616         Define many new errors, part of new structured errors.
10617
10618         * data.c (init_errors_once_early):
10619         * data.c (syms_of_data):
10620         [2].
10621
10622         * device-msw.c (mswindows_init_device):
10623         [[[5]]]: Cleanup to support NT 3.51.
10624
10625         * device-msw.c (decode_devmode): Cleanup.
10626
10627         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10628         * device-msw.c (mswindows_handle_print_dialog_box):
10629         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10630         * device-msw.c (syms_of_device_mswindows):
10631         Delete the dialog box primitives recently introduced by Kirill and
10632         instead interface to general dialog box interface.
10633
10634         * device-x.c:
10635         * device-x.c (compute_x_app_name):
10636         * device-x.c (x_init_device):
10637         * device-x.c (Fx_valid_keysym_name_p):
10638         * device-x.c (Fx_set_font_path):
10639         [6].
10640         [7].
10641
10642         * device.h (wrap_device): New.
10643         First of its kind; meant to replace XSETDEVICE.
10644
10645         * dialog-msw.c: Many file-dialog symbols.
10646
10647         * dialog-msw.c (mswindows_register_popup_frame): New.
10648         * dialog-msw.c (mswindows_is_dialog_msg): New.
10649         For supporting kbd traversal in dialog boxes.
10650
10651         * dialog-msw.c (dialog_proc):
10652         Support hitting ESC in dialogs.
10653
10654         * dialog-msw.c (struct):
10655         Common dialog box errors.
10656
10657         * dialog-msw.c (handle_file_dialog_box): New.
10658         Add file dialog code.
10659
10660         * dialog-msw.c (handle_question_dialog_box):
10661         Redo existing code to support new question dialog syntax.
10662
10663         * dialog-msw.c (console_type_create_dialog_mswindows):
10664         We support new dialog console method.
10665
10666         * dialog-msw.c (syms_of_dialog_mswindows):
10667         * dialog-msw.c (vars_of_dialog_mswindows):
10668         New file dialog symbols, vars.
10669
10670         * dialog-x.c:
10671         * dialog-x.c (maybe_run_dbox_text_callback):
10672         * dialog-x.c (dbox_descriptor_to_widget_value):
10673         * dialog-x.c (x_make_dialog_box_internal):
10674         * dialog-x.c (console_type_create_dialog_x):
10675         Mule-ize entire file.
10676         Redo to support question dialog syntax.
10677         [6].
10678
10679         * dialog.c:
10680         * dialog.c (Fmake_dialog_box_internal):
10681         * dialog.c (syms_of_dialog):
10682         Kill old popup-dialog-box, replace with new primitive.
10683         Just call device method or signal error.
10684
10685         * eldap.c (Fldap_open):
10686         * eldap.c (Fldap_search_basic):
10687         * eldap.c (Fldap_add):
10688         * eldap.c (Fldap_modify):
10689         [1].
10690         [7].
10691
10692         * emacs.c:
10693         * emacs.c (make_arg_list_1):
10694         * emacs.c (make_arg_list):
10695         Mule-ize call to dll_init().
10696         [6].
10697         [8].
10698
10699         * emacs.c (make_argc_argv):
10700         * emacs.c (free_argc_argv):
10701         * emacs.c (init_cmdargs):
10702         * emacs.c (main_1):
10703         * emacs.c (Fkill_emacs):
10704         * emacs.c (Fdump_emacs):
10705         Update comments about what can be used in syms_* etc.
10706         Call init_win32() when necessary.
10707         Fix up MS Win dialog box in kill-buffer to actually work right.
10708         [7].
10709
10710         * eval.c:
10711         * eval.c (For):
10712         * eval.c (Fand):
10713         * eval.c (Fprogn):
10714         * eval.c (Fprog1):
10715         * eval.c (Fprog2):
10716         * eval.c (FletX):
10717         * eval.c (Flet):
10718         * eval.c (condition_case_3):
10719         * eval.c (Feval):
10720         * eval.c (function_argcount):
10721         * eval.c (funcall_lambda):
10722         [1].
10723
10724         * eval.c (type_error): New.
10725         * eval.c (maybe_type_error): New.
10726         * eval.c (continuable_type_error): New.
10727         * eval.c (maybe_continuable_type_error): New.
10728         * eval.c (type_error_with_frob): New.
10729         * eval.c (maybe_type_error_with_frob): New.
10730         * eval.c (continuable_type_error_with_frob): New.
10731         * eval.c (maybe_continuable_type_error_with_frob): New.
10732         New functions for use with structured errors.
10733
10734         * event-Xt.c:
10735         * event-Xt.c (x_event_to_emacs_event):
10736         Buttons are now modifiers too.
10737
10738         * event-Xt.c (emacs_Xt_current_event_timestamp):
10739         Implement new event method.
10740         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10741
10742         * event-msw.c:
10743         * event-msw.c (ntpipe_shove_writer): [5].
10744         * event-msw.c (mswindows_enqueue_mouse_button_event):
10745         * event-msw.c (mswindows_drain_windows_queue):
10746         * event-msw.c (mswindows_wnd_proc): [7].
10747         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10748         * event-msw.c (mswindows_modifier_state):
10749         Throughout: support new button modifiers.
10750
10751         * event-msw.c (emacs_mswindows_current_event_timestamp):
10752         Implement new event method.
10753         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10754
10755         * event-stream.c:
10756         * event-stream.c (event_stream_current_event_timestamp): New.
10757         * event-stream.c (maybe_kbd_translate): New functionality.
10758         * event-stream.c (vars_of_event_stream):
10759         Document new kbd-translate-table functionality.
10760
10761         * event-stream.c (Fcurrent_event_timestamp): New.
10762         New primitive for use in fabricated events.
10763         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10764
10765         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10766
10767         * events.c:
10768         * events.c (Fmake_event):
10769         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10770         [1].
10771         [9].
10772
10773         * events.c (format_event_object): fix gcc warnings.
10774
10775         * events.c (Fevent_timestamp): Document new primitives.
10776
10777         * events.c (TIMESTAMP_HALFSPACE): New.
10778
10779         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10780         comparing timestamps correctly (half-space algorithm).
10781
10782         * events.c (Fevent_modifier_bits): Doc fix.
10783
10784         * events.c (Fevent_modifiers): Major doc addition.
10785         * events.c (event_x_y_pixel_internal): Typo fix.
10786         * events.c (syms_of_events): Declare new primitives.
10787
10788         * events.h:
10789         Update long comment for button modifiers, timestamps.
10790
10791         * events.h (struct event_stream):
10792         New current_event_timestamp method.
10793
10794         * extents.c:
10795         * extents.c (extent_in_region_p):
10796         * extents.c (decode_extent):
10797         * extents.c (Fset_extent_parent):
10798         * extents.c (decode_map_extents_flags):
10799         Fix gcc warnings.
10800         [9].
10801
10802         * extents.c (struct extent_at_arg):
10803         * extents.c (decode_extent_at_flag):
10804         * extents.c (extent_at_mapper):
10805         * extents.c (extent_at_bytind):
10806         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10807         * extents.c (Fextents_at): New primitive. [9].
10808         * extents.c (symbol_to_glyph_layout): [9].
10809         Support new primitive `extents-at'.
10810
10811
10812         * extents.c (get_text_property_bytind):
10813         extent_at_bytind has another arg.
10814         [9].
10815
10816         * extents.c (syms_of_extents): New primitive.
10817
10818         * file-coding.c (Fmake_coding_system): [1].
10819         * file-coding.c (subsidiary_coding_system): fix gcc warning
10820         * file-coding.c (syms_of_file_coding): [2].
10821
10822         * fileio.c (Fexpand_file_name):
10823         * fileio.c (Fsysnetunam):
10824         * fileio.c (Ffile_exists_p):
10825         * fileio.c (Ffile_executable_p):
10826         * fileio.c (Fverify_visited_file_modtime):
10827         Clean up GCPROing.
10828
10829         * fileio.c (syms_of_fileio): [2].
10830
10831         * filelock.c (lock_file_1):
10832         * filelock.c (current_lock_owner):
10833         * filelock.c (lock_if_free):
10834         * filelock.c (lock_file):
10835         * filelock.c (unlock_file):
10836         Clean up GCPROing.
10837
10838         * fns.c (concat): Fix gcc warning.
10839
10840         * fns.c (Fmember):
10841         * fns.c (Fold_member):
10842         * fns.c (Fmemq):
10843         * fns.c (Fold_memq):
10844         * fns.c (memq_no_quit):
10845         * fns.c (Fassoc):
10846         * fns.c (Fold_assoc):
10847         * fns.c (Fassq):
10848         * fns.c (Fold_assq):
10849         * fns.c (assq_no_quit):
10850         * fns.c (Frassoc):
10851         * fns.c (Fold_rassoc):
10852         * fns.c (Frassq):
10853         * fns.c (Fold_rassq):
10854         * fns.c (rassq_no_quit):
10855         * fns.c (Fdelete):
10856         * fns.c (Fold_delete):
10857         * fns.c (Fdelq):
10858         * fns.c (Fold_delq):
10859         * fns.c (delq_no_quit):
10860         * fns.c (Fremassoc):
10861         * fns.c (Fremassq):
10862         * fns.c (remassq_no_quit):
10863         * fns.c (Fremrassoc):
10864         * fns.c (Fremrassq):
10865         * fns.c (remrassq_no_quit):
10866         * fns.c (Freverse):
10867         * fns.c (mapcar1):
10868         [1].
10869
10870         * frame-msw.c (mswindows_init_frame_1):
10871         * frame-msw.c (mswindows_delete_frame):
10872         Register popups with dialog code so keyboard traversing works.
10873
10874         * frame-tty.c (tty_raise_frame_no_select): [1].
10875
10876         * frame-x.c:
10877         * frame-x.c (x_set_frame_text_value):
10878         * frame-x.c (x_set_frame_properties):
10879         * frame-x.c (x_create_widgets):
10880         [7].
10881
10882         * frame.c:
10883         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10884
10885         * frame.h (wrap_frame): New.
10886         Macro like wrap_device.
10887
10888         * general.c:
10889         * general.c (SYMBOL):
10890         * general.c (syms_of_general):
10891         Major reorg.  This is now just a wrapper and symbols themselves
10892         are listed in general-slots.h.
10893
10894         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10895         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10896
10897         * glyphs-msw.c (mswindows_native_layout_instantiate):
10898         Add DS_CONTROL so keyboard traversal will work.
10899
10900         * glyphs-widget.c:
10901         * glyphs-widget.c (syms_of_glyphs_widget):
10902         Move some symbols to general-slots.h.
10903
10904         * glyphs-x.c:
10905         * glyphs-x.c (xbm_instantiate_1):
10906         * glyphs-x.c (x_xbm_instantiate):
10907         * glyphs-x.c (x_xface_instantiate):
10908         * glyphs-x.c (autodetect_instantiate):
10909         * glyphs-x.c (cursor_font_instantiate):
10910         * glyphs-x.c (x_update_widget):
10911         * glyphs-x.c (x_widget_instantiate):
10912         * glyphs.c (bitmap_to_lisp_data):
10913         * glyphs.c (pixmap_to_lisp_data):
10914         [7].
10915
10916         * glyphs.c (syms_of_glyphs):
10917         [2].
10918
10919         * gui-x.c:
10920         * gui-x.c (print_widget_value):
10921         * gui-x.c (menu_separator_style_and_to_external):
10922         * gui-x.c (add_accel_and_to_external):
10923         * gui-x.c (button_item_to_widget_value):
10924         * gui-x.c (gui_items_to_widget_values_1):
10925         * gui-x.c (gui_items_to_widget_values):
10926         * gui-x.c (syms_of_gui_x):
10927         * gui-x.c (vars_of_gui_x):
10928         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10929         [9].
10930
10931         * gui-x.h:
10932         Muleize, prototype changes matching gui-x.c.
10933
10934         * gui.c:
10935         * gui.c (separator_string_p):
10936         * gui.c (gui_item_add_keyval_pair):
10937         * gui.c (make_gui_item_from_keywords_internal):
10938         * gui.c (signal_too_long_error):
10939         * gui.c (parse_gui_item_tree_item):
10940         * gui.c (syms_of_gui):
10941         * gui.c (vars_of_gui):
10942         * gui.h:
10943         menu-no-selection-hook moved here (used by MSWin).
10944         Move some symbols to general-slots.h.
10945         [6].
10946         [9].
10947
10948         * insdel.c (get_buffer_pos_char):
10949         * insdel.c (get_buffer_range_char):
10950         Add GC comments.
10951
10952         * keymap.c (keymap_lookup_directly):
10953         * keymap.c (keymap_store):
10954         * keymap.c (ensure_meta_prefix_char_keymapp):
10955         * keymap.c (describe_map):
10956         * keymap.h:
10957         Support new button modifiers.
10958
10959         * lisp-disunion.h (wrap_object):
10960         * lisp-disunion.h (XSETOBJ):
10961         Rename make_obj to wrap_object.
10962
10963         * lisp-union.h:
10964         * lisp-union.h (make_int):
10965         * lisp-union.h (make_char):
10966         Support wrap_object.
10967
10968         * lisp.h:
10969         * lisp.h (LIST_LOOP):
10970         * lisp.h (EXTERNAL_LIST_LOOP):
10971         * lisp.h (LIST_LOOP_2):
10972         * lisp.h (EXTERNAL_LIST_LOOP_1):
10973         * lisp.h (EXTERNAL_LIST_LOOP_2):
10974         * lisp.h (EXTERNAL_LIST_LOOP_3):
10975         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10976         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10977         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10978         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10979         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10980         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10981         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10982         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10983         * lisp.h (struct Lisp_Symbol):
10984         * lisp.h (maybe_continuable_error_with_frob):
10985         Fix up section comments.
10986         Add new types for char to indicate usage.
10987         Delete symbols auto-generated from general-slots.h.
10988         Add prototypes for structured error functions.
10989         Add long comments describing looping macros and change interface
10990         so that lvalues are automatically declared.
10991         Add NO_DECLARE macro in case callers want to declare lvalues
10992         themselves.
10993
10994         * lread.c (read_syntax_error):
10995         * lread.c (continuable_read_syntax_error):
10996         * lread.c (read_structure):
10997         * lread.c (sequence_reader):
10998         * lread.c (read_list_conser):
10999         * lread.c (read_compiled_function):
11000         Rename syntax_error and continuable_syntax_error to avoid clash
11001         with same-named structured error functions.
11002
11003         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11004         * menubar-msw.c (populate_menu_add_item):
11005         * menubar-msw.c (populate_or_checksum_helper):
11006         [5].
11007         [9].
11008
11009         * menubar-x.c:
11010         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11011         Mule-ize whole file.
11012
11013         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11014
11015         * mule-charset.c (Fmake_charset):
11016         * mule-wnnfns.c (Fwnn_set_param):
11017         [1].
11018
11019         * ntproc.c (create_child):
11020         * ntproc.c (Fwin32_set_current_locale):
11021         Add comments portending doom.
11022
11023         * objects-msw.c:
11024         * objects-msw.c (old_font_enum_callback_2):
11025         * objects-msw.c (font_enum_callback_1):
11026         * objects-msw.c (mswindows_enumerate_fonts):
11027         [5].
11028
11029         * objects-x.c:
11030         * objects-x.c (allocate_nearest_color):
11031         * objects-x.c (x_parse_nearest_color):
11032         * objects-x.c (x_initialize_color_instance):
11033         * objects-x.c (x_print_color_instance):
11034         * objects-x.c (x_finalize_color_instance):
11035         * objects-x.c (x_valid_color_name_p):
11036         * objects-x.c (x_initialize_font_instance):
11037         * objects-x.c (x_print_font_instance):
11038         * objects-x.c (valid_x_font_name_p):
11039         * objects-x.c (truename_via_FONT_prop):
11040         * objects-x.c (truename_via_random_props):
11041         * objects-x.c (truename_via_XListFonts):
11042         * objects-x.c (x_font_truename):
11043         * objects-x.c (x_font_instance_truename):
11044         * objects-x.c (x_font_instance_properties):
11045         * objects-x.c (x_list_fonts):
11046         * objects-x.c (x_find_charset_font):
11047         Mule-ize entire file.
11048         [7].
11049
11050         * objects-x.h:
11051         Mule-verify.
11052
11053         * print.c:
11054         * print.c (std_handle_out_external):
11055         * print.c (debug_print_no_newline):
11056         * print.c (syms_of_print):
11057         Output to all debugger kinds in debug-print.
11058         Fix console-output code under MSWin to actually work.
11059
11060         * process-nt.c (send_signal):
11061         * process-nt.c (nt_create_process):
11062         Use newer Unicode macros.
11063
11064         * process-unix.c (unix_create_process):
11065         * process-unix.c (unix_canonicalize_host_name):
11066         * process-unix.c (unix_open_network_stream):
11067         [7].
11068
11069         * scrollbar-x.c:
11070         Mule-verify.
11071
11072         * search.c (syms_of_search):
11073         [2].
11074
11075         * select-msw.c (mswindows_destroy_selection):
11076         Use LIST_LOOP_2.
11077
11078         * select-x.c (symbol_to_x_atom):
11079         [7].
11080
11081         * select.c (syms_of_select):
11082         [2].
11083
11084         * sound.c (Fplay_sound_file):
11085         [7].
11086
11087         * specifier.c:
11088         * specifier.c (decode_specifier_type):
11089         * specifier.c (Fvalid_specifier_locale_type_p):
11090         * specifier.c (check_valid_locale_or_locale_type):
11091         * specifier.c (decode_locale):
11092         * specifier.c (decode_locale_type):
11093         * specifier.c (decode_locale_list):
11094         * specifier.c (check_valid_domain):
11095         * specifier.c (decode_specifier_tag_set):
11096         * specifier.c (Fcanonicalize_tag_set):
11097         * specifier.c (Fdefine_specifier_tag):
11098         * specifier.c (Fspecifier_tag_predicate):
11099         * specifier.c (check_valid_inst_list):
11100         * specifier.c (check_valid_spec_list):
11101         * specifier.c (decode_how_to_add_specification):
11102         * specifier.c (check_modifiable_specifier):
11103         * specifier.c (specifier_add_spec):
11104         * specifier.c (boolean_validate):
11105         * specifier.c (display_table_validate):
11106         [9].
11107
11108         * specifier.c (syms_of_specifier):
11109         Move some symbols to general-slots.h.
11110         [2].
11111
11112         * symbols.c:
11113         * symbols.c (Fmapatoms):
11114         * symbols.c (Fapropos_internal):
11115         Add GCPROs.
11116
11117         * symbols.c (set_default_buffer_slot_variable):
11118         * symbols.c (set_default_console_slot_variable):
11119         [1].
11120
11121         * symbols.c (defsymbol_massage_name_1):
11122         * symbols.c (defkeyword_massage_name):
11123         * symbols.c (deferror_1):
11124         * symbols.c (deferror):
11125         * symbols.c (deferror_massage_name_and_message):
11126         * symeval.h:
11127         * symeval.h (DEFSYMBOL):
11128         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11129
11130         * symbols.c (syms_of_symbols):
11131         [2].
11132
11133         * symsinit.h:
11134         * symsinit.h (init_win32): New.
11135         Also new is syms_of_dialog_mswindows.
11136
11137         * syswindows.h:
11138         Add new Unicode macros, missing Cygwin wide-char functions,
11139         convenience conversion macros for Qmswindows_tstr, macros for
11140         encapsulating required MSWin <-> Cygwin filename conversions,
11141         prototype for dynamically-extracted (not in NT 3.51) functions.
11142
11143         * toolbar-x.c:
11144         Mule-verify.
11145
11146         * tooltalk.c (Fadd_tooltalk_message_arg):
11147         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11148         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11149         [7].
11150
11151         * tooltalk.c (syms_of_tooltalk):
11152         [2].
11153
11154         * unexnt.c:
11155         * unexnt.c (unexec):
11156         Fix up headers, declaration of unexec() to be more standard.
11157
11158 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11159
11160         * offix.h: Revert change to guard macros - they're used in offix.c!
11161
11162 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11163
11164         * lisp.h: Defsubred Fdelete.
11165
11166         * console-msw.h:  (msprinter_default_printer): Added.
11167
11168         * console-msw.c (msprinter_canonicalize_console_connection):
11169         (msprinter_canonicalize_device_connection): Added.
11170
11171         * device-msw.c (msprinter_default_printer):
11172         (Fmswingows_get_default_printer):
11173         (signal_enum_priner_error):
11174         (Fmswingows_printer_list): Added.
11175
11176 2000-07-19  Martin Buchholz <martin@xemacs.org>
11177
11178         * XEmacs 21.2.35 is released.
11179
11180 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11181
11182         * select-x.c (x_handle_selection_request):
11183         Text selected in xemacs and pasted into xterm failed to appear.
11184         Spelling fixes and cosmetic changes.
11185
11186 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11187
11188         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11189         XEmacs frame (fix for doubling chars in dialog boxes).
11190
11191 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11192
11193         * select.c (select_convert_in, select_convert_out):
11194         Don't call intern() every time.
11195
11196         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11197         * select.c (vars_of_select): Initialise them.
11198
11199 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11200
11201         * select.c (selection-coercible-types): New.
11202
11203         * select.c (own-selection-internal):
11204         * select.c (get-selection-internal):
11205         MULE bug fix - these should default to COMPOUND_TEXT and not
11206         STRING for MULE. I think.
11207
11208         * select.c (select_convert_out): Use selection-coercible-types
11209         to find types that we can attempt to perform coercions on.
11210
11211 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11212
11213         * mule-wnnfns.c:
11214         * mule-canna.c:
11215         Add coding: cookie to identify encoding.
11216
11217         * mule-canna.c (CANNA_mode_keys): make static.
11218         Use proper prototypes, even for functions of no arguments.
11219         Remove external prototype for Fding().
11220
11221         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11222
11223         * select.c (syms_of_select): Add missing DEFSUBR.
11224
11225 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11226
11227         * select.c (get_selection_internal, own_selection_internal):
11228         Make the type default to STRING, rather than placing a nil type
11229         into Vselection_alist.
11230
11231 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11232
11233         * gpmevent.c (tty_selection_exists_p):
11234         * gpmevent.c (tty_own_selection):
11235         Updated parameter lists.
11236
11237 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11238
11239         * select.h (selection-alist): Removed declaration.
11240
11241         * select.h (get_local_selection):
11242         * select.c (get_local_selection):
11243         Made static.
11244
11245         * select.h (convert_selection): Removed declaration.
11246         * select.c (convert_selection): Removed.
11247         This function belongs in Lisp.
11248
11249         * select.h (select_convert_in): Declare.
11250         * select.h (select_convert_out): Declare.
11251         * select.c (select_convert_in): New.
11252         * select.c (select_convert_out): New.
11253         New conversion functions for other files to call.
11254
11255         * select.h (select_notify_buffer_kill): Declare.
11256         * select.c (select_notify_buffer_kill): New.
11257         New functions that get called from kill-buffer.
11258
11259         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11260         X-specific lisp code.
11261
11262         * select.h: Declare some of the lisp-visible functions for
11263         external use.
11264
11265         * select.c (clean_local_selection_data): Removed. This was
11266         a disgusting function, and previously should have been in
11267         select-x.c in any case. The functionality is now provided
11268         in select-convert-from-integer (select.el).
11269
11270         * select.c (available-selection-types): Fixed stupidity where
11271         INTEGER and ATOM got added twice. Also add STRING when we see an
11272         extent.
11273
11274         * select.c (get-selection-internal): Removed symbol stripping. No
11275         longer causes conversion when data comes from the internal cache.
11276
11277         * select.c (syms_of_select): Added new functions.
11278
11279         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11280         error checking - previously this called abort!
11281
11282         * select-x.c (x_own_selection): Changed comment.
11283
11284         * select-x.c (x_handle_selection_request): Use select_convert_out.
11285         Don't mess with selection-alist; it's an internal variable of select.c.
11286
11287         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11288
11289         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11290         rather than messing with selection-alist.
11291
11292         * select-msw.c (mswindows_get_foreign_selection):
11293         Use TO_INTERNAL_FORMAT rather than hacking.
11294
11295 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11296
11297         * process-unix.c (unix_open_multicast_group):
11298         (unix_open_multicast_group): Remove useless casts.
11299
11300 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11301
11302         * sound.c (Fplay_sound): Fix `unused variable' warning.
11303
11304         * emacs.c (main): Use correct type for _environ on SCO5.
11305
11306 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11307
11308         * console.h (own_selection_method):
11309         * console.h (selection_exists_p_method):
11310         * console.h (available_selection_types_method): New.
11311         * console.h (register_selection_data_type_method): New.
11312         * console.h (selection_data_type_name): New.
11313
11314         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11315         function & alist to track GlobalAlloc()'d handles that need
11316         releasing when the clipboard data gets replaced or emptied.
11317
11318         * event-msw.c (mswindows_wnd_proc): Call it.
11319
11320         * lisp.h, general.c (Qappend): New symbol representing a
11321         `how-to-add' mode.
11322
11323         * select.c (own-selection-internal):
11324         * select.c (selection-exists-p):
11325         * select.c (available-selection-types): New.
11326         * select.c (register-selection-data-type): New.
11327         * select.c (selection-data-type-name): New.  New functions to deal
11328         with device-specific selection data formats.
11329         * select.c (selection-converter-out-alist): Renamed.
11330         * select.c (selection-converter-in-alist): New.
11331         * select.c (selection-appender-alist): New.  Added new alists.
11332         * select.c (syms_of_select, vars_of_select): Added new symbols &
11333         variables.
11334         * select.c (get_local_selection): Split.
11335         * select.c: Removed spurious type checking - selections may now be
11336         of any type, not just strings.
11337         * select.c (own-selection-internal):
11338
11339         * select.h, select.c (convert_selection): New. Created
11340         convert_selection() function based on get_local_selection().
11341         * select.h, select.c (QCF_*): New symbols representing mswindows
11342         clipboard formats.
11343         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11344         symbols representing `how-to-add' modes.
11345
11346         * select-msw.c (x_sym_p): New.
11347         * select-msw.c (symbol_to_ms_cf): New.
11348         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11349         symbols & clipboard formats. Can also handle string names.
11350         * select-msw.c (mswindows_own_selection):
11351         * select-msw.c (mswindows_selection_exists_p):
11352         Added `data-type' parameter. Use it.
11353         * select-msw.c (mswindows_available_selection_types): New.
11354         * select-msw.c (mswindows_register_selection_data_type): New.
11355         * select-msw.c (mswindows_selection_data_type_name): New.
11356         * select-msw.c (mswindows_own_selection):
11357         * select-msw.c (mswindows_get_foreign_selection):
11358         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11359         * select-msw.c (console_create_select_mswindows): Added new methods.
11360         * select-msw.c (mswindows_destroy_selection): New.
11361         * select-msw.c (Vhandle_alist): New list.
11362         * select-msw.c (mswindows_own_selection):
11363
11364         * select-x.c (x_own_selection):
11365         * select-x.c (x_selection_exists_p):
11366         * select-x.c: Added some comments about maybe using new
11367         functionality.
11368         * select-x.c (x_own_selection):
11369
11370         * specifier.c: Remove definition of Qappend (now in general.c)
11371         * specifier.c (syms_of_specifier): Remove Qappend.
11372
11373 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11374
11375         * config.h.in: Add socklen_t.
11376
11377         * s/decosf4-0.h: No special compiler flags needed or desired.
11378         In particular, undefine _BSD for DEC OSF 4.0.
11379
11380 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11381
11382         * redisplay-msw.c (msprinter_frame_output_end): Added.
11383         (console_type_create_redisplay_mswindows): Referred the above.
11384
11385         * frame.c (setup_frame_without_minibuffer): Do not create a
11386         default minibuffer frame on a printer device.
11387
11388         * frame-msw.c (apply_dc_geometry): Added.
11389         (msprinter_start_page):
11390         (msprinter_init_frame_3):
11391         (msprinter_eject_page): Use it.
11392
11393         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11394         and removed residual duplex and orientation properties.
11395
11396 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11397
11398         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11399
11400         * unexalpha.c: Remove system prototypes from C sources!
11401
11402 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11403
11404         * eval.c: Remove references to M-x edit-options in DEFUNs for
11405         `defvar' and `defconst'.
11406
11407 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11408
11409         * config.h.in: Remove SMART_INCLUDE hackery.
11410
11411         PostgreSQL hacking:
11412         * config.h.in: Don't use SMART_INCLUDE.
11413
11414         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11415         * inline.c: Simply #include "postgresql.h"
11416         * postgresql.c:
11417         - Don't use SMART_INCLUDE
11418         - Use simply "const".
11419         - Use standard doc string conventions.
11420         - Use correct type for result of PQstatus.
11421
11422 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11423
11424         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11425
11426         C++ compilation changes.
11427         * config.h.in (EXTERN_C): Define.
11428         * config.h.in (not): This is also a C++ keyword.
11429         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11430         * cm.c: Use EXTERN_C.
11431         * redisplay-tty.c: Use EXTERN_C.
11432         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11433
11434 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11435
11436         * general.c: Remove duplicate definition for Qfunction.
11437
11438 2000-07-08  Ben Wing  <ben@xemacs.org>
11439
11440         * device-msw.c (msprinter_init_device):
11441         * device-msw.c (sync_printer_with_devmode):
11442         * device-msw.c (handle_devmode_changes):
11443         * device-msw.c (print_dialog_worker):
11444         * device-msw.c (Fmsprinter_apply_settings):
11445         * device-msw.c (hash_devmode):
11446         * device-msw.c (Fmsprinter_settings_despecialize):
11447         use Qmswindows_tstr, not Qctext.
11448
11449         * vm-limit.c (check_memory_limits):
11450         avoid infinite loop printing warning messages.
11451
11452 2000-07-05  Craig Lanning  <lanning@scra.org>
11453
11454         * Makefile.in.in: Add support for including the Windows resources
11455         when building with the cygwin and mingw targets.
11456
11457         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11458         not set or not correct.
11459         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11460         (init_initial_directory): Don't try to use $PWD on the
11461         WIN32_NATIVE target.
11462
11463         * s\cygwin32.h:
11464         [[Add -mwindows to eliminate console window.]] not required --ben
11465         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11466         (MAIL_USE_POP): removed; now handled by configure.
11467
11468         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11469         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11470         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11471         (MAIL_USE_POP): removed; now handled by configure.
11472         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11473         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11474         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11475         constant string.
11476         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11477         up from <winsock.h> via systime.h.
11478         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11479         (getpagesize): from Dan Holmsand, added.
11480         Added #endif which was left dangling by Ben's mega patch; added
11481         comment to help prevent this in the future.
11482
11483         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11484
11485 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11486
11487         * console-msw.h (struct mswindows_device): Removed unnecessary
11488         cached device geometry values.
11489         Added update_tick and an accessor macro.
11490         (Lisp_Devmode): Added lrecord declaration.
11491         (struct msprinter_device): Contain devmode as a Lisp object.
11492         Added mswindows_get_selected_frame_hwnd();
11493
11494         * console.h (struct console_methods): Indentation nitpicking.
11495
11496         * device-msw.c (mswindows_init_device): Do not initialize geometry
11497         cache. Initialize update tick.
11498         (mswindows_device_system_metrics): Ask the device for its geometry.
11499         (global_free_2_maybe):
11500         (devmode_to_hglobal):
11501         (handle_printer_changes):
11502         (ensure_not_printing):
11503         (print_dialog_worker):
11504         (Fmsprinter_print_setup_dialog):
11505         (Fmsprinter_print_dialog):
11506         (plist_get_margin):
11507         (plist_set_margin):
11508         (Fmsprinter_page_setup_dialog): Added functions.
11509         (sync_printer_with_devmode):
11510         (handle_devmode_changes):
11511         (Fmsprinter_get_settings):
11512         (Fmsprinter_select_settings):
11513         (Fmsprinter_apply_settings):
11514         (allocate_devmode):
11515         (Fmsprinter_settings_copy):
11516         (Fmsprinter_settings_despecialize):
11517         (print_devmode):
11518         (finalize_devmode):
11519         (equal_devmode):
11520         (hash_devmode): Added functions
11521         (syms_of_device_mswindows): Init devmode lrecord class.
11522
11523         * device.h: Added an exfun for find-device.
11524
11525         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11526         geometry; although, recreate the device compatible DC.
11527
11528         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11529         (msprinter_init_frame_3):
11530         (msprinter_frame_property):
11531         (msprinter_internal_frame_property_p):
11532         (msprinter_frame_properties):
11533         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11534         print job properties (will move to device settings).
11535
11536         * lisp.h: Added symbols.
11537
11538         * general.c (syms_of_general): Declared them.
11539
11540         * hash.c (string_hash): Added.
11541
11542         * lrecord.h (lrecord_type): Added devmode lrecord type.
11543
11544 2000-07-02  Mike Sperber <mike@xemacs.org>
11545
11546         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11547         FreeBSD 4.0.
11548
11549 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11550
11551         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11552         integer.
11553
11554 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11555
11556         * data.c (Fstring_to_number): Don't recognize floating point if
11557         base is not 10.
11558
11559 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11560
11561         * glyphs-widget.c (tab_control_query_geometry):
11562         (widget_query_geometry):
11563         (button_query_geometry):
11564         * glyphs.c (text_query_geometry):
11565         Enforce type correctness.
11566
11567 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11568
11569         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11570         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11571
11572 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11573
11574         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11575         conflicts with gcc's fixincluded version of FOO.h.
11576
11577         * glyphs.h (image_instance_geometry): Remove trailing `,'
11578
11579 2000-06-08  Mike Alexander  <mta@arbortext.com>
11580
11581         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11582         (shove_thread): Don't write the same output twice
11583         (make_ntpipe_output_stream): Increase priority of shove thread
11584         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11585         chance to run
11586         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11587         it.
11588
11589 2000-06-12  Ben Wing  <ben@xemacs.org>
11590
11591         * s\mingw32.h (sigset):
11592         * s\windowsnt.h (sigset):
11593         rename msw_ to mswindows_ for consistency with general convention.
11594
11595 2000-06-12  Ben Wing  <ben@xemacs.org>
11596
11597         * console-msw.c:
11598         * console-msw.c (mswindows_get_console_hwnd):
11599         * console-msw.c (mswindows_ensure_console_allocated):
11600         * console-msw.c (mswindows_hide_console):
11601         * console-msw.c (mswindows_show_console):
11602         * console-msw.c (mswindows_ensure_console_buffered):
11603         * console-msw.c (mswindows_output_console_string):
11604         * console-msw.c (mswindows_windows9x_p):
11605         * console-msw.h:
11606         * device-msw.c (mswindows_get_workspace_coords):
11607         * device-msw.c (mswindows_device_system_metrics):
11608         * dialog-msw.c (mswindows_popup_dialog_box):
11609         * event-msw.c (mswindows_wnd_proc):
11610         * frame-msw.c (mswindows_size_frame_internal):
11611         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11612         * menubar-msw.c (displayable_menu_item):
11613         * menubar-msw.c (mswindows_char_is_accelerator):
11614         * nt.c:
11615         * nt.c (mswindows_sigset):
11616         * nt.c (mswindows_sigrelse):
11617         * nt.c (mswindows_sigpause):
11618         * nt.c (mswindows_raise):
11619         * nt.c (timer_proc):
11620         * ntproc.c:
11621         * ntproc.c (find_child_console):
11622         * ntproc.c (sys_kill):
11623         * print.c:
11624         * print.c (std_handle_out_external):
11625         * process-nt.c (find_child_console):
11626         * process-nt.c (send_signal_the_95_way):
11627         * process-nt.c (ensure_console_window_exists):
11628         * process-nt.c (nt_create_process):
11629         * syssignal.h:
11630         rename msw_ to mswindows_ for consistency with general convention.
11631
11632         * emacs.c:
11633         * dumper.c:
11634         include nt.h, not syswindows.h.
11635
11636         * nt.c (mswindows_fstat):
11637         * nt.c (mswindows_stat):
11638         prefix mswindows_ instead of attempting to directly override the
11639         library functions.  fix declarations.
11640
11641         * nt.h:
11642         include syswindows.h.  move some sysdep.h stuff here.
11643
11644         * ntheap.h:
11645         include syswindows.h, not <windows.h>.
11646
11647         * ntplay.c:
11648         clean up headers.
11649
11650         * sysdep.c:
11651         clean up headers.
11652
11653         * sysdep.c (sys_fstat):
11654         * sysdep.c (sys_stat):
11655         call mswindows versions when appropriate.
11656
11657         * sysdep.h:
11658         move mswin decls to nt.h.
11659
11660         * syswindows.h:
11661         add long comment describing appropriate use of the various windows
11662         headers.
11663
11664 2000-06-11  Ben Wing  <ben@xemacs.org>
11665
11666         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11667
11668 2000-06-10  Ben Wing  <ben@xemacs.org>
11669
11670         * Makefile.in.in (release):
11671         Correction to make sure xemacs.exe always dumped when correct.
11672
11673         * alloca.c:
11674         * balloon_help.c:
11675         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11676
11677         * buffer.c (set_buffer_internal):
11678         [[[[2]]]]: Remove HAVE_FEP code.
11679
11680         * buffer.c (init_initial_directory):
11681         [3].
11682
11683         * bytecode.c:
11684         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11685         individual files.
11686
11687         * callproc.c:
11688         * callproc.c (call_process_cleanup):
11689         * callproc.c (Fold_call_process_internal):
11690         * callproc.c (child_setup):
11691         * callproc.c (getenv_internal):
11692         * callproc.c (init_callproc):
11693         * callproc.c (vars_of_callproc):
11694         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11695         __CYGWIN32__ -> CYGWIN.
11696         DOS_NT -> WIN32_NATIVE.
11697         Remove MSDOS support/references, converting to WIN32_NATIVE
11698           where correct.
11699         __MINGW32__ -> MINGW.
11700         Fix windows.h includes.
11701         Remove bogus HAVE_NTGUI.
11702
11703         * config.h.in:
11704         [2].
11705
11706         * console-msw.c:
11707         mswindows_message_outputted added for use in allowing startup
11708         errors on the console to be seen.
11709
11710         * console-msw.c (msw_ensure_console_allocated):
11711         * console-msw.c (msw_output_console_string):
11712         * console-msw.c (DHEADER):
11713         * console-msw.c (DOPAQUE_DATA):
11714         * console-msw.c (DEVENT):
11715         * console-msw.c (DCONS):
11716         * console-msw.c (DCONSCDR):
11717         * console-msw.c (DSTRING):
11718         * console-msw.c (DVECTOR):
11719         * console-msw.c (DSYMBOL):
11720         * console-msw.c (DSYMNAME):
11721         Fix warnings.
11722
11723         * console-stream.c (stream_init_console):
11724         Fix text/binary problems.
11725
11726         * device-msw.c:
11727         * device-msw.c (mswindows_finish_init_device):
11728         * device-msw.c (mswindows_delete_device):
11729         [1].
11730
11731         * device.c (handle_asynch_device_change):
11732         [3].
11733
11734         * dgif_lib.c:
11735         * dgif_lib.c (DGifOpenFileName):
11736         * dgif_lib.c (DGifOpenFileHandle):
11737         * dgif_lib.c (DGifGetLine):
11738         * dgif_lib.c (DGifGetPixel):
11739         Added config.h/lisp.h, fix up includes.
11740         [1].
11741
11742         * dired-msw.c:
11743         [4].
11744
11745         * dired.c:
11746         * dired.c (file_name_completion):
11747         * dired.c (Ffile_attributes):
11748         * dired.c (syms_of_dired):
11749         [1].
11750
11751         * dumper.c:
11752         * dumper.c (pdump_file_unmap):
11753         * dumper.c (pdump_load):
11754         [1].
11755
11756         * editfns.c:
11757         * editfns.c (Ftemp_directory):
11758         * editfns.c (user_login_name):
11759         * editfns.c (Fuser_real_login_name):
11760         * editfns.c (get_home_directory):
11761         [1].
11762
11763         * elhash.c (finish_marking_weak_hash_tables):
11764         [[[[5]]]]: Fix GCC warnings.
11765
11766         * emacs.c:
11767         * emacs.c (mswindows_handle_hardware_exceptions):
11768         * emacs.c (make_arg_list_1):
11769         * emacs.c (main_1):
11770         * emacs.c (Fkill_emacs):
11771         * emacs.c (Fdump_emacs):
11772         [1].
11773         Fix problems with nested crashes, add long comment.
11774
11775         * event-Xt.c (init_event_Xt_late):
11776         [1].
11777
11778         * event-msw.c:
11779         * event-msw.c (mswindows_dde_callback):
11780         * event-msw.c (mswindows_handle_sticky_modifiers):
11781         * event-msw.c (mswindows_wnd_proc):
11782         [1].
11783         [5].
11784
11785         * events.c (character_to_event):
11786         [1].
11787
11788         * fileio.c:
11789         * fileio.c (Ffile_name_directory):
11790         * fileio.c (Ffile_name_nondirectory):
11791         * fileio.c (directory_file_name):
11792         * fileio.c (Fexpand_file_name):
11793         * fileio.c (Fsubstitute_in_file_name):
11794         * fileio.c (Ffile_name_absolute_p):
11795         * fileio.c (check_executable):
11796         * fileio.c (Ffile_readable_p):
11797         * fileio.c (Ffile_accessible_directory_p):
11798         * fileio.c (Ffile_modes):
11799         * fileio.c (Funix_sync):
11800         * fileio.c (vars_of_fileio):
11801         [1]. [4].
11802
11803         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11804
11805         Expand getdefdir defn.
11806         Fix bogus rename() comment.
11807
11808         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11809         to use standard XEmacs include files, e.g. sysfile.h, rather
11810         than system-specific includes.
11811
11812         * fns.c:
11813         * fns.c (Fsubseq):
11814         [5]. [6].
11815
11816         * frame.c (vars_of_frame):
11817         [1].
11818
11819         * getloadavg.c:
11820         * getloadavg.c (getloadavg):
11821         [1]. [6].
11822         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11823         (We don't use it elsewhere in the code; just add a comment.)
11824
11825         * gif_io.c:
11826         [6].
11827         Add config.h.
11828
11829         * glyphs-msw.c:
11830         * glyphs-msw.c (mswindows_resource_instantiate):
11831         [1].
11832
11833         * glyphs-x.c (x_native_layout_instantiate):
11834         [5].
11835
11836         * gui-msw.c (Fmswindows_shell_execute):
11837         [1].
11838
11839         * insdel.c:
11840         [4].
11841
11842         * lisp.h:
11843         [4]. [5].
11844
11845         * lread.c (locate_file_in_directory_mapper):
11846         [1].
11847
11848         * lstream.c:
11849         [4].
11850
11851         * mem-limits.h:
11852         * mem-limits.h (get_lim_data):
11853         [1].
11854
11855         * menubar-msw.c:
11856         [4].
11857
11858         * ndir.h:
11859         [1].
11860
11861         * nt.c:
11862         * nt.c (getwd):
11863         * nt.c (closedir):
11864         * nt.c (rva_to_section):
11865         * nt.c (mswindows_executable_type):
11866         [1]. [6].
11867         Fix closedir() defn.
11868
11869         * nt.h:
11870         [[[[8]]]]: *_OK defs moved to sysfile.h.
11871
11872         * ntproc.c:
11873         [6]. [7].
11874
11875         * objects-x.c:
11876         [4].
11877
11878         * print.c:
11879         * print.c (std_handle_out_external):
11880         [1]. [4].
11881
11882         * process-nt.c:
11883         * process-nt.c (nt_create_process):
11884         [6].
11885         try to fix process quoting somewhat.
11886
11887         * process-unix.c (unix_create_process):
11888         [1].
11889
11890         * process.c:
11891         * process.c (vars_of_process):
11892         Add Vnull_device.
11893
11894         * process.h:
11895         [1].
11896
11897         * realpath.c:
11898         * realpath.c (xrealpath):
11899         [1].
11900
11901         * redisplay-tty.c (init_tty_for_redisplay):
11902         [3].
11903
11904         * redisplay.c:
11905         [4]. [6].
11906
11907         * scrollbar-msw.c:
11908         [4].
11909
11910         * sheap.c:
11911         * sheap.c (more_static_core):
11912         * sheap.c (report_sheap_usage):
11913         [5]. [6].
11914
11915         * signal.c:
11916         * signal.c (alarm_signal):
11917         [1]. [6].
11918
11919         * sound.c:
11920         [6].
11921
11922         * strftime.c:
11923         * strftime.c (zone_name):
11924         [1]. [5].
11925
11926         * symsinit.h (init_sunpro):
11927         [1].
11928
11929         * syscommctrl.h:
11930         commctrl.h not in Cygwin b20.1.
11931
11932         * sysdep.c:
11933         * sysdep.c (endif):
11934         * sysdep.c (sys_subshell):
11935         * sysdep.c (init_baud_rate):
11936         * sysdep.c (emacs_get_tty):
11937         * sysdep.c (emacs_set_tty):
11938         * sysdep.c (tty_init_sys_modes_on_device):
11939         * sysdep.c (init_system_name):
11940         * sysdep.c (sys_open):
11941         * sysdep.c (interruptible_open):
11942         * sysdep.c (sys_fopen):
11943         * sysdep.c (sys_mkdir):
11944         * sysdep.c (sys_rename):
11945         * sysdep.c (get_process_times_1):
11946         [1]. [6].
11947
11948         * sysdep.h:
11949         [1].
11950
11951         * sysdir.h:
11952         * sysdir.h (DIRENTRY_NONEMPTY):
11953         [1]. [6].
11954
11955         * sysdll.c (dll_init):
11956         * sysdll.h:
11957         [1].
11958
11959         * sysfile.h:
11960         [1]. [6]. [8].
11961         added text/binary defs.
11962
11963         * sysfloat.h:
11964         [1].
11965
11966         * sysproc.h:
11967         * sysproc.h (EDESTADDRREQ):
11968         * sysproc.h (poll_fds_for_input):
11969         [1]. [6].
11970
11971         * syspwd.h:
11972         [6].
11973
11974         * syssignal.h:
11975         [1].
11976
11977         * systime.h:
11978         [1]. [6].
11979
11980         * systty.h:
11981         [1].
11982
11983         * syswindows.h:
11984         [1].
11985         Always define WIN32_LEAN_AND_MEAN.
11986
11987         * unexcw.c (unexec):
11988         [5].
11989
11990         * unexec.c:
11991         * unexec.c (copy_text_and_data):
11992         * unexec.c (adjust_lnnoptrs):
11993         [1].
11994
11995         * unexnt.c:
11996         * unexnt.c (_start):
11997         [1].
11998
11999 2000-06-07  Ben Wing  <ben@xemacs.org>
12000
12001         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12002         was used only as a model.  We've long since extracted any useful
12003         logic or code out of this. (I just did an exhaustive search.)
12004
12005         * s\msdos.h: Removed.
12006
12007         * s\windows95.h: Removed.
12008
12009 2000-06-10  Ben Wing  <ben@xemacs.org>
12010
12011         * s\cygwin32.h:
12012         [1]. [5].
12013         Don't use extern with fun defs.
12014
12015         * s\mingw32.h:
12016         [1]. [7].
12017         Remove nt\inc include.
12018         Remove getdisk, getdefdir. (The former is unused, the latter
12019         expanded in fileio.h.)
12020
12021         * s\windowsnt.h:
12022         * s\windowsnt.h (WIN32_NATIVE):
12023         * s\windowsnt.h (HAVE_STRCASECMP):
12024         [1]. [7].
12025         Add long comment about preprocessor changes.
12026         Remove getdisk, getdefdir. (The former is unused, the latter
12027         expanded in fileio.h.)
12028
12029 2000-06-10  Ben Wing  <ben@xemacs.org>
12030
12031         * m\arm.h:
12032         * m\delta.h:
12033         * m\intel386.h:
12034         * m\sequent.h:
12035         * m\template.h:
12036         * m\windowsnt.h:
12037         [1].
12038         Remove bogus/unused NO_SOCK_SIGIO.
12039
12040 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12041
12042         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12043         not an Emchar.
12044
12045 2000-06-04  Mike Sperber <mike@xemacs.org>
12046
12047         * casetab.c (set_case_table): For `set-standard-case-table',
12048         actually deposit the new case tables where the rest of XEmacs can
12049         see them.
12050
12051 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12052
12053         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12054
12055 2000-06-05  Ben Wing  <ben@xemacs.org>
12056
12057         * callproc.c (child_setup): Don't do close_load_descs() under
12058         MS Windows.  Put in a comment explaining why.
12059
12060 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12061
12062         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12063         Toolkit shell" which breaks `kill-compilation' on Windows NT
12064         native, retaining STDERR handling improvements.
12065
12066 2000-06-01  Andreas Jaeger  <aj@suse.de>
12067
12068         * s/s390.h: Support for S390, based on a patch by Martin
12069         Schwidefsky <schwidefsky@de.ibm.com>.
12070
12071 2000-05-30  Andy Piper  <andy@xemacs.org>
12072
12073         * window.c (allocate_window):
12074         (make_dummy_parent):
12075         (Fset_window_configuration): use new hashtable type.
12076
12077         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12078         (struct image_instantiator_methods):
12079         (struct Lisp_Image_Instance): make instance geometry signed.
12080
12081         * glyphs.c (instantiate_image_instantiator):
12082         (image_instance_query_geometry):
12083         (image_instance_layout):
12084         (image_instance_layout):
12085         (query_string_geometry):
12086         (text_query_geometry):
12087         (image_instantiate):
12088         (image_instantiate):
12089         (cache_subwindow_instance_in_frame_maybe):
12090         (subwindow_query_geometry): make instance geometry signed.
12091
12092         * glyphs-widget.c (widget_query_geometry):
12093         (widget_layout):
12094         (button_query_geometry):
12095         (tree_view_query_geometry):
12096         (tab_control_query_geometry):
12097         (layout_query_geometry):
12098         (layout_layout):
12099         (native_layout_layout): make instance geometry signed.
12100
12101 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12102
12103         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12104         constant.
12105
12106         * general.c (syms_of_general): Add Qfull_assoc symbol.
12107
12108         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12109         correctly.
12110         (decode_weak_list_type): Decode full-assoc type.
12111         (encode_weak_list_type): Encode full-assoc type.
12112         (Fmake_weak_list): Update doc string.
12113
12114 2000-05-30  Andy Piper  <andy@xemacs.org>
12115
12116         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12117
12118         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12119         (decode_hash_table_weakness): ditto.
12120         (Fhash_table_weakness): ditto.
12121         (Fhash_table_type): ditto.
12122         (finish_marking_weak_hash_tables): ditto.
12123         (hash_table_weakness_validate): ditto.
12124         (syms_of_elhash): ditto.
12125
12126 2000-05-28  Martin Buchholz <martin@xemacs.org>
12127
12128         * XEmacs 21.2.34 is released.
12129
12130 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12131
12132         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12133         start cache.
12134         (updating_line_start_cache): Gone.
12135         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12136         generic code to force a minimum of 1 line laid out in the
12137         CMOTION_DISP case.
12138
12139 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12140
12141         * glyphs.c (instantiate_image_instantiator): Check for initialized
12142         height & width no longer special cases IMAGE_NOTHING.
12143         (nothing_instantiate): Set height and width of instance.
12144
12145 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12146
12147         * unexelf.c (unexec): Search for ".data" section.
12148         Initialize new_data2_offset from old_data_index.
12149         Remove redundant check for ElfW.
12150
12151 2000-05-23  Andy Piper  <andy@xemacs.org>
12152
12153         * glyphs.c (get_image_instantiator_governing_domain): allow more
12154         specific domains as the governing domain rather than expecting an
12155         exact match. This fixes problems with layouts.
12156
12157 2000-05-22  Andy Piper  <andy@xemacs.org>
12158
12159         * redisplay-output.c (compare_runes): check for non-images
12160
12161         * glyphs.c (set_glyph_dirty_p): ditto.
12162         (update_glyph_cachel_data): ditto.
12163
12164         * glyphs-widget.c (layout_post_instantiate): ditto.
12165         (layout_post_instantiate): ditto.
12166
12167         * event-msw.c (mswindows_wnd_proc): warning removal.
12168
12169 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12170
12171         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12172
12173         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12174
12175         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12176
12177         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12178         (mswindows_executable_type): mingw32 now has enough headers for
12179         this to work.
12180
12181 2000-05-20  Andy Piper  <andy@xemacs.org>
12182
12183         * console-msw.c (mswindows_output_last_error): ; -> ,
12184
12185 2000-05-12  Andy Piper  <andy@xemacs.org>
12186
12187         * console-msw.c (FROB): compare ints with ints.
12188
12189 2000-05-11  Andy Piper  <andy@xemacs.org>
12190
12191         * glyphs-x.c (x_finalize_image_instance): make minimal build
12192         happy.
12193
12194 2000-05-20  Ben Wing  <ben@xemacs.org>
12195
12196         * event-Xt.c:
12197         * event-Xt.c (vars_of_event_Xt):
12198         move modifier-keys-are-sticky to event-stream.c.
12199
12200         * event-msw.c:
12201         * event-msw.c (mswindows_enqueue_mouse_button_event):
12202         * event-msw.c (key_needs_default_processing_p):
12203         * event-msw.c (XEMSW_LCONTROL):
12204         * event-msw.c (mswindows_handle_sticky_modifiers):
12205         * event-msw.c (FROB):
12206         * event-msw.c (clear_sticky_modifiers):
12207         * event-msw.c (output_modifier_keyboard_state):
12208         * event-msw.c (output_alt_keyboard_state):
12209         * event-msw.c (mswindows_wnd_proc):
12210         * event-msw.c (mswindows_modifier_state):
12211         * event-msw.c (emacs_mswindows_handle_magic_event):
12212         implement sticky modifiers.
12213
12214         * event-stream.c:
12215         * event-stream.c (vars_of_event_stream):
12216         move modifier-keys-are-sticky here.
12217
12218         * lisp.h:
12219         add CHECK_FUNCTION.
12220
12221         * rangetab.c:
12222         implement map-range-table.
12223
12224
12225 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12226
12227         * redisplay-tty.c (reset_tty_modes):
12228         (tty_redisplay_shutdown): Adjust argument type to
12229         tty_frame_output_end.
12230
12231 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12232
12233         * eval.c (Fbacktrace): Don't output a line with only right
12234         parenthesis.
12235
12236 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12237
12238         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12239         (Fpq_reset_poll): Ditto.
12240
12241 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12242
12243         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12244
12245 2000-05-16  Ben Wing  <ben@xemacs.org>
12246
12247         * buffer.c:
12248         * buffer.c (dfc_convert_to/from_internal_format):
12249         * buffer.c (reinit_vars_of_buffer):
12250         Fix conversion functions to allow reentrancy.
12251
12252         * console-msw.c:
12253         * console-msw.c (mswindows_output_last_error):
12254         New fun, generally useful -- output a human-readable
12255         version of GetLastError() on the console.
12256
12257         * console-msw.h:
12258         * console-msw.h (struct mswindows_frame):
12259         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12260
12261         * console-stream.c (stream_output_begin):
12262         * console-stream.c (stream_output_end):
12263         * console-stream.c (stream_output_vertical_divider):
12264         * console-stream.c (stream_clear_region):
12265         * console-stream.c (stream_flash):
12266         * console-stream.c (console_type_create_stream):
12267         Delete blank stream methods, not needed.
12268
12269         * console.h (struct console_methods):
12270         Split begin/end methods into window and frame.
12271
12272         * event-msw.c:
12273         * event-msw.c (mswindows_handle_paint):
12274         * event-msw.c (output_alt_keyboard_state):
12275         * event-msw.c (mswindows_wnd_proc):
12276         * event-msw.c (vars_of_event_mswindows):
12277         Comment about problems with ignored-expose.
12278         Define mswindows-debug-events; not really implemented.
12279
12280         * frame-msw.c (mswindows_init_frame_1):
12281         random cleanups.
12282
12283         * glyphs-msw.c:
12284         * glyphs-msw.c (begin_defer_window_pos):
12285         * glyphs-msw.c (mswindows_unmap_subwindow):
12286         * glyphs-msw.c (mswindows_map_subwindow):
12287         * glyphs-msw.c (mswindows_resize_subwindow):
12288         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12289
12290         * glyphs.c (make_image_instance_1):
12291         Fix crash.
12292
12293         * gutter.c (Fredisplay_gutter_area):
12294         Use new begin/end methods.
12295
12296         * lisp.h (Dynarr_new2):
12297         New creation fun.
12298
12299         * redisplay-msw.c:
12300         * redisplay-msw.c (mswindows_frame_output_begin):
12301         * redisplay-msw.c (mswindows_frame_output_end):
12302         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12303         New begin/end methods -- handle DeferWindowPos.
12304
12305         * redisplay-output.c (redisplay_move_cursor):
12306         * redisplay-output.c (redraw_cursor_in_window):
12307         * redisplay-output.c (redisplay_update_line):
12308         * redisplay-output.c (redisplay_output_window):
12309         New begin/end methods.
12310
12311         * redisplay-tty.c:
12312         * redisplay-tty.c (tty_frame_output_begin):
12313         * redisplay-tty.c (tty_frame_output_end):
12314         * redisplay-tty.c (console_type_create_redisplay_tty):
12315         New begin/end methods.
12316
12317         * redisplay-x.c:
12318         * redisplay-x.c (x_window_output_begin):
12319         * redisplay-x.c (x_window_output_end):
12320         * redisplay-x.c (console_type_create_redisplay_x):
12321         New begin/end methods.
12322
12323         * redisplay.c (redisplay_frame):
12324         * redisplay.c (Fredisplay_echo_area):
12325         New begin/end methods.
12326         use MAYBE_DEVMETH for clear_frame; it may not exist.
12327
12328         * window.h (WINDOW_XFRAME):
12329         WINDOW_XFOO macros -- get locale and decode struct pointer.
12330
12331
12332 2000-05-12  Ben Wing  <ben@xemacs.org>
12333
12334         * emacs.c:
12335         * emacs.c (ensure_no_quitting_from_now_on):
12336         * emacs.c (fatal_error_signal):
12337         * emacs.c (mswindows_handle_hardware_exceptions):
12338         * emacs.c (main):
12339         * emacs.c (Fkill_emacs):
12340         * emacs.c (shut_down_emacs):
12341         * emacs.c (assert_failed):
12342         various improvements in fatal error handling.
12343
12344         * eval.c:
12345         move preparing_for_armageddon to emacs.c.
12346
12347         * lisp.h:
12348         declare fatal_error_in_progress.
12349
12350         * print.c:
12351         * print.c (std_handle_out_external):
12352         * print.c (std_handle_out_va):
12353         * print.c (stderr_out):
12354         * print.c (stdout_out):
12355         use console under mswin when no standard output.
12356         don't do code conversion during fatal error.
12357
12358         * scrollbar.c (Fscrollbar_page_up):
12359         * scrollbar.c (Fscrollbar_page_down):
12360         fix missing else.  reindent.
12361
12362 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12363
12364         Emergency fix.
12365
12366         * glyphs.h (GLYPH_CACHEL_DESCENT):
12367         (GLYPH_CACHEL_DESCENT):
12368         (GLYPH_CACHEL_DESCENT):
12369         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12370         used in case these are inline functions.
12371         Use more absurd values to error check.
12372
12373         include window.h for error check functions.
12374
12375 2000-05-11  Ben Wing  <ben@xemacs.org>
12376
12377         * cmdloop.c (Freally_early_error_handler):
12378         Display message box under windows; otherwise, message will disappear
12379         before it can be viewed.
12380
12381         * console-msw.c:
12382         * console-msw.c (Fmswindows_message_box):
12383         * console-msw.c (FROB):
12384         * console-msw.c (syms_of_console_mswindows):
12385         Define new fun `mswindows-message-box'.
12386         #### I will merge this into `popup-dialog-box'; just give me
12387         a bit of time.
12388
12389         * general.c:
12390         * general.c (syms_of_general):
12391         Some new symbols used in `mswindows-message-box'.
12392
12393         * glyphs.c:
12394         * glyphs.c (Fset_image_instance_property):
12395         put warning in this fun.
12396
12397         * glyphs.h:
12398         * glyphs.h (GLYPH_CACHEL_WIDTH):
12399         * glyphs.h (GLYPH_CACHEL_ASCENT):
12400         * glyphs.h (GLYPH_CACHEL):
12401         * glyphs.h (GLYPH_CACHEL_GLYPH):
12402         define error-checking versions to try to catch a bug i've seen --
12403         redisplay gets in an infinite loop because the glyph width of the
12404         continuation glyph is 65535.
12405
12406         * lisp.h:
12407         Extern message-box stuff.
12408
12409         * window.c (allocate_window):
12410         * window.c (make_dummy_parent):
12411         * window.c (Fset_window_configuration):
12412         Use EQUAL not EQ for subwindow caches to make them work a bit
12413         better. (Something is still very broken.)
12414
12415
12416 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12417
12418         * glyphs.c (image_instantiate): Suppress gcc warnings.
12419         (Fmake_image_instance): Fix doc string.
12420         * specifier.c (Fmake_specifier): Ditto.
12421
12422 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12423
12424         * paths.h.in (PATH_LOCK): Removed.
12425         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12426         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12427
12428 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12429
12430         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12431         Document (featurep '(and xemacs 21.02)).
12432
12433 2000-05-09  Ben Wing  <ben@xemacs.org>
12434
12435         * buffer.c (complex_vars_of_buffer):
12436         update modeline-format doc.
12437
12438         * device.h:
12439         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12440
12441         * emacs.c:
12442         timeline of all released versions of Emacs, for use in creating
12443         authorship comments and in synching up.
12444
12445         * glyphs-widget.c (image_instantiator_buttons):
12446         * glyphs-widget.c (image_instantiator_edit_fields):
12447         * glyphs-widget.c (image_instantiator_combo_box):
12448         * glyphs-widget.c (image_instantiator_scrollbar):
12449         * glyphs-widget.c (image_instantiator_progress_guage):
12450         * glyphs-widget.c (image_instantiator_tree_view):
12451         * glyphs-widget.c (image_instantiator_tab_control):
12452         * glyphs-widget.c (image_instantiator_labels):
12453         * glyphs-widget.c (image_instantiator_layout):
12454         * glyphs-widget.c (image_instantiator_native_layout):
12455         rename decode_domain method to governing_domain.
12456
12457         * glyphs.c:
12458         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12459         * glyphs.c (add_entry_to_device_ii_format_list):
12460         make sure we don't put an entry more than once into the list.
12461         * glyphs.c (check_instance_cache_mapper):
12462         *************************************************************
12463         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12464         HAVE BEEN GETTING.
12465         *************************************************************
12466         * glyphs.c (get_image_instantiator_governing_domain):
12467         clean up, expand on new concept of governing domain.
12468         * glyphs.c (instantiate_image_instantiator):
12469         * glyphs.c (allocate_image_instance):
12470         use governing_domain instead of cache_domain in naming.
12471         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12472         * glyphs.c (make_image_instance_1):
12473         * glyphs.c (Fmake_image_instance):
12474         allow for any domain (not just device), and process the
12475         governing domain correctly.  very big doc fix.
12476         * glyphs.c (Fimage_instance_domain):
12477         new primitive, to retrieve the governing domain of an image instance.
12478         * glyphs.c (image_instantiate):
12479         use new governing_domain stuff.  this fixes a crash you could get
12480         by instantiating certain widget glyphs in frame locales. (should
12481         signal an error instead of crashing.)
12482         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12483         * glyphs.c (Fglyphp): clean up doc.
12484         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12485         * glyphs.c (syms_of_glyphs):
12486         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12487         * glyphs.c (image_instantiator_format_create): add some comments about
12488         bogus code.
12489         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12490         for current-display-table. (Apparently Hrjove implemented in 1998 a
12491         design I wrote up in 1996, but didn't update the doc string.)
12492
12493         * glyphs.h: clean up a doc string.
12494         * glyphs.h (governing_domain):
12495         * glyphs.h (struct image_instantiator_methods):
12496         changes for governing_domain stuff.
12497
12498         * gutter.c:
12499         * gutter.c (Fgutter_specifier_p):
12500         * gutter.c (Fgutter_size_specifier_p):
12501         * gutter.c (Fgutter_visible_specifier_p):
12502         * objects.c:
12503         * objects.c (Fcolor_specifier_p):
12504         * objects.c (Ffont_specifier_p):
12505         * objects.c (Fface_boolean_specifier_p):
12506         doc strings moved to make-*-specifier.
12507
12508         * redisplay.c (add_disp_table_entry_runes_1):
12509         * redisplay.c (generate_fstring_runes):
12510         * redisplay.c (screen):
12511         add random comments and doc strings.
12512
12513         * specifier.c:
12514         * specifier.c (Fmake_specifier):
12515         major overhaul of this doc string.
12516
12517         * specifier.c (Fvalid_specifier_domain_p):
12518         comment about the bogosity of image instances being domains.
12519         * specifier.c (decode_domain):
12520         now non-static, used in glyphs.c.
12521         * specifier.c (specifier_instance):
12522         comment about the bogosity of image instances being domains.
12523         * specifier.c (Fgeneric_specifier_p):
12524         move doc string to make-generic-specifier.
12525         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12526         rebackslashify.
12527
12528         * specifier.h:
12529         * specifier.h (DOMAIN_FRAME):
12530         * specifier.h (DOMAIN_LIVE_P):
12531         * specifier.h (DOMAIN_XDEVICE):
12532         rebackslashify.
12533         add comments about problems with these macros.
12534         prototype for decode_domain.
12535
12536         * toolbar.c:
12537         * toolbar.c (Ftoolbar_specifier_p):
12538         move doc string to `make-toolbar-specifier'.
12539
12540         * window.c (window_unmap_subwindows_cache_mapper):
12541         *************************************************************
12542         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12543         HAVE BEEN GETTING.
12544         *************************************************************
12545
12546 2000-05-09  Andy Piper  <andy@xemacs.org>
12547
12548         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12549
12550         * window.c (Fset_window_configuration): reset the frame subwindow
12551         cache and re-initialize the window subwindow caches.
12552
12553         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12554
12555 2000-05-09  Ben Wing  <ben@xemacs.org>
12556
12557         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12558         DWORD.
12559
12560 2000-04-26  Mike Woolley  <mike@bulsara.com>
12561
12562         * ntheap.c: Changed recreate_heap to limit the amount reserved
12563         for the heap to that which is actually available. Also now
12564         displays a message box (with some dignostics) in the event that
12565         it still can't start.
12566
12567 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12568
12569         * callproc.c (Fold_call_process_internal): GCPRO path
12570
12571 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12572
12573         Patch by Bill Perry.
12574
12575         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12576         back data instead of #ifdef.
12577         (Fscrollbar_page_down): ditto.
12578
12579 2000-05-07  Ben Wing  <ben@xemacs.org>
12580
12581         * buffer.h:
12582         Kludge for defining Qmswindows_tstr.
12583
12584         * nt.c:
12585         * nt.c (open_input_file):
12586         * nt.c (open_output_file):
12587         * nt.c (rva_to_section):
12588         * nt.c (mswindows_executable_type):
12589         Move all memory-mapped-file routines here (some were in unexnt.c,
12590         which is bad because they are used by process-nt.c, and unexnt
12591         won't be around when portable dumping).  Synched the above routines
12592         with FSF 20.6.
12593
12594         * nt.h:
12595         Removed ifdef'd out bogus code.
12596         Fixed some prototypes.
12597
12598         * nt.h (file_data):
12599         * nt.h (OFFSET_TO_RVA):
12600         * nt.h (RVA_TO_OFFSET):
12601         * nt.h (RVA_TO_PTR):
12602         Moved the memory-mapped-file structures, macros and prototypes
12603         here, to parallel nt.c.  ntheap.h should really be removed
12604         entirely, and it's a non-portable-dumper specific file.
12605
12606         * ntheap.h (round_to_next):
12607         Moved the memory-mapped-file structures, macros and prototypes
12608         to nt.h.
12609
12610         * ntproc.c (compare_env):
12611         Moved rva_to_section and mswindows_executable_type to nt.c.
12612         Moved compare_env to process-nt.c.
12613         ntproc.c will die, one day.
12614
12615         * ntproc.c (sys_spawnve):
12616         Account for win32_ -> mswindows_.
12617
12618         * process-nt.c:
12619         * process-nt.c (struct nt_process_data):
12620         * process-nt.c (ensure_console_window_exists):
12621         * process-nt.c (compare_env):
12622         * process-nt.c (nt_create_process):
12623         * process-nt.c (nt_kill_process_by_pid):
12624         * process-nt.c (syms_of_process_nt):
12625         * process-nt.c (vars_of_process_nt):
12626         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12627         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12628         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12629         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12630         Move compare_env here from ntproc.c.
12631
12632         * process.c (Fprocess_send_region):
12633         Takes an optional fourth argument, BUFFER, which should fix some
12634         problems with call-process.
12635
12636         * syscommctrl.h:
12637         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12638
12639         * syswindows.h:
12640         Move ICC_BAR_CLASSES to syscommctrl.h.
12641         Add preliminary macros for MSWindows/Mule.  More to come.
12642
12643         * unexnt.c:
12644         * unexnt.c (unexec):
12645         open_output_file moved to nt.c.
12646
12647
12648 2000-05-05  Andy Piper  <andy@xemacs.org>
12649
12650         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12651         instance from the frame cache also since GC may catch up too late
12652         to make frame deletion sane.
12653
12654 2000-05-04  Andy Piper  <andy@xemacs.org>
12655
12656         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12657         (x_finalize_image_instance): ungcpro on deletion.
12658
12659         * glyphs.c (image_instantiator_format_create): give pointers a
12660         query geometry method so that the geometry is at least set.
12661
12662         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12663         initialize layouts if using widgets.
12664
12665 2000-05-03  Andy Piper  <andy@xemacs.org>
12666
12667         * nt.c: remove bogus reference to sysmmsystem.h
12668
12669         * gui-x.c (popup_selection_callback): fix no selection abort.
12670
12671 2000-05-02  Andy Piper  <andy@xemacs.org>
12672
12673         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12674         (mswindows_widget_instantiate): ditto.
12675
12676         * glyphs-widget.c (initialize_widget_image_instance): initialize
12677         children correctly.
12678         (widget_instantiate): cope with children and items in the same
12679         instance.
12680
12681         * glyphs.c (mark_image_instance): cope with children as a first
12682         class member.
12683         (image_instance_equal): ditto.
12684         (image_instance_hash): ditto.
12685         (image_instance_changed): ditto.
12686
12687 2000-04-30  Andy Piper  <andy@xemacs.org>
12688
12689         * glyphs.c (subwindow_query_geometry): new function. Return some
12690         defaults.
12691         (subwindow_instantiate): don't assign dimensions if none have been
12692         given.
12693         (image_instantiator_format_create): add subwindow_query_geometry.
12694         (print_image_instance): cope with layouts as widgets.
12695
12696 2000-04-29  Andy Piper  <andy@xemacs.org>
12697
12698         * frame.c (delete_frame_internal): call
12699         free_frame_subwindow_instance_cache so that all subwindows are
12700         finalized before their parent.
12701         (mark_frame): remove subwindow_cachels.
12702         (Fmake_frame): remove subwindow_cachel manipulation.
12703         (allocate_frame_core): subwindow_instance_cache is a weak list.
12704         (delete_frame_internal): set subwindow_instance_cache to nil.
12705
12706         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12707         finalization safe.
12708         (mswindows_finalize_image_instance): use the device
12709         not the domain as the domain may have died already.
12710
12711         * glyphs-x.c (x_finalize_image_instance): ditto.
12712         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12713         HEIGHT.
12714
12715         * redisplay-output.c (redisplay_unmap_subwindows): update for
12716         subwindow instance cache as a weak list.
12717         (redisplay_unmap_subwindows_maybe): ditto.
12718         (redisplay_unmap_subwindows_except_us): ditto.
12719
12720         * glyphs.c (unmap_subwindow): error checking will check the domain
12721         so don't deal with it here. Don't use cachels anymore.
12722         (map_subwindow): ditto.
12723         (update_subwindow_cachel_data): remove old accessor names.
12724         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12725         (Fresize_subwindow): don't update cachel.
12726         (mark_subwindow_cachels):
12727         (update_subwindow_cachel_data):
12728         (add_subwindow_cachel):
12729         (get_subwindow_cachel_index):
12730         (update_subwindow_cachel):
12731         (reset_subwindow_cachels):
12732         (mark_subwindow_cachels_as_not_updated): deleted.
12733         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12734         subwindow instance to the frame cache.
12735         (find_matching_subwindow): update for subwindow instance cache as
12736         a weak list.
12737         (update_widget_instances): ditto.
12738         (image_instance_type_to_mask):inlined.
12739         (free_frame_subwindow_instance_cache): new function. finalize all
12740         subwindows that are instantiated.
12741
12742         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12743         of cachel information.
12744         (IMAGE_INSTANCE_DISPLAY_X):
12745         (IMAGE_INSTANCE_DISPLAY_Y):
12746         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12747         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12748         (XIMAGE_INSTANCE_DISPLAY_X):
12749         (XIMAGE_INSTANCE_DISPLAY_Y):
12750         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12751         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12752         remove subwindow_cachel structure and function references.
12753         (image_instance_type_to_mask): inline from glyphs.c
12754
12755         * redisplay.c (redisplay_frame): remove subwindow_cachel
12756         references.
12757
12758         * frame.h (struct frame): remove subwindow_cachels.
12759         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12760
12761         * frameslots.h: add subwindow_instance_cache.
12762
12763         * window.c (replace_window): check subwindow cache of replacement.
12764         (window_unmap_subwindows_cache_mapper):
12765         (window_unmap_subwindows): new functions. Unmap all subwindows
12766         cached on this window.
12767         (mark_window_as_deleted): unmap all subwindows.
12768
12769 2000-04-27  Andy Piper  <andy@xemacs.org>
12770
12771         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12772
12773         * glyphs-widget.c (widget_layout): return something.
12774         (layout_layout): return something. Fail if not initialized.
12775         (layout_query_geometry): ditto.
12776         (image_instantiator_native_layout): new function. Initialized the
12777         native layout type.
12778         (widget_instantiate): don't do layout stuff here.
12779
12780         * glyphs.c (instantiate_image_instantiator): reorded calling or
12781         instantiate and post_instantiate with layout in between.
12782         (image_instance_layout): be more selective about deciding whether
12783         the layout has been done or not.
12784
12785         * glyphs.h (struct image_instantiator_methods): return a value
12786         from layout_method.
12787
12788 2000-04-26  Andy Piper  <andy@xemacs.org>
12789
12790         * glyphs.c (allocate_image_instance): make initial width and
12791         height unspecified. Set initialized to 0.
12792
12793         * syscommctrl.h new file. Encapsulates commctrl.h.
12794
12795         * syswindows.h new file. Encapsulates windows.h.
12796
12797         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12798         * nt.c: ditto.
12799         * console-msw.h: ditto.
12800
12801         * redisplay-tty.c (tty_output_display_block): remove layout references.
12802
12803         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12804         window handle rather than just the frame.
12805
12806         * glyphs.c (mark_image_instance): remove layout references.
12807         (print_image_instance): ditto.
12808         (image_instance_equal): ditto.
12809         (image_instance_hash): ditto.
12810         (decode_image_instance_type): ditto.
12811         (encode_image_instance_type): ditto.
12812         (image_instantiate): ditto.
12813         (allocate_glyph): ditto.
12814         (Fimage_instance_height): ditto.
12815         (Fimage_instance_width): ditto.
12816         (update_subwindow): ditto.
12817
12818         * redisplay-x.c (x_output_display_block): recode for layouts as
12819         widgets.
12820
12821         * redisplay-output.c (redisplay_output_layout): recode for layouts
12822         as widgets.
12823         (compare_runes): remove layout references.
12824
12825         * redisplay-msw.c (mswindows_output_display_block): recode for
12826         layouts as widgets.
12827
12828         * glyphs-widget.c (image_instantiator_layout): remove
12829         layout_possible_dest_types.
12830         (layout_possible_dest_types): deleted.
12831
12832         * glyphs.h (image_instance_type): remove layout references.
12833         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12834         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12835         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12836
12837 2000-04-25  Andy Piper  <andy@xemacs.org>
12838
12839         * glyphs-widget.c (image_instantiator_buttons):
12840         (image_instantiator_edit_fields):
12841         (image_instantiator_combo_box):
12842         (image_instantiator_scrollbar):
12843         (image_instantiator_progress_guage):
12844         (image_instantiator_tree_view):
12845         (image_instantiator_tab_control):
12846         (image_instantiator_labels):
12847         (image_instantiator_layout): call default post_instantiate method.
12848         (widget_post_instantiate): new function. Simply lays out the
12849         widgets.
12850
12851         * glyphs.h (struct image_instantiator_methods): add
12852         post_instantiate method.
12853
12854         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12855         method calls.
12856
12857 2000-04-23  Andy Piper  <andy@xemacs.org>
12858
12859         * glyphs.h (struct image_instantiator_methods): add
12860         decode_domain_method.
12861         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12862         derived from the domain.
12863         (IMAGE_INSTANCE_FRAME): new accessor.
12864         (XIMAGE_INSTANCE_FRAME): ditto.
12865
12866         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12867         instead of _SUBWINDOW_FRAME.
12868         (finalize_image_instance): ditto.
12869         (Fimage_instance_foreground): ditto.
12870         (Fimage_instance_background): ditto.
12871         (image_instantiate): ditto.
12872         (update_subwindow_cachel): ditto.
12873         (update_subwindow): ditto.
12874         (unmap_subwindow): ditto.
12875         (map_subwindow): ditto
12876         (subwindow_instantiate): ditto.
12877         * glyphs-msw.c (mswindows_update_widget): ditto.
12878         (mswindows_progress_gauge_instantiate): ditto.
12879         (mswindows_tab_control_update): ditto.
12880         * glyphs-x.c (x_update_widget): ditto.
12881         (x_widget_instantiate): ditto.
12882         (x_tab_control_instantiate): ditto.
12883         (x_tab_control_update): ditto.
12884         * event-msw.c (mswindows_wnd_proc): ditto
12885
12886         * glyphs-widget.c (image_instantiator_layout): use
12887         subwindow_decode_domain.
12888         (image_instantiator_buttons): ditto.
12889         (image_instantiator_edit_fields): ditto.
12890         (image_instantiator_combo_box): ditto.
12891         (image_instantiator_scrollbar): ditto.
12892         (image_instantiator_progress_guage): ditto.
12893         (image_instantiator_tree_view): ditto.
12894         (image_instantiator_tab_control): ditto.
12895         (image_instantiator_labels): ditto.
12896         (image_instantiator_layout): ditto.
12897
12898         * glyphs.c: add instance error checking to many functions.
12899         (instantiate_image_instantiator): decode device from cache_domain.
12900         (image_instantiate): partially rewrite by using
12901         decode_image_instantiator_domain to determine what domain the
12902         instance needs to be cached in.
12903         (decode_image_instantiator_domain): new function. Determine what
12904         domain the image needs to be cached in.
12905         (check_window_subwindow_cache): new error checking function.
12906         (check_instance_cache_mapper): ditto.
12907         (check_image_instance_structure): ditto.
12908         (subwindow_decode_domain): new function. Encodes a window as a
12909         subwindow's cache domain.
12910         (image_instantiator_format_create): use it for text and
12911         subwindows.
12912
12913 2000-04-21  Andy Piper  <andy@xemacs.org>
12914
12915         * glyphs.c (image_instance_device): new function.
12916         (image_instance_frame): new function.
12917         (image_instance_window): new function.
12918         (image_instance_live_p): new function.
12919
12920         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12921         cache to nil.
12922
12923         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12924         (IMAGE_INSTANCE_DOMAIN): new accessor.
12925         (XIMAGE_INSTANCE_DOMAIN): ditto.
12926
12927         * glyphs-x.c (x_finalize_image_instance): device->domain.
12928
12929         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12930         (mswindows_finalize_image_instance): ditto.
12931
12932         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12933         (gif_instantiate): ditto.
12934         (png_instantiate): ditto.
12935         (tiff_instantiate): ditto.
12936
12937         * glyphs.c (instantiate_image_instantiator): use domain rather
12938         than device.
12939         (mark_image_instance): device -> domain.
12940         (print_image_instance): ditto.
12941         (finalize_image_instance): ditto.
12942         (image_instance_equal): ditto.
12943         (allocate_image_instance): ditto.
12944         (Fcolorize_image_instance): ditto.
12945         (query_string_geometry): ditto.
12946         (image_instantiate): ditto
12947         (query_string_font): ditto.
12948         (image_instantiate): ditto.
12949         (update_subwindow): ditto.
12950         (unmap_subwindow): ditto.
12951         (map_subwindow): ditto.
12952         (subwindow_instantiate): ditto.
12953
12954         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12955         (DOMAIN_FRAME): ditto.
12956         (DOMAIN_WINDOW): ditto.
12957         (DOMAIN_LIVE_P): ditto.
12958         (XDOMAIN_DEVICE): ditto.
12959         (XDOMAIN_FRAME): ditto.
12960         (XDOMAIN_WINDOW): ditto.
12961
12962         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12963         a valid specifier domain.
12964
12965 2000-04-19  Andy Piper  <andy@xemacs.org>
12966
12967         * glyphs-widget.c (syms_of_glyphs_widget): remove
12968         widget-callback-current-channel.
12969         (vars_of_glyphs_widget): ditto.
12970         * glyphs.h: ditto
12971
12972         * gui.c (get_gui_callback): revert to previous behaviour.
12973
12974 2000-04-18  Andy Piper  <andy@xemacs.org>
12975
12976         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12977         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12978         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12979
12980         * glyphs.c (image_instance_equal): add margin_width.
12981         (image_instance_hash): ditto.
12982
12983         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12984         (layout_query_geometry): ditto.
12985         (layout_layout): ditto.
12986         (syms_of_glyphs_widget): add margin-width.
12987         (image_instantiator_layout): allow margin-width.
12988
12989         * glyphs.c (update_widget_instances): make a normal function.
12990         (syms_of_glyphs): remove Qupdate_widget_instances.
12991         * glyphs.h: ditto.
12992
12993         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12994         so that we don't corrupt ideas about the last event or
12995         command. Remove widget-callback-current-channel fiddling.
12996         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12997
12998 2000-05-01  Martin Buchholz <martin@xemacs.org>
12999
13000         * XEmacs 21.2.33 is released.
13001
13002 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13003
13004         * make-src-depend: Allow dots in header file name.
13005
13006 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13007
13008         * mule-charset.h (struct charset_lookup): Add
13009         next_allocated_1_byte_leading_byte and
13010         next_allocated_2_byte_leading_byte.
13011         * mule-charset.c: Move above two variables so that those values
13012         will be dumped.
13013
13014 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13015
13016         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13017         when string length is zero.
13018         (find_charsets_in_emchar_string): Ditto.
13019
13020 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13021
13022         * lisp.h: extern Qdialog and Qmenubar.
13023
13024         * gui-x.c: added events.h.
13025                 also fixed typo which made the file uncompilable.
13026
13027         * general.c: Added Qmenubar and Qdialog
13028
13029 2000-04-28  Ben Wing  <ben@xemacs.org>
13030
13031         * frame-msw.c (mswindows_init_frame_1):
13032         * frame-msw.c (mswindows_mark_frame):
13033         * event-msw.c (mswindows_enqueue_dispatch_event):
13034         * console-msw.h:
13035         * console-msw.h (struct mswindows_frame):
13036         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13037         there are now three hash tables for callbacks.
13038         mswindows_enqueue_dispatch_event is no longer static.
13039
13040         * dialog-x.c (maybe_run_dbox_text_callback):
13041         * dialog-x.c (dbox_descriptor_to_widget_value):
13042         switch to new cons3 form for callbacks.
13043
13044         * glyphs-msw.c (mswindows_register_gui_item):
13045         * glyphs-msw.c (mswindows_widget_instantiate):
13046         * glyphs-msw.c (add_tree_item):
13047         * glyphs-msw.c (add_tab_item):
13048         new image instance parameter, so it can be passed to callback-ex.
13049         respect :callback-ex as well as :callback.
13050
13051         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13052         add :callback-ex.
13053
13054         * glyphs.c (print_image_instance):
13055         prettify, e.g. now prints widget type.
13056
13057         * gui-x.h:
13058         certain funs have new image instance parameter.
13059
13060         * gui.c:
13061         * gui.c (get_gui_callback):
13062         * gui.c (gui_item_add_keyval_pair):
13063         * gui.c (gui_item_init):
13064         * gui.c (gui_add_item_keywords_to_plist):
13065         * gui.c (mark_gui_item):
13066         * gui.c (gui_item_hash):
13067         * gui.c (gui_item_equal):
13068         * gui.c (copy_gui_item):
13069         * gui.c (syms_of_gui):
13070         recognize callback-ex in a number of places.
13071         also, fix the annoying "can't get out of yes-no dialog" bug.
13072
13073         * gui.h:
13074         * gui.h (struct Lisp_Gui_Item):
13075         recognize callback-ex in a number of places.
13076
13077         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13078         new parameter in button_item_to_widget_value.
13079
13080         * glyphs-x.c (x_update_widget):
13081         * glyphs-x.c (x_button_instantiate):
13082         * glyphs-x.c (x_button_update):
13083         * glyphs-x.c (x_progress_gauge_instantiate):
13084         * glyphs-x.c (x_edit_field_instantiate):
13085         * glyphs-x.c (x_combo_box_instantiate):
13086         * glyphs-x.c (x_tab_control_instantiate):
13087         * glyphs-x.c (x_label_instantiate):
13088         new image instance parameter in various places.
13089
13090         * event-Xt.c:
13091         * event-Xt.c (enqueue_Xt_dispatch_event):
13092         this fun gets exported.
13093
13094         * gui-msw.c:
13095         * gui-msw.c (mswindows_handle_gui_wm_command):
13096         handle both :callback and :callback-ex, and generate our own
13097         event because it's one of the callback-ex arguments.
13098
13099         * gui-x.c:
13100         * gui-x.c (popup_selection_callback):
13101         handle both :callback and :callback-ex, and generate our own
13102         event because it's one of the callback-ex arguments.
13103         * gui-x.c (button_item_to_widget_value):
13104         * gui-x.c (gui_items_to_widget_values_1):
13105         * gui-x.c (gui_item_children_to_widget_values):
13106         * gui-x.c (gui_items_to_widget_values):
13107         new image instance parameter in various places.
13108
13109         * fns.c (Freplace_list):
13110         fix small typo in doc string.
13111
13112         * lisp.h:
13113         declare enqueue_Xt_dispatch_event.
13114
13115 2000-04-28  Ben Wing  <ben@xemacs.org>
13116
13117         * buffer.c:
13118         * buffer.c (Frecord_buffer):
13119         * buffer.c (syms_of_buffer):
13120         delete record-buffer-hook.
13121
13122         * fns.c:
13123         * fns.c (Freplace_list):
13124         * fns.c (syms_of_fns):
13125         new primitive replace-list.
13126
13127         * frameslots.h:
13128         slot for old buffer-alist.
13129
13130         * lisp.h:
13131         exfun replace-list.
13132
13133         * redisplay.c:
13134         * redisplay.c (redisplay_frame):
13135         * redisplay.c (syms_of_redisplay):
13136         * redisplay.c (vars_of_redisplay):
13137         new hook buffer-list-changed-hook.
13138         call it.
13139
13140 2000-04-27  Ben Wing  <ben@xemacs.org>
13141
13142         * extents.h: extern in_modeline_generation.
13143
13144         * redisplay.c (generate_formatted_string_db): set
13145         in_modeline_generation.
13146
13147         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13148         flags if in modeline generation.  otherwise frame-modified-tick
13149         is ticked far too often.
13150         Declare in_modeline_generation.
13151
13152 2000-04-26  Ben Wing  <ben@xemacs.org>
13153
13154         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13155         option.
13156         (vars_of_emacs): add quick-build as an error-checking option.
13157         A bit kludgy, but there doesn't seem much point in creating
13158         a real var for this.
13159
13160         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13161
13162 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13163
13164         * redisplay.h (struct display_line): Add a new variable,
13165         line_continuation.
13166
13167         * redisplay.c (create_text_block): Set dl->line_continuation if
13168         the line continues.
13169         (create_string_text_block): Ditto.
13170         (regenerate_window_incrementally): Use line_continuation instead
13171         of searching continuation glyph.
13172         (add_margin_runes): Call add_glyph_rune.
13173         (add_glyph_rune): Handle margin glyph.
13174
13175 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13176
13177         * filelock.c (fill_in_lock_file_name):
13178         ANSIfy.
13179         Check for IS_ANY_SEP instead of '/'.
13180         (lock_file_1):
13181         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13182         Never check errno without first seeing that system call failed.
13183         (unlock_file): Add GCPRO.
13184         (Flock_buffer): Fix docstring.
13185         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13186
13187 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13188
13189         * sysdep.c (get_pty_max_bytes):
13190         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13191         strings longer than 252 bytes.
13192
13193         * md5.c: Unconditionally include ANSI header <limits.h>
13194
13195         * glyphs-x.c (convert_EImage_to_XImage):
13196         * lisp-union.h (union Lisp_Object):
13197         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13198
13199 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13200
13201         * filelock.c (current_lock_owner): Remove unused variable o, p.
13202
13203 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13204
13205         * callint.c: Remove multiply defined symbol Qlet
13206         (syms_of_callint): ditto.
13207
13208 2000-04-14  Andy Piper  <andy@xemacs.org>
13209
13210         * general.c (syms_of_general): add last-command, this-command, let
13211         and funcall.
13212
13213         * lisp.h: declare various symbols.
13214
13215         * glyphs.h: declare Qwidget_callback_current_channel;
13216
13217         * glyphs-widget.c (syms_of_glyphs_widget): add
13218         Qgui_callback_current_channel.
13219         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13220
13221         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13222         widget-callback-current-channel when invoking the interactive
13223         arg. Also bind last-command and next-command when invoking the
13224         widget updates.
13225         * gui-x.c (popup_selection_callback): ditto.
13226
13227         * gui.c (get_gui_callback): massage args so that we are always
13228         calling eval. This allows us to add our own variable bindings
13229         outside.
13230
13231         * glyphs-x.c (x_button_instantiate): use
13232         gui_items_to_widget_values since this is GC safe.
13233         (x_progress_gauge_instantiate): ditto.
13234         (x_edit_field_instantiate): ditto.
13235         (x_label_instantiate): ditto.
13236
13237         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13238         (emacs_Xt_event_widget_focus_out): new function
13239         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13240         focus.
13241         (emacs_Xt_event_add_widget_actions): new function. add focus
13242         functions as actions.
13243         (init_event_Xt_late): use it.
13244
13245 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13246
13247         * event-stream.c (Fdispatch_event): Doc fix.
13248
13249 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13250
13251         * postgresql.c: Remove all references to PQsetenv*.
13252
13253         * postgresql.h: Remove references to PGsetenvHandler object.
13254         * lrecord.h (lrecord_type): Ditto.
13255
13256 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13257
13258         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13259         real_heigh and real_width members, and accessor macros for these.
13260
13261         * glyphs-msw.c (init_image_instance_geometry): New function.
13262         (init_image_instance_from_dibitmap): Use it.
13263         (mswindows_resource_instantiate): Use it.
13264         (init_image_instance_from_xbm_inline): Use it.
13265         (mswindows_initialize_image_instance_mask): Use real bitmap
13266         geometry.
13267         (mswindows_create_resized_bitmap): Ditto.
13268         (mswindows_create_resized_mask): Ditto.
13269
13270         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13271         and bitmap to their surface size.
13272
13273 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13274
13275         * process-unix.c (unix_send_process): Guard against process MIA
13276         after Faccept_process_output.
13277
13278 2000-04-11  Ben Wing  <ben@xemacs.org>
13279
13280         * eval.c (unbind_to_hairy): fix brokenness introduced by
13281         nanosecond speed improvements.
13282
13283 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13284
13285         * sunplay.c (init_device): To play sounds correctly, the device
13286         apparently needs to be initialized at least once by XEmacs.  Make
13287         it so.
13288
13289 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13290
13291         * redisplay.c (add_margin_runes): Add text image glyph
13292           handling.
13293
13294 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13295
13296         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13297         gcc is newer than 2.5.
13298
13299 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13300
13301         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13302
13303         * fns.c (size_bit_vector):
13304         * alloc.c (size_vector):
13305         (make_vector_internal):
13306         (make_bit_vector_internal):
13307         (sweep_bit_vectors_1):
13308         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13309
13310 2000-04-06  Andy Piper  <andy@xemacs.org>
13311
13312         * gmalloc.c (malloc): undo previous change.
13313         (malloc): ditto.
13314         (free): ditto.
13315         (realloc): ditto.
13316
13317 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13318
13319         * line-number.c (buffer_line_number): Revert to former version.
13320
13321 2000-04-06  Andy Piper  <andy@xemacs.org>
13322
13323         * gmalloc.c (malloc): add error checking.
13324         (malloc): ditto.
13325         (free): ditto.
13326         (realloc): ditto.
13327
13328         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13329         button_item_to_widget_value arg.
13330
13331         * glyphs-x.c (x_button_instantiate): add extra
13332         button_item_to_widget_value arg.
13333         (x_progress_gauge_instantiate): ditto.
13334         (x_edit_field_instantiate): ditto.
13335         (x_label_instantiate): ditto.
13336
13337         * gui-x.c (gui_items_to_widget_values_1): add extra
13338         button_item_to_widget_value arg.
13339         (button_item_to_widget_value): add extra menu_item_p arg.
13340
13341         * gui-x.h: change signature of button_item_to_widget_value.
13342
13343         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13344         button_item_to_widget_value arg.
13345
13346 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13347
13348         * buffer.h (struct buffer): auto_save_modified should be long.
13349
13350 2000-04-05  Andy Piper  <andy@xemacs.org>
13351
13352         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13353         type.
13354         (button_query_geometry): give a little more room so that athena
13355         buttons fit.
13356
13357 2000-04-05  Andy Piper  <andy@xemacs.org>
13358
13359         * faces.c (complex_vars_of_faces): The widget face should inherit
13360         the font of the gui-element face.
13361
13362 2000-04-04  Andy Piper  <andy@xemacs.org>
13363
13364         * glyphs-x.c (x_button_update): new function. unconditionally
13365         update a button's state when the instance is dirty.
13366         (image_instantiator_format_create_glyphs_x): add x_button_update.
13367         (x_widget_instantiate): remove old resize cruft.
13368
13369 2000-04-02  Andy Piper  <andy@xemacs.org>
13370
13371         * frame.c (change_frame_size_1): The introduction of gutters means
13372         that we need to allow 0 as a potential frame dimension.
13373
13374 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13375
13376         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13377         image glyph if allow_cursor.
13378         (add_hscroll_rune): Don't allow cursor to border glyph.
13379         (create_text_block): Ditto.
13380
13381         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13382         text not in buffer.
13383         (redisplay_output_layout): Call ensure_face_cachel_complete for
13384         text image glyph.
13385
13386
13387 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13388
13389         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13390
13391         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13392         not in buffer
13393
13394         * redisplay-tty.c (tty_output_display_block): Delete the routine
13395         for text image glyph
13396         * redisplay-x.c (x_output_display_block): ditto
13397         * redisplay-msw.c (mswindows_output_display_block): ditto
13398
13399 2000-02-02  Mike Alexander  <mta@arbortext.com>
13400
13401         Note: Some of these were committed by accident as part of other
13402         patches.
13403
13404         * regex.c (regex_compile): Avoid compiler warnings.
13405
13406         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13407
13408         * nt.h: Declare term_ntproc correctly.
13409
13410         * nt.c: Remove incorrect declaration of get_home_directory which
13411         is declared correctly in lisp.h.
13412
13413         * keymap.c (get_keyelt): Avoid compiler warnings.
13414         (raw_lookup_key_mapper): Avoid compiler warnings.
13415
13416         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13417
13418         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13419
13420         * filemode.c (mode_string): Avoid compiler warnings.
13421
13422         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13423         avoid warning.
13424
13425         * events-mod.h: Undef some things that winuser.h defines differently.
13426
13427         * data.c (Faset): Avoid compiler warnings.
13428
13429         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13430
13431 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13432
13433         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13434         Fall through to simple beep on error.
13435         Replace "extern" by real header file.
13436
13437         * linuxplay.c: Use nativesound.h
13438         (play_sound_data): Return error code. Be less verbose on error.
13439
13440         * sunplay.c: Use nativesound.h
13441         (play_sound_data): Return error code. Be less verbose on error.
13442
13443         * ntplay.c: Use nativesound.h
13444         (play_sound_data): Return fake error code
13445
13446         * sgiplay.c: Use nativesound.h
13447         (play_sound_data): Return error code
13448
13449         * hpplay.c: Use nativesound.h, partially implement
13450         new error code. Break compilation until finished.
13451         (play_sound_data): error code.
13452
13453         * nativesound.h (play_sound_file):
13454           (play_sound_data): Prototype in new header.
13455
13456 2000-03-31  Andy Piper  <andy@xemacs.org>
13457
13458         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13459         for toggle and radio buttons.
13460         (image_instantiator_buttons): use it.
13461
13462 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13463
13464         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13465         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13466         found. Scrollbar event probably belonged to some old config.
13467
13468 2000-03-31  Andy Piper  <andy@xemacs.org>
13469
13470         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13471         than 1.
13472         (initialize_widget_image_instance): default layout to
13473         LAYOUT_HORIZONTAL rather than 0.
13474         (widget_instantiate): reverse the item list at the end rather than
13475         every iteration.
13476         (layout_layout): re-code for the border text at the front of the
13477         item list rather than at the end.
13478         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13479         provided by the user.
13480         (widget_query_geometry): comment.
13481
13482 2000-03-30  Andy Piper  <andy@xemacs.org>
13483
13484         * glyphs-widget.c (image_instantiator_layout): allow standard
13485         widget keywords in layouts.
13486
13487         * gutter.c (output_gutter): cope with nil gutter contents.
13488
13489         * frame.c (Fset_frame_properties): add gutter docs.
13490
13491 2000-03-29  Andy Piper  <andy@xemacs.org>
13492
13493         * toolbar-msw.c (TBSTYLE_FLAT): add.
13494         (mswindows_output_toolbar): minor fiddling.
13495
13496 2000-03-29  Andy Piper  <andy@xemacs.org>
13497
13498         * gutter.c (output_gutter): force gutter size recalculation if
13499         what we are trying to display won't fit.
13500         (update_gutter_geometry): new function. A per-gutter version of
13501         update_frame_gutter_geometry.
13502         (update_frame_gutter_geometry): use it.
13503         (redraw_exposed_gutter): add extra debugging output.
13504
13505 2000-03-28  Mike Alexander  <mta@arbortext.com>
13506
13507         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13508         (pdump_file_unmap): Implement it on Windows
13509         (pdump_file_get): Save alocated handles for pdump_file_unmap
13510
13511 2000-03-28  Andy Piper  <andy@xemacs.org>
13512
13513         * gui.c (get_gui_callback): treat Quit specially.
13514
13515 2000-03-27  Andy Piper  <andy@xemacs.org>
13516
13517         * glyphs.c (image_instantiate): be careful to check in the same
13518         way we assigned.
13519
13520 2000-03-27  Didier Verna  <didier@xemacs.org>
13521
13522         * config.h.in: define the proper SMART_INCLUDE macro.
13523         handle renaming of `foo_h_path' to `foo_h_file'.
13524
13525         * database.c: ditto.
13526
13527         * emacs.c: ditto.
13528
13529         * linuxplay.c: ditto.
13530
13531         * terminfo.c: ditto.
13532
13533         * tooltalk.h: ditto.
13534
13535 2000-03-27  Andy Piper  <andy@xemacs.org>
13536
13537         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13538         gets updated whenever the face might have changed.
13539
13540 2000-03-26  Mike Alexander  <mta@arbortext.com>
13541
13542         * dumper.c (pdump_resource_free): Fix the comment.
13543
13544 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13545
13546         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13547
13548 2000-03-22  Mike Alexander  <mta@arbortext.com>
13549
13550         * dumper.c: Include Windows headers on Windows
13551         (pdump_resource_free): Add a body to the function
13552         (pdump_load): exe_name -> exe_path and add some comments.
13553
13554 2000-03-25  Mike Alexander  <mta@arbortext.com>
13555
13556         * gui.c (copy_gui_item_tree): Return a value in all cases
13557
13558 2000-03-21  Didier Verna  <didier@xemacs.org>
13559
13560         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13561         lwlib/config.h.in.
13562         (SMART_INCLUDE): new macro.
13563         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13564         the proper location.
13565
13566         * postgresql.c: use it.
13567
13568         * inline.c: ditto.
13569
13570 2000-03-24  Andy Piper  <andy@xemacs.org>
13571
13572         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13573         do this.
13574
13575 2000-03-24  Andy Piper  <andy@xemacs.org>
13576
13577         * redisplay-output.c (compare_runes): use image_instance_changed
13578         to detect changes. Do not depend on glyphs_changed, only depend on
13579         dirtiness.
13580          (redisplay_output_layout): add debug messages.
13581         (compare_runes): ditto.
13582
13583         * glyphs.h: declare new functions.
13584         (struct Lisp_Image_Instance): remove percent and associated
13585         accessors.
13586
13587         * gui.h: declare new copying functions.
13588
13589         * gui.c (copy_gui_item_tree): new function.
13590         (copy_gui_item): new function.
13591         (gui_item_id_hash): revert to standard hash.
13592         (gui_item_hash): ditto.
13593         (gui_item_hash_internal): deleted.
13594         (mark_gui_item): mark value.
13595         (gui_item_add_keyval_pair): add value.
13596         (gui_item_init): ditto.
13597         (gui_add_item_keywords_to_plist): ditto.
13598         (gui_item_equal): ditto.
13599         (syms_of_gui): add Q_value.
13600
13601         * glyphs-x.c (x_progress_gauge_update): use pending items and
13602         value for setting the state.
13603         (x_update_widget): don't set items from pending here.
13604
13605         * glyphs-widget.c (update_widget): update items here.
13606         (progress_gauge_set_property): use items for storing value. Put
13607         new value in pending items.
13608
13609         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13610         items for new value. Convert percent -> value.
13611         (mswindows_tab_control_update): don't update items here.
13612
13613         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13614         (update_subwindow): ditto.
13615         (image_instance_changed): new function. Compare hash values and
13616         past and present widget items.
13617         (image_instantiate): We more careful about where we instantiate
13618         things.
13619         (image_instantiate): add error checking.
13620
13621         * gutter.c (syms_of_gutter): use -hook.
13622
13623 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13624
13625         * console-tty.c (Fset_console_tty_input_coding_system): Use
13626         Qkeyboard.
13627         (Fset_console_tty_output_coding_system): Use Qterminal.
13628         (tty_init_console): Use Qkeyboard and Qterminal.
13629
13630 2000-03-21  Ben Wing  <ben@xemacs.org>
13631
13632         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13633         From Mike Alexander <mta@arbortext.com>.
13634
13635 2000-03-21  Ben Wing  <ben@xemacs.org>
13636
13637         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13638         process brokenness.  Proper implementation to come.
13639         * callproc.c:
13640         Rename call-process-internal to old-call-process-internal.
13641         New impl. in process.el.
13642
13643 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13644
13645         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13646
13647 2000-03-20  Andy Piper  <andy@xemacs.org>
13648
13649         * glyphs.c (full_list_hash): make hashes of the same elements in
13650         different orders return different values.
13651
13652 2000-03-20  Martin Buchholz <martin@xemacs.org>
13653
13654         * XEmacs 21.2.32 is released.
13655
13656 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13657
13658         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13659         (DFC_MALLOC_USE_CONVERTED_DATA):
13660         Add aliasing-safe casts to allow use with char* or unsigned char*
13661         lvalues.
13662
13663         * eldap.c (Fldap_open):
13664         (Fldap_search_basic):
13665         (Fldap_add):
13666         (Fldap_modify):
13667         Make C++-compilable.
13668         Make sure GCPRO'ed variables are initialized.
13669         Use temp variables to avoid repeated calls to Flength.
13670
13671 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13672
13673         * sysfile.h:
13674         Make sure PATH_MAX is always defined.
13675         Include limits.h for PATH_MAX.
13676         Deprecate use of MAXPATHLEN.
13677
13678 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13679
13680         * emacs.c: Add reinit_vars_of_fileio.
13681         * symsinit.h: Add reinit_vars_of_fileio.
13682         * fileio.c (reinit_vars_of_fileio): New.
13683         * fileio.c (Fmake_temp_name):
13684         Initialize temp_name random number from microseconds to make
13685         collisions even less likely.  Initialize always at process startup
13686         time.  (make-temp-name) used to return the same file name twice in
13687         a row when PDUMP.
13688         Random stylistic fiddling.
13689         Comment fixes.
13690
13691 2000-03-20  Andy Piper  <andy@xemacs.org>
13692
13693         * glyphs.c (image_instantiate): allow text glyphs to be
13694         instantiated in the minibuffer window.
13695
13696 2000-03-19  Andy Piper  <andy@xemacs.org>
13697
13698         * glyphs.c (image_instance_hash): be careful about which items we
13699         hash on.
13700
13701         * glyphs-widget.c (tab_control_set_property): record into pending
13702         items rather than the actual items.
13703
13704         * glyphs-x.c (x_update_widget): use pending items to update with.
13705
13706         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13707         to update with.
13708
13709         * glyphs.c (mark_image_instance): mark pending items.
13710
13711         * window.c (Fset_window_configuration): record the buffer.
13712         (Fselect_window): totally revert previous change which breaks many
13713         things.
13714
13715 2000-03-18  Andy Piper  <andy@xemacs.org>
13716
13717         * glyphs-msw.c (mswindows_tab_control_update): force selected
13718         item.
13719
13720         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13721         window domain cache, otherwise we get inconsistencies at
13722         startup. There is something fishy at startup which can lead to the
13723         minibuffer being the selected window when the gutter content is
13724         instantiated.
13725
13726         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13727         gcpros.
13728         (parse_gui_item_tree_children): ditto.
13729         (parse_gui_item_tree_item): ditto.
13730
13731         * glyphs.c (Fupdate_widget_instances): return something.
13732
13733 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13734
13735         * window.c (Fselect_window): Undo 2000-03-17 change.
13736
13737 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13738
13739         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13740         against v7.0 libraries.  Insta-coredump city until the postgres
13741         folks fix it.
13742
13743 2000-03-17  Andy Piper  <andy@xemacs.org>
13744
13745         * faces.c (complex_vars_of_faces): don't give the widget face an
13746         inherited background pixmap.
13747
13748         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13749         selected item.
13750
13751         * event-stream.c (Fdispatch_non_command_events): return something.
13752
13753         * gutter.c (output_gutter): use widget face.
13754         (clear_gutter): ditto.
13755
13756         * NEWS: adjust again.
13757
13758         * window.c (Fselect_window): make sure this runs to completion to
13759         avoid oddities with Fset_window_configuration.
13760         (Fcurrent_window_configuration): in general do not save the
13761         minibuffer as the selected window.
13762
13763         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13764
13765 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13766
13767         * emacs.c (Frunning_temacs_p): Revert previous patch.
13768         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13769
13770 2000-03-16  Andy Piper  <andy@xemacs.org>
13771
13772         * glyphs-x.c (x_tab_control_update): if no widget values then
13773         return.
13774
13775         * NEWS: update for new features.
13776
13777         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13778         synthetic event to the native system.
13779         (reinit_vars_of_event_Xt): set force_event_pending to
13780         emacs_Xt_force_event_pending.
13781
13782         * events.h (struct event_stream): add force_event_pending.
13783
13784         * specifier.c (recompute_one_cached_specifier_in_window): add
13785         comment.
13786
13787         * redisplay.c (redisplay_frame): don't call
13788         update_frame_subwindows. Reset subwindow cachels when
13789         subwindows_changed, removing this was an optimization too far.
13790
13791         * redisplay-output.c (compare_runes): reorganize so that we catch
13792         glyph changes when we want them. Set optimize_output when this
13793         would help layouts.
13794         (redisplay_output_layout): remove frame_really_changed, use
13795         optimize_output instead.
13796
13797         * redisplay-msw.c (mswindows_output_display_block): reset
13798         optimize_output after outputting a glyph.
13799         * redisplay-x.c (x_output_display_block): ditto.
13800         * redisplay-tty.c (tty_output_display_block): ditto.
13801
13802         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13803         functions.
13804         (gutter_specs_changed): do specific gutter positions.
13805         (top_gutter_specs_changed): new function. Only update the
13806         specified gutter specs.
13807         (bottom_gutter_specs_changed): ditto.
13808         (left_gutter_specs_changed): ditto.
13809         (right_gutter_specs_changed): ditto.
13810
13811         * gui.c (gui_item_hash_internal): new function, does a real hash.
13812         (gui_item_id_hash): use it.
13813         (gui_item_hash): hash the eval'ed gui_item.
13814
13815         * gui-x.c (popup_selection_callback): send an eval event to call
13816         Fupdate_widget_instances.
13817
13818         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13819         to call Fupdate_widget_instances.
13820
13821         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13822         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13823
13824         * glyphs.c: (update_frame_subwindows): deleted.
13825         (Fupdate_widget_instances): new function for updating the dirty
13826         state of widgets that might have changed.
13827         (syms_of_glyphs): add Qupdate_widget_instances.
13828         (full_list_hash): hash a list completely.
13829         (image_instance_hash): use it for items and properties.
13830
13831         * frame-msw.c (mswindows_size_frame_internal): remove unused
13832         variable.
13833
13834         * faces.h (struct face_cachel): fix comment.
13835
13836         * event-stream.c (Fdispatch_non_command_events): new
13837         function. Process non-command events, forcing an event cycle
13838         beforehand.
13839         (syms_of_event_stream): declare.
13840         (event_stream_force_event_pending): new function. Force an event
13841         on the native event queue so that an event cycle will occur next
13842         time we check.
13843
13844         * event-msw.c:
13845         (struct ntpipe_shove_stream):
13846         (mswindows_enqueue_dispatch_event):
13847         (mswindows_dequeue_dispatch_event):
13848         (mswindows_cancel_dispatch_event):
13849         (mswindows_pump_outstanding_events):
13850         (mswindows_drain_windows_queue):
13851         (mswindows_handle_paint):
13852         (mswindows_wnd_proc):
13853         (mswindows_key_to_emacs_keysym):
13854         (get_process_input_waitable):
13855         (emacs_mswindows_delete_stream_pair): re-indent file.
13856         (mswindows_need_event): do not process further fds if the windows
13857         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13858         fixes the 100% cpu problem.
13859         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13860
13861 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13862
13863         * alloc.h: New.
13864         * dumper.h: New.
13865         * dumper.c: New.
13866
13867         * emacs.c: Moved dump file searching to dumper.c.
13868         (Frunning_temacs_p): Fixed.
13869
13870         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13871         last_lrecord_type_index_assigned.
13872
13873 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13874
13875         * symsinit.h: Added reinit parameter to init_console_stream
13876         declaration.
13877
13878         * lisp.h: Added file parameter to pdump_load declaration.
13879
13880         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13881         support.  Added dump file searching.
13882
13883         * config.h.in: Added EMACS_PROGNAME.
13884
13885         * console-stream.c (init_console_stream): Fix reinitialisation
13886         when running from temacs.
13887
13888         * alloc.c (pdump): Add id support.
13889         (pdump_load): Add file parameter and signature/id support.
13890
13891         * Makefile.in.in: Add full pdump support.
13892
13893 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13894
13895         * postgresql.c: Update documentation to reflect latest code
13896         status.
13897         (print_result): Show tuple counts in printed representation when
13898         appropriate.
13899         (Fpq_put_nbytes): MULE-ize.
13900         (Fpq_get_line_async): Ditto.
13901
13902 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13903
13904         * postgresql.c (Fpq_lo_import): Fix return value.
13905         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13906
13907 2000-03-13  Ben Wing  <ben@xemacs.org>
13908
13909         * alloc.c (pdump_load):
13910         Fix compile warning under mswin.
13911
13912 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13913
13914         * postgresql.c: Mule-ization, bug fixes.
13915         Use PG_CODING to encapsulate coding system name changes.
13916         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13917         (pg-coding-system): Create.
13918
13919         (Fpq_conn_defaults): Mule-ize.
13920         (Fpq_connectdb): Mule-ize & bug fix.
13921         (Fpq_connect_start): Mule-ize.
13922         (Fpq_set_client_encoding): Mule-ize.
13923         (Fpq_finish): Document `DEAD' connection status.
13924         (Fpq_clear): Ditto.
13925         (Fpq_pgconn): Mule-ize.
13926         (Fpq_exec): Mule-ize & bug fix.
13927         (Fpq_send_query): Ditto.
13928         (Fpq_get_result): Ditto.
13929         (Fpq_res_status): Mule-ize.
13930         (Fpq_result_error_message): Mule-ize.
13931         (Fpq_ntuples): fix comments.
13932         (Fpq_fname): Mule-ize.
13933         (Fpq_fnumber): Mule-ize.
13934         (Fpq_ftype): fix comments.
13935         (Fpq_get_value): Mule-ize.
13936         (Fpq_cmd_status): Ditto.
13937         (Fpq_cmd_tuples): Ditto.
13938         (Fpq_oid_value): Ditto.
13939         (Fpq_notifies): Ditto.
13940         (Fpq_lo_import): Ditto.
13941         (Fpq_lo_export): Ditto.
13942         (Fpq_get_line): Ditto.
13943         (Fpq_put_line): Mule-ize and bug fix.
13944         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13945
13946 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13947
13948         * postgresql.c (vars_of_postgresql): Mule-ize.
13949         (Fpq_conn_defaults): Ditto.
13950
13951 2000-03-12  Ben Wing  <ben@xemacs.org>
13952
13953         * alloc.c (Fmake_byte_code):
13954         * alloc.c (debug_string_purity_print):
13955         * alloc.c (pdump_backtrace):
13956         * alloc.c (pdump_get_indirect_count):
13957         * alloc.c (pdump_register_sub):
13958         * alloc.c (pdump_register_object):
13959         * alloc.c (pdump_register_struct):
13960         * alloc.c (pdump_dump_data):
13961         * alloc.c (pdump_reloc_one):
13962         Minor cleanups.
13963
13964         * console-msw.c:
13965         * console-msw.c (GetConsoleHwnd):
13966         * console-msw.c (msw_hide_console):
13967         * console-msw.c (msw_show_console):
13968         * console-msw.c (msw_ensure_console_buffered):
13969         * console-msw.c (msw_output_console_string):
13970         * console-msw.c (console_type_create_mswindows):
13971
13972         a) Added functions to manipulate the console window for use with
13973         shell support.
13974
13975         b) Added support for writing text to the console, which is now
13976         used under Windows when xemacs is not being run non-interactively,
13977         to write text that would otherwise be destined for stdout because
13978         under these circumstances, text written to stdout tends to
13979         disappear and not be seen.
13980
13981         * console-msw.h:
13982         * event-Xt.c:
13983         * event-Xt.c (x_event_to_emacs_event):
13984         * event-Xt.c (describe_event_window):
13985         * events-mod.h (XEMACS_MOD_CONTROL):
13986         * events.c:
13987         * events.c (Fmake_event):
13988         * events.c (character_to_event):
13989         * events.c (event_to_character):
13990         * events.c (format_event_object):
13991         * events.c (Fevent_modifiers):
13992         * events.h:
13993         * events.h (struct key_data):
13994         * events.h (struct button_data):
13995         * events.h (struct misc_user_data):
13996         * frame-x.c (Fcde_start_drag_internal):
13997         * frame-x.c (Foffix_start_drag_internal):
13998         * gpmevent.c (Freceive_gpm_event):
13999         * keymap.c:
14000         * keymap.c (bucky_sym_to_bucky_bit):
14001         * keymap.c (control_meta_superify):
14002         * keymap.c (make_key_description):
14003         * keymap.c (keymap_lookup_directly):
14004         * keymap.c (create_bucky_submap):
14005         * keymap.c (keymap_store):
14006         * keymap.c (define_key_check_and_coerce_keysym):
14007         * keymap.c (define_key_parser):
14008         * keymap.c (define_key_alternate_name):
14009         * keymap.c (Fdefine_key):
14010         * keymap.c (raw_lookup_key_mapper):
14011         * keymap.c (struct map_keymap_unsorted_closure):
14012         * keymap.c (map_keymap_unsorted_mapper):
14013         * keymap.c (map_keymap_sort_predicate):
14014         * keymap.c (map_keymap_sorted):
14015         * keymap.c (accessible_keymaps_mapper_1):
14016         * keymap.c (where_is_recursive_mapper):
14017         * keymap.c (describe_map_mapper):
14018         * keymap.c (describe_map_sort_predicate):
14019         * keymap.c (describe_map):
14020         * keymap.c (complex_vars_of_keymap):
14021         And a number of other files, the key modifier preprocessor
14022         constants that xemacs uses have names that conflict with constants
14023         defined under MS Windows for other purposes, so they were renamed
14024         to begin with the prefix XEMACS_. The variables that hold such
14025         modifiers were changed to consistently be of type int to fix
14026         various compile warnings.
14027
14028         * console.c (complex_vars_of_console):
14029         * device.c:
14030         * device-msw.c:
14031         * device-msw.c (mswindows_finish_init_device):
14032         * device-msw.c (msw_get_workspace_coords):
14033         * device-msw.c (mswindows_device_system_metrics):
14034         and various other files, added support for a new
14035         device property called offset-workspace which returns the position
14036         of the upper left corner of the workspace area and goes along with
14037         the existing size-workspace property.
14038
14039         * dialog-msw.c:
14040         * dialog-msw.c (push_bufbyte_string_as_unicode):
14041         * dialog-msw.c (mswindows_popup_dialog_box):
14042         Added support for XEmacs-style accelerator specifications in
14043         button text.  Note: I didn't add support for this under X Windows,
14044         and somebody needs to do this.
14045
14046         * dialog.c:
14047         * dialog.c (Fpopup_dialog_box):
14048         Documented the support for accelerators that was just mentioned.
14049
14050         editfns.c (get_home_directory): Changed behavior under Windows
14051         when HOME not defined; former behavior was irretrievably broken.
14052
14053         * emacs.c:
14054         * emacs.c (main_1):
14055         * emacs.c (main):
14056         * minibuf.c (clear_echo_area_internal):
14057         * minibuf.c (echo_area_append):
14058         * print.c:
14059         * print.c (std_handle_out_external):
14060         * print.c (std_handle_out_va):
14061         * print.c (fatal):
14062         * print.c (write_string_to_stdio_stream):
14063         * print.c (output_string):
14064         * print.c (debug_print):
14065         * print.c (debug_backtrace):
14066         * print.c (debug_short_backtrace):
14067         Cleaned up the code that prints text to stdout so that this can be
14068         changed to output into a console window instead under MS Windows,
14069         as described above.
14070
14071         * eval.c:
14072         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14073         * eval.c (internal_catch):
14074         * eval.c (unwind_to_catch):
14075         * eval.c (throw_or_bomb_out):
14076         * eval.c (condition_case_1):
14077         * eval.c (signal_1):
14078         * eval.c (check_error_state_sanity):
14079         * eval.c (call_with_suspended_errors_1):
14080         * eval.c (call_with_suspended_errors):
14081         * eval.c (reinit_vars_of_eval):
14082         Added code to catch throw loops and check for a pesky bug that may
14083         be gone now.
14084
14085         * event-msw.c:
14086         * event-msw.c (key_needs_default_processing_p):
14087         * event-msw.c (mswindows_wnd_proc):
14088         * event-msw.c (mswindows_modifier_state):
14089         * event-msw.c (emacs_mswindows_quit_p):
14090         * event-msw.c (vars_of_event_mswindows):
14091         a) Added support for using the alt key to select menu items as is
14092         standard under MS Windows.  This is controlled using the variable
14093         menu-accelerator-enabled, just like under X Windows.  There is an
14094         option on the options menu to turn this support on.  I really
14095         think that it should be on by default under Windows, but I'm not
14096         going to make this change yet.
14097
14098         b)  Added support for dynamic display size changes under Windows.
14099
14100         * event-stream.c:
14101         * event-stream.c (maybe_echo_keys):
14102         * event-stream.c (Fnext_event):
14103         * event-stream.c (command_builder_find_leaf):
14104         * event-stream.c (lookup_command_event):
14105         * event-stream.c (execute_command_event):
14106         * event-stream.c (pre_command_hook):
14107         * event-stream.c (post_command_hook):
14108         * event-stream.c (syms_of_event_stream):
14109         * event-stream.c (vars_of_event_stream):
14110         * event-stream.c (complex_vars_of_event_stream):
14111         * events.h (struct command_builder):
14112
14113         a) Tried to clean up a little bit the horribly written x-specific
14114         accelerator code that crept into this file.  I moved this code
14115         into menubar-x.c where it belongs. I also needed to move the
14116         command builder structure into the file events.h because it is
14117         accessed directly by this accelerator code.  What I didn't do, but
14118         which should be done at some point, is to properly abstract this
14119         code using device methods instead of the kludgy way that it
14120         currently hooks into the event code.
14121
14122         b) Added the lisp variables this-command-properties and
14123         last-command- properties, which should be used to synchronize two
14124         adjacent commands in preference to playing games with the variable
14125         this-command, which is typically what happens.
14126
14127         c) Added some slightly nasty code to hook into the lisp support
14128         for shifted- motion-key selection.  This is actually necessary for
14129         somewhat complicated reasons, which are described in
14130         simple.el. (NB: I think the proper thing would be to have the code
14131         that calls the pre and post command hooks also call out to generic
14132         lisp functions in simple.el, where all built-in stuff could be
14133         added.  I will think about this more.)
14134
14135         * event-unixoid.c (poll_fds_for_input):
14136         * lread.c (readchar):
14137         * redisplay-tty.c (tty_clear_frame):
14138         * redisplay-x.c (x_get_gc):
14139         * signal.c (interrupt_signal):
14140         And a whole bunch of other files: fixed up places that printed
14141         directly to stderr to instead call the function stderr_out so that
14142         the changes I made under Windows work correctly.
14143
14144         * filemode.c (mode_string):
14145         Warning fixes.
14146
14147         * frame-msw.c:
14148         * frame-msw.c (mswindows_size_frame_internal):
14149         Fixed the computation of frame size and position to keep the frame
14150         within the workspace area, rather than within the physical
14151         dimensions of the screen, so that the frame doesn't overlap window
14152         manager decorations, such as the start menu and toolbar, typically
14153         at the bottom of the screen.
14154
14155         * frame.c (vars_of_frame):
14156         Changed the default frame title format under MS Windows to consist
14157         of buffername-XEmacs, which is standard under MS Windows.  I think
14158         it might be a good idea to change this everywhere because I think
14159         it is superior to the current frame title format, but this is the
14160         kind of change that is likely to cause some people to get annoyed,
14161         so I'm not making it.
14162
14163         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14164
14165         * gui-msw.c (mswindows_handle_gui_wm_command):
14166         Fixed compile warnings.
14167
14168         * gui-x.c:
14169         * gui-x.c (strdup_and_add_accel):
14170         * gui-x.c (button_item_to_widget_value):
14171         * gui-x.h:
14172         Added code to automatically put an accelerator onto the beginning
14173         of menu items that don't have one as is now the standard, and is
14174         described more later.  Also fixed things so that the menu item
14175         name can be an evaluated expression, again a new standard.
14176
14177         * gui.c:
14178         * gui.c (gui_item_add_keyval_pair):
14179         * gui.c (make_gui_item_from_keywords_internal):
14180         * gui.c (gui_add_item_keywords_to_plist):
14181         * gui.c (gui_item_accelerator):
14182         * gui.c (gui_name_accelerator):
14183         * gui.c (gui_item_included_p):
14184         * gui.c (gui_item_display_flush_left):
14185         * gui.c (gui_item_display_flush_right):
14186         * gui.c (parse_gui_item_tree_item):
14187         * gui.c (parse_gui_item_tree_children):
14188         * gui.c (parse_gui_item_tree_list):
14189         Mule-ized.  Cleanup.  GCPRO addition.
14190
14191         * line-number.c (buffer_line_number):
14192         * lisp.h:
14193         * lisp.h (EMACS_INT_MAX):
14194         Added the manifest constant EMACS_INT_MIN corresponding to the
14195         existing constant EMACS_INT_MAX.  This is partially to fix compile
14196         warnings under Windows, and partly for cleanliness.
14197
14198         * menubar-msw.c:
14199         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14200         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14201         * menubar-msw.c (displayable_menu_item):
14202         * menubar-msw.c (populate_menu_add_item):
14203         * menubar-msw.c (populate_or_checksum_helper):
14204         * menubar-msw.c (populate_menu):
14205         * menubar-msw.c (update_frame_menubar_maybe):
14206         * menubar-msw.c (prune_menubar):
14207         * menubar-msw.c (msw_char_is_accelerator):
14208         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14209         * menubar-msw.c (mswindows_handle_wm_command):
14210         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14211         * menubar-msw.c (mswindows_handle_wm_initmenu):
14212         * menubar-msw.c (mswindows_update_frame_menubars):
14213         * menubar-msw.c (mswindows_free_frame_menubars):
14214         * menubar-msw.c (mswindows_popup_menu):
14215         Fixed a bug in handling accelerators where an extra character
14216         would be displayed in the menu item.  Also generalized the
14217         function displayable_menu_item because it is now used by the
14218         dialog box code as well.  And finally, added code in the functions
14219         that create the menubar to extract a list of accelerators for the
14220         top level menubar, which is used in the event code to determine
14221         whether a particular alt-key combination should be used to invoke
14222         a menu item, or should be passed through to access the standard
14223         XEmacs keymap binding for this key combination.
14224
14225         Much needed GCPROing.
14226
14227         * menubar-x.c:
14228         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14229         * menubar-x.c (menu_item_descriptor_to_widget_value):
14230         * menubar-x.c (restore_in_menu_callback):
14231         * menubar-x.c (x_popup_menu):
14232         * menubar-x.c (menu_move_up):
14233         * menubar-x.c (menu_move_down):
14234         * menubar-x.c (menu_move_left):
14235         * menubar-x.c (menu_move_right):
14236         * menubar-x.c (menu_select_item):
14237         * menubar-x.c (command_builder_operate_menu_accelerator):
14238         * menubar-x.c (menu_accelerator_junk_on_error):
14239         * menubar-x.c (command_builder_find_menu_accelerator):
14240         * menubar-x.c (Faccelerate_menu):
14241         * menubar.h:
14242         Moved a whole bunch of code here that was previously in
14243         event-stream.c as described above.  There is also code connected
14244         to the new standard of adding an accelerator to the beginning of
14245         menu items that don't have one as described above and below.
14246
14247         * menubar.c:
14248         * menubar.c (menu_parse_submenu_keywords):
14249         * menubar.c (Fmenu_find_real_submenu):
14250         * menubar.c (Fnormalize_menu_item_name):
14251         * menubar.c (syms_of_menubar):
14252         * menubar.c (vars_of_menubar):
14253         * menubar.c (complex_vars_of_menubar):
14254
14255         a) Cleaned up a bunch of documentation and improved it.
14256
14257         b) XEmacs now automatically adds an accelerator onto the beginning
14258         of any menu items that don't have one.  I did this because there
14259         will inevitably be some menu items on the main menubar that don't
14260         have accelerators on them because the package that adds that
14261         particular menu item hasn't yet been fixed up to have accelerators
14262         in them and it looked rather strange to have some items with and
14263         some items without accelerators, especially since even in items
14264         without accelerators, you can, at least under windows, still
14265         access the item through an accelerator corresponding to the first
14266         character in the item's name.  If people don't like this behavior,
14267         I can add a variable to turn it off optionally, but I'm not sure
14268         this is a good idea because we really do need to have accelerators
14269         on all of the menu items, and if a package doesn't like the
14270         accelerators being put on the first character, then it should put
14271         the accelerators where they belong.
14272
14273         c) I made a behavior change, which is that the descriptor that
14274         specifies the text of the menu item, which formerly was just a
14275         string, can now also be an evaluated expression.  This makes this
14276         descriptor parallel with all of the others, which could also be
14277         evaluated expressions.  This also obviates the need for the
14278         keyword :label, which was previously listed in the documentation
14279         as unimplemented, and which was for the same purpose.
14280
14281         d) GCPROing.
14282
14283         * ntproc.c:
14284         * ntproc.c (new_child):
14285         * ntproc.c (sys_spawnve):
14286         * ntproc.c (find_child_console):
14287         * ntproc.c (sys_kill):
14288         Fixed compile warnings.  By the way, this file should really go
14289         away entirely, and this will happen as soon as Kirill makes his
14290         final round of process cleanups, which affect the function
14291         call-process.
14292
14293         * process-nt.c:
14294         * process-nt.c (struct nt_process_data):
14295         * process-nt.c (find_process_from_pid):
14296         * process-nt.c (send_signal_the_nt_way):
14297         * process-nt.c (enable_child_signals):
14298         * process-nt.c (find_child_console):
14299         * process-nt.c (send_signal_the_95_way):
14300         * process-nt.c (nt_finalize_process_data):
14301         * process-nt.c (ensure_console_window_exists):
14302         * process-nt.c (nt_create_process):
14303         * process-nt.c (nt_kill_child_process):
14304         * process-nt.c (nt_kill_process_by_pid):
14305         * process-nt.c (nt_open_network_stream):
14306         * process-nt.c (vars_of_process_nt):
14307         Copied over code from Emacs 20.5 to correctly send signals to sub-
14308         processes under Windows 95.  Also added code to automatically
14309         create and hide console window when a sub-process is created under
14310         Windows 95, which obviates the need for the separate runemacs.exe
14311         executable, and finally implemented some variables that were
14312         implemented in Emacs 20.5, but previously not in XEmacs.  These
14313         include mswindows- start-process-share-console and
14314         mswindows-start-process-inherit-error-mode. (Both of these only
14315         apply to Windows 95.)
14316
14317         * regex.c (regex_compile): Fixed a compile warning.
14318
14319         * select-msw.c:
14320         * select-msw.c (mswindows_own_selection):
14321         * select-msw.c (mswindows_get_foreign_selection):
14322         * select-msw.c (mswindows_disown_selection):
14323         * select-msw.c (console_type_create_select_mswindows):
14324         * select-msw.c (syms_of_select_mswindows):
14325         Cleaned up the file and implemented the device method
14326         selection_exists_p, which had accidentally been left out.  Also
14327         removed four lisp functions that were remnants from before the
14328         time when the selection code was properly device abstracted.
14329         These functions are no longer needed because there are generic
14330         equivalents, and because they were added recently and don't exist
14331         in FSF Emacs, I don't think there's any problem with just deleting
14332         them.
14333
14334         * sysdep.c:
14335         * sysdep.c (sys_subshell):
14336         Fixed a compile warning, although in this case there's probably
14337         something wrong with this code, and it ought to be looked into
14338         more thoroughly by somebody who understands it.
14339
14340         * window.c:
14341         * window.c (Fwindow_text_area_height):
14342         * window.c (Fwindow_width):
14343         * window.c (Fwindow_full_width):
14344         * window.c (Fwindow_pixel_width):
14345         * window.c (debug_print_window):
14346         * window.c (syms_of_window):
14347         Added functions window-text-area-height and window-full-width,
14348         which are functions for returning various width and height
14349         characteristics of a window. (One of these functions is necessary
14350         for making the file dialog box work correctly, and the other one
14351         was added for completeness.)  Also added a table to the
14352         documentation for window-height which describes the entire scheme
14353         for accessing width and height characteristics of a window.
14354
14355 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14356
14357         * nt.c (fstat): Added a comment for another problem with
14358         non-encapsulated [f]stat(), reported by Adrian Aichner
14359         <aichner@ecf.teradyne.com>.
14360
14361 2000-03-11  Andy Piper  <andy@xemacs.org>
14362
14363         * window.c (make_dummy_parent): initialize subwindow instance
14364         cache.
14365         (Fset_window_configuration): zero extent_modiff.
14366
14367 2000-03-10  Andy Piper  <andy@xemacs.org>
14368
14369         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14370         more changes can be triggered.
14371         (Fredisplay_frame): ditto.
14372         (Fredraw_device): ditto.
14373         (Fredisplay_device): ditto.
14374         (redisplay_frame): make non-static.
14375         (redisplay_frame): call update_frame_gutter_geometry outside of
14376         display proper.
14377
14378         * gutter.h: declare update_frame_gutter_geometry.
14379
14380         * redisplay.h: declare redisplay_frame.
14381
14382         * gutter.c (update_frame_gutter_geometry): move geometry changes
14383         in update_frame_gutters here. Geometry changes can only occur
14384         outside of redisplay.
14385         (update_frame_gutters): remove geometry change code.
14386         (Fredisplay_gutter_area): make sure that we are in display when we
14387         update and that we have flushed any size changes.
14388
14389 2000-03-11  Andy Piper  <andy@xemacs.org>
14390
14391         * alloc.c (pdump_dump_data): remove i & count shadows.
14392
14393 2000-02-27  Mike Alexander  <mta@arbortext.com>
14394
14395         * sysdep.h: Declare pdump_read_file
14396
14397         * sysdep.c (pdump_read_file): New function
14398
14399         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14400         dump data
14401
14402 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14403
14404         * lrecord.h: add `lrecord_type_pgsetenv'.
14405
14406 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14407
14408         * symsinit.h: declare (vars|syms)_of* functions.
14409         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14410
14411 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14412
14413         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14414
14415         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14416         GCCs.
14417
14418         * emacs.c (main_1): Call postgres initialization code.
14419
14420         * postgresql.h: New file.  PostgreSQL RDBMS support.
14421         * postgresql.c: New file.
14422
14423 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14424
14425         * redisplay-output.c (redisplay_output_display_block): Disable
14426         redundant code.
14427
14428 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14429
14430         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14431         (Fcanna_henkan_next): Ditto.
14432         (Fcanna_bunsetu_henkou): Ditto.
14433         (Fcanna_henkan_kakutei): Ditto.
14434         (Fcanna_henkan_end): Ditto.
14435         (Fcanna_henkan_quit): Ditto.
14436         (Fcanna_henkan_next): Set retun value correctly.
14437         (c2mu): Use unsigned char instead of signed char.
14438
14439 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14440
14441         * emacs.c (main_1): Always call syms_of_gui.
14442         * inline.c: include gui.h
14443
14444 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14445
14446         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14447         converted to Lisp_Object.
14448         (Qtop_bottom): New variable.
14449         (syms_of_redisplay): Initialize it.
14450         * redisplay.h (Vvisible_bell): Ditto.
14451         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14452         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14453         only flash top and bottom.
14454
14455 2000-03-08  Andy Piper  <andy@xemacs.org>
14456
14457         * buffer.c (Frename_buffer): record new buffer name the right way.
14458
14459 2000-03-08  Andy Piper  <andy@xemacs.org>
14460
14461         * glyphs.c (update_subwindow): increase hash depth so that widget
14462         items get picked up properly.
14463
14464         * redisplay-output.c (compare_runes): increase hash depth so that
14465         widget items get picked up properly.
14466
14467 2000-03-08  Andy Piper  <andy@xemacs.org>
14468
14469         * gutter.c (output_gutter): add some debug.
14470
14471         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14472         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14473         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14474
14475         * redisplay-output.c (compare_runes): use display_hash to
14476         determine if glyphs really are not the same.
14477
14478         * glyphs.c (update_subwindow): check display_hash to see if
14479         anything really needs to be updated. If not then do
14480         nothing. Record the display_hash after updating.
14481         (image_instance_equal): compare the image_instance face also.
14482
14483 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14484
14485         * redisplay.h: Fix comment style.
14486
14487 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14488
14489         * consle-msw.h (struct mswindows_frame):
14490         Added new member paint_pending to indicate whether a WM_PAINT
14491         magic event has been queued for this frame.
14492
14493         * event-msw.c (mswindows_drain_windows_queue):
14494         Don't queue a WM_PAINT magic event if one is already queued.
14495         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14496
14497         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14498
14499 2000-03-07  Didier Verna  <didier@xemacs.org>
14500
14501         * dired.c: #include `regex.h' after `sysfile.h'.
14502
14503 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14504
14505         * sound.c (init_nas_sound): Fix compiler warning.
14506
14507         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14508         (FREE_STRUCT_P):
14509         (MARK_STRUCT_AS_FREE):
14510         (MARK_STRUCT_AS_NOT_FREE):
14511         Make `gcc -fstrict-aliasing' work properly.
14512
14513 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14514
14515         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14516         (mswindows_delete_device): Call CoUnnitialize().
14517
14518         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14519
14520 2000-02-25    <CraigL@DyCon.com>
14521
14522         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14523         <errno.h>.
14524
14525         * sysdep.c: This extern declaration for environ prevents MinGW
14526         from finding the variable in CRTDLL.DLL.
14527
14528         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14529         windows headers.
14530         (SHGFI_EXETYPE): ..
14531         (WM_MOUSEWHEEL): ..
14532         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14533         definitions.
14534         (MMRESULT): Removed, now defined in cygwin's windows headers.
14535         (TIMECAPS): ..
14536         (uid_t,gid_t,pid_t,ssize_t): ..
14537         (_timeb): Removed, MinGW defines both _timeb and timeb.
14538         (HAVE_H_ERRNO): Added.
14539         (HAVE_TZNAME): Added, configure is not detecting this.
14540
14541 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14542
14543         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14544         * syntax.c (syntax_match): Use it.
14545
14546         * cmds.c: Import auto-fill-chars from FSF Emacs.
14547         (Vauto_fill_chars): New variables.
14548         (internal_self_insert): Check Vauto_fill_chars.
14549         (vars_of_cmds):
14550         Declare auto-fill-chars as a Lisp variable and initialize it.
14551
14552 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14553
14554         * fileio.c (Fmake_symbolic_link):
14555         (Ffile_symlink_p):
14556         Run handlers even if local machine doesn't have symlinks.
14557
14558 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14559
14560         * event-msw.c (mswindows_drain_windows_queue):
14561         Don't generate paint magic events for non-XEmacs frames.
14562
14563 2000-03-05  Andy Piper  <andy@xemacs.org>
14564
14565         * redisplay.c (redisplay_frame): generate_displayable_area and
14566         friends assumes that we are not in GC, we therefore have to make
14567         sure that this doesn't happen.
14568
14569         * gutter.c (calculate_gutter_size): generate_displayable_area
14570         assumes that we are not in GC, we therefore have to make sure that
14571         this doesn't happen.
14572
14573 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14574
14575         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14576
14577 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14578
14579         * redisplay.c (regenerate_window): Make sure we set a sane value
14580         for end_pos even if we jump out of the loop.
14581         (regenerate_window): Answer Ben's question :-).
14582         (start_end_of_last_line): Add may_error argument.
14583         (start_of_last_line):
14584         (end_of_last_line): Pass may_error = 0.
14585         (end_of_last_line_may_error): New function.
14586         (pixel_to_glyph_translation): Use it, so we don't crash in
14587         event_to_glyph.
14588
14589 2000-03-04  Andy Piper  <andy@xemacs.org>
14590
14591         * window.h (struct window): add gutter_extent_modiff.
14592
14593         * window.c (allocate_window): zero out gutter_extent_modiff.
14594
14595         * redisplay.h: declare sync_display_line_structs.
14596
14597         * redisplay.c (add_glyph_rune): add a better comment.
14598
14599         * redisplay-output.c (sync_display_line_structs): made non-static.
14600         (compare_runes): remove unneccesary glyph cachel access.
14601
14602         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14603
14604         * gutter.c (output_gutter): don't output the gutter if extent
14605         changes only involve extents in buffers. use 4 sets of display
14606         lines.
14607         (gutter_extent_signal_changed_region_maybe): new function. Mark
14608         extents in gutters as changed.
14609         (update_frame_gutters): use 4 sets of display lines.
14610         (reset_gutter_display_lines): ditto.
14611         (free_frame_gutters): ditto.
14612         (redraw_exposed_gutter): force output of gutters.
14613
14614         * frame.h (struct frame): add 4 sets of gutter display lines.
14615
14616         * extents.c: (extent_changed_for_redisplay): signal changes to
14617         extents in strings in the gutter as well as extents in buffers.
14618
14619 2000-03-02  Andy Piper  <andy@xemacs.org>
14620
14621         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14622
14623         * frame.c (Fmake_frame): make sure the gutters get initialized
14624         after the frame is visible.
14625         (set_frame_selected_window): re-arrange compilation macros a
14626         little.
14627         (change_frame_size_1): mark gutters changed.
14628
14629         * device.c (Fset_device_class): mark gutters changed.
14630
14631 2000-03-01  Andy Piper  <andy@xemacs.org>
14632
14633         * window.c (window_top_frame_gutter_height): deleted.
14634         (window_bottom_frame_gutter_height): ditto.
14635         (window_left_frame_gutter_height): ditto.
14636         (window_right_frame_gutter_height): ditto.
14637         (window_top_gutter_height): don't use them.
14638         (window_bottom_gutter_height): ditto.
14639         (window_left_gutter_width): ditto.
14640         (window_right_gutter_width): ditto.
14641         (Fsplit_window): ditto.
14642         (Fwindow_pixel_edges): don't use border dimensions here.
14643
14644         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14645         (update_scrollbar_instance): ditto.
14646
14647         * redisplay.c (generate_modeline): don't take gutters into account.
14648         (generate_modeline): ditto.
14649         (redisplay_frame): small gutter display optimization.
14650
14651         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14652
14653         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14654         gutters into account.
14655
14656         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14657         for window position and type.
14658
14659         * gutter.c (get_gutter_coords): fix for frame gutters.
14660         (update_frame_gutters): update frame geometry if the gutters have
14661         changed.
14662         (init_frame_gutters): record current gutter geometries.
14663
14664         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14665         var.
14666         (mswindows_widget_instantiate): ditto.
14667
14668         * frame.h (struct frame): add current_gutter_bounds.
14669
14670         * frame.c (change_frame_size_1): position window and minibuffer
14671         appropriately taking into account the frame gutters.
14672
14673         * frame-x.c: (x_initialize_frame_size): take into account the
14674         frame gutters.
14675
14676 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14677
14678         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14679
14680 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14681
14682         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14683
14684 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14685
14686         * file-coding.c (reset_decoding_stream): Clear previous
14687         detection state when autodetect.
14688
14689 2000-02-29  Didier Verna  <didier@xemacs.org>
14690
14691         * extents.c (set_extent_glyph_1): don't require extents to be
14692         attached.
14693
14694 2000-02-27  Andy Piper  <andy@xemacs.org>
14695
14696         * gutter.c (Fset_default_gutter_position): don't default left and
14697         right gutter visibility to t.
14698         (Fset_default_gutter_position): run
14699         default-gutter-position-changed-hook.
14700         (syms_of_gutter): add default-gutter-position-changed-hook.
14701
14702 2000-02-26  Andy Piper  <andy@xemacs.org>
14703
14704         * specifier.c (Fmake_specifier): add gutter references.
14705
14706         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14707
14708         * lisp.h: declare Fvalid_plist_p.
14709
14710         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14711         as changed.
14712         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14713         well as its visibility so that it gets reconstructed.
14714         (construct_window_gutter_spec): new function. Construct a string
14715         to be displayed in the gutter from a plist of strings. Take care
14716         to only use elements that are declared as visible.
14717         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14718         WINDOW_GUTTER.
14719         (gutter_validate): allow plists of strings in the specifier.
14720         (gutter_specs_changed): construct the real_gutter from the gutter
14721         specs using construct_window_gutter_spec.
14722         (gutter_visible_validate): gutter-visible is a new specifier type.
14723         (Fgutter_visible_specifier_p): new function for the new specifier.
14724         (syms_of_gutter): declare gutter-visible and
14725         Fgutter_visible_specifier_p.
14726         (specifier_type_create_gutter): intitalize new gutter-visible
14727         specifier.
14728         (reinit_specifier_type_create_gutter): ditto.
14729         (specifier_vars_of_gutter): use new specifier type for gutter
14730         visibility.
14731         (init_frame_gutters): construct real_gutter correctly.
14732         (Fgutter_specifier_p): beef up documentation.
14733         (Fgutter_size_specifier_p): ditto.
14734
14735         * winslots.h: add real_gutter slots.
14736
14737 2000-02-25  Andy Piper  <andy@xemacs.org>
14738
14739         * device-msw.c: Be kind to older cygwin versions. From Raymond
14740         Toy <toy@rtp.ericsson.se>.
14741
14742         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14743         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14744
14745 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14746
14747         * elhash.c (MARK_OBJ): Practice macro hygiene.
14748
14749 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14750
14751         * miscplay.c: s/__inline__/inline/g;
14752         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14753         (get_device_compdc): INLINE ==> static inline
14754         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14755         find -name '*.h' | \
14756         xargs global-replace \
14757         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14758
14759 2000-02-25  Andy Piper  <andy@xemacs.org>
14760
14761         * window.c (window_top_frame_gutter_height): new function.
14762         (window_top_window_gutter_height): ditto.
14763         (window_top_gutter_height): use them.
14764         (window_bottom_frame_gutter_height): new function.
14765         (window_bottom_window_gutter_height): ditto.
14766         (window_bottom_gutter_height): use them.
14767         (window_left_window_gutter_width): new function.
14768         (window_left_frame_gutter_width): ditto.
14769         (window_left_gutter_width): use them.
14770         (window_right_window_gutter_width): new function.
14771         (window_right_frame_gutter_width): ditto.
14772         (window_right_gutter_width): use them.
14773         (window_pixel_height): new function. calulate window pixel height
14774         with frame gutter involvement.
14775         (Fsplit_window): calculate new sizes taking frame gutters into
14776         account.
14777         (window_char_height_to_pixel_height): don't include frame gutters.
14778         (window_char_height): use window_pixel_height.
14779         (window_pixheight): rename from window_pixel_height.
14780         (change_window_height): use it.
14781         (window_pixel_height_to_char_height): don't include frame gutters.
14782         (window_char_width_to_pixel_width): ditto.
14783
14784 2000-02-25  Andy Piper  <andy@xemacs.org>
14785
14786         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14787         if it is.
14788
14789 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14790
14791         * alloc.c (staticpro):
14792         (staticpro_nodump):
14793         (dumpstruct):
14794         (dumpopaque):
14795         (pdump_wire):
14796         (pdump_wire_list):
14797         (compact_string_chars):
14798         (pdump_dump_wired):
14799         Convert:  if (foo) abort();  ==>  assert (! foo);
14800
14801         * eldap.c (Fldap_search_basic):
14802         (Fldap_add):
14803         (Fldap_modify):
14804         (Fldap_delete):
14805         Fix compiler warnings, and possible crashes if (random) return
14806         value were to be used.
14807
14808 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14809
14810         * device-msw.c: Workaround ResetDC failure.
14811
14812         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14813         applying a devmode.
14814
14815         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14816         (mswindows_text_width): Do not start printer page.
14817
14818         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14819
14820         * glyphs-msw.c: Added image methods to msprinter console and
14821         msprinter-specific image instantiation.
14822
14823 2000-02-20  Mike Alexander  <mta@arbortext.com>
14824
14825         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14826         to avoid crashes when selection-sets-clipboard is on
14827         (mswindows_own_selection): ditto
14828
14829 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14830
14831         * glyphs-msw.c:
14832         * redisplay-msw.c (get_frame_dc):
14833         (get_frame_compdc):
14834         * console-msw.h:
14835         * device-msw.c (mswindows_init_device):
14836         (mswindows_delete_device):
14837         (msprinter_init_device):
14838         (msprinter_delete_device):
14839         * frame-msw.c (mswindows_init_frame_1):
14840         (mswindows_delete_frame):
14841         (msprinter_init_frame_3):
14842         (msprinter_delete_frame): Move compatible DC to device object from
14843         frame object, for both mswindows and msprinter. Only one at a time
14844         is needed, it is a real waste to have one per frame!
14845
14846 2000-02-23  Andy Piper  <andy@xemacs.org>
14847
14848         * glyphs.c: add dynamic width and height elements.
14849         (image_instance_equal): ditto.
14850
14851         * glyphs-widget.c (widget_query_geometry): calculate width and
14852         height dynamically if required.
14853         (initialize_widget_image_instance): initialize dynamic dimensions.
14854         (widget_instantiate): pick-up dynamic dimensions.
14855
14856         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14857         dynamic determination. Add appropriate macros.
14858
14859         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14860         dimensions safe.
14861         (WINDOW_GUTTER_SIZE): ditto.
14862         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14863
14864         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14865         inline.
14866         (get_frame_dc): ditto.
14867
14868         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14869         here.
14870
14871 2000-02-23  Martin Buchholz <martin@xemacs.org>
14872
14873         * XEmacs 21.2.31 is released.
14874
14875 2000-02-22  Ben Wing <ben@xemacs.org>
14876
14877         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14878
14879 2000-02-22  Andy Piper  <andy@xemacs.org>
14880
14881         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14882
14883 2000-02-21  Mike Sperber <mike@xemacs.org>
14884
14885         * .dbxrc:
14886         * .gdbinit:
14887         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14888         variables.
14889
14890 2000-02-21  Mike Sperber <mike@xemacs.org>
14891
14892         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14893
14894 2000-02-21  Martin Buchholz <martin@xemacs.org>
14895
14896         * XEmacs 21.2.30 is released.
14897
14898 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14899
14900         Performance hacking.
14901         * *.c (syms_of_*):
14902         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14903         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14904         * emacs.c (main_1):
14905         * lisp.h (DEFUN):
14906         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14907         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14908         * symeval.h (DEFVAR_SYMVAL_FWD):
14909         * symbols.c (guts_of_unbound_marker):
14910         Make all c_readonly objects also lisp_readonly and marked for life.
14911         * lrecord.h (struct lrecord_implementation):
14912         Document flags better.
14913         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14914         * lrecord.h (DECLARE_LRECORD):
14915         * lrecord.h (XSETRECORD):
14916         * lrecord.h (RECORDP):
14917         * lrecord.h (RECORD_TYPEP):
14918         * lrecord.h (RECORD_MARKER): New.
14919         * lrecord.h (error_check_*):
14920         * lrecord.h (CONCHECK_NONRECORD):
14921         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14922         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14923         * lrecord.h (set_lheader_implementation):
14924         * lrecord.h (enum lrecord_type): New.
14925         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14926         * alloc.c (disksave_object_finalization_1):
14927         * alloc.c (mark_object):
14928         * alloc.c (lrecord_type_index):
14929         * alloc.c (tick_lcrecord_stats):
14930         * alloc.c (Fgarbage_collect):
14931         * alloc.c (init_alloc_once_early):
14932         * alloc.c (pdump_load):
14933         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14934         * alloc.c (lrecord_type_index): Delete.
14935         Make lisp object type indexes be constant.
14936           Makes (byte-compile) 5% faster.
14937         Put all marker functions into their own array.
14938           Makes (garbage-collect) 5% faster.
14939         Optimize SYMBOL_VALUE_MAGIC_P.
14940           Makes (byte-compile) 2-3% faster.
14941         * config.h.in (gc_checking_assert): New.
14942         * alloc.c: Use gc_checking_assert().
14943         * .dbxrc: Make compatible with new object type implementation.
14944         * .gdbinit: Make compatible with new object type implementation.
14945         * alloc.c: Delete all symbols defined only for debugging, such as
14946         Lisp_Type_Vector and lrecord_charset.
14947
14948 2000-02-21  Andy Piper  <andy@xemacs.org>
14949
14950         * gui-msw.c (Fmswindows_shell_execute): fix file location
14951         problems.
14952
14953         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14954         unshowing so that set_window_buffer doesn't undo
14955         kill_buffer_hook's hard work.
14956
14957         * glyphs-widget.c (tab_control_query_geometry): don't count the
14958         first item when calculating geometry.
14959
14960         * glyphs.c (map_subwindow): remove redundant code.
14961         (update_frame_subwindows): be more circumspect about when to
14962         update subwindows.
14963
14964         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14965         when items haven't changed. Update faces if faces have changed as
14966         well as just the widget face.
14967         (x_tab_control_update): Update faces if faces have changed as well
14968         as just the widget face.
14969
14970 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14971
14972         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14973         registration.
14974         (build_syscolor_string): Use mswindows_color_to_string to try to
14975         get a named color.
14976         (mswindows_device_system_metrics): Reverse the foreground and
14977         background colors so that they match the documentation.
14978
14979         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14980         they match the default Windows palette.
14981         (mswindows_color_to_string): New function.
14982
14983 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14984
14985         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14986
14987 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14988
14989         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14990         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14991
14992         * symbols.c (init_symbols_once_early): Removed obsolete
14993         DATA_SEG_BITS related kludge.
14994         (defvar_magic): Ditto.
14995
14996         * malloc.c: Removed obsolete DATA_SEG_BITS
14997         * ralloc.c: Ditto.
14998         * mem-limits.h: Ditto.
14999
15000         * Makefile.in.in: Removed obsolete HAVE_SHM
15001         * emacs.c: Ditto.
15002
15003 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15004
15005         *  device-msw.c (mswindows_delete_device): Free DDE string
15006         handles.
15007
15008 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15009
15010         * keymap.c (get_keyelt):
15011         * unexnt.c (unexec):
15012         * vm-limit.c (memory_warnings):
15013         * ntheap.c (recreate_heap):
15014         * ntheap.h (UNINIT_PTR):
15015         * select-msw.c (Fmswindows_get_clipboard):
15016         (Fmswindows_set_clipboard):
15017         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15018         * objects-msw.c:
15019         * menubar-msw.c (displayable_menu_item):
15020         * glyphs-msw.c:
15021         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15022         * sysdep.c (sys_subshell):
15023         * process-nt.c (nt_create_process):
15024         * nt.c (normalize_filename):
15025         (dostounix_filename):
15026         (unixtodos_filename):
15027         * ntproc.c (win32_executable_type):
15028         * ntplay.c (play_sound_data_1):
15029         (play_sound_file):
15030         * editfns.c (get_home_directory):
15031         * event-msw.c (struct winsock_stream):
15032         (mswindows_dde_callback):
15033         * device-msw.c (msprinter_init_device):
15034         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15035
15036         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15037         mswindows_clear_toolbar were swapped!
15038
15039         * objects-msw.c:(colormap_t):
15040         (fontmap_t):
15041         * emacs.c (struct standard_args): Fixed const jumble.
15042
15043         * glyphs-widget.c (update_widget): Fixed comparison notation.
15044
15045         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15046
15047         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15048         __declspec(noreturn) syntax.
15049
15050 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15051
15052         * eldap.c (Fldap_open):
15053         (Fldap_search_basic):
15054         (Fldap_add):
15055         (Fldap_modify):
15056         Use new coding system conversion macros.
15057
15058 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15059
15060         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15061
15062 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15063
15064         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15065         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15066
15067         * eldap.c (Qadd, Qreplace): New constant symbols
15068         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15069         interruptions by XEmacs signals
15070         Remove unnecessary calls to slow_down_interrupts and
15071         speed_up_interrupts
15072         (Fldap_search_basic): Renamed from Fldap_search_internal
15073         Added new optional parameter VERBOSE that triggers the
15074         display of progress messages
15075         Remove unnecessary calls to slow_down_interrupts and
15076         speed_up_interrupts
15077         LDAP result code analysis rewritten
15078         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15079         (syms_of_eldap): Define the new symbols and functions
15080
15081
15082 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15083
15084         * realpath.c: Determine PATH_MAX maximally portably.
15085
15086         * insdel.c (bytecount_to_charcount): Optimize.
15087         The function used to be optimized for entirely ASCII sequences.
15088         Now it is optimized for successive characters from the same
15089         charset.  This also wins big for _mostly_ ASCII sequences.
15090
15091         * fileio.c (Ffile_truename): convert return from realpath() using
15092         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15093         - Rewrite GCPROing slightly.
15094
15095         * sysdep.c (sys_open): Do filename conversion, like all other
15096         sys_* functions.  Fixes bug:
15097         (let ((file-name-coding-system 'iso-8859-2))
15098            (write-region x y latin2-name))
15099         ==> writes filename using internal encoding.
15100
15101 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15102
15103         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15104         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15105         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15106         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15107         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15108         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15109         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15110         (CONST_IF_NOT_DEBUG): Delete.
15111         * alloc.c (this_one_is_unmarkable): Delete.
15112         (mark_object): Don't check for this_one_is_unmarkable. Use the
15113         c_readonly flag instead.
15114         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15115
15116 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15117
15118         * event-msw.c (mswindows_drain_windows_queue):
15119         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15120         away redundant repaint events.
15121
15122 2000-02-17  Andy Piper  <andy@xemacs.org>
15123
15124         * redisplay.h: declare mark_redisplay_structs.
15125
15126         * redisplay.c (redisplay_window):
15127         (redisplay_frame): don't check subwindows_state_changed.
15128         (mark_redisplay): mark gutters here.
15129
15130         * glyphs.c: (instantiate_image_instantiator): always layout if we
15131         haven't done so already.
15132         (allocate_image_instance): don't mark as dirty.
15133         (update_subwindow): bind inhibit_quit.
15134
15135         * gutter.c (mark_gutters): new function.
15136
15137         * glyphs-x.c (x_update_widget): Always resize to get round a
15138         widget bug.
15139
15140         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15141         breaking absolutely everything.
15142
15143         * gutter.h: declare mark_gutters.
15144
15145 2000-02-16  Martin Buchholz <martin@xemacs.org>
15146
15147         * XEmacs 21.2.29 is released.
15148
15149 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15150
15151         * fns.c (size_bit_vector): Fix computation of the size.
15152
15153 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15154
15155         * *.[ch]: Change CONST to const globally.
15156         find -name '*.[ch]' | \
15157         xargs global-replace \
15158         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15159         - Remove vestigial references to CONST_IS_LOSING
15160
15161 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15162
15163         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15164         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15165         events instead of dispatching them directly.
15166         (mswindows_handle_paint): New function to do repainting.
15167         (mswindows_wnd_proc):
15168         (emacs_mswindows_handle_magic_event): Call above function.
15169
15170 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15171
15172         * objects-msw.c (mswindows_create_font_variant): Return the new
15173         font handle.
15174         (initialize_font_instance): Get font metrics from the underlined
15175         variant of the font to cope with the case where the underlined
15176         font has a bigger descent.
15177
15178 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15179
15180         * gui.c (gui_item_accelerator): Return the first underlined
15181         character in item name.
15182
15183 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15184
15185         * lisp.h: Added Qprinter.
15186
15187         * general.c (syms_of_general): Initialized it.
15188
15189         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15190         (get_frame_dc):
15191         (get_frame_compdc): Made inline.
15192
15193         * console.h (struct console_methods): Added eject_page method.
15194
15195         * frame.h: Added FRAME_DISPLAY_P and friends.
15196         Aligned backslahes in many macros in more readable fashion.
15197         Added page_number to struct frame, and an accessor macro
15198         for it.
15199
15200         * defice.h: Added DEVICE_DISPLAY_P and friends.
15201
15202         * device.c (Fdevice_printer_p): Used these.
15203
15204         * frame.c (allocate_frame_core): Initialize page number.
15205         (Fprint_job_page_number):
15206         (Fprint_job_eject_page): Implemented.
15207
15208         * frame-msw.c (msprinter_eject_page): Added method.
15209         (msprinter_start_page): Added.
15210
15211         * window.c (Fwindow_truncated_p): Fixed docstring.
15212         (Fwindow_last_line_visible_height): Implemented.
15213
15214 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15215
15216         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15217
15218 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15219
15220         * syntax.c (scan_words): Always advance at least one character.
15221
15222 2000-02-13  Andy Piper  <andy@xemacs.org>
15223
15224         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15225         to make sure the glyph is in the cachels.
15226
15227         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15228         global image instance flag.
15229         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15230         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15231
15232         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15233         (Fset_image_instance_property): mark layout as changed.
15234         (invalidate_glyph_geometry_maybe): mark layout as changed.
15235         (glyph_width): use new NEEDS_LAYOUT macro.
15236         (glyph_ascent): ditto.
15237         (glyph_descent): ditto.
15238         (glyph_height): ditto.
15239         (image_instance_layout): mark layout as clean after laying out.
15240         (update_subwindow): don't mark layout as clean here.
15241
15242         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15243         should no longer be needed.
15244
15245         * glyphs-x.c (x_update_widget): sanitize asserts.
15246         (x_finalize_image_instance): sanitize assignment to widgets.
15247
15248         * glyphs-widget.c (widget_instantiate): don't need to clear the
15249         layout flag here.
15250
15251 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15252
15253         * sysdep.c (getcwd): Use standard prototype.
15254         * sysdep.h (getcwd): Use standard prototype.
15255
15256         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15257         (sequence, start, end).
15258         Remove redundant type checking.
15259         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15260         view of `caller-protects') to avoid a crash where the real fix was
15261         found elsewhere.
15262
15263 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15264
15265         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15266
15267         * s/sol2.h: Remove feature macro initialization.
15268
15269         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15270         (vector_hash): New.  Code from internal_hash.
15271         * lrecord.h:
15272         Fix up allocation subsystem comments.
15273
15274         * config.h.in: Add __EXTENSIONS__ for Solaris.
15275
15276         * systime.h (EMACS_GETTIMEOFDAY): New.
15277         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15278         Remove Solaris-specific code.
15279         Use void* for the (ignored) second arg for gettimeofday().
15280
15281         * elhash.c (hash_table_hash): Implement it, finally.
15282         * elhash.c:  Use hashcode_t.
15283
15284         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15285         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15286
15287         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15288         * fns.c (size_bit_vector):
15289         * alloc.c (size_vector):
15290         (make_vector_internal):
15291         (make_bit_vector_internal):
15292         (sweep_bit_vectors_1):
15293         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15294
15295 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15296
15297         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15298         Include strings.h to avoid warnings for bzero and strcasecmp.
15299
15300 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15301
15302         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15303         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15304
15305         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15306         sequence.
15307
15308 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15309
15310         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15311         use a value field instead.
15312         (symbol_value_forward_forward): Use value field.
15313         (DEFVAR_SYMVAL_FWD): Use value field.
15314         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15315         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15316         (DEFVAR_CONST_INT): Ditto.
15317         (DEFVAR_BOOL): Ditto.
15318         (DEFVAR_CONST_BOOL): Ditto.
15319         (DEFVAR_INT_MAGIC): Ditto.
15320         (DEFVAR_BOOL_MAGIC): Ditto.
15321
15322         * symbols.c (guts_of_unbound_marker): Use value field.
15323         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15324         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15325
15326         * lisp.h: Declare dumpopaque and noninteractive1.
15327
15328         * alloc.c (dumpopaque): Added.
15329         (pdump_dump_opaquevec): Added.
15330         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15331         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15332         noninteractive.
15333
15334 2000-02-10  Andy Piper  <andy@xemacs.org>
15335
15336         * glyphs.c (image_instance_layout): if the size changes, mark it
15337         as such.
15338
15339         * redisplay-output.c (redisplay_output_layout): Update the
15340         subwindow here.
15341         (redisplay_output_subwindow): ditto.
15342
15343         * glyphs.c (update_subwindow): make sure we reset flags for
15344         layouts as well as everything else.
15345
15346         * glyphs-widget.c (layout_layout): don't need to set the instances
15347         dimensions here.
15348
15349 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15350
15351         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15352         not HAVE_DLOPEN, which is a lower-level thing.
15353
15354         * .cvsignore: Ignore gmon.out
15355
15356 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15357
15358         * .cvsignore: Ignore portable dumper xemacs.dmp file
15359
15360 2000-02-09  Andy Piper  <andy@xemacs.org>
15361
15362         * redisplay-output.c (redisplay_output_layout): be more clever
15363         about when we output based on the changed flags.
15364
15365         * glyphs.h (struct image_instantiator_methods): add update_method.
15366         (struct Lisp_Image_Instance): add changed flags. Declare new
15367         macros for manipulating them.
15368
15369         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15370         (image_instance_parent_glyph): find an image_instance's parent
15371         glyph or image_instance.
15372         (image_instance_layout): mark the size as changed.
15373         (set_image_instance_dirty_p): new function. mark an image
15374         instance, plus all of its parents, as dirty.
15375         (Fset_image_instance_property): use it.
15376         (Fglyph_animated_timeout_handler): use it.
15377         (update_subwindow): call update_widget and device methods for
15378         update_subwindow. Mark all changed flags as clean.
15379         (Fresize_subwindow): mark size as changed.
15380
15381         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15382         failures.
15383         (x_update_subwindow): only resize subwindows here.
15384         (x_update_widget): new function. Update all changed properties of
15385         a widget.
15386         (x_resize_subwindow): deleted.
15387         (x_widget_set_property): deleted.
15388         (x_progress_gauge_set_property): deleted.
15389         (x_progress_gauge_update): new function. Implement recorded
15390         changes.
15391         (x_tab_control_update): ditto.
15392         (x_tab_control_set_property): deleted.
15393         (console_type_create_glyphs_x): declare new functions.
15394         (image_instantiator_format_create_glyphs_x): ditto.
15395
15396         * glyphs-widget.c (widget_set_property): mark text changed.
15397         (update_widget): new function. Update properties of a widget.
15398         (widget_instantiate): for layouts make sure we set their
15399         children's parent correctly.
15400         (tab_control_set_property): new function. Record changes that will
15401         take place under redisplay's control.
15402         (progress_gauge_set_property): ditto.
15403         (image_instantiator_progress_guage): declare new functions.
15404         (image_instantiator_tab_control): ditto.
15405
15406         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15407         now.
15408         (mswindows_update_widget): new function. Update all properties on
15409         a widget that have changed.
15410         (mswindows_button_update): new function. Update a button's set
15411         state.
15412         (mswindows_tab_control_update): new function. Update the items in
15413         a tab.
15414         (mswindows_tab_control_set_property): deleted.
15415         (mswindows_progress_gauge_update): new function. Update the
15416         progress gauge's progress.
15417         (mswindows_widget_set_property): deleted. This is all done
15418         asynchronously now.
15419         (mswindows_progress_gauge_set_property): ditto.
15420         (console_type_create_glyphs_mswindows): declare new methods.
15421         (image_instantiator_format_create_glyphs_mswindows): ditto.
15422
15423         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15424         (msprinter_set_frame_properties): ditto.
15425
15426         * console.h (struct console_methods): Add update_widget_method.
15427
15428 2000-02-09  Andy Piper  <andy@xemacs.org>
15429
15430         * gui-msw.c (Fmswindows_shell_execute): Make
15431         mswindows-shell-execute industrial strength.
15432
15433 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15434
15435         * lrecord.h: Make macro argument `props' match member function `plist'.
15436         * fns.c (Fget):
15437         * fns.c (Fput):
15438         * fns.c (Fremprop):
15439         * fns.c (Fobject_plist):
15440         * alloc.c:
15441         * symbols.c:
15442         Object property list frobbing cleanup.
15443         - Allow any lisp object (compared with `eq'), not just symbols, as
15444           keys in object plists.
15445         - Move symbol plist frobbing into symbols.c, where it belongs.
15446         - Move string plist frobbing into alloc.c, where it belongs.
15447         - Everything's an lrecord now, so no need to test for symbolp, etc.
15448         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15449
15450         * extents.c: Reorder code to remove declarations.
15451
15452         * frame.h (store_in_alist): Remove useless declaration.
15453
15454 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15455
15456         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15457         * config.h.in: Add HAVE_XCONVERTCASE.
15458
15459 2000-02-07  Andy Piper  <andy@xemacs.org>
15460
15461         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15462         it breaks many things.
15463
15464 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15465
15466         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15467         actually can start a common comment type.
15468         * src/syntax.h (SYNTAX_END_P): ditto for end.
15469
15470 2000-02-07  Martin Buchholz <martin@xemacs.org>
15471
15472         * XEmacs 21.2.28 is released.
15473
15474 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15475
15476         * event-Xt.c (x_keysym_to_character): New.
15477         (maybe_define_x_key_as_self_inserting_character): New.
15478         (x_has_keysym): New.
15479         Auto-define all keys on the keyboard as self-insert-key.
15480
15481 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15482
15483         * menubar.c (vars_of_menubar): A small code simplification.
15484
15485         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15486
15487         * ExternalShell.c:
15488         * ExternalClient.c:
15489         * EmacsShell-sub.c:
15490         * EmacsManager.c:
15491         * EmacsFrame.c:
15492         Use consistent style for specifying X resources.
15493
15494         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15495         This makes (dontusethis-set-symbol-value-handler) actually usable.
15496
15497         * lrecord.h (lrecord_decription_type):
15498         * alloc.c (pdump_register_sub):
15499         (pdump_dump_data):
15500         (pdump_reloc_one):
15501         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15502         Comply with XEmacs coding style.
15503         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15504         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15505
15506         * keymap.c (Faccessible_keymaps):
15507         Make (accessible-keymaps map "\C-h") do the Right Thing.
15508         Make (accessible-keymaps map []) do the Right Thing.
15509         Make (accessible-keymaps map "") do the Right Thing.
15510         (check_keymap_definition_loop): New function.
15511         (keymap_store_internal): Keep luser from shooting self in foot,
15512           via (define-key ctl-x-4-map "p" global-map).
15513         Remove fullness slot from struct Lisp_Keymap, since hash tables
15514         are now reliable.
15515         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15516
15517 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15518
15519         * redisplay.c (init_redisplay): Fix small memory leak.
15520         * elhash.h:
15521         * elhash.c (pdump_reorganize_hash_table):
15522         Rename from reorganize_hash_table. Change prototype.
15523         Reuse the original memory for hentries.  Save 100k.
15524         * alloc.c (PDUMP_READ): new macro.
15525         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15526         * alloc.c: No need to #ifndef before #undef.
15527
15528         * print.c: Allow debug_print() to print readably by modifying
15529         debug_print_readably.  Use consistent variable names.
15530
15531         * .dbxrc: Try to get things to work even if stopped in a function
15532         without source available by explicitly specifying source files.
15533 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15534
15535         * unexnt.c (_start): Removed bogus code which caused loading heap
15536         from differrent executable file.
15537         Removed bogus assignment to _fmode, which caused inconsistencies.
15538
15539 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15540
15541         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15542         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15543         Do not preliminary `#define signal sigset'.
15544
15545         * systime.h: Do not prototype environ on windows nt and cygwin,
15546         this conflicts with system header.
15547
15548         * syssignal.h: Use correct define for WINDOWSNT
15549
15550         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15551         with system header.
15552
15553         * sysdep.c (near start of file): Fixed commentary and rearranged
15554         ifdefs in readable order.
15555         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15556         (start_of_text):
15557         (end_of_text):
15558         (end_of_data): Do not compile in if using PDUMP.
15559
15560         * symsinit.h: Prototyped vars_of_nt().
15561
15562         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15563         (find_child_console): Use it.
15564         (sys_kill): Use it.
15565
15566         * ntheap.h: Do not extern os_subtype.
15567
15568         * ntheap.c (cache_system_info): Do not cache unneeded:
15569         nt_major_version, nt_minor_version and os_subtype.
15570         (recreate_heap): Do not compile in when PDUMPing.
15571
15572         * nt.c (geteuid and friends): Use the new varibale
15573         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15574         (init_user_info): Removed the above mentioned hackery.
15575         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15576         stat has been fixed in the C runtime.
15577         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15578
15579         * file-coding.c (struct file_coding_dump): Do not define
15580         ucs_to_mule_table in the struct if not MULE.
15581         (struct struct lrecord_description fcd_description_1): Do not dump
15582         the above.
15583
15584         * emacs.c (main_1): Call vars_of_nt().
15585         (right before Fdump_emacs_data): Don't need lastfile if using both
15586         portabe dumper and system malloc.
15587
15588         * alloc.c (Fmemory_limit): Conditionalized out.
15589         (pdump): Use OPEN_BINARY for the portable dump file.
15590         (pdump_load): Ditto.
15591
15592 2000-02-02  Mike Alexander  <mta@arbortext.com>
15593
15594         * nt.c (convert_time): Set tm_isdst before calling mktime and
15595         avoid calling it at all if the compiler supports 64 bit integers.
15596         Also initialize utc_base_ft before using it.
15597
15598 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15599
15600         * frame.c (change_frame_size_1): Take f->internal_border_width
15601         into consideration when calculating the width of the frame.
15602
15603 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15604
15605         * window.c (frame_min_height):
15606         (frame_size_valid_p):
15607         (frame_pixsize_valid_p): Added.
15608         (check_frame_size): Generalized.
15609
15610         * window.h: Prototyped the above.
15611
15612         * lisp.h:
15613         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15614         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15615         Deleted Vwin32_* and Vbinary_process_* unused variables.
15616
15617         * device-msw.c (msprinter_init_device): Do not get printer font
15618         list; Added DEVMODE functions.
15619
15620         * frame-msw.c: Added lots of printer code.
15621
15622         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15623         general.c.
15624
15625         * console-msw.h: Added more msprinter device private slots.
15626
15627 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15628
15629         * event-msw.c (key_needs_default_processing_p): Added.
15630         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15631
15632 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15633
15634         * glyphs.c (image_instance_layout): Mark image instance as clean
15635         after layout.
15636         (glyph_dirty_p): Removed redundant function.
15637         (invalidate_glyph_geometry_maybe): Added.
15638         (update_glyph_cachel_data): Call it.
15639
15640         * glyphs.h: Prototyped it.
15641
15642         * redisplay.c (add_glyph_rune): Call it.
15643         (redisplay_window): Reset glyphs cachels when frame faces have
15644         changed, thus forcing recomputation of built-in border glyphs.
15645
15646 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15647
15648         * Makefile.in.in: Make portable dumper and purify play well together.
15649         Add imperfect, but better than nothing, support for pdump.
15650         Remove xemacs.dmp when temacs is re-generated.
15651         Don't ignore errors when dumping xemacs.
15652
15653         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15654
15655 2000-01-28  Andy Piper  <andy@xemacs.org>
15656
15657         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15658         (setup_normal_frame): ditto.
15659         (setup_frame_without_minibuffer): ditto.
15660         (setup_minibuffer_frame): ditto.
15661         (delete_frame_internal): ditto.
15662         (Fmake_frame_invisible): ditto.
15663         (Ficonify_frame): ditto.
15664
15665         * window.h: change Fset_window_buffer signature.
15666
15667         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15668         (Fset_window_buffer): allow recording of buffer if the window is
15669         the selected window.
15670         (window_loop): Use new Fset_window signature.
15671
15672 2000-01-23  Daniel Pittman  <daniel@danann.net>
15673
15674         * config.h.in: Added template for `HAVE_ATHENA_3D'
15675
15676 2000-01-29  Andy Piper  <andy@xemacs.org>
15677
15678         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15679
15680         * gutter.c (output_gutter): Don't output if the window isn't live.
15681
15682 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15683
15684         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15685         of 01/12/00: Moved SetFocus back here where it belongs.
15686
15687 2000-01-23  Andy Piper  <andy@xemacs.org>
15688
15689         * s/cygwin32.h: declare printer things.
15690
15691 2000-01-26  Andy Piper  <andy@xemacs.org>
15692
15693         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15694         Alexander.
15695
15696 2000-01-24  Andy Piper  <andy@xemacs.org>
15697
15698         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15699         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15700
15701         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15702
15703         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15704
15705         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15706
15707         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15708         (mswindows_output_display_block): Avoid local shadows.
15709
15710         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15711         (mswindows_enqueue_mouse_button_event): ditto.
15712         (mswindows_handle_gui_wm_command): remove declaration.
15713
15714         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15715         warnings.
15716
15717         * console-msw.h: Avoid shadows.
15718         (mswindows_get_toolbar_button_text):
15719         (emacs_mswindows_create_stream_pair):
15720         (emacs_mswindows_delete_stream_pair):
15721         (mswindows_handle_toolbar_wm_command): declare.
15722
15723         * device-msw.c (build_syscolor_string): Avoid shadows.
15724
15725 2000-01-23  Andy Piper  <andy@xemacs.org>
15726
15727         * glyphs-widget.c (widget_instantiate): reverse the items for
15728         layouts so that children are in the expected order.
15729
15730 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15731
15732         * ralloc.c: safe_bcopy ==> memmove
15733         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15734         * s/msdos.h: Remove BCOPY macros.
15735         * insdel.c (gap_right): Remove BCOPY conditional code.
15736         * insdel.c (gap_left): Remove BCOPY conditional code.
15737         XEmacs demands a working ANSI C compiler - hence memmove.
15738
15739         * regex.c (regex_compile): Remove accidental use of trigraphs.
15740
15741 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15742
15743         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15744         event timestamp.
15745
15746 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15747
15748         * event-msw.c (mswindows_drain_windows_queue): Added the
15749         parameter.
15750         (mswindows_need_event): Commented the call to
15751         mswindows_drain_windows_queue().
15752         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15753         only.
15754
15755         * console-msw.h: Moved a few function prototypes here from
15756         event-msw.c.
15757
15758         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15759         parameter from unsigned short to unsigned long.
15760         (Fmswindows_shell_execute): Added return value.
15761
15762 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15763
15764         * sysdep.c (init_system_name):
15765           process-unix.c (unix_canonicalized_host_name):
15766         Don't call freeaddrinfo() if getaddrinfo() fails.
15767
15768         * process-unix.c (unix_open_unix_network_stream):
15769         Moved the code to get a port # into address loop.
15770
15771 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15772
15773         * buffer.c (reinit_vars_of_buffer):
15774         The right place to initialize conversion_in_dynarr and
15775         conversion_out_dynarr.
15776
15777         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15778
15779         * process-unix.c (unix_canonicalize_host_name): Muleize.
15780         (unix_open_network_stream): Muleize.
15781
15782         * buffer.h: Fix up prototypes for ralloc.c functions.
15783
15784 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15785         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15786         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15787                 instead of gethostbyname()
15788         * process-unix.c: In unix_canonicalize_host_name() and
15789                 unix_open_network_stream(), add code to use getaddrinfo()
15790                 instead of gethostbyname().
15791
15792 2000-01-27  Daniel Pittman <daniel@danann.net>
15793
15794         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15795         libs when built with flat Athena.
15796
15797 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15798
15799         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15800         Use coding standards for function prototypes.
15801
15802 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15803
15804         * dialog-msw.c (push_lisp_string_as_unicode):
15805         * doc.c (unparesseuxify_doc_string):
15806         * dired.c (Fuser_name_completion_1):
15807         * dired.c (Fuser_name_all_completions):
15808         * dired.c (free_user_cache):
15809         * dired.c (user_name_completion):
15810         * console-x.c (get_display_arg_connection):
15811         * minibuf.c (clear_echo_area_internal):
15812         * minibuf.c (echo_area_append):
15813         * eldap.c (Fldap_open):
15814         * eldap.c (Fldap_search_internal):
15815         * frame-x.c (x_set_frame_text_value):
15816         * frame-x.c (x_set_frame_properties):
15817         * frame-x.c (x_create_widgets):
15818         * redisplay-tty.c (term_get_fkeys_1):
15819         * objects-x.c (x_parse_nearest_color):
15820         * objects-x.c (x_valid_color_name_p):
15821         * objects-x.c (x_initialize_font_instance):
15822         * objects-x.c (x_list_fonts):
15823         * objects-x.c (x_find_charset_font):
15824         * tooltalk.c (Fadd_tooltalk_message_arg):
15825         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15826         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15827         * process-unix.c (unix_create_process):
15828         * ntproc.c (sys_spawnve):
15829         * sound.c (Fplay_sound_file):
15830         * sound.c (Fplay_sound):
15831         * buffer.c (init_initial_directory):
15832         * buffer.c (init_buffer):
15833         * editfns.c (init_editfns):
15834         * editfns.c (Ftemp_directory):
15835         * editfns.c (Fuser_full_name):
15836         * editfns.c (uncache_home_directory):
15837         * editfns.c (get_home_directory):
15838         * editfns.c (Fuser_home_directory):
15839         * editfns.c (Fformat_time_string):
15840         * editfns.c (Fcurrent_time_string):
15841         * gui-x.c (button_item_to_widget_value):
15842         * database.c (Fopen_database):
15843         * event-Xt.c (x_to_emacs_keysym):
15844         * event-Xt.c (x_event_to_emacs_event):
15845         * event-Xt.c (describe_event_window):
15846         * event-msw.c (mswindows_wnd_proc):
15847         * glyphs-eimage.c (jpeg_instantiate):
15848         * glyphs-eimage.c (gif_instantiate):
15849         * glyphs-eimage.c (png_instantiate):
15850         * glyphs-eimage.c (tiff_instantiate):
15851         * glyphs-x.c (xbm_instantiate_1):
15852         * glyphs-x.c (x_xbm_instantiate):
15853         * glyphs-x.c (x_xface_instantiate):
15854         * glyphs-x.c (autodetect_instantiate):
15855         * glyphs-x.c (cursor_font_instantiate):
15856         * glyphs-x.c (x_widget_instantiate):
15857         * glyphs-x.c (x_widget_set_property):
15858         * glyphs-x.c (x_widget_property):
15859         * glyphs-x.c (BUILD_GLYPH_INST):
15860         * print.c (write_string_to_stdio_stream):
15861         * print.c (output_string):
15862         * print.c (Falternate_debugging_output):
15863         * print.c (Fexternal_debugging_output):
15864         * glyphs-msw.c (extract_xpm_color_names):
15865         * glyphs-msw.c (mswindows_xpm_instantiate):
15866         * glyphs-msw.c (bmp_instantiate):
15867         * glyphs-msw.c (resource_name_to_resource):
15868         * glyphs-msw.c (mswindows_resource_instantiate):
15869         * glyphs-msw.c (xbm_instantiate_1):
15870         * glyphs-msw.c (mswindows_xbm_instantiate):
15871         * glyphs-msw.c (mswindows_xface_instantiate):
15872         * glyphs-msw.c (mswindows_widget_instantiate):
15873         * glyphs-msw.c (add_tree_item):
15874         * glyphs-msw.c (add_tab_item):
15875         * glyphs-msw.c (mswindows_combo_box_instantiate):
15876         * glyphs-msw.c (mswindows_widget_property):
15877         * glyphs-msw.c (mswindows_combo_box_property):
15878         * glyphs-msw.c (mswindows_widget_set_property):
15879         * console.c (stuff_buffered_input):
15880         * objects-msw.c (mswindows_initialize_color_instance):
15881         * objects-msw.c (mswindows_valid_color_name_p):
15882         * objects-msw.c (mswindows_list_fonts):
15883         * objects-msw.c (mswindows_font_instance_truename):
15884         * bytecode.c (optimize_compiled_function):
15885         * select-x.c (symbol_to_x_atom):
15886         * select-x.c (x_atom_to_symbol):
15887         * select-x.c (hack_motif_clipboard_selection):
15888         * select-x.c (selection_data_to_lisp_data):
15889         * select-x.c (lisp_data_to_selection_data):
15890         * select-x.c (Fx_get_cutbuffer_internal):
15891         * select-x.c (Fx_store_cutbuffer_internal):
15892         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15893         * buffer.h (TO_INTERNAL_FORMAT): New function.
15894         * emacs.c (make_arg_list_1):
15895         * emacs.c (make_argc_argv):
15896         * emacs.c (main_1):
15897         * emacs.c (Fdump_emacs):
15898         * emacs.c (split_string_by_emchar_1):
15899         * file-coding.h:
15900         * lisp.h:
15901         * lstream.h:
15902         * symsinit.h:
15903         * device-x.c (x_init_device):
15904         * device-x.c (Fx_valid_keysym_name_p):
15905         * device-x.c (Fx_get_font_path):
15906         * device-x.c (Fx_set_font_path):
15907         * glyphs.c (bitmap_to_lisp_data):
15908         * glyphs.c (pixmap_to_lisp_data):
15909         * alloc.c (make_ext_string): Use coding system arguments.  Update
15910         all callers.
15911         * alloc.c (build_string):
15912         * callproc.c (child_setup):
15913         * callproc.c (init_callproc):
15914         * fileio.c (lisp_strerror):
15915         * fileio.c (directory_file_name):
15916         * fileio.c (Fexpand_file_name):
15917         * fileio.c (Ffile_truename):
15918         * fileio.c (Fsysnetunam):
15919         * fileio.c (Fdo_auto_save):
15920         * sysdep.c (sys_readdir):
15921         * tests.c: New file.  Allow adding C tests.
15922         Replace GET_* macros with a more comprehensible and flexible
15923         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15924         Modify all calls.
15925         Any coding system can be used to do format conversion.
15926         Eliminate enum external_data_format.
15927         Eliminate convert_to_external_format.
15928         Eliminate convert_to_internal_format.
15929         Make sure file-name, keyboard, terminal, and ctext are always
15930         defined as coding systems or aliases.  Make
15931         file-name-coding-system, terminal-coding-system, and
15932         keyboard-coding-system magical variables that are equivalent to
15933         defining the corresponding coding system aliases.
15934
15935         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15936         * file-coding.c (Fcoding_system_alias_p): New function.
15937         * file-coding.c (Fcoding_system_aliasee): New function.
15938         * file-coding.c (append_suffix_to_symbol): New function.
15939         * file-coding.c (dangling_coding_system_alias_p): New function.
15940         * file-coding.c (Ffind_coding_system):
15941         * file-coding.c (Fcopy_coding_system):
15942         * file-coding.c (encode_coding_no_conversion):
15943         * file-coding.c (syms_of_file_coding):
15944         * file-coding.c (vars_of_file_coding):
15945         Rewrite coding system alias code.
15946         Allow nested aliases, like symbolic links.
15947         Allow redefinition of coding system aliases.
15948         Prevent existence of dangling coding system aliases.
15949
15950         * dired.c (Fuser_name_completion_1):
15951         * dired.c (Fuser_name_all_completions):
15952         A crash would happen if user did QUIT in the middle of building
15953         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15954
15955         * lisp.h:
15956         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15957
15958         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15959         an unsigned char *.  Update all callers.
15960
15961 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15962
15963         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15964
15965 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15966
15967         * elhash.c (hentry_description): Use more portable definition.
15968         (resize_hash_table): Initialize new hentries using
15969         xnew_array_and_zero, thereby simplifying the code.
15970
15971         * mule-charset.c (make_charset): Make sure entire object is
15972         initialized, to avoid Purify warnings.
15973
15974         * alloc.c (resize_string): Fix unlikely crash with big strings.
15975
15976 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15977
15978         * realpath.c (xrealpath):
15979         Don't call getwd().
15980
15981 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15982
15983         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15984
15985 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15986
15987         * unexelfsgi.c (unexec): Change the way we decide which segment
15988         should be extended.
15989
15990         Assumption that .bss section should be outside the PT_LOADable
15991         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15992         it's present) is inside the 'data' segment. This would fail the
15993         test which was used to find a segment to grow and cover new
15994         heap. Instead of this assumption, I created another one - on IRIX
15995         the segment to grow should start below .bss and it's address
15996         should extent above the end of .bss. Once this segment is
15997         identified, it's grown to accommodate the new heap and new
15998         zero-length .bss section is added at the end of .data2.
15999
16000 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16001
16002         * eval.c (Feval): Wrong number of arguments should use original
16003         function, not the indirect_function version of it.
16004
16005 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16006
16007         * glyphs-x.c (x_button_instantiate): Don't add image if
16008         it is not a pixmap.
16009         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16010         is relative.
16011
16012 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16013
16014         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16015         declaration.
16016         (DEFVAR_INT_MAGIC): Ditto.
16017         (DEFVAR_BOOL_MAGIC): Ditto.
16018         * glyphs.h: Reindent backslash.
16019
16020 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16021
16022         * glyphs-widget.c (layout_query_geometry):
16023         (layout_layout): Use correct types for gheight, gwidth.
16024
16025 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16026
16027         * EmacsManager.c (QueryGeometry): Purified.
16028
16029 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16030
16031         * alloc.c (make_float): Make sure entire object is initialized, to
16032         avoid Purify warnings.
16033         (pdump_register_sub): Remove useless assignment.
16034         (pdump): Use xmalloc, not malloc.
16035         (pdump_load): Use xmalloc, not malloc.
16036
16037 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16038
16039         * callproc.c:
16040         * dired-msw.c:
16041         * fileio.c:
16042         * process-nt.c:
16043         * redisplay-msw.c:
16044         * sysdep.c: Removed redundant #include <windows.h>
16045
16046 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16047
16048         * frame.c (delete_frame_internal): Do not delete device when its
16049         implementation so declares.
16050         (delete_frame_internal): Set device selected frame to nil when
16051         last frame goes away.
16052
16053         * device-msw.c (msprinter_device_system_metrics): Implemented.
16054         (mswindows_device_system_metrics): Added 'device-dpi property.
16055
16056         * device.c: (Fdevice_printer_p): Added.
16057         Added 'offset-workspace device metric.
16058
16059         * console.h (device_metrics): Declared DM_offset_workspace.
16060
16061 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16062
16063         * fileio.c (Ffile_truename): Remove pointless and confusing
16064         initialization of elen.
16065
16066         * glyphs-widget.c: Compiler warning fixes.
16067
16068 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16069
16070         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16071         instead of a Lisp_Object as argument to make it consistent with
16072         the other LIVE_P macros.
16073         (CHECK_LIVE_PROCESS): New macro.
16074
16075         * process.c: Declare Qprocess_live_p.
16076         (Fprocess_live_p): New function.
16077         (create_process): Use PROCESS_LIVE_P.
16078         (read_process_output): Ditto.
16079         (set_process_filter): Ditto.
16080         (Fdelete_process): Ditto.
16081         (kill_buffer_processes): Ditto
16082         (process_send_signal): Use CHECK_LIVE_PROCESS.
16083         (Fprocess_input_coding_system): Check whether process is still
16084         alive (fix PR#1061).
16085         (Fprocess_output_coding_system): Ditto.
16086         (Fprocess_coding_system): Ditto.
16087         (Fset_process_input_coding_system): Ditto.
16088         (Fset_process_output_coding_system): Ditto.
16089
16090 2000-01-23  Andy Piper  <andy@xemacs.org>
16091
16092         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16093         layout and widget.
16094
16095         * glyphs.c (mark_image_instance): take into account changed
16096         image_instance format.
16097         (image_instance_equal): ditto.
16098         (image_instance_hash): ditto.
16099
16100         * glyphs-widget.c (widget_instantiate): Incorporate layout
16101         instantiation here. Delay layout of the layout until later.
16102         (layout_instantiate): deleted.
16103         (layout_query_geometry): new function. get the geometry of a
16104         layout.
16105         (layout_layout): layout a layout dynamically.
16106         (image_instantiator_widget): New function - splitting up
16107         image_instantiator_format_create_glyphs_widget for netwinder
16108         compilation.
16109         (image_instantiator_buttons):
16110         (image_instantiator_edit_fields):
16111         (image_instantiator_combo_box):
16112         (image_instantiator_scrollbar):
16113         (image_instantiator_progress_guage):
16114         (image_instantiator_tree_view):
16115         (image_instantiator_tab_control):
16116         (image_instantiator_labels):
16117         (image_instantiator_layout): ditto.
16118         (image_instantiator_format_create_glyphs_widget): Call preceding
16119         functions.
16120
16121 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16122
16123         * process.c (Fset_process_coding_system):
16124         * device-x.c (Fx_keysym_hash_table):
16125         Docstring fixes.
16126
16127         * lstream.c (Lstream_write): Return documented value, not 0.
16128
16129         * fileio.c (directory_file_name):
16130         (Fsubstitute_in_file_name):
16131         (Fsubstitute_insert_file_contents_internal):
16132         (Fwrite_region_internal):
16133         * emacs.c:
16134         * sysdep.c:
16135         * getloadavg.c:
16136         * systty.h:
16137         Remove vestigial APOLLO-conditional code.
16138
16139 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16140
16141         * getpagesize.h: Add guard macros.
16142         * libsst.h: Add guard macros.
16143         * libst.h: Add guard macros.
16144         * line-number.h: Add guard macros.
16145         * ndir.h: Add guard macros.
16146         * sysfloat.h: Add guard macros.
16147         * sysfile.h: Add guard macros.
16148         * sysproc.h: Add guard macros.
16149         * syswait.h: Add guard macros.
16150         * xintrinsic.h: Add guard macros.
16151         * xintrinsicp.h: Add guard macros.
16152         * xmmanager.h: Add guard macros.
16153         * xmmanagerp.h: Add guard macros.
16154         * xmprimitive.h: Add guard macros.
16155         * xmu.h: Add guard macros.
16156         * gpmevent.h: Add copyright statement. Add guard macros.
16157         * miscplay.h: Add guard macros.
16158         * *.h: Use consistent C-standards-approved guard macro names.
16159
16160         * opaque.c (make_opaque): Switch parameter order.
16161         * opaque.h (make_opaque): Switch parameter order.
16162         Update all callers.
16163         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16164
16165         * config.h.in (type_checking_assert): Added.
16166         (bufpos_checking_assert): Added.
16167
16168 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16169
16170         * alloc.c: Harmless pdump changes.
16171         - Use countof().
16172         - spell alignment correctly.
16173         * sysdep.c: Use countof()
16174
16175 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16176
16177         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16178         initially_selected_for_input() console method, default to 0.
16179         (semi_canonicalize_console_connection): Try to delegate to
16180         canonicalize_console_connection if no such console method.
16181         (canonicalize_console_connection): Vice versa.
16182         (print_console): Do not print nil connection.
16183
16184         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16185         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16186         (XDEVIMPF_FRAMELESS_OK): Added.
16187         (CONSOLE_INHERITS_METHOD): Added.
16188
16189         * console-msw.c (mswindows_canonicalize_console_connection):
16190         Added.
16191         (mswindows_canonicalize_device_connection): Added.
16192
16193         * console-msw.h (struct msprinter_device): Added this struct and
16194         accessor macros.
16195         (mswindows_device): Made fontlist a lisp object.
16196
16197         * device.c (semi_canonicalize_device_connection):  Try to delegate
16198         to canonicalize_device_connection if no such console method.
16199         (canonicalize_device_connection): Vice versa.
16200         (print_device): Do not print nil connection.
16201
16202         * device-msw.c (mswindows_init_device): Call InitCommonControls
16203         when have widgets.
16204         (mswindows_delete_device): Removed fontlist deallocation.
16205         (mswindows_mark_device): Added.
16206
16207         * events.c (event_equal): Added abort() at unreached code.
16208         (event_hash): Ditto.
16209
16210         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16211         fallback tags of Windows devices.
16212
16213         * general.c (syms_of_general): Initialized Qmsprinter.
16214
16215         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16216         of fallback tags of Windows devices.
16217
16218         * lisp.h: Declared Qmsprinter.
16219
16220         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16221         of strings.
16222         (mswindows_list_fonts): Ditto.
16223         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16224         that it can be used by both mswindows and msprinter devices.
16225         (initialize_font_instance): Added.
16226         (mswindows_initialize_font_instance): Use it.
16227         (msprinter_initialize_font_instance): Added.
16228
16229         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16230         and implementation flags check.
16231         (redisplay_without_hooks): Changed the call to the above.
16232         (Fredraw_device): Ditto.
16233         (Fredisplay_device): Ditto.
16234
16235         * redisplay-msw.c (get_frame_dc): Implemented.
16236         (get_frame_compdc): Implemented.
16237         (many functions): Use the two functions above to get device
16238         contexts, ether for a window or a printer.
16239
16240 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16241
16242         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16243         initialization here.
16244         (init_symbols_once_early): Call it.
16245         * emacs.c (main_1): Call it.
16246         * symsinit.h: Declare it.
16247
16248 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16249
16250         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16251         Lisp_Object.
16252         (pdump_backtrace): Ditto.
16253         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16254         (pdump_get_entry): Abort if trying to register a null pointer.
16255         (pdump_dump_data): Cleanup types when relocating.
16256         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16257         (pdump_dump_rtables): Remove bad casts.
16258         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16259         Lisp_Object instead of a EMACS_INT for the hashtable
16260         reorganization.
16261
16262 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16263
16264         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16265
16266         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16267
16268         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16269
16270         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16271
16272 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16273
16274         * faces.h (FACE_STRIKETHRU_P): Added.
16275
16276         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16277         of font variants.
16278
16279         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16280         (mswindows_set_dc_font): New function, aware of font variants,
16281         separated from mswindows_update_dc.
16282
16283         * objects-msw.h (struct mswindows_font_instance_data): Added
16284         definition.
16285
16286         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16287         cached fonts and the data structure.
16288         (mswindows_initialize_font_instance): Added creation of font data
16289         structure.
16290         (mswindows_print_font_instance): Print at least something.
16291         (mswindows_create_font_variant): Implemented.
16292         (mswindows_get_hfont): Implemented.
16293
16294 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16295
16296         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16297         prototyping problem with msvc.
16298
16299         * emacs.c (main_1): added syms_of_gui_mswindows() call
16300
16301         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16302         syms_of_gui_mswindows() function
16303
16304         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16305
16306 2000-01-18  Martin Buchholz <martin@xemacs.org>
16307
16308         * XEmacs 21.2.27 is released.
16309
16310 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16311
16312         * glyphs-eimage.c (struct tiff_error_struct):
16313         (tiff_error_func):
16314         (tiff_warning_func):
16315         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16316
16317         * unexmips.c:
16318         * unexhp9k3.c:
16319         * unexfreebsd.c:
16320         * unexec.c: Remove vestigial Lucid C code.
16321         * unexalpha.c:
16322         * unexaix.c:
16323         * termcap.c:
16324         * libsst.c: Ansify.
16325         Remove declarations of errno and strerror().
16326
16327         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16328
16329         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16330
16331 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16332
16333         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16334         Optimize.
16335
16336 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16337
16338         * md5.c:
16339         * file-coding.c:
16340         * file-coding.h:
16341         Change enum eol_type to eol_type_t.
16342
16343 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16344
16345         * gui.c (get_gui_callback): Check cons before accessing car.
16346
16347 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16348
16349         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16350         (XSETSPECIFIER_TYPE): Ditto.
16351
16352 2000-01-17  Didier Verna  <didier@xemacs.org>
16353
16354         * redisplay.c (generate_fstring_runes): compute string size in
16355         characters, not bytes.
16356
16357 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16358
16359         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16360
16361 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16362
16363         * print.c (print_error_message): Call print_prepare().
16364
16365 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16366
16367         * .dbxrc: Renamed from dbxrc.
16368
16369         * events.c (event_to_character):
16370         Use `assert (foo)' instead of `if (!foo) abort()'
16371
16372         * .gdbinit (xtype): Add documentation.
16373         * .gdbinit (check-temacs): New function.
16374         * .gdbinit (check-xemacs): New function.
16375         * dbxrc (check-xemacs): New function.
16376         * dbxrc (check-xemacs): New function.
16377
16378 2000-01-14  Andy Piper  <andy@xemacs.org>
16379
16380         * glyphs-widget.c (widget_query_geometry): Make sure that we
16381         calculate default dimensions correctly.
16382
16383 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16384
16385         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16386
16387         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16388         pdump_wire'd variable.
16389
16390         * emacs.c: (main_1): Conditionalized calls to
16391         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16392
16393 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16394
16395         * window.c (Fset_window_configuration):
16396         * sysdep.c (_start):
16397         * input-method-motif.c (res):
16398         * event-Xt.c (Xt_process_to_emacs_event):
16399         Simple compiler warning fixes.
16400
16401         * bytecode.c (funcall_compiled_function): Use the original
16402         function symbol on the backtrace list in preference to the
16403         compiled_function object in error messages.
16404
16405 2000-01-13  Andy Piper  <andy@xemacs.org>
16406
16407         * glyphs-x.c (update_widget_face): Make sure we update the widget
16408         background as well as foreground.
16409
16410 2000-01-13  Andy Piper  <andy@xemacs.org>
16411
16412         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16413         fields to subwindow.
16414         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16415         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16416         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16417         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16418
16419         * glyphs-widget.c (check_valid_tab_orientation): new function.
16420         (initialize_widget_image_instance): zero orientation and
16421         justification.
16422         (widget_instantiate): pick up orientation.
16423         (tab_control_query_geometry): return appropriate values for
16424         vertical tabs.
16425
16426         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16427         appropriate creation flags for left, right and bottom tabs.
16428
16429         * s/cygwin32.h: add tab definitions.
16430
16431 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16432
16433         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16434         frame upon hiding a subwindow.
16435         (mswindows_button_instantiate): Changed the push button style to
16436         BS_PUSHBUTTON.
16437         (mswindows_button_instantiate): Removed button BS_NOTIFY
16438         style.
16439         (mswindows_button_instantiate): Removed redundant check for
16440         a disabled gui item.
16441         (mswindows_button_instantiate): Made use of WS_TABSTOP
16442         consistent: "operable" controls (edit, button, tree, scroll) have
16443         this style, "display-only" ones (static, progress gauge) do
16444         not. This style is currently ignored by XEmacs though. Also,
16445         removed the WS_EX_CONTROLPARENT style - it is not for children,
16446         it is for their parents!
16447         (mswindows_edit_field_instantiate): Ditto.
16448         (mswindows_progress_gauge_instantiate): Ditto.
16449         (mswindows_tree_view_instantiate): Ditto.
16450         (mswindows_tab_control_instantiate): Ditto.
16451         (mswindows_scrollbar_instantiate): Ditto.
16452         (mswindows_combo_box_instantiate): Ditto.
16453         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16454         style to the "clip" window.
16455         (mswindows_button_instantiate): Removed compilation warning by
16456         equally typing terms of the ?: operator.
16457
16458 2000-01-12  Didier Verna  <didier@xemacs.org>
16459
16460         * redisplay.c (generate_fstring_runes): new parameter holding the
16461         last modeline-format extent.
16462         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16463         extent, fill the glyph block with it.
16464         (generate_fstring_runes): handle these parameters.
16465         (generate_formatted_string_db): ditto.
16466
16467         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16468         glyphs'extents in the modeline.
16469
16470 1999-01-11  Mike Woolley  <mike@bulsara.com>
16471
16472         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16473         256Mb, as a workaround for the non-starting problem many people
16474         have experienced.
16475
16476 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16477
16478         * console-tty.c (Fset_console_tty_output_coding_system):
16479         Force redrawing tty frame.
16480
16481 2000-01-10  Didier Verna  <didier@xemacs.org>
16482
16483         * redisplay.c (generate_fstring_runes): fix size computation bug.
16484
16485 2000-01-09  William M. Perry <wmperry@aventail.com>
16486
16487         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16488
16489 2000-01-09  Andy Piper  <andy@xemacs.org>
16490
16491         * glyphs-msw.c: index -> i to avoid shadows.
16492         (xbm_create_bitmap_from_data): make static.
16493         (check_valid_string_or_int): deleted.
16494         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16495
16496         * glyphs-x.c (x_update_subwindow): remove unused args.
16497
16498         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16499         back pointer - this is done in allocate_image_instance.
16500         (query_string_font): return Qnil to make the compiler happy.
16501         (unmap_subwindow): set to ~0 to make the compiler happy.
16502         (glyph_query_geometry): comment out until used.
16503         (glyph_layout): ditto.
16504
16505 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16506
16507         * insdel.c (signal_after_change): Remove extraneous unbind_to().