update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
4         instead of Vexec_directory.
5         (char_attribute_system_db_file): Likewise.
6
7 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * chartab.c (Fsave_char_attribute_table): Use
10         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
11         defined.
12
13         * mule-charset.c (save_charset_properties): Renamed from
14         `Fsave_charset_properties'; changed to non-Lisp function.
15         (syms_of_mule_charset): Abolish builtin function
16         `save-charset-properties'.
17
18 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * mule-charset.c (Fsave_charset_properties): New function when
21         HAVE_LIBCHISE is defined.
22         (syms_of_mule_charset): Add new builtin function
23         `save-charset-properties' when HAVE_LIBCHISE is defined.
24
25 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * chartab.c (Fput_char_attribute): Convert char-specs in value of
28         `{<-|->}ancient[^*]*' to characters and put reverse links.
29         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
30         for `{<-|->}ancient[^*]*'.
31
32 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * chartab.c (Fput_char_attribute): Convert char-specs in value of
35         `{<-|->}original[^*]*' to characters and put reverse links.
36         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
37         for `{<-|->}original[^*]*'.
38
39 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
42
43 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule-charset.c (Qsystem_char_id): New variable.
46
47         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
48         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
49
50 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Fput_char_attribute): When processing a reference of
53         a character, put into the end of the reversed reference of each
54         target character.
55
56 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * chartab.c (Q_same): Deleted.
59         (Q_same_of): Deleted.
60         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
61         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
62         for `{<-|->}same'.
63         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
64
65 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * chartab.c (Q_vulgar): Deleted.
68         (Q_vulgar_of): Deleted.
69         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
70         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
71         for `{<-|->}vulgar'.
72         (syms_of_chartab): Don't define `{<-|->}vulgar'.
73
74 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * chartab.c (Fput_char_attribute): Convert char-specs in value of
77         `{<-|->}wrong[^*]*' to characters and put reverse links.
78         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
79         for `{<-|->}wrong[^*]*'.
80
81 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * chartab.c (Q_vulgar): New variable.
84         (Q_vulgar_of): New variable.
85         (Fput_char_attribute): Convert char-specs in value of
86         `{->|<-}vulgar' to characters and put reverse links.
87         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
88         for `{->|<-}vulgar'.
89         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
90
91 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
92
93         * text-coding.c (decode_add_er_char): Must to quote prefix string
94         as regexp.
95
96 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * mule-charset.c (put_char_ccs_code_point): Store characters of
99         =ucs whose code_points >= 0xF0000.
100
101 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
104         CHISE.
105         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
106         CHISE.
107         (complex_vars_of_mule_charset): Add new coded-charset
108         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
109         builtin characters over 0xEFFFF.
110
111         * chartab.c (syms_of_chartab): Don't define symbol
112         `system-char-id' in every case.
113
114         * char-ucs.h (Qsystem_char_id): New extern variable.
115         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
116
117 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * text-coding.c (char_encode_utf8): Try to use entity-references
120         for U-000F0000 ...  U-0010FFFF.
121
122 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * text-coding.c (ER_BUF_SIZE): New macro.
125         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
126         `er_buf'.
127         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
128         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
129
130 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * chartab.c (find_char_feature_in_family): New function.
133         (Fchar_feature): Use `find_char_feature_in_family' with
134         `->identical', `<-subsumptive' and `<-denotational'.
135
136 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * text-coding.c (char_encode_as_entity_reference): Allow prefix
139         within 8 characters; fix infinite loop.
140
141 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * chartab.c (Q_same): New variable.
144         (Q_same_of): New variable.
145         (Fput_char_attribute): Convert char-specs in value of
146         `{->|<-}same' to characters and put reverse links.
147         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
148         for `{->|<-}same'.
149         (syms_of_chartab): Add new symbols `{->|<-}same'.
150
151 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * chartab.c (Q_component): New variable.
154         (Q_component_of): Likewise.
155         (Fput_char_attribute): Convert char-specs in value of
156         `{->|<-}ideographic-component-forms' to characters and put reverse
157         links.
158         (syms_of_chartab): Add new symbols
159         `{->|<-}ideographic-component-forms'.
160
161 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
162
163         * chartab.c (Q_identical): New variable.
164         (Q_identical_from): New variable.
165         (Fchar_feature): Regard `->identical' as a feature to find
166         ancestors.
167         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
168         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
169         for `{->|<-}identical'.
170         (syms_of_chartab): Add new symbols `{->|<-}identical'.
171
172 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * char-ucs.h (encode_char_2): New inline function.
175         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
176
177 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * chartab.c (Fput_char_attribute): Convert char-specs to
180         characters in value of `ideographic-structure'.
181         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
182         for `{<-|->}simplified(@...)'.
183         (Fdefine_char): bTry to use predefined character's id.
184
185 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
186
187         * fns.c (simplify_char_spec): Try to convert builtin chars to
188         defined chars.
189
190 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
191
192         * chartab.c (Fput_char_attribute): Convert char-specs in value of
193         `<-simplified[^*]*' to characters and put reverse links.
194
195 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * chartab.c (Q_subsumptive): Renamed from Q_unified.
198         (Q_subsumptive_from): Renamed from Q_unified_from.
199         (Fchar_feature): Use `Q_subsumptive_from' instead of
200         `Q_unified_from'.
201         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
202         `Q_unified'.
203         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
204         `<-unified' to `<-subsumptive'.
205
206 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
209         inheritance itself; fix typo; stop recursive search if cyclic
210         inheritance is found.
211
212 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * chartab.c (Q_denotational): New variable.
215         (Q_denotational_from): New variable.
216         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
217         (put_char_attribute): New function.
218         (Fput_char_attribute): Use `put_char_attribute'; regard
219         `->denotational' and `<-denotational' as same as `->unified' and
220         `<-unified'.
221         (syms_of_chartab): Add new symbols `->denotational' and
222         `<-denotational'.
223
224 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
227         `Fget_char_attribute'.
228         (Fchar_variants): Likewise.
229         (get_char_table): Likewise.
230         (Fchar_feature): New function.
231         (put_char_composition): Use `Fchar_feature' instead of
232         `Fget_char_attribute'.
233         (Fput_char_attribute): Likewise; don't put the target character
234         into its `->unified' value.
235         (syms_of_chartab): Add new builtin function `char-feature'.
236
237 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
238
239         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
240         `Fget_char_attribute'.
241         (char_encode_utf8): Likewise.
242
243         * chartab.h: Add an EXFUN for `Fchar_feature'.
244
245 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (Vnext_defined_char_id): New variable.
248         (Fput_char_attribute): Accept characters in `->unified'.
249         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
250         new characters which are not related with builtin char-id ranges.
251         (vars_of_chartab): Add new variable `next-defined-char-id'.
252
253 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * chartab.c (Q_unified): New variable.
256         (Q_unified_from): New variable.
257         (Fput_char_attribute): Add code for `->unified'.
258         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
259         XEmacs CHISE.
260
261 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * mule-charset.c (decode_ccs_conversion): New function.
264         (decode_defined_char): Use `decode_ccs_conversion'.
265         (decode_builtin_char): Likewise.
266
267 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * char-ucs.h: Change some charset-ids of private coded-charsets.
270
271 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
274         (char_encode_as_entity_reference): Likewise.
275         (decode_coding_big5): Modify for `decode_defined_char' and
276         `DECODE_CHAR'.
277         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
278         avoid compiler warning.
279         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
280
281         * mule-charset.c (decode_defined_char): Add new argument
282         `without_inheritance'.
283         (Fdecode_char): Add new optional argument `without_inheritance'.
284         (Fdecode_builtin_char): Modify for `Fdecode_char'.
285
286         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
287         (simplify_char_spec): Likewise.
288
289         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
290         setting.
291
292         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
293         (map_char_table): Likewise.
294         (Fdefine_char): Use `Fdecode_char' without inheritance.
295         (Ffind_char): Modify for `Fdecode_char'.
296
297         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
298
299         * char-ucs.h (decode_defined_char): Add new argument
300         `without_inheritance'.
301         (DECODE_CHAR): Likewise.
302         (MAKE_CHAR): Modify for `DECODE_CHAR'.
303
304 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * chartab.c (Vchise_system_db_directory): New variable.
307         (vars_of_chartab): Add new variable `chise-system-db-directory'.
308
309 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * chartab.c: EXFUN `Fmount_char_attribute_table'.
312         (print_chartab_range): Don't define when `UTF2000' is defined.
313         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
314         `CHISE_DS_open'.
315
316 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
319         and optional argument `rehash' is specified, call
320         `open_chise_data_source_maybe' before
321         `chise_ds_foreach_char_feature_name' is called.
322
323 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.c (char_attribute_list_reset_map_func): New function
326         when HAVE_LIBCHISE is defined.
327         (Fchar_attribute_list): Add new optional argument `rehash' when
328         HAVE_LIBCHISE is defined.
329         (open_chise_data_source_maybe): Use "chise-db" instead of
330         "char-db".
331         (char_attribute_system_db_file): Likewise.
332         (Fload_char_attribute_table): Use
333         `chise_feature_foreach_char_with_value' instead of
334         `chise_char_feature_value_iterate'.
335
336 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * chartab.c (Vchise_db_directory): New variable.
339         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
340
341 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
344         instead of HAVE_CHISE to specify using with libchise.
345
346         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
347
348         * chartab.h: Don't use HAVE_CHISE_CLIENT.
349
350         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
351         defined or HAVE_LIBCHISE_LIBCHISE is defined.
352         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
353         is defined.
354         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
355         HAVE_CHISE to specify using with libchise.
356         (syms_of_chartab): Don't define symbol `system-char-id' when
357         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
358
359 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
362         specify CHISE DB support.
363         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
364         of `char_attribute_system_db_file' to check feature DB file.
365
366         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
367         HAVE_CHISE_CLIENT to specify CHISE DB support.
368
369         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
370         specify CHISE DB support.
371         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
372         not defined.
373         (Freset_char_attribute_table): Use `chise_feature_setup_db'
374         instead of `char_attribute_system_db_file' to check feature DB
375         file.
376
377 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
380         `HAVE_CHISE_CLIENT'.
381
382 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
385         (Fsave_charset_mapping_table): Don't use
386         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
387
388         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
389         (HAVE_LIBCHISE): New macro.
390
391         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
392
393         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
394         (Fsave_char_attribute_table): Don't use
395         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
396
397 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
398
399         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
400         defined.
401         (save_uint16_byte_table): Likewise.
402         (save_byte_table): Likewise.
403         (char_table_get_db): Use `chise_ds_load_char_feature_value'
404         instead of `chise_char_load_feature_value'.
405         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
406
407 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * chartab.h (struct Lisp_Char_Table): Delete member
410         `feature_table' if CHISE is defined.
411
412         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
413         (Fcopy_char_table): Likewise.
414         (char_table_open_db_maybe): Likewise.
415         (char_table_close_db_maybe): Likewise.
416         (char_table_get_db): Likewise.
417         (Fmount_char_attribute_table): Likewise.
418         (Fload_char_attribute_table): Likewise.
419
420 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * mule-charset.c (load_char_decoding_entry_maybe): Use
423         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
424         `chise_ccs_decode'.
425
426 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
429         instead of `chise_open_data_source'.
430         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
431         `chise_ds_close'.
432
433 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
436         instead of `chise_ds_open_feature_table'.
437         (char_table_close_db_maybe): Don't use `chise_ft_close'.
438
439 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * mule-charset.c (Fsave_charset_mapping_table): Use
442         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
443         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
444         `chise_ccs_sync' instead of `chise_ccst_close'.
445         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
446
447         * chartab.c (open_chise_data_source_maybe): Modify for
448         `chise_open_data_source'.
449         (char_table_open_db_maybe): Modify for
450         `chise_ds_open_feature_table'.
451
452 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * mule-charset.c (load_char_decoding_entry_maybe): Use
455         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
456         `chise_ccst_close'.
457
458 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
459
460         * mule-charset.c (Fsave_charset_mapping_table): Use
461         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
462         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
463         `chise_dt_put_char' and `chise_dt_close'.
464         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
465         `chise_ccs_decode' and `chise_ccst_close' instead of
466         `chise_ds_open_decoding_table', `chise_dt_get_char' and
467         `chise_dt_close'.
468
469         * chartab.c (char_table_get_db): Use
470         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
471         (load_char_attribute_table_map_func): Modify for
472         `chise_char_feature_value_iterate'.
473         (Fload_char_attribute_table): Use
474         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
475
476 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
477
478         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
479
480 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
481
482         * chartab.c (put_char_table): Modify for inherited coded-charsets
483         in XEmacs CHISE.
484
485 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
486
487         * chartab.c (Fput_char_table_map_function): Fixed.
488         (word_boundary_p): Don't check charset in XEmacs CHISE.
489
490 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
491
492         * mule-charset.c (Fsave_charset_mapping_table): Use
493         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
494         instead of `chise_open_decoding_table'; refer
495         `default_chise_data_source'; use `chise_dt_close' instead of
496         `chise_close_decoding_table'.
497         (load_char_decoding_entry_maybe): Likewise.
498
499         * chartab.c (default_chise_data_source): New variable when `CHISE'
500         is defined.
501         (Fcopy_char_table): `ct->ds' is deleted.
502         (open_chise_data_source_maybe): New function.
503         (Fclose_char_data_source): New function.
504         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
505         use `chise_ds_open_feature_table' instead of
506         `chise_open_feature_table'.
507         (char_table_close_db_maybe): Use `chise_ft_close' instead of
508         `chise_close_feature_table'; `cit->ds' is deleted.
509         (syms_of_chartab): Add new builtin function
510         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
511
512         * chartab.h (default_chise_data_source): New extern variable.
513         (open_chise_data_source_maybe): New prototype.
514         (struct Lisp_Char_Table): Delete `ds'.
515
516 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
517
518         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
519         `CHISE' is defined.
520
521 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
522
523         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
524         not defined; add code for non-libchise setting.
525         (char_table_close_db_maybe): Likewise.
526         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
527         defined.
528         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
529         even if `CHISE' is not defined.
530         (Freset_char_attribute_table): Likewise.
531         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
532         `char_table_close_db_maybe' even if `CHISE' is not defined; use
533         `char_table_get_db'.
534         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
535         `char_table_close_db_maybe' even if `CHISE' is not defined.
536
537 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
538
539         * chartab.c (char_table_open_db_maybe): New function.
540         (char_table_close_db_maybe): New function.
541         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
542         (Freset_char_attribute_table): Likewise.
543         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
544         `char_table_close_db_maybe'.
545         (Fload_char_attribute_table): Likewise.
546
547 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
548
549         * chartab.c: Don't include <chise.h> because it is included in
550         chartab.h.
551         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
552         defined.
553         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
554         `CHISE' is defined.
555         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
556         `CHISE' is defined.
557         (Fclose_char_attribute_table): Close `ct->feature_table' and
558         `ct->ds' when `CHISE' is defined.
559         (Freset_char_attribute_table): Likewise.
560         (load_char_attribute_maybe): Use `cit->ds' and
561         `cit->feature_table' when `CHISE' is defined.
562         (Fload_char_attribute_table): Likewise.
563
564         * chartab.h: Include <chise.h> when `CHISE' is defined.
565         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
566         when `CHISE' is defined.
567
568 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
569
570         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
571         is defined.
572         (char_table_description): Likewise.
573         (Fmake_char_table): Likewise.
574         (Fcopy_char_table): Likewise.
575         (Fmount_char_attribute_table): Likewise.
576         (Fclose_char_attribute_table): Likewise.
577         (Freset_char_attribute_table): Likewise.
578         (load_char_attribute_maybe): Likewise.
579         (Fload_char_attribute_table): Likewise.
580
581         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
582         defined.
583
584 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * chartab.c (load_char_attribute_table_map_func): New function
587         when CHISE is defined.
588         (Qload_char_attribute_table_map_function): Don't define when CHISE
589         is defined.
590         (Fload_char_attribute_table_map_function): Likewise.
591         (Fload_char_attribute_table): Use libchise when `CHISE' is
592         defined.
593         (syms_of_chartab): Don't define
594         `load-char-attribute-table-map-function' when CHISE is defined.
595
596 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
597
598         * chartab.c: Include <chise.h> when `CHISE' is defined.
599         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
600
601 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * mule-charset.c (charset_code_point): Fix problem when searching
604         in mother CCS fails with `defined_only' mode.
605
606 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
607
608         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
609         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
610         (put_char_composition): Likewise.
611         (Fput_char_attribute): Likewise.
612         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
613
614 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
615
616         * chartab.c (Q_ucs): Deleted.
617         (Fput_char_attribute): Don't refer `->ucs'.
618         (Fdefine_char): Likewise.
619         (Ffind_char): Likewise.
620         (syms_of_chartab): Delete `->ucs'.
621
622 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
623
624         * mule-charset.c (Qmap_cns11643_2): Renamed from
625         `Qchinese_cns11643_2'.
626         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
627         `chinese-cns11643-2'.
628         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
629         `=cns11643-2'.
630
631 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
632
633         * mule-charset.c (Qmap_cns11643_1): Renamed from
634         `Qchinese_cns11643_1'.
635         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
636         `chinese-cns11643-1'.
637         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
638         `=cns11643-1'.
639
640 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
641
642         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
643         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
644         `chinese-gb12345'.
645         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
646         `=gb12345'.
647
648 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
649
650         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
651         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
652         `chinese-gb2312'.
653         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
654         `=gb2312'.
655
656 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
659         (syms_of_mule_charset): Add new symbol `=big5' instead of
660         `chinese-big5'.
661         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
662
663 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
666         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
667         `korean-ksc5601'.
668         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
669         `=ks-x1001'.
670
671 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
672
673         * mule-charset.c (Qmap_jis_x0212): Renamed from
674         `Qjapanese_jisx0212'.
675         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
676         `japanese-jisx0212'.
677         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
678         `=jis-x0212'.
679
680 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
681
682         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
683         `Qjapanese_jisx0208'.
684         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
685         of `japanese-jisx0208'.
686         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
687         `=jis-x0208-1983'.
688
689 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
690
691         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
692         `Qjapanese_jisx0208_1978'.
693         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
694         of `japanese-jisx0208-1978'.
695         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
696         `=jis-x0208-1978'.
697
698 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
701         only for XEmacs CHISE.
702
703 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
704
705         * char-ucs.h: Compact non-ISO-IR charset-ids.
706         (LEADING_BYTE_UCS): Changed to -177.
707         (LEADING_BYTE_CONTROL_1): Changed to -77.
708         (LEADING_BYTE_UCS_BMP): Changed to -176.
709         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
710
711 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * mule-charset.c (Qiso_ir): New variable.
714         (Fmake_charset): Recognise new property `iso-ir'.
715         (syms_of_mule_charset): Add new symbol `iso-ir'.
716
717 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
718
719         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
720         n to -n; charset-id of non ISO-IR sets are changed to positive
721         numbers.
722
723 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
724
725         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
726         for &MCS-XXXXXXXX; values.
727
728 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
729
730         * mule.c (Vxemacs_chise_version): Renamed from
731         `Vutf_2000_version'.
732         (vars_of_mule): Add new variable `xemacs-chise-version'; define
733         `utf-2000-version' as an alias for `xemacs-chise-version'.
734
735 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
738         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
739         defined.
740
741         * config.h.in (CHISE): New macro.
742
743 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
744
745         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
746         of `ucs'.
747         (Qmap_ucs): New variable.
748         (syms_of_mule_charset): Add new symbol `=ucs'.
749         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
750
751         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
752         (simplify_char_spec): Likewise.
753
754         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
755
756         * char-ucs.h (Qmap_ucs): New extern variable.
757
758 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
759
760         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
761         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
762         don't define it when UTF2000 is not defined.
763         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
764         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
765         when UTF2000 is not defined.
766         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
767         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
768
769 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
770
771         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
772
773         * mule-charset.c (Vcharset_ucs_gb): Deleted.
774         (Qucs_gb): Deleted.
775         (syms_of_mule_charset): Delete `ucs-gb'.
776         (complex_vars_of_mule_charset): Likewise.
777
778 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
779
780         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
781
782         * mule-charset.c (Vcharset_ucs_cns): Deleted.
783         (Qucs_cns): Deleted.
784         (syms_of_mule_charset): Delete `ucs-cns'.
785         (complex_vars_of_mule_charset): Likewise.
786
787 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
790
791         * mule-charset.c (Vcharset_ucs_jis): Deleted.
792         (Qucs_jis): Deleted.
793         (syms_of_mule_charset): Delete `ucs-jis'.
794         (complex_vars_of_mule_charset): Likewise.
795
796 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
797
798         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
799
800         * mule-charset.c (Vcharset_ucs_ks): Deleted.
801         (Qucs_ks): Deleted.
802         (syms_of_mule_charset): Delete `ucs-ks'.
803         (complex_vars_of_mule_charset): Likewise.
804
805 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
806
807         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
808         (Qideograph_daikanwa_2): Deleted.
809         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
810         (complex_vars_of_mule_charset): Likewise.
811
812         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
813         (LEADING_BYTE_DAIKANWA_1): Deleted.
814         (LEADING_BYTE_DAIKANWA_2): Deleted.
815         (MIN_CHAR_DAIKANWA): Deleted.
816         (MAX_CHAR_DAIKANWA): Deleted.
817
818 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
819
820         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
821         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
822         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
823
824         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
825         (Vcharset_ideograph_daikanwa): Deleted.
826         (Qideograph_hanziku_{1..12}): Deleted.
827         (Qideograph_daikanwa): Deleted.
828         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
829         Vcharset_ideograph_daikanwa.
830         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
831         `ideograph-hanziku-{1..12}'.
832         (complex_vars_of_mule_charset): Likewise.
833
834 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
835
836         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
837
838         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
839         (Qideograph_gt_pj_{1..11}): Deleted.
840         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
841         (complex_vars_of_mule_charset): Likewise.
842
843 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * mule-charset.c (Vcharset_ucs_big5): Deleted.
846         (Vcharset_ideograph_gt): Deleted.
847         (Qucs_big5): Deleted.
848         (Qideograph_gt): Deleted.
849         (syms_of_mule_charset): Delete symbol `ucs-big5' and
850         `ideograph-gt'.
851         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
852         and `ideograph-gt'.
853
854         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
855         (LEADING_BYTE_GT): Deleted.
856         (MIN_CHAR_GT): Deleted.
857         (MAX_CHAR_GT): Deleted.
858
859 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
862
863 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
866         (save_uint16_byte_table): Likewise.
867         (save_byte_table): Likewise; convert values by it.
868         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
869         for `ideographic-structure'.
870         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
871         as the filter for `ideographic-structure'.
872
873 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
874
875         * chartab.c (put_char_composition): New function.
876         (Fput_char_attribute): Use `put_char_composition'; use
877         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
878
879         * fns.c (simplify_char_spec): New function.
880         (char_ref_simplify_spec): New function.
881         (Fchar_refs_simplify_char_specs): New function.
882         (syms_of_fns): Add new builtin function
883         `char-refs-simplify-char-specs'.
884
885 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
886
887         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
888         (Qideograph_cbeta): Deleted.
889         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
890         (complex_vars_of_mule_charset): Likewise.
891
892         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
893         (MIN_CHAR_CBETA): Comment out.
894         (MAX_CHAR_CBETA): Likewise.
895
896 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
897
898         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
899         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
900         CHISE client feature.
901
902 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
903
904         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
905
906 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
907
908         * mule-charset.c (charset_lookup_description_1): Use
909         `NUM_LEADING_BYTES' in UTF-2000.
910
911 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * char-ucs.h (GC_CHARSETP): Deleted.
914
915 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * char-ucs.h (MAX_CHAR_GT): Updated.
918
919 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
920
921         * text-coding.c: Sync with XEmacs 21.4.10.
922
923 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * mule-charset.c (Vcharset_china3_jef): Deleted.
926         (Qchina3_jef): Deleted.
927         (syms_of_mule_charset): Don't define `china3-jef'.
928         (complex_vars_of_mule_charset): Likewise.
929
930         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
931         (MIN_CHAR_CHINA3_JEF): Comment out.
932         (MAX_CHAR_CHINA3_JEF): Comment out.
933
934 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
935
936         * mule-charset.c (Vcharset_ucs_gb): New variable.
937         (Qucs_gb): New variable.
938         (syms_of_mule_charset): Add new symbol `ucs-gb'.
939         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
940
941         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
942
943 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * mule-charset.c (charset_code_point): if a coded-charset has a
946         final-byte, don't inherit the builtin range of the mother CCS.
947
948 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
949
950         * mule-charset.c (charset_code_point): Fix problem about
951         inheritance.
952
953 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
954
955         * mule-charset.c (decode_builtin_char): Reorganized.
956
957 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * text-coding.c (char_encode_as_entity_reference): Modify for
960         `charset_code_point'.
961         (char_encode_shift_jis): Likewise.
962         (char_encode_big5): Likewise.
963         (char_encode_utf8): Likewise.
964         (char_encode_iso2022): Likewise.
965
966         * mule-charset.c (charset_code_point): Add new argument
967         `defined_only'.
968         (Fencode_char): Add new optional argument `defined_only'.
969
970         * chartab.c (put_char_table): Modify for `charset_code_point'.
971
972         * char-ucs.h (charset_code_point): Add new argument
973         `defined_only'.
974         (encode_char_1): Modify for `charset_code_point'.
975
976 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
979         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
980
981 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
982
983         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
984         (Qjis_x0208): Likewise.
985         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
986         XCHARSET_FINAL(charset).
987         (charset_code_point): Modify condition for final-byte based
988         builtin-chars.
989         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
990         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
991         in UTF-2000; specify `=jis-x0208' as the mother of
992         `japanese-jisx0208-1978', `japanese-jisx0208' and
993         `japanese-jisx0208-1990' in UTF-2000.
994
995 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
996
997         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
998
999 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1000
1001         * text-coding.c (decode_coding_utf16): Support UTF-16.
1002         (char_encode_utf16): Fixed.
1003
1004 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * text-coding.c (Qutf16): New variable in MULE.
1007         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1008         (Fcoding_system_type): Add `utf-16' in MULE.
1009         (struct detection_state): Add a structure for utf16 in MULE.
1010         (detect_coding_type): Setup st->utf16.mask in MULE.
1011         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1012         MULE.
1013         (reset_encoding_stream): Use `char_encode_utf16' and
1014         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1015         (detect_coding_utf16): New function [incomplete].
1016         (decode_coding_utf16): New function [support only UCS-2].
1017         (char_encode_utf16): New function.
1018         (char_finish_utf16): New function.
1019         (syms_of_file_coding): Add new symbol `utf-16'; setup
1020         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1021
1022         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1023         UTF-2000.
1024         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1025         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1026
1027 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1028
1029         * chartab.c (put_char_table): When a charset is specified as a
1030         range in UTF-2000, don't support builtin characters.
1031
1032 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * mule-charset.c (decode_defined_char): Don't refer external
1035         database if Qunbound or Qnil are found.
1036         (Fsave_charset_mapping_table): Don't define it if
1037         HAVE_CHISE_CLIENT is not defined.
1038         (Freset_charset_mapping_table): New function.
1039         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1040         found in external database.
1041         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1042         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1043         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1044
1045 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1046
1047         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1048         not.
1049
1050 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1053         Q_lowercase, Q_uppercase in UTF-2000.
1054
1055         * chartab.c (get_char_table): Add special code for the standard
1056         case table to use character attribute `->downcase' and
1057         `->uppercase' for case operations in UTF-2000.
1058
1059         * casetab.c (Qflippedcase): New variable in UTF-2000.
1060         (Q_lowercase): Likewise.
1061         (Q_uppercase): Likewise.
1062         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1063         and `->uppercase' in UTF-2000.
1064         (complex_vars_of_casetab): Assign attribute name `downcase' to
1065         downcase and CANON table of Vstandard_case_table in UTF-2000;
1066         assign attribute name `flippedcase' to upcase and EQV table of
1067         Vstandard_case_table in UTF-2000.
1068
1069 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * text-coding.c (decode_add_er_char): Support isolated-chars.
1072         (char_encode_as_entity_reference): Likewise.
1073
1074 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1075
1076         * emacs.c (Vutf_2000_lisp_directory): New variable.
1077         (Vconfigure_utf_2000_lisp_directory): Likewise.
1078         (complex_vars_of_emacs): Add new variable
1079         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1080
1081 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1082
1083         * char-ucs.h (DECODE_CHAR): Delete special code for
1084         `chinese-big5-1' and `chinese-big5-2'.
1085
1086         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1087         (Qbig5_2): Likewise.
1088         (decode_defined_char): Support CONVERSION_BIG5_1 and
1089         CONVERSION_BIG5_2.
1090         (decode_builtin_char): Likewise.
1091         (charset_code_point): Likewise.
1092         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1093         'conversion in UTF-2000.
1094         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1095         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1096         `chinese-big5-2' as children of `chinese-big5'.
1097
1098         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1099         (CONVERSION_BIG5_2): New macro.
1100
1101 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * text-coding.c (char_encode_big5): Support entity-reference.
1104
1105 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1106
1107         * text-coding.c (char_encode_as_entity_reference): New function.
1108         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1109
1110 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * text-coding.c (decode_coding_big5): Support entity-reference
1113         decoding feature.
1114
1115 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116
1117         * text-coding.c (allocate_coding_system): Initialize initial
1118         charsets for CODESYS_UTF8.
1119         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1120         charset-g2 for CODESYS_UTF8.
1121         (decode_coding_utf8): Use charset-g0.
1122         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1123         to force variants to map to UCS.
1124
1125 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * text-coding.c (Qutf_8_mcs): New variable.
1128         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1129         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1130         instead of `utf-8' in UTF-2000.
1131
1132 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1135         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1136         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1137         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1138         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1139         CONVERSION_96x96x96x96 are introduced.
1140         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1141         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1142         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1143
1144         * char-ucs.h (CONVERSION_94): New macro.
1145         (CONVERSION_96): New macro.
1146         (CONVERSION_94x94): New macro.
1147         (CONVERSION_96x96): New macro.
1148         (CONVERSION_94x94x94): New macro.
1149         (CONVERSION_96x96x96): New macro.
1150         (CONVERSION_94x94x94x60): New macro.
1151         (CONVERSION_94x94x94x94): New macro.
1152         (CONVERSION_96x96x96x96): New macro.
1153
1154 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1155
1156         * chartab.c (Vcharacter_variant_table): Deleted.
1157         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1158         of `Vcharacter_variant_table'.
1159         (Fput_char_attribute): Likewise.
1160         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1161         (complex_vars_of_chartab): Likewise.
1162
1163 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1164
1165         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1166
1167         * fns.c (Qideographic_structure): New variable.
1168         (Qkeyword_char): New variable.
1169         (ids_format_unit): New function.
1170         (Fideographic_structure_to_ids): New function.
1171         (syms_of_fns): Add new symbols `ideographic-structure' and
1172         `:char'; add new builtin function `ideographic-structure-to-ids'.
1173
1174         * data.c (Fchar_ref_p): New function.
1175         (syms_of_data): Add new builtin function `char-ref-p'.
1176
1177         * chartab.h: Add an EXFUN for `Ffind_char'.
1178
1179 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1180
1181         * text-coding.c (Vcharacter_composition_table): Deleted.
1182         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1183         in every UTF-2000.
1184
1185         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1186         UTF-2000.
1187         (Vcharacter_composition_table): Deleted.
1188         (Fget_composite_char): Use the implementation for external-DB
1189         support in every UTF-2000.
1190         (Fput_char_attribute): Likewise.
1191         (char_attribute_system_db_file): Don't define if external-DB
1192         feature is not available.
1193         (Fsave_char_attribute_table): Likewise.
1194         (Fmount_char_attribute_table): Likewise.
1195         (Fclose_char_attribute_table): Likewise.
1196         (Freset_char_attribute_table): Likewise.
1197         (Fload_char_attribute_table): Likewise.
1198         (syms_of_chartab): Don't define `save-char-attribute-table',
1199         `mount-char-attribute-table', `reset-char-attribute-table',
1200         `close-char-attribute-table' and `load-char-attribute-table' if
1201         external-DB feature is not available.
1202         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1203
1204 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1205
1206         * text-coding.c (Qcomposition): Add extern if external-DB feature
1207         is supported.
1208         (Vcharacter_composition_table): Don't add extern if external-DB
1209         feature is supported.
1210         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1211         character composition rule if external-DB feature is supported.
1212
1213         * chartab.c (Vcharacter_composition_table): Don't define if
1214         external-DB feature is supported.
1215         (Qcomposition): New variable.
1216         (Fget_composite_char): New implementation for external-DB support.
1217         (Fput_char_attribute): Use `composition' property of each
1218         character instead of `Vcharacter_composition_table' to store
1219         character-composition rules if external-DB feature is supported.
1220         (syms_of_chartab): Add new symbol `composition'.
1221         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1222         external-DB feature is supported.
1223
1224 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1225
1226         * chartab.c (Vchar_db_stingy_mode): New variable.
1227         (load_char_attribute_maybe): Close database if
1228         Vchar_db_stingy_mode is not NIL.
1229         (Fload_char_attribute_table_map_function): Use
1230         `get_char_id_table_0' instead of `get_char_id_table'.
1231         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1232
1233         * chartab.h (get_char_id_table_0): New inline function.
1234         (get_char_id_table): Use `get_char_id_table_0'.
1235
1236 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1237
1238         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1239         and `COMPOSE_ADD_CHAR'.
1240         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1241
1242 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1243
1244         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1245         instead of `DECODE_ADD_UCS_CHAR'.
1246         (COMPOSE_ADD_CHAR): Likewise.
1247
1248 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1249
1250         * text-coding.c (decode_flush_er_chars): New inline function.
1251         (decode_add_er_char): New function.
1252         (decode_coding_utf8): Use `decode_flush_er_chars' and
1253         `decode_add_er_char'.
1254
1255 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1258         done before `decode_output_utf8_partial_char'.
1259
1260         * mule-charset.c (complex_vars_of_mule_charset): Specify
1261         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1262         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1263
1264 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * mule-charset.c (decode_defined_char): New function; search
1267         mother.
1268         (decode_builtin_char): Don't search mother if
1269         XCHARSET_MAX_CODE(charset) == 0.
1270         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1271         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1272         (Fdecode_char): Use `decode_defined_char' instead of
1273         `DECODE_DEFINED_CHAR'.
1274         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1275         mother of `Vcharset_ucs_jis'.
1276
1277         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1278         instead of `DECODE_DEFINED_CHAR'.
1279
1280         * char-ucs.h (decode_defined_char): Renamed from
1281         `DECODE_DEFINED_CHAR'; changed to normal function.
1282         (DECODE_CHAR): Use `decode_defined_char' instead of
1283         `DECODE_DEFINED_CHAR'.
1284
1285         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1286
1287 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288
1289         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1290
1291         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1292         variable.
1293         (Quse_entity_reference): New variable.
1294         (Qd): New variable.
1295         (Qx): New variable.
1296         (QX): New variable.
1297         (coding_system_description): Add description for
1298         `ccs_priority_list'.
1299         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1300         (allocate_coding_system): Initialize `ccs_priority_list' in
1301         UTF-2000.
1302         (Fmake_coding_system): Add description about
1303         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1304         (codesys).
1305         (Fcoding_system_property): Accept `disable-composition' and
1306         `use-entity-reference' in UTF-2000.
1307         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1308         in UTF-2000.
1309         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1310         (decode_coding_utf8): Decode entity-reference if
1311         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1312         (char_encode_utf8): Encode non-Unicode characters as
1313         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1314         (str->codesys).
1315         (syms_of_file_coding): Add new symbols `use-entity-reference',
1316         `d', `x', `X'.
1317         (vars_of_file_coding): Add new variable
1318         `coded-charset-entity-reference-alist'.
1319         (complex_vars_of_file_coding): Declare `disable-composition' and
1320         `use-entity-reference' to be coding-system-properties in UTF-2000.
1321
1322         * file-coding.h (struct Lisp_Coding_System): Add new member
1323         `use_entity_reference' and `ccs_priority_list'.
1324         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1325         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1326         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1327
1328 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * chartab.c (save_uint8_byte_table): Don't clear the table.
1331         (save_uint16_byte_table): Likewise.
1332         (save_byte_table): Likewise.
1333         (Fmount_char_attribute_table): New function.
1334         (syms_of_chartab): Add new builtin function
1335         `mount-char-attribute-table'.
1336
1337 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1340         "w+" mode.
1341         (load_char_decoding_entry_maybe): Open database as read-only mode.
1342
1343         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1344         open database as "w+" mode.
1345         (load_char_attribute_maybe): Open database as read-only mode.
1346         (Fload_char_attribute_table): Likewise.
1347
1348 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1351         (char_table_description): Delete member `db_file'.
1352         (Fmake_char_table): Don't refer `ct->db_file'.
1353         (Fcopy_char_table): Likewise.
1354         (Fsave_char_attribute_table): Likewise.
1355         (Fclose_char_attribute_table): Likewise.
1356         (Freset_char_attribute_table): Likewise.
1357         (load_char_attribute_maybe): Likewise.
1358         (Fload_char_attribute_table): Likewise.
1359
1360         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1361
1362 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1365         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1366         `ct->db' is living.
1367         (load_char_attribute_maybe): Likewise.
1368         (Fload_char_attribute_table): Likewise.
1369
1370 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1371
1372         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1373         `ct->db_file' unconditionally.
1374
1375 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1376
1377         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1378         UTF-2000.
1379         (char_table_description): Add description for `db_file' and `db'
1380         in UTF-2000.
1381         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1382         UTF-2000.
1383         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1384         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1385         (Fclose_char_attribute_table): New function.
1386         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1387         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1388         and `cit->db'.
1389         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1390         (syms_of_chartab): Add new builtin function
1391         `Fclose_char_attribute_table'.
1392
1393 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1394
1395         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1396         `db' in UTF-2000.
1397         (load_char_attribute_maybe): Change interface.
1398         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1399
1400 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1403
1404 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1407         instead of `DECODE_CHAR' for mother; don't use special code for
1408         chinese-big5 to use code space of chinese-big5-1 and
1409         chinese-big5-2.
1410         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1411         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1412
1413         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1414         (MAX_CHAR_BIG5_CDP): Revival.
1415
1416 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1419         the XLFD registry-encoding name of `chinese-big5'.
1420
1421 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1422
1423         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1424         (Qchinese_big5_cdp): Deleted.
1425         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1426         (complex_vars_of_mule_charset): Delete coded-charset
1427         `chinese-big5-cdp'.
1428
1429         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1430         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1431         `CHARSET_ID_OFFSET - n' for private CCS.
1432         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1433         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1434         of `MIN_LEADING_BYTE'.
1435         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1436         `(CHARSET_ID_OFFSET - 97)'.
1437         (MIN_CHAR_BIG5_CDP): Deleted.
1438         (MAX_CHAR_BIG5_CDP): Deleted.
1439
1440 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441
1442         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1443
1444 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1447         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1448         chartab.c].
1449
1450         * chartab.c (Vutf_2000_version): Moved to mule.c.
1451         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1452
1453 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1454
1455         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1456         when HAVE_CHISE_CLIENT is not defined.
1457
1458         * mule.c (vars_of_mule): Provide feature `chise' when
1459         HAVE_CHISE_CLIENT is defined.
1460
1461 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1462
1463         * config.h.in (UTF2000): Add comment.
1464         (HAVE_CHISE_CLIENT): New macro.
1465
1466 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1467
1468         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1469         CONSP.
1470         (Fput_char_attribute): Likewise.
1471         (char_attribute_system_db_file): Encode file-name of attribute.
1472         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1473         the initial value.
1474
1475 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1476
1477         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1478         (Fsave_charset_mapping_table): Use
1479         `char_attribute_system_db_file'.
1480         (load_char_decoding_entry_maybe): Likewise.
1481
1482         * chartab.h (Qsystem_char_id): New external variable.
1483         (char_attribute_system_db_file): New prototype.
1484
1485         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1486         (char_attribute_system_db_file): New function.
1487         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1488         (Freset_char_attribute_table): Likewise.
1489         (load_char_attribute_maybe): Likewise.
1490         (Fload_char_attribute_table): Likewise.
1491         (syms_of_chartab): Add new symbol `system-char-id'.
1492
1493 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1494
1495         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1496         `XCHARSET_GRAPHIC(ccs)'.
1497
1498 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1501
1502 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1503
1504         * chartab.c (Q_ucs_variants): New variable.
1505         (syms_of_chartab): Add new symbol `->ucs-variants'.
1506         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1507         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1508         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1509
1510         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1511
1512         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1513         `HAVE_DATABASE' is defined.
1514         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1515         `HAVE_DATABASE' is defined.
1516
1517 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1518
1519         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1520         attribute-table.
1521         (Freset_char_attribute_table): New function.
1522         (syms_of_chartab): Add new builtin function
1523         `reset-char-attribute-table'.
1524
1525 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1526
1527         * chartab.c (load_char_attribute_maybe): Don't make directories.
1528
1529 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1530
1531         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1532
1533         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1534         for decoding-table.
1535
1536 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * mule-charset.c (Fsave_charset_mapping_table): Use
1539         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1540
1541         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1542         instead of `XCHARSET_CHARS'.
1543
1544 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1547         (XCHARSET_BYTE_SIZE): Likewise.
1548
1549         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1550         mule-charset.c].
1551         (XCHARSET_BYTE_SIZE): Likewise.
1552
1553 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1554
1555         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1556         data-directory to store database.
1557         (Fsave_char_attribute_table): Likewise.
1558         (load_char_attribute_maybe): Likewise.
1559         (Fload_char_attribute_table): Likewise.
1560
1561 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1562
1563         * mule-charset.c (Fsave_charset_mapping_table): New function.
1564         (syms_of_mule_charset): Add new builtin function
1565         `save-charset-mapping-table'.
1566
1567 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1570         (get_ccs_octet_table): New inline function.
1571         (put_ccs_octet_table): Likewise.
1572         (decoding_table_put_char): Use `get_ccs_octet_table' and
1573         `put_ccs_octet_table'.
1574         (decoding_table_remove_char): Use `decoding_table_put_char'.
1575         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1576
1577         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1578         into encoding_table.
1579         (make_charset): Use Qunbound instead Qnil as initial value of
1580         decoding_table.
1581
1582 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1583
1584         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1585         element is Qunloaded.
1586         (map_over_uint16_byte_table): Likewise.
1587         (map_over_byte_table): Likewise.
1588         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1589         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1590         database support, load encoding-table of the specified
1591         coded-charset if it is not loaded yet.
1592         (save_uint8_byte_table): New function of UTF-2000 with external
1593         database support.
1594         (save_uint16_byte_table): Likewise.
1595         (save_byte_table): Likewise.
1596         (Fput_char_attribute): Don't store value into external database
1597         even if the external database feature is supported in UTF-2000;
1598         set `attribute' as name of char-table if the external database
1599         feature is supported.
1600         (Fsave_char_attribute_table): New function in UTF-2000.
1601         (syms_of_chartab): Add new builtin function
1602         `save-char-attribute-table' in UTF-2000.
1603
1604 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1605
1606         * chartab.c (char_attribute_table_to_put): New variable in
1607         UTF-2000.
1608         (Qput_char_table_map_function): Likewise.
1609         (value_to_put): Likewise.
1610         (Fput_char_table_map_function): New function in UTF-2000.
1611         (put_char_table): Use `Fmap_char_attribute' for
1612         CHARTAB_RANGE_CHARSET in UTF-2000.
1613         (Fput_char_attribute): Store symbol instead of string in
1614         `XCHAR_TABLE_NAME (table)'.
1615         (load_char_attribute_maybe): Likewise.
1616         (syms_of_chartab): Add new symbol/function
1617         `put-char-table-map-function'.
1618
1619 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1620
1621         * database.h: Add new EXFUN for `Fmap_database'.
1622
1623         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1624         (syms_of_database): Likewise.
1625
1626         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1627         UTF-2000.
1628         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1629         (XCHAR_TABLE_UNLOADED): Likewise.
1630
1631         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1632         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1633         HAVE_DATABASE is defined.
1634         (char_attribute_table_to_load): New variable of UTF-2000 with
1635         external database support.
1636         (Qload_char_attribute_table_map_function): Likewise.
1637         (Fload_char_attribute_table_map_function): New function of
1638         UTF-2000 with external database support.
1639         (Fload_char_attribute_table): New function of UTF-2000.
1640         (Fmap_char_attribute): Call Fload_char_attribute_table if
1641         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1642         (syms_of_chartab): Add new symbol and function
1643         `load-char-attribute-table-map-function' in UTF-2000 with external
1644         database support; add new function `load-char-attribute-table' in
1645         UTF-2000.
1646
1647 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * chartab.h (load_char_attribute_maybe): New prototype for
1650         UTF-2000 with DATABASE support.
1651         (get_char_id_table): Use `load_char_attribute_maybe' if
1652         HAVE_DATABASE is defined.
1653
1654         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1655         with DATABASE support.
1656
1657 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * chartab.c (Fput_char_attribute): Use S-expression as key of
1660         external database.
1661
1662         * chartab.h (get_char_id_table): Use S-expression as key of
1663         external database.
1664
1665 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666
1667         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1668         if an element is not loaded, load the corresponding attributes
1669         from an external database.
1670         (map_over_uint16_byte_table): Likewise.
1671         (map_over_byte_table): Likewise.
1672         (map_char_table): Modify for `map_over_uint8_byte_table',
1673         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1674         element is not loaded, load the corresponding attributes from an
1675         external database.
1676         (Fput_char_attribute): Change initial values to Qunloaded.
1677
1678         * chartab.h (get_char_id_table): If a character attribute is not
1679         loaded and the attribute value is not found in an external
1680         database, store Qunbound as the attribute value.
1681
1682 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1683
1684         * chartab.c (BT_UINT8_unloaded): New macro.
1685         (UINT8_VALUE_P): Accept Qunloaded.
1686         (UINT8_ENCODE): Likewise.
1687         (UINT8_DECODE): Likewise.
1688         (BT_UINT16_unloaded): New macro.
1689         (UINT16_VALUE_P): Accept Qunloaded.
1690         (UINT16_ENCODE): Likewise.
1691         (UINT16_DECODE): Likewise.
1692         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1693         BT_UINT16_unloaded.
1694         (mark_char_table): Mark `ct->name' in UTF-2000.
1695         (char_table_description): Add `name' in UTF-2000.
1696         (Fmake_char_table): Initialize `ct->name'.
1697         (Fcopy_char_table): Copy `ct->name'.
1698         (Fput_char_attribute): Store value into an external database if
1699         HAVE_DATABASE is defined.
1700
1701         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1702         UTF-2000.
1703         (CHAR_TABLE_NAME): New macro in UTF-2000.
1704         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1705         (get_char_id_table): Try to read an external database if Qunloaded
1706         is stored in a table.
1707
1708         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1709         Qunloaded.
1710
1711 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1712
1713         * database.h: Add EXFUN definitions for Fopen_database,
1714         Fput_database, Fget_database and Fclose_database.
1715
1716         * data.c (Qunloaded): New variable in UTF-2000.
1717
1718         * lisp.h (Qunloaded): New variable in UTF-2000.
1719
1720 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1721
1722         * mule-charset.c (put_char_ccs_code_point): Modify for
1723         `decoding_table_remove_char' and `decoding_table_put_char'.
1724         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1725
1726         * char-ucs.h (decoding_table_remove_char): Change arguments to
1727         hide decoding_table vector.
1728         (decoding_table_put_char): Likewise.
1729
1730 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * mule-charset.c (decoding_table_remove_char): Moved to
1733         char-ucs.h.
1734         (decoding_table_put_char): Likewise.
1735
1736         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1737         from mule-charset.c].
1738         (decoding_table_remove_char): New inline function [moved from
1739         mule-charset.c].
1740         (decoding_table_put_char): Likewise.
1741
1742 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1745         extension.
1746
1747 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1748
1749         * mule-charset.c (decode_builtin_char): Support mother charsets.
1750
1751 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1752
1753         * mule-charset.c (Q94x94x60): New variable.
1754         (charset_code_point): Support conversion `94x94x60'.
1755         (Fmake_charset): Likewise.
1756         (syms_of_mule_charset): Add new symbol `94x94x60'.
1757
1758         * char-ucs.h (CONVERSION_94x94x60): New macro.
1759
1760 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1761
1762         * mule-charset.c (charset_code_point): Unify code about
1763         `code-offset'.
1764
1765 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1766
1767         * mule-charset.c (charset_code_point): Merge code about builtin
1768         characters into code about mother charsets; don't use
1769         `range_charset_code_point'.
1770         (range_charset_code_point): Deleted.
1771
1772 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1773
1774         * mule-charset.c (Qcode_offset): New variable.
1775         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1776         `max-code'; accept new property `code-offset'.
1777         (syms_of_mule_charset): Add new symbol `code-offset'.
1778
1779 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1780
1781         * mule-charset.c (range_charset_code_point): Fixed.
1782
1783 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1784
1785         * mule-charset.c (decode_builtin_char): Change semantics of
1786         code-offset of coded-charset.
1787         (charset_code_point): Likewise.
1788         (range_charset_code_point): Likewise.
1789         (complex_vars_of_mule_charset): Modify for the change.
1790
1791 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * mule-charset.c (Fencode_char): Reverse arguments.
1794
1795         * mule-charset.c (charset_code_point): Fixed.
1796
1797 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798
1799         * mule-charset.c (Vcharset_mojikyo): Deleted.
1800         (Vcharset_mojikyo_2022_1): Deleted.
1801         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1802         (Qmin_code): New variable in UTF-2000.
1803         (Qmax_code): Likewise.
1804         (Qmother): Likewise.
1805         (Qconversion): Likewise.
1806         (Q94x60): Likewise.
1807         (Qmojikyo): Deleted.
1808         (Qmojikyo_2022_1): Deleted.
1809         (Qmojikyo_pj_{1..22}): Deleted.
1810         (mark_charset): Mark `cs->mother'.
1811         (charset_description): Add description for `mother'.
1812         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1813         new arguments `mother' and `conversion'; use
1814         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1815         (charset_code_point): Moved from char-ucs.h; support `mother'
1816         charset feature.
1817         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1818         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1819         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1820         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1821         allow 2 as the value of `graphic' in UTF-2000; add new properties
1822         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1823         require `final' in UTF-2000; modify for `make_charset'.
1824         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1825         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1826         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1827         (Fencode_char): New function.
1828         (syms_of_mule_charset): Add new builtin function `encode-char' in
1829         UTF-2000; add new symbols `min-code', `max-code', `mother',
1830         `conversion' and `94x60'; delete symbols `mojikyo',
1831         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1832         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1833         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1834         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1835
1836         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1837         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1838
1839         * char-ucs.h (Vcharset_mojikyo): Deleted.
1840         (Vcharset_mojikyo_2022_1): Deleted.
1841         (LEADING_BYTE_MOJIKYO): Deleted.
1842         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1843         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1844         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1845         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1846         add new member `mother'; add new member `conversion'.
1847         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1848         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1849         (CHARSET_MOTHER): New macro.
1850         (CHARSET_CONVERSION): New macro.
1851         (CONVERSION_IDENTICAL): New macro.
1852         (CONVERSION_94x60): New macro.
1853         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1854         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1855         (XCHARSET_MOTHER): New macro.
1856         (XCHARSET_CONVERSION): New macro.
1857         (MIN_CHAR_MOJIKYO): Deleted.
1858         (MAX_CHAR_MOJIKYO): Deleted.
1859         (DECODE_MOJIKYO_2022): Deleted.
1860         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1861         (charset_code_point): Changed to non-inline function.
1862         (encode_char_1): Use `charset_code_point'.
1863         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1864
1865 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1866
1867         * lread.c (read_compiled_function): Fix prototype.
1868         (read_vector): Likewise.
1869
1870 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871
1872         * lrecord.h (struct lrecord_header): Delete `older'.
1873         (set_lheader_implementation): Delete code for `older'.
1874         (set_lheader_older_implementation): Deleted.
1875         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1876         (OLDER_RECORD_P): Deleted.
1877         (OLDER_RECORD_HEADER_P): Deleted.
1878         (alloc_older_lcrecord): Deleted.
1879         (alloc_older_lcrecord_type): Deleted.
1880
1881         * alloc.c (all_older_lcrecords): Deleted.
1882         (alloc_older_lcrecord): Deleted.
1883         (disksave_object_finalization_1): Delete code for older objects.
1884         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1885         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1886
1887 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1890         instead of `make_older_vector'.
1891         (put_char_ccs_code_point): Likewise.
1892         (mark_charset): Mark `cs->decoding_table'.
1893         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1894
1895         * lisp.h (make_older_vector): Deleted.
1896         (make_vector_newer): Deleted.
1897
1898         * config.h.in (HAVE_GGC): Deleted.
1899
1900         * alloc.c (make_older_vector): Deleted.
1901         (make_vector_newer_1): Deleted.
1902         (make_vector_newer): Deleted.
1903
1904 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1907         (Qideograph_daikanwa_2): New variable.
1908         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1909         (complex_vars_of_mule_charset): Add new coded-charset
1910         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1911         `LEADING_BYTE_DAIKANWA'.
1912
1913         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1914         (LEADING_BYTE_DAIKANWA_1): New macro.
1915         (LEADING_BYTE_DAIKANWA_2): New macro.
1916         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1917
1918 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * mule-charset.c (complex_vars_of_mule_charset): Change
1921         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1922         the second revised version.
1923
1924 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * mule-charset.c (Vcharset_ucs_smp): New variable.
1927         (Vcharset_ucs_sip): New variable.
1928         (Qucs_smp): New variable.
1929         (Qucs_sip): New variable.
1930         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1931         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1932         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1933         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1934         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1935         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1936
1937         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1938         (LEADING_BYTE_UCS_SIP): New macro.
1939         (MIN_CHAR_SMP): New macro.
1940         (MAX_CHAR_SMP): New macro.
1941         (MIN_CHAR_SIP): New macro.
1942         (MAX_CHAR_SIP): New macro.
1943
1944 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1945
1946         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1947         utf-2000.
1948
1949 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1950
1951         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1952         value; don't store value into `encoding_table' of `Lisp_Charset'.
1953         (mark_charset): `encoding_table' was deleted.
1954         (charset_description): Likewise.
1955         (make_charset): Likewise.
1956         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1957         `put_char_ccs_code_point'.
1958
1959         * chartab.h (Fput_char_attribute): New EXFUN.
1960
1961         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1962         is unified with normal symbol space.
1963         (Fget_char_attribute): Likewise.
1964         (Fput_char_attribute): Likewise; behavior of
1965         `put_char_ccs_code_point' is changed.
1966
1967         * char-ucs.h: Include "elhash.h".
1968         (Vchar_attribute_hash_table): New external variable.
1969         (struct Lisp_Charset): Delete `encoding_table'.
1970         (CHARSET_ENCODING_TABLE): New implementation; refer
1971         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1972         `Lisp_Charset'.
1973
1974 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1977         (cs) == 0.
1978
1979 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980
1981         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1982         `chinese-big5'.
1983
1984 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * chartab.c (uint8_byte_table_description): New constant.
1987         (uint8-byte-table): Use `uint8_byte_table_description'.
1988         (uint16_byte_table_description): New constant.
1989         (uint16-byte-table): Use `uint16_byte_table_description'.
1990
1991 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1994         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1995
1996 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * mule-charset.c (Vcharset_ucs_ks): New variable.
1999         (Qucs_ks): New variable.
2000         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2001         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2002
2003         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2004
2005 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006
2007         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2008         (Fdecode_char): Likewise.
2009
2010         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2011         chartab.h.
2012         (Fdefine_char): Modify for Fdecode_char.
2013         (Ffind_char): Likewise.
2014
2015         * mule-charset.c (Fdecode_char): Add new optional argument
2016         `defined-only'.
2017         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2018
2019 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2022         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2023         (allocate_coding_system): Initialize initial-charsets of
2024         CODESYS_BIG5 in XEmacs UTF-2000.
2025         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2026         CODESYS_BIG5 in XEmacs UTF-2000.
2027         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2028         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2029
2030         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2031         variables.
2032         (Qideograph_hanziku_{1 .. 12}): Likewise.
2033         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2034         .. 12}'.
2035         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2036         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2037         `ideograph-hanziku-{1 .. 12}'.
2038
2039         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2040         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2041         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2042         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2043         (DECODE_DEFINED_CHAR): New inline function.
2044         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2045
2046 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * mule-charset.c (Vcharset_china3_jef): Renamed from
2049         `Vcharset_japanese_jef_china3'.
2050         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2051         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2052         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2053         (syms_of_mule_charset): Rename `china3-jef' from
2054         `japanese-jef-china3'.
2055         (complex_vars_of_mule_charset): Likewise; rename
2056         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2057
2058         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2059         `LEADING_BYTE_JEF_CHINA3'.
2060         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2061         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2062
2063 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2064
2065         * mule-charset.c (encode_builtin_char_1): Comment out special code
2066         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2067
2068         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2069         (MAX_CHAR_MOJIKYO_0): Comment out.
2070         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2071         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2072         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2073         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2074
2075 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2076
2077         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2078         (Qideograph_cbeta): New variable.
2079         (encode_builtin_char_1): Comment out special code for
2080         coded-charset `mojikyo' and `japanese-jef-china3'.
2081         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2082         (complex_vars_of_mule_charset): Add new coded-charset
2083         `ideograph-cbeta'.
2084
2085         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2086         (MIN_CHAR_CBETA): New macro.
2087         (MAX_CHAR_CBETA): New macro.
2088
2089 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2090
2091         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2092         (LEADING_BYTE_JEF_CHINA3): New macro.
2093         (MIN_CHAR_JEF_CHINA3): New macro.
2094         (MAX_CHAR_JEF_CHINA3): Likewise.
2095         (DECODE_CHAR): Fixed.
2096
2097 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098
2099         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2100         (Qjapanese_jef_china3): New variable.
2101         (encode_builtin_char_1): Support `japanese-jef-china3'.
2102         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2103         (complex_vars_of_mule_charset): Add new coded-charset
2104         `japanese-jef-china3'.
2105
2106 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2109         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2110         94^4, 96^3, 96^4, 128^n and 256^n set.
2111         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2112         (map_char_table): Likewise.
2113
2114 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2115
2116         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2117         UTF-2000.
2118
2119 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * chartab.h (get_char_id_table): New inline function.
2122
2123         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2124         function.
2125
2126 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2127
2128         * chartab.h (decode_char_table_range): New prototype in XEmacs
2129         UTF-2000.
2130         (put_char_id_table): New inline function in XEmacs UTF-2000.
2131
2132         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2133         function.
2134         (decode_char_table_range): Delete static declaration in XEmacs
2135         UTF-2000.
2136
2137 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2138
2139         * chartab.c (put_char_id_table): Use `put_char_table'.
2140
2141 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2142
2143         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2144         (map_over_uint16_byte_table): Likewise.
2145         (map_over_byte_table): Likewise.
2146         (map_char_table): Modify for `map_over_uint8_byte_table',
2147         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2148         UTF-2000.
2149
2150 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2151
2152         * chartab.c (struct map_char_table_for_charset_arg): New
2153         structure.
2154         (map_char_table_for_charset_fun): New function.
2155         (map_char_table): Use `map_char_table' for encoding_table of
2156         `range->charset'.
2157
2158 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159
2160         * chartab.c (map_char_table): Check a character is found in
2161         range->charset instead of non default value is defined in
2162         char-table when range is CHARTAB_RANGE_ROW.
2163
2164 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165
2166         * chartab.c (map_char_id_table): Deleted.
2167         (Fmap_char_attribute): Use `map_char_table' instead of
2168         `map_char_id_table'.
2169
2170 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2171
2172         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2173         UTF-2000.
2174         (update_syntax_table): Deleted in XEmacs UTF-2000.
2175
2176         * syntax.c (find_defun_start): Use `syntax_table' instead of
2177         `mirror_syntax_table' in XEmacs UTF-2000.
2178         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2179         UTF-2000.
2180         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2181         XEmacs UTF-2000.
2182         (Fmatching_paren): Likewise.
2183         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2184         in XEmacs UTF-2000.
2185         (find_start_of_comment): Likewise.
2186         (find_end_of_comment): Likewise.
2187         (Fforward_comment): Likewise.
2188         (scan_lists): Likewise.
2189         (char_quoted): Likewise.
2190         (Fbackward_prefix_chars): Likewise.
2191         (scan_sexps_forward): Likewise.
2192         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2193         (update_syntax_table): Likewise.
2194
2195         * search.c (skip_chars): Use `syntax_table' instead of
2196         `mirror_syntax_table' in XEmacs UTF-2000.
2197         (wordify): Likewise.
2198         (Freplace_match): Likewise.
2199
2200         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2201         `mirror_syntax_table' in XEmacs UTF-2000.
2202         (WORDCHAR_P_UNSAFE): Likewise.
2203         (re_match_2_internal): Likewise.
2204
2205         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2206         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2207
2208         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2209         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2210
2211         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2212         XEmacs UTF-2000.
2213
2214         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2215         UTF-2000.
2216         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2217         (char_table_description): Delete `mirror_table' in XEmacs
2218         UTF-2000.
2219         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2220         UTF-2000.
2221         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2222         (Fcopy_char_table): Likewise.
2223         (put_char_table): Don't call `update_syntax_table' in XEmacs
2224         UTF-2000.
2225
2226         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2227         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2228         (casify_region_internal): Likewise.
2229
2230         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2231
2232         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2233         `mirror_syntax_table' in XEmacs UTF-2000.
2234
2235         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2236         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2237         (Fexpand_abbrev): Likewise.
2238
2239 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2242
2243 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2244
2245         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2246         (map_over_uint16_byte_table): Likewise.
2247         (map_over_byte_table): Likewise.
2248         (get_char_id_table): Refer `cit->default_value'.
2249         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2250         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2251         of character-id ranges.
2252         (mark_char_table): Mark `ct->default_value'.
2253         (char_table_description): Add `default_value'.
2254         (fill_char_table): Use `default_value'.
2255         (decode_char_table_range): Decode `nil' as
2256         `CHARTAB_RANGE_DEFAULT'.
2257         (get_char_id_table): Refer `cit->default_value'.
2258         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2259         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2260         temporary hack; check value of char-table is bound or not.
2261         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2262
2263         * chartab.h (struct Lisp_Char_Table): Add new member
2264         `default_value' in XEmacs UTF-2000.
2265         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2266         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2267         UTF-2000.
2268
2269 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2270
2271         * chartab.h (Lisp_Char_ID_Table): Deleted.
2272
2273         * chartab.c (char_table_description): Fix typo.
2274         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2275         `Lisp_Char_ID_Table'.
2276
2277 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2278
2279         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2280         `CHAR_ID_TABLE_P'.
2281
2282         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2283         `CHAR_ID_TABLE_P'.
2284
2285         * chartab.h (XCHAR_ID_TABLE): Deleted.
2286         (XSETCHAR_ID_TABLE): Deleted.
2287         (CHAR_ID_TABLE_P): Deleted.
2288
2289         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2290         `CHAR_ID_TABLE_P'.
2291         (Fget_composite_char): Likewise.
2292         (put_char_table): Likewise.
2293         (add_char_attribute_alist_mapper): Fixed.
2294         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2295         `CHAR_ID_TABLE_P'.
2296         (Fget_char_attribute): Likewise.
2297         (Fget_char_attribute): Likewise.
2298         (Fmap_char_attribute): Likewise.
2299
2300         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2301         `CHAR_ID_TABLE_P'.
2302         (encode_char_1): Likewise.
2303
2304 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2305
2306         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2307         `XCHAR_ID_TABLE'.
2308
2309         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2310         instead of `XCHAR_ID_TABLE'.
2311         (remove_char_ccs): Likewise.
2312
2313         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2314         `XCHAR_ID_TABLE'.
2315         (Fget_composite_char): Likewise.
2316         (Fchar_variants): Likewise.
2317         (put_char_table): Likewise.
2318         (add_char_attribute_alist_mapper): Likewise.
2319         (Fchar_attribute_alist): Likewise.
2320         (Fget_char_attribute): Likewise.
2321         (Fput_char_attribute): Likewise.
2322         (Fmap_char_attribute): Likewise.
2323         (Fmap_char_attribute): Likewise.
2324
2325         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2326         `XCHAR_ID_TABLE'.
2327         (encode_char_1): Likewise.
2328
2329 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2330
2331         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2332         `Lisp_Char_ID_Table'.
2333         (mark_char_id_table): Deleted.
2334         (print_char_id_table): Likewise.
2335         (char_id_table_equal): Likewise.
2336         (char_id_table_hash): Likewise.
2337         (char_id_table_description): Likewise.
2338         (char_id_table): Likewise.
2339         (make_char_id_table): Use `Fmake_char_table' and
2340         `fill_char_table'.
2341         (get_char_id_table): Use `Lisp_Char_Table' instead of
2342         `Lisp_Char_ID_Table'.
2343         (put_char_id_table): Likewise.
2344         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2345         `XCHAR_ID_TABLE'.
2346         (Fremove_char_attribute): Likewise.
2347         (syms_of_chartab): Don't define type `char-id-table'.
2348
2349         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2350         (char_id_table): Likewise.
2351         (GC_CHAR_ID_TABLE_P): Likewise.
2352         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2353         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2354         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2355         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2356         (get_char_id_table): Use `Lisp_Char_Table' instead of
2357         `Lisp_Char_ID_Table'.
2358         (put_char_id_table_0): Likewise.
2359         (put_char_id_table): Likewise.
2360
2361 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2362
2363         * chartab.h: Lisp_Byte_Table related codes are moved from
2364         chartab.h.
2365
2366         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2367
2368 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2369
2370         * chartab.h: Don't include "chartab.h".
2371         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2372         (Lisp_Char_ID_Table): Likewise.
2373         (char_id_table): Likewise.
2374         (XCHAR_ID_TABLE): Likewise.
2375         (XSETCHAR_ID_TABLE): Likewise.
2376         (CHAR_ID_TABLE_P): Likewise.
2377         (GC_CHAR_ID_TABLE_P): Likewise.
2378         (get_char_id_table): Likewise.
2379
2380         * char-ucs.h: Include "chartab.h".
2381         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2382         (Lisp_Char_ID_Table): Likewise.
2383         (char_id_table): Likewise.
2384         (XCHAR_ID_TABLE): Likewise.
2385         (XSETCHAR_ID_TABLE): Likewise.
2386         (CHAR_ID_TABLE_P): Likewise.
2387         (GC_CHAR_ID_TABLE_P): Likewise.
2388         (get_char_id_table): Likewise.
2389
2390 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2391
2392         * chartab.c (copy_uint8_byte_table): New function.
2393         (copy_uint16_byte_table): New function.
2394         (copy_byte_table): New function.
2395         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2396         characters to call.
2397         (map_over_uint16_byte_table): Likewise.
2398         (map_over_byte_table): Likewise.
2399         (get_byte_table): Move prototype to chartab.h.
2400         (put_byte_table): Likewise.
2401         (put_char_id_table_0): Moved to chartab.h.
2402         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2403         (char_table_entry_equal): Likewise.
2404         (char_table_entry_hash): Likewise.
2405         (char_table_entry_description): Likewise.
2406         (char_table_entry): Likewise.
2407         (make_char_table_entry): Likewise.
2408         (copy_char_table_entry): Likewise.
2409         (get_non_ascii_char_table_value): Likewise.
2410         (map_over_charset_ascii): Likewise.
2411         (map_over_charset_control_1): Likewise.
2412         (map_over_charset_row): Likewise.
2413         (map_over_other_charset): Likewise.
2414         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2415         (print_char_table): Likewise.
2416         (char_table_equal): Likewise.
2417         (char_table_hash): Likewise.
2418         (char_table_description): Likewise.
2419         (fill_char_table): Likewise.
2420         (Fcopy_char_table): Likewise.
2421         (get_char_table): Likewise.
2422         (Fget_range_char_table): Likewise.
2423         (put_char_table): Likewise.
2424         (map_char_table): Likewise.
2425         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2426         UTF-2000.
2427
2428 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2429
2430         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2431         `Vauto_fill_chars' in XEmacs UTF-2000.
2432
2433         * chartab.h (get_byte_table): New prototype [moved from
2434         chartab.c].
2435         (put_byte_table): Likewise [moved from chartab.c].
2436         (put_char_id_table_0): New inline function [moved from chartab.c].
2437         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2438         (Lisp_Char_Table_Entry): Likewise.
2439         (char_table_entry): Likewise.
2440         (XCHAR_TABLE_ENTRY): Likewise.
2441         (XSETCHAR_TABLE_ENTRY): Likewise.
2442         (CHAR_TABLE_ENTRYP): Likewise.
2443         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2444         (NUM_ASCII_CHARS): Likewise.
2445         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2446         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2447
2448 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2449
2450         * chartab.c (get_char_id_table): Change interface.
2451         (put_char_id_table_0): New function.
2452         (put_char_id_table): Change interface; new implementation.
2453         (Fget_composite_char): Modify for interface change of
2454         `get_char_id_table'.
2455         (Fchar_variants): Likewise.
2456         (add_char_attribute_alist_mapper): Likewise.
2457         (Fchar_attribute_alist): Likewise.
2458         (Fget_char_attribute): Likewise.
2459         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2460         as same as character as the first argument like `put-char-table';
2461         modify for interface change of `put_char_id_table'.
2462         (Fremove_char_attribute): Modify for interface change of
2463         `put_char_id_table'.
2464
2465 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466
2467         * text-coding.c: Sync up with XEmacs 21.2.41.
2468         (COMPOSE_ADD_CHAR): Modify for interface change of
2469         `get_char_id_table'.
2470
2471         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2472         change of `put_char_id_table'.
2473         (remove_char_ccs): Likewise.
2474
2475         * chartab.h (put_char_id_table): Change interface.
2476
2477         * char-ucs.h (get_char_id_table): Change interface.
2478         (charset_code_point): Modify for interface change of
2479         `get_char_id_table'.
2480         (encode_char_1): Likewise.
2481
2482 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2483
2484         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2485         argument `ccs'.
2486         (map_over_uint16_byte_table): Likewise.
2487         (map_over_byte_table): Likewise.
2488         (map_char_id_table): Add new argument `range' like
2489         `map_char_table'.
2490         (Fmap_char_attribute): Add new argument `range' like
2491         `Fmap_char_table'.
2492
2493 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2494
2495         * chartab.c (map_over_uint8_byte_table): Change interface of
2496         mapping function to use struct chartab_range instead of Emchar.
2497         (map_over_uint16_byte_table): Likewise.
2498         (map_over_byte_table): Likewise.
2499         (map_char_id_table): Likewise.
2500         (struct slow_map_char_id_table_arg): Deleted.
2501         (slow_map_char_id_table_fun): Deleted.
2502         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2503         function `slow_map_char_table_fun' instead of struct
2504         `slow_map_char_id_table_arg' and function
2505         `slow_map_char_id_table_fun'.
2506
2507 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2508
2509         * mule-charset.c: Move char-it-table related codes to chartab.c.
2510         (Vutf_2000_version): Moved to chartab.c.
2511         (Fdefine_char): Likewise.
2512         (Ffind_char): Likewise.
2513         (syms_of_mule_charset): Move types `uint8-byte-table',
2514         `uint16-byte-table', `byte-table' and `char-id-table' to
2515         chartab.c; move functions `char_attribute_list,
2516         `find_char_attribute_table, `char_attribute_alist,
2517         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2518         `map_char_attribute, `define_char, `find_char, `char_variants and
2519         `get_composite_char to chartab.c; move symbols `=>ucs',
2520         `->decomposition', `compat', `isolated', `initial', `medial',
2521         `final', `vertical', `noBreak', `fraction', `super', `sub',
2522         `circle', `square', `wide', `narrow', `small' and `font' to
2523         chartab.c.
2524         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2525         setting codes for `Vcharacter_composition_table' and
2526         `Vcharacter_variant_table' to chartab.c.
2527         (complex_vars_of_mule_charset): Move setting code for
2528         `Vchar_attribute_hash_table' to chartab.c.
2529
2530         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2531         (make_char_id_table): New prototype.
2532         (put_char_id_table): Likewise.
2533         (Fget_char_attribute): Likewise.
2534
2535         * chartab.c: Move char-id-table related code from mule-charset.c.
2536         (Vutf_2000_version): Moved from mule-charset.c.
2537
2538         * char-ucs.h (Qucs): New external variable.
2539         (put_char_ccs_code_point): New prototype.
2540         (remove_char_ccs): Likewise.
2541
2542 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2543
2544         * mule-charset.c (Vcharset_ucs_jis): New variable.
2545         (Qucs_jis): Likewise.
2546         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2547         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2548
2549         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2550
2551 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * mule-charset.c (map_over_uint8_byte_table): New function.
2554         (map_over_uint16_byte_table): Likewise.
2555         (map_over_byte_table): Likewise.
2556         (map_char_id_table): Likewise.
2557         (slow_map_char_id_table_fun): Likewise.
2558         (Fmap_char_attribute): Likewise.
2559         (syms_of_mule_charset): Add new function `map-char-attribute'.
2560
2561 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562
2563         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2564         (syms_of_mule_charset): Add new function `find-char'.
2565
2566 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2569         XEmacs UTF-2000.
2570         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2571         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2572         XEmacs UTF-2000.
2573         (complex_vars_of_mule_charset): Add new coded-charset
2574         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2575         `ideograph-gt-pj-*'.
2576
2577         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2578
2579 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * mule-charset.c (encode_builtin_char_1): Purge codes about
2582         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2583         {MIN|MAX}_CHAR_HEBREW.
2584         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2585         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2586
2587         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2588         (MAX_CHAR_GREEK): Purged.
2589         (MIN_CHAR_CYRILLIC): Purged.
2590         (MAX_CHAR_CYRILLIC): Purged.
2591         (MIN_CHAR_HEBREW): Commented out.
2592         (MAX_CHAR_HEBREW): Likewise.
2593
2594 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2595
2596         * mule-charset.c (Qto_ucs): New variable.
2597         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2598         (Fdefine_char): Likewise.
2599         (syms_of_mule_charset): Add new symbol `=>ucs'.
2600
2601 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2602
2603         * mule-charset.c (Fdecode_char): Fixed.
2604
2605 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2608         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2609         "tcvn5712-1".
2610
2611 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (Vcharset_ucs_big5): New variable.
2614         (Qucs_big5): Likewise.
2615         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2616         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2617
2618         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2619
2620 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * mule-charset.c (decode_builtin_char): Check Big5 code range
2623         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2624
2625 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2628         (Qchinese_gb12345): Likewise.
2629         (Fdecode_builtin_char): Fixed.
2630         (syms_of_mule_charset): Add `chinese-gb12345'.
2631         (complex_vars_of_mule_charset): Add coded-charset
2632         `chinese-gb12345'.
2633
2634         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2635         (LEADING_BYTE_CHINESE_GB12345): New macro.
2636
2637 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638
2639         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2640         and `latin-viscii-upper' for `latin-viscii'.
2641
2642 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2643
2644         * mule-charset.c (Fdecode_builtin_char): Comment out
2645         regularization code for ISO-IR GR representation.
2646
2647 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2648
2649         * mule-charset.c (decode_builtin_char): New function; renamed from
2650         `make_builtin_char'; return -1 instead of signal.
2651         (Fdecode_builtin_char): Use `decode_builtin_char'.
2652
2653         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2654         `make_builtin_char'.
2655         (DECODE_CHAR): Use `decode_builtin_char' instead of
2656         `make_builtin_char'; use mapping table of `chinese-big5' for
2657         `chinese-big5-{1,2}'.
2658
2659 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2660
2661         * text-coding.c (char_encode_big5): New function.
2662         (char_finish_big5): Likewise.
2663         (reset_encoding_stream): Use `char_encode_big5' and
2664         `char_finish_big5' for CODESYS_BIG5.
2665         (mule_encode): Don't use `encode_coding_big5'.
2666         (encode_coding_big5): Deleted.
2667
2668 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2671         0x81- in XEmacs UTF-2000.
2672         (detect_coding_big5): Likewise.
2673
2674 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2677         generate character-id if the CCS property does not have
2678         corresponding predefined character.
2679         (make_builtin_char): Return -1 if corresponding predefined
2680         character is not found.
2681         (Fdecode_char): Return nil if corresponding character is not
2682         found.
2683         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2684         don't map to builtin ucs space.
2685
2686 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2687
2688         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2689         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2690
2691 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2692
2693         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2694         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2695         (Qideograph_gt): Likewise.
2696         (Qideograph_gt_pj_{1..11}): Likewise.
2697         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2698         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2699         `ideograph-gt-pj-11'.
2700         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2701         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2702         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2703
2704         * char-ucs.h (LEADING_BYTE_GT): New macro.
2705         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2706         (MIN_CHAR_GT): Likewise.
2707         (MAX_CHAR_GT): Likewise.
2708
2709 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2712         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2713
2714         * doprnt.c (unsigned_int_converters): Add `c'.
2715         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2716
2717         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2718         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2719         `MIN_CHAR_MOJIKYO'.
2720         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2721         (MAX_CHAR_MOJIKYO_0): New macro.
2722         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2723
2724 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * mule-charset.c (Fdefine_char): Delete cemented out code.
2727         (encode_builtin_char_1): Modify for new allocation of builtin
2728         Mojikyo characters.
2729
2730         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2731
2732 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2733
2734         * mule-charset.c (Vcharset_ucs_cns): New variable.
2735         (Qucs_cns): New variable.
2736         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2737         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2738
2739 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2742
2743 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2744
2745         * search.c (search_buffer): Make `charset_base_code' as
2746         character-id >> 6 to eliminate the corresponding last byte in
2747         UTF-8 representation [I'm not sure it is right thing].
2748         (boyer_moore): Likewise.
2749
2750 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2751
2752         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2753         representation in MULE.
2754
2755 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * text-coding.c (Fmake_coding_system): Use
2758         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2759         `EXTERNAL_PROPERTY_LIST_LOOP'.
2760
2761 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2762
2763         * text-coding.c (decode_output_utf8_partial_char): New function.
2764         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2765
2766 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * text-coding.c (decode_coding_utf8): Output original byte
2769         sequence if it is broken; change order of conditions.
2770
2771         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2772         of conditions.
2773
2774         * mb-multibyte.h (BYTE_ASCII_P):
2775         Use bit ops for char-signedness safety.
2776         (BYTE_C0_P): Use bit ops for char-signedness safety.
2777         (BYTE_C1_P): Use bit ops for char-signedness safety.
2778
2779         * character.h: (XCHAR_OR_CHAR_INT):
2780         Always use inline function.
2781         Remove redundant type checking assert() - XINT will abort quite
2782         nicely.
2783
2784 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2785
2786         * text-coding.c: (Fencode_shift_jis_char):
2787         (Fencode_big5_char):
2788         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2789         Replace 0 with '\0' when working with bytes.
2790         Replace initial "(" with "\(" in docstrings.
2791
2792         (Fmake_coding_system):
2793         When type is ccl and value is vector, register it with a proper
2794         symbol.  And checks whether the given ccl program is valid.
2795         (mule_decode): When calling ccl_driver, if src indicates
2796         NULL pointer, set an empty string instead.
2797         (mule_encode): Likewise.
2798
2799         (detect_eol_type):
2800         (detect_coding_sjis):
2801         (decode_coding_sjis):
2802         (detect_coding_big5):
2803         (decode_coding_big5):
2804         (detect_coding_ucs4):
2805         (decode_coding_ucs4):
2806         (detect_coding_utf8):
2807         (decode_coding_utf8):
2808         (detect_coding_iso2022):
2809         (decode_coding_iso2022):
2810         (decode_coding_no_conversion):
2811         (mule_decode):
2812         Make all detecting and decoding functions take an Extbyte * arg.
2813         (text_encode_generic):
2814         (encode_coding_big5):
2815         (encode_coding_no_conversion):
2816         (mule_encode):
2817         Make all encoding functions take a Bufbyte * arg.
2818         Use size_t instead of unsigned int for memory sizes.
2819         Only cast to unsigned char whenever dereferencing Extbyte *.
2820
2821         (struct lrecord_description fcd_description_1): Use countof.
2822         (complex_vars_of_file_coding):
2823         Use countof instead of sizeof.
2824         Use CHECK_NATNUM instead of CHECK_INT.
2825
2826 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * mule-charset.c (Fget_char_attribute): Add new optional argument
2829         `default-value'.
2830         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2831         (remove_char_ccs): Likewise.
2832
2833 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * text-coding.c (char_encode_shift_jis): New implementation in
2836         UTF-2000.
2837         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2838         ...)'.
2839
2840         * mule-charset.c (Vcharset_chinese_big5): New variable in
2841         UTF-2000.
2842         (Qchinese_big5): New variable in UTF-2000.
2843         (BIG5_SAME_ROW): New macro in UTF-2000.
2844         (make_builtin_char): Use builtin characters of
2845         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2846         characters of `Vcharset_chinese_big5'.
2847         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2848         (complex_vars_of_mule_charset): Add new coded-charset
2849         `chinese-big5' in UTF-2000.
2850
2851         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2852         (Vcharset_chinese_big5): New external variable declaration.
2853         (Vcharset_japanese_jisx0208_1990): Likewise.
2854
2855 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2856
2857         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2858         function.
2859         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2860
2861 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2862
2863         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2864         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2865         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2866         `mojikyo-pj-*'.
2867
2868 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2871
2872 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2875         to 0.17.
2876
2877 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2880         for `CHARSET_BY_ATTRIBUTES'.
2881         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2882         `CHARSET_BY_ATTRIBUTES'.
2883
2884         * text-coding.c (struct decoding_stream): Rename member `CH' to
2885         `CPOS'.
2886         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2887         (decode_coding_sjis): Likewise.
2888         (decode_coding_big5): Likewise.
2889         (decode_coding_ucs4): Likewise.
2890         (decode_coding_utf8): Likewise.
2891         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2892         `CHARSET_BY_ATTRIBUTES'.
2893         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2894         `str->counter'; decode 3, 4 bytes sets.
2895         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2896         sets.
2897         (decode_coding_no_conversion): Use `str->cpos' instead of
2898         `str->ch'.
2899
2900         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2901         (Qmojikyo_2022_1): New variable.
2902         (make_charset): Don't use `CHARSET_TYPE_*'.
2903         (range_charset_code_point): Support coded-charset
2904         `mojikyo-2022-1'.
2905         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2906         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2907         `CHARSET_BY_ATTRIBUTES'.
2908         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2909         `CHARSET_BY_ATTRIBUTES'.
2910         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2911         (complex_vars_of_mule_charset): Add new coded-charset
2912         `mojikyo-2022-1'.
2913
2914         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2915         interface; changed to inline function.
2916
2917         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2918         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2919         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2920         (CHARSET_TYPE_94): Deleted.
2921         (CHARSET_TYPE_94X94): Deleted.
2922         (CHARSET_TYPE_96): Deleted.
2923         (CHARSET_TYPE_96X96): Deleted.
2924         (CHARSET_TYPE_128): Deleted.
2925         (CHARSET_TYPE_128X128): Deleted.
2926         (CHARSET_TYPE_256): Deleted.
2927         (CHARSET_TYPE_256X256): Deleted.
2928         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2929         to inline function.
2930         (DECODE_MOJIKYO_2022): New inline function.
2931         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2932         `Vcharset_mojikyo_2022_1'.
2933
2934 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2935
2936         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2937         instead of `EQ'.
2938         (put_byte_table): Likewise.
2939         (char_id_table_equal): Use `get_byte_table' [new implementation].
2940
2941 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2942
2943         * mule-charset.c: Include <limits.h> in UTF-2000.
2944         (BT_UINT8_MIN): New macro in UTF-2000.
2945         (BT_UINT8_MAX): New macro in UTF-2000.
2946         (BT_UINT8_t): New macro in UTF-2000.
2947         (BT_UINT8_nil): New macro in UTF-2000.
2948         (BT_UINT8_unbound): New macro in UTF-2000.
2949         (INT_UINT8_P): New inline function in UTF-2000.
2950         (UINT8_VALUE_P): New inline function in UTF-2000.
2951         (UINT8_ENCODE): New inline function in UTF-2000.
2952         (UINT8_DECODE): New inline function in UTF-2000.
2953         (mark_uint8_byte_table): New function in UTF-2000.
2954         (print_uint8_byte_table): New function in UTF-2000.
2955         (uint8_byte_table_equal): New function in UTF-2000.
2956         (uint8_byte_table_hash): New function in UTF-2000.
2957         (make_uint8_byte_table): New function in UTF-2000.
2958         (uint8_byte_table_same_value_p): New function in UTF-2000.
2959         (BT_UINT16_MIN): New macro in UTF-2000.
2960         (BT_UINT16_MAX): New macro in UTF-2000.
2961         (BT_UINT16_t): New macro in UTF-2000.
2962         (BT_UINT16_nil): New macro in UTF-2000.
2963         (BT_UINT16_unbound): New macro in UTF-2000.
2964         (INT_UINT16_P): New inline function in UTF-2000.
2965         (UINT16_VALUE_P): New inline function in UTF-2000.
2966         (UINT16_ENCODE): New inline function in UTF-2000.
2967         (UINT16_DECODE): New inline function in UTF-2000.
2968         (UINT8_TO_UINT16): New inline function in UTF-2000.
2969         (mark_uint16_byte_table): New function in UTF-2000.
2970         (print_uint16_byte_table): New function in UTF-2000.
2971         (uint16_byte_table_equal): New function in UTF-2000.
2972         (uint16_byte_table_hash): New function in UTF-2000.
2973         (make_uint16_byte_table): New function in UTF-2000.
2974         (uint16_byte_table_same_value_p): New function in UTF-2000.
2975         (print_byte_table): New function in UTF-2000.
2976         (byte-table): Use `print_byte_table' as printer.
2977         (make_byte_table): Delete second argument `older'.
2978         (byte_table_same_value_p): New function in UTF-2000.
2979         (copy_byte_table): Deleted.
2980         (get_byte_table): New function in UTF-2000.
2981         (put_byte_table): New function in UTF-2000.
2982         (print_char_id_table): New function in UTF-2000.
2983         (char-id-table): Use `print_char_id_table' as printer.
2984         (make_char_id_table): Delete second argument `older'.
2985         (get_char_id_table): Use `get_byte_table [new implementation].
2986         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2987         implementation].
2988         (Ffind_char_attribute_table): New function in UTF-2000.
2989         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2990         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2991         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2992         (syms_of_mule_charset): Add new function
2993         `find-char-attribute-table' in UTF-2000.
2994
2995         * lrecord.h (enum lrecord_type): Add
2996         `lrecord_type_uint16_byte_table' and
2997         `lrecord_type_uint8_byte_table'.
2998
2999         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3000         (Lisp_Uint8_Byte_Table): New type.
3001         (XUINT8_BYTE_TABLE): New macro.
3002         (XSETUINT8_BYTE_TABLE): New macro.
3003         (UINT8_BYTE_TABLE_P): New macro.
3004         (GC_UINT8_BYTE_TABLE_P): New macro.
3005         (struct Lisp_Uint16_Byte_Table): New structure.
3006         (Lisp_Uint16_Byte_Table): New type.
3007         (XUINT16_BYTE_TABLE): New macro.
3008         (XSETUINT16_BYTE_TABLE): New macro.
3009         (UINT16_BYTE_TABLE_P): New macro.
3010         (GC_UINT16_BYTE_TABLE_P): New macro.
3011
3012 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3013
3014         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3015         (Vcharacter_ideographic_strokes_table): Deleted.
3016         (Vcharacter_total_strokes_table): Deleted.
3017         (Vcharacter_morohashi_daikanwa_table): Deleted.
3018         (Vcharacter_decomposition_table): Deleted.
3019         (Qname): Deleted because it is duplicated.
3020         (Qideographic_radical): Deleted.
3021         (Qideographic_strokes): Deleted.
3022         (Qtotal_strokes): Deleted.
3023         (Qmorohashi_daikanwa): Deleted.
3024         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3025         `ideographic-radical', `ideographic-strokes', `total-strokes',
3026         `morohashi-daikanwa' and `->decomposition'.
3027         (Fget_char_attribute): Likewise.
3028         (Fput_char_attribute): Likewise; use `make-vector' instead of
3029         `make_older_vector' for `->decomposition' value.
3030         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3031         `ideograph-daikanwa'.
3032         (syms_of_mule_charset): Delete builtin symbols `name',
3033         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3034         `morohashi-daikanwa'.
3035         (vars_of_mule_charset): Don't setup
3036         `Vcharacter_ideographic_radical_table',
3037         `Vcharacter_ideographic_strokes_table',
3038         `Vcharacter_total_strokes_table',
3039         `Vcharacter_morohashi_daikanwa_table' and
3040         `Vcharacter_decomposition_table'.
3041
3042 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3043
3044         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3045         `make_older_vector', `make_vector_newer_1' and
3046         `make_vector_newer'.
3047
3048         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3049         `make_older_vector' and `make_vector_newer'.
3050
3051         * config.h.in (HAVE_GGC): New macro.
3052
3053 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3054
3055         * mule-charset.c (struct char_attribute_list_closure): New
3056         structure in UTF-2000.
3057         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3058         (Fchar_attribute_list): Likewise.
3059         (Fset_charset_mapping_table): Use `make_vector_newer'.
3060         (Fdecode_builtin_char): New function in UTF-2000.
3061         (syms_of_mule_charset): Add new function `char-attribute-list' and
3062         `decode-builtin-char' in UTF-2000.
3063
3064         * lisp.h (make_vector_newer): New prototype.
3065
3066         * alloc.c (make_vector_newer_1): New function.
3067         (make_vector_newer): New function.
3068
3069 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3070
3071         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3072         50100)'.
3073
3074 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3075
3076         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3077         (Vcharacter_attribute_table): Deleted.
3078         (Vcharacter_name_table): Deleted.
3079         (put_char_attribute): Deleted.
3080         (remove_char_attribute): Deleted.
3081         (struct char_attribute_alist_closure): New structure.
3082         (add_char_attribute_alist_mapper): New function.
3083         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3084         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3085         (Fget_char_attribute): Likewise.
3086         (Fput_char_attribute): Likewise.
3087         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3088         of `remove_char_attribute'.
3089         (Fdefine_char): Return character.
3090         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3091         and `Vcharacter_name_table'.
3092         (complex_vars_of_mule_charset): Likewise
3093         `Vchar_attribute_hash_table'.
3094
3095 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * character.h (CHARC_CHARSET): New macro.
3098         (CHARC_CHARSET_ID): New macro.
3099         (CHARC_CODE_POINT): New macro.
3100         (CHARC_COLUMNS): New macro.
3101         (CHARC_TO_CHAR): New inline function.
3102         (CHARC_EQ): New inline function.
3103         (CHARC_ASCII_EQ): New inline function.
3104         (CHARC_IS_SPACE): New inline function.
3105         (ASCII_TO_CHARC): New inline function.
3106
3107         * char-ucs.h (encode_char_2): Deleted.
3108         (ENCODE_CHAR): Use `encode_char_1' again.
3109         (breakup_char_1): Likewise.
3110         (CHAR_TO_CHARC): New inline function.
3111
3112         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3113
3114 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3117         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3118         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3119         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3120         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3121         `CHARC_IS_SPACE'.
3122         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3123
3124         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3125         `CHARC_CODE_POINT'.
3126         (x_output_display_block): Use `CHARC_CHARSET' and
3127         `CHARC_ASCII_EQ'.
3128
3129         * redisplay-tty.c (tty_output_display_block): Use
3130         `CHARC_ASCII_EQ'.
3131         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3132
3133         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3134
3135         * insdel.c (find_charsets_in_charc_string): Use
3136         `CHARC_CHARSET_ID'.
3137         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3138         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3139         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3140         (convert_charc_string_into_malloced_string): Likewise.
3141
3142 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3143
3144         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3145         instead of <Emchar_dynarr *> for buf; use
3146         `convert_bufbyte_string_into_charc_dynarr' instead of
3147         `convert_bufbyte_string_into_emchar_dynarr'; use
3148         `find_charsets_in_charc_string' instead of
3149         `find_charsets_in_emchar_string'.
3150
3151         * redisplay.h:
3152         - Include "character.h".
3153         (struct rune): New member `cglyph'; delete member `chr'.
3154
3155         * redisplay.c (redisplay_text_width_charc_string): New function;
3156         delete `redisplay_text_width_emchar_string'.
3157         (rtw_charc_dynarr): New variable; renamed from
3158         `rtw_emchar_dynarr'.
3159         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3160         `rtw_emchar_dynarr'; use
3161         `convert_bufbyte_string_into_charc_dynarr' instead of
3162         `convert_bufbyte_string_into_emchar_dynarr'; use
3163         `redisplay_text_width_charc_string' instead of
3164         `redisplay_text_width_emchar_string'.
3165         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3166         instead of `rtw_emchar_dynarr'; use
3167         `convert_bufbyte_string_into_charc_dynarr' instead of
3168         `convert_bufbyte_string_into_emchar_dynarr'.
3169         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3170         `redisplay_text_width_charc_string' instead of
3171         `redisplay_text_width_emchar_string'.
3172         (create_text_block): Modify for <struct rune> change.
3173         (generate_formatted_string_db): Likewise.
3174         (create_string_text_block): Likewise.
3175         (pixel_to_glyph_translation): Likewise.
3176
3177         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3178         instead of <const Emchar *>.
3179         (x_text_width): Likewise.
3180         (x_output_display_block): Use <Charc_dynarr *> instead
3181         <Emchar_dynarr *>; modify for <structure rune> change.
3182         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3183         *>.
3184
3185         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3186         <const Emchar *>; use `charc_string_displayed_columns' instead of
3187         `emchar_string_displayed_columns'.
3188         (tty_output_display_block): Use <Charc_dynarr *> instead of
3189         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3190         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3191         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3192         `tty_output_emchar_dynarr_dynarr'.
3193         (tty_output_charc_dynarr): New function; delete
3194         `tty_output_charc_dynarr'.
3195
3196         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3197         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3198         <Emchar_dynarr *> for buf; use
3199         `convert_bufbyte_string_into_charc_dynarr' instead of
3200         `convert_bufbyte_string_into_emchar_dynarr'.
3201
3202         * frame.c (title_string_charc_dynarr): New variable; renamed from
3203         `title_string_emchar_dynarr'.
3204         (generate_title_string): Use `title_string_charc_dynarr' instead
3205         of `title_string_emchar_dynarr'; use
3206         `convert_charc_string_into_malloced_string' instead of
3207         `convert_emchar_string_into_malloced_string'.
3208         (init_frame): Use `title_string_charc_dynarr' instead of
3209         `title_string_emchar_dynarr'.
3210
3211         * console.h:
3212         - Include "character.h".
3213         (struct console_methods): Use <const Charc *> instead of <const
3214         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3215         <Emchar_dynarr *> in output_string_method.
3216
3217         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3218         <Emchar_dynarr *>.
3219
3220         * console-stream.c (stream_text_width): Use <const Charc *>
3221         instead of <const Emchar *>.
3222
3223         * character.h (Charc_dynarr): New type.
3224
3225         * char-ucs.h (structure Charc): New structure; define new type
3226         `Charc'.
3227
3228         * char-lb.h (DECODE_CHAR): New inline function.
3229         (encode_char_1): New inline function.
3230         (ENCODE_CHAR): New macro.
3231         (structure Charc): New structure; define new type `Charc'.
3232
3233         * char-1byte.h (Vcharset_control_1): New macro.
3234         (Vcharset_latin_iso8859_1): New macro.
3235         (DECODE_CHAR): New inline function.
3236         (encode_char_1): New inline function.
3237         (ENCODE_CHAR): New macro.
3238         (structure Charc): New structure; define new type `Charc'.
3239
3240         * insdel.c (find_charsets_in_charc_string): New function; delete
3241         `find_charsets_in_emchar_string'.
3242         (charc_string_displayed_columns): New function; delete
3243         `emchar_string_displayed_columns'.
3244         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3245         `convert_bufbyte_string_into_emchar_dynarr'.
3246         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3247         `convert_charc_string_into_bufbyte_dynarr'.
3248         (convert_charc_string_into_malloced_string): New function; delete
3249         `convert_charc_string_into_malloced_string'.
3250
3251         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3252         `find_charsets_in_emchar_string'.
3253         (charc_string_displayed_columns): New prototype; delete
3254         `emchar_string_displayed_columns'.
3255         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3256         `convert_charc_string_into_bufbyte_dynarr'.
3257         (convert_charc_string_into_malloced_string): New prototype; delete
3258         `convert_charc_string_into_malloced_string'.
3259
3260 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3263
3264 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3265
3266         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3267
3268         * char-ucs.h: Use <short> for <Charset_ID>.
3269
3270         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3271         <Charset_ID>.
3272
3273 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3274
3275         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3276         to 0.16.
3277
3278 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3279
3280         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3281         variable.
3282         (Qmorohashi_daikanwa): New variable.
3283         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3284         for `morohashi-daikanwa' attribute.
3285         (Fget_char_attribute): Likewise.
3286         (Fput_char_attribute): Likewise.
3287         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3288         has the same value of `ideograph-daikanwa'.
3289         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3290         (vars_of_mule_charset): Setup
3291         `Vcharacter_morohashi_daikanwa_table'.
3292
3293 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294
3295         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3296         attributes.
3297         (add_charset_to_list_mapper): Add `key' instead of
3298         `XCHARSET_NAME (value)' to return aliases.
3299
3300 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3301
3302         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3303         variable.
3304         (Vcharacter_ideographic_strokes_table): New variable.
3305         (Qideographic_radical): New variable.
3306         (Qideographic_strokes): New variable.
3307         (Fchar_attribute_alist): Use
3308         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3309         attribute; use `Vcharacter_ideographic_strokes_table' for
3310         `ideographic-strokes' attribute.
3311         (Fget_char_attribute): Likewise.
3312         (Fput_char_attribute): Likewise.
3313         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3314         `ideographic-strokes'.
3315         (vars_of_mule_charset): Setup
3316         `Vcharacter_ideographic_radical_table' and
3317         `Vcharacter_ideographic_strokes_table'.
3318
3319 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3320
3321         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3322         (Qtotal_strokes): New variable.
3323         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3324         `total-strokes' attribute.
3325         (Fget_char_attribute): Likewise.
3326         (Fput_char_attribute): Likewise.
3327         (syms_of_mule_charset): Add new symbol `total-strokes'.
3328         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3329
3330 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3333         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3334         are found.
3335         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3336         `->decomposition' attribute.
3337         (Fput_char_attribute): Likewise.
3338         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3339
3340 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3341
3342         * mule-charset.c (decoding_table_check_elements): New function.
3343         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3344
3345 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3346
3347         * mule-charset.c (Fset_charset_mapping_table): Use
3348         `put_char_ccs_code_point'.
3349
3350 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3351
3352         * mule-charset.c (decoding_table_put_char): New inline function.
3353         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3354
3355 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3356
3357         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3358         (XCHARSET_BYTE_SIZE): New macro.
3359         (decoding_table_remove_char): New inline function.
3360         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3361         `decoding_table_remove_char'.
3362         (remove_char_ccs): Use `decoding_table_remove_char'.
3363         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3364
3365 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * mule-charset.c (Vcharacter_name_table): New variable.
3368         (Qname): New variable.
3369         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3370         attribute.
3371         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3372         `Vcharacter_name_table' for `name' attribute.
3373         (Fremove_char_attribute): Use function `remove_char_ccs'.
3374         (put_char_ccs_code_point): New function.
3375         (remove_char_ccs): New function.
3376         (syms_of_mule_charset): Add new symbol `name'.
3377         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3378
3379 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380
3381         * mule-charset.c (make_byte_table): Add new argument `older'.
3382         (make_char_id_table): Likewise.
3383         (copy_char_id_table): Comment out because it is not used.
3384         (put_char_id_table): Modify for `make_byte_table'.
3385         (Fput_char_attribute): Make encoding_table as older object;
3386         inherit older bit of `Vcharacter_composition_table'.
3387         (mark_charset): Don't mark `cs->encoding_table'.
3388         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3389         normal object; make `Vcharacter_composition_table' as an older
3390         object; delete staticpro for `Vcharacter_composition_table'; make
3391         `Vcharacter_variant_table' as a normal object.
3392
3393         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3394         (mark_object): Don't check older object in UTF-2000.
3395
3396         * lrecord.h (struct lrecord_header): Add new member `older' in
3397         UTF-2000.
3398         (set_lheader_implementation): Setup `SLI_header->older' in
3399         UTF-2000.
3400         (set_lheader_older_implementation): New macro in UTF-2000.
3401         (OLDER_RECORD_P): New macro in UTF-2000.
3402         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3403         (alloc_older_lcrecord): New prototype in UTF-2000.
3404         (alloc_older_lcrecord_type): New macro in UTF-2000.
3405
3406 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3407
3408         * mule-charset.c (byte_table_description): Use
3409         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3410         (char_id_table_description): Delete bogus `, 1'.
3411         (Fget_char_attribute): Refer encoding_table of each coded-charset
3412         to get value of coded-charset attribute of a character.
3413         (Fput_char_attribute): Use `make_older_vector' instead of
3414         `make_vector'; use encoding_table of each coded-charset to store
3415         value of coded-charset attribute of a character.
3416         (Fremove_char_attribute): Use encoding_table of each coded-charset
3417         to store value of coded-charset attribute of a character.
3418         (mark_charset): Mark `cs->encoding_table'; don't mark
3419         `cs->decoding_table'.
3420         (charset_description): Add description of new member
3421         `encoding_table'.
3422         (make_charset): Initialize `encoding_table'.
3423
3424         * char-ucs.h (struct Lisp_Charset): Add new member
3425         `encoding_table'.
3426         (CHARSET_ENCODING_TABLE): New macro.
3427         (XCHARSET_ENCODING_TABLE): New macro.
3428         (charset_code_point): New implementation.
3429         (encode_char_1): Likewise.
3430
3431         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3432         (disksave_object_finalization_1): Call finalizers of
3433         `all_older_lcrecords' in UTF-2000.
3434         (make_older_vector): New function in UTF-2000.
3435         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3436         UTF-2000.
3437
3438         * lisp.h (make_older_vector): New prototype in UTF-2000.
3439
3440 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3441
3442         * lrecord.h (enum lrecord_type): Rename
3443         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3444
3445         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3446         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3447         `get_char_code_table'.
3448
3449         * mule-charset.c (mark_char_id_table): Renamed from
3450         `mark_char_code_table'.
3451         (char_id_table_equal): Renamed from `char_code_table_equal'.
3452         (char_id_table_hash): Renamed from `char_code_table_hash'.
3453         (make_char_id_table): Renamed from `make_char_code_table'.
3454         (copy_char_id_table): Renamed from `copy_char_code_table'.
3455         (get_char_id_table): Renamed from `get_char_code_table'.
3456         (put_char_id_table): Renamed from `put_char_code_table'.
3457         (to_char_id): Renamed from `to_char_code'.
3458
3459         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3460         `Lisp_Char_Code_Table'.
3461         (char_id_table): Renamed from `char_code_table'.
3462         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3463         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3464         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3465         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3466         (get_char_id_table): Renamed from `get_char_code_table'.
3467
3468 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3469
3470         * lrecord.h (enum lrecord_type): Rename
3471         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3472
3473         * mule-charset.c (mark_byte_table): Renamed from
3474         `mark_char_byte_table'.
3475         (byte_table_equal): Renamed from `char_byte_table_equal'.
3476         (byte_table_hash): Renamed from `byte_table_hash'.
3477         (make_byte_table): Renamed from `make_byte_table'.
3478         (copy_byte_table): Renamed from `copy_char_byte_table'.
3479
3480         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3481         `Lisp_Char_Byte_Table'.
3482         (byte_table): Renamed from `char_byte_table'.
3483         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3484         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3485         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3486         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3487
3488 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3491         (dfc_convert_to_internal_format): Likewise.
3492         
3493         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3494         * text-coding.c (Fcoding_system_alias_p): New function.
3495         * text-coding.c (Fcoding_system_aliasee): New function.
3496         * text-coding.c (append_suffix_to_symbol): New function.
3497         * text-coding.c (dangling_coding_system_alias_p): New function.
3498         * text-coding.c (Ffind_coding_system):
3499         * text-coding.c (Fcopy_coding_system):
3500         * text-coding.c (encode_coding_no_conversion):
3501         * text-coding.c (syms_of_file_coding):
3502         * text-coding.c (vars_of_file_coding):
3503         Rewrite coding system alias code.
3504         Allow nested aliases, like symbolic links.
3505         Allow redefinition of coding system aliases.
3506         Prevent existence of dangling coding system aliases.
3507         Eliminate convert_to_external_format.
3508         Eliminate convert_to_internal_format.
3509         
3510         * text-coding.c: Change enum eol_type to eol_type_t.
3511
3512 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3513
3514         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3515         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3516
3517         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3518         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3519
3520 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3521
3522         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3523         `ideograph-daikanwa'.
3524
3525         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3526         (Vcharset_ucs_bmp): Likewise.
3527         (Vcharset_mojikyo): Add new extern variable definition.
3528         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3529         (Vcharset_latin_iso8859_3): Likewise.
3530         (Vcharset_latin_iso8859_4): Likewise.
3531         (Vcharset_latin_iso8859_9): Likewise.
3532         (Vcharset_latin_viscii_lower): Likewise.
3533         (Vcharset_latin_viscii_upper): Likewise.
3534         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3535         `mojikyo' code-point is used to decode.
3536         (encode_char_2): New function [to convert `mojikyo' code-point to
3537         Mojikyo font encoding].
3538         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3539         (breakup_char_1): Likewise.
3540         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3541
3542 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3543
3544         * text-coding.c (Fmake_coding_system): Add document about
3545         `disable-composition' property.
3546
3547 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3548
3549         * text-coding.c (Qdisable_composition): New variable; delete
3550         `Qcomposite'.
3551         (Fmake_coding_system): Add new property `disable-composite';
3552         delete property `composite'.
3553         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3554         instead of `!CODING_SYSTEM_COMPOSITE'.
3555         (syms_of_file_coding): Add new symbol `disable-composition';
3556         delete symbol `composite'.
3557
3558         * file-coding.h (struct Lisp_Coding_System): Add
3559         `disable_composition'; delete `enable_composition'.
3560         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3561         `CODING_SYSTEM_COMPOSITE'.
3562         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3563         `XCODING_SYSTEM_COMPOSITE'.
3564
3565 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3566
3567         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3568         to 0.15.
3569
3570 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3571
3572         * text-coding.c (Qcomposite): New variable.
3573         (Fmake_coding_system): Add new property `composite'.
3574         (struct decoding_stream): Add `combined_char_count',
3575         `combined_chars' and `combining_table' in UTF-2000.
3576         (COMPOSE_FLUSH_CHARS): New macro.
3577         (COMPOSE_ADD_CHAR): New macro.
3578         (reset_decoding_stream): Reset `str->combined_char_count' and
3579         `str->combining_table' in UTF-2000.
3580         (decode_coding_iso2022): Modify for character-decomposition.
3581         (syms_of_file_coding): Add new symbol `composite'.
3582
3583 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3584
3585         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3586         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3587         of `Vcharacter_composition_table' if `->decomposition' property
3588         has only 1 element.
3589         (Qlatin_tcvn5712): New variable.
3590         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3591         (complex_vars_of_mule_charset): Add new coded-charset
3592         `latin-tcvn5712'.
3593
3594         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3595
3596 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3597
3598         * file-coding.h (struct Lisp_Coding_System): Add
3599         `enable_composition'.
3600         (CODING_SYSTEM_COMPOSITE): New macro.
3601         (XCODING_SYSTEM_COMPOSITE): New macro.
3602
3603 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3604
3605         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3606
3607 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3608
3609         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3610         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3611
3612 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3613
3614         * mule-charset.c (Vcharset_mojikyo): New variable.
3615         (Fdefine_char): Don't use coded-charset which does not have
3616         non-builtin character range to allocate character-id.
3617         (Qmojikyo): New variable.
3618         (syms_of_mule_charset): Add new symbol `mojikyo'.
3619         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3620
3621         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3622         (LEADING_BYTE_MOJIKYO): New macro.
3623         (MIN_CHAR_MOJIKYO): New macro.
3624         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3625         (MAX_CHAR_MOJIKYO): New macro.
3626
3627 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3628
3629         * mule-charset.c (remove_char_attribute): Fixed.
3630
3631 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3632
3633         * mule-charset.c (remove_char_attribute): New function.
3634         (Fremove_char_attribute): New function.
3635         (encode_builtin_char_1): Comment out builtin-support for
3636         greek-iso8859-7 and cyrillic-iso8859-5.
3637         (Fdecode_char): Check `code' is an integer.
3638         (syms_of_mule_charset): Add `remove-char-attribute'.
3639         (MIN_CHAR_GREEK): Deleted.
3640         (MAX_CHAR_GREEK): Likewise.
3641         (MIN_CHAR_CYRILLIC): Likewise.
3642         (MAX_CHAR_CYRILLIC): Likewise.
3643         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3644         MAX_CHAR_GREEK for `greek-iso8859-7'.
3645
3646         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3647         (MAX_CHAR_GREEK): Likewise.
3648         (MIN_CHAR_CYRILLIC): Likewise.
3649         (MAX_CHAR_CYRILLIC): Likewise.
3650
3651 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3652
3653         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3654         format is used without `ucs' property.
3655         (Fdecode_char): Fix problem with GR representation.
3656         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3657         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3658
3659 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3660
3661         * mule-charset.c (make_builtin_char): New function.
3662         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3663         (Fset_charset_mapping_table): Modify for new representation of
3664         code-point.
3665         (Fdecode_char): New function.
3666         (syms_of_mule_charset): Add new builtin function `decode-char' in
3667         UTF-2000.
3668
3669         * char-ucs.h (make_builtin_char): New prototype.
3670         (DECODE_CHAR): New inline function.
3671         (MAKE_CHAR): Use `DECODE_CHAR'.
3672
3673 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3674
3675         * text-coding.c (parse_charset_conversion_specs): Use
3676         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3677         `XCHARSET_TYPE'.
3678         (iso2022_designate): Likewise.
3679
3680         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3681         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3682
3683         * mule-charset.c (Vcharset_ucs): New variable.
3684         (print_charset): Change design; use `CHARSET_CHARS' and
3685         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3686         (make_charset): Change signature to specify `chars' and
3687         `dimension' instead of `type'.
3688         (range_charset_code_point): Modify for 256^n-set.
3689         (encode_builtin_char_1): Encode as `ucs' in default.
3690         (Fmake_charset): Modify for `make_charset'.
3691         (Fmake_reverse_direction_charset): Likewise.
3692         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3693         UTF-2000.
3694         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3695         for `make_charset'.
3696
3697         * char-ucs.h (Vcharset_ucs): New variable.
3698         (LEADING_BYTE_UCS): New macro.
3699         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3700         and `chars' to `unsigned short' from `unsigned int'.
3701         (CHARSET_TYPE): Deleted.
3702         (XCHARSET_TYPE): Deleted.
3703
3704 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3705
3706         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3707
3708         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3709         (ENCODE_CHAR): New macro.
3710
3711 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3712
3713         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3714         to 0.14 (Kawachi-Katakami).
3715
3716 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3717
3718         * text-coding.c (char_encode_shift_jis): Modify for
3719         `charset_code_point'.
3720         (char_encode_iso2022): Likewise.
3721
3722         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3723         (integer) instead of list of <Lisp_Object>s (integers) as the
3724         format of code-point of a coded-charset.
3725         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3726         (encode_builtin_char_1): New function; delete
3727         `split_builtin_char'.
3728         (charset_code_point): Return <int> instead of <Lisp_Object>.
3729         (Fsplit_char): Don't use `SPLIT_CHAR'.
3730
3731         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3732         prototype for `split_builtin_char'.
3733         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3734         (charset_code_point): Likewise.
3735         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3736         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3737
3738 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3739
3740         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3741         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3742
3743 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3744
3745         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3746
3747         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3748         (MAX_CHAR_OBS_94x94): Deleted.
3749
3750 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3753
3754         * char-ucs.h (MAX_CHAR_BMP): New macro.
3755
3756 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3757
3758         * text-coding.c: Sync with r21-2-24.
3759
3760 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3761
3762         * file-coding.c: Modify for UTF-2000.
3763
3764 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3765
3766         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3767         to 0.13 (Takaida).
3768
3769 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3770
3771         * mule-charset.c (split_builtin_char): Delete builtin support for
3772         `katakana-jisx0201'.
3773         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3774         BMP area in builtin representation.
3775
3776         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3777         `Vcharset_katakana_jisx0201'.
3778
3779 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3780
3781         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3782         (Qisolated): New variable.
3783         (Qinitial): New variable.
3784         (Qmedial): New variable.
3785         (Qfinal): New variable.
3786         (Qvertical): New variable.
3787         (Qsmall): New variable.
3788         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3789         `Qvertical' and `Qsmall'.
3790         (Qmojikyo_pj_[1 .. 21]): New variable.
3791         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3792         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3793         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3794         .. 21]'.
3795
3796 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3797
3798         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3799         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3800         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3801
3802 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3803
3804         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3805         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3806         BMP.
3807         (Qjapanese_jisx0208_1990): New variable.
3808         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3809         (complex_vars_of_mule_charset): Add new coded-charset
3810         `japanese-jisx0208-1990'.
3811
3812         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3813         (MIN_CHAR_JIS_X0208_1990): New macro.
3814         (MAX_CHAR_JIS_X0208_1990): New macro.
3815
3816 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3817
3818         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3819         coded-charset is not found.
3820
3821 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3822
3823         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3824         (Fdefine_char): Use `Fmake_char'.
3825
3826 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3827
3828         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3829         (Vcharset_hiragana_jisx0208): Deleted.
3830         (Vcharset_katakana_jisx0208): Deleted.
3831         (Qideograph_daikanwa): New variable.
3832         (Qhiragana_jisx0208): Deleted.
3833         (Qkatakana_jisx0208): Deleted.
3834         (split_builtin_char): Split `ideograph-daikanwa'.
3835         (Fsplit_char): New implementation for UTF-2000.
3836         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3837         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3838         (complex_vars_of_mule_charset): Add new coded-charset
3839         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3840         `katakana-jisx0208'.
3841
3842         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3843         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3844         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3845         (MIN_CHAR_DAIKANWA): New macro.
3846         (MAX_CHAR_DAIKANWA): New macro.
3847
3848 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3849
3850         * data.c (Fstring_to_number): Don't recognize floating point if
3851         base is not 10.
3852
3853 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3854
3855         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3856
3857 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3858
3859         * mule-charset.c (Qsquare): New variable.
3860         (to_char_code): Add `Qsquare'.
3861         (syms_of_mule_charset): Add new symbol `square'.
3862
3863 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * mule-charset.c (Qcircle): New variable.
3866         (to_char_code): Add `Qcircle'.
3867         (syms_of_mule_charset): Add new symbol `circle'.
3868
3869 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3870
3871         * mule-charset.c (Qfont): New variable.
3872         (to_char_code): Add `Qfont'.
3873         (syms_of_mule_charset): Add new symbol `font'.
3874
3875 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3876
3877         * mule-charset.c (Qsub): New variable.
3878         (to_char_code): Add `Qsub'.
3879         (syms_of_mule_charset): Add new symbol `sub'.
3880
3881 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3882
3883         * mule-charset.c (Fput_char_attribute): Convert each element of
3884         VALUE to GL position if ATTRIBUTE is a GR-set,
3885
3886 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3887
3888         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3889         coded-charset is a GR-set.
3890
3891 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3892
3893         * mule-charset.c (Fput_char_attribute): Check each element of
3894         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3895
3896 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3897
3898         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3899         UTF-2000.
3900         (Qethiopic_ucs): New variable in UTF-2000.
3901         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3902         (complex_vars_of_mule_charset): Add new coded-charset
3903         `ethiopic-ucs' in UTF-2000.
3904
3905         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3906         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3907         9)'.
3908         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3909         10)'.
3910         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3911
3912 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3913
3914         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3915         `ascii'.
3916
3917 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3918
3919         * mule-charset.c (Vcharacter_variant_table): New variable.
3920         (Q_ucs): New variable.
3921         (Fchar_variants): New function.
3922         (Fput_char_attribute): Register `->ucs' value to
3923         `Vcharacter_variant_table'.
3924         (syms_of_mule_charset): Add new function `char-variants' and new
3925         symbol `->ucs'.
3926         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3927
3928 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3929
3930         * mule-charset.c (get_char_code_table): Allow negative character
3931         code.
3932         (put_char_code_table): Likewise.
3933         (Vcharacter_composition_table): New variable.
3934         (Q_decomposition): New variable.
3935         (Qwide): New variable.
3936         (Qnarrow): New variable.
3937         (Qcompat): New variable.
3938         (QnoBreak): New variable.
3939         (Qsuper): New variable.
3940         (Qfraction): New variable.
3941         (to_char_code): New function.
3942         (Fget_composite_char): New function.
3943         (Fput_char_attribute): Register `->decomposition' value to
3944         `Vcharacter_composition_table'.
3945         (syms_of_mule_charset): Add new function `get-composite-char', new
3946         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3947         `super' and `fraction'.
3948         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3949
3950 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3951
3952         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3953         character; copy the return value.
3954
3955 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3956
3957         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3958
3959         * mule-charset.c (range_charset_code_point): Must use make_int.
3960         (split_builtin_char): New function.
3961
3962 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3963
3964         * mule-charset.c (char_byte_table): Change name from
3965         "char-code-table" to "char-byte-table".
3966         (mark_char_code_table): New function.
3967         (char_code_table_equal): New function.
3968         (char_code_table_hash): New function.
3969         (char_code_table_description): New constant.
3970         (char_code_table): New type.
3971         (make_char_code_table): New function.
3972         (copy_char_code_table): New function.
3973         (get_char_code_table): Modify for `char_code_table' type.
3974         (put_char_code_table): Likewise.
3975         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3976         (Kashiwara).
3977
3978         * char-ucs.h (char_code_table): New type.
3979         (XCHAR_CODE_TABLE): New macro.
3980         (XSETCHAR_CODE_TABLE): New macro.
3981         (CHAR_CODE_TABLE_P): New macro.
3982         (GC_CHAR_CODE_TABLE_P): New macro.
3983         (struct Lisp_Char_Code_Table): New structure.
3984
3985 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3986
3987         * mule-charset.c (Fmake_charset): Setup byte_offset for
3988         {94|96}^n-set.
3989
3990 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3991
3992         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3993         character.
3994
3995 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3996
3997         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3998         is found.
3999
4000 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4001
4002         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4003         charset, it is regarded as a charset.
4004         (put_char_attribute): New function in UTF-2000.
4005         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4006         charset, mapping-table of the charset is modified.
4007         (Fdefine_char): New function in UTF-2000.
4008         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4009         `Fput_char_attribute'.
4010         (syms_of_mule_charset): Add new function `define-char' and new
4011         symbol `ucs' in UTF-2000.
4012         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4013
4014 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4015
4016         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4017         non-UTF-2000 configuration.
4018
4019 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4022         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4023
4024         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4025         deleted.
4026         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4027         (Fset_charset_mapping_table): Likewise.
4028
4029         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4030         (CHARSET_ENCODING_TABLE): Delete.
4031         (XCHARSET_ENCODING_TABLE): Delete.
4032         (charset_code_point): New interface.
4033
4034 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4035
4036         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4037         instead of `charset_get_byte1' and `charset_get_byte2'.
4038
4039         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4040         (charset_get_byte2): Deleted.
4041
4042 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4043
4044         * char-ucs.h (SPLIT_CHAR): New inline function.
4045         (breakup_char_1): Use `SPLIT_CHAR'.
4046
4047         * mule-charset.c (range_charset_code_point): New function.
4048         (charset_code_point): New function.
4049
4050         * char-ucs.h (range_charset_code_point): New interface.
4051         (breakup_char_1): Use `range_charset_code_point'.
4052
4053 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4054
4055         * mule-charset.c (Fmake_charset): Delete unused local variable
4056         `code_offset'.
4057
4058         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4059         (breakup_char_1): Find a charset and code-point in
4060         `Vcharacter_attribute_table'.
4061
4062 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4063
4064         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4065         to 0.10 (Yao).
4066
4067 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4068
4069         * mule-charset.c (Vcharacter_attribute_table): New variable.
4070         (Fchar_attribute_alist): New function.
4071         (Fget_char_attribute): New function.
4072         (Fput_char_attribute): New function.
4073         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4074         too.
4075         (syms_of_mule_charset): Add new function `char-attribute-alist',
4076         `get-char-attribute' and `put-char-attribute'.
4077         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4078
4079 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4080
4081         * mule-charset.c (Fmake_charset): Just use
4082         `get_unallocated_leading_byte'.
4083
4084         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4085         sets; don't use final-byte based number for private sets.
4086
4087 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4088
4089         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4090         integer.
4091
4092 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4093
4094         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4095         to 0.9.
4096
4097 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4098
4099         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4100         of `CHAR_LEADING_BYTE' in UTF-2000.
4101
4102         * insdel.c (find_charsets_in_bufbyte_string): Use
4103         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4104         (find_charsets_in_emchar_string): Likewise.
4105
4106         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4107         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4108
4109         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4110         (CHAR_CHARSET_ID): New macro.
4111
4112 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4113
4114         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4115         charset-id - MIN_LEADING_BYTE.
4116         (put_char_table): Likewise.
4117
4118 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4119
4120         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4121         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4122         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4123         (CHARSET_ID_OFFSET): New macro.
4124         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4125         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4126         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4127         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4128         4).
4129         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4130         5).
4131         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4132         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4133         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4134         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4135         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4136
4137 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4138
4139         * mule-charset.c (next_allocated_leading_byte): New variable in
4140         UTF-2000.
4141         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4142         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4143         (get_unallocated_leading_byte): Simply use
4144         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4145         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4146         UTF-2000.
4147
4148         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4149         (MAX_LEADING_BYTE_PRIVATE): New macro.
4150         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4151         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4152
4153 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4154
4155         * mule-charset.c (Fmake_charset): Allocate final-byte based
4156         charset-id for 94-set, 96-set and 94x94-set.
4157
4158 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4159
4160         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4161         ambiguous `else'.
4162         (Fmake_charset): Likewise.
4163         (complex_vars_of_mule_charset): Modify the font registry of
4164         `ucs-bmp' not to match `Ethiopic-Unicode'.
4165
4166 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4167
4168         * mule-charset.c (complex_vars_of_mule_charset): Add font
4169         registory of `ucs-bmp'.
4170
4171 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4174         coded-charsets in `default-coded-charset-priority-list' when
4175         breaking up a character.
4176
4177         * mule-charset.c (Vcharset_latin_viscii): New variable.
4178         (Qlatin_viscii): New variable.
4179         (make_charset): Don't use `decoding_table'.
4180         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4181         byte_offset.
4182         (Fset_charset_mapping_table): New implementation.
4183         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4184         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4185         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4186         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4187         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4188         charset `latin_viscii'.
4189
4190         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4191         (CHARSET_TYPE_94X94): Change to 1 from 2.
4192         (CHARSET_TYPE_96): Change to 2 from 1.
4193         (CHARSET_TYPE_128): New macro.
4194         (CHARSET_TYPE_128X128): Change to 5 from 4.
4195         (CHARSET_TYPE_256): New macro.
4196         (CHARSET_TYPE_256X256): Change to 7 from 5.
4197         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4198
4199 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4200
4201         * text-coding.c (char_encode_shift_jis): Refer
4202         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4203         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4204
4205         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4206         (char_byte_table_equal): New function in UTF-2000.
4207         (char_byte_table_hash): New function in UTF-2000.
4208         (char_byte_table_description): New constant in UTF-2000.
4209         (char_byte_table): New type in UTF-2000.
4210         (make_char_byte_table): New function in UTF-2000.
4211         (copy_char_byte_table): New function in UTF-2000.
4212         (make_char_code_table): New macro in UTF-2000.
4213         (get_char_code_table): New function in UTF-2000.
4214         (put_char_code_table): New function in UTF-2000.
4215         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4216         (charset_description): Add setting in UTF-2000.
4217         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4218         `CHARSET_TO_BYTE1_TABLE(cs)'.
4219         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4220         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4221         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4222         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4223         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4224         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4225         `CHARSET_TO_BYTE2_TABLE(cs)'.
4226
4227         * char-ucs.h (char_byte_table): New type.
4228         (XCHAR_BYTE_TABLE): New macro.
4229         (XSETCHAR_BYTE_TABLE): New macro.
4230         (CHAR_BYTE_TABLE_P): New macro.
4231         (GC_CHAR_BYTE_TABLE_P): New macro.
4232         (struct Lisp_Char_Byte_Table): New structure.
4233         (get_char_code_table): New interface.
4234         (Emchar_to_byte_table): Deleted.
4235         (get_byte_from_character_table): Deleted.
4236         (struct Lisp_Charset): Add `encoding_table'; delete
4237         `to_byte1_table' and `to_byte2_table'.
4238         (CHARSET_ENCODING_TABLE): New macro.
4239         (CHARSET_TO_BYTE1_TABLE): Deleted.
4240         (CHARSET_TO_BYTE2_TABLE): Deleted.
4241         (XCHARSET_ENCODING_TABLE): New macro.
4242         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4243         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4244
4245 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4246
4247         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4248         `vietnamese-viscii-*'.
4249
4250 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4251
4252         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4253         (Qvietnamese_viscii_upper): New variable.
4254         (Fdefine_charset_alias): New function.
4255         (syms_of_mule_charset): Add new function `define-charset-alias'.
4256         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4257         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4258         `latin-viscii-*'.
4259
4260 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4261
4262         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4263         (MAX_CHAR_OBS_94x94): New macro.
4264         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4265         for 94x94 sets.
4266
4267         * mule-charset.c (put_byte_from_character_table): Change unit size
4268         from 128 to 256.
4269         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4270         not defined.
4271         (Fmake_reverse_direction_charset): Modify dummy argument of
4272         `make_charset' for non-UTF-2000 environment.
4273
4274 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4275
4276         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4277
4278         * mule-charset.c (destroy_byte_from_character_table): New macro.
4279         (latin_jisx0201_to_ucs): Deleted.
4280         (latin_iso8859_2_to_ucs): Deleted.
4281         (latin_iso8859_3_to_ucs): Deleted.
4282         (latin_iso8859_4_to_ucs): Deleted.
4283         (latin_iso8859_9_to_ucs): Deleted.
4284         (latin_viscii_lower_to_ucs): Deleted.
4285         (latin_viscii_upper_to_ucs): Deleted.
4286         (mark_charset): Mark `cs->decoding_table'.
4287         (Fcharset_mapping_table): Fix DOC-string.
4288         (Fset_charset_mapping_table): New function.
4289         (syms_of_mule_charset): Add nwe function
4290         `set-charset-mapping-table'.
4291         (complex_vars_of_mule_charset): Don't setup and use
4292         `latin_*_to_ucs'.
4293
4294 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4295
4296         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4297         charset.
4298
4299 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4302         (Vcharset_katakana_jisx0208): New variable.
4303         (Qhiragana_jisx0208): New variable.
4304         (Qkatakana_jisx0208): New variable.
4305         (make_charset): Add new argument `byte_offset'.
4306         (charset_get_byte1): Modify for new coded-charset definition; use
4307         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4308         `XCHARSET_BYTE_OFFSET'.
4309         (Fmake_charset): Modify for `make_charset'.
4310         (Fmake_reverse_direction_charset): Likewise.
4311         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4312         `katakana-jisx0208'.
4313         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4314         `.'  in font registry of charset `katakana-jisx0201',
4315         `latin-jisx0201', `vietnamese-viscii-lower' and
4316         `vietnamese-viscii-upper'; modify DOC-string of charset
4317         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4318         registry of charset `japanese-jisx0208' not to use font for JIS
4319         X0208:1990; add new charset `hiragana-jisx0208' and
4320         `katakana-jisx0208'.
4321
4322         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4323         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4324         (struct Lisp_Charset): Add `byte_offset'.
4325         (CHARSET_BYTE_OFFSET): New macro.
4326         (XCHARSET_UCS_MIN): New macro.
4327         (XCHARSET_UCS_MAX): New macro.
4328         (XCHARSET_CODE_OFFSET): New macro.
4329         (XCHARSET_BYTE_OFFSET): New macro.
4330         (MIN_CHAR_HIRAGANA): New macro.
4331         (MAX_CHAR_HIRAGANA): New macro.
4332         (MIN_CHAR_KATAKANA): New macro.
4333         (MAX_CHAR_KATAKANA): New macro.
4334         (MAKE_CHAR): Modify for new coded-charset definition; use
4335         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4336         `XCHARSET_BYTE_OFFSET'.
4337
4338 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4339
4340         * mule-charset.c (CHAR96): Deleted.
4341         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4342         <Lisp_Object>.
4343         (latin_iso8859_2_to_ucs): Likewise.
4344         (latin_iso8859_3_to_ucs): Likewise.
4345         (latin_iso8859_4_to_ucs): Likewise.
4346         (latin_iso8859_9_to_ucs): Likewise.
4347         (latin_viscii_lower_to_ucs): Likewise.
4348         (latin_viscii_upper_to_ucs): Likewise.
4349         (latin_tcvn5712_to_ucs): Commented out.
4350         (make_charset): Change type of argument `decoding_table' from
4351         <Emchar*> to <Lisp_Object> [vector of characters].
4352         (Fmake_charset): Modify for `make_charset'.
4353         (Fmake_reverse_direction_charset): Likewise.
4354         (Fcharset_mapping_table): New function in UTF-2000.
4355         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4356         UTF-2000.
4357         (complex_vars_of_mule_charset): Modify for type change of
4358         `*_to_ucs'; modify for `make_charset'.
4359
4360         * char-ucs.h (struct Lisp_Charset): Change type of
4361         `decoding_table' from <Emchar*> to <Lisp_Object>.
4362         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4363
4364 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4365
4366         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4367         error with non-UTF-2000-Mule.
4368
4369 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4370
4371         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4372         in lisp again].
4373         (Vcharset_chinese_cns11643_4): Likewise.
4374         (Vcharset_chinese_cns11643_5): Likewise.
4375         (Vcharset_chinese_cns11643_6): Likewise.
4376         (Vcharset_chinese_cns11643_7): Likewise.
4377         (Qchinese_cns11643_3): Likewise.
4378         (Qchinese_cns11643_4): Likewise.
4379         (Qchinese_cns11643_5): Likewise.
4380         (Qchinese_cns11643_6): Likewise.
4381         (Qchinese_cns11643_7): Likewise.
4382         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4383         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4384         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4385         (complex_vars_of_mule_charset): Likewise.
4386
4387 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4388
4389         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4390         96-set.
4391         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4392         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4393
4394 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4395
4396         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4397         0xFF60.
4398         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4399         (breakup_char_1): Likewise.
4400
4401         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4402         one of them includes the specified character.
4403
4404 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4405
4406         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4407
4408 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4409
4410         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4411
4412 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4413
4414         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4415         definition for non-UTF-2000 Mule.
4416         (latin_iso8859_3_to_ucs): Likewise.
4417         (latin_iso8859_4_to_ucs): Likewise.
4418         (latin_iso8859_9_to_ucs): Likewise.
4419         (latin_jisx0201_to_ucs): Likewise.
4420         (MIN_CHAR_THAI): Likewise.
4421         (MAX_CHAR_THAI): Likewise.
4422         (MIN_CHAR_GREEK): Likewise.
4423         (MAX_CHAR_GREEK): Likewise.
4424         (MIN_CHAR_HEBREW): Likewise.
4425         (MAX_CHAR_HEBREW): Likewise.
4426         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4427         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4428         (MIN_CHAR_CYRILLIC): Likewise.
4429         (MAX_CHAR_CYRILLIC): Likewise.
4430
4431 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4432
4433         * char-ucs.h (breakup_char_1): Use
4434         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4435         thai-tis620 and katakana-jisx0201 area.
4436
4437 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4438
4439         * char-ucs.h (breakup_char_1): Use
4440         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4441         area.
4442
4443         * text-coding.c (reset_encoding_stream): Fixed.
4444         (char_encode_ucs4): Delete `& 255'.
4445
4446         * char-ucs.h (breakup_char_1): Use
4447         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4448
4449 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4450
4451         * file-coding.c (Fmake_coding_system): Don't set up
4452         `codesys->fixed.size'.
4453         (encode_coding_no_conversion): Don't refer
4454         `str->codesys->fixed.size'.
4455
4456 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4457
4458         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4459         (latin_a_char_to_byte1): Deleted.
4460         (latin_a_char_to_byte2): Deleted.
4461
4462 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4463
4464         * mule-charset.c (make_charset): Add new argument `ucs_min',
4465         `ucs_max' and `code_offset'.
4466         (charset_get_byte1): New implementation [delete specific charset
4467         depended implementations].
4468         (Fmake_charset): Modify for `make_charset'.
4469         (Fmake_reverse_direction_charset): Likewise.
4470         (complex_vars_of_mule_charset): Likewise.
4471
4472         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4473         `code_offset'.
4474         (CHARSET_UCS_MIN): New macro.
4475         (CHARSET_UCS_MAX): New macro.
4476         (CHARSET_CODE_OFFSET): New macro.
4477         (MAKE_CHAR): Delete charset depended definitions [except
4478         katakana-jisx0201].
4479
4480 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4481
4482         * char-ucs.h (breakup_char_1): Use
4483         `Vdefault_coded_charset_priority_list' for C0-Controls,
4484         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4485
4486 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * char-ucs.h (charset_get_byte1): New function.
4489         (XCHARSET_GET_BYTE1): Deleted.
4490         (charset_get_byte2): New function.
4491         (XCHARSET_GET_BYTE2): Deleted.
4492         (Vdefault_coded_charset_priority_list): New external variable.
4493         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4494         `Vdefault_preferred_coded_charset_list'.
4495
4496         * mule-charset.c (charset_get_byte1): New function.
4497         (charset_get_byte2): New function.
4498         (Vdefault_coded_charset_priority_list): New variable.
4499         (vars_of_mule_charset): Add new variable
4500         `default-coded-charset-priority-list'.
4501
4502 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4503
4504         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4505         (XCHARSET_GET_BYTE2): New inline function.
4506         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4507         `XCHARSET_GET_BYTE2'.
4508
4509 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4510
4511         * mule-charset.c (make_charset): Initialize
4512         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4513         NULL if table is not defined.
4514
4515 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4516
4517         * text-coding.c (char_encode_shift_jis): Use
4518         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4519         `ucs_to_latin_jisx0201'.
4520
4521         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4522         (ucs_to_latin_iso8859_2): Deleted.
4523         (ucs_to_latin_iso8859_3): Deleted.
4524         (ucs_to_latin_iso8859_4): Deleted.
4525         (ucs_to_latin_iso8859_9): Deleted.
4526         (ucs_to_latin_viscii_lower): Deleted.
4527         (ucs_to_latin_viscii_upper): Deleted.
4528         (ucs_to_latin_tcvn5712): Deleted.
4529         (make_charset): Add new argument `decoding_table'; set up
4530         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4531         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4532         `decoding_table' is defined in UTF-2000.
4533         (Fmake_charset): Modify for `make_charset'.
4534         (Fmake_reverse_direction_charset): Likewise.
4535         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4536         and `GENERATE_96_SET'.
4537
4538         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4539         (ucs_to_latin_jisx0201): Deleted.
4540         (latin_iso8859_2_to_ucs): Deleted.
4541         (ucs_to_latin_iso8859_2): Deleted.
4542         (latin_iso8859_3_to_ucs): Deleted.
4543         (ucs_to_latin_iso8859_3): Deleted.
4544         (latin_iso8859_4_to_ucs): Deleted.
4545         (ucs_to_latin_iso8859_4): Deleted.
4546         (latin_iso8859_9_to_ucs): Deleted.
4547         (ucs_to_latin_iso8859_9): Deleted.
4548         (latin_viscii_lower_to_ucs): Deleted.
4549         (ucs_to_latin_viscii_lower): Deleted.
4550         (latin_viscii_upper_to_ucs): Deleted.
4551         (ucs_to_latin_viscii_upper): Deleted.
4552         (struct Lisp_Charset): Renamed `encoding_table' to
4553         `to_byte1_table'; add `to_byte2_table'.
4554         (CHARSET_DECODING_TABLE): New macro.
4555         (CHARSET_TO_BYTE1_TABLE): New macro.
4556         (CHARSET_TO_BYTE2_TABLE): New macro.
4557         (XCHARSET_DECODING_TABLE): New macro.
4558         (XCHARSET_TO_BYTE1_TABLE): New macro.
4559         (XCHARSET_TO_BYTE2_TABLE): New macro.
4560         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4561         tables.
4562         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4563         don't use `ucs_to_*' tables.
4564
4565 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4566
4567         * text-coding.c (Fmake_coding_system): Don't set up
4568         `codesys->fixed.size'.
4569         (encode_coding_no_conversion): Use `if' instead of `switch'.
4570
4571         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4572
4573 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4574
4575         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4576         (Fmake_charset): Modify for `make_charset'.
4577         (Fmake_reverse_direction_charset): Likewise.
4578         (complex_vars_of_mule_charset): Likewise.
4579
4580 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4581
4582         * text-coding.c (char_encode_shift_jis): Use table
4583         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4584
4585 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4586
4587         * text-coding.c (text_encode_generic): Use `if' instead of
4588         `switch'.
4589         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4590         decode JIS-Latin.
4591
4592 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4593
4594         * text-coding.c (encode_coding_sjis): Deleted.
4595         (char_encode_shift_jis): New function.
4596         (char_finish_shift_jis): New function.
4597         (reset_encoding_stream): Set up `encode_char' and `finish' for
4598         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4599         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4600         (char_encode_utf8): Treat `eol_type'.
4601
4602 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4603
4604         * file-coding.c (decode_coding_iso2022): Use
4605         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4606
4607 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4608
4609         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4610         to 0.7 (Hirano).
4611
4612 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4613
4614         * char-lb.h (CHAR_COLUMNS): New macro.
4615
4616 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4617
4618         * text-coding.c (char_encode_ucs4): New function.
4619         (char_finish_ucs4): New function.
4620         (encode_coding_ucs4): Deleted.
4621         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4622         (text_encode_generic): Delete local variable `charset' and `half'.
4623         (ucs_to_mule_table): Deleted.
4624         (mule_to_ucs_table): Deleted.
4625         (Fset_ucs_char): Deleted.
4626         (ucs_to_char): Deleted.
4627         (Fucs_char): Deleted.
4628         (Fset_char_ucs): Deleted.
4629         (Fchar_ucs): Deleted.
4630         (decode_ucs4): Deleted.
4631         (mule_char_to_ucs4): Deleted.
4632         (encode_ucs4): Deleted.
4633         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4634         (decode_coding_utf8): Likewise.
4635         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4636         (char_encode_iso2022): Fixed.
4637         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4638         `Fset_char_ucs' and `Fchar_ucs'.
4639         (complex_vars_of_file_coding): Don't initialize
4640         `ucs_to_mule_table'.
4641
4642         * objects-tty.c (tty_initialize_font_instance): Don't use
4643         `XCHARSET_COLUMNS'.
4644
4645         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4646         UTF-2000.
4647
4648         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4649         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4650
4651         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4652         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4653         (emchar_string_displayed_columns): Likewise.
4654
4655         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4656         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4657         (string_column_at_point): Likewise.
4658         (Fmove_to_column): Likewise.
4659
4660         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4661         `encoding_table' and `decoding_table'.
4662         (CHARSET_REP_BYTES): Deleted.
4663         (XCHARSET_REP_BYTES): Deleted.
4664         (XCHARSET_COLUMNS): Deleted.
4665         (CHAR_COLUMNS): New macro.
4666         (lookup_composite_char): Deleted unconditionally.
4667         (composite_char_string): Likewise.
4668
4669 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4670
4671         * char-ucs.h (Emchar_to_byte_table): New type.
4672         (get_byte_from_character_table): New function interface.
4673         (Vcharset_latin_jisx0201): New variable.
4674         (latin_jisx0201_to_ucs): New variable.
4675         (ucs_to_latin_jisx0201): New variable.
4676         (Vcharset_latin_iso8859_2): New variable.
4677         (latin_iso8859_2_to_ucs): New variable.
4678         (ucs_to_latin_iso8859_2): New variable.
4679         (Vcharset_latin_iso8859_3): New variable.
4680         (latin_iso8859_3_to_ucs): New variable.
4681         (ucs_to_latin_iso8859_3): New variable.
4682         (Vcharset_latin_iso8859_4): New variable.
4683         (latin_iso8859_4_to_ucs): New variable.
4684         (ucs_to_latin_iso8859_4): New variable.
4685         (Vcharset_latin_iso8859_9): New variable.
4686         (latin_iso8859_9_to_ucs): New variable.
4687         (ucs_to_latin_iso8859_9): New variable.
4688         (Vcharset_latin_viscii_lower): New variable.
4689         (latin_viscii_lower_to_ucs): New variable.
4690         (ucs_to_latin_viscii_lower): New variable.
4691         (Vcharset_latin_viscii_upper): New variable.
4692         (latin_viscii_upper_to_ucs): New variable.
4693         (ucs_to_latin_viscii_upper): New variable.
4694         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4695         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4696         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4697         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4698         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4699         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4700         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4701         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4702         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4703         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4704
4705         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4706         (Vcharset_latin_viscii_upper): New variable.
4707         (make_byte_from_character_table): New function.
4708         (put_byte_from_character_table): New function.
4709         (get_byte_from_character_table): New function.
4710         (CHAR96): New macro.
4711         (ucs_to_latin_jisx0201): New variable.
4712         (latin_jisx0201_to_ucs): New variable.
4713         (ucs_to_latin_iso8859_2): New variable.
4714         (latin_iso8859_2_to_ucs): New variable.
4715         (ucs_to_latin_iso8859_3): New variable.
4716         (latin_iso8859_3_to_ucs): New variable.
4717         (ucs_to_latin_iso8859_4): New variable.
4718         (latin_iso8859_4_to_ucs): New variable.
4719         (ucs_to_latin_iso8859_9): New variable.
4720         (latin_iso8859_9_to_ucs): New variable.
4721         (ucs_to_latin_viscii_lower): New variable.
4722         (latin_viscii_lower_to_ucs): New variable.
4723         (ucs_to_latin_viscii_upper): New variable.
4724         (latin_viscii_upper_to_ucs): New variable.
4725         (ucs_to_latin_tcvn5712): New variable.
4726         (latin_tcvn5712_to_ucs): New variable.
4727         (Qlatin_viscii_lower): New variable.
4728         (Qlatin_viscii_upper): New variable.
4729         (syms_of_mule_charset): Set up new symbol
4730         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4731         (complex_vars_of_mule_charset): Set up new charset
4732         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4733         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4734         `ucs_to_<CHARSET>' tables.
4735
4736 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4737
4738         * text-coding.c: New file.
4739
4740 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4741
4742         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4743
4744         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4745         (MAKE_CHAR): Modify for `ucs-bmp'.
4746         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4747         non-MULE characters of BMP.
4748
4749 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4750
4751         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4752         to 0.6.
4753
4754 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4755
4756         * lstream.h:
4757         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4758         - Include character.h for `CHAR_ASCII_P'.
4759
4760         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4761
4762         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4763         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4764
4765         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4766         (BYTE_C0_P): Likewise.
4767         (BYTE_C1_P): Likewise.
4768         (Lstream_get_emchar_1): Likewise.
4769         (Lstream_fput_emchar): Likewise.
4770         (Lstream_funget_emchar): Likewise.
4771         (copy_internal_to_external): Likewise.
4772         (copy_external_to_internal): Likewise.
4773
4774         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4775         (BYTE_C0_P): Likewise.
4776         (BYTE_C1_P): Likewise.
4777         (Lstream_get_emchar_1): Likewise.
4778         (Lstream_fput_emchar): Likewise.
4779         (Lstream_funget_emchar): Likewise.
4780         (copy_internal_to_external): Likewise.
4781         (copy_external_to_internal): Likewise.
4782
4783         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4784         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4785
4786         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4787         (BYTE_ASCII_P): Moved to mb-1byte.h.
4788
4789 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4790
4791         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4792
4793         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4794         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4795         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4796         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4797         (VALIDATE_CHARPTR_FORWARD): Likewise.
4798         (simple_charptr_emchar): Moved to mb-multibyte.h.
4799         (simple_set_charptr_emchar): Likewise.
4800         (simple_charptr_copy_char): Likewise.
4801         (non_ascii_charptr_emchar): Likewise.
4802         (non_ascii_set_charptr_emchar): Likewise.
4803         (non_ascii_charptr_copy_char): Likewise.
4804         (charptr_emchar): Moved to mb-*byte.h.
4805         (set_charptr_emchar): Likewise.
4806         (charptr_copy_char): Likewise.
4807
4808         * mb-1byte.h, mb-multibyte.h: New files.
4809
4810 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4811
4812         * mb-utf-8.h (MULTIBYTE): New macro.
4813         (MAX_EMCHAR_LEN): Moved from buffer.h.
4814         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4815
4816         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4817
4818         * mb-lb.h, multibyte.h: New files.
4819
4820         * char-1byte.h (Charset_ID): Moved from buffer.h.
4821         (MIN_LEADING_BYTE): Likewise.
4822         (LEADING_BYTE_ASCII): Likewise.
4823         (NUM_LEADING_BYTES): Likewise.
4824         (CHARSETP): Likewise.
4825         (CHARSET_BY_LEADING_BYTE): Likewise.
4826         (XCHARSET_LEADING_BYTE): Likewise.
4827         (XCHARSET_GRAPHIC): Likewise.
4828         (XCHARSET_COLUMNS): Likewise.
4829         (XCHARSET_DIMENSION): Likewise.
4830         (CHAR_CHARSET): Likewise.
4831         (CHAR_LEADING_BYTE): Likewise.
4832         (BREAKUP_CHAR): Likewise.
4833         (Vcharset_ascii): Likewise.
4834
4835         * buffer.h: Include multibyte.h unconditionally.
4836         (VALID_CHARPTR_P): Moved to multibyte.h.
4837         (ASSERT_VALID_CHARPTR): Likewise.
4838         (REAL_INC_CHARPTR): Likewise.
4839         (REAL_INC_CHARBYTIND): Likewise.
4840         (REAL_DEC_CHARPTR): Likewise.
4841         (INC_CHARPTR): Likewise.
4842         (INC_CHARBYTIND): Likewise.
4843         (DEC_CHARPTR): Likewise.
4844         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4845         (VALIDATE_CHARPTR_FORWARD): Likewise.
4846         (charptr_n_addr): Likewise.
4847         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4848         (simple_charptr_emchar): Moved to multibyte.h.
4849         (simple_set_charptr_emchar): Likewise.
4850         (simple_charptr_copy_char): Likewise.
4851         (non_ascii_charptr_emchar): Likewise.
4852         (non_ascii_set_charptr_emchar): Likewise.
4853         (non_ascii_charptr_copy_char): Likewise.
4854         (charptr_emchar): Likewise.
4855         (set_charptr_emchar): Likewise.
4856         (charptr_copy_char): Likewise.
4857         (charptr_emchar_n): Likewise.
4858         (Charset_ID): Moved to char-1byte.h.
4859         (Vcharset_ascii): Likewise.
4860         (CHAR_CHARSET): Likewise.
4861         (CHAR_LEADING_BYTE): Likewise.
4862         (LEADING_BYTE_ASCII): Likewise.
4863         (NUM_LEADING_BYTES): Likewise.
4864         (MIN_LEADING_BYTE): Likewise.
4865         (CHARSETP): Likewise.
4866         (CHARSET_BY_LEADING_BYTE): Likewise.
4867         (XCHARSET_LEADING_BYTE): Likewise.
4868         (XCHARSET_GRAPHIC): Likewise.
4869         (XCHARSET_COLUMNS): Likewise.
4870         (XCHARSET_DIMENSION): Likewise.
4871         (BREAKUP_CHAR): Likewise.
4872
4873 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4874
4875         * character.h: Add document about interface for characters.
4876
4877         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4878         (MAKE_CHAR): Delete comment about
4879         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4880         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4881         (BREAKUP_CHAR): Modify name of arguments.
4882         (CHAR_CHARSET): Modify name of argument.
4883
4884         * buffer.h: Delete document about Emchar accessors.
4885
4886 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4887
4888         * character.h (CHAR_INTP): Moved from buffer.h
4889         (CHAR_OR_CHAR_INTP): Likewise.
4890         (XCHAR_OR_CHAR_INT): Likewise.
4891         (CHECK_CHAR_COERCE_INT): Likewise.
4892
4893         * buffer.h (CHAR_INTP): Moved to character.h
4894         (CHAR_OR_CHAR_INTP): Likewise.
4895         (XCHAR_OR_CHAR_INT): Likewise.
4896         (CHECK_CHAR_COERCE_INT): Likewise.
4897
4898 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4899
4900         * character.h:
4901         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4902         - Include char-1byte.h, char-lb.h or char-ucs.h.
4903
4904         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4905
4906         * buffer.h: Include character unconditionally.
4907         (valid_char_p): Moved to char-*.h.
4908         (non_ascii_valid_char_p): Moved to char-lb.h.
4909
4910         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4911
4912 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4913
4914         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4915         in UTF-2000 because it is not ported yet and not to use
4916         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4917         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4918         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4919
4920         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4921         (CHAR_ASCII_P): Moved from character.h.
4922
4923         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4924         (CHAR_ASCII_P): Likewise.
4925         (CHAR_FIELD1_MASK): Deleted.
4926         (CHAR_FIELD2_MASK): Deleted.
4927         (CHAR_FIELD3_MASK): Deleted.
4928         (MAX_CHAR_BASIC_LATIN): New macro.
4929         (CHAR_FIELD1): Deleted.
4930         (CHAR_FIELD2_INTERNAL): Deleted.
4931         (CHAR_FIELD3_INTERNAL): Deleted.
4932         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4933         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4934         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4935         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4936         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4937         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4938         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4939         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4940         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4941         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4942         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4943         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4944         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4945         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4946         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4947         (MIN_CHAR_COMPOSITION): Deleted.
4948         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4949         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4950
4951 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4952
4953         * buffer.h: Include mb-utf-8.h in UTF-2000.
4954
4955         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4956
4957         * mb-utf-8.h: New file.
4958
4959 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4960
4961         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4962         instead of `int'.
4963
4964         * mule-charset.h, buffer.h (Charset_ID): New type.
4965
4966 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4967
4968         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4969         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4970         instead of `MULE_CHAR_PRIVATE_OFFSET',
4971         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4972         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4973         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4974
4975         * character.h (Vcharset_japanese_jisx0212): New variable
4976         definition.
4977
4978 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4979
4980         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4981         (charset_by_attributes): Delete array about direction.
4982         (latin_a_char_to_charset): New variable in UTF-2000.
4983         (latin_a_char_to_byte1): New variable in UTF-2000.
4984         (latin_a_char_to_byte2): New variable in UTF-2000.
4985         (Qucs_bmp): New variable.
4986         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4987         `Bufbyte'.
4988         (next_allocated_2_byte_leading_byte): Likewise.
4989         (non_ascii_set_charptr_emchar): Likewise.
4990         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4991         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4992         `charset_by_attributes'.
4993         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4994         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4995         and `CHARSET_BY_LEADING_BYTE'.
4996         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4997         `utf-2000-version' to `vars_of_mule_charset'.
4998         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4999         define `leading-code-private-11' in UTF-2000; move setting of
5000         `utf-2000-version' from `syms_of_mule_charset'.
5001         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5002         UTF-2000.
5003
5004         * character.h (Charset_ID): New type.
5005         (LEADING_BYTE_UCS_BMP): New macro.
5006         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5007         (CHARSET_ID_OFFSET_94): New macro.
5008         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5009         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5010         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5011         final-byte.
5012         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5013         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5014         (CHARSET_ID_OFFSET_96): New macro.
5015         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5016         CHARSET_ID_OFFSET_96 and final-byte.
5017         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5018         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5019         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5020         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5021         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5022         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5023         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5024         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5025         (LEADING_BYTE_THAI_TIS620): Likewise.
5026         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5027         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5028         (CHARSET_ID_OFFSET_94x94): New macro.
5029         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5030         CHARSET_ID_OFFSET_94x94 and final-byte.
5031         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5032         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5033         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5034         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5035         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5036         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5037         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5038         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5039         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5040         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5041         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5042         (CHARSET_TYPE_128X128): New macro.
5043         (CHARSET_TYPE_256X256): New macro.
5044         (XCHARSET_PRIVATE_P): Delete unconditionally.
5045         (charset_by_attributes): Delete array about direction.
5046         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5047         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5048         (MIN_CHAR_94): New macro.
5049         (MAX_CHAR_94): New macro.
5050         (MIN_CHAR_96): New macro.
5051         (MAX_CHAR_96): New macro.
5052         (MIN_CHAR_94x94): New macro.
5053         (MAX_CHAR_94x94): New macro.
5054         (MIN_CHAR_96x96): New macro.
5055         (MAX_CHAR_96x96): New macro.
5056         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5057         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5058         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5059         - 32)'.
5060         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5061         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5062         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5063         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5064         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5065         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5066         `XCHARSET_LEADING_BYTE' to make code-point.
5067         (latin_a_char_to_charset): New variable.
5068         (latin_a_char_to_byte1): New variable.
5069         (latin_a_char_to_byte2): New variable.
5070         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5071         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5072         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5073
5074         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5075         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5076         (find_charsets_in_emchar_string): Likewise.
5077         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5078
5079         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5080         `int'.
5081         (decode_coding_iso2022): Likewise.
5082
5083         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5084         of `unsigned char'.
5085
5086         * redisplay.c (redisplay_text_width_emchar_string): Use
5087         `Charset_ID' instead of `unsigned char'.
5088         (redisplay_frame_text_width_string): Likewise.
5089
5090         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5091         `unsigned char'.
5092
5093         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5094         instead of `unsigned char'.
5095         (face_cachel_charset_font_metric_info): Likewise.
5096
5097         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5098         (get_non_ascii_char_table_value): Likewise.
5099         (get_char_table): Likewise.
5100         (put_char_table): Likewise.
5101         (map_over_other_charset): Likewise.
5102         (map_char_table): Likewise.
5103
5104         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5105         instead of `unsigned char'.
5106
5107 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5108
5109         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5110         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5111
5112         * mule-charset.c (leading_code_private_11): Don't define in
5113         UTF-2000.
5114
5115         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5116         in UTF-2000 because it is not ported yet and not to use
5117         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5118
5119 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5120
5121         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5122
5123 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5124
5125         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5126         in UTF-2000.
5127
5128         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5129         of unsigned char to store leading-byte.
5130
5131         * chartab.c (get_non_ascii_char_table_value): Don't use
5132         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5133
5134         * file-coding.c (encode_coding_big5): Delete bogus implementation
5135         in UTF2000.
5136
5137         * character.h (LEADING_BYTE_*): Delete definition for
5138         non-UTF-2000.
5139         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5140         (LEADING_BYTE_PREFIX_P): Deleted.
5141         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5142         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5143         (BUFBYTE_LEADING_BYTE_P): Deleted.
5144         (CHARSET_PRIVATE_P): Deleted unconditionally.
5145         (rep_bytes_by_first_byte): Deleted unconditionally.
5146         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5147         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5148         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5149         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5150         (CHAR_FIELD2): Deleted.
5151         (CHAR_FIELD3): Deleted.
5152         (MAKE_CHAR): Delete definition for non-UTF-2000.
5153         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5154         (breakup_char_1): New implementation.
5155         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5156         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5157
5158 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5159
5160         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5161         condition.
5162
5163 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5164
5165         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5166         (CHARSET_PRIVATE_P): Likewise.
5167         (XCHARSET_PRIVATE_P): Likewise.
5168         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5169
5170         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5171         UTF2000.
5172         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5173
5174 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5175
5176         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5177         (NUM_LEADING_BYTES): Changed from 128 to 256.
5178         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5179         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5180         UTF2000.
5181         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5182
5183         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5184         UTF2000.
5185         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5186         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5187         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5188         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5189         (Qchinese_cns11643_3): New variable in UTF2000.
5190         (Qchinese_cns11643_4): New variable in UTF2000.
5191         (Qchinese_cns11643_5): New variable in UTF2000.
5192         (Qchinese_cns11643_6): New variable in UTF2000.
5193         (Qchinese_cns11643_7): New variable in UTF2000.
5194         (syms_of_mule_charset): Define `chinese-cns11643-3',
5195         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5196         and `chinese-cns11643-7' in UTF2000.
5197         (vars_of_mule_charset): Initialize
5198         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5199         + 1 in UTF2000.
5200         (complex_vars_of_mule_charset): Setup charset
5201         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5202         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5203
5204 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5205
5206         * mule-charset.c: Move setting for `leading-code-private-11' from
5207         `syms_of_mule_charset' to `vars_of_mule_charset'.
5208
5209 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5210
5211         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5212         and `NUM_LEADING_BYTES' in assert.
5213
5214 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5215
5216         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5217         instead of 128.
5218         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5219         `NUM_LEADING_BYTES' instead of 128.
5220
5221 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5222
5223         * mule-charset.h (charset_by_leading_byte): Use
5224         `NUM_LEADING_BYTES' instead of 128.
5225         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5226
5227         * mule-charset.c (charset_by_leading_byte): Use
5228         `NUM_LEADING_BYTES' instead of 128.
5229         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5230
5231         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5232         128.
5233
5234 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5235
5236         * mule-charset.c (syms_of_mule_charset): Update to
5237         0.4 (Shin-Imamiya).
5238
5239 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5240
5241         * file-coding.c (encode_coding_sjis): New implementation for
5242         UTF2000.  (decode_coding_sjis): Ditto.
5243
5244 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5245
5246         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5247         Don't define in UTF2000.
5248
5249         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5250         defined.
5251
5252         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5253         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5254         MULE.
5255
5256 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5257
5258         * config.h.in (CHAR_IS_UCS4): New macro.
5259
5260         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5261         conventional MULE representation.
5262         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5263
5264         * mule-charset.h: Reverted to original.
5265
5266         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5267         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5268         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5269
5270         * character.h: New file.
5271
5272         * file-coding.c (Fmake_coding_system): Set 1 to
5273         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5274         defined.
5275         (encode_coding_no_conversion): New implementation for UTF2000.
5276
5277         * file-coding.h (struct Lisp_Coding_System): Add new member
5278         `fixed.size'.
5279
5280 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5281
5282         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5283         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5284         (encode_coding_iso2022): New implementation for UTF2000.
5285
5286 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5287
5288         * mule-canna.c (c2mu): New implementation for UTF2000.
5289         (m2c): Likewise.
5290
5291 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5292
5293         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5294
5295 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5296
5297         * file-coding.c (reset_encoding_stream): Set 0 to
5298         `str->iso2022.current_char_boundary' in UTF2000.
5299         (encode_utf8): Don't define in UTF2000.
5300         (encode_coding_utf8): New implementation for UTF-8 representation
5301         of UTF2000.
5302         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5303
5304 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5305
5306         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5307
5308         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5309         UTF2000.
5310         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5311
5312         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5313
5314         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5315         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5316         as UTF-8 in UTF2000.
5317         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5318         (non_ascii_valid_char_p): Don't define in UTF2000.
5319         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5320         (Lstream_get_emchar_1): Likewise.
5321         (utf-2000-version): New variable in UTF2000.
5322
5323         * lread.c (read_escape): Add new reader `u'.
5324
5325         * insdel.c (three_to_one_table): Don't define in UTF2000.
5326         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5327         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5328         UTF2000.
5329         (bytind_to_bufpos_func): Likewise.
5330         (buffer_mule_signal_inserted_region): Likewise.
5331         (vars_of_insdel): Don't initialize `three_to_one_table'.
5332         (init_buffer_text): Use `buf->text->mule_size' instead of
5333         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5334         UTF2000.
5335
5336         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5337         UTF-8 representation in UTF2000.
5338         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5339         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5340         (decode_coding_iso2022): Don't define local variable `lb' in
5341         UTF2000; don't use LEADING_BYTE in UTF2000; use
5342         `DECODE_ADD_UCS_CHAR' in UTF2000.
5343         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5344
5345         * config.h.in (UTF2000): New macro.
5346
5347         * buffer.h (struct buffer_text): Add new member `mule_size' and
5348         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5349         (valid_char_p): Return always 1 in UTF2000.
5350         (MAX_EMCHAR_LEN): 6 in UTF2000.
5351         (three_to_one_table): Don't define in UTF2000.
5352         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5353         UTF2000.
5354         (real_bytind_to_bufpos): Likewise.
5355
5356         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5357
5358 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5359
5360         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5361         representation change.
5362         (Vutf_2000_version): New variable.
5363         (leading_code_private_11): New variable.
5364         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5365         `leading-code-private-11'.
5366
5367         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5368         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5369         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5370         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5371         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5372         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5373         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5374         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5375         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5376         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5377         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5378         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5379         (MIN_CHAR_GREEK): New macro.
5380         (MAX_CHAR_GREEK): New macro.
5381         (MIN_CHAR_CYRILLIC): New macro.
5382         (MAX_CHAR_CYRILLIC): New macro.
5383         (MIN_CHAR_HEBREW): New macro.
5384         (MAX_CHAR_HEBREW): New macro.
5385         (MIN_CHAR_THAI): New macro.
5386         (MAX_CHAR_THAI): New macro.
5387         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5388         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5389         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5390         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5391         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5392         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5393         (CHAR_FIELD2): New inline function.
5394         (CHAR_FIELD3): New inline function.
5395         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5396         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5397         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5398         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5399         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5400         (MIN_CHAR_COMPOSITION): Likewise.
5401         (CHAR_LEADING_BYTE): Modified for character representation change.
5402         (MAKE_CHAR): Likewise.
5403
5404         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5405         (Vcharset_greek_iso8859_7): Likewise.
5406         (Vcharset_cyrillic_iso8859_5): Likewise.
5407         (Vcharset_hebrew_iso8859_8): Likewise.
5408         (Vcharset_thai_tis620): Likewise.
5409         (Vcharset_katakana_jisx0201): Likewise.
5410
5411 2004-02-02  Vin Shelton <acs@xemacs.org>
5412
5413         * XEmacs 21.4.15 is released
5414
5415 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5416
5417         * device-x.c (x_error_handler): Don't call stderr_out
5418
5419 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5420
5421         * buffer.c (other-buffer): Clarify documentation of order of
5422         arguments for FSF Emacs.
5423
5424 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5425
5426         * window.c (Fdelete_window): Dirty the mirror structure _before_
5427         marking the window deleted.
5428
5429 2003-09-15  Jerry James  <james@xemacs.org>
5430
5431         * event-msw.c (debug_mswin_messages): Conditionally compile
5432         messages missing from the Cygwin headers.
5433
5434 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5435
5436         * data.c (eq_with_ebola_notice): Fix typo in comment.
5437         (Ftrue_list_p): Improve docstring.
5438
5439 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5440
5441         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5442
5443 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5444
5445         * search.c (trivial_regexp_p): Regexps containing "\{" are
5446         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5447         Stefan Monnier for suggesting a diagnosis.
5448
5449 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5450
5451         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5452
5453 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5454
5455         * search.c (Fsearch_forward):
5456         (Fsearch_backward):
5457         Document negative count.
5458
5459 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5460
5461         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5462
5463 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5464
5465         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5466
5467 2003-09-15  Vin Shelton  <acs@xemacs.org>
5468
5469         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5470         21.5.
5471
5472 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5473
5474         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5475         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5476         (re_match_2_internal): Use TRANSLATE instead of
5477         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5478         non-ASCII char case conversion.
5479
5480 2003-09-08  Mike Sperber  <mike@xemacs.org>
5481
5482         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5483         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5484
5485 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5486
5487        * .gdbinit (pobj): fix printing of symbol name.
5488
5489 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5490
5491         * frame-x.c (x_layout_widgets): When resizing is about to cause
5492         frame size slip, mark it for redisplay.
5493
5494 2003-08-18  Jerry James  <james@xemacs.org>
5495
5496         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5497
5498 2003-09-03  Vin Shelton <acs@xemacs.org>
5499
5500         * XEmacs 21.4.14 is released
5501
5502 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5503
5504         * config.h.in (REGEX_MALLOC): Make it configure'able.
5505
5506 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5507
5508         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5509         linking.
5510         * sysdll.c (dll_init):
5511         * sysdll.c (dll_open):
5512         * sysdll.c (dll_close):
5513         * sysdll.c (dll_function):
5514         * sysdll.c (dll_variable):
5515         * sysdll.c (dll_error):
5516         Add support for loading bundles using Darwin/MacOSX
5517         native API.
5518
5519 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * process.c (start-process-internal): Document coding systems.
5522
5523 2003-07-30  Jerry James  <james@xemacs.org>
5524
5525         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5526
5527 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5528
5529         * event-msw.c (mswindows_enqueue_mouse_button_event):
5530         * event-msw.c (mswindows_wnd_proc):
5531           enqueue button event when scrollwheel event isn't handled by 
5532           mswindows_handle_mousewheel_event, such as when the scrollbars
5533           are not showing.
5534
5535 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5536
5537         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5538
5539 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5540
5541         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5542
5543 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5544
5545         * regex.c (re_match_2_internal): Fix matching degenerate word
5546         boundaries.
5547
5548 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5549
5550         * XEmacs 21.4.13 is released
5551
5552 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5553
5554         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5555         * lisp.h (<inttypes.h>):
5556         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5557         the definition.
5558
5559 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5560
5561         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5562         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5563         Result: "temacs can only be run in -batch mode."
5564         Fix: Check xemacs executable candidate for directory-ness.
5565
5566 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5567
5568         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5569           they conflict with <sys/types.h>.
5570
5571 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5572
5573         * database.c: Berkeley DB wants __STDC__ to be defined.
5574
5575 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5576
5577         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5578
5579 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5580
5581         * process-unix.c (unix_send_process): Fix C++ compile error.
5582
5583 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5584
5585         * Added .dylib as an acceptable shared library file extension
5586         * to support MacOSX.
5587
5588 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5589
5590         * EmacsFrameP.h (EmacsFramePart):
5591         Kludge to allow compiling with Motif1, but linking with Motif2.
5592
5593 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5594
5595         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5596
5597
5598 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5599
5600         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5601
5602 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5603
5604         * sysdll.c: Included lisp.h to define needed alloca_array.
5605
5606 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5607
5608         Make XEmacs redisplay 10 times faster.
5609         If, that is, you're using a slow X connection and MoveOpaque.
5610         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5611         Use compress_motion = TRUE.
5612         * EmacsFrame.c (emacsFrameClassRec): 
5613         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5614         * EmacsManager.c (emacsManagerClassRec):
5615         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5616
5617 2003-01-30  Vin Shelton  <acs@xemacs.org>
5618
5619         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5620
5621 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5622
5623         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5624         Patch by Martin Buchholz.
5625
5626 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5627
5628         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5629         Thanks to icc for warning and Martin Buchholz for reporting.
5630
5631 2003-01-29  Vin Shelton <acs@xemacs.org>
5632
5633         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5634
5635         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5636         remember to multiply by the element size.
5637
5638 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5639
5640         * XEmacs 21.4.12 "Portable Code" is released.
5641
5642 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5643
5644         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5645         * s/cygwin.sc: new linker file.
5646
5647 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5648
5649         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5650
5651         * redisplay-x.c (x_output_string): Use X11-specified types.
5652         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5653         * emacs.c (__free_hook): Use typeof with Intel compiler.
5654         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5655
5656 2003-01-08  Andy Piper  <andy@xemacs.org>
5657
5658         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5659         reserve size during unexec().
5660
5661 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5662
5663         * process-unix.c (unix_create_process): Don't let outchannel block.
5664
5665 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5666
5667         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5668         Needed for IsBadReadPtr().
5669
5670 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5671
5672         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5673
5674 2002-12-14  Ben Wing  <ben@xemacs.org>
5675
5676         * callint.c: Declaration error.
5677         * dumper.c (pdump):
5678         * dumper.c (pdump_load): Warning fix.
5679         * process.c: GCPRO error.
5680         * glyphs.c (unmap_subwindow):
5681         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5682         * event-stream.c (maybe_kbd_translate): Wrong argument to
5683         character_to_event().
5684
5685         * alloc.c (garbage_collect_1):
5686         * emacs.c:
5687         * emacs.c (debug_can_access_memory):
5688         * emacs.c (fatal_error_signal):
5689         * emacs.c (mswindows_handle_hardware_exceptions):
5690         * emacs.c (main_1):
5691         * emacs.c (main):
5692         * emacs.c (assert_failed):
5693         * emacs.c (syms_of_emacs):
5694         * lisp.h:
5695         * print.c:
5696         * print.c (std_handle_out_va):
5697         * print.c (write_string_to_stdio_stream):
5698         * print.c (write_fmt_string):
5699         * print.c (printing_badness):
5700         * print.c (printing_major_badness):
5701         * print.c (print_internal):
5702         * print.c (debug_print_no_newline):
5703         * print.c (debug_backtrace):
5704         Be more defensive in handling bad values when printing.  Add code
5705         from trunk involving inhibit_non_essential_printing_operations.
5706         When going down or in debug_print(), don't do external conversion
5707         and such and try really, really hard when printing to avoid core
5708         dumping.  Add force-debugging-signal, debug_break().
5709
5710 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5711
5712         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5713         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5714
5715 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5716
5717         * database.c: Fix open_database. Berkeley DB API has changed in
5718         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5719
5720 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5721
5722         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5723
5724 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5725
5726         * event-Xt.c (Xt_timeout):
5727         (Xt_timeout_callback):
5728         (emacs_Xt_add_timeout):
5729         (emacs_Xt_remove_timeout):
5730         (Xt_timeout_to_emacs_event):
5731         Turn completed_timeouts from a stack into a queue.  Fixes
5732         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5733
5734 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5735
5736         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5737         * emacs.c (main): Assert that mmap'd allocation is disabled.
5738
5739 2002-10-14  Andy Piper  <andy@xemacs.org>
5740
5741         * glyphs-widget.c (layout_query_geometry): add in fiddle
5742         factor. Include border text in width layout calculation.
5743         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5744
5745 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5746
5747         * XEmacs 21.4.10 "Military Intelligence" is released.
5748
5749 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5750
5751         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5752         using the NAS private array SoundFileInfo that no longer exists in
5753         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5754         and earlier.  This is broken for some versions between 1.5a and
5755         1.5f.
5756
5757 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5758
5759         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5760
5761         * emacs.c (shut_down_emacs): Improve crash message.
5762
5763 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5764
5765         * file-coding.c (determine_real_coding_system): Check for coding
5766         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5767         shebangs and Python PEP 263.
5768
5769 2002-10-08  Andy Piper  <andy@xemacs.org>
5770
5771         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5772         if static sizes haven't been set.
5773
5774 2002-08-30  Mike Alexander  <mta@arbortext.com>
5775
5776         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5777         to close a socket.
5778
5779 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5780
5781         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5782
5783 2002-09-20  Mike Sperber <mike@xemacs.org>
5784
5785         (This partially gets back my patch from 2002-07-20 without the
5786         bug.)
5787         * callproc.c (child_setup): Remove Ben's comment noting confusion
5788         over the file descriptors >= 3: close_process_descs() doesn't
5789         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5790         * process-unix.c (unix_create_process): Call
5791         begin_dont_check_for_quit to inhibit unwanted interaction (and
5792         thus breaking of X event synchronicity) in the child.
5793
5794 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5795
5796         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5797         widget.
5798
5799 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5800
5801         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5802         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5803         the xemacs process did not exit, but looped infinitely here.  This
5804         fixes that problem.
5805
5806 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5807
5808         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5809         (find_context): Improve comments.
5810
5811         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5812         (re_match_2): An XCHAR_TABLE operation was missing.
5813
5814         Many of the following changes were inspired by Andy Piper's (now
5815         obsolete) patch to make syntax-table text property lookup optional.
5816
5817         [Documentation]
5818
5819         * syntax.h (top level): Document semantics of syntax flags.
5820         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5821         * syntax.c, syntax.h (top level): Document syntax cache better in
5822         comments.
5823
5824         [Instrument syntax caching (temporary change)]
5825
5826         * syntax.h (enum syntax_cache_statistics_functions, struct
5827         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5828         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5829         * syntax.c (scan_words, Fforward_comment, scan_lists,
5830         Fbackward_prefix_characters):
5831         * font-lock.c (find_context):
5832         Use them to instrument syntax caching. 
5833         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5834         syntax_cache_statistics_function_names): New type and variables.
5835         * syntax.c (update_syntax_cache): Update and report statistics.
5836
5837         [Major syntax cache optimizations]
5838
5839         syntax.c (lookup_syntax_properties): Default off.
5840
5841         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5842         * syntax.c (update_syntax_cache):
5843         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5844
5845         [Minor syntax cache optimizations and code clarifications]
5846
5847         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5848         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5849         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5850         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5851         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5852         (Code clarification.)
5853
5854         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5855         scan_lists): Compute code from syncode, use Boolean macros instead
5856         of redundant masking operations.  (Code clarification; any decent
5857         compiler can do this optimization.)
5858
5859         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5860         for clarity.
5861
5862         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5863         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5864         use F*_single_property_change instead of F*_extent_change.
5865         Currently F*_single_property_change is _much_ less efficient.
5866
5867         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5868         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5869         syntax_cache.object properly, don't leave Qt or Qnil.
5870         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5871         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5872         tests for Qt or Qnil.
5873
5874 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5875
5876         * redisplay.c (point_in_line_start_cache): 
5877         * extents.c (print_extent_1):
5878         Fix warnings.
5879
5880         * extents.c (Fset_extent_property): Document `syntax-table' property.
5881
5882         * extents.h (Fnext_single_property_change): EXFUN it.
5883
5884 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5885
5886         * search.c (clear_unused_search_regs): New static function.
5887         (search_buffer): 
5888         (simple_search): 
5889         (boyer_moore):
5890         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5891         Minor clarifications in comments.
5892
5893         * regex.c (re_match_2_internal): Ensure no stale submatches.
5894
5895 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5896
5897         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5898
5899 2002-08-29  Jerry James  <james@xemacs.org>
5900
5901         * lisp.h: structrures -> structures.
5902
5903 2002-06-03  Andy Piper  <andy@xemacs.org>
5904
5905         * frame.c (frame_conversion_internal): add conversion appropriate
5906         for setting frame dimensions in pixels.
5907
5908         * console.h (struct console_methods): add device-specific widget
5909         layout functions.
5910
5911         * emacs.c (main_1): initialize glyph vars.
5912
5913         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5914         (handle_focus_event_2): new function. Allow focus to
5915         be set to a particular window and widget.
5916         (enqueue_focus_event): new function. Create a
5917         synthetic focus event.
5918         (emacs_Xt_handle_magic_event): call
5919         handle_focus_event_2.
5920
5921         * frame.c (Fset_frame_pixel_height): new function. Allow
5922         pixel-based sizing. Does the right thing on character-oriented
5923         displays.
5924         (Fset_frame_pixel_width): ditto.
5925         (Fset_frame_pixel_size): ditto.
5926         (syms_of_frame): declare.
5927
5928         * general-slots.h: add :vertically-justify and
5929         :horizontally-justify.
5930
5931         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5932         (mswindows_widget_border_width): new function.
5933         (mswindows_combo_box_instantiate): set border widths.
5934         (console_type_create_glyphs_mswindows): declare.
5935
5936         * glyphs-widget.c:
5937         (check_valid_justification): allow vertical and horizontal
5938         justification.
5939         (widget_border_width): new function. Call device methods.
5940         (widget_instance_border_width): ditto.
5941         (logical_unit_height): new function. Determine the height of a
5942         logical-unit. Logical units are intended to provide grid-like
5943         layout for subcontrols in a layout. If the layout is
5944         :vertically-justify top then subcontrols will be positioned on
5945         logical-unit boundaries, thus allowing adjacent subcontrols to
5946         line up.
5947         (widget_logical_unit_height): ditto for widgets.
5948         (redisplay_widget): misc cleanup.
5949         (widget_spacing): new function. Call device specific
5950         methods. Intended to be the default gap between adjacent widgets.
5951         (widget_query_geometry): use new spacing functions to determine
5952         appropriate geometry.
5953         (initialize_widget_image_instance): initialize horizontal and
5954         vertical justification.
5955         (widget_instantiate): use logica-units where appropriate for
5956         sizing large widgets.
5957         (button_query_geometry): use widget_instance_border_width.
5958         (tree_view_query_geometry): ditto.
5959         (tab_control_query_geometry): ditto.
5960         (edit_field_query_geometry): new function.
5961         (layout_update): pick up :justify, :horizontally-justify and
5962         :vertically-justify none of which worked previously. :justify is
5963         used as a fallback for both horizontal and vertical justification.
5964         (layout_query_geometry): use logical units to size appropriately.
5965         (layout_layout): ditto.
5966         (Fwidget_logical_to_character_width): new function. Allow users to
5967         convert from logical units to characters so that frame sizes can
5968         be set appropriately.
5969         (Fwidget_logical_to_character_height): ditto.
5970         (syms_of_glyphs_widget): declare.
5971         (image_instantiator_edit_fields): add edit_field_query_geometry.
5972         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5973         :horizontally-justify.
5974         (specifier_vars_of_glyphs_widget): new function. Declare
5975         Vwidget_border_width which is not yet used.
5976
5977         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5978         (x_widget_border_width): new function.
5979         (x_widget_instantiate): create a sensible name for widgets.
5980         (console_type_create_glyphs_x): declare x_widget_border_width.
5981
5982         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5983         (struct Lisp_Image_Instance): add :vertically-justify and
5984         :horizontally-justify.
5985         (LAYOUT_JUSTIFY_TOP): new.
5986         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5987         (ROUND_UP): new macro. Round argument up to next integral
5988         interval.
5989
5990         * redisplay-output.c (redisplay_output_layout): misc formatting.
5991
5992         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5993
5994 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5995
5996         * XEmacs 21.4.9 "Informed Management" is released.
5997
5998 2002-08-19  Andy Piper  <andy@xemacs.org>
5999
6000         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6001         win32 format.
6002
6003         * realpath.c (xrealpath): normalize drive spec also so that dir
6004         sep chars are not mixed on cygwin.
6005
6006 2002-08-06  Jerry James  <james@xemacs.org>
6007
6008         * window.c (Fsplit_window): Count only half of the divider width
6009         against the left window when splitting horizontally. 
6010
6011 2002-06-24  Andy Piper  <andy@xemacs.org>
6012
6013         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6014         toolbar was cleared.
6015
6016         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6017         function. Split out from mswindows_output_frame_toolbars.
6018         (mswindows_output_frame_toolbars): move clear pieces to
6019         mswindows_output_frame_toolbars.
6020
6021         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6022         out from gtk_output_frame_toolbars.
6023         (gtk_output_frame_toolbars): move clear pieces to
6024         gtk_clear_frame_toolbars.
6025
6026         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6027         the frame is cleared. How this ever worked before is a mystery.
6028         (x_output_frame_toolbars): Only output toolbars.
6029         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6030
6031         * gutter.c (update_gutter_geometry):
6032         Mark frame layout changed.
6033         (update_frame_gutter_geometry, update_frame_gutters):
6034         Respect frame_layout_changed.
6035
6036         * console.h (struct console_methods): add
6037         clear_frame_toolbars_method.
6038
6039         * redisplay.c (redisplay_frame): call
6040         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6041
6042         * toolbar.h: declare update_frame_toolbars_geometry.
6043
6044         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6045         out from update_frame_toolbars.  Call clear_frame_toolbars.
6046         (update_frame_toolbars): only output, do not change geometry.
6047
6048         * redisplay.c: add frame_layout_changed.
6049
6050         * redisplay.h: add frame_layout_changed.
6051         (CLASS_RESET_CHANGED_FLAGS): set it.
6052         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6053         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6054         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6055
6056         * device.h (struct device): add frame_layout_changed.
6057         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6058
6059         * frame.h (struct frame): add frame_layout_changed.
6060         (MARK_FRAME_LAYOUT_CHANGED): new.
6061
6062 2002-06-30  Mike Alexander  <mta@arbortext.com>
6063
6064         * event-msw.c (mswindows_need_event): Don't wait for a new message
6065         if the queue is not empty.  Suggested by Paul Moore.
6066
6067 2002-06-12  Andy Piper  <andy@xemacs.org>
6068
6069         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6070         for printing on accurately.
6071
6072 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6073
6074         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6075         WM_ACTIVATE message. Make sure that the frame is visible if the
6076         window is visible. This seemss to fix the problem where XEmacs
6077         appears to freeze after switching desktops with certain virtual
6078         window managers.
6079         (debug_output_mswin_message): Added code to output message
6080         parameters for WM_WINDOWPOSCHANGED, 
6081         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6082
6083 2002-05-25  Andy Piper  <andy@xemacs.org>
6084
6085         * select-x.c (vars_of_select_x): Fix docstring of
6086         x-selection-strict-motif-ownership
6087
6088 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6089
6090         * keymap.c (get_keymap):
6091         Add comment about do_autoload GCPROs own args.
6092
6093 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6094
6095         * bytecode.c (execute_optimized_program): check_opcode ifdef
6096         ERROR_CHECK_BYTE_CODE.
6097
6098 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6099
6100         Thanks to Ben Wing and Michael Sperber.
6101
6102         * eval.c (Fcommand_execute):
6103         (Feval):
6104         (Ffuncall):
6105         (Fmacroexpand_internal):
6106         (function_argcount):
6107         callint.c (Fcall_interactively):
6108         Add comment about do_autoload GCPROs own args.
6109
6110         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6111
6112         * eval.c (Ffuncall): Extra braces to placate GCC.
6113
6114 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6115
6116         * backtrace.h (grow_specpdl):
6117         (SPECPDL_RESERVE):
6118         * EmacsFrame.c (EmacsFrameSetValues):
6119         * eval.c (grow_specpdl):
6120         * ExternalShell.c (hack_event_masks_1):
6121         * glyphs-x.c (convert_EImage_to_XImage): 
6122         (x_finalize_image_instance):
6123         * ralloc.c (page_size):
6124         (r_alloc_sbrk):
6125         * xgccache.c (gc_cache_hash):
6126         Fix unsigned comparison warnings.
6127
6128 2002-07-29  Jerry James  <james@xemacs.org>
6129
6130         * lread.c (locate_file): Any nonnegative return value indicates
6131         success if MODE is nonnegative.
6132
6133 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6134
6135         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6136         argument. 
6137
6138 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6139
6140         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6141
6142         * dumper.c (pdump_get_indirect_count):
6143         (pdump_scan_by_alignment):
6144         (pdump_dump_root_struct_ptrs):
6145         (pdump_dump_rtables):
6146         (pdump_dump_root_objects):
6147         (pdump):
6148         * nas.c (WaveOpenDataForReading):
6149         * fns.c (print_bit_vector):
6150         * font-lock.c (SINGLE_SYNTAX_STYLE):
6151         * glyphs.c (check_for_ignored_expose):
6152         (find_matching_subwindow):
6153         * glyphs-eimage.c:
6154         * imgproc.c (get_histogram):
6155         * redisplay.c (point_in_line_start_cache):
6156         * redisplay-output.c (redisplay_unmap_subwindows):
6157         * symbols.c (defsymbol_massage_name_1):
6158         (defkeyword_massage_name):
6159         (deferror_massage_name_and_message):
6160         * redisplay-x.c (x_output_string): 
6161         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6162         * frame.h (struct frame):
6163         * filelock.c (current_lock_owner):
6164         * doprnt.c (emacs_doprnt_1):
6165         * lisp.h (struct Lisp_Bit_Vector):
6166         (DO_REALLOC):
6167         Fix warnings.
6168
6169 2002-02-13  Ben Wing  <ben@xemacs.org>
6170
6171         * event-stream.c (reset_key_echo):
6172         * event-stream.c (reset_this_command_keys):
6173         * event-stream.c (execute_command_event):
6174         If console is dead as a result of C-x 5 0, then post-command stuff
6175         needs to be careful and do only non-console-specific stuff.
6176
6177 2002-07-01  Mike Sperber <mike@xemacs.org>
6178
6179         * process-unix.c (unix_send_process): Mark coding_outstream as
6180         non-open upon SIGPIPE.
6181
6182         * event-stream.c (Fnext_event): Reorder switch cases to something
6183         that makes sense.
6184
6185 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6186
6187         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6188         Don't bogusly reinitialize ascii_character property.
6189
6190 2002-07-08  Mike Sperber <mike@xemacs.org>
6191
6192         * process.c (Fstart_process_internal): Do error checking before we
6193         fork off the child, so the child can't muck with the state of the
6194         parent.
6195
6196 2002-07-08  Mike Sperber <mike@xemacs.org>
6197
6198         * ralloc.c (init_ralloc): Allocate properly for pdump.
6199
6200 2002-06-12  Andy Piper  <andy@xemacs.org>
6201
6202         * glyphs.c (query_string_geometry): check the string.
6203
6204         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6205         widget names.
6206
6207 2002-06-17  Jerry James  <james@xemacs.org>
6208
6209         * sysdll.c: Remove RTLD_GLOBAL initialization.
6210         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6211
6212 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6213
6214         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6215
6216 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6217
6218         * sysdep.c (sys_rename): Make sys_rename work for the case where
6219         Windows rename sets errno to EACCES if target file exists.
6220
6221 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6222
6223         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6224         Fix detection of metric units to work on Win95
6225
6226 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6227
6228         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6229
6230 2002-04-25  Andy Piper  <andy@xemacs.org>
6231
6232         * redisplay.c (create_text_block): Remove extra comment trailer.
6233
6234 2002-04-24  Andy Piper  <andy@xemacs.org>
6235
6236         * redisplay.c (create_text_block): Don't actually add propagation
6237         data if the line ends after we have added a glyph.
6238
6239 2002-04-22  Andy Piper  <andy@xemacs.org>
6240
6241         * extents.c (extent_fragment_update): check for glyphs we have
6242         previously displayed.
6243         * extents.c (print_extent_1): warning removal.
6244         * extents.h: change prototype.
6245         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6246         widths correctly for wide glyphs.
6247         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6248         * redisplay.c (prop_type): add PROP_GLYPH.
6249         * redisplay.c (struct prop_block): add glyph type
6250         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6251         to the propagation data.
6252         * redisplay.c (create_text_block): if there is a glyph in the
6253         propagation data use it to salt extent_fragment_update.
6254         * redisplay.c (create_string_text_block): ditto.
6255
6256 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6257
6258         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6259         * redisplay-output.c (compare_runes): Compare them.
6260         * redisplay.c: Update copyright date.
6261         * redisplay.c (pos_data): Add need_baseline_computation field.
6262         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6263         need_baseline_computation; zero yoffset. Set max_pixmap_height
6264         for all pixmaps, not just automatically positioned ones.
6265         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6266         * redisplay.c (calculate_baseline): New, compute textual baseline.
6267         * redisplay.c (add_glyph_rune): Call them.
6268         * redisplay.c (create_text_block): Likewise.
6269         * redisplay.c (create_overlay_glyph_block): Likewise.
6270         * redisplay.c (add_margin_runes): Likewise.
6271         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6272
6273         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6274         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6275         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6276         * redisplay-msw.c (mswindows_output_string): Likewise.
6277         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6278         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6279         * redisplay-x.c (x_output_display_block): Likewise.
6280
6281 2002-03-28  Ben Wing  <ben@xemacs.org>
6282
6283         * redisplay.c: Fixed bug in redisplay
6284         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6285         and down of the lines, since they're bigger than the line
6286         size. (It was seen most obviously when there's a horizontal scroll
6287         bar, e.g. do C-h a glyph or something like that.) The problem was
6288         that the glyph-contrib-p setting on glyphs was ignored even if it
6289         was set properly, which it wasn't until now.
6290
6291 2002-04-24  Andy Piper  <andy@xemacs.org>
6292
6293         * lisp.h (Dynarr_end): Fix definition.
6294
6295 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6296
6297         * redisplay.c (mark_redisplay): Remove call to
6298         update_frame_window_mirror.
6299
6300 2001-11-15  Andy Piper  <andy@xemacs.org>
6301
6302         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6303         cygwin (again).
6304
6305 2002-02-13  Andy Piper  <andy@xemacs.org>
6306
6307         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6308         we did in fact enqueue the XM_MAPFRAME event.
6309
6310 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6311
6312         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6313         to fix problem switching between virtual desktops under virtuawin
6314         virtual window manager.
6315
6316 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6317
6318         * event-msw.c: Typo fix.
6319         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6320         magic XM_MAPFRAME event has been sent.
6321
6322 2001-11-23  Andy Piper  <andy@xemacs.org>
6323
6324         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6325
6326 2001-11-21  Andy Piper  <andy@xemacs.org>
6327
6328         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6329         mouse events outside the frame.
6330
6331 2002-03-20  Andy Piper  <andy@xemacs.org>
6332
6333         * menubar-msw.c (mswindows_popup_menu): warning removal.
6334         * dialog-msw.c (dialog_popped_down): ditto.
6335
6336 2001-12-11  Andy Piper  <andy@xemacs.org>
6337
6338         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6339         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6340         popup_up_p.
6341         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6342         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6343         * menubar-msw.c (mswindows_popup_menu): ditto.
6344
6345 2001-10-29  Andy Piper  <andy@xemacs.org>
6346
6347         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6348         cancels.
6349
6350 2002-01-03  Andy Piper  <andy@xemacs.org>
6351
6352         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6353         letters.
6354         (xrealpath): ditto.
6355
6356 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6357
6358         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6359         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6360         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6361         Detect and handle case where machine is set up for metric units
6362
6363 2002-04-02  Andy Piper  <andy@xemacs.org>
6364
6365         * dired-msw.c (mswindows_get_files): 
6366         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6367         completely handled by XEmacs. Suggested by Thomas Vogler
6368         <mail@thomas-vogler.de>.
6369
6370 2001-11-14  Andy Piper  <andy@xemacs.org>
6371
6372         * nt.c (REG_ROOT): change registry key to XEmacs.
6373
6374 2002-04-27  Andy Piper  <andy@xemacs.org>
6375
6376         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6377
6378 2002-04-26  Andy Piper  <andy@xemacs.org>
6379
6380         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6381         behavior.
6382
6383 2002-03-14  Mike Alexander  <mta@arbortext.com>
6384
6385         * event-msw.c (mswindows_unwait_process): New, remove process from
6386         wait list
6387         * process-nt.c (nt_finalize_process_data): Call
6388         mswindows_unwait_process
6389         * console-msw.h: Declare mswindows_unwait_process
6390
6391 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6392
6393         * editfns.c (Fdecode_time):
6394         (Fformat_time_string):
6395         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6396         (make_time): Warning elimination (change arg name).
6397
6398 2001-11-24  Andy Piper  <andy@xemacs.org>
6399
6400         * window.c (Fsplit_window): Doc return type.
6401
6402 2002-04-01  Andy Piper  <andy@xemacs.org>
6403
6404         * emacs.c (Fkill_emacs): Only output message box in interactive
6405         mode.
6406
6407 2002-04-26  Andy Piper  <andy@xemacs.org>
6408  
6409         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6410         cygwin.
6411
6412 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6413
6414         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6415         bit platform.
6416
6417 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6418
6419         * XEmacs 21.4.8 "Honest Recruiter" is released.
6420
6421 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6422
6423         Supersedes 2002-04-17 patch.
6424
6425         * process.h (PROCESS_LIVE_P): Use the process status as
6426         evidence of health, not the state of the input stream.
6427         (PROCESS_READABLE_P): Say if the process is readable
6428         from. (It may be dead nonetheless.)
6429         (CHECK_READABLE_PROCESS): Test for that condition.
6430
6431         * process.c (create_process): Use PROCESS_READABLE_P.
6432         (read_process_output, set_process_filter): Likewise.
6433
6434         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6435         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6436
6437         This code is #if 0'd, this is not the time to add new functions:
6438
6439         * process.c (Fprocess_readable_p): Report readability status.
6440         * process.c (Qprocess_readable_p): New, associated symbol...
6441         * process.c (syms_of_process): ... initialize it.
6442
6443 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6444
6445         * XEmacs 21.4.7 "Economic Science" is released.
6446
6447 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6448
6449         * process.h (PROCESS_LIVE_P): Use the process status as
6450         evidence of health, not the state of the input stream.
6451
6452 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6453
6454         * sysdep.c (sys_siglist): change "signum" to "signal"
6455
6456 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6457
6458         * s/darwin.h: New file.
6459         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6460         
6461 2002-04-23  Andreas Jaeger  <aj@suse.de>
6462
6463         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6464         which use lib64 for 64-bit libs.
6465         (START_FILES): Likewise.
6466
6467 2002-02-11  Mike Sperber  <mike@xemacs.org>
6468
6469         * device-x.c: 
6470         (x_IO_error_handler):
6471         (x_init_device): Temporarily keep device in static variable
6472         `device_being_initialized' so we can recover gracefully from
6473         internal XOpenDevice failure.  (XOpenDevice is documented to
6474         return NULL on failure, but sometimes calls the IO error handler
6475         instead.)
6476
6477 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6478
6479         * dired.c (Ffile_name_all_completions): Change documentation --
6480         remove reference to completion-ignored-extensions.
6481         * dired.c (vars_of_dired): Change documentation for
6482         completion-ignored-extensions -- remove reference to
6483         file-name-all-completions.
6484
6485 2002-03-06  Jerry James  <james@xemacs.org>
6486
6487         * emodules.c (emodules_load): Fix multiple loading of same module.
6488
6489 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6490         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6491         RTLD_LAZY to avoid incorrect symbol binding when using nested
6492         shared libraries on Solaris.
6493
6494 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6495
6496         * fileio.c (Ffind_file_name_handler): Improve docstring.
6497
6498 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * fns.c (Fmapconcat): Improve docstring.
6501
6502 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6503
6504         * device-gtk.c: Add prototype for
6505         emacs_gtk_selection_clear_event_handle.
6506         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6507         selection.  Setup signal handler for "selection_clear_event"
6508         (emacs_gtk_selection_clear_event_handle).
6509
6510         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6511         other applications owning the clipboard (based on
6512         x_handle_selection_clear).
6513
6514 2001-12-23  William M. Perry  <wmperry@gnu.org>
6515
6516         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6517         
6518 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6519
6520         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6521
6522 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6523
6524         * XEmacs 21.4.6 "Common Lisp" is released.
6525
6526 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6527
6528         * search.c (Freplace_match): Add missing sub-expression functionality.
6529
6530         * buffer.c (decode_buffer): Add a check for pointer type to
6531         decode_buffer, before gcc's CSE optimization reorders a
6532         dereference in front of the allow_string test.
6533
6534 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6535
6536         * window.c (window_loop): Fix bug that sometimes prevented
6537         window_loop() from iterating across multiple devices.  Also, at
6538         Ben's request, changed infloop-detecting code to abort() instead
6539         of silently terminating window_loop().
6540
6541 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6542
6543         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6544         * editfns.c (make_time): New function.
6545         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6546         * lisp.h (make_time): Prototype and comment it.
6547         * dired.c (wasteful_word_to_lisp): Deprecate.
6548         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6549
6550 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6551
6552         * fileio.c (auto_save_1): Use current coding system, not
6553         escape-quoted.
6554
6555 2001-11-13  Ben Wing  <ben@xemacs.org>
6556
6557         * window.c:
6558         * window.c (window_truncation_on):
6559         * window.c (syms_of_window):
6560         truncate-partial-width-windows should respect the buffer being
6561         displayed, like other redisplay vars.
6562
6563 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6564
6565         * event-stream.c (Fread_key_sequence): save current buffer.
6566
6567 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6568
6569         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6570
6571 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6572
6573         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6574
6575 2001-10-26  Mike Alexander  <mta@arbortext.com>
6576
6577         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6578
6579 2001-10-25  Andy Piper  <andy@xemacs.org>
6580
6581         * ChangeLog:
6582         * dialog-msw.c (handle_directory_proc): new function.
6583          (handle_directory_dialog_box): new fucntion.
6584          (handle_file_dialog_box): use new directory dialog support.
6585          (mswindows_make_dialog_box_internal): ditto.
6586         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6587         handling.
6588         (mswindows_find_frame): make global.
6589         * fileio.c (Fexpand_file_name): build fix.
6590         * general-slots.h: add Qdirectory.
6591         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6592         handling.
6593         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6594         cygwin not leaving win32 paths unchanged.
6595         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6596         cygwin runtime to do path conversion.
6597         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6598         (syms_of_win32): add new function.
6599         * window.c (window_loop): build fix.
6600
6601 2001-10-15  Andy Piper  <andy@xemacs.org>
6602
6603         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6604
6605 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6606
6607         * XEmacs 21.4.5 "Civil Service" is released.
6608
6609 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6610
6611         * glyphs-x.c: Force buffer-tab highlight update when moving the
6612         buffer, avoiding an ugly black border, used for keyboard focus
6613         indication, on a widget that can never have keyboard focus, the
6614         buffer tab.
6615
6616 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6617
6618         * process-unix.c (unix_open_multicast_group): Remove too much
6619         conversion between host and network byte order.
6620
6621 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6622
6623         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6624         before replacing them.
6625
6626         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6627         operation.
6628
6629         * src/window.c (undedicate_windows): Use it.
6630         * src/window.h: Add prototype.
6631
6632 2001-09-17  Ben Wing  <ben@xemacs.org>
6633
6634         * fileio.c (normalize_filename):
6635         * fileio.c (Fexpand_file_name):
6636         Fix various C++ compile errors in Andy's recent code.
6637         
6638         * callint.c (Fcall_interactively):
6639         * editfns.c (Ftemp_directory):
6640         * editfns.c (Fuser_full_name):
6641         * emacs.c (argmatch):
6642         * lread.c (locate_file_map_suffixes):
6643         * redisplay-x.c (x_ring_bell):
6644         Fix sign-compare warnings.
6645         
6646 2001-09-08  Andy Piper  <andy@xemacs.org>
6647
6648         * fileio.c (normalize_filename): copied from nt.c
6649         * (Ffile_name_directory): enable win32 paths under cygwin.
6650         * (Ffile_name_nondirectory): ditto.
6651         * (directory_file_name): ditto.
6652         * (Fexpand_file_name): ditto.
6653         * (Ffile_truename): ditto.
6654         * (Fsubstitute_in_file_name): ditto.
6655         * (Ffile_name_absolute_p): ditto.
6656         * (Ffile_readable_p): ditto.
6657
6658 2001-09-08  Andy Piper  <andy@xemacs.org>
6659
6660         * device-msw.c (mswindows_finish_init_device): remove dde
6661         initialization.
6662         * device-msw.c (mswindows_init_dde): factor out from
6663         mswindows_finish_init_device()
6664         * device-msw.c (init_mswindows_very_early): new function
6665         initialize but don't enable dde.
6666         * emacs.c (main_1): call init_mswindows_very_early.
6667         * event-msw.c:
6668         * event-msw.c (mswindows_dde_callback): only execute when we are
6669         ready.
6670         * symsinit.h: declare init_mswindows_very_early.
6671
6672 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6673
6674         [sjt: This has been in 21.5 for months with no complaints.]
6675
6676         * console.h (struct console_methods): Added flags member.
6677         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6678         (CONMETH_IMPL_FLAG):
6679         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6680         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6681
6682         * device.c (window_system_pixelated_geometry): Use the above macros.
6683
6684         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6685         implememntation flag.
6686         * device.h (DEVICE_DISPLAY_P): Use it.
6687
6688         * frame.c (delete_frame_internal): Use the above macro.
6689
6690         * redisplay.c (redisplay_device): Use it.
6691         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6692         (redisplay_frame): Ditto.
6693
6694         * device-msw.c (mswindows_device_implementation_flags): Removed.
6695         (msprinter_device_implementation_flags): Removed.
6696         (console_type_create_device_mswindows): Removed references to
6697         implementation_flags methods, set implementation flags here.
6698         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6699
6700         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6701         (console_type_create_device_gtk): Removed method declaration.
6702         Added commented out statement which semantically matches the
6703         commented out statement in the above removed method.
6704
6705 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6706
6707         The attached patch fixes a few warnings. 
6708
6709         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6710         * src/frame-gtk.c: guard against GNOME calls in GTK only
6711         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6712         * src/select-gtk.c: prototype lisp_to_time
6713
6714 2001-06-08  Ben Wing  <ben@xemacs.org>
6715
6716         ------ gc-in-window-procedure fixes ------
6717         
6718         * alloc.c:
6719         * alloc.c (struct post_gc_action):
6720         * alloc.c (register_post_gc_action):
6721         * alloc.c (run_post_gc_actions):
6722         * alloc.c (garbage_collect_1):
6723         Create "post-gc actions", to avoid those dreaded "GC during window
6724         procedure" problems.
6725
6726         * event-msw.c:
6727         Abort, clean and simple, when GC in window procedure.  We want
6728         to flush these puppies out.
6729
6730         * glyphs-msw.c:
6731         * glyphs-msw.c (finalize_destroy_window):
6732         * glyphs-msw.c (mswindows_finalize_image_instance):
6733         Use a post-gc action when destroying subwindows.
6734
6735         * lisp.h:
6736         Declare register_post_gc_action().
6737
6738         * scrollbar-msw.c:
6739         * scrollbar-msw.c (unshow_that_mofo):
6740         Use a post-gc action when unshowing scrollbar windows, if in gc.
6741
6742         * redisplay.c (mark_redisplay):
6743         Add comment about the utter evilness of what's going down here.
6744
6745         ------ cygwin setitimer fixes ------
6746         
6747         * Makefile.in.in (sheap_objs):
6748         * Makefile.in.in (profile_objs):
6749         * Makefile.in.in (objs):
6750         Compile profile.c only when HAVE_SETITIMER.
6751         
6752         * nt.c (mswindows_sigset):
6753         * nt.c (mswindows_sighold):
6754         * nt.c (mswindows_sigrelse):
6755         * nt.c (mswindows_sigpause):
6756         * nt.c (mswindows_raise):
6757         * nt.c (close_file_data):
6758         Style fixes.
6759         
6760         * nt.c:
6761         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6762         
6763         * profile.c:
6764         * profile.c (Fstart_profiling):
6765         * profile.c (Fstop_profiling):
6766         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6767         instead of just plain setitimer().
6768         
6769         * signal.c:
6770         * signal.c (set_one_shot_timer):
6771         * signal.c (alarm):
6772         Define qxe_setitimer() as an encapsulation around setitimer() --
6773         call setitimer() directly unless Cygwin or MS Win, in which case
6774         we use our simulated version in win32.c.
6775         
6776         * systime.h:
6777         * systime.h (struct itimerval):
6778         * systime.h (ITIMER_REAL):
6779         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6780         comment about "qxe" and the policy regarding encapsulation.
6781
6782         * win32.c:
6783         * win32.c (setitimer_helper_proc):
6784         * win32.c (setitimer_helper_period):
6785         * win32.c (setitimer_helper):
6786         * win32.c (mswindows_setitimer):
6787         Move setitimer() emulation here, so Cygwin can use it.
6788         Rename a couple of functions and variables to be longer and more
6789         descriptive.  In setitimer_helper_proc(), send the signal
6790         using either mswindows_raise() or (on Cygwin) kill().  If for
6791         some reason we are still getting lockups, we'll change the kill()
6792         to directly invoke the signal handlers.
6793
6794         ------ windows shell fixes ------
6795         
6796         * callproc.c:
6797         * ntproc.c:
6798         Comments about how these two files must die.
6799
6800         * callproc.c (init_callproc):
6801         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6802         not just COMSPEC. (more correct and closer to FSF.) Don't
6803         force a value for SHELL into the environment. (Comments added
6804         to explain why not.)
6805         
6806         * nt.c (init_user_info):
6807         Don't shove a fabricated SHELL into the environment.  See above.
6808
6809 2001-06-01  Ben Wing  <ben@xemacs.org>
6810
6811         * Makefile.in.in (ldflags):
6812         eliminate that pesky "defaulting to 00401000" warning.
6813         * nt.h:
6814         eliminate warnings.
6815
6816 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6817
6818         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6819         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6820
6821 2001-04-24  Jerry James <james@xemacs.org>
6822
6823         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6824         correct order.
6825
6826 2001-06-01  Ben Wing  <ben@xemacs.org>
6827
6828         * event-msw.c (debug_mswin_messages):
6829         conditionalize the messages that were causing compile errors.
6830         (if only macros could generate #ifdef statements ...)
6831
6832 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6833
6834         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6835
6836 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6837
6838         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6839
6840 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6841
6842         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6843         * process-unix.c (unix_canonicalize_host_name):
6844         sysdep.c (init_system_name):
6845         Use it to conditionally support IPv6 canonicalization.
6846
6847 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6848
6849         * event-msw.c:
6850         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6851
6852 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6853
6854         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6855         attempt is made to scroll when no scroll bar is available.
6856
6857 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6858
6859         * input-method-motif.c (XIM_delete_frame): New callback.
6860         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6861         got deleted from 21.4.3.)
6862
6863 2001-06-01  Ben Wing  <ben@xemacs.org>
6864
6865         * nt.c (mswindows_utime):
6866         * nt.c (close_file_data):
6867         fix off-by-one-indirection error.
6868
6869 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6870
6871         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6872         because set_file_times() now takes Lisp_Object path, instead of
6873         char*.
6874         * nt.c: Include buffer.h.
6875         * nt.c (convert_from_time_t): New.
6876         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6877         not set mtime correctly.
6878         * nt.h: Declare mswindows_utime().
6879         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6880         path, instead of char*.
6881         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6882
6883 2001-05-30  Ben Wing  <ben@xemacs.org>
6884
6885         For 21.4:
6886
6887         (Stephen, just take all event-msw.c patches.  This includes
6888         the "iconify" fix below.)
6889
6890         * event-msw.c:
6891         * event-msw.c (mswindows_dequeue_dispatch_event):
6892         * event-msw.c (assert):
6893         * event-msw.c (emacs_mswindows_quit_p):
6894         * event-msw.c (debug_mswin_messages):
6895         * event-msw.c (debug_output_mswin_message):
6896         * event-msw.c (vars_of_event_mswindows):
6897         Fix yet more problems with C-g handling.
6898         Implement debug-mswindows-events.
6899         
6900 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6901
6902         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6903         
6904 2001-05-23  Ben Wing  <ben@xemacs.org>
6905
6906         * event-msw.c (winsock_writer):
6907         * event-msw.c (winsock_closer):
6908         prior kludgy code was clobbering the buffer, thinking it was
6909         "unused" space to store an unneeded return value; instead, use
6910         the variable we've already got staring us in the face.
6911
6912 2001-05-17  Andy Piper  <andy@xemacs.org>
6913
6914         * sysfile.h: don't assume that file attributes are boolean
6915
6916 2001-05-23  Ben Wing  <ben@xemacs.org>
6917
6918         * device-msw.c (msprinter_init_device):
6919         signal an error rather than crash with an unavailable network
6920         printer (from Mike Alexander).
6921         
6922         * event-msw.c:
6923         * event-msw.c (struct winsock_stream):
6924         * event-msw.c (winsock_writer):
6925         * event-msw.c (winsock_closer):
6926         * event-msw.c (make_winsock_stream_1):
6927         cleanup headers.  fix (hopefully) an error with data corruption
6928         when sending to a network connection.
6929
6930         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6931         to handle the ~user prefix by (a) always assuming we're referencing
6932         ourselves and not even verifying the user -- hence any file with
6933         a tilde as its first char is invalid! (b) if there wasn't a slash
6934         following the filename, the pointer was set *past* the end of
6935         file and we started reading from uninitialized memory.  Now we
6936         simply treat these as files, always.
6937
6938         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6939         
6940 2001-05-19  Ben Wing  <ben@xemacs.org>
6941
6942         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6943
6944         * process-nt.c:
6945         * process-nt.c (vars_of_process_nt):
6946         remove unused mswindows-quote-process-args.  rec for 21.4.
6947         
6948 2001-05-12  Ben Wing  <ben@xemacs.org>
6949
6950         * event-msw.c (mswindows_dde_callback):
6951         * event-msw.c (mswindows_wnd_proc):
6952         eliminate cygwin warnings.
6953
6954 2001-05-06  Ben Wing  <ben@xemacs.org>
6955
6956         * console-msw.h:
6957         * device-msw.c:
6958         * device-msw.c (print_dialog_worker):
6959         * device-msw.c (mswindows_handle_print_dialog_box):
6960         * device-msw.c (syms_of_device_mswindows):
6961         * dialog-msw.c (mswindows_make_dialog_box_internal):
6962         * general-slots.h:
6963         implement printing the selection when it's selected.
6964
6965 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6966
6967         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6968
6969 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6970
6971         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6972         EMACS_INT is signed.
6973
6974 2001-04-15  Michael Lausch  <mla@1012surf.net>
6975
6976         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6977         gtk_widget_request_size() to give scrollbar >0 width for
6978         GTK >1.2.8.
6979
6980 2001-05-30  William M. Perry  <wmperry@gnu.org>
6981
6982         * event-gtk.c: Check for buttons as modifier keys.
6983
6984 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6985
6986         * s\mingw32.h:
6987         Properly find MinGW's <process.h> inside Cygwin's restructured
6988         include directories.  Don't try to include <cygwin/version.h>
6989         since we are dropping support for MinGW in versions of Cygwin
6990         earlier than b21.
6991         * nt.c:
6992         Drop support for MinGW in versions of Cygwin before b21.
6993         * sysdep.c:
6994         Properly find MinGW's <process.h> inside Cygwin's restructured
6995         include directories.
6996         * syswindows.h:
6997         Drop support for MinGW in versions of Cygwin before b21.
6998         * unexcw.c:
6999         Even though a.out.h is no longer detected by configure, allow
7000         MinGW to use it until we figure out how to do the job with Win32.
7001
7002 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7003
7004         * syntax.c (find_start_of_comment):
7005         Fix `unbalanced parentheses' bug when dealing with mixed comment
7006         styles in c++/java/etc. mode
7007
7008 2001-05-29  Mike Alexander  <mta@arbortext.com>
7009
7010         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7011         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7012
7013 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7014
7015         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7016
7017 2001-03-31  Mike Sperber <mike@xemacs.org>
7018
7019         * search.c (Freplace_match): Support FSF-style specification of
7020         match subexpression when applied to a buffer.
7021
7022 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7023
7024         * event-stream.c (is_scrollbar_event): add missing semicolon
7025
7026 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7027
7028         * Makefile.in.in: Use TAR macro instead of hardcoding
7029           tar.  Allows use of GNU tar instead of system tar
7030
7031 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7032
7033         * event-stream.c (is_scrollbar_event): add missing semicolon
7034
7035 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7036
7037         * XEmacs 21.4.3 "Academic Rigor" is released.
7038
7039 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7040
7041         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7042
7043 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7044
7045         * buffer.c (Vcase_fold_search): Remove obsolete
7046           comment about non ASCII case-fold-search.  This
7047           bug has been fixed by case-table changes.
7048
7049 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7050
7051         * event-msw.c: Restore include of events-mod.h.
7052
7053 2001-04-22   zhaoway  <zw@debian.org>
7054
7055         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7056         !HAVE_SCROLLBARS.
7057
7058 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7059
7060         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7061
7062 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7063
7064         * mule-charset.c (Fmake_charset): Add missing else.
7065
7066 2001-04-23  Ben Wing  <ben@xemacs.org>
7067
7068         * event-msw.c (FAKE_MOD_QUIT):
7069         * event-msw.c (mswindows_dequeue_dispatch_event):
7070         * event-msw.c (mswindows_wnd_proc):
7071         * event-msw.c (emacs_mswindows_quit_p):
7072         Get critical quit working.
7073
7074 2001-05-05  Ben Wing  <ben@xemacs.org>
7075
7076         * console-msw.h:
7077         * device-msw.c:
7078         * device-msw.c (mswindows_get_default_margin):
7079         * frame-msw.c (mswindows_size_frame_internal):
7080         * frame-msw.c (msprinter_init_frame_1):
7081         * frame-msw.c (vars_of_frame_mswindows):
7082         Change top/bottom margin defaults to 0.5 inches.
7083
7084 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7085
7086         Fix link error with gcc 3.0 on Linux.
7087         * terminfo.c (UP): Remove.
7088         * terminfo.c (BC): Remove.
7089         * terminfo.c (PC): Remove.
7090         They weren't used, and in any case, these symbols should be
7091         defined in the *library*.
7092
7093 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7094
7095         * s/aix4.h: Fix crash with xlc -O3.
7096         Improve comment explaining how -O3 works.
7097
7098 2001-04-15  Ben Wing  <ben@xemacs.org>
7099
7100         * event-stream.c:
7101         * event-stream.c (Fnext_event):
7102         * event-stream.c (is_scrollbar_event):
7103         * event-stream.c (execute_command_event):
7104         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7105         crash' problem.  His fix introduces other problems.  We filter
7106         out scrollbar events specifically, making them somewhat invisible
7107         to command-building, and not appearing in `this-command-keys'.
7108         More work is still needed (see comments in event-stream.c), but
7109         this fixes all the major problems.
7110
7111 2001-04-20  Ben Wing  <ben@xemacs.org>
7112
7113         * .cvsignore: Added stuff for Windows.
7114
7115 2001-04-28  Ben Wing  <ben@xemacs.org>
7116
7117         * buffer.c (Ferase_buffer):
7118         * editfns.c (buffer_insert1):
7119         * editfns.c (Finsert_before_markers):
7120         * editfns.c (Finsert_string):
7121         * editfns.c (Finsert_char):
7122         * editfns.c (Fdelete_region):
7123         * editfns.c (Fwiden):
7124         * editfns.c (Fnarrow_to_region):
7125         remove bogus lines setting zmacs_region_stays to 0.
7126         
7127 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7128
7129         * process-unix.c (unix_open_network_stream): If connect() fails
7130         invalidate file descriptor after closing it.
7131
7132 2001-03-08  Mike Alexander  <mta@arbortext.com>
7133
7134         * event-msw.c (mswindows_need_event_in_modal_loop):
7135         Don't dispatch a message if we didn't get one.
7136         (mswindows_need_event):
7137         Terminate the correct process when one exits instead of the first
7138         one on Vprocess_list and look for process termination when in
7139         mswindows_protect_modal_loop.
7140
7141 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7142
7143         * XEmacs 21.4.1 "Copyleft" is released.
7144
7145 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7146
7147         * input-method-motif.c (XIM_delete_frame): New callback.
7148         (XIM_init_frame): Register it.
7149
7150 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7151
7152         * XEmacs 21.4.0 "Solid Vapor" is released.
7153
7154 2001-04-15  Ben Wing  <ben@xemacs.org>
7155
7156         * cmdloop.c (call_command_loop):
7157         Fix braino in bit-rotting code.
7158         
7159 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7160
7161         * extents.c (Fset_extent_endpoints): Force creation of extent info
7162         in buffer_or_string.
7163
7164         * extents.c (process_extents_for_insertion_mapper): Correctly
7165         check for open-open zero-length extents.
7166
7167 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7168
7169         * lisp.h: New typedefs Memory_count, Element_count.
7170         * regex.c:
7171         * regex.h:
7172         Sign-compare warning elimination: several unsigned -> signed.
7173         Based on work by Ben Wing <ben@xemacs.org>.
7174
7175 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7176
7177         * XEmacs 21.2.47 "Zephir" is released.
7178
7179 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7180
7181         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7182
7183 2001-04-03  Mike Sperber <mike@xemacs.org>
7184
7185         * search.c: Revert previous patch due because of release.
7186
7187 2001-03-30  Ben Wing  <ben@xemacs.org>
7188
7189         * s\cygwin32.h:
7190         Add missing killpg prototype.
7191
7192         * elhash.c:
7193         Add a comment about fixing problems when a new entry is added
7194         while mapping.
7195
7196         * frame-msw.c (mswindows_init_frame_1):
7197         Fix compile warnings.
7198
7199         * menubar.c (vars_of_menubar):
7200         Provide `menu-accelerator-support' to indicate that we properly
7201         support %_ in menu specifications, so that package code can
7202         conditionalize on this (and remove %_ from menu specifications
7203         on older versions).
7204
7205         * event-msw.c:
7206         * scrollbar-msw.c:
7207         * scrollbar-msw.c (can_scroll):
7208         * scrollbar-msw.h:
7209         Fix handling of mouse wheel under Windows to follow standards --
7210         now scrolls window under pointer, not selected window.
7211
7212 2001-03-31  Mike Sperber <mike@xemacs.org>
7213
7214         * search.c (Freplace_match): Support FSF-style specification of
7215         match subexpression when applied to a buffer.
7216
7217 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7218
7219         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7220         function to modify KEYMAP, so map over a copy of the hash table.
7221
7222 2001-03-21  Martin Buchholz <martin@xemacs.org>
7223
7224         * XEmacs 21.2.46 "Urania" is released.
7225
7226 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7227
7228         * realpath.c (xrealpath): Make file-truename work with symlinks to
7229         /cygdrive paths on cygwin. Always lowercase drive-letters on
7230         native windows.
7231         (cygwin_readlink): Don't try to find canonical filename unless
7232         file exists.
7233
7234 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7235
7236         * ChangeLog: Log GTK merge.
7237
7238         * dumper.c:
7239         * select-x.c:
7240         * specifier.c:
7241         * symeval.h:
7242         Revert gratuitous whitespace changes from GTK merge.
7243
7244         * emacs.c: Document end of complex #ifdef @ l. 1495.
7245
7246
7247 2001-03-12  Andy Piper  <andy@xemacs.org>
7248
7249         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7250         have to do likewise.
7251
7252 2001-03-12  Andy Piper  <andy@xemacs.org>
7253
7254         * sysdep.c: we only support mingw now.
7255
7256 2001-03-09  Andy Piper  <andy@xemacs.org>
7257
7258         * unexcw.c (copy_executable_and_dump_data_section): making approx
7259         overrun a warning only.
7260
7261 2001-03-10  William M. Perry  <wmperry@aventail.com>
7262
7263         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7264         satisfy Stephen's identical-after-cpp plea.
7265
7266 2001-03-02  Ben Wing  <ben@xemacs.org>
7267
7268         * cmds.c:
7269         * cmds.c (Fforward_char):
7270         * syntax.c:
7271         * window.c:
7272
7273         Augment documentation of the most common motion commands to make
7274         note of the shifted-motion support.
7275         
7276 2001-03-02  Ben Wing  <ben@xemacs.org>
7277
7278         * nt.c (mswindows_fstat):
7279         * nt.c (mswindows_stat):
7280         * search.c (boyer_moore):
7281         Fix compile warnings under Windows.
7282         
7283         * sysdep.c (sys_readdir):
7284         Fix buggy filename-conversion code under Mule.
7285
7286 2001-03-09  William M. Perry  <wmperry@aventail.com>
7287
7288         * Makefile.in.in:
7289         * config.h.in:
7290         * console.c:
7291         * console.h:
7292         * device.c:
7293         * device.h:
7294         * dragdrop.c:
7295         * emacs.c:
7296         * event-stream.c:
7297         * events.c:
7298         * events.h:
7299         * faces.c:
7300         * frame.h:
7301         * general-slots.h:
7302         * glyphs.c:
7303         * gutter.c:
7304         * inline.c:
7305         * lisp.h:
7306         * lrecord.h:
7307         * make-src-depend:
7308         * redisplay-output.c:
7309         * redisplay.c:
7310         * symsinit.h:
7311         * sysfile.h:
7312         * toolbar.c:
7313         * window.c:
7314         The Great GTK Merge.
7315
7316         * ChangeLog.GTK:
7317         * console-gtk.c:
7318         * console-gtk.h:
7319         * device-gtk.c:
7320         * emacs-marshals.c:
7321         * emacs-widget-accessors.c:
7322         * event-gtk.c:
7323         * frame-gtk.c:
7324         * gccache-gtk.c:
7325         * gccache-gtk.h:
7326         * glade.c:
7327         * glyphs-gtk.c:
7328         * glyphs-gtk.h:
7329         * gtk-glue.c:
7330         * gtk-xemacs.c:
7331         * gtk-xemacs.h:
7332         * gui-gtk.c:
7333         * gui-gtk.h:
7334         * menubar-gtk.c:
7335         * native-gtk-toolbar.c:
7336         * objects-gtk.c:
7337         * objects-gtk.h:
7338         * redisplay-gtk.c:
7339         * scrollbar-gtk.c:
7340         * scrollbar-gtk.h:
7341         * select-gtk.c:
7342         * toolbar-gtk.c:
7343         * ui-byhand.c:
7344         * ui-gtk.c:
7345         * ui-gtk.h:
7346         The Great GTK Merge: new files.
7347
7348 2001-02-26  Ben Wing  <ben@xemacs.org>
7349
7350         Reapplied Lstream change.
7351
7352 2001-02-26  Ben Wing  <ben@xemacs.org>
7353
7354         Undid the last change, since it is more controversial than I
7355         thought.  It should be back in at some point soon.
7356         
7357 2001-02-25  Ben Wing  <ben@xemacs.org>
7358
7359         * buffer.c:
7360         * callproc.c (Fold_call_process_internal):
7361         * event-msw.c (ntpipe_slurp_reader):
7362         * event-msw.c (ntpipe_shove_writer):
7363         * event-msw.c (winsock_reader):
7364         * event-msw.c (winsock_writer):
7365         * file-coding.c:
7366         * file-coding.c (detect_eol_type):
7367         * file-coding.c (detect_coding_type):
7368         * file-coding.c (determine_real_coding_system):
7369         * file-coding.c (Fdetect_coding_region):
7370         * file-coding.c (decoding_reader):
7371         * file-coding.c (decoding_writer):
7372         * file-coding.c (mule_decode):
7373         * file-coding.c (Fdecode_coding_region):
7374         * file-coding.c (encoding_reader):
7375         * file-coding.c (encoding_writer):
7376         * file-coding.c (mule_encode):
7377         * file-coding.c (Fencode_coding_region):
7378         * file-coding.c (detect_coding_sjis):
7379         * file-coding.c (decode_coding_sjis):
7380         * file-coding.c (encode_coding_sjis):
7381         * file-coding.c (detect_coding_big5):
7382         * file-coding.c (decode_coding_big5):
7383         * file-coding.c (encode_coding_big5):
7384         * file-coding.c (detect_coding_ucs4):
7385         * file-coding.c (decode_coding_ucs4):
7386         * file-coding.c (encode_coding_ucs4):
7387         * file-coding.c (detect_coding_utf8):
7388         * file-coding.c (decode_coding_utf8):
7389         * file-coding.c (encode_coding_utf8):
7390         * file-coding.c (detect_coding_iso2022):
7391         * file-coding.c (decode_coding_iso2022):
7392         * file-coding.c (encode_coding_iso2022):
7393         * file-coding.c (decode_coding_no_conversion):
7394         * file-coding.c (encode_coding_no_conversion):
7395         * glyphs-x.c (write_lisp_string_to_temp_file):
7396         * gpmevent.c (tty_get_foreign_selection):
7397         * lisp.h:
7398         * lstream.c:
7399         * lstream.c (Lstream_flush_out):
7400         * lstream.c (Lstream_adding):
7401         * lstream.c (Lstream_write_1):
7402         * lstream.c (Lstream_write):
7403         * lstream.c (Lstream_raw_read):
7404         * lstream.c (Lstream_read_more):
7405         * lstream.c (Lstream_read):
7406         * lstream.c (Lstream_unread):
7407         * lstream.c (Lstream_fputc):
7408         * lstream.c (stdio_reader):
7409         * lstream.c (stdio_writer):
7410         * lstream.c (filedesc_reader):
7411         * lstream.c (filedesc_writer):
7412         * lstream.c (lisp_string_reader):
7413         * lstream.c (struct fixed_buffer_stream):
7414         * lstream.c (make_fixed_buffer_input_stream):
7415         * lstream.c (make_fixed_buffer_output_stream):
7416         * lstream.c (fixed_buffer_reader):
7417         * lstream.c (fixed_buffer_writer):
7418         * lstream.c (struct resizing_buffer_stream):
7419         * lstream.c (resizing_buffer_writer):
7420         * lstream.c (dynarr_writer):
7421         * lstream.c (lisp_buffer_reader):
7422         * lstream.c (lisp_buffer_writer):
7423         * lstream.h:
7424         * lstream.h (lstream_implementation):
7425         * lstream.h (struct lstream):
7426         * md5.c (Fmd5):
7427         * process-nt.c (nt_send_process):
7428         * process-unix.c (unix_send_process):
7429         
7430         Correct Lstream lossage due to mixing of signed and unsigned
7431         quantities.  All Lstream uses of size_t and ssize_t are now a
7432         single signed data type Lstream_data_count.  This fixes problems
7433         under Windows with sending large quantities of data to a process,
7434         and may well fix other subtle bugs.
7435
7436 2001-02-23  Martin Buchholz <martin@xemacs.org>
7437
7438         * XEmacs 21.2.45 "Thelxepeia" is released.
7439
7440 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7441
7442         * lisp-union.h (XSETINT): 
7443         (XSETCHAR):
7444         (XSETOBJ): 
7445         Reverse previous change of 2001-02-06.
7446
7447 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7448
7449         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7450         buffers.
7451         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7452         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7453         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7454         * regex.c (POS_AS_IN_BUFFER): removed
7455         * regex.c (re_search_2):
7456         * regex.c (re_match_2):
7457         Don't use an offset of 1 when calculating buffer positions, since
7458         `BI_BUF_BEGV' does it already.
7459
7460 2001-02-18  Wim Dumon  <wim@easics.be>
7461
7462         * insdel.c (prepare_to_modify_buffer): Also check for
7463         supersession when clash-detection is enabled. 
7464
7465 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7466
7467         * regex.c (re_match_2_internal):
7468         Convert temp characters from 'const unsigned char' to 're_char'.
7469         Fix crashing bug with extended characters under mule.
7470         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7471         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7472         font-lock, pdump, and new syntax-table code.
7473         * syntax.c (find_start_of_comment):
7474         (find_end_of_comment):
7475         (forward-comment):
7476         Fix crashing bugs involving moving beyond end of buffer.
7477         * syntax.c (find_start_of_comment):
7478         Fixed logic to allow proper detection of cases where the same
7479         character is used to end both a two-char comment start and a
7480         two-char comment end sequence. Fixes `(forward-comment -1)'.
7481         * syntax.c (find_start_of_comment):
7482         Return position just past last comment-end character for all cases
7483         (previously was only done for two-char comment-end sequences).
7484         * syntax.c (forward-comment):
7485         Take value returned from `find_end_of_comment', rather than
7486         incrementing it.
7487         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7488         Properly deal with BUFFERP (syntax_cache.object)
7489
7490 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7491
7492         * alloc.c (Fgarbage_collect): 
7493         * alloc.c (make_bit_vector_from_byte_vector):
7494         -Wsign-compare-correctness.
7495
7496 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7497
7498         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7499         (XSETCHAR): Likewise.
7500         (XSETOBJ): Likewise.
7501
7502 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7503
7504         * mule-canna.c (canna-func-delete_previous): 
7505         Rename to canna-func-delete-previous.
7506
7507 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7508
7509         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7510
7511 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7512
7513         * font-lock.c (find_context): Fix C++ compile errors introduced by
7514         recent patch
7515
7516 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7517
7518         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7519         pragma, but earlier ones barf on the same pragma.
7520
7521 2001-02-06  Mike Sperber <mike@xemacs.org>
7522
7523         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7524         `configure-mule-lisp-directory'.
7525
7526 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7527
7528         Make sure dump-id.c is compiled in the same way as other .c's.
7529         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7530         * dump-id.h: Remove.
7531         * emacs.c: Move dump-id.h into dumper.h.
7532         * dumper.h: Move dump-id.h into dumper.h.
7533         * Makefile.in.in:
7534         Use standard .c.o rule for building dump-id.o.
7535         Remove preprocessor flags from link command.
7536         Add dump-id.o to ${otherobjs} if PDUMP.
7537
7538 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7539
7540         Port FSF 20.7 syntax table improvements.
7541         * syntax.c.
7542         * syntax.h.
7543
7544         Fixups for new syntax table stuff.
7545         * dired.c: Include syntax.c.
7546         (Fdirectory_files): Initialize regex_match_object and
7547         regex_emacs_buffer.
7548         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7549         and Fget_char_property.
7550
7551         Use ported FSF 20.7 syntax table improvements.
7552         * font-lock.c.
7553         * regex.c.
7554         * search.c.
7555         
7556 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7557
7558         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7559         Unixware's enum boolean from sys/types.h.
7560
7561 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7562
7563         Fix support for building with latest Purify.
7564         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7565         (PURIFY_FLAGS): Likewise.
7566
7567 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7568
7569         * fileio.c (lisp_string_set_file_times): New.
7570         * fileio.c (Fcopy_file): Use it.
7571         Fixes bug:
7572         (copy-file filename non-ascii-filename t t)
7573         ==> No such file or directory, non-ascii-filename
7574
7575 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7576
7577         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7578         USHRT_MAX seems clearer than ~0 anyways.
7579
7580 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7581
7582         dumper improvements.  Inspired by Olivier.
7583         * dumper.c (pdump_max_align): New.
7584         * dumper.c (pdump_add_entry): Use pdump_max_align.
7585         * dumper.c (pdump_get_entry_list): Likewise.
7586         * dumper.c (pdump_scan_by_alignment): Likewise.
7587         Don't iterate through unnecessary alignments.
7588         * dumper.c (pdump_file_get): No need to align result of malloc().
7589         * dumper.c (pdump_mallocadr): Remove.  
7590         The result of malloc() is guaranteed to be maximally aligned.
7591         * dumper.c: s/elmt/elt/g;
7592         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7593         * dumper.c (pdump_alert_undump_object): Likewise.
7594         * dumper.c (pdump_align_table): 
7595         Don't support alignments > 64.
7596         Store ALIGNOF's, not shift counts, in table.
7597
7598 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7599
7600         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7601         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7602         * systime.h: Use HAVE_UTIME.
7603         * sysdep.c (struct utimbuf): Remove.
7604         * sysdep.c (set_file_times): Prefer utime() to utimes().
7605         * config.h.in (HAVE_UTIME): New.
7606         * config.h.in (HAVE_UTIME_H): Remove.
7607         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7608
7609 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7610
7611         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7612
7613 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7614
7615         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7616
7617 2001-02-08  Martin Buchholz <martin@xemacs.org>
7618
7619         * XEmacs 21.2.44 "Thalia" is released.
7620
7621 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7622
7623         Fixes crashes in kill-emacs on some systems.
7624         * process-unix.c (unix_kill_child_process):
7625         It's OK for kill() to fail with ESRCH.
7626
7627 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7628
7629         Contortions to make .gdbinit tricks work on most systems.
7630         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7631         * alloc.c (dbg_valmask): Make non-const.
7632         * alloc.c (dbg_typemask): Make non-const.
7633         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7634         * alloc.c (dbg_valbits): Make non-const.
7635         * alloc.c (dbg_gctypebits): Make non-const.
7636         * .gdbinit (decode_object): Make it work with AIX cc.
7637
7638 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7639
7640         * elhash.c (make_general_lisp_hash_table):
7641         Use simpler and more efficient calloc to clear entries.
7642
7643 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7644
7645         * window.c (window_scroll): Work around an AIX C compiler bug.
7646         Fixes 'scroll-up' does nothing problem with xlC.
7647
7648 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7649
7650         * .gdbinit: Remove obsolete comment.
7651
7652 2001-01-31  Mike Alexander  <mta@arbortext.com>
7653
7654         * select.c (Fown_selection_internal): Set owned_p for device
7655         method correctly.
7656
7657 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7658
7659         Port to g++ 2.97.
7660         "not" cannot be used as a macro name as it is an operator in C++
7661         * config.h.in: Stop #defining `not'.
7662         * chartab.c (check_category_char): not ==> not_p
7663         * chartab.h: Likewise.
7664         * regex.c (re_match_2_internal): Likewise.
7665
7666 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7667
7668         * lisp-disunion.h: Fix up comments.
7669
7670 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7671
7672         * keymap.c (define_key_check_and_coerce_keysym):
7673         (syms_of_keymap):
7674         Support mouse-6 and mouse-7 bindings in the obvious way.
7675
7676 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7677
7678         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7679
7680 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7681
7682         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7683         Previous patch missed DEFVAR_INT_MAGIC.
7684         Make sure future DEFVAR_foo use correct types.
7685         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7686         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7687         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7688         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7689         * (DEFVAR_INT): Likewise.
7690         * redisplay.c (vertical_clip): Should be of type Fixnum.
7691         * redisplay.c (horizontal_clip): Likewise.
7692         * lisp.h (dump_add_opaque_int): New.
7693         (dump_add_opaque_fixnum): New.
7694
7695 2001-01-29  Andy Piper  <andy@xemacs.org>
7696
7697         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7698         since they can be eval'ed
7699
7700 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7701
7702         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7703         Oops, XEmacs redefines `class'.  Use `typename' instead.
7704
7705 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7706
7707         * dumper.c: Fix C++ compile errors.
7708
7709 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7710
7711         * tparam.c: Use correct prototypes.
7712
7713 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7714
7715         * sysproc.h: #include util.h for NetBSD's openpty.
7716
7717 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7718
7719         More 64-bit correctness.
7720         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7721         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7722         Fix up comments.
7723         This finally finishes the 64-bit SGI port.
7724         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7725         * symbols.c: Fix up comments and type casts.
7726         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7727         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7728         * symeval.h (Fixnum): New type.
7729         * symeval.h (symbol_value_type): Fix up comment.
7730
7731         * commands.h:
7732         * nt.c:
7733         * emacs.c:
7734         * data.c:
7735         * redisplay.c:
7736         * abbrev.c:
7737         * dired-msw.c:
7738         * event-Xt.c:
7739         * eldap.c:
7740         * window.c:
7741         * sound.c:
7742         * event-stream.c:
7743         * eval.c:
7744         * buffer.c:
7745         * mule-canna.c: A million DEFVAR_INTs here...
7746         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7747         * extents.c:
7748         * cmdloop.c:
7749         * lisp.h:
7750         * select-x.c:
7751         * console-x.h:
7752         * event-msw.c:
7753         * mule-wnnfns.c:
7754         * hpplay.c:
7755         * ralloc.c:
7756         * alloc.c:
7757         * keymap.c:
7758         * profile.c:
7759         s/int/Fixnum/g in DEFVAR_INT declarations.
7760
7761 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7762
7763         Port pdump to SGI alignment-sensitive environment.
7764         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7765         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7766         properly aligned.
7767         Define and use aligned reading and writing macros.
7768         Use buffered stdio instead of posix i/o for faster dumping.
7769         Eliminate kludgy 256 byte space for header.
7770         Read and write from dump file using structs for alignment safety.
7771         * dumper.c (pdump_align_stream): New.
7772         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7773         * dumper.c (PDUMP_READ_ALIGNED): New.
7774         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7775         * dumper.c (pdump_static_Lisp_Object): New struct.
7776         * dumper.c (pdump_static_pointer): New struct.
7777         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7778         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7779         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7780         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7781
7782         * dumper.c (pdump_backtrace):
7783         * dumper.c (pdump_get_indirect_count):
7784         * dumper.c (pdump_register_object):
7785         * dumper.c (pdump_register_struct):
7786         * dumper.c (pdump_reloc_one):
7787         * dumper.c (pdump_scan_by_alignment):
7788         * dumper.c (pdump_dump_from_root_struct_ptrs):
7789         * dumper.c (pdump_dump_opaques):
7790         * dumper.c (pdump_dump_rtables):
7791         * dumper.c (pdump_dump_from_root_objects):
7792         * dumper.c (pdump):
7793         * dumper.c (pdump_load_finish):
7794         Use aligned reading and writing.
7795
7796         * dumper.c (pdump_free): Make static.
7797         * dumper.c (pdump_hFile): Likewise.
7798         * dumper.c (pdump_hMap): Likewise.
7799
7800 2001-01-26  Martin Buchholz <martin@xemacs.org>
7801
7802         * XEmacs 21.2.43 "Terspichore" is released.
7803
7804 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7805
7806         Type fiddling for window_config.saved_windows_count
7807         * window.c (struct window_config): 
7808         Make saved_windows_count member unsigned.
7809         * window.c (sizeof_window_config_for_n_windows): 
7810         Make parameter unsigned.
7811         * window.c (mark_window_config):
7812         * window.c (window_config_equal):
7813         * window.c (free_window_configuration):
7814         * window.c (Fset_window_configuration):
7815         * window.c (count_windows):
7816         * window.c (Fcurrent_window_configuration):
7817         * window.c (reinit_vars_of_window):
7818         Update all callers and users.
7819
7820 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7821
7822         Alignment correctness for flexible arrays.
7823         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7824         Make alignment-correct. Add interesting comments.
7825         * alloc.c (size_vector):
7826         * alloc.c (make_vector_internal):
7827         * alloc.c (make_bit_vector_internal):
7828         * alloc.c (sweep_bit_vectors_1):
7829         * fns.c (size_bit_vector):
7830         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7831         * window.c (sizeof_window_config_for_n_windows): 
7832         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7833
7834 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7835
7836         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7837
7838 2001-01-23  Andy Piper  <andy@xemacs.org>
7839
7840         * select.c (Fown_selection_internal): pass owned_p
7841
7842         * select-msw.c (mswindows_own_selection): New Signature.
7843
7844         * console.h (struct console_methods): add owned_p to
7845         _own_selection.
7846
7847         * select-x.c (x_own_selection): pass owned_p
7848         (hack_motif_clipboard_selection): use owned_p
7849         (vars_of_select_x): new variable -
7850         x_selection_strict_motif_ownership.
7851
7852 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7853
7854         * specifier.h (specifier_data_offset): Remove pointless parens.
7855         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7856
7857 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7858
7859         Make Lisp_Object sizeof methods be alignment-correct.
7860         pdump must restore objects to the same alignment as the C compiler
7861         assumes.  It really matters on SGIs.
7862         * lstream.c (aligned_sizeof_lstream): New.
7863         (sizeof_lstream): Use aligned_sizeof_lstream.
7864         (Lstream_new): Likewise.
7865         * opaque.c (aligned_sizeof_opaque): New.
7866         (sizeof_opaque): Use aligned_sizeof_opaque.
7867         (make_opaque): Likewise.
7868         * specifier.c (aligned_sizeof_specifier): New.
7869         (sizeof_specifier): Use aligned_sizeof_specifier.
7870         (make_specifier_internal): Likewise.
7871
7872 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7873
7874         * lstream.h (struct lstream): Use max_align_t for trailing data.
7875         * specifier.h (struct Lisp_Specifier): Likewise.
7876
7877 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7878
7879         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7880         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7881         (CCL_SUSPEND): Likewise.
7882         (CCL_INVALID_CMD): Likewise.
7883         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7884         (ccl_driver): Likewise.
7885         (CCL_WRITE_CHAR): Macro hygiene.
7886         (CCL_WRITE_STRING): Macro hygiene.
7887
7888 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7889
7890         Port "portable" dumper to SunOS 4 and HP-UX.
7891         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7892         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7893         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7894
7895 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7896
7897         * lisp.h (ALIGNOF): A better definition for C++.
7898
7899 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7900
7901         Macro hygiene.
7902         Fix printf warnings: int format, long int arg.
7903         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7904         (PUSH_FAILURE_POINT): Use correct printf formats.
7905         (POP_FAILURE_POINT): Use correct printf formats.  
7906         Use do {...} while (0)
7907
7908 2001-01-20  Martin Buchholz <martin@xemacs.org>
7909
7910         * XEmacs 21.2.42 "Poseidon" is released.
7911
7912 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7913
7914         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7915
7916 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7917
7918         De-kludgify FIXED_TYPE free list frobbing.
7919         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7920         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7921         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7922         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7923         * alloc.c (LRECORD_FREE_P): New.
7924         * alloc.c (MARK_LRECORD_AS_FREE): New.
7925         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7926         * alloc.c (STRUCT_FREE_P): Deleted.
7927         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7928         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7929         * alloc.c (STRING_CHARS_FREE_P): New.
7930         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7931         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7932         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7933         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7934         * alloc.c (resize_string): Use new definitions.
7935         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7936         * alloc.c (verify_string_chars_integrity): Use new definitions.
7937         * alloc.c (compact_string_chars): Use new definitions.
7938         * alloc.c: Update monster comments.
7939         * lrecord.h (lrecord_type): Add some new lrecord types for
7940         alloc.c's use.
7941
7942 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7943
7944         Improve alignment hackery.
7945         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7946         (max_align_t): Moved from opaque.h - general purpose.
7947         (ALIGN_PTR): Use size_t, not long.
7948         * opaque.h (max_align_t): Move to lisp.h.
7949
7950 2001-01-18  Norbert Koch  <nk@LF.net>
7951
7952         * gui.h: Fix and add prototypes to fix build problems.
7953
7954 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7955
7956         temacs is going away, so `dump-temacs' is now a bad name.
7957         * .dbxrc (dump-temacs): Rename to `dmp'.
7958         * .gdbinit (dump-temacs): Rename to `dmp'.
7959
7960 2001-01-17  Andy Piper  <andy@xemacs.org>
7961
7962         * glyphs.c (print_image_instance): comment to make martin happy.
7963
7964         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7965         change.
7966
7967         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7968         activation.
7969         (mswindows_tab_control_redisplay): warning suppression.
7970
7971         * glyphs-widget.c (widget_update): re-write to cope with updated
7972         items.
7973         (widget_instantiate): use new gui_item functions.
7974         (tab_control_update): deleted.
7975         (progress_gauge_update): deleted.
7976         (image_instantiator_progress_guage): take out update reference.
7977         (image_instantiator_tree_view): ditto.
7978         (image_instantiator_tab_control): ditto.
7979
7980         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7981         Right the new way.
7982         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7983         return whether anything was changed.
7984         (update_gui_item_keywords): as it sounds.
7985
7986         * gui.h: declare widget_gui_parse_item_keywords.
7987
7988         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7989         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7990
7991 2001-01-17  Martin Buchholz <martin@xemacs.org>
7992
7993         * XEmacs 21.2.41 "Polyhymnia" is released.
7994
7995 2001-01-16  Didier Verna  <didier@xemacs.org>
7996
7997         * glyphs.c (image_instantiate): don't use fallbacks when
7998         instantiating a face's background pixmap by inheritance.
7999
8000 2001-01-14  Mike Sperber <mike@xemacs.org>
8001
8002         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8003         Conditionalize accordingly.
8004
8005 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8006
8007         * dumper.c (pdump_file_get): Fix a compiler warning.
8008
8009 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8010
8011         Make Purify happy when pdumping.
8012         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8013         iniitalizing all bits of new lisp object memory.
8014         * symbols.c (Fmake_local_variable): Likewise.
8015         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8016         * symbols.c (Fdefvaralias): Likewise.
8017         * mule-charset.c (vars_of_mule_charset): Likewise.
8018
8019 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8020         Add the `-nd' flag when running pre-dump operations under the debugger.
8021         * .dbxrc (run-temacs): Add `-nd'.
8022         * .dbxrc (update-elc): Likewise.
8023         * .dbxrc (dump-temacs): Likewise.
8024         * .gdbinit (run-temacs): Likewise.
8025         * .gdbinit (check-temacs): Likewise.
8026         * .gdbinit (update-elc): Likewise.
8027         * .gdbinit (dump-temacs): Likewise.
8028
8029 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8030
8031         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8032         export OBJECT_MODE=64
8033         configure --pdump --use-union-type=no
8034         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8035         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8036
8037         * miscplay.c (sndcnv8U_2mono):
8038         Avoid two uses of `++' in the same expression.
8039         Suppresses a GCC warning.
8040
8041 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8042
8043         Make sure future compilers don't miscompile alloc.c.
8044         * alloc.c:
8045         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8046         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8047
8048 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8049
8050         * dumper.c: A little post-pdump-rename comment fixup.
8051
8052 2001-01-09  Jerry James  <james@eecs.ku.edu>
8053
8054         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8055
8056 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8057
8058         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8059         script:
8060         #!/bin/sh
8061         replace_symbol () {
8062           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8063         }
8064
8065         replace_symbol pdump_wire_lists pdump_weak_object_chains
8066         replace_symbol pdump_wire_list dump_add_weak_object_chain
8067
8068         replace_symbol pdump_wires pdump_root_objects
8069         replace_symbol pdump_wire dump_add_root_object
8070
8071         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8072         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8073
8074         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8075         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8076         replace_symbol dumpstructinfo pdump_root_struct_ptr
8077         replace_symbol dumpstruct dump_add_root_struct_ptr
8078
8079         replace_symbol dumpopaque dump_add_opaque
8080         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8081         replace_symbol dumpopaqueinfos pdump_opaques
8082         replace_symbol dumpopaqueinfo pdump_opaque
8083
8084         replace_symbol nb_structdump nb_root_struct_ptrs
8085         replace_symbol nb_opaquedump nb_opaques
8086
8087         replace_symbol align_table pdump_align_table
8088         replace_symbol dump_header pdump_header
8089
8090         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8091         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8092
8093
8094 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8095
8096         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8097         optimizing bytecount_to_charcount().
8098
8099 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8100
8101         * config.h.in:
8102         (HAVE_DLFCN_H): Removed.
8103         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8104
8105 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8106
8107         Portable dumper maintainability improvements.
8108         * alloc.c (staticpro):
8109         * alloc.c (staticpro_nodump):
8110         * alloc.c (garbage_collect_1):
8111         * alloc.c (reinit_alloc_once_early):
8112         * alloc.c (init_alloc_once_early):
8113         * alloc.c: Move dumper functions to alloc.c.
8114         * dumper.c (pdump_backtrace):
8115         * dumper.c (pdump_dump_structs):
8116         * dumper.c (pdump_dump_opaques):
8117         * dumper.c (pdump_dump_rtables):
8118         * dumper.c (pdump_dump_wired):
8119         * dumper.c (pdump):
8120         * dumper.c (pdump_load_check):
8121         * dumper.c (pdump_load_finish):
8122         * dumper.c (pdump_file_unmap):
8123         * dumper.c (pdump_file_get):
8124         * dumper.c (pdump_resource_free):
8125         * dumper.c (pdump_resource_get):
8126         * dumper.c (pdump_file_free):
8127         * dumper.c (pdump_file_try):
8128         * dumper.c (pdump_load):
8129         Remove fixed size limits on staticpro(), staticpro_nodump(),
8130         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8131         Remove custom code for dumping lrecord_implementations_table - use
8132         dumpopaque instead.
8133         Remove (most of the) custom code for dumping staticpros - dump it
8134         like any other dynarr.
8135
8136         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8137         * dumper.c: Moved functions from alloc.c.
8138         * alloc.c (dumpstruct): Moved to dumper.c.
8139         * alloc.c (dumpopaque): Likewise.
8140         * alloc.c (pdump_wire): Likewise.
8141         * alloc.c (pdump_wire_list): Likewise.
8142
8143         * lisp.h (Dynarr_sizeof): New.
8144         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8145         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8146         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8147
8148         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8149         * lisp.h (dumpopaque): ditto.
8150         * lisp.h (pdump_wire): ditto.
8151         * lisp.h (pdump_wire_list): ditto.
8152
8153 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8154
8155         * make-src-depend (PrintPatternDeps):
8156         Use `sort' to make output independent of perl version.
8157
8158 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8159
8160         Port to Netbsd 1.5.
8161         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8162         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8163
8164 2001-01-03  Didier Verna  <didier@xemacs.org>
8165
8166         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8167         that `focus_frame' is alive before thinking of calling
8168         `redisplay_redraw_cursor' on it.
8169
8170 2001-01-08  Martin Buchholz <martin@xemacs.org>
8171
8172         * XEmacs 21.2.40 is released.
8173
8174 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8175
8176         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8177
8178 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8179
8180         * alloc.c (dbg_valmask): Make const.
8181         * alloc.c (dbg_typemask): Make const.
8182         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8183         * alloc.c (dbg_valbits): Make const.
8184         * alloc.c (dbg_gctypebits): Make const.
8185
8186 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8187
8188         * redisplay-x.c (x_bevel_area):
8189         redisplay.h (struct rune):
8190         Typo fixes in comments.
8191
8192 2001-01-05  Andy Piper  <andy@xemacs.org>
8193
8194         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8195         adjustment.
8196
8197         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8198
8199 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8200
8201         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8202
8203         * mule-ccl.c (stack_idx_of_map_multiple):
8204         Non const global data must not be initialized!
8205         Found by MIYASHITA Hisashi.
8206
8207 2001-01-02  Andy Piper  <andy@xemacs.org>
8208
8209         * frame.c (change_frame_size): make sure frame size is always
8210         marked as changed.
8211
8212         * glyphs.c (image_instance_layout): minor code reuse.
8213
8214         * window.c (Fcurrent_window_configuration): revert previous
8215         change.
8216
8217 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8218
8219         * glyphs.h:
8220         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8221
8222 2000-12-31  Andy Piper  <andy@xemacs.org>
8223
8224         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8225         when widget gets unmapped.
8226
8227         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8228         function. Make sure widgets losing focus don't just drop it.
8229         (handle_focus_event_1): record the widget with focus.
8230
8231 2000-12-31  Andy Piper  <andy@xemacs.org>
8232
8233         * window.c (allocate_window): use
8234         make_image_instance_cache_hash_table.
8235         (make_dummy_parent): ditto.
8236         (Fset_window_configuration): ditto.
8237
8238         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8239
8240         * glyphs.c (process_image_string_instantiator): use
8241         INSTANTIATOR_TYPE.
8242         (get_image_instantiator_governing_domain): ditto.
8243         (normalize_image_instantiator): ditto.
8244         (instantiate_image_instantiator): ditto.
8245         (make_image_instance_1): ditto.
8246         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8247         (instantiator_eq_equal): new function for use with instance hash
8248         tables.
8249         (instantiator_eq_hash): ditto.
8250         (make_image_instance_cache_hash_table): create a suitable hash
8251         table for storing image instances.
8252
8253         * elhash.h (hash_table_weakness): new internal weakness type
8254         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8255         declare new functions.
8256
8257         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8258         another weakness type for glyphs.
8259         (make_standard_lisp_hash_table): new function split out from
8260         make_general_lisp_hash_table.
8261         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8262         (hash_table_instantiate): ditto.
8263         (Fmake_hash_table): ditto.
8264
8265 2000-12-31  Martin Buchholz <martin@xemacs.org>
8266
8267         * XEmacs 21.2.39 is released.
8268
8269 2000-12-29  Andy Piper  <andy@xemacs.org>
8270
8271         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8272
8273         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8274         the frame has changed so that we pick up geometry changes such as
8275         menubar visibility.
8276
8277 2000-12-28  Andy Piper  <andy@xemacs.org>
8278
8279         * lastfile.c (my_ebss): make a char array so we can pad the
8280         bss. Fixes cygwin unexec.
8281
8282         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8283
8284 2000-12-26  Andy Piper  <andy@xemacs.org>
8285
8286         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8287         comments and try and be more precise about a non-/SIGIO world.
8288         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8289         SIGIO.
8290
8291         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8292         we don't normalize to zero width or height.
8293
8294 2000-12-24  Andy Piper  <andy@xemacs.org>
8295
8296         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8297
8298 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8299
8300         * s/sco5.h: SCO 5 has pty support.
8301
8302 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8303
8304         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8305         input-method-xlib.c contains whole contents of input-method-xfs.c,
8306         so we can use input-method-xlib.c's code for USE_XFONTSET
8307         using #ifdefs.
8308         * input-method-xfs.c: removed.
8309
8310 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8311
8312         * file-coding.h (enum coding_category_type): reorder enumerators to
8313         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8314         (now one greater than largest real coding_category_type enumerator).
8315         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8316         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8317         Fcoding_category_list, Fset_coding_priority_list,
8318         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8319         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8320
8321 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8322
8323         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8324         * redisplay-output.c (redisplay_output_window): Clear top of window
8325         when face is changed.
8326         * redisplay-x.c (x_redraw_exposed_window): Call
8327         redisplay_clear_top_of_window.
8328         * redisplay.h: Publish redisplay_clear_top_of_window.
8329
8330 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8331
8332         * buffer.c (Fkill_buffer): Map over all devices.
8333         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8334         (list_windows): New function.
8335         (list_all_windows): Ditto.
8336         (Freplace_buffer_in_windows): Use them.
8337
8338 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8339
8340         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8341         (Fopen_database): Use `db_create' instead of `db_open'.
8342         (syms_of_database): Initialize Qqueue.
8343
8344 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8345
8346         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8347         buffer_local_face_property.
8348         * buffer.h (struct buffer): New member buffer_local_face_property.
8349         * window.c (Fset_window_buffer):  Mark window's face as changed
8350         when buffer has buffer local face.
8351         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8352         * objects.c (color_after_change): Set buffer_local_face_property
8353         when locale of face specifier is buffer.
8354         * objects.c (font_after_change): Ditto.
8355         * objects.c (face_boolean_after_change): Ditto.
8356         * glyphs.c (image_after_change): Ditto.
8357
8358 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8359
8360         * nt.c (mswindows_fstat): Report file permissions, volume serial
8361         number, etc. Code adapted from FSF Emacs 20.7.
8362
8363 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8364
8365         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8366         of stat when we don't have symbolic links, to make sure
8367         mswindows_stat is called on mswindows.
8368
8369 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8370
8371         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8372
8373 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8374
8375         * doprnt.c (emacs_doprnt_1): More printing fixes.
8376         Make printing of numbers compatible with libc and FSF Emacs.
8377         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8378         Use the system printf to do most of the hard work of formatting,
8379         instead of doprnt_1().
8380         Calculate memory to allocate for format string.
8381         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8382         (doprnt_1): Cleaner code and documentation.
8383
8384 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8385
8386         * Makefile.in.in: Use the loop variable to install headers.
8387
8388 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8389
8390         * window.c (Fsplit_window): Don't invalidate face cache.
8391
8392 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8393
8394         * minibuf.c (Fall_completions): Undo the previous change
8395         which removed checking elements start with space.
8396
8397 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8398
8399         * mule-canna.c: Didier suppression.
8400
8401 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8402
8403         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8404         (warning suppression).  Add English comment translations.
8405
8406 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8407
8408         * unexelfsgi.c (unexec): Better test for mmap failure.
8409
8410 2000-12-05  Martin Buchholz <martin@xemacs.org>
8411
8412         * XEmacs 21.2.38 is released.
8413
8414 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8415
8416         * redisplay.c (bar-cursor): Make a user variable.
8417
8418         * symsinit.h: Add init_postgresql_from_environment.
8419
8420 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8421
8422         * regex.c: Convert to clean C.
8423
8424 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8425
8426         * realpath.c:
8427         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8428         initialization.
8429         (sys_readlink): renamed to system_readlink to avoid conflict with
8430         the other sys_readlink.
8431
8432 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8433
8434         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8435
8436 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8437
8438         * postgresql.c (init_postgresql_from_environment): new function.
8439         (vars_of_postgresql): Move code initializing Lisp variables out and
8440         into init_postgresql_from_environment.
8441         emacs.c (main_1): Call init_postgresql_from_environment if and only
8442         if running a dumped XEmacs.
8443
8444 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8445
8446         * buffer.c: Make find-file-compare-truenames default to true on
8447         windows.
8448
8449         * realpath.c (win32_abs_start):
8450         (cygwin_readlink):
8451         (win32_readlink): New functions.
8452         (xrealpath): Return really real filenames on windows.
8453
8454         * fileio.c (Ffile_truename): Make file-truename work on windows.
8455
8456 2000-11-29  Didier Verna  <didier@xemacs.org>
8457
8458         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8459         * faces.c (update_face_cachel_data): use it.
8460         * faces.c (add_face_cachel): use it. Complete background pixmap
8461         frobbing in face cache if `update_face_cachel_data' has not done so.
8462
8463 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8464
8465         * search.c (string_match_1): Don't set last_thing_searched
8466         when search failed.
8467
8468 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8469
8470         * buffer.c: Include casetab.h
8471         (common_init_complex_vars_of_buffer): Use new case-table object.
8472         * buffer.h: Include casetab.h
8473         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8474         (DOWNCASE_TABLE_OF): Ditto.
8475         * bufslots.h: Remove char-tables and add case-table.
8476         * casetab.c: Include casetab.h
8477         (CASE_TABLE_P): Removed.
8478         (mark_case_table): New function.
8479         (allocate_case_table): New function.
8480         (Fcase_table_p): Use new case-table.
8481         (case_table_char): New function.
8482         (Fget_case_table): Ditto.
8483         (Fput_case_table): Ditto.
8484         (Fput_case_table_pair): Ditto.
8485         (Fcopy_case_table): Ditto.
8486         (Fcurrent_case_table): Return case-table.
8487         (Fstandard_case_table): Return case-table.
8488         (Fset_case_table): Fix doc-string.
8489         (set_case_table): Use case-table
8490         (syms_of_casetab): DEFSUBR new functions.
8491         (complex_vars_of_casetab): Set up standard case-table.
8492         * casetab.h: New file.
8493         * editfns.c: Include casetab.h
8494         (Fcompare_buffer_substrings): Use case-table.
8495         * inline.c: Include casetab.h
8496         * lisp.h: Remove bogus extern.
8497         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8498         * search.c: Include casetab.h
8499         (TRANSLATE_ASCII): Removed.
8500         (TRANSLATE): Unconditionally translate character.
8501         (looking_at_1): Use case-table.
8502         (string_match_1): Ditto.
8503         (fast_string_match): Ditto.
8504         (search_command): Ditto.
8505         (search_buffer): Separate boyer_moore.  Check whether
8506         boyer_moore is possible.
8507         (simple_search): New function.
8508         (boyer_moore): Separated from search_buffer. Translate char.
8509
8510 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8511
8512         * regex.c (RE_TR_ASCII): Removed.
8513         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8514         (PATFETCH): Call PATFETCH_RAW.
8515         (PATFETCH_RAW): Fetch Emchar.
8516         (PATUNFETCH): Decrement charptr.
8517         (GET_BUFFER_SPACE): Rename b to buf_end.
8518         (BUF_PUSH): Ditto.
8519         (BUF_PUSH_2): Ditto.
8520         (BUF_PUSH_3): Ditto.
8521         (EXTEND_BUFFER): Ditto.
8522         (SET_LIST_BIT): Ditto.
8523         (regex_compile): Ditto.  Translate non ASCII char.
8524         (compile_range): Ditto.
8525         (re_search_2): Ditto.
8526         (re_match_2_internal): Compare Emchar.
8527         (bcmp_translate): Ditto.
8528
8529 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8530
8531         * lisp.h (basic char/int typedefs):  comment improvement.
8532
8533 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8534
8535         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8536         unstomp inhibit_site_lisp.  Improve comments.
8537
8538 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8539
8540         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8541
8542 2000-11-28  Andy Piper  <andy@xemacs.org>
8543
8544         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8545         clipped display for windows in the gutter also.
8546         (redisplay_display_boxes_in_window_p): change semantics of return
8547         codes to be more intuitive.
8548
8549         * gutter.h: declare display_boxes_in_gutter_p.
8550
8551         * gutter.c (display_boxes_in_gutter_p): new function for
8552         redisplay.
8553
8554 2000-11-22  Andy Piper  <andy@xemacs.org>
8555
8556         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8557         autodetect domain.
8558
8559 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8560
8561         * callproc.c (Fold_call_process_internal):
8562         * gpm.c (Freceive_gpm_event):
8563         (tty_get_foreign_selection): Might be just warning supression.
8564         * fileio.c (Fwrite_region_internal):
8565         (Fset_visited_file_modtime):
8566         * keymap.c (event_matches_key_specifier_p):
8567         Initialize GCPROed variable.
8568
8569         * menubar-x.c (command_builder_find_menu_accelerator):
8570         Initialize before use.
8571
8572 2000-11-23  Andy Piper  <andy@xemacs.org>
8573
8574         * unexcw.c (unexec): make the resulting executable executable.
8575
8576 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8577
8578         * doc.c (get_doc_string):
8579         Use size_t, not int, for result of XSTRING_LENGTH.
8580
8581         * cmds.c (Fdelete_char):
8582         * cmds.c (Fpoint_at_eol):
8583         * cmds.c (Fself_insert_command):
8584         Use EMACS_INT, not int, for result of XINT.
8585         Someday, someone will want to insert more than 2**31 identical characters.
8586
8587         * cmds.c (Fdelete_char):
8588         * cmds.c (Fdelete_backward_char):
8589         * syntax.c (Fforward_word):
8590         * syntax.c (Fforward_comment):
8591         Make COUNT argument optional, for consistency with forward-char et al.
8592
8593 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8594
8595         * lisp.h:
8596         * print.c (long_to_string):
8597         Return a useful value: the pointer at end of data written.
8598
8599         * doprnt.c:
8600         Use `static const char * const' for constant strings.
8601         (union printf_arg): Delete `i', `ui' members.
8602         (get_doprnt_args):
8603         (emacs_doprnt_1):
8604         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8605         Do all printf-ing via the `l' specifier.
8606         Use EMACS_INT instead of int.
8607         Optimize.
8608
8609 2000-11-20  Didier Verna  <didier@xemacs.org>
8610
8611         * faces.c (update_face_cachel_data): don't frob the background
8612         pixmap when the window is being created. The face is needed but
8613         does not exist yet.
8614
8615 2000-11-20  Andy Piper  <andy@xemacs.org>
8616
8617         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8618         messing with a debug environment.
8619
8620 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8621
8622         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8623
8624 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8625
8626         * casetab.c (Fcase_table_p): Fix compile error and crash.
8627
8628 2000-11-18  Philip Aston  <philipa@mail.com>
8629
8630         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8631
8632 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8633
8634         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8635         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8636
8637 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8638
8639         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8640         * unexelf.c: Use HAVE_ELF_H.
8641         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8642         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8643         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8644         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8645         for testing.
8646         So this is an unexelfsgi.c from a different line of development.
8647
8648 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8649
8650         * regex.c (RE_TR_ASCII): New function.
8651         (RE_TRANSLATE): Call it.
8652
8653 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8654
8655         * buffer.h (TRT_TABLE_OF): Remove assert.
8656         (IN_TRT_TABLE_DOMAIN): Removed.
8657
8658 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8659
8660         * free-hook.c (log_gcpro):
8661         (show_gcprohist): Add support for GCPRO5.
8662
8663 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8664
8665         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8666
8667 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8668
8669         * symeval.h: Declare flush_all_buffer_local_cache.
8670
8671         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8672         (flush_buffer_local_cache): Added.
8673         (flush_all_buffer_local_cache): Added.
8674
8675         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8676
8677         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8678         (pdump_dump_data): Ditto.
8679         (pdump_reloc_one): Ditto.
8680         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8681         before dumping.
8682
8683
8684 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8685
8686         * buffer.c: Remove if 0'ed entry.
8687         * buffer.h: Rewrite TRT to use char-table.
8688         * bufslots.h: Remove mirror tables.
8689         * casetab.c: Remove mirror tables.
8690         (CASE_TABLE_P): New macro.
8691         (Fcase_table_p): Element of a case table is string or char-table.
8692         (make_mirror_trt_table): Removed.
8693         (set_case_table): Setup char-table from strings for backward
8694         compatibility.
8695         * dired.c (Fdirectory_files):
8696         * dired-msw.c: (mswindows_get_files):
8697         * lisp.h: Change prototype of re_pattern_buffer.
8698         * regex.c: (RE_TRANSLATE): New macro.
8699         (TRANSLATE_P): Ditto.
8700         Change translate to type RE_TRANSLATE_TYPE.
8701         * regex.h: Define RE_TRANSLATE_TYPE
8702         * search.c (TRANSLATE): New macro.
8703         (TRANSLATE_ASCII): New macro.
8704         Translate table is changed to Lisp_Object.
8705         (signal_failure): Inhibit return.
8706
8707 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8708
8709         * device-msw.c:
8710         * eldap.c:
8711         * event-Xt.c:
8712         * event-stream.c:
8713         * print.c:
8714         Do UNGCPRO before return.
8715
8716 2000-11-14  Martin Buchholz <martin@xemacs.org>
8717
8718         * XEmacs 21.2.37 is released.
8719
8720 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8721
8722         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8723         Add comments about discarded return value.
8724
8725 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8726
8727         * callint.c:
8728         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8729
8730 2000-10-27  Andy Piper  <andy@xemacs.org>
8731
8732         * gutter.c (Fset_default_gutter_position): default left and right
8733         gutters to visible.
8734         (calculate_gutter_size): calculate resonable heuristic for left
8735         and right gutter sizes.
8736         (specifier_vars_of_gutter): change left and right gutter sizes to
8737         autodetect.
8738         (calculate_gutter_size_from_display_lines): new function.
8739         (output_gutter): check for resizing on left and right gutters.
8740         (clear_gutter): don't special case top and left gutters.
8741         (specifier_vars_of_gutter): use new signature for
8742         set_specifier_caching.
8743
8744         * glyphs-x.c (x_redisplay_widget): spelling fix.
8745         * glyphs.c (specifier_vars_of_glyphs):
8746         * menubar.c (specifier_vars_of_menubar):
8747         * redisplay.c (specifier_vars_of_redisplay):
8748         * toolbar.c (specifier_vars_of_toolbar):
8749         * window.c (specifier_vars_of_window):
8750         * scrollbar.c (specifier_vars_of_scrollbar):
8751         (complex_vars_of_scrollbar): use new signature for
8752         set_specifier_caching.
8753
8754         * specifier.c (set_specifier_caching): include recompute flag.
8755         (recompute_one_cached_specifier_in_window): always recompute if
8756         flag set.
8757         (recompute_one_cached_specifier_in_frame): ditto.
8758
8759         * specifier.h (struct specifier_caching): add recompute flag.
8760
8761 2000-10-24  Andy Piper  <andy@xemacs.org>
8762
8763         * unexcw.c (copy_executable_and_dump_data_section): add new
8764         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8765         5.0 happy.
8766
8767 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8768
8769         * console-x.h (x_device): New member modifier_release_time.
8770         * event-Xt.c (x_handle_sticky_modifiers):
8771         Bound interval modifier keys are sticky.
8772         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8773         * events.h: extern it.
8774
8775 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8776
8777         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8778
8779 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8780
8781         * event-stream.c (execute_command_event): Preserve current_events
8782         and the like when event is misc-user-event.
8783         Inhibit quit during the call to maybe_echo_keys.
8784
8785 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8786
8787         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8788         symlink when buffer is killed.
8789         (inhibit_clash_detection): New variable.
8790
8791 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8792
8793         * console.c (Fset_input_method): Trigger redisplay on tty.
8794
8795 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8796
8797         * process.c (Fprocess_status): Revert to previous behavior:
8798         (process-status "nosuchprocess") ==> nil
8799
8800 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8801
8802         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8803         Work around another GCC 2.95.2 optimizer bug.
8804
8805 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8806
8807         * process.c (Fget_process): Use LIST_LOOP_2.
8808         (kill_buffer_processes): Use LIST_LOOP_2.
8809
8810         * minibuf.c (Fall_completions):
8811         Delete old non-functional code for FSF fourth argument.
8812
8813         * frame.c (frame_matches_frame_spec):
8814         Renamed from `frame_matches_frametype'.  Update all callers.
8815         (device_matches_device_spec):
8816         Renamed from 'device_matches_console_spec'.  Update all callers.
8817
8818         * doc.c (Fsubstitute_command_keys):
8819         Remove buffer overflow crash.  Small code cleanups.
8820
8821         * casetab.c (check_case_table): Simpler code.
8822
8823         * window.c (Freplace_buffer_in_windows):
8824         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8825         (and similar implementation) as Fdelete_windows_on.
8826         Update all callers.
8827
8828         * alloc.c (Fmake_list):
8829         * alloc.c (make_vector):
8830         * alloc.c (Fmake_vector):
8831         * alloc.c (make_bit_vector):
8832         * alloc.c (Fmake_bit_vector):
8833         * alloc.c (Fbit_vector):
8834         * alloc.c (Fmake_string):
8835         * alloc.c (Fpurecopy):
8836         * alloc.c (Fmemory_limit):
8837         * buffer.c:
8838         * buffer.c (Fget_buffer):
8839         * buffer.c (Fkill_buffer):
8840         * buffer.c (complex_vars_of_buffer):
8841         * bytecode.c (Fcompiled_function_stack_depth):
8842         * callint.c (Fprefix_numeric_value):
8843         * event-stream.c:
8844         * event-stream.c (Fread_key_sequence):
8845         * casetab.c:
8846         * casetab.c (Fcase_table_p):
8847         * casetab.c (check_case_table):
8848         * casetab.c (Fset_case_table):
8849         * casetab.c (Fset_standard_case_table):
8850         * chartab.c:
8851         * chartab.c (Fchar_table_type):
8852         * chartab.c (Freset_char_table):
8853         * chartab.c (Fget_char_table):
8854         * chartab.c (Fget_range_char_table):
8855         * chartab.c (Fput_char_table):
8856         * chartab.c (Fmap_char_table):
8857         * chartab.c (Fcategory_table_p):
8858         * chartab.c (Fcheck_category_at):
8859         * chartab.c (Fchar_in_category_p):
8860         * chartab.c (Fcategory_table):
8861         * chartab.c (Fcopy_category_table):
8862         * chartab.c (Fset_category_table):
8863         * chartab.c (Fcategory_designator_p):
8864         * chartab.c (Fcategory_table_value_p):
8865         * cmds.c (Fdelete_char):
8866         * cmds.c (Fdelete_backward_char):
8867         * cmds.c (Fself_insert_command):
8868         * cmds.c (Fself_insert_internal):
8869         * console.c (Fvalid_console_type_p):
8870         * console.c (Fcdfw_console):
8871         * console.c (Fconsole_type):
8872         * console.c (Fconsole_name):
8873         * console.c (Fconsole_device_list):
8874         * console.c (Fconsole_on_window_system_p):
8875         * data.c:
8876         * data.c (Feq):
8877         * data.c (Fold_eq):
8878         * data.c (Fsubr_interactive):
8879         * data.c (Fchar_to_int):
8880         * data.c (Fint_to_char):
8881         * data.c (Fsetcar):
8882         * data.c (Fsetcdr):
8883         * data.c (Fnumber_to_string):
8884         * data.c (Fstring_to_number):
8885         * data.c (Frem):
8886         * database.c (mark_database):
8887         * database.c (finalize_database):
8888         * database.c (Fdatabase_live_p):
8889         * database.c (Fdatabasep):
8890         * device-x.c (Fx_get_resource):
8891         * device.c (Fdfw_device):
8892         * dired.c:
8893         * dired.c (Ffile_name_completion):
8894         * dired.c (Ffile_name_all_completions):
8895         * dired.c (Fuser_name_completion):
8896         * dired.c (Fuser_name_completion_1):
8897         * dired.c (Fuser_name_all_completions):
8898         * doc.c (Fdocumentation):
8899         * doc.c (Fdocumentation_property):
8900         * doc.c (Fsubstitute_command_keys):
8901         * editfns.c:
8902         * editfns.c (Fchar_to_string):
8903         * editfns.c (Fstring_to_char):
8904         * editfns.c (Ftemp_directory):
8905         * editfns.c (Finsert_char):
8906         * editfns.c (Fbuffer_substring_no_properties):
8907         * editfns.c (Fnarrow_to_region):
8908         * editfns.c (Fchar_equal):
8909         * editfns.c (Fchar_Equal):
8910         * editfns.c (Ftranspose_regions):
8911         * emacs.c (Fdump_emacs):
8912         * eval.c (Fthrow):
8913         * eval.c (Fcommand_execute):
8914         * eval.c (Fautoload):
8915         * eval.c (Fbacktrace):
8916         * eval.c (Fbacktrace_frame):
8917         * events.c:
8918         * events.c (Fcopy_event):
8919         * events.c (Fcharacter_to_event):
8920         * events.c (Fevent_button):
8921         * events.c (Fevent_process):
8922         * extents.c:
8923         * extents.c (Fnext_extent_change):
8924         * extents.c (Fextent_property):
8925         * faces.c (Ffacep):
8926         * faces.c (Fmake_face):
8927         * file-coding.c:
8928         * file-coding.c (Fencode_shift_jis_char):
8929         * file-coding.c (Fencode_big5_char):
8930         * fileio.c (Ffile_name_directory):
8931         * fileio.c (Ffile_name_nondirectory):
8932         * fileio.c (Ffile_name_as_directory):
8933         * fileio.c (Fdirectory_file_name):
8934         * fileio.c (Ffile_truename):
8935         * fileio.c (Fsubstitute_in_file_name):
8936         * fileio.c (Ffile_modes):
8937         * fileio.c (Fset_file_modes):
8938         * fileio.c (Fset_default_file_modes):
8939         * fileio.c (Fverify_visited_file_modtime):
8940         * floatfns.c (Facos):
8941         * floatfns.c (Fasin):
8942         * floatfns.c (Fatan):
8943         * floatfns.c (Fcos):
8944         * floatfns.c (Fsin):
8945         * floatfns.c (Ftan):
8946         * floatfns.c (Fbessel_j0):
8947         * floatfns.c (Fbessel_j1):
8948         * floatfns.c (Fbessel_jn):
8949         * floatfns.c (Fbessel_y0):
8950         * floatfns.c (Fbessel_y1):
8951         * floatfns.c (Fbessel_yn):
8952         * floatfns.c (Ferf):
8953         * floatfns.c (Ferfc):
8954         * floatfns.c (Flog_gamma):
8955         * floatfns.c (Fexp):
8956         * floatfns.c (Fexpt):
8957         * floatfns.c (Flog):
8958         * floatfns.c (Flog10):
8959         * floatfns.c (Fsqrt):
8960         * floatfns.c (Fcube_root):
8961         * floatfns.c (Facosh):
8962         * floatfns.c (Fasinh):
8963         * floatfns.c (Fatanh):
8964         * floatfns.c (Fcosh):
8965         * floatfns.c (Fsinh):
8966         * floatfns.c (Ftanh):
8967         * floatfns.c (Fabs):
8968         * floatfns.c (Ffloat):
8969         * floatfns.c (Flogb):
8970         * floatfns.c (Fceiling):
8971         * floatfns.c (Ffloor):
8972         * floatfns.c (Fround):
8973         * floatfns.c (Ftruncate):
8974         * floatfns.c (Ffceiling):
8975         * floatfns.c (Fffloor):
8976         * floatfns.c (Ffround):
8977         * floatfns.c (Fftruncate):
8978         * fns.c (Fstring_equal):
8979         * fns.c (Fstring_lessp):
8980         * fns.c (concat2):
8981         * fns.c (concat3):
8982         * fns.c (vconcat2):
8983         * fns.c (vconcat3):
8984         * fns.c (Fsubstring):
8985         * fns.c (Fassoc):
8986         * fns.c (Fold_assoc):
8987         * fns.c (assoc_no_quit):
8988         * fns.c (Fassq):
8989         * fns.c (Fold_assq):
8990         * fns.c (assq_no_quit):
8991         * fns.c (Frassoc):
8992         * fns.c (Fold_rassoc):
8993         * fns.c (Frassq):
8994         * fns.c (Fold_rassq):
8995         * fns.c (rassq_no_quit):
8996         * fns.c (Fremassoc):
8997         * fns.c (remassoc_no_quit):
8998         * fns.c (Fremassq):
8999         * fns.c (remassq_no_quit):
9000         * fns.c (Fremrassoc):
9001         * fns.c (Fremrassq):
9002         * fns.c (remrassq_no_quit):
9003         * fns.c (Fsort):
9004         * fns.c (Fplist_get):
9005         * fns.c (Fplist_put):
9006         * fns.c (Fplist_remprop):
9007         * fns.c (Fplist_member):
9008         * fns.c (Flax_plist_get):
9009         * fns.c (Flax_plist_put):
9010         * fns.c (Flax_plist_remprop):
9011         * fns.c (Flax_plist_member):
9012         * fns.c (Fequal):
9013         * fns.c (Fold_equal):
9014         * fns.c (Frequire):
9015         * fns.c (Fbase64_encode_region):
9016         * fns.c (Fbase64_encode_string):
9017         * fns.c (Fbase64_decode_region):
9018         * frame.c:
9019         * frame.c (frame_matches_frame_spec):
9020         * frame.c (device_matches_device_spec):
9021         * frame.c (next_frame):
9022         * frame.c (previous_frame):
9023         * frame.c (Fnext_frame):
9024         * frame.c (Fprevious_frame):
9025         * frame.c (Fframe_property):
9026         * frame.c (Fset_frame_height):
9027         * frame.c (Fset_frame_size):
9028         * frame.h:
9029         * glyphs.c:
9030         * glyphs.c (if):
9031         * glyphs.c (decode_error_behavior_flag):
9032         * glyphs.c (Fmake_image_instance):
9033         * indent.c (Findent_to):
9034         * intl.c (Fignore_defer_gettext):
9035         * keymap.c (Fkeymapp):
9036         * keymap.c (Flookup_key):
9037         * lread.c:
9038         * lread.c (Fload_internal):
9039         * lread.c (Feval_buffer):
9040         * lread.c (Feval_region):
9041         * macros.c (Fexecute_kbd_macro):
9042         * marker.c (set_marker_internal):
9043         * marker.c (Fset_marker):
9044         * marker.c (set_marker_restricted):
9045         * marker.c (Fcopy_marker):
9046         * marker.c (noseeum_copy_marker):
9047         * menubar.c:
9048         * menubar.c (Fpopup_menu):
9049         * minibuf.c:
9050         * mule-charset.c (Fcharset_name):
9051         * mule-charset.c (Fchar_charset):
9052         * mule-charset.c (Fchar_octet):
9053         * mule-charset.c (Fsplit_char):
9054         * mule-wnnfns.c (Fwnn_open):
9055         * mule-wnnfns.c (Fwnn_dict_comment):
9056         * mule-wnnfns.c (Fwnn_quit_henkan):
9057         * mule-wnnfns.c (Fwnn_word_toroku):
9058         * mule-wnnfns.c (Fwnn_word_sakujo):
9059         * mule-wnnfns.c (Fwnn_word_use):
9060         * mule-wnnfns.c (Fwnn_hindo_set):
9061         * objects.c:
9062         * objects.c (Fmake_color_instance):
9063         * objects.c (Fmake_font_instance):
9064         * print.c (Fwrite_char):
9065         * process.c:
9066         * process.c (mark_process):
9067         * process.c (print_process):
9068         * process.c (get_process_from_usid):
9069         * process.c (Fprocessp):
9070         * process.c (Fprocess_live_p):
9071         * process.c (Fget_process):
9072         * process.c (Fget_buffer_process):
9073         * process.c (get_process):
9074         * process.c (Fprocess_id):
9075         * process.c (Fprocess_name):
9076         * process.c (Fprocess_command):
9077         * process.c (init_process_io_handles):
9078         * process.c (start_process_unwind):
9079         * process.c (Fstart_process_internal):
9080         * process.c (Fopen_multicast_group_internal):
9081         * process.c (Fset_process_window_size):
9082         * process.c (read_process_output):
9083         * process.c (send_process):
9084         * process.c (Fprocess_tty_name):
9085         * process.c (Fset_process_buffer):
9086         * process.c (Fprocess_buffer):
9087         * process.c (Fprocess_mark):
9088         * process.c (set_process_filter):
9089         * process.c (Fset_process_filter):
9090         * process.c (Fprocess_filter):
9091         * process.c (Fprocess_send_region):
9092         * process.c (Fprocess_send_string):
9093         * process.c (exec_sentinel):
9094         * process.c (Fset_process_sentinel):
9095         * process.c (Fprocess_sentinel):
9096         * process.c (status_notify):
9097         * process.c (Fprocess_status):
9098         * process.c (Fprocess_exit_status):
9099         * process.c (process_send_signal):
9100         * process.c (Fprocess_send_eof):
9101         * process.c (deactivate_process):
9102         * process.c (remove_process):
9103         * process.c (Fdelete_process):
9104         * process.c (kill_buffer_processes):
9105         * process.c (Fprocess_kill_without_query):
9106         * process.c (Fprocess_kill_without_query_p):
9107         * rangetab.c:
9108         * rangetab.c (Fget_range_table):
9109         * rangetab.c (Fput_range_table):
9110         * rangetab.c (Fremove_range_table):
9111         * rangetab.c (Fclear_range_table):
9112         * search.c:
9113         * search.c (Fskip_chars_forward):
9114         * search.c (Fskip_chars_backward):
9115         * search.c (Fskip_syntax_forward):
9116         * search.c (Fskip_syntax_backward):
9117         * search.c (search_command):
9118         * search.c (Freplace_match):
9119         * search.c (Fregexp_quote):
9120         * select.c (Fown_selection_internal):
9121         * select.c (Fselection_owner_p):
9122         * select.c (Fselection_exists_p):
9123         * select.c (Fget_selection_internal):
9124         * specifier.c:
9125         * symbols.c:
9126         * symbols.c (Fintern):
9127         * symbols.c (Fintern_soft):
9128         * symbols.c (Funintern):
9129         * symbols.c (Fapropos_internal):
9130         * symbols.c (Fset_default):
9131         * syntax.c:
9132         * syntax.c (Fsyntax_table_p):
9133         * syntax.c (Fcopy_syntax_table):
9134         * syntax.c (Fset_syntax_table):
9135         * syntax.c (Fchar_syntax):
9136         * syntax.c (syntax_match):
9137         * syntax.c (Fmatching_paren):
9138         * syntax.c (Fforward_word):
9139         * syntax.c (scan_lists):
9140         * syntax.c (Fscan_lists):
9141         * syntax.c (Fscan_sexps):
9142         * syntax.c (Fparse_partial_sexp):
9143         * toolbar.c (Fcheck_toolbar_button_syntax):
9144         * tooltalk.doc:
9145         * window.c:
9146         * window.c (Fwindowp):
9147         * window.c (Fwindow_live_p):
9148         * window.c (Fwindow_point):
9149         * window.c (Fdelete_window):
9150         * window.c (Fnext_window):
9151         * window.c (Fprevious_window):
9152         * window.c (Fother_window):
9153         * window.c (window_loop):
9154         * window.c (Fget_lru_window):
9155         * window.c (Fsplit_window):
9156         * window.c (Fenlarge_window):
9157         * window.c (Fenlarge_window_pixels):
9158         * window.c (Fshrink_window):
9159         * window.c (Fshrink_window_pixels):
9160         * window.c (change_window_height):
9161         * window.c (Fwindow_configuration_p):
9162         * window.c (Fcurrent_window_configuration):
9163         * window.h:
9164         * casefiddle.c (casify_object):
9165         * casefiddle.c (Fupcase):
9166         * casefiddle.c (Fdowncase):
9167         * casefiddle.c (Fcapitalize):
9168         * casefiddle.c (Fupcase_initials):
9169         * casefiddle.c (casify_region_internal):
9170         * casefiddle.c (casify_region):
9171         * casefiddle.c (Fupcase_region):
9172         * casefiddle.c (Fdowncase_region):
9173         * casefiddle.c (Fcapitalize_region):
9174         * casefiddle.c (Fupcase_initials_region):
9175         * casefiddle.c (Fupcase_word):
9176         * casefiddle.c (Fdowncase_word):
9177         * casefiddle.c (Fcapitalize_word):
9178         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9179         Replace 0 with '\0' when working with bytes.
9180         Replace initial "(" with "\(" in docstrings.
9181
9182 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9183
9184         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9185
9186         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9187
9188 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9189
9190         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9191
9192 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9193
9194         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9195         correctly.
9196
9197 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9198
9199         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9200         (inhibit_auto_save_session): New variable.
9201         (vars_of_fileio): Declare and initialize them.
9202         * fileio.c (Fdo_auto_save): Don't create session file if
9203         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9204
9205 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9206
9207         * sgiplay.c (play_internal): C++ compilability.
9208         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9209         * callproc.c (Fold_call_process_internal):
9210         Remove unused vars `env', `first'.
9211         * scrollbar.c (update_scrollbar_instance):
9212         #### unused var `current_window'.
9213         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9214         etc. within #ifdef NOT_YET.
9215         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9216         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9217         * specifier.c (specifier_instance):
9218         #### unused var `tag'.
9219         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9220
9221 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9222
9223         * fns.c (Fbutlast):
9224         * fns.c (list_sort):
9225         * fns.c (Ffillarray):
9226         * fns.c (bytecode_nconc2):
9227         * fns.c (Fnconc):
9228         * fns.c (mapcar1):
9229         * fns.c (Fmapconcat):
9230         Be pedantically 64-bit correct.  For the time when someone will
9231         want to have a list with length > 2**32.
9232
9233         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9234         Work around MIPSpro compiler bug.
9235
9236         * process-unix.c (unix_kill_child_process): Add snarky comment.
9237         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9238
9239         * config.h.in: Oops, _getpt ==> _getpty
9240
9241 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9242
9243         * config.h.in:
9244         * regex.c:
9245         Use void*, not char*, as return type of alloca().
9246
9247         * alloc.c (free_marker): Side effect inside assert expression!
9248
9249 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9250
9251         * mule-charset.c (Fset_charset_ccl_program): To check
9252         if the given ccl program is valid, use setup_ccl_program()
9253         instead of CHECK_VECTOR().
9254         (Fmake_charset): Likewise.
9255
9256 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9257
9258         * faces.c (get_extent_fragment_face_cache_index):
9259         Fix cachel.merged_faces memory leak.
9260
9261 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9262
9263         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9264         Reset MSB of octets obtained by DECODE_SJIS
9265         because of the incompatibility with Emacs.
9266         (ccl_driver)<CCL_ENCODE_SJIS>:
9267         Set MSB of octets before passing them to
9268         ENCODE_SJIS because of the incompatibility
9269         with Emacs.
9270
9271 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9272
9273         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9274         (DECLARE_LRECORD): Undo the last change.
9275         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9276
9277 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9278
9279         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9280         the implementation to lrecord_implementations_table.
9281
9282 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9283
9284         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9285         initial value of `lrecord_type_##c_name' and
9286         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9287         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9288         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9289         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9290         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9291
9292 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9293
9294         * miscplay.c (sndcnv8S_2mono):
9295         (sndcnv2monounsigned):
9296         (sndcnvULaw_2linear):
9297         (sndcnv16swap):
9298         Remove implementation-defined behavior.
9299
9300 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9301
9302         * input-method-xlib.c: Warning suppression.
9303
9304 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9305
9306         * mule-ccl.c: Sync up with Emacs 21.0.90.
9307         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9308         Do nothing.
9309         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9310         Likewise.
9311         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9312         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9313         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9314         leading char belongs to official 2-dimensional charset.
9315         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9316         write the given character as is.  Otherwise,
9317         if it is a multibyte char, convert it by
9318         non_ascii_set_charptr_emchar, then write it.
9319         (CCL_WRITE_STRING): Likewise.
9320         (ccl_get_compiled_code): New function.
9321         (setup_ccl_program): When ccl_prog is invalid,
9322         return -1.
9323         (Fregister_code_conversion_map): New function.
9324         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9325
9326         * mule-ccl.h: Sync up with Emacs 21.0.90.
9327         (Fregister_ccl_program): export it.
9328
9329         * redisplay-msw.c (separate_textual_runs):
9330         If ccl program is not valid, don't do ccl conversion.
9331
9332         * redisplay-x.c (separate_textual_runs): Ditto.
9333
9334         * file-coding.c (Fmake_coding_system):
9335         When type is ccl and value is vector, register it
9336         with a proper symbol.  And checks whether the
9337         given ccl program is valid.
9338         (mule_decode): When calling ccl_driver, if src indicates
9339         NULL pointer, set an empty string instead.
9340         (mule_encode): Likewise.
9341
9342 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9343
9344         The following large batch of changes gets us back to a state of
9345         C++ compilability.  Extbyte is now a char, which means that
9346         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9347
9348         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9349
9350         * sound.c (Fplay_sound): Type correctness.
9351
9352         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9353         (x_get_window_property): Type correctness.
9354         (receive_incremental_selection): unsigned char ==> Extbyte
9355         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9356         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9357         (Fx_store_cutbuffer_internal): Type correctness.
9358
9359         * process-unix.c (try_to_initialize_subtty): Type correctness.
9360
9361         * objects-x.c (x_print_color_instance): Type correctness.
9362         (x_print_font_instance): Type correctness.
9363         (x_list_fonts): SExtbyte ==> Extbyte.
9364         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9365         (x_find_charset_font): SExtbyte ==> Extbyte.
9366         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9367         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9368         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9369         Use bufbyte_strcmp.
9370
9371         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9372         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9373         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9374         (BYTE_C0_P): Use bit ops for char-signedness safety.
9375         (BYTE_C1_P): Use bit ops for char-signedness safety.
9376         (CHARSET_BY_LEADING_BYTE):
9377         (CHARSET_BY_ATTRIBUTES):
9378         Always use inline function.
9379         Use type_checking_assert.
9380         Hide chlook.
9381
9382         * mule-charset.c (non_ascii_charptr_copy_char):
9383         Modify to work with both ASCII and non-ASCII characters.
9384         Improve docs and variable names.
9385         Replace over-clever fall-through switch with a simple loop.
9386         (Lstream_get_emchar_1):
9387         Replace over-clever fall-through switch with a simple loop.
9388
9389         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9390         Warning suppression.
9391
9392         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9393         the return value of Lstream_getc, which could be EOF as well.
9394
9395         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9396
9397         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9398         APIs can be used on Extbytes without casts.  Risky!
9399         (SExtbyte): Remove.
9400         (UExtbyte): Remove.
9401
9402         * input-method-xlib.c (XIM_init_device):
9403         Use Xlib.h instead of IntrinsicP.h.
9404         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9405         which will break in X11R7.
9406         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9407         to call XRegisterIMInstantiateCallback with correct types.
9408
9409         * gui-x.c (button_item_to_widget_value): Type correctness.
9410
9411         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9412
9413         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9414         (xbm_instantiate_1): Type correctness.
9415         (BUILD_GLYPH_INST):  Type correctness.
9416
9417         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9418
9419         * file-coding.c:
9420         (decode_coding_sjis):
9421         (decode_coding_big5):
9422         (decode_coding_ucs4):
9423         (decode_coding_utf8):
9424         (decode_coding_iso2022):
9425         (decode_coding_no_conversion):
9426         Make all decoding functions take an Extbyte * arg.
9427         (encode_coding_sjis):
9428         (encode_coding_big5):
9429         (encode_coding_ucs4):
9430         (encode_coding_utf8):
9431         (encode_coding_iso2022):
9432         (encode_coding_no_conversion):
9433         Make all encoding functions take a Bufbyte * arg.
9434         Use size_t instead of unsigned int for memory sizes.
9435         Only cast to unsigned char whenever dereferencing Extbyte *.
9436
9437         * doc.c (unparesseuxify_doc_string): Type correctness.
9438
9439         * console-x.c (split_up_display_spec):
9440         Rewrite without using details of internal string representation.
9441         (x_semi_canonicalize_device_connection): Type correctness.
9442
9443         * config.h.in:
9444         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9445         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9446         (HAVE_XFREE386): Removed.
9447
9448         * buffer.h (DEC_CHARPTR): `const' correctness.
9449         (bufbyte_strcmp): New.
9450         (bufbyte_memcmp): New.
9451
9452         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9453
9454         * buffer.h (XCHAR_OR_CHAR_INT):
9455         Always use inline function.
9456         Remove redundant type checking assert() - XINT will abort quite nicely.
9457
9458 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9459
9460         * search.c (Freplace_match): Set newtext to an empty string.
9461
9462 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9463
9464         * s/decosf1-3.h: Remove #include of stropts.h
9465         * s/ptx.h: Remove #include of stropts.h
9466         * s/usg5-4.h: Remove #include of stropts.h
9467         * sysproc.h:
9468         * config.h.in:
9469         Use stropts.h, not sys/stropts.h.
9470         Use strtio.h, not sys/strtio.h.
9471
9472 2000-10-04  Martin Buchholz <martin@xemacs.org>
9473
9474         * XEmacs 21.2.36 is released.
9475
9476 2000-09-21  Andy Piper  <andy@xemacs.org>
9477
9478         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9479         changes still involve copying the widget tree.
9480         (update_widget_face): make sure a change is register in the widget
9481         tree. Call update_tab_widget_face appropriately.
9482         (update_tab_widget_face): ditto.
9483         (x_tab_control_redisplay): make sure non-structural changes still
9484         involve copying the widget tree.
9485
9486 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9487
9488         * lread.c (locate_file): Check the path element is non-nil.
9489
9490 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9491
9492         * lisp.h: Warning suppression for SCO compilers.
9493
9494         * redisplay-tty.c (reset_tty_modes): Fix crash.
9495         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9496
9497 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9498
9499         Big signal/process handling overhaul.  Bugs fixed:
9500         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9501         M-x comint-kill-subjob should work for both values nil and t of
9502         process-connection-type. It was broken on most platforms.
9503         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9504         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9505         * process-unix.c: Signal/Process handling overhaul.
9506         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9507         (allocate_pty): Use all available modern methods of allocating
9508         ptys, falling back to old style BSD allocation as a last resort.
9509         Use allegedly more secure Unix98 pty allocation by default.
9510         (allocate_pty_the_old_fashioned_way): New. the last resort.
9511         (unix_create_process): Push ptem, ldterm, ttcompat where
9512         available.  Autoconfiscate.
9513         (try_to_initialize_subtty): New.
9514         (unix_kill_child_process): Proper signal handling for ptys on most
9515         platforms, using special knowledge of AIX, BSD, etc...
9516         (unix_create_process): Always disconnect_controlling_terminal() for
9517         subprocesses, whether using ptys or not.
9518         * process.h: Remove old getpt-dependent PTY code.
9519         * process.c (Fprocess_send_signal): New, obvious generic function.
9520         (decode_signal): New.
9521         (Finterrupt_process):
9522         (Fkill_process):
9523         (Fquit_process):
9524         (Fstop_process):
9525         (Fcontinue_process):
9526         (Fsignal_process): Use decode_signal.
9527         (process_send_signal):
9528         Many docstring corrections.
9529         Allow any signal to be sent to a process object.
9530         * config.h.in: Add symbols for big signal/process overhaul.
9531         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9532         * sysproc.h: Include process-related headers, where available:
9533         sys/stropts.h sys/strtio.h pty.h libutil.h
9534         * s/irix4-0.h:
9535         * s/irix5-0.h:
9536         * s/cygwin32.h:
9537         * s/gnu.h:
9538         * s/linux.h:
9539         * s/hpux.h:
9540         * s/aix3-1.h:
9541         Remove old S&M pty stuff.
9542         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9543         * systty.h: Simplify cpp hackery, improve comments.
9544         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9545
9546         * editfns.c (Fformat_time_string):
9547         Be a little more paranoid with the return value of ctime.
9548
9549         * fileio.c (check_executable):
9550         (check_writable):
9551         Use symbolic constants X_OK, W_OK.
9552
9553         * console-x.c (split_up_display_spec): Fix a warning.
9554
9555 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9556
9557         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9558         * ntproc.c (sys_spawnve): make_string ==> build_string
9559         Small clarity improvements.
9560
9561 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9562
9563         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9564
9565         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9566
9567         * config.h.in (HAVE_STRCASECMP): Remove.
9568
9569 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9570
9571         * redisplay-output.c (redisplay_output_pixmap):
9572         Cleaner and possibly more 64-bit correct code.
9573
9574 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9575
9576         * dumper.c (pdump_load_finish): move restoration of
9577         `noninteractive1' to emacs.c (main_1).
9578         * emacs.c (main_1): protect LISP-visible command-line flags
9579         from pdump_load().
9580
9581 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9582
9583         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9584         DUMP_TARGET instead of literal program names.
9585
9586 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9587
9588         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9589
9590 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9591
9592         * *: Spelling mega-patch
9593
9594 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9595
9596         * fns.c (bad_bad_turtle):
9597         Delete "Eek!" comment, since we fixed the bug to which it refers.
9598
9599 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9600
9601         * alloca.c: Replace REGISTER with register.
9602
9603 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9604
9605         * file-coding.c (ucs_to_char): Use countof.
9606
9607 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9608
9609         * file-coding.c: (ucs_to_char):
9610         (complex_vars_of_file_coding):
9611         Use countof instead of sizeof.
9612         Use CHECK_NATNUM instead of CHECK_INT.
9613
9614         * sysdep.c (strcasecmp): Remove.
9615         * device-x.c (ascii_strcasecmp): New.
9616         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9617         Avoid using non-standard non-portable strcasecmp.
9618
9619 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9620
9621         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9622         * font-lock.c: remove reference to emacsfns.h.
9623         * search.c: small doc improvement.
9624         * event-Xt.c: correct file names in comments.
9625         * console-x.h Correct file names in comments.
9626         * frame.c: Correct file names in comments.
9627         * event-stream.c: remove Energize from comments.
9628
9629 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9630
9631         * symeval.h (DEFERROR_STANDARD):
9632         (DEFERROR):
9633         (DEFSYMBOL):
9634         (DEFSYMBOL_NO_DUMP):
9635         (DEFSYMBOL_MULTIWORD_PREDICATE):
9636         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9637         (DEFKEYWORD):
9638         The construct &##name is not sensible C.
9639         Fixes compilation errors with Unixware native compiler.
9640
9641 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9642
9643         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9644         (next_frame_internal): Removed.  We now just have next_frame.
9645         (next_frame):
9646         Write a simpler and cleaner one-pass algorithm.
9647         Remove called_from_delete_device arg and #ifdefed-out code.
9648         (previous_frame):
9649         Renamed from prev_frame.  Update callers.
9650         Cleaned up to have an analogous implementation to next_frame.
9651         (other_visible_frames_internal): Remove the
9652         called_from_delete_device bogus arg, and hence, remove this
9653         function.  Just use other_visible_frames().
9654
9655         * window.c (Fnext_window):
9656         Prettify docstring.
9657         Since next_frame() is guaranteed to return a frame, remove check
9658         for nil inserted in previous patch.
9659         (Fprevious_window):
9660         Prettify docstring.
9661         Make code look more like Fnext_window.
9662         (window_loop):
9663         Respect the `console' arg when iterating through windows.
9664         Fixes bug: (get-buffer-window buffer t device) not respecting
9665         the `device' arg.
9666         This function needs more work, as others have pointed out.
9667
9668         * frame.h: Rename prev_frame to previous_frame.
9669         device_matches_console_spec no longer takes a `frame' arg.
9670
9671         * s/gnu.h:
9672         * s/linux.h:
9673         * s/hpux.h:
9674         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9675         From "Golubev I. N." <gin@mo.msk.ru>.
9676
9677         * make-src-depend: Fix typo.
9678
9679 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9680
9681         * window.c (Fnext_window):
9682         next_frame() might return nil, not a frame.
9683         Fixes this crash:
9684         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9685
9686         * frame.c (next_frame_internal):
9687         We've passed a frame if we've passed its device.
9688         Fixes this crash:
9689         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9690 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9691
9692 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9693
9694         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9695         Allow option to suppress accelerators in menu/dialog items.
9696         (populate_or_checksum_helper): Pass dialog title through above.
9697
9698 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9699
9700         * event-msw.c (mswindows_key_to_emacs_keysym):
9701         Add "pause" key, fix "menu" key.
9702
9703 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9704
9705         * eval.c (reinit_vars_of_eval):
9706         Increase max_lisp_eval_depth to 1000,
9707         required for thai-xtis.el to byte-compile under some circumstances.
9708
9709 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9710
9711         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9712         From Kenichi Handa.
9713
9714 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9715
9716         * make-src-depend: Make the generated Makefiles smaller.
9717
9718         * s/hpux.h (SETUP_SLAVE_PTY):
9719         Provide a %d in the format string for the errno argument.
9720
9721         * editfns.c (Ftemp_directory):
9722         Warning fix.
9723         Avoid buffer overrun on very long file name.
9724
9725         * input-method-xlib.c (XIM_init_device):
9726         6th parameter of XRegisterIMInstantiateCallback has different
9727         pointer types on different OSes, so simply cast to (void *).
9728
9729         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9730
9731         * sysdll.c (dll_open):
9732         shl_load will hang hard if passed a NULL filename.
9733         Simply return NULL for compatibility with dlopen.
9734         * sysdll.c: Conform to XEmacs coding standards.
9735
9736         * sysdep.c (get_pty_max_bytes):
9737         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9738
9739 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9740
9741         * tooltalk.c: Add #include <syssignal.h>
9742
9743 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9744
9745         * s/hpux.h: Don't use undefined function sigunblock().
9746
9747 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9748
9749         * config.h.in: Add HAVE_BALLOON_HELP.
9750         * emacs.c: Use HAVE_BALLOON_HELP.
9751         * Makefile.in.in (x_objs):
9752         Make Balloon Help conditional on finding shape.h.
9753
9754 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9755
9756         * syntax.c (regex_emacs_buffer_p): New variable.
9757         * syntax.h (regex_emacs_buffer_p): extern.
9758         * search.c (looking_at_1):
9759         (string_match_1):
9760         (fast_string_match):
9761         (search_buffer): Set regex_emacs_buffer_p.
9762         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9763         when before_dot, at_dot, after_dot.
9764
9765 2000-08-23  Andy Piper  <andy@xemacs.org>
9766
9767         * gui-x.c (popup_selection_callback): Only set action_occurred
9768         when we really have an image instance.
9769         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9770
9771 2000-08-23  Andy Piper  <andy@xemacs.org>
9772
9773         * gui-msw.c (mswindows_handle_gui_wm_command): set
9774         action_occurred.
9775         * gui-x.c (popup_selection_callback): ditto.
9776
9777         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9778         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9779         (struct Lisp_Image_Instance): add action_occurred flag.
9780
9781         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9782         (image_instance_changed): ditto.
9783         (reset_frame_subwindow_instance_cache): only unmap windows - do
9784         not remove them from the cache also.
9785
9786         * glyphs-widget.c (tab_control_update): better debug.
9787         (progress_gauge_update): ditto.
9788         (layout_update): ditto.
9789         (layout_instantiate): ditto.
9790         (tab_control_order_only_changed): cope with null pending items.
9791
9792         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9793         debug. Force selection of an item when an action occurred. Cope
9794         with null pending_items.
9795         (mswindows_progress_gauge_redisplay): better debug.
9796         * glyphs-x.c (x_tab_control_redisplay): ditto.
9797
9798         * redisplay.c (redisplay_frame): reset the frame cache if the
9799         frame is garbaged.
9800
9801         * window.c (Fset_window_configuration): potentially re-enable
9802         frame cache reset.
9803         (window_unmap_subwindows): need to finalize instances here since
9804         it is only used in mark_window_as_deleted.
9805
9806 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9807
9808         * nas.c (SndOpenDataForReading):
9809         nas.c (WaveOpenDataForReading):
9810         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9811         Somehow escaped from the 2000-08-14 patch.
9812
9813 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9814
9815         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9816         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9817
9818 2000-08-21  Andy Piper  <andy@xemacs.org>
9819
9820         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9821         window if it is not already displayed.
9822
9823         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9824         it is not already displayed.
9825
9826         * window.c (Fset_window_configuration): don't reset the frame
9827         cache.
9828
9829         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9830         instances from the frame cache if we are actually finalizing them.
9831         (reset_frame_subwindow_instance_cache): reset frame cache only
9832         after unmapping everything.
9833         (map_subwindow): set displayed flag after mapping.
9834
9835 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9836
9837         * data.c (indirect_function):
9838         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9839
9840         * eval.c (function_argcount):
9841         Use original function when signaling errors.
9842
9843 2000-08-18  Andy Piper  <andy@xemacs.org>
9844
9845         * frame.c (delete_frame_internal): use new
9846         free_frame_subwindow_instances name.
9847
9848         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9849         (add_tab_item): make return type correct.
9850         (mswindows_tab_control_instantiate): assert index of tab.
9851         (mswindows_tab_control_redisplay): Re-code to use
9852         gui_item_equal_sans_selected and gui_item_list_find_selected.
9853
9854         * glyphs-widget.c (tab_control_update): Correct comment.
9855
9856         * window.c (window_unmap_subwindows): use new
9857         unmap_subwindow_instance_cache_mapper.
9858         (window_unmap_subwindows_cache_mapper): deleted.
9859         (Fset_window_configuration): comparisons should now be with
9860         EQ. Preserve the subwindow instance cache across configuration
9861         changes.
9862         (allocate_window): ditto.
9863         (make_dummy_parent): ditto.
9864
9865         * glyphs.c (free_frame_subwindow_instances): rename from
9866         free_frame_subwindow_instance_cache. finalize all instances rather
9867         than just those in the display cache.
9868         (finalize_all_subwindow_instances): walk windows unmapping and
9869         finalizing subwindows.
9870         (unmap_subwindow_instance_cache_mapper): moved from
9871         window.c. Allow finalization as well as unmapping.
9872
9873         * gui.c (gui_item_list_find_selected): new function.
9874
9875         * gui.h (gui_item_list_find_selected): declare.
9876
9877         * glyphs-x.c (x_tab_control_redisplay): pick tab
9878         explicitly. Re-code to use gui_item_equal_sans_selected and
9879         gui_item_list_find_selected.
9880
9881         * glyphs-x.h: add lwlib-utils.h
9882
9883         * buffer.c (Frecord_buffer): undo previous change.
9884
9885 2000-08-09  Vin Shelton  <acs@xemacs.org>
9886
9887         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9888         possible.  Create temporary files more securely.  The patch was
9889         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9890         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9891         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9892         for details.
9893
9894 2000-08-07  Ben Wing  <ben@xemacs.org>
9895
9896         * getloadavg.c: remove duplicate (and windows-breaking)
9897         includes of fcntl.h and sys/file.h.
9898
9899         * nt.c: remove duplicate getloadavg() definition.
9900
9901         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9902         encodings.
9903
9904 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9905
9906         * eval.c (function_argcount): If function needs to be autoloaded
9907         actually use the loaded definition.
9908         GCPRO function.
9909
9910 2000-08-05  Ben Wing  <ben@xemacs.org>
9911
9912         * getloadavg.c: add prototype for getloadavg().  remove
9913         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9914         of the code).  remove duplicate header includes.
9915
9916         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9917
9918         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9919         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9920         useful load average.
9921
9922         * alloc.c (reinit_alloc_once_early): removed references to
9923         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9924         the lisp vars are the only things referencing the malloc_sbrk_*
9925         vars, and they were already if 0'd out.  these vars only exist
9926         in the older malloc.c, which is basically unused, and they're
9927         only for informational purposes.
9928
9929         * m\*.h: removed useless VIRT_ADDR_VARIES.
9930
9931         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9932
9933 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9934
9935         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9936         color if the image is a mono pixmap.
9937
9938 2000-07-30  Ben Wing  <ben@xemacs.org>
9939
9940         * Makefile.in.in (release):
9941         Remove stray @.
9942
9943         * buffer.c (directory_is_current_directory):
9944         * dired-msw.c (mswindows_get_files):
9945         * dired.c:
9946         * dired.c (Fdirectory_files):
9947         * dired.c (file_name_completion_stat):
9948         * dired.c (Ffile_attributes):
9949         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9950         preprocessor tricks, to avoid problems on some machines
9951         (e.g. SCO).
9952
9953         * callproc.c (egetenv): GC docs.
9954
9955         * console-msw.h:
9956         * console-msw.h (struct mswindows_dialog_id):
9957         * lrecord.h (lrecord_type):
9958         New object for use with MSW dialogs.
9959
9960         * console.h (struct console_methods):
9961         New enable/disable frame methods, for proper modal dialogs.
9962
9963         * device-msw.c (msprinter_default_printer): Fix to follow
9964         proper Mule conventions.
9965
9966         * device-msw.c:
9967         * device-msw.c (signal_open_printer_error):
9968         * device-msw.c (msprinter_init_device):
9969         * device-msw.c (ensure_not_printing):
9970         * device-msw.c (plist_get_margin):
9971         * device-msw.c (Fmsprinter_select_settings):
9972         * device-msw.c (finalize_devmode):
9973         * device-msw.c (Fmsprinter_settings_despecialize):
9974         * device-msw.c (signal_enum_priner_error):
9975         * extents.c (decode_extent):
9976         * extents.c (decode_map_extents_flags):
9977         * extents.c (decode_extent_at_flag):
9978         * extents.c (Fextent_at):
9979         * extents.c (Fextents_at):
9980         * extents.c (symbol_to_glyph_layout):
9981         [[[[2]]]] Use structured errors.
9982
9983         * dialog-msw.c:
9984         * dialog-msw.c (mswindows_is_dialog_msg):
9985         * dialog-msw.c (mark_mswindows_dialog_id):
9986         * dialog-msw.c (dialog_proc):
9987         * dialog-msw.c (handle_question_dialog_box):
9988         * dialog-msw.c (syms_of_dialog_mswindows):
9989         Define new object to clean up marking; use it as a dialog identifier.
9990         Call new delete-dialog-box-hook.
9991
9992         * dialog-x.c (dbox_selection_callback):
9993         * dialog-x.c (dbox_descriptor_to_widget_value):
9994         * dialog-x.c (x_make_dialog_box_internal):
9995         Call new delete-dialog-box-hook.
9996         Return an id.
9997
9998         * dialog.c:
9999         * dialog.c (syms_of_dialog):
10000         * dialog.c (vars_of_dialog):
10001         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10002
10003         * eval.c:
10004         * eval.c (signal_call_debugger):
10005         when noninteractive, output stack traces on the console instead
10006         of in a (never-seen) buffer.
10007
10008         * eval.c (signal_type_error):
10009         * eval.c (invalid_argument_2):
10010         * lisp.h:
10011         new funs for use w/structured errors.
10012
10013         * event-Xt.c:
10014         * event-Xt.c (x_to_emacs_keysym):
10015         * event-Xt.c (describe_event):
10016         * event-Xt.c (emacs_Xt_event_handler):
10017         * event-Xt.c (vars_of_event_Xt):
10018         * event-msw.c:
10019         * event-msw.c (mswindows_wnd_proc):
10020         * event-msw.c (vars_of_event_mswindows):
10021         rename {x,mswindows}-debug-events to debug-{}-events for
10022         consistency with other debug-foo variables.
10023
10024         * event-stream.c:
10025         document next-event more clearly.
10026
10027         * fileio.c (Ffile_name_directory):
10028         * fileio.c (Ffile_name_nondirectory):
10029         * fileio.c (Funhandled_file_name_directory):
10030         * fileio.c (file_name_as_directory):
10031         * fileio.c (Ffile_name_as_directory):
10032         * fileio.c (directory_file_name):
10033         * fileio.c (Fdirectory_file_name):
10034         * fileio.c (Fmake_temp_name):
10035         * fileio.c (Ffile_truename):
10036         * fileio.c (Fsubstitute_in_file_name):
10037         * fileio.c (expand_and_dir_to_file):
10038         * fileio.c (barf_or_query_if_file_exists):
10039         * fileio.c (check_executable):
10040         * fileio.c (Ffile_exists_p):
10041         * fileio.c (Ffile_writable_p):
10042         * fileio.c (Ffile_directory_p):
10043         * fileio.c (Ffile_regular_p):
10044         * fileio.c (Ffile_modes):
10045         * fileio.c (Ffile_newer_than_file_p):
10046         * fileio.c (Fverify_visited_file_modtime):
10047         * fileio.c (Fset_visited_file_modtime):
10048         * fileio.c (auto_save_1):
10049         (1). (2).
10050         fix up gcpro's.
10051
10052         * frame-msw.c:
10053         * frame-msw.c (mswindows_init_frame_1):
10054         * frame-msw.c (mswindows_enable_frame):
10055         * frame-msw.c (error_frame_unsizable):
10056         * frame-msw.c (msprinter_init_frame_1):
10057         * frame-msw.c (msprinter_init_frame_3):
10058         * frame-msw.c (console_type_create_frame_mswindows):
10059         (2).
10060         implement new enable/disable frame methods.
10061
10062         * frame-x.c:
10063         * frame-x.c (x_enable_frame):
10064         * frame-x.c (console_type_create_frame_x):
10065         implement new enable/disable frame methods.
10066
10067         * frame.c:
10068         * frame.c (Fdisable_frame):
10069         * frame.c (syms_of_frame):
10070         * frame.h (struct frame):
10071         implement new enable/disable frame methods/functions.
10072
10073         * general-slots.h:
10074         add initial-focus.
10075
10076         * glyphs-msw.c (mswindows_widget_instantiate):
10077         comment that initial-focus should be implemented.
10078
10079         * glyphs-widget.c:
10080         * glyphs-widget.c (check_valid_instantiator):
10081         * glyphs-widget.c (check_valid_orientation):
10082         * glyphs-widget.c (check_valid_tab_orientation):
10083         * glyphs-widget.c (check_valid_justification):
10084         * glyphs-widget.c (check_valid_border):
10085         * glyphs-widget.c (check_valid_callback):
10086         * glyphs-widget.c (check_valid_int_or_function):
10087         * glyphs-widget.c (check_valid_string_or_vector):
10088         * glyphs-widget.c (check_valid_item_list_1):
10089         * glyphs-widget.c (widget_validate):
10090         * glyphs-widget.c (combo_box_validate):
10091         * glyphs-widget.c (widget_instantiate):
10092         * glyphs-widget.c (syms_of_glyphs_widget):
10093         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10094         * glyphs-widget.c (image_instantiator_combo_box):
10095         * glyphs-widget.c (image_instantiator_scrollbar):
10096         * glyphs-widget.c (image_instantiator_tab_control):
10097         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10098         (2).
10099         support (unimplemented) keyword initial-focus.
10100         reindent long macros.
10101
10102         * glyphs-x.c (x_redisplay_widget):
10103         * glyphs-x.c (x_button_instantiate):
10104         * glyphs-x.c (x_button_redisplay):
10105         * glyphs-x.c (x_progress_gauge_instantiate):
10106         * glyphs-x.c (x_edit_field_instantiate):
10107         * glyphs-x.c (x_combo_box_instantiate):
10108         * glyphs-x.c (x_tab_control_instantiate):
10109         * glyphs-x.c (x_label_instantiate):
10110         * gui-x.c:
10111         * gui-x.c (button_item_to_widget_value):
10112         * gui-x.c (gui_items_to_widget_values_1):
10113         * gui-x.c (gui_item_children_to_widget_values):
10114         * gui-x.c (gui_items_to_widget_values):
10115         * gui-x.h:
10116         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10117         add new flag to gui-parsing routines to indicate whether
10118         accelerator specs should be supported.
10119
10120         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10121
10122         * glyphs.h (struct Lisp_Image_Instance):
10123         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10124         add initial-focus flag.
10125
10126         * gui.c:
10127         * gui.c (syms_of_gui):
10128         * gui.c (vars_of_gui):
10129         clean up menu-no-selection-hook.
10130
10131         * gui.h:
10132         support delete-dialog-box-hook.
10133
10134         * lread.c (Fload_internal):
10135         * lread.c (locate_file_in_directory_mapper):
10136         (1).
10137
10138         * lrecord.h:
10139         * lrecord.h (struct toolbar_button):
10140         * lrecord.h (syms_of_toolbar):
10141         document how to create a new object.
10142
10143         * menubar-msw.c (mswindows_char_is_accelerator):
10144         may be called on frames w/o menus.
10145
10146         * menubar.c (vars_of_menubar):
10147         clean up :filter docs.
10148
10149         * nt.c (readdir):
10150         * ntproc.c:
10151         (1).
10152
10153         * process-nt.c:
10154         * process-nt.c (validate_signal_number):
10155         * process-nt.c (signal_cannot_launch):
10156         * process-nt.c (nt_create_process):
10157         * process-nt.c (nt_send_process):
10158         * process-nt.c (nt_kill_child_process):
10159         * process-nt.c (nt_open_network_stream):
10160         * process-nt.c (syms_of_process_nt):
10161         (2).
10162         delete quote-handling.  call new lisp code that does it better.
10163
10164         * process-unix.c (connect_to_file_descriptor):
10165         * process-unix.c (allocate_pty):
10166         * process-unix.c (unix_send_process):
10167         * process-unix.c (unix_kill_child_process):
10168         * process-unix.c (unix_open_network_stream):
10169         * process-unix.c (unix_open_multicast_group):
10170         (1). (2).
10171
10172         * process.c:
10173         * process.c (Fstart_process_internal):
10174         (2).  need to canonicalize process path even if absolute.
10175
10176         * select-msw.c (symbol_to_ms_cf):
10177         * select-msw.c (ms_cf_to_symbol):
10178         * select-msw.c (cf_is_autofreed):
10179         * select-msw.c (mswindows_destroy_selection):
10180         * select.c:
10181         * select.c (syms_of_select):
10182         * select.h:
10183         support dibv5, fix bugs. (from Mike Alexander)
10184
10185         * select.c (Fget_selection_internal):
10186         * select.c (select_convert_out):
10187
10188         * sysdep.c:
10189         * sysdep.c (xemacs_stat):
10190         renamed.
10191
10192         * sysdep.c (mkdir):
10193         * sysdep.c (rmdir):
10194         but keep original stat() here because we provide encapsulation
10195         around these funs.
10196
10197         * sysfile.h:
10198         * sysfile.h (fstat):
10199         remove stat garbage.
10200
10201         * syswindows.h:
10202         fix X/MSW conflict.
10203         don't include tchar.h.  it's inappropriate because it makes
10204         compile-time distinctions when we want runtime distinctions.
10205         (we provide our own tchar replacements)
10206
10207         * toolbar.c:
10208         use default object printer for toolbar-button.
10209
10210         * unexcw.c:
10211         make sure we don't encapsulate.
10212
10213         * window.c (vars_of_window):
10214         emphasize that temp-buffer-show-hook is obsolete.
10215
10216 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10217
10218         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10219         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10220
10221         * events.c (Fevent_timestamp_lessp):
10222         Not 64-bit clean.  Use EMACS_INT, not int.
10223
10224 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10225
10226         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10227         unsigned int and changed the last enum to
10228         lrecord_type_last_built_in_type.
10229         (lrecord_implementations_table): changed prototype to know how
10230         long the array is supposed to be.
10231         (lrecord_type_count): new unsigned int to keep track of the
10232         current number of lisp lrecord types.
10233         (DEFINE_EXTERNAL_LRECORD):
10234         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10235         dynamic-modules to declare new lisp types. They are the same
10236         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10237         int for each new type, and increment lrecord_type_count by 1.
10238
10239         * alloc.c (lrecord_implementations_table): Changed to reference
10240         lrecord_type_last_built_in_type for the size of the array.
10241         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10242
10243 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10244
10245         * glyphs.h (check_valid_item_list): Renamed from
10246         check_valid_item_list_1.
10247
10248 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10249
10250         * select.c (Qselect_coerce): New.
10251         * select.c (Vselection_coercion_alist): New.
10252         * select.c (syms_of_select): Declare.
10253         * select.c (get-selection-internal): Use it.
10254         Use the new select-coerce functionality.
10255
10256         * select.c (select_coerce): New.
10257         * select.h (select_coerce): Declare.
10258         New function to coerce one type of data into another.
10259
10260 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10261
10262         * callproc.c (Fcall_process_internal):
10263         (Fcall_process_internal):
10264         * process-unix.c (unix_create_process):
10265         Save and restore the value of errno, so that error messages are accurate.
10266
10267 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10268
10269         * elhash.c (print_hash_table):
10270         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10271         Prettify docstrings and indentation.
10272
10273 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10274
10275         * window.c (Fwindow_pixel_edges): Subtract frame border and
10276         gutter size.
10277
10278 2000-07-31  Andy Piper  <andy@xemacs.org>
10279
10280         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10281         will acknowledge the change.
10282
10283         * glyphs.h: declare tab_control_order_only_changed.
10284
10285         * glyphs-x.c (x_tab_control_redisplay): use
10286         tab_control_order_only_changed.
10287
10288         * glyphs-widget.c (tab_control_order_only_changed): new function.
10289
10290         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10291         tab_control_order_only_changed.
10292
10293         * gui.c (gui_item_equal_sans_selected): new function.
10294         (gui_item_equal): use it.
10295
10296         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10297         :properties in favor of :items..
10298
10299         * glyphs-widget.c (check_valid_item_list): rename from
10300         check_valid_item_list_1.
10301         (check_valid_item_list_1): renamed.
10302         (combo_box_validate): deprecate :properties in favor of :items.
10303         (widget_instantiate): ditto.
10304         (tab_control_update): ditto.
10305         (image_instantiator_combo_box): ditto.
10306         (image_instantiator_tree_view): ditto.
10307         (image_instantiator_tab_control): ditto.
10308         (layout_post_instantiate): remove dead code.
10309
10310         * print.c (debug_print_no_newline): only write to debugger if in
10311         WIN32_NATIVE.
10312
10313         * elhash.c (Fmake_hash_table): update doc string.
10314
10315         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10316         messages whilst in GC. This at least stops XEmacs crashing but has
10317         the potential for wierd behaviour.
10318
10319 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10320
10321         * config.h.in:
10322         Make existence of s&m files optional.
10323
10324         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10325         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10326         * s/gnu.h: Remove HAVE_GETLOADAVG.
10327         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10328         * s/sol2.h: Remove HAVE_GETLOADAVG.
10329         * lisp.h: Remove getloadavg() declaration.
10330         * fns.c:
10331         Include <sys/loadavg.h> if available.
10332         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10333         * config.h.in:  Group together getloadavg()-related macros.
10334         Use only configure-time tests to detect getloadavg().
10335
10336 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10337
10338         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10339
10340 2000-07-25  Andy Piper  <andy@xemacs.org>
10341
10342         * syswindows.h: add tchar.h for native builds.
10343
10344         * frame.c (syms_of_frame): remove set-glyph-image.
10345
10346         * general-slots.h: add Qset_glyph_image.
10347
10348         * glyphs-widget.c (layout_update): add domain arg to
10349         set-glyph-image.
10350         (syms_of_glyphs_widget): remove set-glyph-image.
10351
10352 2000-07-23  Ben Wing  <ben@xemacs.org>
10353
10354         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10355         Vpopup_frame_list.
10356
10357 2000-07-22  Andy Piper  <andy@xemacs.org>
10358
10359         * symsinit.h: add syms_of_win32().
10360
10361         * gui-msw.c (syms_of_gui_mswindows): remove
10362         Fmswindows_shell_execute.
10363         (Fmswindows_shell_execute): moved to win32.c.
10364
10365         * emacs.c (main_1): add syms_of_win32 ().
10366
10367         * win32.c (init_potentially_nonexistent_functions): rewrite in
10368         compiler-friendly terms.
10369         (Fmswindows_shell_execute): move here from gui-msw.c.
10370         (syms_of_win32): new.
10371
10372         * device-msw.c (Fmswindows_printer_list): clean up args to
10373         EnumPrinters.
10374         Don't include tchar under cygwin or mingw.
10375         (msprinter_default_printer): make cygwin-friendly.
10376
10377 2000-07-21  Andy Piper  <andy@xemacs.org>
10378
10379         * glyphs-widget.c (image_instantiator_tree_view): use tab
10380         control's update function.
10381         (layout_property): new function. Retrieve items.
10382
10383         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10384         function. Re-populate the tree view from the pending items.
10385
10386         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10387         is designated the parent if the domain is an image instance. This
10388         is needed so that dirtiness can be cascade up the hierarchy and
10389         thus for layout children to be redisplayed correctly.
10390         (allocate_image_instance): rename glyph -> parent.
10391
10392         * redisplay.h: change redisplay_output_layout signature.
10393
10394         * redisplay-msw.c (mswindows_output_display_block): use domain
10395         arg.
10396
10397         * redisplay-x.c (x_output_display_block): use domain arg.
10398
10399 2000-07-10  Andy Piper  <andy@xemacs.org>
10400
10401         * window.c (Fset_window_configuration): add comment.
10402
10403         * redisplay-output.c (compare_runes):
10404         (redisplay_output_subwindow): redisplay rather than update subwindow.
10405         (redisplay_output_layout): ditto.
10406
10407         * redisplay-msw.c (mswindows_frame_output_end):
10408         (mswindows_frame_output_end): make defer window pos optional.
10409
10410         * lisp.h: add Flast.
10411
10412         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10413         normalize method. Change update method to be for changed
10414         instantiators. Add redisplay method. Change signature of layout
10415         method.
10416         (struct Lisp_Image_Instance): add instantiator.
10417         (IMAGE_INSTANCE_INSTANTIATOR): new.
10418         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10419         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10420         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10421
10422         * glyphs.c:
10423         (find_instantiator_differences): new function.
10424         (Fset_instantiator_property): new convenience function.
10425         (check_image_instance_structure): strictly check for vector
10426         instantiators.
10427         (normalize_image_instantiator): make non-static.
10428         (instantiate_image_instantiator): pass on dest_mask and use new
10429         signatures for image_instance_layout and friends.
10430         (mark_image_instance): mark the instantiator. Mark the subwindow
10431         face not the widget face.
10432         (image_instance_equal): add instantiator.
10433         (image_instance_hash): ditto.
10434         (allocate_image_instance): ditto.
10435         (Fset_image_instance_property): removed.
10436         (Fimage_instance_file_name): ditto.
10437         (Fcolorize_image_instance): ditto.
10438         (image_instance_layout): add offsets to be set.
10439         (update_image_instance): new function. update an image instance
10440         from its changed instantiator.
10441         (inherit_normalize): add dest_mask.
10442         (xbm_normalize): ditto.
10443         (xface_normalize): ditto.
10444         (xpm_normalize): ditto.
10445         (text_update): set_property -> update.
10446         (image_instantiate): use the glyph identity as a hash key, not the
10447         instantiator.
10448         (glyph_width): use new image_instance_layout signature.
10449         (glyph_ascent): ditto.
10450         (glyph_descent): ditto.
10451         (glyph_height): ditto.
10452         (glyph_query_geometry): ressurrect.
10453         (glyph_layout): ditto.
10454         (redisplay_subwindow): update -> redisplay.
10455         (syms_of_glyphs): add Fset_instantiator_property.
10456         (image_instantiator_format_create): set_property -> update.
10457
10458         * glyphs-x.c:
10459         (autodetect_normalize): add dest_maks to signature.
10460         (x_redisplay_subwindow): update -> redisplay.
10461         (x_redisplay_widget): ditto.
10462         (x_button_redisplay): ditto.
10463         (x_progress_gauge_redisplay): ditto.
10464         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10465         stacking order.
10466         (console_type_create_glyphs_x): update -> redisplay.
10467         (image_instantiator_format_create_glyphs_x): ditto.
10468
10469         * glyphs-widget.c:
10470         (check_valid_instantiator): disallow glyphs in the instantiator,
10471         they must now be vectors.
10472         (check_valid_instantiator_list): ditto.
10473         (glyph_instantiator_to_glyph): use internal symbol rather than
10474         intern.
10475         (widget_update): renamed from widget_set_property. Call cascaded
10476         update methods.
10477         (redisplay_widget): renamed from update_widget.
10478         (widget_layout): image_instance_layout now takes position as well
10479         as size.
10480         (widget_normalize): ditto.
10481         (widget_instantiate): ditto.
10482         (tab_control_query_geometry) ditto.:
10483         (tab_control_update): renamed from tab_control_set_property.
10484         (progress_gauge_update): set_property -> update.
10485         (layout_normalize): rewrite so that child instantiators are
10486         normalized also.
10487         (layout_update): new function. Create glyphs from the normalized
10488         children and cope with any other layout keywords. We do not
10489         instantiate children here that will be take care of by
10490         redisplay_output_layout.
10491         (layout_instantiate): call layout_update and not much else.
10492         (layout_post_instantiate): not sure whether this is needed
10493         anymore.
10494         (layout_query_geometry): query glyph geometry rather than
10495         image_instance geometry.
10496         (layout_layout): set offsets from pass in parameters. Use glyph
10497         geometry and layout functions rather than image instance ones.
10498         (native_layout_layout): ditto.
10499         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10500         (image_instantiator_widget): set_property -> update.
10501         (image_instantiator_buttons): ditto.
10502         (image_instantiator_progress_guage): ditto.
10503         (image_instantiator_tab_control): ditto.
10504         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10505         (image_instantiator_layout): add update method.
10506
10507         * glyphs-msw.c (bmp_normalize):
10508         (mswindows_resource_normalize): add dest_mask so that it can be
10509         proprogated by layout_normalize.
10510         (begin_defer_window_pos): make optional because it may not be the
10511         right thing to do and it introduces differences with X.
10512         (mswindows_unmap_subwindow): ditto.
10513         (mswindows_map_subwindow): ditto.
10514         (mswindows_redisplay_subwindow): renamed from
10515         mswindows_update_subwindow.
10516         (mswindows_redisplay_widget): ditto.
10517         (mswindows_button_redisplay): renamed from
10518         mswindows_button_update. Update is now what the instantiation
10519         function does for a changed instantiator.
10520         (mswindows_progress_gauge_instantiate): set the progress value
10521         here if appropriate.
10522         (mswindows_tab_control_redisplay): cope with re-ordering of the
10523         members of the tab widget by simply selecting the new top
10524         widget. This makes things appear ok if you click on a tab.
10525         (mswindows_combo_box_instantiate): image_instance_layout now takes
10526         position as well as size.
10527         (mswindows_progress_gauge_redisplay): renamed from
10528         mswindows_progress_gauge_update.
10529         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10530         (image_instantiator_format_create_glyphs_mswindows): ditto.
10531
10532         * glyphs-eimage.c (jpeg_normalize):
10533         (gif_normalize):
10534         (png_normalize):
10535         (tiff_normalize): add dest_mask so that it can be proprogated by
10536         layout_normalize.
10537
10538         * elhash.c:
10539         (print_hash_table):
10540         (hash_table_weakness_validate):
10541         (decode_hash_table_weakness):
10542         (Fhash_table_weakness):
10543         (Fhash_table_type):
10544         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10545
10546         * console.h (struct console_methods): move update_* to
10547         redisplay_*.
10548
10549 2000-07-20  Ben Wing  <ben@xemacs.org>
10550
10551         * *.[ch] (XSETOBJ): remove unused middle argument.
10552         lisp-disunion.h: correct wrap_object() to one argument.
10553
10554 2000-07-15  Ben Wing  <ben@xemacs.org>
10555
10556         * s/cygwin32.h:
10557         * s/cygwin32.h (CYGWIN_CONV_PATH):
10558         Add missing logb prototype for v1.1.
10559         Use post-b20 names and alias to pre-b20 names when pre-b20.
10560
10561         * s/windowsnt.h: [5].
10562
10563 2000-07-15  Ben Wing  <ben@xemacs.org>
10564
10565         * Makefile.in.in (x_objs):
10566         * Makefile.in.in (sheap_objs):
10567         * Makefile.in.in (objs):
10568         added win32.o, cosmetic cleanups.
10569
10570         * alloc.c (Fmake_byte_code):
10571         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10572         etc. macros which declare their own args now.
10573
10574         * alloc.c (syms_of_alloc):
10575         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10576
10577         * buffer.c:
10578         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10579
10580         * buffer.c (Fget_file_buffer):
10581         Fixed GCPRO problem.
10582
10583         * buffer.c (get_truename_buffer):
10584         Fixed comment about GC checking.
10585
10586         * buffer.c (syms_of_buffer):
10587         Undeclared those dedicated frame funs.
10588         [2].
10589
10590         * buffer.h:
10591         Define convenience macros for internal/external conversions.
10592         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10593         and Qenvironment_variable_encoding for cleaner code.
10594
10595         * bufslots.h:
10596         Remove dedicated-frame; in lisp.
10597
10598         * bytecode.c (funcall_compiled_function):
10599         [1].
10600
10601         * bytecode.c (syms_of_bytecode):
10602         [2].
10603
10604         * console-msw.c:
10605         * console-msw.c (mswindows_show_console): Rewrote.
10606
10607         * console-msw.c (Fmswindows_debugging_output): New.
10608         Sends to OutputDebugString (special MSWin debugger interface).
10609
10610         * console-msw.c (Fmswindows_message_box):
10611         Fixed stupid bugs so it works when called from kill-emacs.
10612
10613         * console-msw.c (syms_of_console_mswindows):
10614         Declare Fmswindows_debugging_output.
10615
10616         * console-msw.h:
10617         New MSWin prototypes.
10618
10619         * console-msw.h (struct mswindows_frame):
10620         New entry last-click-mods for improved button-modifier support.
10621
10622         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10623         New struct entry `popup' with corresponding accessor.
10624
10625         * console-x.c:
10626         * console-x.c (split_up_display_spec):
10627         * console-x.c (get_display_arg_connection):
10628         * console-x.c (x_semi_canonicalize_console_connection):
10629         * console-x.c (x_canonicalize_device_connection):
10630         [[[6]]]: Change char to more specific type.
10631         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10632
10633         * console-x.c (x_semi_canonicalize_console_connection):
10634         * console-x.c (x_canonicalize_device_connection):
10635         [[[9]]]: Fix up error signalling to use new structured error system.
10636
10637         * console-x.h:
10638         [[[4]]]: Define codesys aliases:
10639         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10640         Qx_color_name_encoding, Qx_display_name_encoding.
10641
10642         * console.h (struct console_methods):
10643         New method make_dialog_box_internal supersedes older
10644         popup_dialog_box method.
10645
10646         * data.c:
10647         Define many new errors, part of new structured errors.
10648
10649         * data.c (init_errors_once_early):
10650         * data.c (syms_of_data):
10651         [2].
10652
10653         * device-msw.c (mswindows_init_device):
10654         [[[5]]]: Cleanup to support NT 3.51.
10655
10656         * device-msw.c (decode_devmode): Cleanup.
10657
10658         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10659         * device-msw.c (mswindows_handle_print_dialog_box):
10660         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10661         * device-msw.c (syms_of_device_mswindows):
10662         Delete the dialog box primitives recently introduced by Kirill and
10663         instead interface to general dialog box interface.
10664
10665         * device-x.c:
10666         * device-x.c (compute_x_app_name):
10667         * device-x.c (x_init_device):
10668         * device-x.c (Fx_valid_keysym_name_p):
10669         * device-x.c (Fx_set_font_path):
10670         [6].
10671         [7].
10672
10673         * device.h (wrap_device): New.
10674         First of its kind; meant to replace XSETDEVICE.
10675
10676         * dialog-msw.c: Many file-dialog symbols.
10677
10678         * dialog-msw.c (mswindows_register_popup_frame): New.
10679         * dialog-msw.c (mswindows_is_dialog_msg): New.
10680         For supporting kbd traversal in dialog boxes.
10681
10682         * dialog-msw.c (dialog_proc):
10683         Support hitting ESC in dialogs.
10684
10685         * dialog-msw.c (struct):
10686         Common dialog box errors.
10687
10688         * dialog-msw.c (handle_file_dialog_box): New.
10689         Add file dialog code.
10690
10691         * dialog-msw.c (handle_question_dialog_box):
10692         Redo existing code to support new question dialog syntax.
10693
10694         * dialog-msw.c (console_type_create_dialog_mswindows):
10695         We support new dialog console method.
10696
10697         * dialog-msw.c (syms_of_dialog_mswindows):
10698         * dialog-msw.c (vars_of_dialog_mswindows):
10699         New file dialog symbols, vars.
10700
10701         * dialog-x.c:
10702         * dialog-x.c (maybe_run_dbox_text_callback):
10703         * dialog-x.c (dbox_descriptor_to_widget_value):
10704         * dialog-x.c (x_make_dialog_box_internal):
10705         * dialog-x.c (console_type_create_dialog_x):
10706         Mule-ize entire file.
10707         Redo to support question dialog syntax.
10708         [6].
10709
10710         * dialog.c:
10711         * dialog.c (Fmake_dialog_box_internal):
10712         * dialog.c (syms_of_dialog):
10713         Kill old popup-dialog-box, replace with new primitive.
10714         Just call device method or signal error.
10715
10716         * eldap.c (Fldap_open):
10717         * eldap.c (Fldap_search_basic):
10718         * eldap.c (Fldap_add):
10719         * eldap.c (Fldap_modify):
10720         [1].
10721         [7].
10722
10723         * emacs.c:
10724         * emacs.c (make_arg_list_1):
10725         * emacs.c (make_arg_list):
10726         Mule-ize call to dll_init().
10727         [6].
10728         [8].
10729
10730         * emacs.c (make_argc_argv):
10731         * emacs.c (free_argc_argv):
10732         * emacs.c (init_cmdargs):
10733         * emacs.c (main_1):
10734         * emacs.c (Fkill_emacs):
10735         * emacs.c (Fdump_emacs):
10736         Update comments about what can be used in syms_* etc.
10737         Call init_win32() when necessary.
10738         Fix up MS Win dialog box in kill-buffer to actually work right.
10739         [7].
10740
10741         * eval.c:
10742         * eval.c (For):
10743         * eval.c (Fand):
10744         * eval.c (Fprogn):
10745         * eval.c (Fprog1):
10746         * eval.c (Fprog2):
10747         * eval.c (FletX):
10748         * eval.c (Flet):
10749         * eval.c (condition_case_3):
10750         * eval.c (Feval):
10751         * eval.c (function_argcount):
10752         * eval.c (funcall_lambda):
10753         [1].
10754
10755         * eval.c (type_error): New.
10756         * eval.c (maybe_type_error): New.
10757         * eval.c (continuable_type_error): New.
10758         * eval.c (maybe_continuable_type_error): New.
10759         * eval.c (type_error_with_frob): New.
10760         * eval.c (maybe_type_error_with_frob): New.
10761         * eval.c (continuable_type_error_with_frob): New.
10762         * eval.c (maybe_continuable_type_error_with_frob): New.
10763         New functions for use with structured errors.
10764
10765         * event-Xt.c:
10766         * event-Xt.c (x_event_to_emacs_event):
10767         Buttons are now modifiers too.
10768
10769         * event-Xt.c (emacs_Xt_current_event_timestamp):
10770         Implement new event method.
10771         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10772
10773         * event-msw.c:
10774         * event-msw.c (ntpipe_shove_writer): [5].
10775         * event-msw.c (mswindows_enqueue_mouse_button_event):
10776         * event-msw.c (mswindows_drain_windows_queue):
10777         * event-msw.c (mswindows_wnd_proc): [7].
10778         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10779         * event-msw.c (mswindows_modifier_state):
10780         Throughout: support new button modifiers.
10781
10782         * event-msw.c (emacs_mswindows_current_event_timestamp):
10783         Implement new event method.
10784         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10785
10786         * event-stream.c:
10787         * event-stream.c (event_stream_current_event_timestamp): New.
10788         * event-stream.c (maybe_kbd_translate): New functionality.
10789         * event-stream.c (vars_of_event_stream):
10790         Document new kbd-translate-table functionality.
10791
10792         * event-stream.c (Fcurrent_event_timestamp): New.
10793         New primitive for use in fabricated events.
10794         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10795
10796         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10797
10798         * events.c:
10799         * events.c (Fmake_event):
10800         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10801         [1].
10802         [9].
10803
10804         * events.c (format_event_object): fix gcc warnings.
10805
10806         * events.c (Fevent_timestamp): Document new primitives.
10807
10808         * events.c (TIMESTAMP_HALFSPACE): New.
10809
10810         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10811         comparing timestamps correctly (half-space algorithm).
10812
10813         * events.c (Fevent_modifier_bits): Doc fix.
10814
10815         * events.c (Fevent_modifiers): Major doc addition.
10816         * events.c (event_x_y_pixel_internal): Typo fix.
10817         * events.c (syms_of_events): Declare new primitives.
10818
10819         * events.h:
10820         Update long comment for button modifiers, timestamps.
10821
10822         * events.h (struct event_stream):
10823         New current_event_timestamp method.
10824
10825         * extents.c:
10826         * extents.c (extent_in_region_p):
10827         * extents.c (decode_extent):
10828         * extents.c (Fset_extent_parent):
10829         * extents.c (decode_map_extents_flags):
10830         Fix gcc warnings.
10831         [9].
10832
10833         * extents.c (struct extent_at_arg):
10834         * extents.c (decode_extent_at_flag):
10835         * extents.c (extent_at_mapper):
10836         * extents.c (extent_at_bytind):
10837         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10838         * extents.c (Fextents_at): New primitive. [9].
10839         * extents.c (symbol_to_glyph_layout): [9].
10840         Support new primitive `extents-at'.
10841
10842
10843         * extents.c (get_text_property_bytind):
10844         extent_at_bytind has another arg.
10845         [9].
10846
10847         * extents.c (syms_of_extents): New primitive.
10848
10849         * file-coding.c (Fmake_coding_system): [1].
10850         * file-coding.c (subsidiary_coding_system): fix gcc warning
10851         * file-coding.c (syms_of_file_coding): [2].
10852
10853         * fileio.c (Fexpand_file_name):
10854         * fileio.c (Fsysnetunam):
10855         * fileio.c (Ffile_exists_p):
10856         * fileio.c (Ffile_executable_p):
10857         * fileio.c (Fverify_visited_file_modtime):
10858         Clean up GCPROing.
10859
10860         * fileio.c (syms_of_fileio): [2].
10861
10862         * filelock.c (lock_file_1):
10863         * filelock.c (current_lock_owner):
10864         * filelock.c (lock_if_free):
10865         * filelock.c (lock_file):
10866         * filelock.c (unlock_file):
10867         Clean up GCPROing.
10868
10869         * fns.c (concat): Fix gcc warning.
10870
10871         * fns.c (Fmember):
10872         * fns.c (Fold_member):
10873         * fns.c (Fmemq):
10874         * fns.c (Fold_memq):
10875         * fns.c (memq_no_quit):
10876         * fns.c (Fassoc):
10877         * fns.c (Fold_assoc):
10878         * fns.c (Fassq):
10879         * fns.c (Fold_assq):
10880         * fns.c (assq_no_quit):
10881         * fns.c (Frassoc):
10882         * fns.c (Fold_rassoc):
10883         * fns.c (Frassq):
10884         * fns.c (Fold_rassq):
10885         * fns.c (rassq_no_quit):
10886         * fns.c (Fdelete):
10887         * fns.c (Fold_delete):
10888         * fns.c (Fdelq):
10889         * fns.c (Fold_delq):
10890         * fns.c (delq_no_quit):
10891         * fns.c (Fremassoc):
10892         * fns.c (Fremassq):
10893         * fns.c (remassq_no_quit):
10894         * fns.c (Fremrassoc):
10895         * fns.c (Fremrassq):
10896         * fns.c (remrassq_no_quit):
10897         * fns.c (Freverse):
10898         * fns.c (mapcar1):
10899         [1].
10900
10901         * frame-msw.c (mswindows_init_frame_1):
10902         * frame-msw.c (mswindows_delete_frame):
10903         Register popups with dialog code so keyboard traversing works.
10904
10905         * frame-tty.c (tty_raise_frame_no_select): [1].
10906
10907         * frame-x.c:
10908         * frame-x.c (x_set_frame_text_value):
10909         * frame-x.c (x_set_frame_properties):
10910         * frame-x.c (x_create_widgets):
10911         [7].
10912
10913         * frame.c:
10914         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10915
10916         * frame.h (wrap_frame): New.
10917         Macro like wrap_device.
10918
10919         * general.c:
10920         * general.c (SYMBOL):
10921         * general.c (syms_of_general):
10922         Major reorg.  This is now just a wrapper and symbols themselves
10923         are listed in general-slots.h.
10924
10925         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10926         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10927
10928         * glyphs-msw.c (mswindows_native_layout_instantiate):
10929         Add DS_CONTROL so keyboard traversal will work.
10930
10931         * glyphs-widget.c:
10932         * glyphs-widget.c (syms_of_glyphs_widget):
10933         Move some symbols to general-slots.h.
10934
10935         * glyphs-x.c:
10936         * glyphs-x.c (xbm_instantiate_1):
10937         * glyphs-x.c (x_xbm_instantiate):
10938         * glyphs-x.c (x_xface_instantiate):
10939         * glyphs-x.c (autodetect_instantiate):
10940         * glyphs-x.c (cursor_font_instantiate):
10941         * glyphs-x.c (x_update_widget):
10942         * glyphs-x.c (x_widget_instantiate):
10943         * glyphs.c (bitmap_to_lisp_data):
10944         * glyphs.c (pixmap_to_lisp_data):
10945         [7].
10946
10947         * glyphs.c (syms_of_glyphs):
10948         [2].
10949
10950         * gui-x.c:
10951         * gui-x.c (print_widget_value):
10952         * gui-x.c (menu_separator_style_and_to_external):
10953         * gui-x.c (add_accel_and_to_external):
10954         * gui-x.c (button_item_to_widget_value):
10955         * gui-x.c (gui_items_to_widget_values_1):
10956         * gui-x.c (gui_items_to_widget_values):
10957         * gui-x.c (syms_of_gui_x):
10958         * gui-x.c (vars_of_gui_x):
10959         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10960         [9].
10961
10962         * gui-x.h:
10963         Muleize, prototype changes matching gui-x.c.
10964
10965         * gui.c:
10966         * gui.c (separator_string_p):
10967         * gui.c (gui_item_add_keyval_pair):
10968         * gui.c (make_gui_item_from_keywords_internal):
10969         * gui.c (signal_too_long_error):
10970         * gui.c (parse_gui_item_tree_item):
10971         * gui.c (syms_of_gui):
10972         * gui.c (vars_of_gui):
10973         * gui.h:
10974         menu-no-selection-hook moved here (used by MSWin).
10975         Move some symbols to general-slots.h.
10976         [6].
10977         [9].
10978
10979         * insdel.c (get_buffer_pos_char):
10980         * insdel.c (get_buffer_range_char):
10981         Add GC comments.
10982
10983         * keymap.c (keymap_lookup_directly):
10984         * keymap.c (keymap_store):
10985         * keymap.c (ensure_meta_prefix_char_keymapp):
10986         * keymap.c (describe_map):
10987         * keymap.h:
10988         Support new button modifiers.
10989
10990         * lisp-disunion.h (wrap_object):
10991         * lisp-disunion.h (XSETOBJ):
10992         Rename make_obj to wrap_object.
10993
10994         * lisp-union.h:
10995         * lisp-union.h (make_int):
10996         * lisp-union.h (make_char):
10997         Support wrap_object.
10998
10999         * lisp.h:
11000         * lisp.h (LIST_LOOP):
11001         * lisp.h (EXTERNAL_LIST_LOOP):
11002         * lisp.h (LIST_LOOP_2):
11003         * lisp.h (EXTERNAL_LIST_LOOP_1):
11004         * lisp.h (EXTERNAL_LIST_LOOP_2):
11005         * lisp.h (EXTERNAL_LIST_LOOP_3):
11006         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11007         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11008         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11009         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11010         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11011         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11012         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11013         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11014         * lisp.h (struct Lisp_Symbol):
11015         * lisp.h (maybe_continuable_error_with_frob):
11016         Fix up section comments.
11017         Add new types for char to indicate usage.
11018         Delete symbols auto-generated from general-slots.h.
11019         Add prototypes for structured error functions.
11020         Add long comments describing looping macros and change interface
11021         so that lvalues are automatically declared.
11022         Add NO_DECLARE macro in case callers want to declare lvalues
11023         themselves.
11024
11025         * lread.c (read_syntax_error):
11026         * lread.c (continuable_read_syntax_error):
11027         * lread.c (read_structure):
11028         * lread.c (sequence_reader):
11029         * lread.c (read_list_conser):
11030         * lread.c (read_compiled_function):
11031         Rename syntax_error and continuable_syntax_error to avoid clash
11032         with same-named structured error functions.
11033
11034         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11035         * menubar-msw.c (populate_menu_add_item):
11036         * menubar-msw.c (populate_or_checksum_helper):
11037         [5].
11038         [9].
11039
11040         * menubar-x.c:
11041         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11042         Mule-ize whole file.
11043
11044         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11045
11046         * mule-charset.c (Fmake_charset):
11047         * mule-wnnfns.c (Fwnn_set_param):
11048         [1].
11049
11050         * ntproc.c (create_child):
11051         * ntproc.c (Fwin32_set_current_locale):
11052         Add comments portending doom.
11053
11054         * objects-msw.c:
11055         * objects-msw.c (old_font_enum_callback_2):
11056         * objects-msw.c (font_enum_callback_1):
11057         * objects-msw.c (mswindows_enumerate_fonts):
11058         [5].
11059
11060         * objects-x.c:
11061         * objects-x.c (allocate_nearest_color):
11062         * objects-x.c (x_parse_nearest_color):
11063         * objects-x.c (x_initialize_color_instance):
11064         * objects-x.c (x_print_color_instance):
11065         * objects-x.c (x_finalize_color_instance):
11066         * objects-x.c (x_valid_color_name_p):
11067         * objects-x.c (x_initialize_font_instance):
11068         * objects-x.c (x_print_font_instance):
11069         * objects-x.c (valid_x_font_name_p):
11070         * objects-x.c (truename_via_FONT_prop):
11071         * objects-x.c (truename_via_random_props):
11072         * objects-x.c (truename_via_XListFonts):
11073         * objects-x.c (x_font_truename):
11074         * objects-x.c (x_font_instance_truename):
11075         * objects-x.c (x_font_instance_properties):
11076         * objects-x.c (x_list_fonts):
11077         * objects-x.c (x_find_charset_font):
11078         Mule-ize entire file.
11079         [7].
11080
11081         * objects-x.h:
11082         Mule-verify.
11083
11084         * print.c:
11085         * print.c (std_handle_out_external):
11086         * print.c (debug_print_no_newline):
11087         * print.c (syms_of_print):
11088         Output to all debugger kinds in debug-print.
11089         Fix console-output code under MSWin to actually work.
11090
11091         * process-nt.c (send_signal):
11092         * process-nt.c (nt_create_process):
11093         Use newer Unicode macros.
11094
11095         * process-unix.c (unix_create_process):
11096         * process-unix.c (unix_canonicalize_host_name):
11097         * process-unix.c (unix_open_network_stream):
11098         [7].
11099
11100         * scrollbar-x.c:
11101         Mule-verify.
11102
11103         * search.c (syms_of_search):
11104         [2].
11105
11106         * select-msw.c (mswindows_destroy_selection):
11107         Use LIST_LOOP_2.
11108
11109         * select-x.c (symbol_to_x_atom):
11110         [7].
11111
11112         * select.c (syms_of_select):
11113         [2].
11114
11115         * sound.c (Fplay_sound_file):
11116         [7].
11117
11118         * specifier.c:
11119         * specifier.c (decode_specifier_type):
11120         * specifier.c (Fvalid_specifier_locale_type_p):
11121         * specifier.c (check_valid_locale_or_locale_type):
11122         * specifier.c (decode_locale):
11123         * specifier.c (decode_locale_type):
11124         * specifier.c (decode_locale_list):
11125         * specifier.c (check_valid_domain):
11126         * specifier.c (decode_specifier_tag_set):
11127         * specifier.c (Fcanonicalize_tag_set):
11128         * specifier.c (Fdefine_specifier_tag):
11129         * specifier.c (Fspecifier_tag_predicate):
11130         * specifier.c (check_valid_inst_list):
11131         * specifier.c (check_valid_spec_list):
11132         * specifier.c (decode_how_to_add_specification):
11133         * specifier.c (check_modifiable_specifier):
11134         * specifier.c (specifier_add_spec):
11135         * specifier.c (boolean_validate):
11136         * specifier.c (display_table_validate):
11137         [9].
11138
11139         * specifier.c (syms_of_specifier):
11140         Move some symbols to general-slots.h.
11141         [2].
11142
11143         * symbols.c:
11144         * symbols.c (Fmapatoms):
11145         * symbols.c (Fapropos_internal):
11146         Add GCPROs.
11147
11148         * symbols.c (set_default_buffer_slot_variable):
11149         * symbols.c (set_default_console_slot_variable):
11150         [1].
11151
11152         * symbols.c (defsymbol_massage_name_1):
11153         * symbols.c (defkeyword_massage_name):
11154         * symbols.c (deferror_1):
11155         * symbols.c (deferror):
11156         * symbols.c (deferror_massage_name_and_message):
11157         * symeval.h:
11158         * symeval.h (DEFSYMBOL):
11159         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11160
11161         * symbols.c (syms_of_symbols):
11162         [2].
11163
11164         * symsinit.h:
11165         * symsinit.h (init_win32): New.
11166         Also new is syms_of_dialog_mswindows.
11167
11168         * syswindows.h:
11169         Add new Unicode macros, missing Cygwin wide-char functions,
11170         convenience conversion macros for Qmswindows_tstr, macros for
11171         encapsulating required MSWin <-> Cygwin filename conversions,
11172         prototype for dynamically-extracted (not in NT 3.51) functions.
11173
11174         * toolbar-x.c:
11175         Mule-verify.
11176
11177         * tooltalk.c (Fadd_tooltalk_message_arg):
11178         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11179         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11180         [7].
11181
11182         * tooltalk.c (syms_of_tooltalk):
11183         [2].
11184
11185         * unexnt.c:
11186         * unexnt.c (unexec):
11187         Fix up headers, declaration of unexec() to be more standard.
11188
11189 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11190
11191         * offix.h: Revert change to guard macros - they're used in offix.c!
11192
11193 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11194
11195         * lisp.h: Defsubred Fdelete.
11196
11197         * console-msw.h:  (msprinter_default_printer): Added.
11198
11199         * console-msw.c (msprinter_canonicalize_console_connection):
11200         (msprinter_canonicalize_device_connection): Added.
11201
11202         * device-msw.c (msprinter_default_printer):
11203         (Fmswingows_get_default_printer):
11204         (signal_enum_priner_error):
11205         (Fmswingows_printer_list): Added.
11206
11207 2000-07-19  Martin Buchholz <martin@xemacs.org>
11208
11209         * XEmacs 21.2.35 is released.
11210
11211 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11212
11213         * select-x.c (x_handle_selection_request):
11214         Text selected in xemacs and pasted into xterm failed to appear.
11215         Spelling fixes and cosmetic changes.
11216
11217 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11218
11219         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11220         XEmacs frame (fix for doubling chars in dialog boxes).
11221
11222 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11223
11224         * select.c (select_convert_in, select_convert_out):
11225         Don't call intern() every time.
11226
11227         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11228         * select.c (vars_of_select): Initialise them.
11229
11230 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11231
11232         * select.c (selection-coercible-types): New.
11233
11234         * select.c (own-selection-internal):
11235         * select.c (get-selection-internal):
11236         MULE bug fix - these should default to COMPOUND_TEXT and not
11237         STRING for MULE. I think.
11238
11239         * select.c (select_convert_out): Use selection-coercible-types
11240         to find types that we can attempt to perform coercions on.
11241
11242 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11243
11244         * mule-wnnfns.c:
11245         * mule-canna.c:
11246         Add coding: cookie to identify encoding.
11247
11248         * mule-canna.c (CANNA_mode_keys): make static.
11249         Use proper prototypes, even for functions of no arguments.
11250         Remove external prototype for Fding().
11251
11252         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11253
11254         * select.c (syms_of_select): Add missing DEFSUBR.
11255
11256 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11257
11258         * select.c (get_selection_internal, own_selection_internal):
11259         Make the type default to STRING, rather than placing a nil type
11260         into Vselection_alist.
11261
11262 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11263
11264         * gpmevent.c (tty_selection_exists_p):
11265         * gpmevent.c (tty_own_selection):
11266         Updated parameter lists.
11267
11268 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11269
11270         * select.h (selection-alist): Removed declaration.
11271
11272         * select.h (get_local_selection):
11273         * select.c (get_local_selection):
11274         Made static.
11275
11276         * select.h (convert_selection): Removed declaration.
11277         * select.c (convert_selection): Removed.
11278         This function belongs in Lisp.
11279
11280         * select.h (select_convert_in): Declare.
11281         * select.h (select_convert_out): Declare.
11282         * select.c (select_convert_in): New.
11283         * select.c (select_convert_out): New.
11284         New conversion functions for other files to call.
11285
11286         * select.h (select_notify_buffer_kill): Declare.
11287         * select.c (select_notify_buffer_kill): New.
11288         New functions that get called from kill-buffer.
11289
11290         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11291         X-specific lisp code.
11292
11293         * select.h: Declare some of the lisp-visible functions for
11294         external use.
11295
11296         * select.c (clean_local_selection_data): Removed. This was
11297         a disgusting function, and previously should have been in
11298         select-x.c in any case. The functionality is now provided
11299         in select-convert-from-integer (select.el).
11300
11301         * select.c (available-selection-types): Fixed stupidity where
11302         INTEGER and ATOM got added twice. Also add STRING when we see an
11303         extent.
11304
11305         * select.c (get-selection-internal): Removed symbol stripping. No
11306         longer causes conversion when data comes from the internal cache.
11307
11308         * select.c (syms_of_select): Added new functions.
11309
11310         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11311         error checking - previously this called abort!
11312
11313         * select-x.c (x_own_selection): Changed comment.
11314
11315         * select-x.c (x_handle_selection_request): Use select_convert_out.
11316         Don't mess with selection-alist; it's an internal variable of select.c.
11317
11318         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11319
11320         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11321         rather than messing with selection-alist.
11322
11323         * select-msw.c (mswindows_get_foreign_selection):
11324         Use TO_INTERNAL_FORMAT rather than hacking.
11325
11326 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11327
11328         * process-unix.c (unix_open_multicast_group):
11329         (unix_open_multicast_group): Remove useless casts.
11330
11331 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11332
11333         * sound.c (Fplay_sound): Fix `unused variable' warning.
11334
11335         * emacs.c (main): Use correct type for _environ on SCO5.
11336
11337 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11338
11339         * console.h (own_selection_method):
11340         * console.h (selection_exists_p_method):
11341         * console.h (available_selection_types_method): New.
11342         * console.h (register_selection_data_type_method): New.
11343         * console.h (selection_data_type_name): New.
11344
11345         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11346         function & alist to track GlobalAlloc()'d handles that need
11347         releasing when the clipboard data gets replaced or emptied.
11348
11349         * event-msw.c (mswindows_wnd_proc): Call it.
11350
11351         * lisp.h, general.c (Qappend): New symbol representing a
11352         `how-to-add' mode.
11353
11354         * select.c (own-selection-internal):
11355         * select.c (selection-exists-p):
11356         * select.c (available-selection-types): New.
11357         * select.c (register-selection-data-type): New.
11358         * select.c (selection-data-type-name): New.  New functions to deal
11359         with device-specific selection data formats.
11360         * select.c (selection-converter-out-alist): Renamed.
11361         * select.c (selection-converter-in-alist): New.
11362         * select.c (selection-appender-alist): New.  Added new alists.
11363         * select.c (syms_of_select, vars_of_select): Added new symbols &
11364         variables.
11365         * select.c (get_local_selection): Split.
11366         * select.c: Removed spurious type checking - selections may now be
11367         of any type, not just strings.
11368         * select.c (own-selection-internal):
11369
11370         * select.h, select.c (convert_selection): New. Created
11371         convert_selection() function based on get_local_selection().
11372         * select.h, select.c (QCF_*): New symbols representing mswindows
11373         clipboard formats.
11374         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11375         symbols representing `how-to-add' modes.
11376
11377         * select-msw.c (x_sym_p): New.
11378         * select-msw.c (symbol_to_ms_cf): New.
11379         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11380         symbols & clipboard formats. Can also handle string names.
11381         * select-msw.c (mswindows_own_selection):
11382         * select-msw.c (mswindows_selection_exists_p):
11383         Added `data-type' parameter. Use it.
11384         * select-msw.c (mswindows_available_selection_types): New.
11385         * select-msw.c (mswindows_register_selection_data_type): New.
11386         * select-msw.c (mswindows_selection_data_type_name): New.
11387         * select-msw.c (mswindows_own_selection):
11388         * select-msw.c (mswindows_get_foreign_selection):
11389         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11390         * select-msw.c (console_create_select_mswindows): Added new methods.
11391         * select-msw.c (mswindows_destroy_selection): New.
11392         * select-msw.c (Vhandle_alist): New list.
11393         * select-msw.c (mswindows_own_selection):
11394
11395         * select-x.c (x_own_selection):
11396         * select-x.c (x_selection_exists_p):
11397         * select-x.c: Added some comments about maybe using new
11398         functionality.
11399         * select-x.c (x_own_selection):
11400
11401         * specifier.c: Remove definition of Qappend (now in general.c)
11402         * specifier.c (syms_of_specifier): Remove Qappend.
11403
11404 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11405
11406         * config.h.in: Add socklen_t.
11407
11408         * s/decosf4-0.h: No special compiler flags needed or desired.
11409         In particular, undefine _BSD for DEC OSF 4.0.
11410
11411 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11412
11413         * redisplay-msw.c (msprinter_frame_output_end): Added.
11414         (console_type_create_redisplay_mswindows): Referred the above.
11415
11416         * frame.c (setup_frame_without_minibuffer): Do not create a
11417         default minibuffer frame on a printer device.
11418
11419         * frame-msw.c (apply_dc_geometry): Added.
11420         (msprinter_start_page):
11421         (msprinter_init_frame_3):
11422         (msprinter_eject_page): Use it.
11423
11424         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11425         and removed residual duplex and orientation properties.
11426
11427 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11428
11429         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11430
11431         * unexalpha.c: Remove system prototypes from C sources!
11432
11433 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11434
11435         * eval.c: Remove references to M-x edit-options in DEFUNs for
11436         `defvar' and `defconst'.
11437
11438 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11439
11440         * config.h.in: Remove SMART_INCLUDE hackery.
11441
11442         PostgreSQL hacking:
11443         * config.h.in: Don't use SMART_INCLUDE.
11444
11445         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11446         * inline.c: Simply #include "postgresql.h"
11447         * postgresql.c:
11448         - Don't use SMART_INCLUDE
11449         - Use simply "const".
11450         - Use standard doc string conventions.
11451         - Use correct type for result of PQstatus.
11452
11453 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11454
11455         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11456
11457         C++ compilation changes.
11458         * config.h.in (EXTERN_C): Define.
11459         * config.h.in (not): This is also a C++ keyword.
11460         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11461         * cm.c: Use EXTERN_C.
11462         * redisplay-tty.c: Use EXTERN_C.
11463         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11464
11465 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11466
11467         * general.c: Remove duplicate definition for Qfunction.
11468
11469 2000-07-08  Ben Wing  <ben@xemacs.org>
11470
11471         * device-msw.c (msprinter_init_device):
11472         * device-msw.c (sync_printer_with_devmode):
11473         * device-msw.c (handle_devmode_changes):
11474         * device-msw.c (print_dialog_worker):
11475         * device-msw.c (Fmsprinter_apply_settings):
11476         * device-msw.c (hash_devmode):
11477         * device-msw.c (Fmsprinter_settings_despecialize):
11478         use Qmswindows_tstr, not Qctext.
11479
11480         * vm-limit.c (check_memory_limits):
11481         avoid infinite loop printing warning messages.
11482
11483 2000-07-05  Craig Lanning  <lanning@scra.org>
11484
11485         * Makefile.in.in: Add support for including the Windows resources
11486         when building with the cygwin and mingw targets.
11487
11488         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11489         not set or not correct.
11490         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11491         (init_initial_directory): Don't try to use $PWD on the
11492         WIN32_NATIVE target.
11493
11494         * s\cygwin32.h:
11495         [[Add -mwindows to eliminate console window.]] not required --ben
11496         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11497         (MAIL_USE_POP): removed; now handled by configure.
11498
11499         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11500         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11501         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11502         (MAIL_USE_POP): removed; now handled by configure.
11503         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11504         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11505         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11506         constant string.
11507         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11508         up from <winsock.h> via systime.h.
11509         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11510         (getpagesize): from Dan Holmsand, added.
11511         Added #endif which was left dangling by Ben's mega patch; added
11512         comment to help prevent this in the future.
11513
11514         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11515
11516 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11517
11518         * console-msw.h (struct mswindows_device): Removed unnecessary
11519         cached device geometry values.
11520         Added update_tick and an accessor macro.
11521         (Lisp_Devmode): Added lrecord declaration.
11522         (struct msprinter_device): Contain devmode as a Lisp object.
11523         Added mswindows_get_selected_frame_hwnd();
11524
11525         * console.h (struct console_methods): Indentation nitpicking.
11526
11527         * device-msw.c (mswindows_init_device): Do not initialize geometry
11528         cache. Initialize update tick.
11529         (mswindows_device_system_metrics): Ask the device for its geometry.
11530         (global_free_2_maybe):
11531         (devmode_to_hglobal):
11532         (handle_printer_changes):
11533         (ensure_not_printing):
11534         (print_dialog_worker):
11535         (Fmsprinter_print_setup_dialog):
11536         (Fmsprinter_print_dialog):
11537         (plist_get_margin):
11538         (plist_set_margin):
11539         (Fmsprinter_page_setup_dialog): Added functions.
11540         (sync_printer_with_devmode):
11541         (handle_devmode_changes):
11542         (Fmsprinter_get_settings):
11543         (Fmsprinter_select_settings):
11544         (Fmsprinter_apply_settings):
11545         (allocate_devmode):
11546         (Fmsprinter_settings_copy):
11547         (Fmsprinter_settings_despecialize):
11548         (print_devmode):
11549         (finalize_devmode):
11550         (equal_devmode):
11551         (hash_devmode): Added functions
11552         (syms_of_device_mswindows): Init devmode lrecord class.
11553
11554         * device.h: Added an exfun for find-device.
11555
11556         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11557         geometry; although, recreate the device compatible DC.
11558
11559         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11560         (msprinter_init_frame_3):
11561         (msprinter_frame_property):
11562         (msprinter_internal_frame_property_p):
11563         (msprinter_frame_properties):
11564         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11565         print job properties (will move to device settings).
11566
11567         * lisp.h: Added symbols.
11568
11569         * general.c (syms_of_general): Declared them.
11570
11571         * hash.c (string_hash): Added.
11572
11573         * lrecord.h (lrecord_type): Added devmode lrecord type.
11574
11575 2000-07-02  Mike Sperber <mike@xemacs.org>
11576
11577         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11578         FreeBSD 4.0.
11579
11580 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11581
11582         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11583         integer.
11584
11585 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11586
11587         * data.c (Fstring_to_number): Don't recognize floating point if
11588         base is not 10.
11589
11590 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11591
11592         * glyphs-widget.c (tab_control_query_geometry):
11593         (widget_query_geometry):
11594         (button_query_geometry):
11595         * glyphs.c (text_query_geometry):
11596         Enforce type correctness.
11597
11598 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11599
11600         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11601         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11602
11603 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11604
11605         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11606         conflicts with gcc's fixincluded version of FOO.h.
11607
11608         * glyphs.h (image_instance_geometry): Remove trailing `,'
11609
11610 2000-06-08  Mike Alexander  <mta@arbortext.com>
11611
11612         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11613         (shove_thread): Don't write the same output twice
11614         (make_ntpipe_output_stream): Increase priority of shove thread
11615         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11616         chance to run
11617         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11618         it.
11619
11620 2000-06-12  Ben Wing  <ben@xemacs.org>
11621
11622         * s\mingw32.h (sigset):
11623         * s\windowsnt.h (sigset):
11624         rename msw_ to mswindows_ for consistency with general convention.
11625
11626 2000-06-12  Ben Wing  <ben@xemacs.org>
11627
11628         * console-msw.c:
11629         * console-msw.c (mswindows_get_console_hwnd):
11630         * console-msw.c (mswindows_ensure_console_allocated):
11631         * console-msw.c (mswindows_hide_console):
11632         * console-msw.c (mswindows_show_console):
11633         * console-msw.c (mswindows_ensure_console_buffered):
11634         * console-msw.c (mswindows_output_console_string):
11635         * console-msw.c (mswindows_windows9x_p):
11636         * console-msw.h:
11637         * device-msw.c (mswindows_get_workspace_coords):
11638         * device-msw.c (mswindows_device_system_metrics):
11639         * dialog-msw.c (mswindows_popup_dialog_box):
11640         * event-msw.c (mswindows_wnd_proc):
11641         * frame-msw.c (mswindows_size_frame_internal):
11642         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11643         * menubar-msw.c (displayable_menu_item):
11644         * menubar-msw.c (mswindows_char_is_accelerator):
11645         * nt.c:
11646         * nt.c (mswindows_sigset):
11647         * nt.c (mswindows_sigrelse):
11648         * nt.c (mswindows_sigpause):
11649         * nt.c (mswindows_raise):
11650         * nt.c (timer_proc):
11651         * ntproc.c:
11652         * ntproc.c (find_child_console):
11653         * ntproc.c (sys_kill):
11654         * print.c:
11655         * print.c (std_handle_out_external):
11656         * process-nt.c (find_child_console):
11657         * process-nt.c (send_signal_the_95_way):
11658         * process-nt.c (ensure_console_window_exists):
11659         * process-nt.c (nt_create_process):
11660         * syssignal.h:
11661         rename msw_ to mswindows_ for consistency with general convention.
11662
11663         * emacs.c:
11664         * dumper.c:
11665         include nt.h, not syswindows.h.
11666
11667         * nt.c (mswindows_fstat):
11668         * nt.c (mswindows_stat):
11669         prefix mswindows_ instead of attempting to directly override the
11670         library functions.  fix declarations.
11671
11672         * nt.h:
11673         include syswindows.h.  move some sysdep.h stuff here.
11674
11675         * ntheap.h:
11676         include syswindows.h, not <windows.h>.
11677
11678         * ntplay.c:
11679         clean up headers.
11680
11681         * sysdep.c:
11682         clean up headers.
11683
11684         * sysdep.c (sys_fstat):
11685         * sysdep.c (sys_stat):
11686         call mswindows versions when appropriate.
11687
11688         * sysdep.h:
11689         move mswin decls to nt.h.
11690
11691         * syswindows.h:
11692         add long comment describing appropriate use of the various windows
11693         headers.
11694
11695 2000-06-11  Ben Wing  <ben@xemacs.org>
11696
11697         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11698
11699 2000-06-10  Ben Wing  <ben@xemacs.org>
11700
11701         * Makefile.in.in (release):
11702         Correction to make sure xemacs.exe always dumped when correct.
11703
11704         * alloca.c:
11705         * balloon_help.c:
11706         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11707
11708         * buffer.c (set_buffer_internal):
11709         [[[[2]]]]: Remove HAVE_FEP code.
11710
11711         * buffer.c (init_initial_directory):
11712         [3].
11713
11714         * bytecode.c:
11715         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11716         individual files.
11717
11718         * callproc.c:
11719         * callproc.c (call_process_cleanup):
11720         * callproc.c (Fold_call_process_internal):
11721         * callproc.c (child_setup):
11722         * callproc.c (getenv_internal):
11723         * callproc.c (init_callproc):
11724         * callproc.c (vars_of_callproc):
11725         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11726         __CYGWIN32__ -> CYGWIN.
11727         DOS_NT -> WIN32_NATIVE.
11728         Remove MSDOS support/references, converting to WIN32_NATIVE
11729           where correct.
11730         __MINGW32__ -> MINGW.
11731         Fix windows.h includes.
11732         Remove bogus HAVE_NTGUI.
11733
11734         * config.h.in:
11735         [2].
11736
11737         * console-msw.c:
11738         mswindows_message_outputted added for use in allowing startup
11739         errors on the console to be seen.
11740
11741         * console-msw.c (msw_ensure_console_allocated):
11742         * console-msw.c (msw_output_console_string):
11743         * console-msw.c (DHEADER):
11744         * console-msw.c (DOPAQUE_DATA):
11745         * console-msw.c (DEVENT):
11746         * console-msw.c (DCONS):
11747         * console-msw.c (DCONSCDR):
11748         * console-msw.c (DSTRING):
11749         * console-msw.c (DVECTOR):
11750         * console-msw.c (DSYMBOL):
11751         * console-msw.c (DSYMNAME):
11752         Fix warnings.
11753
11754         * console-stream.c (stream_init_console):
11755         Fix text/binary problems.
11756
11757         * device-msw.c:
11758         * device-msw.c (mswindows_finish_init_device):
11759         * device-msw.c (mswindows_delete_device):
11760         [1].
11761
11762         * device.c (handle_asynch_device_change):
11763         [3].
11764
11765         * dgif_lib.c:
11766         * dgif_lib.c (DGifOpenFileName):
11767         * dgif_lib.c (DGifOpenFileHandle):
11768         * dgif_lib.c (DGifGetLine):
11769         * dgif_lib.c (DGifGetPixel):
11770         Added config.h/lisp.h, fix up includes.
11771         [1].
11772
11773         * dired-msw.c:
11774         [4].
11775
11776         * dired.c:
11777         * dired.c (file_name_completion):
11778         * dired.c (Ffile_attributes):
11779         * dired.c (syms_of_dired):
11780         [1].
11781
11782         * dumper.c:
11783         * dumper.c (pdump_file_unmap):
11784         * dumper.c (pdump_load):
11785         [1].
11786
11787         * editfns.c:
11788         * editfns.c (Ftemp_directory):
11789         * editfns.c (user_login_name):
11790         * editfns.c (Fuser_real_login_name):
11791         * editfns.c (get_home_directory):
11792         [1].
11793
11794         * elhash.c (finish_marking_weak_hash_tables):
11795         [[[[5]]]]: Fix GCC warnings.
11796
11797         * emacs.c:
11798         * emacs.c (mswindows_handle_hardware_exceptions):
11799         * emacs.c (make_arg_list_1):
11800         * emacs.c (main_1):
11801         * emacs.c (Fkill_emacs):
11802         * emacs.c (Fdump_emacs):
11803         [1].
11804         Fix problems with nested crashes, add long comment.
11805
11806         * event-Xt.c (init_event_Xt_late):
11807         [1].
11808
11809         * event-msw.c:
11810         * event-msw.c (mswindows_dde_callback):
11811         * event-msw.c (mswindows_handle_sticky_modifiers):
11812         * event-msw.c (mswindows_wnd_proc):
11813         [1].
11814         [5].
11815
11816         * events.c (character_to_event):
11817         [1].
11818
11819         * fileio.c:
11820         * fileio.c (Ffile_name_directory):
11821         * fileio.c (Ffile_name_nondirectory):
11822         * fileio.c (directory_file_name):
11823         * fileio.c (Fexpand_file_name):
11824         * fileio.c (Fsubstitute_in_file_name):
11825         * fileio.c (Ffile_name_absolute_p):
11826         * fileio.c (check_executable):
11827         * fileio.c (Ffile_readable_p):
11828         * fileio.c (Ffile_accessible_directory_p):
11829         * fileio.c (Ffile_modes):
11830         * fileio.c (Funix_sync):
11831         * fileio.c (vars_of_fileio):
11832         [1]. [4].
11833
11834         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11835
11836         Expand getdefdir defn.
11837         Fix bogus rename() comment.
11838
11839         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11840         to use standard XEmacs include files, e.g. sysfile.h, rather
11841         than system-specific includes.
11842
11843         * fns.c:
11844         * fns.c (Fsubseq):
11845         [5]. [6].
11846
11847         * frame.c (vars_of_frame):
11848         [1].
11849
11850         * getloadavg.c:
11851         * getloadavg.c (getloadavg):
11852         [1]. [6].
11853         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11854         (We don't use it elsewhere in the code; just add a comment.)
11855
11856         * gif_io.c:
11857         [6].
11858         Add config.h.
11859
11860         * glyphs-msw.c:
11861         * glyphs-msw.c (mswindows_resource_instantiate):
11862         [1].
11863
11864         * glyphs-x.c (x_native_layout_instantiate):
11865         [5].
11866
11867         * gui-msw.c (Fmswindows_shell_execute):
11868         [1].
11869
11870         * insdel.c:
11871         [4].
11872
11873         * lisp.h:
11874         [4]. [5].
11875
11876         * lread.c (locate_file_in_directory_mapper):
11877         [1].
11878
11879         * lstream.c:
11880         [4].
11881
11882         * mem-limits.h:
11883         * mem-limits.h (get_lim_data):
11884         [1].
11885
11886         * menubar-msw.c:
11887         [4].
11888
11889         * ndir.h:
11890         [1].
11891
11892         * nt.c:
11893         * nt.c (getwd):
11894         * nt.c (closedir):
11895         * nt.c (rva_to_section):
11896         * nt.c (mswindows_executable_type):
11897         [1]. [6].
11898         Fix closedir() defn.
11899
11900         * nt.h:
11901         [[[[8]]]]: *_OK defs moved to sysfile.h.
11902
11903         * ntproc.c:
11904         [6]. [7].
11905
11906         * objects-x.c:
11907         [4].
11908
11909         * print.c:
11910         * print.c (std_handle_out_external):
11911         [1]. [4].
11912
11913         * process-nt.c:
11914         * process-nt.c (nt_create_process):
11915         [6].
11916         try to fix process quoting somewhat.
11917
11918         * process-unix.c (unix_create_process):
11919         [1].
11920
11921         * process.c:
11922         * process.c (vars_of_process):
11923         Add Vnull_device.
11924
11925         * process.h:
11926         [1].
11927
11928         * realpath.c:
11929         * realpath.c (xrealpath):
11930         [1].
11931
11932         * redisplay-tty.c (init_tty_for_redisplay):
11933         [3].
11934
11935         * redisplay.c:
11936         [4]. [6].
11937
11938         * scrollbar-msw.c:
11939         [4].
11940
11941         * sheap.c:
11942         * sheap.c (more_static_core):
11943         * sheap.c (report_sheap_usage):
11944         [5]. [6].
11945
11946         * signal.c:
11947         * signal.c (alarm_signal):
11948         [1]. [6].
11949
11950         * sound.c:
11951         [6].
11952
11953         * strftime.c:
11954         * strftime.c (zone_name):
11955         [1]. [5].
11956
11957         * symsinit.h (init_sunpro):
11958         [1].
11959
11960         * syscommctrl.h:
11961         commctrl.h not in Cygwin b20.1.
11962
11963         * sysdep.c:
11964         * sysdep.c (endif):
11965         * sysdep.c (sys_subshell):
11966         * sysdep.c (init_baud_rate):
11967         * sysdep.c (emacs_get_tty):
11968         * sysdep.c (emacs_set_tty):
11969         * sysdep.c (tty_init_sys_modes_on_device):
11970         * sysdep.c (init_system_name):
11971         * sysdep.c (sys_open):
11972         * sysdep.c (interruptible_open):
11973         * sysdep.c (sys_fopen):
11974         * sysdep.c (sys_mkdir):
11975         * sysdep.c (sys_rename):
11976         * sysdep.c (get_process_times_1):
11977         [1]. [6].
11978
11979         * sysdep.h:
11980         [1].
11981
11982         * sysdir.h:
11983         * sysdir.h (DIRENTRY_NONEMPTY):
11984         [1]. [6].
11985
11986         * sysdll.c (dll_init):
11987         * sysdll.h:
11988         [1].
11989
11990         * sysfile.h:
11991         [1]. [6]. [8].
11992         added text/binary defs.
11993
11994         * sysfloat.h:
11995         [1].
11996
11997         * sysproc.h:
11998         * sysproc.h (EDESTADDRREQ):
11999         * sysproc.h (poll_fds_for_input):
12000         [1]. [6].
12001
12002         * syspwd.h:
12003         [6].
12004
12005         * syssignal.h:
12006         [1].
12007
12008         * systime.h:
12009         [1]. [6].
12010
12011         * systty.h:
12012         [1].
12013
12014         * syswindows.h:
12015         [1].
12016         Always define WIN32_LEAN_AND_MEAN.
12017
12018         * unexcw.c (unexec):
12019         [5].
12020
12021         * unexec.c:
12022         * unexec.c (copy_text_and_data):
12023         * unexec.c (adjust_lnnoptrs):
12024         [1].
12025
12026         * unexnt.c:
12027         * unexnt.c (_start):
12028         [1].
12029
12030 2000-06-07  Ben Wing  <ben@xemacs.org>
12031
12032         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12033         was used only as a model.  We've long since extracted any useful
12034         logic or code out of this. (I just did an exhaustive search.)
12035
12036         * s\msdos.h: Removed.
12037
12038         * s\windows95.h: Removed.
12039
12040 2000-06-10  Ben Wing  <ben@xemacs.org>
12041
12042         * s\cygwin32.h:
12043         [1]. [5].
12044         Don't use extern with fun defs.
12045
12046         * s\mingw32.h:
12047         [1]. [7].
12048         Remove nt\inc include.
12049         Remove getdisk, getdefdir. (The former is unused, the latter
12050         expanded in fileio.h.)
12051
12052         * s\windowsnt.h:
12053         * s\windowsnt.h (WIN32_NATIVE):
12054         * s\windowsnt.h (HAVE_STRCASECMP):
12055         [1]. [7].
12056         Add long comment about preprocessor changes.
12057         Remove getdisk, getdefdir. (The former is unused, the latter
12058         expanded in fileio.h.)
12059
12060 2000-06-10  Ben Wing  <ben@xemacs.org>
12061
12062         * m\arm.h:
12063         * m\delta.h:
12064         * m\intel386.h:
12065         * m\sequent.h:
12066         * m\template.h:
12067         * m\windowsnt.h:
12068         [1].
12069         Remove bogus/unused NO_SOCK_SIGIO.
12070
12071 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12072
12073         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12074         not an Emchar.
12075
12076 2000-06-04  Mike Sperber <mike@xemacs.org>
12077
12078         * casetab.c (set_case_table): For `set-standard-case-table',
12079         actually deposit the new case tables where the rest of XEmacs can
12080         see them.
12081
12082 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12083
12084         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12085
12086 2000-06-05  Ben Wing  <ben@xemacs.org>
12087
12088         * callproc.c (child_setup): Don't do close_load_descs() under
12089         MS Windows.  Put in a comment explaining why.
12090
12091 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12092
12093         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12094         Toolkit shell" which breaks `kill-compilation' on Windows NT
12095         native, retaining STDERR handling improvements.
12096
12097 2000-06-01  Andreas Jaeger  <aj@suse.de>
12098
12099         * s/s390.h: Support for S390, based on a patch by Martin
12100         Schwidefsky <schwidefsky@de.ibm.com>.
12101
12102 2000-05-30  Andy Piper  <andy@xemacs.org>
12103
12104         * window.c (allocate_window):
12105         (make_dummy_parent):
12106         (Fset_window_configuration): use new hashtable type.
12107
12108         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12109         (struct image_instantiator_methods):
12110         (struct Lisp_Image_Instance): make instance geometry signed.
12111
12112         * glyphs.c (instantiate_image_instantiator):
12113         (image_instance_query_geometry):
12114         (image_instance_layout):
12115         (image_instance_layout):
12116         (query_string_geometry):
12117         (text_query_geometry):
12118         (image_instantiate):
12119         (image_instantiate):
12120         (cache_subwindow_instance_in_frame_maybe):
12121         (subwindow_query_geometry): make instance geometry signed.
12122
12123         * glyphs-widget.c (widget_query_geometry):
12124         (widget_layout):
12125         (button_query_geometry):
12126         (tree_view_query_geometry):
12127         (tab_control_query_geometry):
12128         (layout_query_geometry):
12129         (layout_layout):
12130         (native_layout_layout): make instance geometry signed.
12131
12132 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12133
12134         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12135         constant.
12136
12137         * general.c (syms_of_general): Add Qfull_assoc symbol.
12138
12139         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12140         correctly.
12141         (decode_weak_list_type): Decode full-assoc type.
12142         (encode_weak_list_type): Encode full-assoc type.
12143         (Fmake_weak_list): Update doc string.
12144
12145 2000-05-30  Andy Piper  <andy@xemacs.org>
12146
12147         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12148
12149         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12150         (decode_hash_table_weakness): ditto.
12151         (Fhash_table_weakness): ditto.
12152         (Fhash_table_type): ditto.
12153         (finish_marking_weak_hash_tables): ditto.
12154         (hash_table_weakness_validate): ditto.
12155         (syms_of_elhash): ditto.
12156
12157 2000-05-28  Martin Buchholz <martin@xemacs.org>
12158
12159         * XEmacs 21.2.34 is released.
12160
12161 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12162
12163         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12164         start cache.
12165         (updating_line_start_cache): Gone.
12166         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12167         generic code to force a minimum of 1 line laid out in the
12168         CMOTION_DISP case.
12169
12170 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12171
12172         * glyphs.c (instantiate_image_instantiator): Check for initialized
12173         height & width no longer special cases IMAGE_NOTHING.
12174         (nothing_instantiate): Set height and width of instance.
12175
12176 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12177
12178         * unexelf.c (unexec): Search for ".data" section.
12179         Initialize new_data2_offset from old_data_index.
12180         Remove redundant check for ElfW.
12181
12182 2000-05-23  Andy Piper  <andy@xemacs.org>
12183
12184         * glyphs.c (get_image_instantiator_governing_domain): allow more
12185         specific domains as the governing domain rather than expecting an
12186         exact match. This fixes problems with layouts.
12187
12188 2000-05-22  Andy Piper  <andy@xemacs.org>
12189
12190         * redisplay-output.c (compare_runes): check for non-images
12191
12192         * glyphs.c (set_glyph_dirty_p): ditto.
12193         (update_glyph_cachel_data): ditto.
12194
12195         * glyphs-widget.c (layout_post_instantiate): ditto.
12196         (layout_post_instantiate): ditto.
12197
12198         * event-msw.c (mswindows_wnd_proc): warning removal.
12199
12200 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12201
12202         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12203
12204         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12205
12206         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12207
12208         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12209         (mswindows_executable_type): mingw32 now has enough headers for
12210         this to work.
12211
12212 2000-05-20  Andy Piper  <andy@xemacs.org>
12213
12214         * console-msw.c (mswindows_output_last_error): ; -> ,
12215
12216 2000-05-12  Andy Piper  <andy@xemacs.org>
12217
12218         * console-msw.c (FROB): compare ints with ints.
12219
12220 2000-05-11  Andy Piper  <andy@xemacs.org>
12221
12222         * glyphs-x.c (x_finalize_image_instance): make minimal build
12223         happy.
12224
12225 2000-05-20  Ben Wing  <ben@xemacs.org>
12226
12227         * event-Xt.c:
12228         * event-Xt.c (vars_of_event_Xt):
12229         move modifier-keys-are-sticky to event-stream.c.
12230
12231         * event-msw.c:
12232         * event-msw.c (mswindows_enqueue_mouse_button_event):
12233         * event-msw.c (key_needs_default_processing_p):
12234         * event-msw.c (XEMSW_LCONTROL):
12235         * event-msw.c (mswindows_handle_sticky_modifiers):
12236         * event-msw.c (FROB):
12237         * event-msw.c (clear_sticky_modifiers):
12238         * event-msw.c (output_modifier_keyboard_state):
12239         * event-msw.c (output_alt_keyboard_state):
12240         * event-msw.c (mswindows_wnd_proc):
12241         * event-msw.c (mswindows_modifier_state):
12242         * event-msw.c (emacs_mswindows_handle_magic_event):
12243         implement sticky modifiers.
12244
12245         * event-stream.c:
12246         * event-stream.c (vars_of_event_stream):
12247         move modifier-keys-are-sticky here.
12248
12249         * lisp.h:
12250         add CHECK_FUNCTION.
12251
12252         * rangetab.c:
12253         implement map-range-table.
12254
12255
12256 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12257
12258         * redisplay-tty.c (reset_tty_modes):
12259         (tty_redisplay_shutdown): Adjust argument type to
12260         tty_frame_output_end.
12261
12262 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12263
12264         * eval.c (Fbacktrace): Don't output a line with only right
12265         parenthesis.
12266
12267 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12268
12269         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12270         (Fpq_reset_poll): Ditto.
12271
12272 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12273
12274         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12275
12276 2000-05-16  Ben Wing  <ben@xemacs.org>
12277
12278         * buffer.c:
12279         * buffer.c (dfc_convert_to/from_internal_format):
12280         * buffer.c (reinit_vars_of_buffer):
12281         Fix conversion functions to allow reentrancy.
12282
12283         * console-msw.c:
12284         * console-msw.c (mswindows_output_last_error):
12285         New fun, generally useful -- output a human-readable
12286         version of GetLastError() on the console.
12287
12288         * console-msw.h:
12289         * console-msw.h (struct mswindows_frame):
12290         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12291
12292         * console-stream.c (stream_output_begin):
12293         * console-stream.c (stream_output_end):
12294         * console-stream.c (stream_output_vertical_divider):
12295         * console-stream.c (stream_clear_region):
12296         * console-stream.c (stream_flash):
12297         * console-stream.c (console_type_create_stream):
12298         Delete blank stream methods, not needed.
12299
12300         * console.h (struct console_methods):
12301         Split begin/end methods into window and frame.
12302
12303         * event-msw.c:
12304         * event-msw.c (mswindows_handle_paint):
12305         * event-msw.c (output_alt_keyboard_state):
12306         * event-msw.c (mswindows_wnd_proc):
12307         * event-msw.c (vars_of_event_mswindows):
12308         Comment about problems with ignored-expose.
12309         Define mswindows-debug-events; not really implemented.
12310
12311         * frame-msw.c (mswindows_init_frame_1):
12312         random cleanups.
12313
12314         * glyphs-msw.c:
12315         * glyphs-msw.c (begin_defer_window_pos):
12316         * glyphs-msw.c (mswindows_unmap_subwindow):
12317         * glyphs-msw.c (mswindows_map_subwindow):
12318         * glyphs-msw.c (mswindows_resize_subwindow):
12319         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12320
12321         * glyphs.c (make_image_instance_1):
12322         Fix crash.
12323
12324         * gutter.c (Fredisplay_gutter_area):
12325         Use new begin/end methods.
12326
12327         * lisp.h (Dynarr_new2):
12328         New creation fun.
12329
12330         * redisplay-msw.c:
12331         * redisplay-msw.c (mswindows_frame_output_begin):
12332         * redisplay-msw.c (mswindows_frame_output_end):
12333         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12334         New begin/end methods -- handle DeferWindowPos.
12335
12336         * redisplay-output.c (redisplay_move_cursor):
12337         * redisplay-output.c (redraw_cursor_in_window):
12338         * redisplay-output.c (redisplay_update_line):
12339         * redisplay-output.c (redisplay_output_window):
12340         New begin/end methods.
12341
12342         * redisplay-tty.c:
12343         * redisplay-tty.c (tty_frame_output_begin):
12344         * redisplay-tty.c (tty_frame_output_end):
12345         * redisplay-tty.c (console_type_create_redisplay_tty):
12346         New begin/end methods.
12347
12348         * redisplay-x.c:
12349         * redisplay-x.c (x_window_output_begin):
12350         * redisplay-x.c (x_window_output_end):
12351         * redisplay-x.c (console_type_create_redisplay_x):
12352         New begin/end methods.
12353
12354         * redisplay.c (redisplay_frame):
12355         * redisplay.c (Fredisplay_echo_area):
12356         New begin/end methods.
12357         use MAYBE_DEVMETH for clear_frame; it may not exist.
12358
12359         * window.h (WINDOW_XFRAME):
12360         WINDOW_XFOO macros -- get locale and decode struct pointer.
12361
12362
12363 2000-05-12  Ben Wing  <ben@xemacs.org>
12364
12365         * emacs.c:
12366         * emacs.c (ensure_no_quitting_from_now_on):
12367         * emacs.c (fatal_error_signal):
12368         * emacs.c (mswindows_handle_hardware_exceptions):
12369         * emacs.c (main):
12370         * emacs.c (Fkill_emacs):
12371         * emacs.c (shut_down_emacs):
12372         * emacs.c (assert_failed):
12373         various improvements in fatal error handling.
12374
12375         * eval.c:
12376         move preparing_for_armageddon to emacs.c.
12377
12378         * lisp.h:
12379         declare fatal_error_in_progress.
12380
12381         * print.c:
12382         * print.c (std_handle_out_external):
12383         * print.c (std_handle_out_va):
12384         * print.c (stderr_out):
12385         * print.c (stdout_out):
12386         use console under mswin when no standard output.
12387         don't do code conversion during fatal error.
12388
12389         * scrollbar.c (Fscrollbar_page_up):
12390         * scrollbar.c (Fscrollbar_page_down):
12391         fix missing else.  reindent.
12392
12393 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12394
12395         Emergency fix.
12396
12397         * glyphs.h (GLYPH_CACHEL_DESCENT):
12398         (GLYPH_CACHEL_DESCENT):
12399         (GLYPH_CACHEL_DESCENT):
12400         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12401         used in case these are inline functions.
12402         Use more absurd values to error check.
12403
12404         include window.h for error check functions.
12405
12406 2000-05-11  Ben Wing  <ben@xemacs.org>
12407
12408         * cmdloop.c (Freally_early_error_handler):
12409         Display message box under windows; otherwise, message will disappear
12410         before it can be viewed.
12411
12412         * console-msw.c:
12413         * console-msw.c (Fmswindows_message_box):
12414         * console-msw.c (FROB):
12415         * console-msw.c (syms_of_console_mswindows):
12416         Define new fun `mswindows-message-box'.
12417         #### I will merge this into `popup-dialog-box'; just give me
12418         a bit of time.
12419
12420         * general.c:
12421         * general.c (syms_of_general):
12422         Some new symbols used in `mswindows-message-box'.
12423
12424         * glyphs.c:
12425         * glyphs.c (Fset_image_instance_property):
12426         put warning in this fun.
12427
12428         * glyphs.h:
12429         * glyphs.h (GLYPH_CACHEL_WIDTH):
12430         * glyphs.h (GLYPH_CACHEL_ASCENT):
12431         * glyphs.h (GLYPH_CACHEL):
12432         * glyphs.h (GLYPH_CACHEL_GLYPH):
12433         define error-checking versions to try to catch a bug i've seen --
12434         redisplay gets in an infinite loop because the glyph width of the
12435         continuation glyph is 65535.
12436
12437         * lisp.h:
12438         Extern message-box stuff.
12439
12440         * window.c (allocate_window):
12441         * window.c (make_dummy_parent):
12442         * window.c (Fset_window_configuration):
12443         Use EQUAL not EQ for subwindow caches to make them work a bit
12444         better. (Something is still very broken.)
12445
12446
12447 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12448
12449         * glyphs.c (image_instantiate): Suppress gcc warnings.
12450         (Fmake_image_instance): Fix doc string.
12451         * specifier.c (Fmake_specifier): Ditto.
12452
12453 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12454
12455         * paths.h.in (PATH_LOCK): Removed.
12456         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12457         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12458
12459 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12460
12461         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12462         Document (featurep '(and xemacs 21.02)).
12463
12464 2000-05-09  Ben Wing  <ben@xemacs.org>
12465
12466         * buffer.c (complex_vars_of_buffer):
12467         update modeline-format doc.
12468
12469         * device.h:
12470         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12471
12472         * emacs.c:
12473         timeline of all released versions of Emacs, for use in creating
12474         authorship comments and in synching up.
12475
12476         * glyphs-widget.c (image_instantiator_buttons):
12477         * glyphs-widget.c (image_instantiator_edit_fields):
12478         * glyphs-widget.c (image_instantiator_combo_box):
12479         * glyphs-widget.c (image_instantiator_scrollbar):
12480         * glyphs-widget.c (image_instantiator_progress_guage):
12481         * glyphs-widget.c (image_instantiator_tree_view):
12482         * glyphs-widget.c (image_instantiator_tab_control):
12483         * glyphs-widget.c (image_instantiator_labels):
12484         * glyphs-widget.c (image_instantiator_layout):
12485         * glyphs-widget.c (image_instantiator_native_layout):
12486         rename decode_domain method to governing_domain.
12487
12488         * glyphs.c:
12489         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12490         * glyphs.c (add_entry_to_device_ii_format_list):
12491         make sure we don't put an entry more than once into the list.
12492         * glyphs.c (check_instance_cache_mapper):
12493         *************************************************************
12494         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12495         HAVE BEEN GETTING.
12496         *************************************************************
12497         * glyphs.c (get_image_instantiator_governing_domain):
12498         clean up, expand on new concept of governing domain.
12499         * glyphs.c (instantiate_image_instantiator):
12500         * glyphs.c (allocate_image_instance):
12501         use governing_domain instead of cache_domain in naming.
12502         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12503         * glyphs.c (make_image_instance_1):
12504         * glyphs.c (Fmake_image_instance):
12505         allow for any domain (not just device), and process the
12506         governing domain correctly.  very big doc fix.
12507         * glyphs.c (Fimage_instance_domain):
12508         new primitive, to retrieve the governing domain of an image instance.
12509         * glyphs.c (image_instantiate):
12510         use new governing_domain stuff.  this fixes a crash you could get
12511         by instantiating certain widget glyphs in frame locales. (should
12512         signal an error instead of crashing.)
12513         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12514         * glyphs.c (Fglyphp): clean up doc.
12515         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12516         * glyphs.c (syms_of_glyphs):
12517         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12518         * glyphs.c (image_instantiator_format_create): add some comments about
12519         bogus code.
12520         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12521         for current-display-table. (Apparently Hrjove implemented in 1998 a
12522         design I wrote up in 1996, but didn't update the doc string.)
12523
12524         * glyphs.h: clean up a doc string.
12525         * glyphs.h (governing_domain):
12526         * glyphs.h (struct image_instantiator_methods):
12527         changes for governing_domain stuff.
12528
12529         * gutter.c:
12530         * gutter.c (Fgutter_specifier_p):
12531         * gutter.c (Fgutter_size_specifier_p):
12532         * gutter.c (Fgutter_visible_specifier_p):
12533         * objects.c:
12534         * objects.c (Fcolor_specifier_p):
12535         * objects.c (Ffont_specifier_p):
12536         * objects.c (Fface_boolean_specifier_p):
12537         doc strings moved to make-*-specifier.
12538
12539         * redisplay.c (add_disp_table_entry_runes_1):
12540         * redisplay.c (generate_fstring_runes):
12541         * redisplay.c (screen):
12542         add random comments and doc strings.
12543
12544         * specifier.c:
12545         * specifier.c (Fmake_specifier):
12546         major overhaul of this doc string.
12547
12548         * specifier.c (Fvalid_specifier_domain_p):
12549         comment about the bogosity of image instances being domains.
12550         * specifier.c (decode_domain):
12551         now non-static, used in glyphs.c.
12552         * specifier.c (specifier_instance):
12553         comment about the bogosity of image instances being domains.
12554         * specifier.c (Fgeneric_specifier_p):
12555         move doc string to make-generic-specifier.
12556         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12557         rebackslashify.
12558
12559         * specifier.h:
12560         * specifier.h (DOMAIN_FRAME):
12561         * specifier.h (DOMAIN_LIVE_P):
12562         * specifier.h (DOMAIN_XDEVICE):
12563         rebackslashify.
12564         add comments about problems with these macros.
12565         prototype for decode_domain.
12566
12567         * toolbar.c:
12568         * toolbar.c (Ftoolbar_specifier_p):
12569         move doc string to `make-toolbar-specifier'.
12570
12571         * window.c (window_unmap_subwindows_cache_mapper):
12572         *************************************************************
12573         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12574         HAVE BEEN GETTING.
12575         *************************************************************
12576
12577 2000-05-09  Andy Piper  <andy@xemacs.org>
12578
12579         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12580
12581         * window.c (Fset_window_configuration): reset the frame subwindow
12582         cache and re-initialize the window subwindow caches.
12583
12584         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12585
12586 2000-05-09  Ben Wing  <ben@xemacs.org>
12587
12588         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12589         DWORD.
12590
12591 2000-04-26  Mike Woolley  <mike@bulsara.com>
12592
12593         * ntheap.c: Changed recreate_heap to limit the amount reserved
12594         for the heap to that which is actually available. Also now
12595         displays a message box (with some dignostics) in the event that
12596         it still can't start.
12597
12598 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12599
12600         * callproc.c (Fold_call_process_internal): GCPRO path
12601
12602 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12603
12604         Patch by Bill Perry.
12605
12606         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12607         back data instead of #ifdef.
12608         (Fscrollbar_page_down): ditto.
12609
12610 2000-05-07  Ben Wing  <ben@xemacs.org>
12611
12612         * buffer.h:
12613         Kludge for defining Qmswindows_tstr.
12614
12615         * nt.c:
12616         * nt.c (open_input_file):
12617         * nt.c (open_output_file):
12618         * nt.c (rva_to_section):
12619         * nt.c (mswindows_executable_type):
12620         Move all memory-mapped-file routines here (some were in unexnt.c,
12621         which is bad because they are used by process-nt.c, and unexnt
12622         won't be around when portable dumping).  Synched the above routines
12623         with FSF 20.6.
12624
12625         * nt.h:
12626         Removed ifdef'd out bogus code.
12627         Fixed some prototypes.
12628
12629         * nt.h (file_data):
12630         * nt.h (OFFSET_TO_RVA):
12631         * nt.h (RVA_TO_OFFSET):
12632         * nt.h (RVA_TO_PTR):
12633         Moved the memory-mapped-file structures, macros and prototypes
12634         here, to parallel nt.c.  ntheap.h should really be removed
12635         entirely, and it's a non-portable-dumper specific file.
12636
12637         * ntheap.h (round_to_next):
12638         Moved the memory-mapped-file structures, macros and prototypes
12639         to nt.h.
12640
12641         * ntproc.c (compare_env):
12642         Moved rva_to_section and mswindows_executable_type to nt.c.
12643         Moved compare_env to process-nt.c.
12644         ntproc.c will die, one day.
12645
12646         * ntproc.c (sys_spawnve):
12647         Account for win32_ -> mswindows_.
12648
12649         * process-nt.c:
12650         * process-nt.c (struct nt_process_data):
12651         * process-nt.c (ensure_console_window_exists):
12652         * process-nt.c (compare_env):
12653         * process-nt.c (nt_create_process):
12654         * process-nt.c (nt_kill_process_by_pid):
12655         * process-nt.c (syms_of_process_nt):
12656         * process-nt.c (vars_of_process_nt):
12657         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12658         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12659         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12660         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12661         Move compare_env here from ntproc.c.
12662
12663         * process.c (Fprocess_send_region):
12664         Takes an optional fourth argument, BUFFER, which should fix some
12665         problems with call-process.
12666
12667         * syscommctrl.h:
12668         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12669
12670         * syswindows.h:
12671         Move ICC_BAR_CLASSES to syscommctrl.h.
12672         Add preliminary macros for MSWindows/Mule.  More to come.
12673
12674         * unexnt.c:
12675         * unexnt.c (unexec):
12676         open_output_file moved to nt.c.
12677
12678
12679 2000-05-05  Andy Piper  <andy@xemacs.org>
12680
12681         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12682         instance from the frame cache also since GC may catch up too late
12683         to make frame deletion sane.
12684
12685 2000-05-04  Andy Piper  <andy@xemacs.org>
12686
12687         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12688         (x_finalize_image_instance): ungcpro on deletion.
12689
12690         * glyphs.c (image_instantiator_format_create): give pointers a
12691         query geometry method so that the geometry is at least set.
12692
12693         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12694         initialize layouts if using widgets.
12695
12696 2000-05-03  Andy Piper  <andy@xemacs.org>
12697
12698         * nt.c: remove bogus reference to sysmmsystem.h
12699
12700         * gui-x.c (popup_selection_callback): fix no selection abort.
12701
12702 2000-05-02  Andy Piper  <andy@xemacs.org>
12703
12704         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12705         (mswindows_widget_instantiate): ditto.
12706
12707         * glyphs-widget.c (initialize_widget_image_instance): initialize
12708         children correctly.
12709         (widget_instantiate): cope with children and items in the same
12710         instance.
12711
12712         * glyphs.c (mark_image_instance): cope with children as a first
12713         class member.
12714         (image_instance_equal): ditto.
12715         (image_instance_hash): ditto.
12716         (image_instance_changed): ditto.
12717
12718 2000-04-30  Andy Piper  <andy@xemacs.org>
12719
12720         * glyphs.c (subwindow_query_geometry): new function. Return some
12721         defaults.
12722         (subwindow_instantiate): don't assign dimensions if none have been
12723         given.
12724         (image_instantiator_format_create): add subwindow_query_geometry.
12725         (print_image_instance): cope with layouts as widgets.
12726
12727 2000-04-29  Andy Piper  <andy@xemacs.org>
12728
12729         * frame.c (delete_frame_internal): call
12730         free_frame_subwindow_instance_cache so that all subwindows are
12731         finalized before their parent.
12732         (mark_frame): remove subwindow_cachels.
12733         (Fmake_frame): remove subwindow_cachel manipulation.
12734         (allocate_frame_core): subwindow_instance_cache is a weak list.
12735         (delete_frame_internal): set subwindow_instance_cache to nil.
12736
12737         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12738         finalization safe.
12739         (mswindows_finalize_image_instance): use the device
12740         not the domain as the domain may have died already.
12741
12742         * glyphs-x.c (x_finalize_image_instance): ditto.
12743         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12744         HEIGHT.
12745
12746         * redisplay-output.c (redisplay_unmap_subwindows): update for
12747         subwindow instance cache as a weak list.
12748         (redisplay_unmap_subwindows_maybe): ditto.
12749         (redisplay_unmap_subwindows_except_us): ditto.
12750
12751         * glyphs.c (unmap_subwindow): error checking will check the domain
12752         so don't deal with it here. Don't use cachels anymore.
12753         (map_subwindow): ditto.
12754         (update_subwindow_cachel_data): remove old accessor names.
12755         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12756         (Fresize_subwindow): don't update cachel.
12757         (mark_subwindow_cachels):
12758         (update_subwindow_cachel_data):
12759         (add_subwindow_cachel):
12760         (get_subwindow_cachel_index):
12761         (update_subwindow_cachel):
12762         (reset_subwindow_cachels):
12763         (mark_subwindow_cachels_as_not_updated): deleted.
12764         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12765         subwindow instance to the frame cache.
12766         (find_matching_subwindow): update for subwindow instance cache as
12767         a weak list.
12768         (update_widget_instances): ditto.
12769         (image_instance_type_to_mask):inlined.
12770         (free_frame_subwindow_instance_cache): new function. finalize all
12771         subwindows that are instantiated.
12772
12773         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12774         of cachel information.
12775         (IMAGE_INSTANCE_DISPLAY_X):
12776         (IMAGE_INSTANCE_DISPLAY_Y):
12777         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12778         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12779         (XIMAGE_INSTANCE_DISPLAY_X):
12780         (XIMAGE_INSTANCE_DISPLAY_Y):
12781         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12782         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12783         remove subwindow_cachel structure and function references.
12784         (image_instance_type_to_mask): inline from glyphs.c
12785
12786         * redisplay.c (redisplay_frame): remove subwindow_cachel
12787         references.
12788
12789         * frame.h (struct frame): remove subwindow_cachels.
12790         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12791
12792         * frameslots.h: add subwindow_instance_cache.
12793
12794         * window.c (replace_window): check subwindow cache of replacement.
12795         (window_unmap_subwindows_cache_mapper):
12796         (window_unmap_subwindows): new functions. Unmap all subwindows
12797         cached on this window.
12798         (mark_window_as_deleted): unmap all subwindows.
12799
12800 2000-04-27  Andy Piper  <andy@xemacs.org>
12801
12802         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12803
12804         * glyphs-widget.c (widget_layout): return something.
12805         (layout_layout): return something. Fail if not initialized.
12806         (layout_query_geometry): ditto.
12807         (image_instantiator_native_layout): new function. Initialized the
12808         native layout type.
12809         (widget_instantiate): don't do layout stuff here.
12810
12811         * glyphs.c (instantiate_image_instantiator): reorded calling or
12812         instantiate and post_instantiate with layout in between.
12813         (image_instance_layout): be more selective about deciding whether
12814         the layout has been done or not.
12815
12816         * glyphs.h (struct image_instantiator_methods): return a value
12817         from layout_method.
12818
12819 2000-04-26  Andy Piper  <andy@xemacs.org>
12820
12821         * glyphs.c (allocate_image_instance): make initial width and
12822         height unspecified. Set initialized to 0.
12823
12824         * syscommctrl.h new file. Encapsulates commctrl.h.
12825
12826         * syswindows.h new file. Encapsulates windows.h.
12827
12828         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12829         * nt.c: ditto.
12830         * console-msw.h: ditto.
12831
12832         * redisplay-tty.c (tty_output_display_block): remove layout references.
12833
12834         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12835         window handle rather than just the frame.
12836
12837         * glyphs.c (mark_image_instance): remove layout references.
12838         (print_image_instance): ditto.
12839         (image_instance_equal): ditto.
12840         (image_instance_hash): ditto.
12841         (decode_image_instance_type): ditto.
12842         (encode_image_instance_type): ditto.
12843         (image_instantiate): ditto.
12844         (allocate_glyph): ditto.
12845         (Fimage_instance_height): ditto.
12846         (Fimage_instance_width): ditto.
12847         (update_subwindow): ditto.
12848
12849         * redisplay-x.c (x_output_display_block): recode for layouts as
12850         widgets.
12851
12852         * redisplay-output.c (redisplay_output_layout): recode for layouts
12853         as widgets.
12854         (compare_runes): remove layout references.
12855
12856         * redisplay-msw.c (mswindows_output_display_block): recode for
12857         layouts as widgets.
12858
12859         * glyphs-widget.c (image_instantiator_layout): remove
12860         layout_possible_dest_types.
12861         (layout_possible_dest_types): deleted.
12862
12863         * glyphs.h (image_instance_type): remove layout references.
12864         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12865         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12866         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12867
12868 2000-04-25  Andy Piper  <andy@xemacs.org>
12869
12870         * glyphs-widget.c (image_instantiator_buttons):
12871         (image_instantiator_edit_fields):
12872         (image_instantiator_combo_box):
12873         (image_instantiator_scrollbar):
12874         (image_instantiator_progress_guage):
12875         (image_instantiator_tree_view):
12876         (image_instantiator_tab_control):
12877         (image_instantiator_labels):
12878         (image_instantiator_layout): call default post_instantiate method.
12879         (widget_post_instantiate): new function. Simply lays out the
12880         widgets.
12881
12882         * glyphs.h (struct image_instantiator_methods): add
12883         post_instantiate method.
12884
12885         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12886         method calls.
12887
12888 2000-04-23  Andy Piper  <andy@xemacs.org>
12889
12890         * glyphs.h (struct image_instantiator_methods): add
12891         decode_domain_method.
12892         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12893         derived from the domain.
12894         (IMAGE_INSTANCE_FRAME): new accessor.
12895         (XIMAGE_INSTANCE_FRAME): ditto.
12896
12897         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12898         instead of _SUBWINDOW_FRAME.
12899         (finalize_image_instance): ditto.
12900         (Fimage_instance_foreground): ditto.
12901         (Fimage_instance_background): ditto.
12902         (image_instantiate): ditto.
12903         (update_subwindow_cachel): ditto.
12904         (update_subwindow): ditto.
12905         (unmap_subwindow): ditto.
12906         (map_subwindow): ditto
12907         (subwindow_instantiate): ditto.
12908         * glyphs-msw.c (mswindows_update_widget): ditto.
12909         (mswindows_progress_gauge_instantiate): ditto.
12910         (mswindows_tab_control_update): ditto.
12911         * glyphs-x.c (x_update_widget): ditto.
12912         (x_widget_instantiate): ditto.
12913         (x_tab_control_instantiate): ditto.
12914         (x_tab_control_update): ditto.
12915         * event-msw.c (mswindows_wnd_proc): ditto
12916
12917         * glyphs-widget.c (image_instantiator_layout): use
12918         subwindow_decode_domain.
12919         (image_instantiator_buttons): ditto.
12920         (image_instantiator_edit_fields): ditto.
12921         (image_instantiator_combo_box): ditto.
12922         (image_instantiator_scrollbar): ditto.
12923         (image_instantiator_progress_guage): ditto.
12924         (image_instantiator_tree_view): ditto.
12925         (image_instantiator_tab_control): ditto.
12926         (image_instantiator_labels): ditto.
12927         (image_instantiator_layout): ditto.
12928
12929         * glyphs.c: add instance error checking to many functions.
12930         (instantiate_image_instantiator): decode device from cache_domain.
12931         (image_instantiate): partially rewrite by using
12932         decode_image_instantiator_domain to determine what domain the
12933         instance needs to be cached in.
12934         (decode_image_instantiator_domain): new function. Determine what
12935         domain the image needs to be cached in.
12936         (check_window_subwindow_cache): new error checking function.
12937         (check_instance_cache_mapper): ditto.
12938         (check_image_instance_structure): ditto.
12939         (subwindow_decode_domain): new function. Encodes a window as a
12940         subwindow's cache domain.
12941         (image_instantiator_format_create): use it for text and
12942         subwindows.
12943
12944 2000-04-21  Andy Piper  <andy@xemacs.org>
12945
12946         * glyphs.c (image_instance_device): new function.
12947         (image_instance_frame): new function.
12948         (image_instance_window): new function.
12949         (image_instance_live_p): new function.
12950
12951         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12952         cache to nil.
12953
12954         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12955         (IMAGE_INSTANCE_DOMAIN): new accessor.
12956         (XIMAGE_INSTANCE_DOMAIN): ditto.
12957
12958         * glyphs-x.c (x_finalize_image_instance): device->domain.
12959
12960         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12961         (mswindows_finalize_image_instance): ditto.
12962
12963         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12964         (gif_instantiate): ditto.
12965         (png_instantiate): ditto.
12966         (tiff_instantiate): ditto.
12967
12968         * glyphs.c (instantiate_image_instantiator): use domain rather
12969         than device.
12970         (mark_image_instance): device -> domain.
12971         (print_image_instance): ditto.
12972         (finalize_image_instance): ditto.
12973         (image_instance_equal): ditto.
12974         (allocate_image_instance): ditto.
12975         (Fcolorize_image_instance): ditto.
12976         (query_string_geometry): ditto.
12977         (image_instantiate): ditto
12978         (query_string_font): ditto.
12979         (image_instantiate): ditto.
12980         (update_subwindow): ditto.
12981         (unmap_subwindow): ditto.
12982         (map_subwindow): ditto.
12983         (subwindow_instantiate): ditto.
12984
12985         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12986         (DOMAIN_FRAME): ditto.
12987         (DOMAIN_WINDOW): ditto.
12988         (DOMAIN_LIVE_P): ditto.
12989         (XDOMAIN_DEVICE): ditto.
12990         (XDOMAIN_FRAME): ditto.
12991         (XDOMAIN_WINDOW): ditto.
12992
12993         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12994         a valid specifier domain.
12995
12996 2000-04-19  Andy Piper  <andy@xemacs.org>
12997
12998         * glyphs-widget.c (syms_of_glyphs_widget): remove
12999         widget-callback-current-channel.
13000         (vars_of_glyphs_widget): ditto.
13001         * glyphs.h: ditto
13002
13003         * gui.c (get_gui_callback): revert to previous behaviour.
13004
13005 2000-04-18  Andy Piper  <andy@xemacs.org>
13006
13007         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13008         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13009         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13010
13011         * glyphs.c (image_instance_equal): add margin_width.
13012         (image_instance_hash): ditto.
13013
13014         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13015         (layout_query_geometry): ditto.
13016         (layout_layout): ditto.
13017         (syms_of_glyphs_widget): add margin-width.
13018         (image_instantiator_layout): allow margin-width.
13019
13020         * glyphs.c (update_widget_instances): make a normal function.
13021         (syms_of_glyphs): remove Qupdate_widget_instances.
13022         * glyphs.h: ditto.
13023
13024         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13025         so that we don't corrupt ideas about the last event or
13026         command. Remove widget-callback-current-channel fiddling.
13027         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13028
13029 2000-05-01  Martin Buchholz <martin@xemacs.org>
13030
13031         * XEmacs 21.2.33 is released.
13032
13033 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13034
13035         * make-src-depend: Allow dots in header file name.
13036
13037 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13038
13039         * mule-charset.h (struct charset_lookup): Add
13040         next_allocated_1_byte_leading_byte and
13041         next_allocated_2_byte_leading_byte.
13042         * mule-charset.c: Move above two variables so that those values
13043         will be dumped.
13044
13045 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13046
13047         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13048         when string length is zero.
13049         (find_charsets_in_emchar_string): Ditto.
13050
13051 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13052
13053         * lisp.h: extern Qdialog and Qmenubar.
13054
13055         * gui-x.c: added events.h.
13056                 also fixed typo which made the file uncompilable.
13057
13058         * general.c: Added Qmenubar and Qdialog
13059
13060 2000-04-28  Ben Wing  <ben@xemacs.org>
13061
13062         * frame-msw.c (mswindows_init_frame_1):
13063         * frame-msw.c (mswindows_mark_frame):
13064         * event-msw.c (mswindows_enqueue_dispatch_event):
13065         * console-msw.h:
13066         * console-msw.h (struct mswindows_frame):
13067         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13068         there are now three hash tables for callbacks.
13069         mswindows_enqueue_dispatch_event is no longer static.
13070
13071         * dialog-x.c (maybe_run_dbox_text_callback):
13072         * dialog-x.c (dbox_descriptor_to_widget_value):
13073         switch to new cons3 form for callbacks.
13074
13075         * glyphs-msw.c (mswindows_register_gui_item):
13076         * glyphs-msw.c (mswindows_widget_instantiate):
13077         * glyphs-msw.c (add_tree_item):
13078         * glyphs-msw.c (add_tab_item):
13079         new image instance parameter, so it can be passed to callback-ex.
13080         respect :callback-ex as well as :callback.
13081
13082         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13083         add :callback-ex.
13084
13085         * glyphs.c (print_image_instance):
13086         prettify, e.g. now prints widget type.
13087
13088         * gui-x.h:
13089         certain funs have new image instance parameter.
13090
13091         * gui.c:
13092         * gui.c (get_gui_callback):
13093         * gui.c (gui_item_add_keyval_pair):
13094         * gui.c (gui_item_init):
13095         * gui.c (gui_add_item_keywords_to_plist):
13096         * gui.c (mark_gui_item):
13097         * gui.c (gui_item_hash):
13098         * gui.c (gui_item_equal):
13099         * gui.c (copy_gui_item):
13100         * gui.c (syms_of_gui):
13101         recognize callback-ex in a number of places.
13102         also, fix the annoying "can't get out of yes-no dialog" bug.
13103
13104         * gui.h:
13105         * gui.h (struct Lisp_Gui_Item):
13106         recognize callback-ex in a number of places.
13107
13108         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13109         new parameter in button_item_to_widget_value.
13110
13111         * glyphs-x.c (x_update_widget):
13112         * glyphs-x.c (x_button_instantiate):
13113         * glyphs-x.c (x_button_update):
13114         * glyphs-x.c (x_progress_gauge_instantiate):
13115         * glyphs-x.c (x_edit_field_instantiate):
13116         * glyphs-x.c (x_combo_box_instantiate):
13117         * glyphs-x.c (x_tab_control_instantiate):
13118         * glyphs-x.c (x_label_instantiate):
13119         new image instance parameter in various places.
13120
13121         * event-Xt.c:
13122         * event-Xt.c (enqueue_Xt_dispatch_event):
13123         this fun gets exported.
13124
13125         * gui-msw.c:
13126         * gui-msw.c (mswindows_handle_gui_wm_command):
13127         handle both :callback and :callback-ex, and generate our own
13128         event because it's one of the callback-ex arguments.
13129
13130         * gui-x.c:
13131         * gui-x.c (popup_selection_callback):
13132         handle both :callback and :callback-ex, and generate our own
13133         event because it's one of the callback-ex arguments.
13134         * gui-x.c (button_item_to_widget_value):
13135         * gui-x.c (gui_items_to_widget_values_1):
13136         * gui-x.c (gui_item_children_to_widget_values):
13137         * gui-x.c (gui_items_to_widget_values):
13138         new image instance parameter in various places.
13139
13140         * fns.c (Freplace_list):
13141         fix small typo in doc string.
13142
13143         * lisp.h:
13144         declare enqueue_Xt_dispatch_event.
13145
13146 2000-04-28  Ben Wing  <ben@xemacs.org>
13147
13148         * buffer.c:
13149         * buffer.c (Frecord_buffer):
13150         * buffer.c (syms_of_buffer):
13151         delete record-buffer-hook.
13152
13153         * fns.c:
13154         * fns.c (Freplace_list):
13155         * fns.c (syms_of_fns):
13156         new primitive replace-list.
13157
13158         * frameslots.h:
13159         slot for old buffer-alist.
13160
13161         * lisp.h:
13162         exfun replace-list.
13163
13164         * redisplay.c:
13165         * redisplay.c (redisplay_frame):
13166         * redisplay.c (syms_of_redisplay):
13167         * redisplay.c (vars_of_redisplay):
13168         new hook buffer-list-changed-hook.
13169         call it.
13170
13171 2000-04-27  Ben Wing  <ben@xemacs.org>
13172
13173         * extents.h: extern in_modeline_generation.
13174
13175         * redisplay.c (generate_formatted_string_db): set
13176         in_modeline_generation.
13177
13178         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13179         flags if in modeline generation.  otherwise frame-modified-tick
13180         is ticked far too often.
13181         Declare in_modeline_generation.
13182
13183 2000-04-26  Ben Wing  <ben@xemacs.org>
13184
13185         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13186         option.
13187         (vars_of_emacs): add quick-build as an error-checking option.
13188         A bit kludgy, but there doesn't seem much point in creating
13189         a real var for this.
13190
13191         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13192
13193 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13194
13195         * redisplay.h (struct display_line): Add a new variable,
13196         line_continuation.
13197
13198         * redisplay.c (create_text_block): Set dl->line_continuation if
13199         the line continues.
13200         (create_string_text_block): Ditto.
13201         (regenerate_window_incrementally): Use line_continuation instead
13202         of searching continuation glyph.
13203         (add_margin_runes): Call add_glyph_rune.
13204         (add_glyph_rune): Handle margin glyph.
13205
13206 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13207
13208         * filelock.c (fill_in_lock_file_name):
13209         ANSIfy.
13210         Check for IS_ANY_SEP instead of '/'.
13211         (lock_file_1):
13212         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13213         Never check errno without first seeing that system call failed.
13214         (unlock_file): Add GCPRO.
13215         (Flock_buffer): Fix docstring.
13216         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13217
13218 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13219
13220         * sysdep.c (get_pty_max_bytes):
13221         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13222         strings longer than 252 bytes.
13223
13224         * md5.c: Unconditionally include ANSI header <limits.h>
13225
13226         * glyphs-x.c (convert_EImage_to_XImage):
13227         * lisp-union.h (union Lisp_Object):
13228         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13229
13230 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13231
13232         * filelock.c (current_lock_owner): Remove unused variable o, p.
13233
13234 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13235
13236         * callint.c: Remove multiply defined symbol Qlet
13237         (syms_of_callint): ditto.
13238
13239 2000-04-14  Andy Piper  <andy@xemacs.org>
13240
13241         * general.c (syms_of_general): add last-command, this-command, let
13242         and funcall.
13243
13244         * lisp.h: declare various symbols.
13245
13246         * glyphs.h: declare Qwidget_callback_current_channel;
13247
13248         * glyphs-widget.c (syms_of_glyphs_widget): add
13249         Qgui_callback_current_channel.
13250         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13251
13252         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13253         widget-callback-current-channel when invoking the interactive
13254         arg. Also bind last-command and next-command when invoking the
13255         widget updates.
13256         * gui-x.c (popup_selection_callback): ditto.
13257
13258         * gui.c (get_gui_callback): massage args so that we are always
13259         calling eval. This allows us to add our own variable bindings
13260         outside.
13261
13262         * glyphs-x.c (x_button_instantiate): use
13263         gui_items_to_widget_values since this is GC safe.
13264         (x_progress_gauge_instantiate): ditto.
13265         (x_edit_field_instantiate): ditto.
13266         (x_label_instantiate): ditto.
13267
13268         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13269         (emacs_Xt_event_widget_focus_out): new function
13270         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13271         focus.
13272         (emacs_Xt_event_add_widget_actions): new function. add focus
13273         functions as actions.
13274         (init_event_Xt_late): use it.
13275
13276 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13277
13278         * event-stream.c (Fdispatch_event): Doc fix.
13279
13280 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13281
13282         * postgresql.c: Remove all references to PQsetenv*.
13283
13284         * postgresql.h: Remove references to PGsetenvHandler object.
13285         * lrecord.h (lrecord_type): Ditto.
13286
13287 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13288
13289         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13290         real_heigh and real_width members, and accessor macros for these.
13291
13292         * glyphs-msw.c (init_image_instance_geometry): New function.
13293         (init_image_instance_from_dibitmap): Use it.
13294         (mswindows_resource_instantiate): Use it.
13295         (init_image_instance_from_xbm_inline): Use it.
13296         (mswindows_initialize_image_instance_mask): Use real bitmap
13297         geometry.
13298         (mswindows_create_resized_bitmap): Ditto.
13299         (mswindows_create_resized_mask): Ditto.
13300
13301         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13302         and bitmap to their surface size.
13303
13304 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13305
13306         * process-unix.c (unix_send_process): Guard against process MIA
13307         after Faccept_process_output.
13308
13309 2000-04-11  Ben Wing  <ben@xemacs.org>
13310
13311         * eval.c (unbind_to_hairy): fix brokenness introduced by
13312         nanosecond speed improvements.
13313
13314 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13315
13316         * sunplay.c (init_device): To play sounds correctly, the device
13317         apparently needs to be initialized at least once by XEmacs.  Make
13318         it so.
13319
13320 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13321
13322         * redisplay.c (add_margin_runes): Add text image glyph
13323           handling.
13324
13325 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13326
13327         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13328         gcc is newer than 2.5.
13329
13330 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13331
13332         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13333
13334         * fns.c (size_bit_vector):
13335         * alloc.c (size_vector):
13336         (make_vector_internal):
13337         (make_bit_vector_internal):
13338         (sweep_bit_vectors_1):
13339         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13340
13341 2000-04-06  Andy Piper  <andy@xemacs.org>
13342
13343         * gmalloc.c (malloc): undo previous change.
13344         (malloc): ditto.
13345         (free): ditto.
13346         (realloc): ditto.
13347
13348 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13349
13350         * line-number.c (buffer_line_number): Revert to former version.
13351
13352 2000-04-06  Andy Piper  <andy@xemacs.org>
13353
13354         * gmalloc.c (malloc): add error checking.
13355         (malloc): ditto.
13356         (free): ditto.
13357         (realloc): ditto.
13358
13359         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13360         button_item_to_widget_value arg.
13361
13362         * glyphs-x.c (x_button_instantiate): add extra
13363         button_item_to_widget_value arg.
13364         (x_progress_gauge_instantiate): ditto.
13365         (x_edit_field_instantiate): ditto.
13366         (x_label_instantiate): ditto.
13367
13368         * gui-x.c (gui_items_to_widget_values_1): add extra
13369         button_item_to_widget_value arg.
13370         (button_item_to_widget_value): add extra menu_item_p arg.
13371
13372         * gui-x.h: change signature of button_item_to_widget_value.
13373
13374         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13375         button_item_to_widget_value arg.
13376
13377 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13378
13379         * buffer.h (struct buffer): auto_save_modified should be long.
13380
13381 2000-04-05  Andy Piper  <andy@xemacs.org>
13382
13383         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13384         type.
13385         (button_query_geometry): give a little more room so that athena
13386         buttons fit.
13387
13388 2000-04-05  Andy Piper  <andy@xemacs.org>
13389
13390         * faces.c (complex_vars_of_faces): The widget face should inherit
13391         the font of the gui-element face.
13392
13393 2000-04-04  Andy Piper  <andy@xemacs.org>
13394
13395         * glyphs-x.c (x_button_update): new function. unconditionally
13396         update a button's state when the instance is dirty.
13397         (image_instantiator_format_create_glyphs_x): add x_button_update.
13398         (x_widget_instantiate): remove old resize cruft.
13399
13400 2000-04-02  Andy Piper  <andy@xemacs.org>
13401
13402         * frame.c (change_frame_size_1): The introduction of gutters means
13403         that we need to allow 0 as a potential frame dimension.
13404
13405 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13406
13407         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13408         image glyph if allow_cursor.
13409         (add_hscroll_rune): Don't allow cursor to border glyph.
13410         (create_text_block): Ditto.
13411
13412         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13413         text not in buffer.
13414         (redisplay_output_layout): Call ensure_face_cachel_complete for
13415         text image glyph.
13416
13417
13418 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13419
13420         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13421
13422         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13423         not in buffer
13424
13425         * redisplay-tty.c (tty_output_display_block): Delete the routine
13426         for text image glyph
13427         * redisplay-x.c (x_output_display_block): ditto
13428         * redisplay-msw.c (mswindows_output_display_block): ditto
13429
13430 2000-02-02  Mike Alexander  <mta@arbortext.com>
13431
13432         Note: Some of these were committed by accident as part of other
13433         patches.
13434
13435         * regex.c (regex_compile): Avoid compiler warnings.
13436
13437         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13438
13439         * nt.h: Declare term_ntproc correctly.
13440
13441         * nt.c: Remove incorrect declaration of get_home_directory which
13442         is declared correctly in lisp.h.
13443
13444         * keymap.c (get_keyelt): Avoid compiler warnings.
13445         (raw_lookup_key_mapper): Avoid compiler warnings.
13446
13447         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13448
13449         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13450
13451         * filemode.c (mode_string): Avoid compiler warnings.
13452
13453         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13454         avoid warning.
13455
13456         * events-mod.h: Undef some things that winuser.h defines differently.
13457
13458         * data.c (Faset): Avoid compiler warnings.
13459
13460         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13461
13462 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13463
13464         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13465         Fall through to simple beep on error.
13466         Replace "extern" by real header file.
13467
13468         * linuxplay.c: Use nativesound.h
13469         (play_sound_data): Return error code. Be less verbose on error.
13470
13471         * sunplay.c: Use nativesound.h
13472         (play_sound_data): Return error code. Be less verbose on error.
13473
13474         * ntplay.c: Use nativesound.h
13475         (play_sound_data): Return fake error code
13476
13477         * sgiplay.c: Use nativesound.h
13478         (play_sound_data): Return error code
13479
13480         * hpplay.c: Use nativesound.h, partially implement
13481         new error code. Break compilation until finished.
13482         (play_sound_data): error code.
13483
13484         * nativesound.h (play_sound_file):
13485           (play_sound_data): Prototype in new header.
13486
13487 2000-03-31  Andy Piper  <andy@xemacs.org>
13488
13489         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13490         for toggle and radio buttons.
13491         (image_instantiator_buttons): use it.
13492
13493 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13494
13495         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13496         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13497         found. Scrollbar event probably belonged to some old config.
13498
13499 2000-03-31  Andy Piper  <andy@xemacs.org>
13500
13501         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13502         than 1.
13503         (initialize_widget_image_instance): default layout to
13504         LAYOUT_HORIZONTAL rather than 0.
13505         (widget_instantiate): reverse the item list at the end rather than
13506         every iteration.
13507         (layout_layout): re-code for the border text at the front of the
13508         item list rather than at the end.
13509         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13510         provided by the user.
13511         (widget_query_geometry): comment.
13512
13513 2000-03-30  Andy Piper  <andy@xemacs.org>
13514
13515         * glyphs-widget.c (image_instantiator_layout): allow standard
13516         widget keywords in layouts.
13517
13518         * gutter.c (output_gutter): cope with nil gutter contents.
13519
13520         * frame.c (Fset_frame_properties): add gutter docs.
13521
13522 2000-03-29  Andy Piper  <andy@xemacs.org>
13523
13524         * toolbar-msw.c (TBSTYLE_FLAT): add.
13525         (mswindows_output_toolbar): minor fiddling.
13526
13527 2000-03-29  Andy Piper  <andy@xemacs.org>
13528
13529         * gutter.c (output_gutter): force gutter size recalculation if
13530         what we are trying to display won't fit.
13531         (update_gutter_geometry): new function. A per-gutter version of
13532         update_frame_gutter_geometry.
13533         (update_frame_gutter_geometry): use it.
13534         (redraw_exposed_gutter): add extra debugging output.
13535
13536 2000-03-28  Mike Alexander  <mta@arbortext.com>
13537
13538         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13539         (pdump_file_unmap): Implement it on Windows
13540         (pdump_file_get): Save alocated handles for pdump_file_unmap
13541
13542 2000-03-28  Andy Piper  <andy@xemacs.org>
13543
13544         * gui.c (get_gui_callback): treat Quit specially.
13545
13546 2000-03-27  Andy Piper  <andy@xemacs.org>
13547
13548         * glyphs.c (image_instantiate): be careful to check in the same
13549         way we assigned.
13550
13551 2000-03-27  Didier Verna  <didier@xemacs.org>
13552
13553         * config.h.in: define the proper SMART_INCLUDE macro.
13554         handle renaming of `foo_h_path' to `foo_h_file'.
13555
13556         * database.c: ditto.
13557
13558         * emacs.c: ditto.
13559
13560         * linuxplay.c: ditto.
13561
13562         * terminfo.c: ditto.
13563
13564         * tooltalk.h: ditto.
13565
13566 2000-03-27  Andy Piper  <andy@xemacs.org>
13567
13568         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13569         gets updated whenever the face might have changed.
13570
13571 2000-03-26  Mike Alexander  <mta@arbortext.com>
13572
13573         * dumper.c (pdump_resource_free): Fix the comment.
13574
13575 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13576
13577         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13578
13579 2000-03-22  Mike Alexander  <mta@arbortext.com>
13580
13581         * dumper.c: Include Windows headers on Windows
13582         (pdump_resource_free): Add a body to the function
13583         (pdump_load): exe_name -> exe_path and add some comments.
13584
13585 2000-03-25  Mike Alexander  <mta@arbortext.com>
13586
13587         * gui.c (copy_gui_item_tree): Return a value in all cases
13588
13589 2000-03-21  Didier Verna  <didier@xemacs.org>
13590
13591         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13592         lwlib/config.h.in.
13593         (SMART_INCLUDE): new macro.
13594         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13595         the proper location.
13596
13597         * postgresql.c: use it.
13598
13599         * inline.c: ditto.
13600
13601 2000-03-24  Andy Piper  <andy@xemacs.org>
13602
13603         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13604         do this.
13605
13606 2000-03-24  Andy Piper  <andy@xemacs.org>
13607
13608         * redisplay-output.c (compare_runes): use image_instance_changed
13609         to detect changes. Do not depend on glyphs_changed, only depend on
13610         dirtiness.
13611          (redisplay_output_layout): add debug messages.
13612         (compare_runes): ditto.
13613
13614         * glyphs.h: declare new functions.
13615         (struct Lisp_Image_Instance): remove percent and associated
13616         accessors.
13617
13618         * gui.h: declare new copying functions.
13619
13620         * gui.c (copy_gui_item_tree): new function.
13621         (copy_gui_item): new function.
13622         (gui_item_id_hash): revert to standard hash.
13623         (gui_item_hash): ditto.
13624         (gui_item_hash_internal): deleted.
13625         (mark_gui_item): mark value.
13626         (gui_item_add_keyval_pair): add value.
13627         (gui_item_init): ditto.
13628         (gui_add_item_keywords_to_plist): ditto.
13629         (gui_item_equal): ditto.
13630         (syms_of_gui): add Q_value.
13631
13632         * glyphs-x.c (x_progress_gauge_update): use pending items and
13633         value for setting the state.
13634         (x_update_widget): don't set items from pending here.
13635
13636         * glyphs-widget.c (update_widget): update items here.
13637         (progress_gauge_set_property): use items for storing value. Put
13638         new value in pending items.
13639
13640         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13641         items for new value. Convert percent -> value.
13642         (mswindows_tab_control_update): don't update items here.
13643
13644         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13645         (update_subwindow): ditto.
13646         (image_instance_changed): new function. Compare hash values and
13647         past and present widget items.
13648         (image_instantiate): We more careful about where we instantiate
13649         things.
13650         (image_instantiate): add error checking.
13651
13652         * gutter.c (syms_of_gutter): use -hook.
13653
13654 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13655
13656         * console-tty.c (Fset_console_tty_input_coding_system): Use
13657         Qkeyboard.
13658         (Fset_console_tty_output_coding_system): Use Qterminal.
13659         (tty_init_console): Use Qkeyboard and Qterminal.
13660
13661 2000-03-21  Ben Wing  <ben@xemacs.org>
13662
13663         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13664         From Mike Alexander <mta@arbortext.com>.
13665
13666 2000-03-21  Ben Wing  <ben@xemacs.org>
13667
13668         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13669         process brokenness.  Proper implementation to come.
13670         * callproc.c:
13671         Rename call-process-internal to old-call-process-internal.
13672         New impl. in process.el.
13673
13674 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13675
13676         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13677
13678 2000-03-20  Andy Piper  <andy@xemacs.org>
13679
13680         * glyphs.c (full_list_hash): make hashes of the same elements in
13681         different orders return different values.
13682
13683 2000-03-20  Martin Buchholz <martin@xemacs.org>
13684
13685         * XEmacs 21.2.32 is released.
13686
13687 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13688
13689         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13690         (DFC_MALLOC_USE_CONVERTED_DATA):
13691         Add aliasing-safe casts to allow use with char* or unsigned char*
13692         lvalues.
13693
13694         * eldap.c (Fldap_open):
13695         (Fldap_search_basic):
13696         (Fldap_add):
13697         (Fldap_modify):
13698         Make C++-compilable.
13699         Make sure GCPRO'ed variables are initialized.
13700         Use temp variables to avoid repeated calls to Flength.
13701
13702 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13703
13704         * sysfile.h:
13705         Make sure PATH_MAX is always defined.
13706         Include limits.h for PATH_MAX.
13707         Deprecate use of MAXPATHLEN.
13708
13709 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13710
13711         * emacs.c: Add reinit_vars_of_fileio.
13712         * symsinit.h: Add reinit_vars_of_fileio.
13713         * fileio.c (reinit_vars_of_fileio): New.
13714         * fileio.c (Fmake_temp_name):
13715         Initialize temp_name random number from microseconds to make
13716         collisions even less likely.  Initialize always at process startup
13717         time.  (make-temp-name) used to return the same file name twice in
13718         a row when PDUMP.
13719         Random stylistic fiddling.
13720         Comment fixes.
13721
13722 2000-03-20  Andy Piper  <andy@xemacs.org>
13723
13724         * glyphs.c (image_instantiate): allow text glyphs to be
13725         instantiated in the minibuffer window.
13726
13727 2000-03-19  Andy Piper  <andy@xemacs.org>
13728
13729         * glyphs.c (image_instance_hash): be careful about which items we
13730         hash on.
13731
13732         * glyphs-widget.c (tab_control_set_property): record into pending
13733         items rather than the actual items.
13734
13735         * glyphs-x.c (x_update_widget): use pending items to update with.
13736
13737         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13738         to update with.
13739
13740         * glyphs.c (mark_image_instance): mark pending items.
13741
13742         * window.c (Fset_window_configuration): record the buffer.
13743         (Fselect_window): totally revert previous change which breaks many
13744         things.
13745
13746 2000-03-18  Andy Piper  <andy@xemacs.org>
13747
13748         * glyphs-msw.c (mswindows_tab_control_update): force selected
13749         item.
13750
13751         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13752         window domain cache, otherwise we get inconsistencies at
13753         startup. There is something fishy at startup which can lead to the
13754         minibuffer being the selected window when the gutter content is
13755         instantiated.
13756
13757         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13758         gcpros.
13759         (parse_gui_item_tree_children): ditto.
13760         (parse_gui_item_tree_item): ditto.
13761
13762         * glyphs.c (Fupdate_widget_instances): return something.
13763
13764 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13765
13766         * window.c (Fselect_window): Undo 2000-03-17 change.
13767
13768 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13769
13770         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13771         against v7.0 libraries.  Insta-coredump city until the postgres
13772         folks fix it.
13773
13774 2000-03-17  Andy Piper  <andy@xemacs.org>
13775
13776         * faces.c (complex_vars_of_faces): don't give the widget face an
13777         inherited background pixmap.
13778
13779         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13780         selected item.
13781
13782         * event-stream.c (Fdispatch_non_command_events): return something.
13783
13784         * gutter.c (output_gutter): use widget face.
13785         (clear_gutter): ditto.
13786
13787         * NEWS: adjust again.
13788
13789         * window.c (Fselect_window): make sure this runs to completion to
13790         avoid oddities with Fset_window_configuration.
13791         (Fcurrent_window_configuration): in general do not save the
13792         minibuffer as the selected window.
13793
13794         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13795
13796 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13797
13798         * emacs.c (Frunning_temacs_p): Revert previous patch.
13799         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13800
13801 2000-03-16  Andy Piper  <andy@xemacs.org>
13802
13803         * glyphs-x.c (x_tab_control_update): if no widget values then
13804         return.
13805
13806         * NEWS: update for new features.
13807
13808         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13809         synthetic event to the native system.
13810         (reinit_vars_of_event_Xt): set force_event_pending to
13811         emacs_Xt_force_event_pending.
13812
13813         * events.h (struct event_stream): add force_event_pending.
13814
13815         * specifier.c (recompute_one_cached_specifier_in_window): add
13816         comment.
13817
13818         * redisplay.c (redisplay_frame): don't call
13819         update_frame_subwindows. Reset subwindow cachels when
13820         subwindows_changed, removing this was an optimization too far.
13821
13822         * redisplay-output.c (compare_runes): reorganize so that we catch
13823         glyph changes when we want them. Set optimize_output when this
13824         would help layouts.
13825         (redisplay_output_layout): remove frame_really_changed, use
13826         optimize_output instead.
13827
13828         * redisplay-msw.c (mswindows_output_display_block): reset
13829         optimize_output after outputting a glyph.
13830         * redisplay-x.c (x_output_display_block): ditto.
13831         * redisplay-tty.c (tty_output_display_block): ditto.
13832
13833         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13834         functions.
13835         (gutter_specs_changed): do specific gutter positions.
13836         (top_gutter_specs_changed): new function. Only update the
13837         specified gutter specs.
13838         (bottom_gutter_specs_changed): ditto.
13839         (left_gutter_specs_changed): ditto.
13840         (right_gutter_specs_changed): ditto.
13841
13842         * gui.c (gui_item_hash_internal): new function, does a real hash.
13843         (gui_item_id_hash): use it.
13844         (gui_item_hash): hash the eval'ed gui_item.
13845
13846         * gui-x.c (popup_selection_callback): send an eval event to call
13847         Fupdate_widget_instances.
13848
13849         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13850         to call Fupdate_widget_instances.
13851
13852         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13853         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13854
13855         * glyphs.c: (update_frame_subwindows): deleted.
13856         (Fupdate_widget_instances): new function for updating the dirty
13857         state of widgets that might have changed.
13858         (syms_of_glyphs): add Qupdate_widget_instances.
13859         (full_list_hash): hash a list completely.
13860         (image_instance_hash): use it for items and properties.
13861
13862         * frame-msw.c (mswindows_size_frame_internal): remove unused
13863         variable.
13864
13865         * faces.h (struct face_cachel): fix comment.
13866
13867         * event-stream.c (Fdispatch_non_command_events): new
13868         function. Process non-command events, forcing an event cycle
13869         beforehand.
13870         (syms_of_event_stream): declare.
13871         (event_stream_force_event_pending): new function. Force an event
13872         on the native event queue so that an event cycle will occur next
13873         time we check.
13874
13875         * event-msw.c:
13876         (struct ntpipe_shove_stream):
13877         (mswindows_enqueue_dispatch_event):
13878         (mswindows_dequeue_dispatch_event):
13879         (mswindows_cancel_dispatch_event):
13880         (mswindows_pump_outstanding_events):
13881         (mswindows_drain_windows_queue):
13882         (mswindows_handle_paint):
13883         (mswindows_wnd_proc):
13884         (mswindows_key_to_emacs_keysym):
13885         (get_process_input_waitable):
13886         (emacs_mswindows_delete_stream_pair): re-indent file.
13887         (mswindows_need_event): do not process further fds if the windows
13888         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13889         fixes the 100% cpu problem.
13890         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13891
13892 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13893
13894         * alloc.h: New.
13895         * dumper.h: New.
13896         * dumper.c: New.
13897
13898         * emacs.c: Moved dump file searching to dumper.c.
13899         (Frunning_temacs_p): Fixed.
13900
13901         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13902         last_lrecord_type_index_assigned.
13903
13904 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13905
13906         * symsinit.h: Added reinit parameter to init_console_stream
13907         declaration.
13908
13909         * lisp.h: Added file parameter to pdump_load declaration.
13910
13911         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13912         support.  Added dump file searching.
13913
13914         * config.h.in: Added EMACS_PROGNAME.
13915
13916         * console-stream.c (init_console_stream): Fix reinitialisation
13917         when running from temacs.
13918
13919         * alloc.c (pdump): Add id support.
13920         (pdump_load): Add file parameter and signature/id support.
13921
13922         * Makefile.in.in: Add full pdump support.
13923
13924 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13925
13926         * postgresql.c: Update documentation to reflect latest code
13927         status.
13928         (print_result): Show tuple counts in printed representation when
13929         appropriate.
13930         (Fpq_put_nbytes): MULE-ize.
13931         (Fpq_get_line_async): Ditto.
13932
13933 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13934
13935         * postgresql.c (Fpq_lo_import): Fix return value.
13936         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13937
13938 2000-03-13  Ben Wing  <ben@xemacs.org>
13939
13940         * alloc.c (pdump_load):
13941         Fix compile warning under mswin.
13942
13943 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13944
13945         * postgresql.c: Mule-ization, bug fixes.
13946         Use PG_CODING to encapsulate coding system name changes.
13947         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13948         (pg-coding-system): Create.
13949
13950         (Fpq_conn_defaults): Mule-ize.
13951         (Fpq_connectdb): Mule-ize & bug fix.
13952         (Fpq_connect_start): Mule-ize.
13953         (Fpq_set_client_encoding): Mule-ize.
13954         (Fpq_finish): Document `DEAD' connection status.
13955         (Fpq_clear): Ditto.
13956         (Fpq_pgconn): Mule-ize.
13957         (Fpq_exec): Mule-ize & bug fix.
13958         (Fpq_send_query): Ditto.
13959         (Fpq_get_result): Ditto.
13960         (Fpq_res_status): Mule-ize.
13961         (Fpq_result_error_message): Mule-ize.
13962         (Fpq_ntuples): fix comments.
13963         (Fpq_fname): Mule-ize.
13964         (Fpq_fnumber): Mule-ize.
13965         (Fpq_ftype): fix comments.
13966         (Fpq_get_value): Mule-ize.
13967         (Fpq_cmd_status): Ditto.
13968         (Fpq_cmd_tuples): Ditto.
13969         (Fpq_oid_value): Ditto.
13970         (Fpq_notifies): Ditto.
13971         (Fpq_lo_import): Ditto.
13972         (Fpq_lo_export): Ditto.
13973         (Fpq_get_line): Ditto.
13974         (Fpq_put_line): Mule-ize and bug fix.
13975         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13976
13977 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13978
13979         * postgresql.c (vars_of_postgresql): Mule-ize.
13980         (Fpq_conn_defaults): Ditto.
13981
13982 2000-03-12  Ben Wing  <ben@xemacs.org>
13983
13984         * alloc.c (Fmake_byte_code):
13985         * alloc.c (debug_string_purity_print):
13986         * alloc.c (pdump_backtrace):
13987         * alloc.c (pdump_get_indirect_count):
13988         * alloc.c (pdump_register_sub):
13989         * alloc.c (pdump_register_object):
13990         * alloc.c (pdump_register_struct):
13991         * alloc.c (pdump_dump_data):
13992         * alloc.c (pdump_reloc_one):
13993         Minor cleanups.
13994
13995         * console-msw.c:
13996         * console-msw.c (GetConsoleHwnd):
13997         * console-msw.c (msw_hide_console):
13998         * console-msw.c (msw_show_console):
13999         * console-msw.c (msw_ensure_console_buffered):
14000         * console-msw.c (msw_output_console_string):
14001         * console-msw.c (console_type_create_mswindows):
14002
14003         a) Added functions to manipulate the console window for use with
14004         shell support.
14005
14006         b) Added support for writing text to the console, which is now
14007         used under Windows when xemacs is not being run non-interactively,
14008         to write text that would otherwise be destined for stdout because
14009         under these circumstances, text written to stdout tends to
14010         disappear and not be seen.
14011
14012         * console-msw.h:
14013         * event-Xt.c:
14014         * event-Xt.c (x_event_to_emacs_event):
14015         * event-Xt.c (describe_event_window):
14016         * events-mod.h (XEMACS_MOD_CONTROL):
14017         * events.c:
14018         * events.c (Fmake_event):
14019         * events.c (character_to_event):
14020         * events.c (event_to_character):
14021         * events.c (format_event_object):
14022         * events.c (Fevent_modifiers):
14023         * events.h:
14024         * events.h (struct key_data):
14025         * events.h (struct button_data):
14026         * events.h (struct misc_user_data):
14027         * frame-x.c (Fcde_start_drag_internal):
14028         * frame-x.c (Foffix_start_drag_internal):
14029         * gpmevent.c (Freceive_gpm_event):
14030         * keymap.c:
14031         * keymap.c (bucky_sym_to_bucky_bit):
14032         * keymap.c (control_meta_superify):
14033         * keymap.c (make_key_description):
14034         * keymap.c (keymap_lookup_directly):
14035         * keymap.c (create_bucky_submap):
14036         * keymap.c (keymap_store):
14037         * keymap.c (define_key_check_and_coerce_keysym):
14038         * keymap.c (define_key_parser):
14039         * keymap.c (define_key_alternate_name):
14040         * keymap.c (Fdefine_key):
14041         * keymap.c (raw_lookup_key_mapper):
14042         * keymap.c (struct map_keymap_unsorted_closure):
14043         * keymap.c (map_keymap_unsorted_mapper):
14044         * keymap.c (map_keymap_sort_predicate):
14045         * keymap.c (map_keymap_sorted):
14046         * keymap.c (accessible_keymaps_mapper_1):
14047         * keymap.c (where_is_recursive_mapper):
14048         * keymap.c (describe_map_mapper):
14049         * keymap.c (describe_map_sort_predicate):
14050         * keymap.c (describe_map):
14051         * keymap.c (complex_vars_of_keymap):
14052         And a number of other files, the key modifier preprocessor
14053         constants that xemacs uses have names that conflict with constants
14054         defined under MS Windows for other purposes, so they were renamed
14055         to begin with the prefix XEMACS_. The variables that hold such
14056         modifiers were changed to consistently be of type int to fix
14057         various compile warnings.
14058
14059         * console.c (complex_vars_of_console):
14060         * device.c:
14061         * device-msw.c:
14062         * device-msw.c (mswindows_finish_init_device):
14063         * device-msw.c (msw_get_workspace_coords):
14064         * device-msw.c (mswindows_device_system_metrics):
14065         and various other files, added support for a new
14066         device property called offset-workspace which returns the position
14067         of the upper left corner of the workspace area and goes along with
14068         the existing size-workspace property.
14069
14070         * dialog-msw.c:
14071         * dialog-msw.c (push_bufbyte_string_as_unicode):
14072         * dialog-msw.c (mswindows_popup_dialog_box):
14073         Added support for XEmacs-style accelerator specifications in
14074         button text.  Note: I didn't add support for this under X Windows,
14075         and somebody needs to do this.
14076
14077         * dialog.c:
14078         * dialog.c (Fpopup_dialog_box):
14079         Documented the support for accelerators that was just mentioned.
14080
14081         editfns.c (get_home_directory): Changed behavior under Windows
14082         when HOME not defined; former behavior was irretrievably broken.
14083
14084         * emacs.c:
14085         * emacs.c (main_1):
14086         * emacs.c (main):
14087         * minibuf.c (clear_echo_area_internal):
14088         * minibuf.c (echo_area_append):
14089         * print.c:
14090         * print.c (std_handle_out_external):
14091         * print.c (std_handle_out_va):
14092         * print.c (fatal):
14093         * print.c (write_string_to_stdio_stream):
14094         * print.c (output_string):
14095         * print.c (debug_print):
14096         * print.c (debug_backtrace):
14097         * print.c (debug_short_backtrace):
14098         Cleaned up the code that prints text to stdout so that this can be
14099         changed to output into a console window instead under MS Windows,
14100         as described above.
14101
14102         * eval.c:
14103         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14104         * eval.c (internal_catch):
14105         * eval.c (unwind_to_catch):
14106         * eval.c (throw_or_bomb_out):
14107         * eval.c (condition_case_1):
14108         * eval.c (signal_1):
14109         * eval.c (check_error_state_sanity):
14110         * eval.c (call_with_suspended_errors_1):
14111         * eval.c (call_with_suspended_errors):
14112         * eval.c (reinit_vars_of_eval):
14113         Added code to catch throw loops and check for a pesky bug that may
14114         be gone now.
14115
14116         * event-msw.c:
14117         * event-msw.c (key_needs_default_processing_p):
14118         * event-msw.c (mswindows_wnd_proc):
14119         * event-msw.c (mswindows_modifier_state):
14120         * event-msw.c (emacs_mswindows_quit_p):
14121         * event-msw.c (vars_of_event_mswindows):
14122         a) Added support for using the alt key to select menu items as is
14123         standard under MS Windows.  This is controlled using the variable
14124         menu-accelerator-enabled, just like under X Windows.  There is an
14125         option on the options menu to turn this support on.  I really
14126         think that it should be on by default under Windows, but I'm not
14127         going to make this change yet.
14128
14129         b)  Added support for dynamic display size changes under Windows.
14130
14131         * event-stream.c:
14132         * event-stream.c (maybe_echo_keys):
14133         * event-stream.c (Fnext_event):
14134         * event-stream.c (command_builder_find_leaf):
14135         * event-stream.c (lookup_command_event):
14136         * event-stream.c (execute_command_event):
14137         * event-stream.c (pre_command_hook):
14138         * event-stream.c (post_command_hook):
14139         * event-stream.c (syms_of_event_stream):
14140         * event-stream.c (vars_of_event_stream):
14141         * event-stream.c (complex_vars_of_event_stream):
14142         * events.h (struct command_builder):
14143
14144         a) Tried to clean up a little bit the horribly written x-specific
14145         accelerator code that crept into this file.  I moved this code
14146         into menubar-x.c where it belongs. I also needed to move the
14147         command builder structure into the file events.h because it is
14148         accessed directly by this accelerator code.  What I didn't do, but
14149         which should be done at some point, is to properly abstract this
14150         code using device methods instead of the kludgy way that it
14151         currently hooks into the event code.
14152
14153         b) Added the lisp variables this-command-properties and
14154         last-command- properties, which should be used to synchronize two
14155         adjacent commands in preference to playing games with the variable
14156         this-command, which is typically what happens.
14157
14158         c) Added some slightly nasty code to hook into the lisp support
14159         for shifted- motion-key selection.  This is actually necessary for
14160         somewhat complicated reasons, which are described in
14161         simple.el. (NB: I think the proper thing would be to have the code
14162         that calls the pre and post command hooks also call out to generic
14163         lisp functions in simple.el, where all built-in stuff could be
14164         added.  I will think about this more.)
14165
14166         * event-unixoid.c (poll_fds_for_input):
14167         * lread.c (readchar):
14168         * redisplay-tty.c (tty_clear_frame):
14169         * redisplay-x.c (x_get_gc):
14170         * signal.c (interrupt_signal):
14171         And a whole bunch of other files: fixed up places that printed
14172         directly to stderr to instead call the function stderr_out so that
14173         the changes I made under Windows work correctly.
14174
14175         * filemode.c (mode_string):
14176         Warning fixes.
14177
14178         * frame-msw.c:
14179         * frame-msw.c (mswindows_size_frame_internal):
14180         Fixed the computation of frame size and position to keep the frame
14181         within the workspace area, rather than within the physical
14182         dimensions of the screen, so that the frame doesn't overlap window
14183         manager decorations, such as the start menu and toolbar, typically
14184         at the bottom of the screen.
14185
14186         * frame.c (vars_of_frame):
14187         Changed the default frame title format under MS Windows to consist
14188         of buffername-XEmacs, which is standard under MS Windows.  I think
14189         it might be a good idea to change this everywhere because I think
14190         it is superior to the current frame title format, but this is the
14191         kind of change that is likely to cause some people to get annoyed,
14192         so I'm not making it.
14193
14194         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14195
14196         * gui-msw.c (mswindows_handle_gui_wm_command):
14197         Fixed compile warnings.
14198
14199         * gui-x.c:
14200         * gui-x.c (strdup_and_add_accel):
14201         * gui-x.c (button_item_to_widget_value):
14202         * gui-x.h:
14203         Added code to automatically put an accelerator onto the beginning
14204         of menu items that don't have one as is now the standard, and is
14205         described more later.  Also fixed things so that the menu item
14206         name can be an evaluated expression, again a new standard.
14207
14208         * gui.c:
14209         * gui.c (gui_item_add_keyval_pair):
14210         * gui.c (make_gui_item_from_keywords_internal):
14211         * gui.c (gui_add_item_keywords_to_plist):
14212         * gui.c (gui_item_accelerator):
14213         * gui.c (gui_name_accelerator):
14214         * gui.c (gui_item_included_p):
14215         * gui.c (gui_item_display_flush_left):
14216         * gui.c (gui_item_display_flush_right):
14217         * gui.c (parse_gui_item_tree_item):
14218         * gui.c (parse_gui_item_tree_children):
14219         * gui.c (parse_gui_item_tree_list):
14220         Mule-ized.  Cleanup.  GCPRO addition.
14221
14222         * line-number.c (buffer_line_number):
14223         * lisp.h:
14224         * lisp.h (EMACS_INT_MAX):
14225         Added the manifest constant EMACS_INT_MIN corresponding to the
14226         existing constant EMACS_INT_MAX.  This is partially to fix compile
14227         warnings under Windows, and partly for cleanliness.
14228
14229         * menubar-msw.c:
14230         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14231         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14232         * menubar-msw.c (displayable_menu_item):
14233         * menubar-msw.c (populate_menu_add_item):
14234         * menubar-msw.c (populate_or_checksum_helper):
14235         * menubar-msw.c (populate_menu):
14236         * menubar-msw.c (update_frame_menubar_maybe):
14237         * menubar-msw.c (prune_menubar):
14238         * menubar-msw.c (msw_char_is_accelerator):
14239         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14240         * menubar-msw.c (mswindows_handle_wm_command):
14241         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14242         * menubar-msw.c (mswindows_handle_wm_initmenu):
14243         * menubar-msw.c (mswindows_update_frame_menubars):
14244         * menubar-msw.c (mswindows_free_frame_menubars):
14245         * menubar-msw.c (mswindows_popup_menu):
14246         Fixed a bug in handling accelerators where an extra character
14247         would be displayed in the menu item.  Also generalized the
14248         function displayable_menu_item because it is now used by the
14249         dialog box code as well.  And finally, added code in the functions
14250         that create the menubar to extract a list of accelerators for the
14251         top level menubar, which is used in the event code to determine
14252         whether a particular alt-key combination should be used to invoke
14253         a menu item, or should be passed through to access the standard
14254         XEmacs keymap binding for this key combination.
14255
14256         Much needed GCPROing.
14257
14258         * menubar-x.c:
14259         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14260         * menubar-x.c (menu_item_descriptor_to_widget_value):
14261         * menubar-x.c (restore_in_menu_callback):
14262         * menubar-x.c (x_popup_menu):
14263         * menubar-x.c (menu_move_up):
14264         * menubar-x.c (menu_move_down):
14265         * menubar-x.c (menu_move_left):
14266         * menubar-x.c (menu_move_right):
14267         * menubar-x.c (menu_select_item):
14268         * menubar-x.c (command_builder_operate_menu_accelerator):
14269         * menubar-x.c (menu_accelerator_junk_on_error):
14270         * menubar-x.c (command_builder_find_menu_accelerator):
14271         * menubar-x.c (Faccelerate_menu):
14272         * menubar.h:
14273         Moved a whole bunch of code here that was previously in
14274         event-stream.c as described above.  There is also code connected
14275         to the new standard of adding an accelerator to the beginning of
14276         menu items that don't have one as described above and below.
14277
14278         * menubar.c:
14279         * menubar.c (menu_parse_submenu_keywords):
14280         * menubar.c (Fmenu_find_real_submenu):
14281         * menubar.c (Fnormalize_menu_item_name):
14282         * menubar.c (syms_of_menubar):
14283         * menubar.c (vars_of_menubar):
14284         * menubar.c (complex_vars_of_menubar):
14285
14286         a) Cleaned up a bunch of documentation and improved it.
14287
14288         b) XEmacs now automatically adds an accelerator onto the beginning
14289         of any menu items that don't have one.  I did this because there
14290         will inevitably be some menu items on the main menubar that don't
14291         have accelerators on them because the package that adds that
14292         particular menu item hasn't yet been fixed up to have accelerators
14293         in them and it looked rather strange to have some items with and
14294         some items without accelerators, especially since even in items
14295         without accelerators, you can, at least under windows, still
14296         access the item through an accelerator corresponding to the first
14297         character in the item's name.  If people don't like this behavior,
14298         I can add a variable to turn it off optionally, but I'm not sure
14299         this is a good idea because we really do need to have accelerators
14300         on all of the menu items, and if a package doesn't like the
14301         accelerators being put on the first character, then it should put
14302         the accelerators where they belong.
14303
14304         c) I made a behavior change, which is that the descriptor that
14305         specifies the text of the menu item, which formerly was just a
14306         string, can now also be an evaluated expression.  This makes this
14307         descriptor parallel with all of the others, which could also be
14308         evaluated expressions.  This also obviates the need for the
14309         keyword :label, which was previously listed in the documentation
14310         as unimplemented, and which was for the same purpose.
14311
14312         d) GCPROing.
14313
14314         * ntproc.c:
14315         * ntproc.c (new_child):
14316         * ntproc.c (sys_spawnve):
14317         * ntproc.c (find_child_console):
14318         * ntproc.c (sys_kill):
14319         Fixed compile warnings.  By the way, this file should really go
14320         away entirely, and this will happen as soon as Kirill makes his
14321         final round of process cleanups, which affect the function
14322         call-process.
14323
14324         * process-nt.c:
14325         * process-nt.c (struct nt_process_data):
14326         * process-nt.c (find_process_from_pid):
14327         * process-nt.c (send_signal_the_nt_way):
14328         * process-nt.c (enable_child_signals):
14329         * process-nt.c (find_child_console):
14330         * process-nt.c (send_signal_the_95_way):
14331         * process-nt.c (nt_finalize_process_data):
14332         * process-nt.c (ensure_console_window_exists):
14333         * process-nt.c (nt_create_process):
14334         * process-nt.c (nt_kill_child_process):
14335         * process-nt.c (nt_kill_process_by_pid):
14336         * process-nt.c (nt_open_network_stream):
14337         * process-nt.c (vars_of_process_nt):
14338         Copied over code from Emacs 20.5 to correctly send signals to sub-
14339         processes under Windows 95.  Also added code to automatically
14340         create and hide console window when a sub-process is created under
14341         Windows 95, which obviates the need for the separate runemacs.exe
14342         executable, and finally implemented some variables that were
14343         implemented in Emacs 20.5, but previously not in XEmacs.  These
14344         include mswindows- start-process-share-console and
14345         mswindows-start-process-inherit-error-mode. (Both of these only
14346         apply to Windows 95.)
14347
14348         * regex.c (regex_compile): Fixed a compile warning.
14349
14350         * select-msw.c:
14351         * select-msw.c (mswindows_own_selection):
14352         * select-msw.c (mswindows_get_foreign_selection):
14353         * select-msw.c (mswindows_disown_selection):
14354         * select-msw.c (console_type_create_select_mswindows):
14355         * select-msw.c (syms_of_select_mswindows):
14356         Cleaned up the file and implemented the device method
14357         selection_exists_p, which had accidentally been left out.  Also
14358         removed four lisp functions that were remnants from before the
14359         time when the selection code was properly device abstracted.
14360         These functions are no longer needed because there are generic
14361         equivalents, and because they were added recently and don't exist
14362         in FSF Emacs, I don't think there's any problem with just deleting
14363         them.
14364
14365         * sysdep.c:
14366         * sysdep.c (sys_subshell):
14367         Fixed a compile warning, although in this case there's probably
14368         something wrong with this code, and it ought to be looked into
14369         more thoroughly by somebody who understands it.
14370
14371         * window.c:
14372         * window.c (Fwindow_text_area_height):
14373         * window.c (Fwindow_width):
14374         * window.c (Fwindow_full_width):
14375         * window.c (Fwindow_pixel_width):
14376         * window.c (debug_print_window):
14377         * window.c (syms_of_window):
14378         Added functions window-text-area-height and window-full-width,
14379         which are functions for returning various width and height
14380         characteristics of a window. (One of these functions is necessary
14381         for making the file dialog box work correctly, and the other one
14382         was added for completeness.)  Also added a table to the
14383         documentation for window-height which describes the entire scheme
14384         for accessing width and height characteristics of a window.
14385
14386 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14387
14388         * nt.c (fstat): Added a comment for another problem with
14389         non-encapsulated [f]stat(), reported by Adrian Aichner
14390         <aichner@ecf.teradyne.com>.
14391
14392 2000-03-11  Andy Piper  <andy@xemacs.org>
14393
14394         * window.c (make_dummy_parent): initialize subwindow instance
14395         cache.
14396         (Fset_window_configuration): zero extent_modiff.
14397
14398 2000-03-10  Andy Piper  <andy@xemacs.org>
14399
14400         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14401         more changes can be triggered.
14402         (Fredisplay_frame): ditto.
14403         (Fredraw_device): ditto.
14404         (Fredisplay_device): ditto.
14405         (redisplay_frame): make non-static.
14406         (redisplay_frame): call update_frame_gutter_geometry outside of
14407         display proper.
14408
14409         * gutter.h: declare update_frame_gutter_geometry.
14410
14411         * redisplay.h: declare redisplay_frame.
14412
14413         * gutter.c (update_frame_gutter_geometry): move geometry changes
14414         in update_frame_gutters here. Geometry changes can only occur
14415         outside of redisplay.
14416         (update_frame_gutters): remove geometry change code.
14417         (Fredisplay_gutter_area): make sure that we are in display when we
14418         update and that we have flushed any size changes.
14419
14420 2000-03-11  Andy Piper  <andy@xemacs.org>
14421
14422         * alloc.c (pdump_dump_data): remove i & count shadows.
14423
14424 2000-02-27  Mike Alexander  <mta@arbortext.com>
14425
14426         * sysdep.h: Declare pdump_read_file
14427
14428         * sysdep.c (pdump_read_file): New function
14429
14430         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14431         dump data
14432
14433 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14434
14435         * lrecord.h: add `lrecord_type_pgsetenv'.
14436
14437 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14438
14439         * symsinit.h: declare (vars|syms)_of* functions.
14440         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14441
14442 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14443
14444         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14445
14446         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14447         GCCs.
14448
14449         * emacs.c (main_1): Call postgres initialization code.
14450
14451         * postgresql.h: New file.  PostgreSQL RDBMS support.
14452         * postgresql.c: New file.
14453
14454 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14455
14456         * redisplay-output.c (redisplay_output_display_block): Disable
14457         redundant code.
14458
14459 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14460
14461         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14462         (Fcanna_henkan_next): Ditto.
14463         (Fcanna_bunsetu_henkou): Ditto.
14464         (Fcanna_henkan_kakutei): Ditto.
14465         (Fcanna_henkan_end): Ditto.
14466         (Fcanna_henkan_quit): Ditto.
14467         (Fcanna_henkan_next): Set retun value correctly.
14468         (c2mu): Use unsigned char instead of signed char.
14469
14470 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14471
14472         * emacs.c (main_1): Always call syms_of_gui.
14473         * inline.c: include gui.h
14474
14475 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14476
14477         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14478         converted to Lisp_Object.
14479         (Qtop_bottom): New variable.
14480         (syms_of_redisplay): Initialize it.
14481         * redisplay.h (Vvisible_bell): Ditto.
14482         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14483         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14484         only flash top and bottom.
14485
14486 2000-03-08  Andy Piper  <andy@xemacs.org>
14487
14488         * buffer.c (Frename_buffer): record new buffer name the right way.
14489
14490 2000-03-08  Andy Piper  <andy@xemacs.org>
14491
14492         * glyphs.c (update_subwindow): increase hash depth so that widget
14493         items get picked up properly.
14494
14495         * redisplay-output.c (compare_runes): increase hash depth so that
14496         widget items get picked up properly.
14497
14498 2000-03-08  Andy Piper  <andy@xemacs.org>
14499
14500         * gutter.c (output_gutter): add some debug.
14501
14502         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14503         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14504         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14505
14506         * redisplay-output.c (compare_runes): use display_hash to
14507         determine if glyphs really are not the same.
14508
14509         * glyphs.c (update_subwindow): check display_hash to see if
14510         anything really needs to be updated. If not then do
14511         nothing. Record the display_hash after updating.
14512         (image_instance_equal): compare the image_instance face also.
14513
14514 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14515
14516         * redisplay.h: Fix comment style.
14517
14518 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14519
14520         * consle-msw.h (struct mswindows_frame):
14521         Added new member paint_pending to indicate whether a WM_PAINT
14522         magic event has been queued for this frame.
14523
14524         * event-msw.c (mswindows_drain_windows_queue):
14525         Don't queue a WM_PAINT magic event if one is already queued.
14526         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14527
14528         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14529
14530 2000-03-07  Didier Verna  <didier@xemacs.org>
14531
14532         * dired.c: #include `regex.h' after `sysfile.h'.
14533
14534 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14535
14536         * sound.c (init_nas_sound): Fix compiler warning.
14537
14538         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14539         (FREE_STRUCT_P):
14540         (MARK_STRUCT_AS_FREE):
14541         (MARK_STRUCT_AS_NOT_FREE):
14542         Make `gcc -fstrict-aliasing' work properly.
14543
14544 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14545
14546         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14547         (mswindows_delete_device): Call CoUnnitialize().
14548
14549         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14550
14551 2000-02-25    <CraigL@DyCon.com>
14552
14553         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14554         <errno.h>.
14555
14556         * sysdep.c: This extern declaration for environ prevents MinGW
14557         from finding the variable in CRTDLL.DLL.
14558
14559         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14560         windows headers.
14561         (SHGFI_EXETYPE): ..
14562         (WM_MOUSEWHEEL): ..
14563         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14564         definitions.
14565         (MMRESULT): Removed, now defined in cygwin's windows headers.
14566         (TIMECAPS): ..
14567         (uid_t,gid_t,pid_t,ssize_t): ..
14568         (_timeb): Removed, MinGW defines both _timeb and timeb.
14569         (HAVE_H_ERRNO): Added.
14570         (HAVE_TZNAME): Added, configure is not detecting this.
14571
14572 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14573
14574         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14575         * syntax.c (syntax_match): Use it.
14576
14577         * cmds.c: Import auto-fill-chars from FSF Emacs.
14578         (Vauto_fill_chars): New variables.
14579         (internal_self_insert): Check Vauto_fill_chars.
14580         (vars_of_cmds):
14581         Declare auto-fill-chars as a Lisp variable and initialize it.
14582
14583 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14584
14585         * fileio.c (Fmake_symbolic_link):
14586         (Ffile_symlink_p):
14587         Run handlers even if local machine doesn't have symlinks.
14588
14589 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14590
14591         * event-msw.c (mswindows_drain_windows_queue):
14592         Don't generate paint magic events for non-XEmacs frames.
14593
14594 2000-03-05  Andy Piper  <andy@xemacs.org>
14595
14596         * redisplay.c (redisplay_frame): generate_displayable_area and
14597         friends assumes that we are not in GC, we therefore have to make
14598         sure that this doesn't happen.
14599
14600         * gutter.c (calculate_gutter_size): generate_displayable_area
14601         assumes that we are not in GC, we therefore have to make sure that
14602         this doesn't happen.
14603
14604 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14605
14606         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14607
14608 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14609
14610         * redisplay.c (regenerate_window): Make sure we set a sane value
14611         for end_pos even if we jump out of the loop.
14612         (regenerate_window): Answer Ben's question :-).
14613         (start_end_of_last_line): Add may_error argument.
14614         (start_of_last_line):
14615         (end_of_last_line): Pass may_error = 0.
14616         (end_of_last_line_may_error): New function.
14617         (pixel_to_glyph_translation): Use it, so we don't crash in
14618         event_to_glyph.
14619
14620 2000-03-04  Andy Piper  <andy@xemacs.org>
14621
14622         * window.h (struct window): add gutter_extent_modiff.
14623
14624         * window.c (allocate_window): zero out gutter_extent_modiff.
14625
14626         * redisplay.h: declare sync_display_line_structs.
14627
14628         * redisplay.c (add_glyph_rune): add a better comment.
14629
14630         * redisplay-output.c (sync_display_line_structs): made non-static.
14631         (compare_runes): remove unneccesary glyph cachel access.
14632
14633         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14634
14635         * gutter.c (output_gutter): don't output the gutter if extent
14636         changes only involve extents in buffers. use 4 sets of display
14637         lines.
14638         (gutter_extent_signal_changed_region_maybe): new function. Mark
14639         extents in gutters as changed.
14640         (update_frame_gutters): use 4 sets of display lines.
14641         (reset_gutter_display_lines): ditto.
14642         (free_frame_gutters): ditto.
14643         (redraw_exposed_gutter): force output of gutters.
14644
14645         * frame.h (struct frame): add 4 sets of gutter display lines.
14646
14647         * extents.c: (extent_changed_for_redisplay): signal changes to
14648         extents in strings in the gutter as well as extents in buffers.
14649
14650 2000-03-02  Andy Piper  <andy@xemacs.org>
14651
14652         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14653
14654         * frame.c (Fmake_frame): make sure the gutters get initialized
14655         after the frame is visible.
14656         (set_frame_selected_window): re-arrange compilation macros a
14657         little.
14658         (change_frame_size_1): mark gutters changed.
14659
14660         * device.c (Fset_device_class): mark gutters changed.
14661
14662 2000-03-01  Andy Piper  <andy@xemacs.org>
14663
14664         * window.c (window_top_frame_gutter_height): deleted.
14665         (window_bottom_frame_gutter_height): ditto.
14666         (window_left_frame_gutter_height): ditto.
14667         (window_right_frame_gutter_height): ditto.
14668         (window_top_gutter_height): don't use them.
14669         (window_bottom_gutter_height): ditto.
14670         (window_left_gutter_width): ditto.
14671         (window_right_gutter_width): ditto.
14672         (Fsplit_window): ditto.
14673         (Fwindow_pixel_edges): don't use border dimensions here.
14674
14675         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14676         (update_scrollbar_instance): ditto.
14677
14678         * redisplay.c (generate_modeline): don't take gutters into account.
14679         (generate_modeline): ditto.
14680         (redisplay_frame): small gutter display optimization.
14681
14682         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14683
14684         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14685         gutters into account.
14686
14687         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14688         for window position and type.
14689
14690         * gutter.c (get_gutter_coords): fix for frame gutters.
14691         (update_frame_gutters): update frame geometry if the gutters have
14692         changed.
14693         (init_frame_gutters): record current gutter geometries.
14694
14695         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14696         var.
14697         (mswindows_widget_instantiate): ditto.
14698
14699         * frame.h (struct frame): add current_gutter_bounds.
14700
14701         * frame.c (change_frame_size_1): position window and minibuffer
14702         appropriately taking into account the frame gutters.
14703
14704         * frame-x.c: (x_initialize_frame_size): take into account the
14705         frame gutters.
14706
14707 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14708
14709         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14710
14711 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14712
14713         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14714
14715 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14716
14717         * file-coding.c (reset_decoding_stream): Clear previous
14718         detection state when autodetect.
14719
14720 2000-02-29  Didier Verna  <didier@xemacs.org>
14721
14722         * extents.c (set_extent_glyph_1): don't require extents to be
14723         attached.
14724
14725 2000-02-27  Andy Piper  <andy@xemacs.org>
14726
14727         * gutter.c (Fset_default_gutter_position): don't default left and
14728         right gutter visibility to t.
14729         (Fset_default_gutter_position): run
14730         default-gutter-position-changed-hook.
14731         (syms_of_gutter): add default-gutter-position-changed-hook.
14732
14733 2000-02-26  Andy Piper  <andy@xemacs.org>
14734
14735         * specifier.c (Fmake_specifier): add gutter references.
14736
14737         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14738
14739         * lisp.h: declare Fvalid_plist_p.
14740
14741         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14742         as changed.
14743         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14744         well as its visibility so that it gets reconstructed.
14745         (construct_window_gutter_spec): new function. Construct a string
14746         to be displayed in the gutter from a plist of strings. Take care
14747         to only use elements that are declared as visible.
14748         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14749         WINDOW_GUTTER.
14750         (gutter_validate): allow plists of strings in the specifier.
14751         (gutter_specs_changed): construct the real_gutter from the gutter
14752         specs using construct_window_gutter_spec.
14753         (gutter_visible_validate): gutter-visible is a new specifier type.
14754         (Fgutter_visible_specifier_p): new function for the new specifier.
14755         (syms_of_gutter): declare gutter-visible and
14756         Fgutter_visible_specifier_p.
14757         (specifier_type_create_gutter): intitalize new gutter-visible
14758         specifier.
14759         (reinit_specifier_type_create_gutter): ditto.
14760         (specifier_vars_of_gutter): use new specifier type for gutter
14761         visibility.
14762         (init_frame_gutters): construct real_gutter correctly.
14763         (Fgutter_specifier_p): beef up documentation.
14764         (Fgutter_size_specifier_p): ditto.
14765
14766         * winslots.h: add real_gutter slots.
14767
14768 2000-02-25  Andy Piper  <andy@xemacs.org>
14769
14770         * device-msw.c: Be kind to older cygwin versions. From Raymond
14771         Toy <toy@rtp.ericsson.se>.
14772
14773         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14774         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14775
14776 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14777
14778         * elhash.c (MARK_OBJ): Practice macro hygiene.
14779
14780 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14781
14782         * miscplay.c: s/__inline__/inline/g;
14783         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14784         (get_device_compdc): INLINE ==> static inline
14785         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14786         find -name '*.h' | \
14787         xargs global-replace \
14788         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14789
14790 2000-02-25  Andy Piper  <andy@xemacs.org>
14791
14792         * window.c (window_top_frame_gutter_height): new function.
14793         (window_top_window_gutter_height): ditto.
14794         (window_top_gutter_height): use them.
14795         (window_bottom_frame_gutter_height): new function.
14796         (window_bottom_window_gutter_height): ditto.
14797         (window_bottom_gutter_height): use them.
14798         (window_left_window_gutter_width): new function.
14799         (window_left_frame_gutter_width): ditto.
14800         (window_left_gutter_width): use them.
14801         (window_right_window_gutter_width): new function.
14802         (window_right_frame_gutter_width): ditto.
14803         (window_right_gutter_width): use them.
14804         (window_pixel_height): new function. calulate window pixel height
14805         with frame gutter involvement.
14806         (Fsplit_window): calculate new sizes taking frame gutters into
14807         account.
14808         (window_char_height_to_pixel_height): don't include frame gutters.
14809         (window_char_height): use window_pixel_height.
14810         (window_pixheight): rename from window_pixel_height.
14811         (change_window_height): use it.
14812         (window_pixel_height_to_char_height): don't include frame gutters.
14813         (window_char_width_to_pixel_width): ditto.
14814
14815 2000-02-25  Andy Piper  <andy@xemacs.org>
14816
14817         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14818         if it is.
14819
14820 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14821
14822         * alloc.c (staticpro):
14823         (staticpro_nodump):
14824         (dumpstruct):
14825         (dumpopaque):
14826         (pdump_wire):
14827         (pdump_wire_list):
14828         (compact_string_chars):
14829         (pdump_dump_wired):
14830         Convert:  if (foo) abort();  ==>  assert (! foo);
14831
14832         * eldap.c (Fldap_search_basic):
14833         (Fldap_add):
14834         (Fldap_modify):
14835         (Fldap_delete):
14836         Fix compiler warnings, and possible crashes if (random) return
14837         value were to be used.
14838
14839 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14840
14841         * device-msw.c: Workaround ResetDC failure.
14842
14843         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14844         applying a devmode.
14845
14846         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14847         (mswindows_text_width): Do not start printer page.
14848
14849         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14850
14851         * glyphs-msw.c: Added image methods to msprinter console and
14852         msprinter-specific image instantiation.
14853
14854 2000-02-20  Mike Alexander  <mta@arbortext.com>
14855
14856         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14857         to avoid crashes when selection-sets-clipboard is on
14858         (mswindows_own_selection): ditto
14859
14860 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14861
14862         * glyphs-msw.c:
14863         * redisplay-msw.c (get_frame_dc):
14864         (get_frame_compdc):
14865         * console-msw.h:
14866         * device-msw.c (mswindows_init_device):
14867         (mswindows_delete_device):
14868         (msprinter_init_device):
14869         (msprinter_delete_device):
14870         * frame-msw.c (mswindows_init_frame_1):
14871         (mswindows_delete_frame):
14872         (msprinter_init_frame_3):
14873         (msprinter_delete_frame): Move compatible DC to device object from
14874         frame object, for both mswindows and msprinter. Only one at a time
14875         is needed, it is a real waste to have one per frame!
14876
14877 2000-02-23  Andy Piper  <andy@xemacs.org>
14878
14879         * glyphs.c: add dynamic width and height elements.
14880         (image_instance_equal): ditto.
14881
14882         * glyphs-widget.c (widget_query_geometry): calculate width and
14883         height dynamically if required.
14884         (initialize_widget_image_instance): initialize dynamic dimensions.
14885         (widget_instantiate): pick-up dynamic dimensions.
14886
14887         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14888         dynamic determination. Add appropriate macros.
14889
14890         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14891         dimensions safe.
14892         (WINDOW_GUTTER_SIZE): ditto.
14893         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14894
14895         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14896         inline.
14897         (get_frame_dc): ditto.
14898
14899         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14900         here.
14901
14902 2000-02-23  Martin Buchholz <martin@xemacs.org>
14903
14904         * XEmacs 21.2.31 is released.
14905
14906 2000-02-22  Ben Wing <ben@xemacs.org>
14907
14908         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14909
14910 2000-02-22  Andy Piper  <andy@xemacs.org>
14911
14912         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14913
14914 2000-02-21  Mike Sperber <mike@xemacs.org>
14915
14916         * .dbxrc:
14917         * .gdbinit:
14918         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14919         variables.
14920
14921 2000-02-21  Mike Sperber <mike@xemacs.org>
14922
14923         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14924
14925 2000-02-21  Martin Buchholz <martin@xemacs.org>
14926
14927         * XEmacs 21.2.30 is released.
14928
14929 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14930
14931         Performance hacking.
14932         * *.c (syms_of_*):
14933         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14934         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14935         * emacs.c (main_1):
14936         * lisp.h (DEFUN):
14937         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14938         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14939         * symeval.h (DEFVAR_SYMVAL_FWD):
14940         * symbols.c (guts_of_unbound_marker):
14941         Make all c_readonly objects also lisp_readonly and marked for life.
14942         * lrecord.h (struct lrecord_implementation):
14943         Document flags better.
14944         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14945         * lrecord.h (DECLARE_LRECORD):
14946         * lrecord.h (XSETRECORD):
14947         * lrecord.h (RECORDP):
14948         * lrecord.h (RECORD_TYPEP):
14949         * lrecord.h (RECORD_MARKER): New.
14950         * lrecord.h (error_check_*):
14951         * lrecord.h (CONCHECK_NONRECORD):
14952         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14953         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14954         * lrecord.h (set_lheader_implementation):
14955         * lrecord.h (enum lrecord_type): New.
14956         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14957         * alloc.c (disksave_object_finalization_1):
14958         * alloc.c (mark_object):
14959         * alloc.c (lrecord_type_index):
14960         * alloc.c (tick_lcrecord_stats):
14961         * alloc.c (Fgarbage_collect):
14962         * alloc.c (init_alloc_once_early):
14963         * alloc.c (pdump_load):
14964         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14965         * alloc.c (lrecord_type_index): Delete.
14966         Make lisp object type indexes be constant.
14967           Makes (byte-compile) 5% faster.
14968         Put all marker functions into their own array.
14969           Makes (garbage-collect) 5% faster.
14970         Optimize SYMBOL_VALUE_MAGIC_P.
14971           Makes (byte-compile) 2-3% faster.
14972         * config.h.in (gc_checking_assert): New.
14973         * alloc.c: Use gc_checking_assert().
14974         * .dbxrc: Make compatible with new object type implementation.
14975         * .gdbinit: Make compatible with new object type implementation.
14976         * alloc.c: Delete all symbols defined only for debugging, such as
14977         Lisp_Type_Vector and lrecord_charset.
14978
14979 2000-02-21  Andy Piper  <andy@xemacs.org>
14980
14981         * gui-msw.c (Fmswindows_shell_execute): fix file location
14982         problems.
14983
14984         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14985         unshowing so that set_window_buffer doesn't undo
14986         kill_buffer_hook's hard work.
14987
14988         * glyphs-widget.c (tab_control_query_geometry): don't count the
14989         first item when calculating geometry.
14990
14991         * glyphs.c (map_subwindow): remove redundant code.
14992         (update_frame_subwindows): be more circumspect about when to
14993         update subwindows.
14994
14995         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14996         when items haven't changed. Update faces if faces have changed as
14997         well as just the widget face.
14998         (x_tab_control_update): Update faces if faces have changed as well
14999         as just the widget face.
15000
15001 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15002
15003         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15004         registration.
15005         (build_syscolor_string): Use mswindows_color_to_string to try to
15006         get a named color.
15007         (mswindows_device_system_metrics): Reverse the foreground and
15008         background colors so that they match the documentation.
15009
15010         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15011         they match the default Windows palette.
15012         (mswindows_color_to_string): New function.
15013
15014 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15015
15016         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15017
15018 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15019
15020         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15021         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15022
15023         * symbols.c (init_symbols_once_early): Removed obsolete
15024         DATA_SEG_BITS related kludge.
15025         (defvar_magic): Ditto.
15026
15027         * malloc.c: Removed obsolete DATA_SEG_BITS
15028         * ralloc.c: Ditto.
15029         * mem-limits.h: Ditto.
15030
15031         * Makefile.in.in: Removed obsolete HAVE_SHM
15032         * emacs.c: Ditto.
15033
15034 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15035
15036         *  device-msw.c (mswindows_delete_device): Free DDE string
15037         handles.
15038
15039 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15040
15041         * keymap.c (get_keyelt):
15042         * unexnt.c (unexec):
15043         * vm-limit.c (memory_warnings):
15044         * ntheap.c (recreate_heap):
15045         * ntheap.h (UNINIT_PTR):
15046         * select-msw.c (Fmswindows_get_clipboard):
15047         (Fmswindows_set_clipboard):
15048         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15049         * objects-msw.c:
15050         * menubar-msw.c (displayable_menu_item):
15051         * glyphs-msw.c:
15052         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15053         * sysdep.c (sys_subshell):
15054         * process-nt.c (nt_create_process):
15055         * nt.c (normalize_filename):
15056         (dostounix_filename):
15057         (unixtodos_filename):
15058         * ntproc.c (win32_executable_type):
15059         * ntplay.c (play_sound_data_1):
15060         (play_sound_file):
15061         * editfns.c (get_home_directory):
15062         * event-msw.c (struct winsock_stream):
15063         (mswindows_dde_callback):
15064         * device-msw.c (msprinter_init_device):
15065         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15066
15067         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15068         mswindows_clear_toolbar were swapped!
15069
15070         * objects-msw.c:(colormap_t):
15071         (fontmap_t):
15072         * emacs.c (struct standard_args): Fixed const jumble.
15073
15074         * glyphs-widget.c (update_widget): Fixed comparison notation.
15075
15076         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15077
15078         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15079         __declspec(noreturn) syntax.
15080
15081 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15082
15083         * eldap.c (Fldap_open):
15084         (Fldap_search_basic):
15085         (Fldap_add):
15086         (Fldap_modify):
15087         Use new coding system conversion macros.
15088
15089 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15090
15091         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15092
15093 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15094
15095         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15096         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15097
15098         * eldap.c (Qadd, Qreplace): New constant symbols
15099         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15100         interruptions by XEmacs signals
15101         Remove unnecessary calls to slow_down_interrupts and
15102         speed_up_interrupts
15103         (Fldap_search_basic): Renamed from Fldap_search_internal
15104         Added new optional parameter VERBOSE that triggers the
15105         display of progress messages
15106         Remove unnecessary calls to slow_down_interrupts and
15107         speed_up_interrupts
15108         LDAP result code analysis rewritten
15109         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15110         (syms_of_eldap): Define the new symbols and functions
15111
15112
15113 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15114
15115         * realpath.c: Determine PATH_MAX maximally portably.
15116
15117         * insdel.c (bytecount_to_charcount): Optimize.
15118         The function used to be optimized for entirely ASCII sequences.
15119         Now it is optimized for successive characters from the same
15120         charset.  This also wins big for _mostly_ ASCII sequences.
15121
15122         * fileio.c (Ffile_truename): convert return from realpath() using
15123         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15124         - Rewrite GCPROing slightly.
15125
15126         * sysdep.c (sys_open): Do filename conversion, like all other
15127         sys_* functions.  Fixes bug:
15128         (let ((file-name-coding-system 'iso-8859-2))
15129            (write-region x y latin2-name))
15130         ==> writes filename using internal encoding.
15131
15132 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15133
15134         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15135         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15136         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15137         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15138         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15139         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15140         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15141         (CONST_IF_NOT_DEBUG): Delete.
15142         * alloc.c (this_one_is_unmarkable): Delete.
15143         (mark_object): Don't check for this_one_is_unmarkable. Use the
15144         c_readonly flag instead.
15145         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15146
15147 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15148
15149         * event-msw.c (mswindows_drain_windows_queue):
15150         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15151         away redundant repaint events.
15152
15153 2000-02-17  Andy Piper  <andy@xemacs.org>
15154
15155         * redisplay.h: declare mark_redisplay_structs.
15156
15157         * redisplay.c (redisplay_window):
15158         (redisplay_frame): don't check subwindows_state_changed.
15159         (mark_redisplay): mark gutters here.
15160
15161         * glyphs.c: (instantiate_image_instantiator): always layout if we
15162         haven't done so already.
15163         (allocate_image_instance): don't mark as dirty.
15164         (update_subwindow): bind inhibit_quit.
15165
15166         * gutter.c (mark_gutters): new function.
15167
15168         * glyphs-x.c (x_update_widget): Always resize to get round a
15169         widget bug.
15170
15171         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15172         breaking absolutely everything.
15173
15174         * gutter.h: declare mark_gutters.
15175
15176 2000-02-16  Martin Buchholz <martin@xemacs.org>
15177
15178         * XEmacs 21.2.29 is released.
15179
15180 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15181
15182         * fns.c (size_bit_vector): Fix computation of the size.
15183
15184 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15185
15186         * *.[ch]: Change CONST to const globally.
15187         find -name '*.[ch]' | \
15188         xargs global-replace \
15189         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15190         - Remove vestigial references to CONST_IS_LOSING
15191
15192 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15193
15194         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15195         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15196         events instead of dispatching them directly.
15197         (mswindows_handle_paint): New function to do repainting.
15198         (mswindows_wnd_proc):
15199         (emacs_mswindows_handle_magic_event): Call above function.
15200
15201 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15202
15203         * objects-msw.c (mswindows_create_font_variant): Return the new
15204         font handle.
15205         (initialize_font_instance): Get font metrics from the underlined
15206         variant of the font to cope with the case where the underlined
15207         font has a bigger descent.
15208
15209 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15210
15211         * gui.c (gui_item_accelerator): Return the first underlined
15212         character in item name.
15213
15214 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15215
15216         * lisp.h: Added Qprinter.
15217
15218         * general.c (syms_of_general): Initialized it.
15219
15220         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15221         (get_frame_dc):
15222         (get_frame_compdc): Made inline.
15223
15224         * console.h (struct console_methods): Added eject_page method.
15225
15226         * frame.h: Added FRAME_DISPLAY_P and friends.
15227         Aligned backslahes in many macros in more readable fashion.
15228         Added page_number to struct frame, and an accessor macro
15229         for it.
15230
15231         * defice.h: Added DEVICE_DISPLAY_P and friends.
15232
15233         * device.c (Fdevice_printer_p): Used these.
15234
15235         * frame.c (allocate_frame_core): Initialize page number.
15236         (Fprint_job_page_number):
15237         (Fprint_job_eject_page): Implemented.
15238
15239         * frame-msw.c (msprinter_eject_page): Added method.
15240         (msprinter_start_page): Added.
15241
15242         * window.c (Fwindow_truncated_p): Fixed docstring.
15243         (Fwindow_last_line_visible_height): Implemented.
15244
15245 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15246
15247         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15248
15249 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15250
15251         * syntax.c (scan_words): Always advance at least one character.
15252
15253 2000-02-13  Andy Piper  <andy@xemacs.org>
15254
15255         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15256         to make sure the glyph is in the cachels.
15257
15258         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15259         global image instance flag.
15260         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15261         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15262
15263         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15264         (Fset_image_instance_property): mark layout as changed.
15265         (invalidate_glyph_geometry_maybe): mark layout as changed.
15266         (glyph_width): use new NEEDS_LAYOUT macro.
15267         (glyph_ascent): ditto.
15268         (glyph_descent): ditto.
15269         (glyph_height): ditto.
15270         (image_instance_layout): mark layout as clean after laying out.
15271         (update_subwindow): don't mark layout as clean here.
15272
15273         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15274         should no longer be needed.
15275
15276         * glyphs-x.c (x_update_widget): sanitize asserts.
15277         (x_finalize_image_instance): sanitize assignment to widgets.
15278
15279         * glyphs-widget.c (widget_instantiate): don't need to clear the
15280         layout flag here.
15281
15282 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15283
15284         * sysdep.c (getcwd): Use standard prototype.
15285         * sysdep.h (getcwd): Use standard prototype.
15286
15287         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15288         (sequence, start, end).
15289         Remove redundant type checking.
15290         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15291         view of `caller-protects') to avoid a crash where the real fix was
15292         found elsewhere.
15293
15294 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15295
15296         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15297
15298         * s/sol2.h: Remove feature macro initialization.
15299
15300         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15301         (vector_hash): New.  Code from internal_hash.
15302         * lrecord.h:
15303         Fix up allocation subsystem comments.
15304
15305         * config.h.in: Add __EXTENSIONS__ for Solaris.
15306
15307         * systime.h (EMACS_GETTIMEOFDAY): New.
15308         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15309         Remove Solaris-specific code.
15310         Use void* for the (ignored) second arg for gettimeofday().
15311
15312         * elhash.c (hash_table_hash): Implement it, finally.
15313         * elhash.c:  Use hashcode_t.
15314
15315         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15316         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15317
15318         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15319         * fns.c (size_bit_vector):
15320         * alloc.c (size_vector):
15321         (make_vector_internal):
15322         (make_bit_vector_internal):
15323         (sweep_bit_vectors_1):
15324         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15325
15326 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15327
15328         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15329         Include strings.h to avoid warnings for bzero and strcasecmp.
15330
15331 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15332
15333         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15334         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15335
15336         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15337         sequence.
15338
15339 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15340
15341         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15342         use a value field instead.
15343         (symbol_value_forward_forward): Use value field.
15344         (DEFVAR_SYMVAL_FWD): Use value field.
15345         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15346         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15347         (DEFVAR_CONST_INT): Ditto.
15348         (DEFVAR_BOOL): Ditto.
15349         (DEFVAR_CONST_BOOL): Ditto.
15350         (DEFVAR_INT_MAGIC): Ditto.
15351         (DEFVAR_BOOL_MAGIC): Ditto.
15352
15353         * symbols.c (guts_of_unbound_marker): Use value field.
15354         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15355         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15356
15357         * lisp.h: Declare dumpopaque and noninteractive1.
15358
15359         * alloc.c (dumpopaque): Added.
15360         (pdump_dump_opaquevec): Added.
15361         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15362         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15363         noninteractive.
15364
15365 2000-02-10  Andy Piper  <andy@xemacs.org>
15366
15367         * glyphs.c (image_instance_layout): if the size changes, mark it
15368         as such.
15369
15370         * redisplay-output.c (redisplay_output_layout): Update the
15371         subwindow here.
15372         (redisplay_output_subwindow): ditto.
15373
15374         * glyphs.c (update_subwindow): make sure we reset flags for
15375         layouts as well as everything else.
15376
15377         * glyphs-widget.c (layout_layout): don't need to set the instances
15378         dimensions here.
15379
15380 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15381
15382         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15383         not HAVE_DLOPEN, which is a lower-level thing.
15384
15385         * .cvsignore: Ignore gmon.out
15386
15387 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15388
15389         * .cvsignore: Ignore portable dumper xemacs.dmp file
15390
15391 2000-02-09  Andy Piper  <andy@xemacs.org>
15392
15393         * redisplay-output.c (redisplay_output_layout): be more clever
15394         about when we output based on the changed flags.
15395
15396         * glyphs.h (struct image_instantiator_methods): add update_method.
15397         (struct Lisp_Image_Instance): add changed flags. Declare new
15398         macros for manipulating them.
15399
15400         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15401         (image_instance_parent_glyph): find an image_instance's parent
15402         glyph or image_instance.
15403         (image_instance_layout): mark the size as changed.
15404         (set_image_instance_dirty_p): new function. mark an image
15405         instance, plus all of its parents, as dirty.
15406         (Fset_image_instance_property): use it.
15407         (Fglyph_animated_timeout_handler): use it.
15408         (update_subwindow): call update_widget and device methods for
15409         update_subwindow. Mark all changed flags as clean.
15410         (Fresize_subwindow): mark size as changed.
15411
15412         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15413         failures.
15414         (x_update_subwindow): only resize subwindows here.
15415         (x_update_widget): new function. Update all changed properties of
15416         a widget.
15417         (x_resize_subwindow): deleted.
15418         (x_widget_set_property): deleted.
15419         (x_progress_gauge_set_property): deleted.
15420         (x_progress_gauge_update): new function. Implement recorded
15421         changes.
15422         (x_tab_control_update): ditto.
15423         (x_tab_control_set_property): deleted.
15424         (console_type_create_glyphs_x): declare new functions.
15425         (image_instantiator_format_create_glyphs_x): ditto.
15426
15427         * glyphs-widget.c (widget_set_property): mark text changed.
15428         (update_widget): new function. Update properties of a widget.
15429         (widget_instantiate): for layouts make sure we set their
15430         children's parent correctly.
15431         (tab_control_set_property): new function. Record changes that will
15432         take place under redisplay's control.
15433         (progress_gauge_set_property): ditto.
15434         (image_instantiator_progress_guage): declare new functions.
15435         (image_instantiator_tab_control): ditto.
15436
15437         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15438         now.
15439         (mswindows_update_widget): new function. Update all properties on
15440         a widget that have changed.
15441         (mswindows_button_update): new function. Update a button's set
15442         state.
15443         (mswindows_tab_control_update): new function. Update the items in
15444         a tab.
15445         (mswindows_tab_control_set_property): deleted.
15446         (mswindows_progress_gauge_update): new function. Update the
15447         progress gauge's progress.
15448         (mswindows_widget_set_property): deleted. This is all done
15449         asynchronously now.
15450         (mswindows_progress_gauge_set_property): ditto.
15451         (console_type_create_glyphs_mswindows): declare new methods.
15452         (image_instantiator_format_create_glyphs_mswindows): ditto.
15453
15454         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15455         (msprinter_set_frame_properties): ditto.
15456
15457         * console.h (struct console_methods): Add update_widget_method.
15458
15459 2000-02-09  Andy Piper  <andy@xemacs.org>
15460
15461         * gui-msw.c (Fmswindows_shell_execute): Make
15462         mswindows-shell-execute industrial strength.
15463
15464 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15465
15466         * lrecord.h: Make macro argument `props' match member function `plist'.
15467         * fns.c (Fget):
15468         * fns.c (Fput):
15469         * fns.c (Fremprop):
15470         * fns.c (Fobject_plist):
15471         * alloc.c:
15472         * symbols.c:
15473         Object property list frobbing cleanup.
15474         - Allow any lisp object (compared with `eq'), not just symbols, as
15475           keys in object plists.
15476         - Move symbol plist frobbing into symbols.c, where it belongs.
15477         - Move string plist frobbing into alloc.c, where it belongs.
15478         - Everything's an lrecord now, so no need to test for symbolp, etc.
15479         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15480
15481         * extents.c: Reorder code to remove declarations.
15482
15483         * frame.h (store_in_alist): Remove useless declaration.
15484
15485 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15486
15487         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15488         * config.h.in: Add HAVE_XCONVERTCASE.
15489
15490 2000-02-07  Andy Piper  <andy@xemacs.org>
15491
15492         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15493         it breaks many things.
15494
15495 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15496
15497         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15498         actually can start a common comment type.
15499         * src/syntax.h (SYNTAX_END_P): ditto for end.
15500
15501 2000-02-07  Martin Buchholz <martin@xemacs.org>
15502
15503         * XEmacs 21.2.28 is released.
15504
15505 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15506
15507         * event-Xt.c (x_keysym_to_character): New.
15508         (maybe_define_x_key_as_self_inserting_character): New.
15509         (x_has_keysym): New.
15510         Auto-define all keys on the keyboard as self-insert-key.
15511
15512 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15513
15514         * menubar.c (vars_of_menubar): A small code simplification.
15515
15516         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15517
15518         * ExternalShell.c:
15519         * ExternalClient.c:
15520         * EmacsShell-sub.c:
15521         * EmacsManager.c:
15522         * EmacsFrame.c:
15523         Use consistent style for specifying X resources.
15524
15525         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15526         This makes (dontusethis-set-symbol-value-handler) actually usable.
15527
15528         * lrecord.h (lrecord_decription_type):
15529         * alloc.c (pdump_register_sub):
15530         (pdump_dump_data):
15531         (pdump_reloc_one):
15532         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15533         Comply with XEmacs coding style.
15534         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15535         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15536
15537         * keymap.c (Faccessible_keymaps):
15538         Make (accessible-keymaps map "\C-h") do the Right Thing.
15539         Make (accessible-keymaps map []) do the Right Thing.
15540         Make (accessible-keymaps map "") do the Right Thing.
15541         (check_keymap_definition_loop): New function.
15542         (keymap_store_internal): Keep luser from shooting self in foot,
15543           via (define-key ctl-x-4-map "p" global-map).
15544         Remove fullness slot from struct Lisp_Keymap, since hash tables
15545         are now reliable.
15546         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15547
15548 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15549
15550         * redisplay.c (init_redisplay): Fix small memory leak.
15551         * elhash.h:
15552         * elhash.c (pdump_reorganize_hash_table):
15553         Rename from reorganize_hash_table. Change prototype.
15554         Reuse the original memory for hentries.  Save 100k.
15555         * alloc.c (PDUMP_READ): new macro.
15556         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15557         * alloc.c: No need to #ifndef before #undef.
15558
15559         * print.c: Allow debug_print() to print readably by modifying
15560         debug_print_readably.  Use consistent variable names.
15561
15562         * .dbxrc: Try to get things to work even if stopped in a function
15563         without source available by explicitly specifying source files.
15564 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15565
15566         * unexnt.c (_start): Removed bogus code which caused loading heap
15567         from differrent executable file.
15568         Removed bogus assignment to _fmode, which caused inconsistencies.
15569
15570 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15571
15572         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15573         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15574         Do not preliminary `#define signal sigset'.
15575
15576         * systime.h: Do not prototype environ on windows nt and cygwin,
15577         this conflicts with system header.
15578
15579         * syssignal.h: Use correct define for WINDOWSNT
15580
15581         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15582         with system header.
15583
15584         * sysdep.c (near start of file): Fixed commentary and rearranged
15585         ifdefs in readable order.
15586         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15587         (start_of_text):
15588         (end_of_text):
15589         (end_of_data): Do not compile in if using PDUMP.
15590
15591         * symsinit.h: Prototyped vars_of_nt().
15592
15593         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15594         (find_child_console): Use it.
15595         (sys_kill): Use it.
15596
15597         * ntheap.h: Do not extern os_subtype.
15598
15599         * ntheap.c (cache_system_info): Do not cache unneeded:
15600         nt_major_version, nt_minor_version and os_subtype.
15601         (recreate_heap): Do not compile in when PDUMPing.
15602
15603         * nt.c (geteuid and friends): Use the new varibale
15604         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15605         (init_user_info): Removed the above mentioned hackery.
15606         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15607         stat has been fixed in the C runtime.
15608         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15609
15610         * file-coding.c (struct file_coding_dump): Do not define
15611         ucs_to_mule_table in the struct if not MULE.
15612         (struct struct lrecord_description fcd_description_1): Do not dump
15613         the above.
15614
15615         * emacs.c (main_1): Call vars_of_nt().
15616         (right before Fdump_emacs_data): Don't need lastfile if using both
15617         portabe dumper and system malloc.
15618
15619         * alloc.c (Fmemory_limit): Conditionalized out.
15620         (pdump): Use OPEN_BINARY for the portable dump file.
15621         (pdump_load): Ditto.
15622
15623 2000-02-02  Mike Alexander  <mta@arbortext.com>
15624
15625         * nt.c (convert_time): Set tm_isdst before calling mktime and
15626         avoid calling it at all if the compiler supports 64 bit integers.
15627         Also initialize utc_base_ft before using it.
15628
15629 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15630
15631         * frame.c (change_frame_size_1): Take f->internal_border_width
15632         into consideration when calculating the width of the frame.
15633
15634 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15635
15636         * window.c (frame_min_height):
15637         (frame_size_valid_p):
15638         (frame_pixsize_valid_p): Added.
15639         (check_frame_size): Generalized.
15640
15641         * window.h: Prototyped the above.
15642
15643         * lisp.h:
15644         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15645         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15646         Deleted Vwin32_* and Vbinary_process_* unused variables.
15647
15648         * device-msw.c (msprinter_init_device): Do not get printer font
15649         list; Added DEVMODE functions.
15650
15651         * frame-msw.c: Added lots of printer code.
15652
15653         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15654         general.c.
15655
15656         * console-msw.h: Added more msprinter device private slots.
15657
15658 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15659
15660         * event-msw.c (key_needs_default_processing_p): Added.
15661         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15662
15663 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15664
15665         * glyphs.c (image_instance_layout): Mark image instance as clean
15666         after layout.
15667         (glyph_dirty_p): Removed redundant function.
15668         (invalidate_glyph_geometry_maybe): Added.
15669         (update_glyph_cachel_data): Call it.
15670
15671         * glyphs.h: Prototyped it.
15672
15673         * redisplay.c (add_glyph_rune): Call it.
15674         (redisplay_window): Reset glyphs cachels when frame faces have
15675         changed, thus forcing recomputation of built-in border glyphs.
15676
15677 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15678
15679         * Makefile.in.in: Make portable dumper and purify play well together.
15680         Add imperfect, but better than nothing, support for pdump.
15681         Remove xemacs.dmp when temacs is re-generated.
15682         Don't ignore errors when dumping xemacs.
15683
15684         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15685
15686 2000-01-28  Andy Piper  <andy@xemacs.org>
15687
15688         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15689         (setup_normal_frame): ditto.
15690         (setup_frame_without_minibuffer): ditto.
15691         (setup_minibuffer_frame): ditto.
15692         (delete_frame_internal): ditto.
15693         (Fmake_frame_invisible): ditto.
15694         (Ficonify_frame): ditto.
15695
15696         * window.h: change Fset_window_buffer signature.
15697
15698         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15699         (Fset_window_buffer): allow recording of buffer if the window is
15700         the selected window.
15701         (window_loop): Use new Fset_window signature.
15702
15703 2000-01-23  Daniel Pittman  <daniel@danann.net>
15704
15705         * config.h.in: Added template for `HAVE_ATHENA_3D'
15706
15707 2000-01-29  Andy Piper  <andy@xemacs.org>
15708
15709         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15710
15711         * gutter.c (output_gutter): Don't output if the window isn't live.
15712
15713 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15714
15715         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15716         of 01/12/00: Moved SetFocus back here where it belongs.
15717
15718 2000-01-23  Andy Piper  <andy@xemacs.org>
15719
15720         * s/cygwin32.h: declare printer things.
15721
15722 2000-01-26  Andy Piper  <andy@xemacs.org>
15723
15724         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15725         Alexander.
15726
15727 2000-01-24  Andy Piper  <andy@xemacs.org>
15728
15729         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15730         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15731
15732         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15733
15734         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15735
15736         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15737
15738         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15739         (mswindows_output_display_block): Avoid local shadows.
15740
15741         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15742         (mswindows_enqueue_mouse_button_event): ditto.
15743         (mswindows_handle_gui_wm_command): remove declaration.
15744
15745         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15746         warnings.
15747
15748         * console-msw.h: Avoid shadows.
15749         (mswindows_get_toolbar_button_text):
15750         (emacs_mswindows_create_stream_pair):
15751         (emacs_mswindows_delete_stream_pair):
15752         (mswindows_handle_toolbar_wm_command): declare.
15753
15754         * device-msw.c (build_syscolor_string): Avoid shadows.
15755
15756 2000-01-23  Andy Piper  <andy@xemacs.org>
15757
15758         * glyphs-widget.c (widget_instantiate): reverse the items for
15759         layouts so that children are in the expected order.
15760
15761 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15762
15763         * ralloc.c: safe_bcopy ==> memmove
15764         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15765         * s/msdos.h: Remove BCOPY macros.
15766         * insdel.c (gap_right): Remove BCOPY conditional code.
15767         * insdel.c (gap_left): Remove BCOPY conditional code.
15768         XEmacs demands a working ANSI C compiler - hence memmove.
15769
15770         * regex.c (regex_compile): Remove accidental use of trigraphs.
15771
15772 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15773
15774         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15775         event timestamp.
15776
15777 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15778
15779         * event-msw.c (mswindows_drain_windows_queue): Added the
15780         parameter.
15781         (mswindows_need_event): Commented the call to
15782         mswindows_drain_windows_queue().
15783         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15784         only.
15785
15786         * console-msw.h: Moved a few function prototypes here from
15787         event-msw.c.
15788
15789         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15790         parameter from unsigned short to unsigned long.
15791         (Fmswindows_shell_execute): Added return value.
15792
15793 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15794
15795         * sysdep.c (init_system_name):
15796           process-unix.c (unix_canonicalized_host_name):
15797         Don't call freeaddrinfo() if getaddrinfo() fails.
15798
15799         * process-unix.c (unix_open_unix_network_stream):
15800         Moved the code to get a port # into address loop.
15801
15802 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15803
15804         * buffer.c (reinit_vars_of_buffer):
15805         The right place to initialize conversion_in_dynarr and
15806         conversion_out_dynarr.
15807
15808         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15809
15810         * process-unix.c (unix_canonicalize_host_name): Muleize.
15811         (unix_open_network_stream): Muleize.
15812
15813         * buffer.h: Fix up prototypes for ralloc.c functions.
15814
15815 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15816         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15817         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15818                 instead of gethostbyname()
15819         * process-unix.c: In unix_canonicalize_host_name() and
15820                 unix_open_network_stream(), add code to use getaddrinfo()
15821                 instead of gethostbyname().
15822
15823 2000-01-27  Daniel Pittman <daniel@danann.net>
15824
15825         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15826         libs when built with flat Athena.
15827
15828 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15829
15830         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15831         Use coding standards for function prototypes.
15832
15833 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15834
15835         * dialog-msw.c (push_lisp_string_as_unicode):
15836         * doc.c (unparesseuxify_doc_string):
15837         * dired.c (Fuser_name_completion_1):
15838         * dired.c (Fuser_name_all_completions):
15839         * dired.c (free_user_cache):
15840         * dired.c (user_name_completion):
15841         * console-x.c (get_display_arg_connection):
15842         * minibuf.c (clear_echo_area_internal):
15843         * minibuf.c (echo_area_append):
15844         * eldap.c (Fldap_open):
15845         * eldap.c (Fldap_search_internal):
15846         * frame-x.c (x_set_frame_text_value):
15847         * frame-x.c (x_set_frame_properties):
15848         * frame-x.c (x_create_widgets):
15849         * redisplay-tty.c (term_get_fkeys_1):
15850         * objects-x.c (x_parse_nearest_color):
15851         * objects-x.c (x_valid_color_name_p):
15852         * objects-x.c (x_initialize_font_instance):
15853         * objects-x.c (x_list_fonts):
15854         * objects-x.c (x_find_charset_font):
15855         * tooltalk.c (Fadd_tooltalk_message_arg):
15856         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15857         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15858         * process-unix.c (unix_create_process):
15859         * ntproc.c (sys_spawnve):
15860         * sound.c (Fplay_sound_file):
15861         * sound.c (Fplay_sound):
15862         * buffer.c (init_initial_directory):
15863         * buffer.c (init_buffer):
15864         * editfns.c (init_editfns):
15865         * editfns.c (Ftemp_directory):
15866         * editfns.c (Fuser_full_name):
15867         * editfns.c (uncache_home_directory):
15868         * editfns.c (get_home_directory):
15869         * editfns.c (Fuser_home_directory):
15870         * editfns.c (Fformat_time_string):
15871         * editfns.c (Fcurrent_time_string):
15872         * gui-x.c (button_item_to_widget_value):
15873         * database.c (Fopen_database):
15874         * event-Xt.c (x_to_emacs_keysym):
15875         * event-Xt.c (x_event_to_emacs_event):
15876         * event-Xt.c (describe_event_window):
15877         * event-msw.c (mswindows_wnd_proc):
15878         * glyphs-eimage.c (jpeg_instantiate):
15879         * glyphs-eimage.c (gif_instantiate):
15880         * glyphs-eimage.c (png_instantiate):
15881         * glyphs-eimage.c (tiff_instantiate):
15882         * glyphs-x.c (xbm_instantiate_1):
15883         * glyphs-x.c (x_xbm_instantiate):
15884         * glyphs-x.c (x_xface_instantiate):
15885         * glyphs-x.c (autodetect_instantiate):
15886         * glyphs-x.c (cursor_font_instantiate):
15887         * glyphs-x.c (x_widget_instantiate):
15888         * glyphs-x.c (x_widget_set_property):
15889         * glyphs-x.c (x_widget_property):
15890         * glyphs-x.c (BUILD_GLYPH_INST):
15891         * print.c (write_string_to_stdio_stream):
15892         * print.c (output_string):
15893         * print.c (Falternate_debugging_output):
15894         * print.c (Fexternal_debugging_output):
15895         * glyphs-msw.c (extract_xpm_color_names):
15896         * glyphs-msw.c (mswindows_xpm_instantiate):
15897         * glyphs-msw.c (bmp_instantiate):
15898         * glyphs-msw.c (resource_name_to_resource):
15899         * glyphs-msw.c (mswindows_resource_instantiate):
15900         * glyphs-msw.c (xbm_instantiate_1):
15901         * glyphs-msw.c (mswindows_xbm_instantiate):
15902         * glyphs-msw.c (mswindows_xface_instantiate):
15903         * glyphs-msw.c (mswindows_widget_instantiate):
15904         * glyphs-msw.c (add_tree_item):
15905         * glyphs-msw.c (add_tab_item):
15906         * glyphs-msw.c (mswindows_combo_box_instantiate):
15907         * glyphs-msw.c (mswindows_widget_property):
15908         * glyphs-msw.c (mswindows_combo_box_property):
15909         * glyphs-msw.c (mswindows_widget_set_property):
15910         * console.c (stuff_buffered_input):
15911         * objects-msw.c (mswindows_initialize_color_instance):
15912         * objects-msw.c (mswindows_valid_color_name_p):
15913         * objects-msw.c (mswindows_list_fonts):
15914         * objects-msw.c (mswindows_font_instance_truename):
15915         * bytecode.c (optimize_compiled_function):
15916         * select-x.c (symbol_to_x_atom):
15917         * select-x.c (x_atom_to_symbol):
15918         * select-x.c (hack_motif_clipboard_selection):
15919         * select-x.c (selection_data_to_lisp_data):
15920         * select-x.c (lisp_data_to_selection_data):
15921         * select-x.c (Fx_get_cutbuffer_internal):
15922         * select-x.c (Fx_store_cutbuffer_internal):
15923         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15924         * buffer.h (TO_INTERNAL_FORMAT): New function.
15925         * emacs.c (make_arg_list_1):
15926         * emacs.c (make_argc_argv):
15927         * emacs.c (main_1):
15928         * emacs.c (Fdump_emacs):
15929         * emacs.c (split_string_by_emchar_1):
15930         * file-coding.h:
15931         * lisp.h:
15932         * lstream.h:
15933         * symsinit.h:
15934         * device-x.c (x_init_device):
15935         * device-x.c (Fx_valid_keysym_name_p):
15936         * device-x.c (Fx_get_font_path):
15937         * device-x.c (Fx_set_font_path):
15938         * glyphs.c (bitmap_to_lisp_data):
15939         * glyphs.c (pixmap_to_lisp_data):
15940         * alloc.c (make_ext_string): Use coding system arguments.  Update
15941         all callers.
15942         * alloc.c (build_string):
15943         * callproc.c (child_setup):
15944         * callproc.c (init_callproc):
15945         * fileio.c (lisp_strerror):
15946         * fileio.c (directory_file_name):
15947         * fileio.c (Fexpand_file_name):
15948         * fileio.c (Ffile_truename):
15949         * fileio.c (Fsysnetunam):
15950         * fileio.c (Fdo_auto_save):
15951         * sysdep.c (sys_readdir):
15952         * tests.c: New file.  Allow adding C tests.
15953         Replace GET_* macros with a more comprehensible and flexible
15954         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15955         Modify all calls.
15956         Any coding system can be used to do format conversion.
15957         Eliminate enum external_data_format.
15958         Eliminate convert_to_external_format.
15959         Eliminate convert_to_internal_format.
15960         Make sure file-name, keyboard, terminal, and ctext are always
15961         defined as coding systems or aliases.  Make
15962         file-name-coding-system, terminal-coding-system, and
15963         keyboard-coding-system magical variables that are equivalent to
15964         defining the corresponding coding system aliases.
15965
15966         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15967         * file-coding.c (Fcoding_system_alias_p): New function.
15968         * file-coding.c (Fcoding_system_aliasee): New function.
15969         * file-coding.c (append_suffix_to_symbol): New function.
15970         * file-coding.c (dangling_coding_system_alias_p): New function.
15971         * file-coding.c (Ffind_coding_system):
15972         * file-coding.c (Fcopy_coding_system):
15973         * file-coding.c (encode_coding_no_conversion):
15974         * file-coding.c (syms_of_file_coding):
15975         * file-coding.c (vars_of_file_coding):
15976         Rewrite coding system alias code.
15977         Allow nested aliases, like symbolic links.
15978         Allow redefinition of coding system aliases.
15979         Prevent existence of dangling coding system aliases.
15980
15981         * dired.c (Fuser_name_completion_1):
15982         * dired.c (Fuser_name_all_completions):
15983         A crash would happen if user did QUIT in the middle of building
15984         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15985
15986         * lisp.h:
15987         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15988
15989         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15990         an unsigned char *.  Update all callers.
15991
15992 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15993
15994         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15995
15996 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15997
15998         * elhash.c (hentry_description): Use more portable definition.
15999         (resize_hash_table): Initialize new hentries using
16000         xnew_array_and_zero, thereby simplifying the code.
16001
16002         * mule-charset.c (make_charset): Make sure entire object is
16003         initialized, to avoid Purify warnings.
16004
16005         * alloc.c (resize_string): Fix unlikely crash with big strings.
16006
16007 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16008
16009         * realpath.c (xrealpath):
16010         Don't call getwd().
16011
16012 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16013
16014         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16015
16016 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16017
16018         * unexelfsgi.c (unexec): Change the way we decide which segment
16019         should be extended.
16020
16021         Assumption that .bss section should be outside the PT_LOADable
16022         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16023         it's present) is inside the 'data' segment. This would fail the
16024         test which was used to find a segment to grow and cover new
16025         heap. Instead of this assumption, I created another one - on IRIX
16026         the segment to grow should start below .bss and it's address
16027         should extent above the end of .bss. Once this segment is
16028         identified, it's grown to accommodate the new heap and new
16029         zero-length .bss section is added at the end of .data2.
16030
16031 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16032
16033         * eval.c (Feval): Wrong number of arguments should use original
16034         function, not the indirect_function version of it.
16035
16036 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16037
16038         * glyphs-x.c (x_button_instantiate): Don't add image if
16039         it is not a pixmap.
16040         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16041         is relative.
16042
16043 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16044
16045         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16046         declaration.
16047         (DEFVAR_INT_MAGIC): Ditto.
16048         (DEFVAR_BOOL_MAGIC): Ditto.
16049         * glyphs.h: Reindent backslash.
16050
16051 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16052
16053         * glyphs-widget.c (layout_query_geometry):
16054         (layout_layout): Use correct types for gheight, gwidth.
16055
16056 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16057
16058         * EmacsManager.c (QueryGeometry): Purified.
16059
16060 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16061
16062         * alloc.c (make_float): Make sure entire object is initialized, to
16063         avoid Purify warnings.
16064         (pdump_register_sub): Remove useless assignment.
16065         (pdump): Use xmalloc, not malloc.
16066         (pdump_load): Use xmalloc, not malloc.
16067
16068 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16069
16070         * callproc.c:
16071         * dired-msw.c:
16072         * fileio.c:
16073         * process-nt.c:
16074         * redisplay-msw.c:
16075         * sysdep.c: Removed redundant #include <windows.h>
16076
16077 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16078
16079         * frame.c (delete_frame_internal): Do not delete device when its
16080         implementation so declares.
16081         (delete_frame_internal): Set device selected frame to nil when
16082         last frame goes away.
16083
16084         * device-msw.c (msprinter_device_system_metrics): Implemented.
16085         (mswindows_device_system_metrics): Added 'device-dpi property.
16086
16087         * device.c: (Fdevice_printer_p): Added.
16088         Added 'offset-workspace device metric.
16089
16090         * console.h (device_metrics): Declared DM_offset_workspace.
16091
16092 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16093
16094         * fileio.c (Ffile_truename): Remove pointless and confusing
16095         initialization of elen.
16096
16097         * glyphs-widget.c: Compiler warning fixes.
16098
16099 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16100
16101         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16102         instead of a Lisp_Object as argument to make it consistent with
16103         the other LIVE_P macros.
16104         (CHECK_LIVE_PROCESS): New macro.
16105
16106         * process.c: Declare Qprocess_live_p.
16107         (Fprocess_live_p): New function.
16108         (create_process): Use PROCESS_LIVE_P.
16109         (read_process_output): Ditto.
16110         (set_process_filter): Ditto.
16111         (Fdelete_process): Ditto.
16112         (kill_buffer_processes): Ditto
16113         (process_send_signal): Use CHECK_LIVE_PROCESS.
16114         (Fprocess_input_coding_system): Check whether process is still
16115         alive (fix PR#1061).
16116         (Fprocess_output_coding_system): Ditto.
16117         (Fprocess_coding_system): Ditto.
16118         (Fset_process_input_coding_system): Ditto.
16119         (Fset_process_output_coding_system): Ditto.
16120
16121 2000-01-23  Andy Piper  <andy@xemacs.org>
16122
16123         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16124         layout and widget.
16125
16126         * glyphs.c (mark_image_instance): take into account changed
16127         image_instance format.
16128         (image_instance_equal): ditto.
16129         (image_instance_hash): ditto.
16130
16131         * glyphs-widget.c (widget_instantiate): Incorporate layout
16132         instantiation here. Delay layout of the layout until later.
16133         (layout_instantiate): deleted.
16134         (layout_query_geometry): new function. get the geometry of a
16135         layout.
16136         (layout_layout): layout a layout dynamically.
16137         (image_instantiator_widget): New function - splitting up
16138         image_instantiator_format_create_glyphs_widget for netwinder
16139         compilation.
16140         (image_instantiator_buttons):
16141         (image_instantiator_edit_fields):
16142         (image_instantiator_combo_box):
16143         (image_instantiator_scrollbar):
16144         (image_instantiator_progress_guage):
16145         (image_instantiator_tree_view):
16146         (image_instantiator_tab_control):
16147         (image_instantiator_labels):
16148         (image_instantiator_layout): ditto.
16149         (image_instantiator_format_create_glyphs_widget): Call preceding
16150         functions.
16151
16152 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16153
16154         * process.c (Fset_process_coding_system):
16155         * device-x.c (Fx_keysym_hash_table):
16156         Docstring fixes.
16157
16158         * lstream.c (Lstream_write): Return documented value, not 0.
16159
16160         * fileio.c (directory_file_name):
16161         (Fsubstitute_in_file_name):
16162         (Fsubstitute_insert_file_contents_internal):
16163         (Fwrite_region_internal):
16164         * emacs.c:
16165         * sysdep.c:
16166         * getloadavg.c:
16167         * systty.h:
16168         Remove vestigial APOLLO-conditional code.
16169
16170 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16171
16172         * getpagesize.h: Add guard macros.
16173         * libsst.h: Add guard macros.
16174         * libst.h: Add guard macros.
16175         * line-number.h: Add guard macros.
16176         * ndir.h: Add guard macros.
16177         * sysfloat.h: Add guard macros.
16178         * sysfile.h: Add guard macros.
16179         * sysproc.h: Add guard macros.
16180         * syswait.h: Add guard macros.
16181         * xintrinsic.h: Add guard macros.
16182         * xintrinsicp.h: Add guard macros.
16183         * xmmanager.h: Add guard macros.
16184         * xmmanagerp.h: Add guard macros.
16185         * xmprimitive.h: Add guard macros.
16186         * xmu.h: Add guard macros.
16187         * gpmevent.h: Add copyright statement. Add guard macros.
16188         * miscplay.h: Add guard macros.
16189         * *.h: Use consistent C-standards-approved guard macro names.
16190
16191         * opaque.c (make_opaque): Switch parameter order.
16192         * opaque.h (make_opaque): Switch parameter order.
16193         Update all callers.
16194         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16195
16196         * config.h.in (type_checking_assert): Added.
16197         (bufpos_checking_assert): Added.
16198
16199 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16200
16201         * alloc.c: Harmless pdump changes.
16202         - Use countof().
16203         - spell alignment correctly.
16204         * sysdep.c: Use countof()
16205
16206 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16207
16208         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16209         initially_selected_for_input() console method, default to 0.
16210         (semi_canonicalize_console_connection): Try to delegate to
16211         canonicalize_console_connection if no such console method.
16212         (canonicalize_console_connection): Vice versa.
16213         (print_console): Do not print nil connection.
16214
16215         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16216         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16217         (XDEVIMPF_FRAMELESS_OK): Added.
16218         (CONSOLE_INHERITS_METHOD): Added.
16219
16220         * console-msw.c (mswindows_canonicalize_console_connection):
16221         Added.
16222         (mswindows_canonicalize_device_connection): Added.
16223
16224         * console-msw.h (struct msprinter_device): Added this struct and
16225         accessor macros.
16226         (mswindows_device): Made fontlist a lisp object.
16227
16228         * device.c (semi_canonicalize_device_connection):  Try to delegate
16229         to canonicalize_device_connection if no such console method.
16230         (canonicalize_device_connection): Vice versa.
16231         (print_device): Do not print nil connection.
16232
16233         * device-msw.c (mswindows_init_device): Call InitCommonControls
16234         when have widgets.
16235         (mswindows_delete_device): Removed fontlist deallocation.
16236         (mswindows_mark_device): Added.
16237
16238         * events.c (event_equal): Added abort() at unreached code.
16239         (event_hash): Ditto.
16240
16241         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16242         fallback tags of Windows devices.
16243
16244         * general.c (syms_of_general): Initialized Qmsprinter.
16245
16246         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16247         of fallback tags of Windows devices.
16248
16249         * lisp.h: Declared Qmsprinter.
16250
16251         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16252         of strings.
16253         (mswindows_list_fonts): Ditto.
16254         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16255         that it can be used by both mswindows and msprinter devices.
16256         (initialize_font_instance): Added.
16257         (mswindows_initialize_font_instance): Use it.
16258         (msprinter_initialize_font_instance): Added.
16259
16260         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16261         and implementation flags check.
16262         (redisplay_without_hooks): Changed the call to the above.
16263         (Fredraw_device): Ditto.
16264         (Fredisplay_device): Ditto.
16265
16266         * redisplay-msw.c (get_frame_dc): Implemented.
16267         (get_frame_compdc): Implemented.
16268         (many functions): Use the two functions above to get device
16269         contexts, ether for a window or a printer.
16270
16271 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16272
16273         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16274         initialization here.
16275         (init_symbols_once_early): Call it.
16276         * emacs.c (main_1): Call it.
16277         * symsinit.h: Declare it.
16278
16279 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16280
16281         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16282         Lisp_Object.
16283         (pdump_backtrace): Ditto.
16284         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16285         (pdump_get_entry): Abort if trying to register a null pointer.
16286         (pdump_dump_data): Cleanup types when relocating.
16287         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16288         (pdump_dump_rtables): Remove bad casts.
16289         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16290         Lisp_Object instead of a EMACS_INT for the hashtable
16291         reorganization.
16292
16293 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16294
16295         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16296
16297         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16298
16299         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16300
16301         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16302
16303 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16304
16305         * faces.h (FACE_STRIKETHRU_P): Added.
16306
16307         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16308         of font variants.
16309
16310         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16311         (mswindows_set_dc_font): New function, aware of font variants,
16312         separated from mswindows_update_dc.
16313
16314         * objects-msw.h (struct mswindows_font_instance_data): Added
16315         definition.
16316
16317         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16318         cached fonts and the data structure.
16319         (mswindows_initialize_font_instance): Added creation of font data
16320         structure.
16321         (mswindows_print_font_instance): Print at least something.
16322         (mswindows_create_font_variant): Implemented.
16323         (mswindows_get_hfont): Implemented.
16324
16325 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16326
16327         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16328         prototyping problem with msvc.
16329
16330         * emacs.c (main_1): added syms_of_gui_mswindows() call
16331
16332         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16333         syms_of_gui_mswindows() function
16334
16335         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16336
16337 2000-01-18  Martin Buchholz <martin@xemacs.org>
16338
16339         * XEmacs 21.2.27 is released.
16340
16341 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16342
16343         * glyphs-eimage.c (struct tiff_error_struct):
16344         (tiff_error_func):
16345         (tiff_warning_func):
16346         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16347
16348         * unexmips.c:
16349         * unexhp9k3.c:
16350         * unexfreebsd.c:
16351         * unexec.c: Remove vestigial Lucid C code.
16352         * unexalpha.c:
16353         * unexaix.c:
16354         * termcap.c:
16355         * libsst.c: Ansify.
16356         Remove declarations of errno and strerror().
16357
16358         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16359
16360         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16361
16362 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16363
16364         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16365         Optimize.
16366
16367 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16368
16369         * md5.c:
16370         * file-coding.c:
16371         * file-coding.h:
16372         Change enum eol_type to eol_type_t.
16373
16374 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16375
16376         * gui.c (get_gui_callback): Check cons before accessing car.
16377
16378 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16379
16380         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16381         (XSETSPECIFIER_TYPE): Ditto.
16382
16383 2000-01-17  Didier Verna  <didier@xemacs.org>
16384
16385         * redisplay.c (generate_fstring_runes): compute string size in
16386         characters, not bytes.
16387
16388 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16389
16390         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16391
16392 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16393
16394         * print.c (print_error_message): Call print_prepare().
16395
16396 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16397
16398         * .dbxrc: Renamed from dbxrc.
16399
16400         * events.c (event_to_character):
16401         Use `assert (foo)' instead of `if (!foo) abort()'
16402
16403         * .gdbinit (xtype): Add documentation.
16404         * .gdbinit (check-temacs): New function.
16405         * .gdbinit (check-xemacs): New function.
16406         * dbxrc (check-xemacs): New function.
16407         * dbxrc (check-xemacs): New function.
16408
16409 2000-01-14  Andy Piper  <andy@xemacs.org>
16410
16411         * glyphs-widget.c (widget_query_geometry): Make sure that we
16412         calculate default dimensions correctly.
16413
16414 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16415
16416         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16417
16418         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16419         pdump_wire'd variable.
16420
16421         * emacs.c: (main_1): Conditionalized calls to
16422         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16423
16424 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16425
16426         * window.c (Fset_window_configuration):
16427         * sysdep.c (_start):
16428         * input-method-motif.c (res):
16429         * event-Xt.c (Xt_process_to_emacs_event):
16430         Simple compiler warning fixes.
16431
16432         * bytecode.c (funcall_compiled_function): Use the original
16433         function symbol on the backtrace list in preference to the
16434         compiled_function object in error messages.
16435
16436 2000-01-13  Andy Piper  <andy@xemacs.org>
16437
16438         * glyphs-x.c (update_widget_face): Make sure we update the widget
16439         background as well as foreground.
16440
16441 2000-01-13  Andy Piper  <andy@xemacs.org>
16442
16443         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16444         fields to subwindow.
16445         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16446         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16447         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16448         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16449
16450         * glyphs-widget.c (check_valid_tab_orientation): new function.
16451         (initialize_widget_image_instance): zero orientation and
16452         justification.
16453         (widget_instantiate): pick up orientation.
16454         (tab_control_query_geometry): return appropriate values for
16455         vertical tabs.
16456
16457         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16458         appropriate creation flags for left, right and bottom tabs.
16459
16460         * s/cygwin32.h: add tab definitions.
16461
16462 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16463
16464         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16465         frame upon hiding a subwindow.
16466         (mswindows_button_instantiate): Changed the push button style to
16467         BS_PUSHBUTTON.
16468         (mswindows_button_instantiate): Removed button BS_NOTIFY
16469         style.
16470         (mswindows_button_instantiate): Removed redundant check for
16471         a disabled gui item.
16472         (mswindows_button_instantiate): Made use of WS_TABSTOP
16473         consistent: "operable" controls (edit, button, tree, scroll) have
16474         this style, "display-only" ones (static, progress gauge) do
16475         not. This style is currently ignored by XEmacs though. Also,
16476         removed the WS_EX_CONTROLPARENT style - it is not for children,
16477         it is for their parents!
16478         (mswindows_edit_field_instantiate): Ditto.
16479         (mswindows_progress_gauge_instantiate): Ditto.
16480         (mswindows_tree_view_instantiate): Ditto.
16481         (mswindows_tab_control_instantiate): Ditto.
16482         (mswindows_scrollbar_instantiate): Ditto.
16483         (mswindows_combo_box_instantiate): Ditto.
16484         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16485         style to the "clip" window.
16486         (mswindows_button_instantiate): Removed compilation warning by
16487         equally typing terms of the ?: operator.
16488
16489 2000-01-12  Didier Verna  <didier@xemacs.org>
16490
16491         * redisplay.c (generate_fstring_runes): new parameter holding the
16492         last modeline-format extent.
16493         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16494         extent, fill the glyph block with it.
16495         (generate_fstring_runes): handle these parameters.
16496         (generate_formatted_string_db): ditto.
16497
16498         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16499         glyphs'extents in the modeline.
16500
16501 1999-01-11  Mike Woolley  <mike@bulsara.com>
16502
16503         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16504         256Mb, as a workaround for the non-starting problem many people
16505         have experienced.
16506
16507 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16508
16509         * console-tty.c (Fset_console_tty_output_coding_system):
16510         Force redrawing tty frame.
16511
16512 2000-01-10  Didier Verna  <didier@xemacs.org>
16513
16514         * redisplay.c (generate_fstring_runes): fix size computation bug.
16515
16516 2000-01-09  William M. Perry <wmperry@aventail.com>
16517
16518         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16519
16520 2000-01-09  Andy Piper  <andy@xemacs.org>
16521
16522         * glyphs-msw.c: index -> i to avoid shadows.
16523         (xbm_create_bitmap_from_data): make static.
16524         (check_valid_string_or_int): deleted.
16525         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16526
16527         * glyphs-x.c (x_update_subwindow): remove unused args.
16528
16529         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16530         back pointer - this is done in allocate_image_instance.
16531         (query_string_font): return Qnil to make the compiler happy.
16532         (unmap_subwindow): set to ~0 to make the compiler happy.
16533         (glyph_query_geometry): comment out until used.
16534         (glyph_layout): ditto.
16535
16536 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16537
16538         * insdel.c (signal_after_change): Remove extraneous unbind_to().