update.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
4         syntaxcode> instead of <int>.
5
6 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (put_char_composition): Use DECODE_CHAR to get
9         character corresponding with UCS code point.
10         (Fput_char_attribute): Likewise.
11
12         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
13         character in the UCS decoding-table if the char-id is not equal to
14         the UCS code point.
15
16 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
19         for aliases; write `description'; write
20         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
21         not 0.
22
23 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * chartab.c (Fsave_char_attribute_table): Don't use
26         `save_charset_properties'.
27
28         * mule-charset.c (Fsave_charset_properties): Renamed from
29         `save_charset_properties' and changed to Lisp function again;
30         write property `type' as `CCS'; write properties `final-byte' and
31         `mother' if they exists.
32         (syms_of_mule_charset): Revive builtin function
33         `save-charset-properties' when HAVE_LIBCHISE is defined.
34
35 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
38         instead of Vexec_directory.
39         (char_attribute_system_db_file): Likewise.
40
41 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * chartab.c (Fsave_char_attribute_table): Use
44         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
45         defined.
46
47         * mule-charset.c (save_charset_properties): Renamed from
48         `Fsave_charset_properties'; changed to non-Lisp function.
49         (syms_of_mule_charset): Abolish builtin function
50         `save-charset-properties'.
51
52 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * mule-charset.c (Fsave_charset_properties): New function when
55         HAVE_LIBCHISE is defined.
56         (syms_of_mule_charset): Add new builtin function
57         `save-charset-properties' when HAVE_LIBCHISE is defined.
58
59 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * chartab.c (Fput_char_attribute): Convert char-specs in value of
62         `{<-|->}ancient[^*]*' to characters and put reverse links.
63         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
64         for `{<-|->}ancient[^*]*'.
65
66 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * chartab.c (Fput_char_attribute): Convert char-specs in value of
69         `{<-|->}original[^*]*' to characters and put reverse links.
70         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
71         for `{<-|->}original[^*]*'.
72
73 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
74
75         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
76
77 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * mule-charset.c (Qsystem_char_id): New variable.
80
81         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
82         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
83
84 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * chartab.c (Fput_char_attribute): When processing a reference of
87         a character, put into the end of the reversed reference of each
88         target character.
89
90 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * chartab.c (Q_same): Deleted.
93         (Q_same_of): Deleted.
94         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
95         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
96         for `{<-|->}same'.
97         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
98
99 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * chartab.c (Q_vulgar): Deleted.
102         (Q_vulgar_of): Deleted.
103         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
104         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
105         for `{<-|->}vulgar'.
106         (syms_of_chartab): Don't define `{<-|->}vulgar'.
107
108 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * chartab.c (Fput_char_attribute): Convert char-specs in value of
111         `{<-|->}wrong[^*]*' to characters and put reverse links.
112         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
113         for `{<-|->}wrong[^*]*'.
114
115 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * chartab.c (Q_vulgar): New variable.
118         (Q_vulgar_of): New variable.
119         (Fput_char_attribute): Convert char-specs in value of
120         `{->|<-}vulgar' to characters and put reverse links.
121         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
122         for `{->|<-}vulgar'.
123         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
124
125 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * text-coding.c (decode_add_er_char): Must to quote prefix string
128         as regexp.
129
130 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * mule-charset.c (put_char_ccs_code_point): Store characters of
133         =ucs whose code_points >= 0xF0000.
134
135 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
138         CHISE.
139         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
140         CHISE.
141         (complex_vars_of_mule_charset): Add new coded-charset
142         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
143         builtin characters over 0xEFFFF.
144
145         * chartab.c (syms_of_chartab): Don't define symbol
146         `system-char-id' in every case.
147
148         * char-ucs.h (Qsystem_char_id): New extern variable.
149         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
150
151 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * text-coding.c (char_encode_utf8): Try to use entity-references
154         for U-000F0000 ...  U-0010FFFF.
155
156 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * text-coding.c (ER_BUF_SIZE): New macro.
159         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
160         `er_buf'.
161         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
162         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
163
164 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * chartab.c (find_char_feature_in_family): New function.
167         (Fchar_feature): Use `find_char_feature_in_family' with
168         `->identical', `<-subsumptive' and `<-denotational'.
169
170 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * text-coding.c (char_encode_as_entity_reference): Allow prefix
173         within 8 characters; fix infinite loop.
174
175 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * chartab.c (Q_same): New variable.
178         (Q_same_of): New variable.
179         (Fput_char_attribute): Convert char-specs in value of
180         `{->|<-}same' to characters and put reverse links.
181         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
182         for `{->|<-}same'.
183         (syms_of_chartab): Add new symbols `{->|<-}same'.
184
185 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
186
187         * chartab.c (Q_component): New variable.
188         (Q_component_of): Likewise.
189         (Fput_char_attribute): Convert char-specs in value of
190         `{->|<-}ideographic-component-forms' to characters and put reverse
191         links.
192         (syms_of_chartab): Add new symbols
193         `{->|<-}ideographic-component-forms'.
194
195 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
196
197         * chartab.c (Q_identical): New variable.
198         (Q_identical_from): New variable.
199         (Fchar_feature): Regard `->identical' as a feature to find
200         ancestors.
201         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
202         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
203         for `{->|<-}identical'.
204         (syms_of_chartab): Add new symbols `{->|<-}identical'.
205
206 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * char-ucs.h (encode_char_2): New inline function.
209         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
210
211 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (Fput_char_attribute): Convert char-specs to
214         characters in value of `ideographic-structure'.
215         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
216         for `{<-|->}simplified(@...)'.
217         (Fdefine_char): bTry to use predefined character's id.
218
219 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * fns.c (simplify_char_spec): Try to convert builtin chars to
222         defined chars.
223
224 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.c (Fput_char_attribute): Convert char-specs in value of
227         `<-simplified[^*]*' to characters and put reverse links.
228
229 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * chartab.c (Q_subsumptive): Renamed from Q_unified.
232         (Q_subsumptive_from): Renamed from Q_unified_from.
233         (Fchar_feature): Use `Q_subsumptive_from' instead of
234         `Q_unified_from'.
235         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
236         `Q_unified'.
237         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
238         `<-unified' to `<-subsumptive'.
239
240 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
243         inheritance itself; fix typo; stop recursive search if cyclic
244         inheritance is found.
245
246 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (Q_denotational): New variable.
249         (Q_denotational_from): New variable.
250         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
251         (put_char_attribute): New function.
252         (Fput_char_attribute): Use `put_char_attribute'; regard
253         `->denotational' and `<-denotational' as same as `->unified' and
254         `<-unified'.
255         (syms_of_chartab): Add new symbols `->denotational' and
256         `<-denotational'.
257
258 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
259
260         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
261         `Fget_char_attribute'.
262         (Fchar_variants): Likewise.
263         (get_char_table): Likewise.
264         (Fchar_feature): New function.
265         (put_char_composition): Use `Fchar_feature' instead of
266         `Fget_char_attribute'.
267         (Fput_char_attribute): Likewise; don't put the target character
268         into its `->unified' value.
269         (syms_of_chartab): Add new builtin function `char-feature'.
270
271 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
274         `Fget_char_attribute'.
275         (char_encode_utf8): Likewise.
276
277         * chartab.h: Add an EXFUN for `Fchar_feature'.
278
279 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * chartab.c (Vnext_defined_char_id): New variable.
282         (Fput_char_attribute): Accept characters in `->unified'.
283         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
284         new characters which are not related with builtin char-id ranges.
285         (vars_of_chartab): Add new variable `next-defined-char-id'.
286
287 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Q_unified): New variable.
290         (Q_unified_from): New variable.
291         (Fput_char_attribute): Add code for `->unified'.
292         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
293         XEmacs CHISE.
294
295 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * mule-charset.c (decode_ccs_conversion): New function.
298         (decode_defined_char): Use `decode_ccs_conversion'.
299         (decode_builtin_char): Likewise.
300
301 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
302
303         * char-ucs.h: Change some charset-ids of private coded-charsets.
304
305 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
308         (char_encode_as_entity_reference): Likewise.
309         (decode_coding_big5): Modify for `decode_defined_char' and
310         `DECODE_CHAR'.
311         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
312         avoid compiler warning.
313         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
314
315         * mule-charset.c (decode_defined_char): Add new argument
316         `without_inheritance'.
317         (Fdecode_char): Add new optional argument `without_inheritance'.
318         (Fdecode_builtin_char): Modify for `Fdecode_char'.
319
320         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
321         (simplify_char_spec): Likewise.
322
323         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
324         setting.
325
326         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
327         (map_char_table): Likewise.
328         (Fdefine_char): Use `Fdecode_char' without inheritance.
329         (Ffind_char): Modify for `Fdecode_char'.
330
331         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
332
333         * char-ucs.h (decode_defined_char): Add new argument
334         `without_inheritance'.
335         (DECODE_CHAR): Likewise.
336         (MAKE_CHAR): Modify for `DECODE_CHAR'.
337
338 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * chartab.c (Vchise_system_db_directory): New variable.
341         (vars_of_chartab): Add new variable `chise-system-db-directory'.
342
343 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * chartab.c: EXFUN `Fmount_char_attribute_table'.
346         (print_chartab_range): Don't define when `UTF2000' is defined.
347         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
348         `CHISE_DS_open'.
349
350 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
353         and optional argument `rehash' is specified, call
354         `open_chise_data_source_maybe' before
355         `chise_ds_foreach_char_feature_name' is called.
356
357 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * chartab.c (char_attribute_list_reset_map_func): New function
360         when HAVE_LIBCHISE is defined.
361         (Fchar_attribute_list): Add new optional argument `rehash' when
362         HAVE_LIBCHISE is defined.
363         (open_chise_data_source_maybe): Use "chise-db" instead of
364         "char-db".
365         (char_attribute_system_db_file): Likewise.
366         (Fload_char_attribute_table): Use
367         `chise_feature_foreach_char_with_value' instead of
368         `chise_char_feature_value_iterate'.
369
370 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
371
372         * chartab.c (Vchise_db_directory): New variable.
373         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
374
375 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
376
377         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
378         instead of HAVE_CHISE to specify using with libchise.
379
380         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
381
382         * chartab.h: Don't use HAVE_CHISE_CLIENT.
383
384         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
385         defined or HAVE_LIBCHISE_LIBCHISE is defined.
386         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
387         is defined.
388         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
389         HAVE_CHISE to specify using with libchise.
390         (syms_of_chartab): Don't define symbol `system-char-id' when
391         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
392
393 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
396         specify CHISE DB support.
397         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
398         of `char_attribute_system_db_file' to check feature DB file.
399
400         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
401         HAVE_CHISE_CLIENT to specify CHISE DB support.
402
403         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
404         specify CHISE DB support.
405         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
406         not defined.
407         (Freset_char_attribute_table): Use `chise_feature_setup_db'
408         instead of `char_attribute_system_db_file' to check feature DB
409         file.
410
411 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
414         `HAVE_CHISE_CLIENT'.
415
416 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
419         (Fsave_charset_mapping_table): Don't use
420         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
421
422         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
423         (HAVE_LIBCHISE): New macro.
424
425         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
426
427         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
428         (Fsave_char_attribute_table): Don't use
429         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
430
431 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
434         defined.
435         (save_uint16_byte_table): Likewise.
436         (save_byte_table): Likewise.
437         (char_table_get_db): Use `chise_ds_load_char_feature_value'
438         instead of `chise_char_load_feature_value'.
439         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
440
441 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
442
443         * chartab.h (struct Lisp_Char_Table): Delete member
444         `feature_table' if CHISE is defined.
445
446         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
447         (Fcopy_char_table): Likewise.
448         (char_table_open_db_maybe): Likewise.
449         (char_table_close_db_maybe): Likewise.
450         (char_table_get_db): Likewise.
451         (Fmount_char_attribute_table): Likewise.
452         (Fload_char_attribute_table): Likewise.
453
454 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
455
456         * mule-charset.c (load_char_decoding_entry_maybe): Use
457         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
458         `chise_ccs_decode'.
459
460 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
461
462         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
463         instead of `chise_open_data_source'.
464         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
465         `chise_ds_close'.
466
467 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
470         instead of `chise_ds_open_feature_table'.
471         (char_table_close_db_maybe): Don't use `chise_ft_close'.
472
473 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * mule-charset.c (Fsave_charset_mapping_table): Use
476         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
477         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
478         `chise_ccs_sync' instead of `chise_ccst_close'.
479         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
480
481         * chartab.c (open_chise_data_source_maybe): Modify for
482         `chise_open_data_source'.
483         (char_table_open_db_maybe): Modify for
484         `chise_ds_open_feature_table'.
485
486 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
487
488         * mule-charset.c (load_char_decoding_entry_maybe): Use
489         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
490         `chise_ccst_close'.
491
492 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
493
494         * mule-charset.c (Fsave_charset_mapping_table): Use
495         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
496         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
497         `chise_dt_put_char' and `chise_dt_close'.
498         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
499         `chise_ccs_decode' and `chise_ccst_close' instead of
500         `chise_ds_open_decoding_table', `chise_dt_get_char' and
501         `chise_dt_close'.
502
503         * chartab.c (char_table_get_db): Use
504         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
505         (load_char_attribute_table_map_func): Modify for
506         `chise_char_feature_value_iterate'.
507         (Fload_char_attribute_table): Use
508         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
509
510 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
513
514 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
515
516         * chartab.c (put_char_table): Modify for inherited coded-charsets
517         in XEmacs CHISE.
518
519 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * chartab.c (Fput_char_table_map_function): Fixed.
522         (word_boundary_p): Don't check charset in XEmacs CHISE.
523
524 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
525
526         * mule-charset.c (Fsave_charset_mapping_table): Use
527         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
528         instead of `chise_open_decoding_table'; refer
529         `default_chise_data_source'; use `chise_dt_close' instead of
530         `chise_close_decoding_table'.
531         (load_char_decoding_entry_maybe): Likewise.
532
533         * chartab.c (default_chise_data_source): New variable when `CHISE'
534         is defined.
535         (Fcopy_char_table): `ct->ds' is deleted.
536         (open_chise_data_source_maybe): New function.
537         (Fclose_char_data_source): New function.
538         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
539         use `chise_ds_open_feature_table' instead of
540         `chise_open_feature_table'.
541         (char_table_close_db_maybe): Use `chise_ft_close' instead of
542         `chise_close_feature_table'; `cit->ds' is deleted.
543         (syms_of_chartab): Add new builtin function
544         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
545
546         * chartab.h (default_chise_data_source): New extern variable.
547         (open_chise_data_source_maybe): New prototype.
548         (struct Lisp_Char_Table): Delete `ds'.
549
550 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
551
552         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
553         `CHISE' is defined.
554
555 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
556
557         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
558         not defined; add code for non-libchise setting.
559         (char_table_close_db_maybe): Likewise.
560         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
561         defined.
562         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
563         even if `CHISE' is not defined.
564         (Freset_char_attribute_table): Likewise.
565         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
566         `char_table_close_db_maybe' even if `CHISE' is not defined; use
567         `char_table_get_db'.
568         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
569         `char_table_close_db_maybe' even if `CHISE' is not defined.
570
571 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
572
573         * chartab.c (char_table_open_db_maybe): New function.
574         (char_table_close_db_maybe): New function.
575         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
576         (Freset_char_attribute_table): Likewise.
577         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
578         `char_table_close_db_maybe'.
579         (Fload_char_attribute_table): Likewise.
580
581 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
582
583         * chartab.c: Don't include <chise.h> because it is included in
584         chartab.h.
585         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
586         defined.
587         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
588         `CHISE' is defined.
589         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
590         `CHISE' is defined.
591         (Fclose_char_attribute_table): Close `ct->feature_table' and
592         `ct->ds' when `CHISE' is defined.
593         (Freset_char_attribute_table): Likewise.
594         (load_char_attribute_maybe): Use `cit->ds' and
595         `cit->feature_table' when `CHISE' is defined.
596         (Fload_char_attribute_table): Likewise.
597
598         * chartab.h: Include <chise.h> when `CHISE' is defined.
599         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
600         when `CHISE' is defined.
601
602 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
603
604         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
605         is defined.
606         (char_table_description): Likewise.
607         (Fmake_char_table): Likewise.
608         (Fcopy_char_table): Likewise.
609         (Fmount_char_attribute_table): Likewise.
610         (Fclose_char_attribute_table): Likewise.
611         (Freset_char_attribute_table): Likewise.
612         (load_char_attribute_maybe): Likewise.
613         (Fload_char_attribute_table): Likewise.
614
615         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
616         defined.
617
618 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
619
620         * chartab.c (load_char_attribute_table_map_func): New function
621         when CHISE is defined.
622         (Qload_char_attribute_table_map_function): Don't define when CHISE
623         is defined.
624         (Fload_char_attribute_table_map_function): Likewise.
625         (Fload_char_attribute_table): Use libchise when `CHISE' is
626         defined.
627         (syms_of_chartab): Don't define
628         `load-char-attribute-table-map-function' when CHISE is defined.
629
630 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
631
632         * chartab.c: Include <chise.h> when `CHISE' is defined.
633         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
634
635 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * mule-charset.c (charset_code_point): Fix problem when searching
638         in mother CCS fails with `defined_only' mode.
639
640 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
641
642         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
643         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
644         (put_char_composition): Likewise.
645         (Fput_char_attribute): Likewise.
646         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
647
648 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
649
650         * chartab.c (Q_ucs): Deleted.
651         (Fput_char_attribute): Don't refer `->ucs'.
652         (Fdefine_char): Likewise.
653         (Ffind_char): Likewise.
654         (syms_of_chartab): Delete `->ucs'.
655
656 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * mule-charset.c (Qmap_cns11643_2): Renamed from
659         `Qchinese_cns11643_2'.
660         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
661         `chinese-cns11643-2'.
662         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
663         `=cns11643-2'.
664
665 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
666
667         * mule-charset.c (Qmap_cns11643_1): Renamed from
668         `Qchinese_cns11643_1'.
669         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
670         `chinese-cns11643-1'.
671         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
672         `=cns11643-1'.
673
674 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
675
676         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
677         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
678         `chinese-gb12345'.
679         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
680         `=gb12345'.
681
682 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
683
684         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
685         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
686         `chinese-gb2312'.
687         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
688         `=gb2312'.
689
690 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
691
692         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
693         (syms_of_mule_charset): Add new symbol `=big5' instead of
694         `chinese-big5'.
695         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
696
697 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
700         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
701         `korean-ksc5601'.
702         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
703         `=ks-x1001'.
704
705 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * mule-charset.c (Qmap_jis_x0212): Renamed from
708         `Qjapanese_jisx0212'.
709         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
710         `japanese-jisx0212'.
711         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
712         `=jis-x0212'.
713
714 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
715
716         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
717         `Qjapanese_jisx0208'.
718         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
719         of `japanese-jisx0208'.
720         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
721         `=jis-x0208-1983'.
722
723 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
726         `Qjapanese_jisx0208_1978'.
727         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
728         of `japanese-jisx0208-1978'.
729         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
730         `=jis-x0208-1978'.
731
732 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
735         only for XEmacs CHISE.
736
737 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * char-ucs.h: Compact non-ISO-IR charset-ids.
740         (LEADING_BYTE_UCS): Changed to -177.
741         (LEADING_BYTE_CONTROL_1): Changed to -77.
742         (LEADING_BYTE_UCS_BMP): Changed to -176.
743         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
744
745 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * mule-charset.c (Qiso_ir): New variable.
748         (Fmake_charset): Recognise new property `iso-ir'.
749         (syms_of_mule_charset): Add new symbol `iso-ir'.
750
751 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
752
753         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
754         n to -n; charset-id of non ISO-IR sets are changed to positive
755         numbers.
756
757 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
760         for &MCS-XXXXXXXX; values.
761
762 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
763
764         * mule.c (Vxemacs_chise_version): Renamed from
765         `Vutf_2000_version'.
766         (vars_of_mule): Add new variable `xemacs-chise-version'; define
767         `utf-2000-version' as an alias for `xemacs-chise-version'.
768
769 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
770
771         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
772         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
773         defined.
774
775         * config.h.in (CHISE): New macro.
776
777 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
778
779         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
780         of `ucs'.
781         (Qmap_ucs): New variable.
782         (syms_of_mule_charset): Add new symbol `=ucs'.
783         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
784
785         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
786         (simplify_char_spec): Likewise.
787
788         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
789
790         * char-ucs.h (Qmap_ucs): New extern variable.
791
792 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
793
794         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
795         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
796         don't define it when UTF2000 is not defined.
797         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
798         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
799         when UTF2000 is not defined.
800         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
801         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
802
803 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
806
807         * mule-charset.c (Vcharset_ucs_gb): Deleted.
808         (Qucs_gb): Deleted.
809         (syms_of_mule_charset): Delete `ucs-gb'.
810         (complex_vars_of_mule_charset): Likewise.
811
812 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
813
814         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
815
816         * mule-charset.c (Vcharset_ucs_cns): Deleted.
817         (Qucs_cns): Deleted.
818         (syms_of_mule_charset): Delete `ucs-cns'.
819         (complex_vars_of_mule_charset): Likewise.
820
821 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
824
825         * mule-charset.c (Vcharset_ucs_jis): Deleted.
826         (Qucs_jis): Deleted.
827         (syms_of_mule_charset): Delete `ucs-jis'.
828         (complex_vars_of_mule_charset): Likewise.
829
830 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
831
832         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
833
834         * mule-charset.c (Vcharset_ucs_ks): Deleted.
835         (Qucs_ks): Deleted.
836         (syms_of_mule_charset): Delete `ucs-ks'.
837         (complex_vars_of_mule_charset): Likewise.
838
839 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
840
841         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
842         (Qideograph_daikanwa_2): Deleted.
843         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
844         (complex_vars_of_mule_charset): Likewise.
845
846         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
847         (LEADING_BYTE_DAIKANWA_1): Deleted.
848         (LEADING_BYTE_DAIKANWA_2): Deleted.
849         (MIN_CHAR_DAIKANWA): Deleted.
850         (MAX_CHAR_DAIKANWA): Deleted.
851
852 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
853
854         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
855         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
856         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
857
858         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
859         (Vcharset_ideograph_daikanwa): Deleted.
860         (Qideograph_hanziku_{1..12}): Deleted.
861         (Qideograph_daikanwa): Deleted.
862         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
863         Vcharset_ideograph_daikanwa.
864         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
865         `ideograph-hanziku-{1..12}'.
866         (complex_vars_of_mule_charset): Likewise.
867
868 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
869
870         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
871
872         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
873         (Qideograph_gt_pj_{1..11}): Deleted.
874         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
875         (complex_vars_of_mule_charset): Likewise.
876
877 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * mule-charset.c (Vcharset_ucs_big5): Deleted.
880         (Vcharset_ideograph_gt): Deleted.
881         (Qucs_big5): Deleted.
882         (Qideograph_gt): Deleted.
883         (syms_of_mule_charset): Delete symbol `ucs-big5' and
884         `ideograph-gt'.
885         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
886         and `ideograph-gt'.
887
888         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
889         (LEADING_BYTE_GT): Deleted.
890         (MIN_CHAR_GT): Deleted.
891         (MAX_CHAR_GT): Deleted.
892
893 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
894
895         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
896
897 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
898
899         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
900         (save_uint16_byte_table): Likewise.
901         (save_byte_table): Likewise; convert values by it.
902         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
903         for `ideographic-structure'.
904         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
905         as the filter for `ideographic-structure'.
906
907 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
908
909         * chartab.c (put_char_composition): New function.
910         (Fput_char_attribute): Use `put_char_composition'; use
911         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
912
913         * fns.c (simplify_char_spec): New function.
914         (char_ref_simplify_spec): New function.
915         (Fchar_refs_simplify_char_specs): New function.
916         (syms_of_fns): Add new builtin function
917         `char-refs-simplify-char-specs'.
918
919 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
920
921         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
922         (Qideograph_cbeta): Deleted.
923         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
924         (complex_vars_of_mule_charset): Likewise.
925
926         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
927         (MIN_CHAR_CBETA): Comment out.
928         (MAX_CHAR_CBETA): Likewise.
929
930 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
931
932         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
933         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
934         CHISE client feature.
935
936 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
937
938         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
939
940 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
941
942         * mule-charset.c (charset_lookup_description_1): Use
943         `NUM_LEADING_BYTES' in UTF-2000.
944
945 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
946
947         * char-ucs.h (GC_CHARSETP): Deleted.
948
949 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * char-ucs.h (MAX_CHAR_GT): Updated.
952
953 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
954
955         * text-coding.c: Sync with XEmacs 21.4.10.
956
957 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * mule-charset.c (Vcharset_china3_jef): Deleted.
960         (Qchina3_jef): Deleted.
961         (syms_of_mule_charset): Don't define `china3-jef'.
962         (complex_vars_of_mule_charset): Likewise.
963
964         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
965         (MIN_CHAR_CHINA3_JEF): Comment out.
966         (MAX_CHAR_CHINA3_JEF): Comment out.
967
968 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * mule-charset.c (Vcharset_ucs_gb): New variable.
971         (Qucs_gb): New variable.
972         (syms_of_mule_charset): Add new symbol `ucs-gb'.
973         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
974
975         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
976
977 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
978
979         * mule-charset.c (charset_code_point): if a coded-charset has a
980         final-byte, don't inherit the builtin range of the mother CCS.
981
982 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
983
984         * mule-charset.c (charset_code_point): Fix problem about
985         inheritance.
986
987 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
988
989         * mule-charset.c (decode_builtin_char): Reorganized.
990
991 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
992
993         * text-coding.c (char_encode_as_entity_reference): Modify for
994         `charset_code_point'.
995         (char_encode_shift_jis): Likewise.
996         (char_encode_big5): Likewise.
997         (char_encode_utf8): Likewise.
998         (char_encode_iso2022): Likewise.
999
1000         * mule-charset.c (charset_code_point): Add new argument
1001         `defined_only'.
1002         (Fencode_char): Add new optional argument `defined_only'.
1003
1004         * chartab.c (put_char_table): Modify for `charset_code_point'.
1005
1006         * char-ucs.h (charset_code_point): Add new argument
1007         `defined_only'.
1008         (encode_char_1): Modify for `charset_code_point'.
1009
1010 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011
1012         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1013         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1014
1015 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1018         (Qjis_x0208): Likewise.
1019         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1020         XCHARSET_FINAL(charset).
1021         (charset_code_point): Modify condition for final-byte based
1022         builtin-chars.
1023         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1024         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1025         in UTF-2000; specify `=jis-x0208' as the mother of
1026         `japanese-jisx0208-1978', `japanese-jisx0208' and
1027         `japanese-jisx0208-1990' in UTF-2000.
1028
1029 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1030
1031         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1032
1033 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1034
1035         * text-coding.c (decode_coding_utf16): Support UTF-16.
1036         (char_encode_utf16): Fixed.
1037
1038 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * text-coding.c (Qutf16): New variable in MULE.
1041         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1042         (Fcoding_system_type): Add `utf-16' in MULE.
1043         (struct detection_state): Add a structure for utf16 in MULE.
1044         (detect_coding_type): Setup st->utf16.mask in MULE.
1045         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1046         MULE.
1047         (reset_encoding_stream): Use `char_encode_utf16' and
1048         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1049         (detect_coding_utf16): New function [incomplete].
1050         (decode_coding_utf16): New function [support only UCS-2].
1051         (char_encode_utf16): New function.
1052         (char_finish_utf16): New function.
1053         (syms_of_file_coding): Add new symbol `utf-16'; setup
1054         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1055
1056         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1057         UTF-2000.
1058         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1059         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1060
1061 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1062
1063         * chartab.c (put_char_table): When a charset is specified as a
1064         range in UTF-2000, don't support builtin characters.
1065
1066 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1067
1068         * mule-charset.c (decode_defined_char): Don't refer external
1069         database if Qunbound or Qnil are found.
1070         (Fsave_charset_mapping_table): Don't define it if
1071         HAVE_CHISE_CLIENT is not defined.
1072         (Freset_charset_mapping_table): New function.
1073         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1074         found in external database.
1075         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1076         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1077         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1078
1079 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1080
1081         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1082         not.
1083
1084 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1085
1086         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1087         Q_lowercase, Q_uppercase in UTF-2000.
1088
1089         * chartab.c (get_char_table): Add special code for the standard
1090         case table to use character attribute `->downcase' and
1091         `->uppercase' for case operations in UTF-2000.
1092
1093         * casetab.c (Qflippedcase): New variable in UTF-2000.
1094         (Q_lowercase): Likewise.
1095         (Q_uppercase): Likewise.
1096         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1097         and `->uppercase' in UTF-2000.
1098         (complex_vars_of_casetab): Assign attribute name `downcase' to
1099         downcase and CANON table of Vstandard_case_table in UTF-2000;
1100         assign attribute name `flippedcase' to upcase and EQV table of
1101         Vstandard_case_table in UTF-2000.
1102
1103 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1104
1105         * text-coding.c (decode_add_er_char): Support isolated-chars.
1106         (char_encode_as_entity_reference): Likewise.
1107
1108 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * emacs.c (Vutf_2000_lisp_directory): New variable.
1111         (Vconfigure_utf_2000_lisp_directory): Likewise.
1112         (complex_vars_of_emacs): Add new variable
1113         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1114
1115 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1116
1117         * char-ucs.h (DECODE_CHAR): Delete special code for
1118         `chinese-big5-1' and `chinese-big5-2'.
1119
1120         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1121         (Qbig5_2): Likewise.
1122         (decode_defined_char): Support CONVERSION_BIG5_1 and
1123         CONVERSION_BIG5_2.
1124         (decode_builtin_char): Likewise.
1125         (charset_code_point): Likewise.
1126         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1127         'conversion in UTF-2000.
1128         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1129         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1130         `chinese-big5-2' as children of `chinese-big5'.
1131
1132         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1133         (CONVERSION_BIG5_2): New macro.
1134
1135 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1136
1137         * text-coding.c (char_encode_big5): Support entity-reference.
1138
1139 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1140
1141         * text-coding.c (char_encode_as_entity_reference): New function.
1142         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1143
1144 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * text-coding.c (decode_coding_big5): Support entity-reference
1147         decoding feature.
1148
1149 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1150
1151         * text-coding.c (allocate_coding_system): Initialize initial
1152         charsets for CODESYS_UTF8.
1153         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1154         charset-g2 for CODESYS_UTF8.
1155         (decode_coding_utf8): Use charset-g0.
1156         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1157         to force variants to map to UCS.
1158
1159 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160
1161         * text-coding.c (Qutf_8_mcs): New variable.
1162         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1163         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1164         instead of `utf-8' in UTF-2000.
1165
1166 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1167
1168         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1169         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1170         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1171         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1172         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1173         CONVERSION_96x96x96x96 are introduced.
1174         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1175         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1176         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1177
1178         * char-ucs.h (CONVERSION_94): New macro.
1179         (CONVERSION_96): New macro.
1180         (CONVERSION_94x94): New macro.
1181         (CONVERSION_96x96): New macro.
1182         (CONVERSION_94x94x94): New macro.
1183         (CONVERSION_96x96x96): New macro.
1184         (CONVERSION_94x94x94x60): New macro.
1185         (CONVERSION_94x94x94x94): New macro.
1186         (CONVERSION_96x96x96x96): New macro.
1187
1188 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * chartab.c (Vcharacter_variant_table): Deleted.
1191         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1192         of `Vcharacter_variant_table'.
1193         (Fput_char_attribute): Likewise.
1194         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1195         (complex_vars_of_chartab): Likewise.
1196
1197 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1200
1201         * fns.c (Qideographic_structure): New variable.
1202         (Qkeyword_char): New variable.
1203         (ids_format_unit): New function.
1204         (Fideographic_structure_to_ids): New function.
1205         (syms_of_fns): Add new symbols `ideographic-structure' and
1206         `:char'; add new builtin function `ideographic-structure-to-ids'.
1207
1208         * data.c (Fchar_ref_p): New function.
1209         (syms_of_data): Add new builtin function `char-ref-p'.
1210
1211         * chartab.h: Add an EXFUN for `Ffind_char'.
1212
1213 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1214
1215         * text-coding.c (Vcharacter_composition_table): Deleted.
1216         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1217         in every UTF-2000.
1218
1219         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1220         UTF-2000.
1221         (Vcharacter_composition_table): Deleted.
1222         (Fget_composite_char): Use the implementation for external-DB
1223         support in every UTF-2000.
1224         (Fput_char_attribute): Likewise.
1225         (char_attribute_system_db_file): Don't define if external-DB
1226         feature is not available.
1227         (Fsave_char_attribute_table): Likewise.
1228         (Fmount_char_attribute_table): Likewise.
1229         (Fclose_char_attribute_table): Likewise.
1230         (Freset_char_attribute_table): Likewise.
1231         (Fload_char_attribute_table): Likewise.
1232         (syms_of_chartab): Don't define `save-char-attribute-table',
1233         `mount-char-attribute-table', `reset-char-attribute-table',
1234         `close-char-attribute-table' and `load-char-attribute-table' if
1235         external-DB feature is not available.
1236         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1237
1238 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1239
1240         * text-coding.c (Qcomposition): Add extern if external-DB feature
1241         is supported.
1242         (Vcharacter_composition_table): Don't add extern if external-DB
1243         feature is supported.
1244         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1245         character composition rule if external-DB feature is supported.
1246
1247         * chartab.c (Vcharacter_composition_table): Don't define if
1248         external-DB feature is supported.
1249         (Qcomposition): New variable.
1250         (Fget_composite_char): New implementation for external-DB support.
1251         (Fput_char_attribute): Use `composition' property of each
1252         character instead of `Vcharacter_composition_table' to store
1253         character-composition rules if external-DB feature is supported.
1254         (syms_of_chartab): Add new symbol `composition'.
1255         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1256         external-DB feature is supported.
1257
1258 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1259
1260         * chartab.c (Vchar_db_stingy_mode): New variable.
1261         (load_char_attribute_maybe): Close database if
1262         Vchar_db_stingy_mode is not NIL.
1263         (Fload_char_attribute_table_map_function): Use
1264         `get_char_id_table_0' instead of `get_char_id_table'.
1265         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1266
1267         * chartab.h (get_char_id_table_0): New inline function.
1268         (get_char_id_table): Use `get_char_id_table_0'.
1269
1270 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1271
1272         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1273         and `COMPOSE_ADD_CHAR'.
1274         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1275
1276 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1277
1278         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1279         instead of `DECODE_ADD_UCS_CHAR'.
1280         (COMPOSE_ADD_CHAR): Likewise.
1281
1282 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * text-coding.c (decode_flush_er_chars): New inline function.
1285         (decode_add_er_char): New function.
1286         (decode_coding_utf8): Use `decode_flush_er_chars' and
1287         `decode_add_er_char'.
1288
1289 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1290
1291         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1292         done before `decode_output_utf8_partial_char'.
1293
1294         * mule-charset.c (complex_vars_of_mule_charset): Specify
1295         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1296         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1297
1298 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299
1300         * mule-charset.c (decode_defined_char): New function; search
1301         mother.
1302         (decode_builtin_char): Don't search mother if
1303         XCHARSET_MAX_CODE(charset) == 0.
1304         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1305         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1306         (Fdecode_char): Use `decode_defined_char' instead of
1307         `DECODE_DEFINED_CHAR'.
1308         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1309         mother of `Vcharset_ucs_jis'.
1310
1311         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1312         instead of `DECODE_DEFINED_CHAR'.
1313
1314         * char-ucs.h (decode_defined_char): Renamed from
1315         `DECODE_DEFINED_CHAR'; changed to normal function.
1316         (DECODE_CHAR): Use `decode_defined_char' instead of
1317         `DECODE_DEFINED_CHAR'.
1318
1319         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1320
1321 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1324
1325         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1326         variable.
1327         (Quse_entity_reference): New variable.
1328         (Qd): New variable.
1329         (Qx): New variable.
1330         (QX): New variable.
1331         (coding_system_description): Add description for
1332         `ccs_priority_list'.
1333         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1334         (allocate_coding_system): Initialize `ccs_priority_list' in
1335         UTF-2000.
1336         (Fmake_coding_system): Add description about
1337         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1338         (codesys).
1339         (Fcoding_system_property): Accept `disable-composition' and
1340         `use-entity-reference' in UTF-2000.
1341         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1342         in UTF-2000.
1343         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1344         (decode_coding_utf8): Decode entity-reference if
1345         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1346         (char_encode_utf8): Encode non-Unicode characters as
1347         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1348         (str->codesys).
1349         (syms_of_file_coding): Add new symbols `use-entity-reference',
1350         `d', `x', `X'.
1351         (vars_of_file_coding): Add new variable
1352         `coded-charset-entity-reference-alist'.
1353         (complex_vars_of_file_coding): Declare `disable-composition' and
1354         `use-entity-reference' to be coding-system-properties in UTF-2000.
1355
1356         * file-coding.h (struct Lisp_Coding_System): Add new member
1357         `use_entity_reference' and `ccs_priority_list'.
1358         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1359         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1360         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1361
1362 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * chartab.c (save_uint8_byte_table): Don't clear the table.
1365         (save_uint16_byte_table): Likewise.
1366         (save_byte_table): Likewise.
1367         (Fmount_char_attribute_table): New function.
1368         (syms_of_chartab): Add new builtin function
1369         `mount-char-attribute-table'.
1370
1371 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372
1373         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1374         "w+" mode.
1375         (load_char_decoding_entry_maybe): Open database as read-only mode.
1376
1377         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1378         open database as "w+" mode.
1379         (load_char_attribute_maybe): Open database as read-only mode.
1380         (Fload_char_attribute_table): Likewise.
1381
1382 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1385         (char_table_description): Delete member `db_file'.
1386         (Fmake_char_table): Don't refer `ct->db_file'.
1387         (Fcopy_char_table): Likewise.
1388         (Fsave_char_attribute_table): Likewise.
1389         (Fclose_char_attribute_table): Likewise.
1390         (Freset_char_attribute_table): Likewise.
1391         (load_char_attribute_maybe): Likewise.
1392         (Fload_char_attribute_table): Likewise.
1393
1394         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1395
1396 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1399         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1400         `ct->db' is living.
1401         (load_char_attribute_maybe): Likewise.
1402         (Fload_char_attribute_table): Likewise.
1403
1404 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1405
1406         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1407         `ct->db_file' unconditionally.
1408
1409 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1410
1411         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1412         UTF-2000.
1413         (char_table_description): Add description for `db_file' and `db'
1414         in UTF-2000.
1415         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1416         UTF-2000.
1417         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1418         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1419         (Fclose_char_attribute_table): New function.
1420         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1421         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1422         and `cit->db'.
1423         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1424         (syms_of_chartab): Add new builtin function
1425         `Fclose_char_attribute_table'.
1426
1427 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1428
1429         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1430         `db' in UTF-2000.
1431         (load_char_attribute_maybe): Change interface.
1432         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1433
1434 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1435
1436         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1437
1438 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1441         instead of `DECODE_CHAR' for mother; don't use special code for
1442         chinese-big5 to use code space of chinese-big5-1 and
1443         chinese-big5-2.
1444         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1445         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1446
1447         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1448         (MAX_CHAR_BIG5_CDP): Revival.
1449
1450 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1453         the XLFD registry-encoding name of `chinese-big5'.
1454
1455 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1458         (Qchinese_big5_cdp): Deleted.
1459         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1460         (complex_vars_of_mule_charset): Delete coded-charset
1461         `chinese-big5-cdp'.
1462
1463         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1464         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1465         `CHARSET_ID_OFFSET - n' for private CCS.
1466         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1467         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1468         of `MIN_LEADING_BYTE'.
1469         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1470         `(CHARSET_ID_OFFSET - 97)'.
1471         (MIN_CHAR_BIG5_CDP): Deleted.
1472         (MAX_CHAR_BIG5_CDP): Deleted.
1473
1474 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475
1476         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1477
1478 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1479
1480         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1481         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1482         chartab.c].
1483
1484         * chartab.c (Vutf_2000_version): Moved to mule.c.
1485         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1486
1487 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1488
1489         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1490         when HAVE_CHISE_CLIENT is not defined.
1491
1492         * mule.c (vars_of_mule): Provide feature `chise' when
1493         HAVE_CHISE_CLIENT is defined.
1494
1495 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * config.h.in (UTF2000): Add comment.
1498         (HAVE_CHISE_CLIENT): New macro.
1499
1500 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1501
1502         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1503         CONSP.
1504         (Fput_char_attribute): Likewise.
1505         (char_attribute_system_db_file): Encode file-name of attribute.
1506         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1507         the initial value.
1508
1509 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1510
1511         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1512         (Fsave_charset_mapping_table): Use
1513         `char_attribute_system_db_file'.
1514         (load_char_decoding_entry_maybe): Likewise.
1515
1516         * chartab.h (Qsystem_char_id): New external variable.
1517         (char_attribute_system_db_file): New prototype.
1518
1519         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1520         (char_attribute_system_db_file): New function.
1521         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1522         (Freset_char_attribute_table): Likewise.
1523         (load_char_attribute_maybe): Likewise.
1524         (Fload_char_attribute_table): Likewise.
1525         (syms_of_chartab): Add new symbol `system-char-id'.
1526
1527 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1528
1529         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1530         `XCHARSET_GRAPHIC(ccs)'.
1531
1532 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1535
1536 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * chartab.c (Q_ucs_variants): New variable.
1539         (syms_of_chartab): Add new symbol `->ucs-variants'.
1540         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1541         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1542         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1543
1544         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1545
1546         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1547         `HAVE_DATABASE' is defined.
1548         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1549         `HAVE_DATABASE' is defined.
1550
1551 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1552
1553         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1554         attribute-table.
1555         (Freset_char_attribute_table): New function.
1556         (syms_of_chartab): Add new builtin function
1557         `reset-char-attribute-table'.
1558
1559 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1560
1561         * chartab.c (load_char_attribute_maybe): Don't make directories.
1562
1563 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1566
1567         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1568         for decoding-table.
1569
1570 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1571
1572         * mule-charset.c (Fsave_charset_mapping_table): Use
1573         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1574
1575         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1576         instead of `XCHARSET_CHARS'.
1577
1578 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1579
1580         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1581         (XCHARSET_BYTE_SIZE): Likewise.
1582
1583         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1584         mule-charset.c].
1585         (XCHARSET_BYTE_SIZE): Likewise.
1586
1587 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1588
1589         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1590         data-directory to store database.
1591         (Fsave_char_attribute_table): Likewise.
1592         (load_char_attribute_maybe): Likewise.
1593         (Fload_char_attribute_table): Likewise.
1594
1595 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1596
1597         * mule-charset.c (Fsave_charset_mapping_table): New function.
1598         (syms_of_mule_charset): Add new builtin function
1599         `save-charset-mapping-table'.
1600
1601 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1604         (get_ccs_octet_table): New inline function.
1605         (put_ccs_octet_table): Likewise.
1606         (decoding_table_put_char): Use `get_ccs_octet_table' and
1607         `put_ccs_octet_table'.
1608         (decoding_table_remove_char): Use `decoding_table_put_char'.
1609         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1610
1611         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1612         into encoding_table.
1613         (make_charset): Use Qunbound instead Qnil as initial value of
1614         decoding_table.
1615
1616 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1619         element is Qunloaded.
1620         (map_over_uint16_byte_table): Likewise.
1621         (map_over_byte_table): Likewise.
1622         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1623         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1624         database support, load encoding-table of the specified
1625         coded-charset if it is not loaded yet.
1626         (save_uint8_byte_table): New function of UTF-2000 with external
1627         database support.
1628         (save_uint16_byte_table): Likewise.
1629         (save_byte_table): Likewise.
1630         (Fput_char_attribute): Don't store value into external database
1631         even if the external database feature is supported in UTF-2000;
1632         set `attribute' as name of char-table if the external database
1633         feature is supported.
1634         (Fsave_char_attribute_table): New function in UTF-2000.
1635         (syms_of_chartab): Add new builtin function
1636         `save-char-attribute-table' in UTF-2000.
1637
1638 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1639
1640         * chartab.c (char_attribute_table_to_put): New variable in
1641         UTF-2000.
1642         (Qput_char_table_map_function): Likewise.
1643         (value_to_put): Likewise.
1644         (Fput_char_table_map_function): New function in UTF-2000.
1645         (put_char_table): Use `Fmap_char_attribute' for
1646         CHARTAB_RANGE_CHARSET in UTF-2000.
1647         (Fput_char_attribute): Store symbol instead of string in
1648         `XCHAR_TABLE_NAME (table)'.
1649         (load_char_attribute_maybe): Likewise.
1650         (syms_of_chartab): Add new symbol/function
1651         `put-char-table-map-function'.
1652
1653 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1654
1655         * database.h: Add new EXFUN for `Fmap_database'.
1656
1657         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1658         (syms_of_database): Likewise.
1659
1660         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1661         UTF-2000.
1662         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1663         (XCHAR_TABLE_UNLOADED): Likewise.
1664
1665         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1666         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1667         HAVE_DATABASE is defined.
1668         (char_attribute_table_to_load): New variable of UTF-2000 with
1669         external database support.
1670         (Qload_char_attribute_table_map_function): Likewise.
1671         (Fload_char_attribute_table_map_function): New function of
1672         UTF-2000 with external database support.
1673         (Fload_char_attribute_table): New function of UTF-2000.
1674         (Fmap_char_attribute): Call Fload_char_attribute_table if
1675         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1676         (syms_of_chartab): Add new symbol and function
1677         `load-char-attribute-table-map-function' in UTF-2000 with external
1678         database support; add new function `load-char-attribute-table' in
1679         UTF-2000.
1680
1681 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682
1683         * chartab.h (load_char_attribute_maybe): New prototype for
1684         UTF-2000 with DATABASE support.
1685         (get_char_id_table): Use `load_char_attribute_maybe' if
1686         HAVE_DATABASE is defined.
1687
1688         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1689         with DATABASE support.
1690
1691 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692
1693         * chartab.c (Fput_char_attribute): Use S-expression as key of
1694         external database.
1695
1696         * chartab.h (get_char_id_table): Use S-expression as key of
1697         external database.
1698
1699 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1702         if an element is not loaded, load the corresponding attributes
1703         from an external database.
1704         (map_over_uint16_byte_table): Likewise.
1705         (map_over_byte_table): Likewise.
1706         (map_char_table): Modify for `map_over_uint8_byte_table',
1707         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1708         element is not loaded, load the corresponding attributes from an
1709         external database.
1710         (Fput_char_attribute): Change initial values to Qunloaded.
1711
1712         * chartab.h (get_char_id_table): If a character attribute is not
1713         loaded and the attribute value is not found in an external
1714         database, store Qunbound as the attribute value.
1715
1716 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1717
1718         * chartab.c (BT_UINT8_unloaded): New macro.
1719         (UINT8_VALUE_P): Accept Qunloaded.
1720         (UINT8_ENCODE): Likewise.
1721         (UINT8_DECODE): Likewise.
1722         (BT_UINT16_unloaded): New macro.
1723         (UINT16_VALUE_P): Accept Qunloaded.
1724         (UINT16_ENCODE): Likewise.
1725         (UINT16_DECODE): Likewise.
1726         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1727         BT_UINT16_unloaded.
1728         (mark_char_table): Mark `ct->name' in UTF-2000.
1729         (char_table_description): Add `name' in UTF-2000.
1730         (Fmake_char_table): Initialize `ct->name'.
1731         (Fcopy_char_table): Copy `ct->name'.
1732         (Fput_char_attribute): Store value into an external database if
1733         HAVE_DATABASE is defined.
1734
1735         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1736         UTF-2000.
1737         (CHAR_TABLE_NAME): New macro in UTF-2000.
1738         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1739         (get_char_id_table): Try to read an external database if Qunloaded
1740         is stored in a table.
1741
1742         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1743         Qunloaded.
1744
1745 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1746
1747         * database.h: Add EXFUN definitions for Fopen_database,
1748         Fput_database, Fget_database and Fclose_database.
1749
1750         * data.c (Qunloaded): New variable in UTF-2000.
1751
1752         * lisp.h (Qunloaded): New variable in UTF-2000.
1753
1754 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1755
1756         * mule-charset.c (put_char_ccs_code_point): Modify for
1757         `decoding_table_remove_char' and `decoding_table_put_char'.
1758         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1759
1760         * char-ucs.h (decoding_table_remove_char): Change arguments to
1761         hide decoding_table vector.
1762         (decoding_table_put_char): Likewise.
1763
1764 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * mule-charset.c (decoding_table_remove_char): Moved to
1767         char-ucs.h.
1768         (decoding_table_put_char): Likewise.
1769
1770         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1771         from mule-charset.c].
1772         (decoding_table_remove_char): New inline function [moved from
1773         mule-charset.c].
1774         (decoding_table_put_char): Likewise.
1775
1776 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1777
1778         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1779         extension.
1780
1781 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1782
1783         * mule-charset.c (decode_builtin_char): Support mother charsets.
1784
1785 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1786
1787         * mule-charset.c (Q94x94x60): New variable.
1788         (charset_code_point): Support conversion `94x94x60'.
1789         (Fmake_charset): Likewise.
1790         (syms_of_mule_charset): Add new symbol `94x94x60'.
1791
1792         * char-ucs.h (CONVERSION_94x94x60): New macro.
1793
1794 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1795
1796         * mule-charset.c (charset_code_point): Unify code about
1797         `code-offset'.
1798
1799 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1800
1801         * mule-charset.c (charset_code_point): Merge code about builtin
1802         characters into code about mother charsets; don't use
1803         `range_charset_code_point'.
1804         (range_charset_code_point): Deleted.
1805
1806 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * mule-charset.c (Qcode_offset): New variable.
1809         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1810         `max-code'; accept new property `code-offset'.
1811         (syms_of_mule_charset): Add new symbol `code-offset'.
1812
1813 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1814
1815         * mule-charset.c (range_charset_code_point): Fixed.
1816
1817 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * mule-charset.c (decode_builtin_char): Change semantics of
1820         code-offset of coded-charset.
1821         (charset_code_point): Likewise.
1822         (range_charset_code_point): Likewise.
1823         (complex_vars_of_mule_charset): Modify for the change.
1824
1825 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1826
1827         * mule-charset.c (Fencode_char): Reverse arguments.
1828
1829         * mule-charset.c (charset_code_point): Fixed.
1830
1831 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * mule-charset.c (Vcharset_mojikyo): Deleted.
1834         (Vcharset_mojikyo_2022_1): Deleted.
1835         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1836         (Qmin_code): New variable in UTF-2000.
1837         (Qmax_code): Likewise.
1838         (Qmother): Likewise.
1839         (Qconversion): Likewise.
1840         (Q94x60): Likewise.
1841         (Qmojikyo): Deleted.
1842         (Qmojikyo_2022_1): Deleted.
1843         (Qmojikyo_pj_{1..22}): Deleted.
1844         (mark_charset): Mark `cs->mother'.
1845         (charset_description): Add description for `mother'.
1846         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1847         new arguments `mother' and `conversion'; use
1848         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1849         (charset_code_point): Moved from char-ucs.h; support `mother'
1850         charset feature.
1851         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1852         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1853         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1854         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1855         allow 2 as the value of `graphic' in UTF-2000; add new properties
1856         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1857         require `final' in UTF-2000; modify for `make_charset'.
1858         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1859         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1860         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1861         (Fencode_char): New function.
1862         (syms_of_mule_charset): Add new builtin function `encode-char' in
1863         UTF-2000; add new symbols `min-code', `max-code', `mother',
1864         `conversion' and `94x60'; delete symbols `mojikyo',
1865         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1866         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1867         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1868         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1869
1870         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1871         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1872
1873         * char-ucs.h (Vcharset_mojikyo): Deleted.
1874         (Vcharset_mojikyo_2022_1): Deleted.
1875         (LEADING_BYTE_MOJIKYO): Deleted.
1876         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1877         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1878         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1879         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1880         add new member `mother'; add new member `conversion'.
1881         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1882         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1883         (CHARSET_MOTHER): New macro.
1884         (CHARSET_CONVERSION): New macro.
1885         (CONVERSION_IDENTICAL): New macro.
1886         (CONVERSION_94x60): New macro.
1887         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1888         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1889         (XCHARSET_MOTHER): New macro.
1890         (XCHARSET_CONVERSION): New macro.
1891         (MIN_CHAR_MOJIKYO): Deleted.
1892         (MAX_CHAR_MOJIKYO): Deleted.
1893         (DECODE_MOJIKYO_2022): Deleted.
1894         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1895         (charset_code_point): Changed to non-inline function.
1896         (encode_char_1): Use `charset_code_point'.
1897         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1898
1899 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900
1901         * lread.c (read_compiled_function): Fix prototype.
1902         (read_vector): Likewise.
1903
1904 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * lrecord.h (struct lrecord_header): Delete `older'.
1907         (set_lheader_implementation): Delete code for `older'.
1908         (set_lheader_older_implementation): Deleted.
1909         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1910         (OLDER_RECORD_P): Deleted.
1911         (OLDER_RECORD_HEADER_P): Deleted.
1912         (alloc_older_lcrecord): Deleted.
1913         (alloc_older_lcrecord_type): Deleted.
1914
1915         * alloc.c (all_older_lcrecords): Deleted.
1916         (alloc_older_lcrecord): Deleted.
1917         (disksave_object_finalization_1): Delete code for older objects.
1918         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1919         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1920
1921 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1924         instead of `make_older_vector'.
1925         (put_char_ccs_code_point): Likewise.
1926         (mark_charset): Mark `cs->decoding_table'.
1927         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1928
1929         * lisp.h (make_older_vector): Deleted.
1930         (make_vector_newer): Deleted.
1931
1932         * config.h.in (HAVE_GGC): Deleted.
1933
1934         * alloc.c (make_older_vector): Deleted.
1935         (make_vector_newer_1): Deleted.
1936         (make_vector_newer): Deleted.
1937
1938 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1941         (Qideograph_daikanwa_2): New variable.
1942         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1943         (complex_vars_of_mule_charset): Add new coded-charset
1944         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1945         `LEADING_BYTE_DAIKANWA'.
1946
1947         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1948         (LEADING_BYTE_DAIKANWA_1): New macro.
1949         (LEADING_BYTE_DAIKANWA_2): New macro.
1950         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1951
1952 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * mule-charset.c (complex_vars_of_mule_charset): Change
1955         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1956         the second revised version.
1957
1958 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (Vcharset_ucs_smp): New variable.
1961         (Vcharset_ucs_sip): New variable.
1962         (Qucs_smp): New variable.
1963         (Qucs_sip): New variable.
1964         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1965         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1966         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1967         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1968         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1969         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1970
1971         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1972         (LEADING_BYTE_UCS_SIP): New macro.
1973         (MIN_CHAR_SMP): New macro.
1974         (MAX_CHAR_SMP): New macro.
1975         (MIN_CHAR_SIP): New macro.
1976         (MAX_CHAR_SIP): New macro.
1977
1978 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1979
1980         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1981         utf-2000.
1982
1983 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1984
1985         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1986         value; don't store value into `encoding_table' of `Lisp_Charset'.
1987         (mark_charset): `encoding_table' was deleted.
1988         (charset_description): Likewise.
1989         (make_charset): Likewise.
1990         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1991         `put_char_ccs_code_point'.
1992
1993         * chartab.h (Fput_char_attribute): New EXFUN.
1994
1995         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1996         is unified with normal symbol space.
1997         (Fget_char_attribute): Likewise.
1998         (Fput_char_attribute): Likewise; behavior of
1999         `put_char_ccs_code_point' is changed.
2000
2001         * char-ucs.h: Include "elhash.h".
2002         (Vchar_attribute_hash_table): New external variable.
2003         (struct Lisp_Charset): Delete `encoding_table'.
2004         (CHARSET_ENCODING_TABLE): New implementation; refer
2005         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2006         `Lisp_Charset'.
2007
2008 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2011         (cs) == 0.
2012
2013 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2014
2015         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2016         `chinese-big5'.
2017
2018 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * chartab.c (uint8_byte_table_description): New constant.
2021         (uint8-byte-table): Use `uint8_byte_table_description'.
2022         (uint16_byte_table_description): New constant.
2023         (uint16-byte-table): Use `uint16_byte_table_description'.
2024
2025 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2026
2027         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2028         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2029
2030 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031
2032         * mule-charset.c (Vcharset_ucs_ks): New variable.
2033         (Qucs_ks): New variable.
2034         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2035         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2036
2037         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2038
2039 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2042         (Fdecode_char): Likewise.
2043
2044         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2045         chartab.h.
2046         (Fdefine_char): Modify for Fdecode_char.
2047         (Ffind_char): Likewise.
2048
2049         * mule-charset.c (Fdecode_char): Add new optional argument
2050         `defined-only'.
2051         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2052
2053 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2056         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2057         (allocate_coding_system): Initialize initial-charsets of
2058         CODESYS_BIG5 in XEmacs UTF-2000.
2059         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2060         CODESYS_BIG5 in XEmacs UTF-2000.
2061         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2062         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2063
2064         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2065         variables.
2066         (Qideograph_hanziku_{1 .. 12}): Likewise.
2067         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2068         .. 12}'.
2069         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2070         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2071         `ideograph-hanziku-{1 .. 12}'.
2072
2073         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2074         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2075         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2076         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2077         (DECODE_DEFINED_CHAR): New inline function.
2078         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2079
2080 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2081
2082         * mule-charset.c (Vcharset_china3_jef): Renamed from
2083         `Vcharset_japanese_jef_china3'.
2084         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2085         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2086         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2087         (syms_of_mule_charset): Rename `china3-jef' from
2088         `japanese-jef-china3'.
2089         (complex_vars_of_mule_charset): Likewise; rename
2090         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2091
2092         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2093         `LEADING_BYTE_JEF_CHINA3'.
2094         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2095         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2096
2097 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098
2099         * mule-charset.c (encode_builtin_char_1): Comment out special code
2100         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2101
2102         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2103         (MAX_CHAR_MOJIKYO_0): Comment out.
2104         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2105         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2106         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2107         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2108
2109 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2112         (Qideograph_cbeta): New variable.
2113         (encode_builtin_char_1): Comment out special code for
2114         coded-charset `mojikyo' and `japanese-jef-china3'.
2115         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2116         (complex_vars_of_mule_charset): Add new coded-charset
2117         `ideograph-cbeta'.
2118
2119         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2120         (MIN_CHAR_CBETA): New macro.
2121         (MAX_CHAR_CBETA): New macro.
2122
2123 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124
2125         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2126         (LEADING_BYTE_JEF_CHINA3): New macro.
2127         (MIN_CHAR_JEF_CHINA3): New macro.
2128         (MAX_CHAR_JEF_CHINA3): Likewise.
2129         (DECODE_CHAR): Fixed.
2130
2131 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132
2133         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2134         (Qjapanese_jef_china3): New variable.
2135         (encode_builtin_char_1): Support `japanese-jef-china3'.
2136         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2137         (complex_vars_of_mule_charset): Add new coded-charset
2138         `japanese-jef-china3'.
2139
2140 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2141
2142         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2143         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2144         94^4, 96^3, 96^4, 128^n and 256^n set.
2145         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2146         (map_char_table): Likewise.
2147
2148 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149
2150         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2151         UTF-2000.
2152
2153 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2154
2155         * chartab.h (get_char_id_table): New inline function.
2156
2157         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2158         function.
2159
2160 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * chartab.h (decode_char_table_range): New prototype in XEmacs
2163         UTF-2000.
2164         (put_char_id_table): New inline function in XEmacs UTF-2000.
2165
2166         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2167         function.
2168         (decode_char_table_range): Delete static declaration in XEmacs
2169         UTF-2000.
2170
2171 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * chartab.c (put_char_id_table): Use `put_char_table'.
2174
2175 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2178         (map_over_uint16_byte_table): Likewise.
2179         (map_over_byte_table): Likewise.
2180         (map_char_table): Modify for `map_over_uint8_byte_table',
2181         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2182         UTF-2000.
2183
2184 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185
2186         * chartab.c (struct map_char_table_for_charset_arg): New
2187         structure.
2188         (map_char_table_for_charset_fun): New function.
2189         (map_char_table): Use `map_char_table' for encoding_table of
2190         `range->charset'.
2191
2192 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * chartab.c (map_char_table): Check a character is found in
2195         range->charset instead of non default value is defined in
2196         char-table when range is CHARTAB_RANGE_ROW.
2197
2198 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2199
2200         * chartab.c (map_char_id_table): Deleted.
2201         (Fmap_char_attribute): Use `map_char_table' instead of
2202         `map_char_id_table'.
2203
2204 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2205
2206         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2207         UTF-2000.
2208         (update_syntax_table): Deleted in XEmacs UTF-2000.
2209
2210         * syntax.c (find_defun_start): Use `syntax_table' instead of
2211         `mirror_syntax_table' in XEmacs UTF-2000.
2212         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2213         UTF-2000.
2214         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2215         XEmacs UTF-2000.
2216         (Fmatching_paren): Likewise.
2217         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2218         in XEmacs UTF-2000.
2219         (find_start_of_comment): Likewise.
2220         (find_end_of_comment): Likewise.
2221         (Fforward_comment): Likewise.
2222         (scan_lists): Likewise.
2223         (char_quoted): Likewise.
2224         (Fbackward_prefix_chars): Likewise.
2225         (scan_sexps_forward): Likewise.
2226         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2227         (update_syntax_table): Likewise.
2228
2229         * search.c (skip_chars): Use `syntax_table' instead of
2230         `mirror_syntax_table' in XEmacs UTF-2000.
2231         (wordify): Likewise.
2232         (Freplace_match): Likewise.
2233
2234         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2235         `mirror_syntax_table' in XEmacs UTF-2000.
2236         (WORDCHAR_P_UNSAFE): Likewise.
2237         (re_match_2_internal): Likewise.
2238
2239         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2240         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2241
2242         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2243         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2244
2245         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2246         XEmacs UTF-2000.
2247
2248         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2249         UTF-2000.
2250         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2251         (char_table_description): Delete `mirror_table' in XEmacs
2252         UTF-2000.
2253         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2254         UTF-2000.
2255         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2256         (Fcopy_char_table): Likewise.
2257         (put_char_table): Don't call `update_syntax_table' in XEmacs
2258         UTF-2000.
2259
2260         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2261         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2262         (casify_region_internal): Likewise.
2263
2264         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2265
2266         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2267         `mirror_syntax_table' in XEmacs UTF-2000.
2268
2269         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2270         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2271         (Fexpand_abbrev): Likewise.
2272
2273 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2276
2277 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2278
2279         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2280         (map_over_uint16_byte_table): Likewise.
2281         (map_over_byte_table): Likewise.
2282         (get_char_id_table): Refer `cit->default_value'.
2283         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2284         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2285         of character-id ranges.
2286         (mark_char_table): Mark `ct->default_value'.
2287         (char_table_description): Add `default_value'.
2288         (fill_char_table): Use `default_value'.
2289         (decode_char_table_range): Decode `nil' as
2290         `CHARTAB_RANGE_DEFAULT'.
2291         (get_char_id_table): Refer `cit->default_value'.
2292         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2293         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2294         temporary hack; check value of char-table is bound or not.
2295         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2296
2297         * chartab.h (struct Lisp_Char_Table): Add new member
2298         `default_value' in XEmacs UTF-2000.
2299         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2300         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2301         UTF-2000.
2302
2303 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * chartab.h (Lisp_Char_ID_Table): Deleted.
2306
2307         * chartab.c (char_table_description): Fix typo.
2308         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2309         `Lisp_Char_ID_Table'.
2310
2311 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312
2313         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2314         `CHAR_ID_TABLE_P'.
2315
2316         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2317         `CHAR_ID_TABLE_P'.
2318
2319         * chartab.h (XCHAR_ID_TABLE): Deleted.
2320         (XSETCHAR_ID_TABLE): Deleted.
2321         (CHAR_ID_TABLE_P): Deleted.
2322
2323         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2324         `CHAR_ID_TABLE_P'.
2325         (Fget_composite_char): Likewise.
2326         (put_char_table): Likewise.
2327         (add_char_attribute_alist_mapper): Fixed.
2328         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2329         `CHAR_ID_TABLE_P'.
2330         (Fget_char_attribute): Likewise.
2331         (Fget_char_attribute): Likewise.
2332         (Fmap_char_attribute): Likewise.
2333
2334         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2335         `CHAR_ID_TABLE_P'.
2336         (encode_char_1): Likewise.
2337
2338 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2341         `XCHAR_ID_TABLE'.
2342
2343         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2344         instead of `XCHAR_ID_TABLE'.
2345         (remove_char_ccs): Likewise.
2346
2347         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2348         `XCHAR_ID_TABLE'.
2349         (Fget_composite_char): Likewise.
2350         (Fchar_variants): Likewise.
2351         (put_char_table): Likewise.
2352         (add_char_attribute_alist_mapper): Likewise.
2353         (Fchar_attribute_alist): Likewise.
2354         (Fget_char_attribute): Likewise.
2355         (Fput_char_attribute): Likewise.
2356         (Fmap_char_attribute): Likewise.
2357         (Fmap_char_attribute): Likewise.
2358
2359         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2360         `XCHAR_ID_TABLE'.
2361         (encode_char_1): Likewise.
2362
2363 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2364
2365         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2366         `Lisp_Char_ID_Table'.
2367         (mark_char_id_table): Deleted.
2368         (print_char_id_table): Likewise.
2369         (char_id_table_equal): Likewise.
2370         (char_id_table_hash): Likewise.
2371         (char_id_table_description): Likewise.
2372         (char_id_table): Likewise.
2373         (make_char_id_table): Use `Fmake_char_table' and
2374         `fill_char_table'.
2375         (get_char_id_table): Use `Lisp_Char_Table' instead of
2376         `Lisp_Char_ID_Table'.
2377         (put_char_id_table): Likewise.
2378         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2379         `XCHAR_ID_TABLE'.
2380         (Fremove_char_attribute): Likewise.
2381         (syms_of_chartab): Don't define type `char-id-table'.
2382
2383         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2384         (char_id_table): Likewise.
2385         (GC_CHAR_ID_TABLE_P): Likewise.
2386         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2387         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2388         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2389         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2390         (get_char_id_table): Use `Lisp_Char_Table' instead of
2391         `Lisp_Char_ID_Table'.
2392         (put_char_id_table_0): Likewise.
2393         (put_char_id_table): Likewise.
2394
2395 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2396
2397         * chartab.h: Lisp_Byte_Table related codes are moved from
2398         chartab.h.
2399
2400         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2401
2402 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2403
2404         * chartab.h: Don't include "chartab.h".
2405         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2406         (Lisp_Char_ID_Table): Likewise.
2407         (char_id_table): Likewise.
2408         (XCHAR_ID_TABLE): Likewise.
2409         (XSETCHAR_ID_TABLE): Likewise.
2410         (CHAR_ID_TABLE_P): Likewise.
2411         (GC_CHAR_ID_TABLE_P): Likewise.
2412         (get_char_id_table): Likewise.
2413
2414         * char-ucs.h: Include "chartab.h".
2415         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2416         (Lisp_Char_ID_Table): Likewise.
2417         (char_id_table): Likewise.
2418         (XCHAR_ID_TABLE): Likewise.
2419         (XSETCHAR_ID_TABLE): Likewise.
2420         (CHAR_ID_TABLE_P): Likewise.
2421         (GC_CHAR_ID_TABLE_P): Likewise.
2422         (get_char_id_table): Likewise.
2423
2424 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2425
2426         * chartab.c (copy_uint8_byte_table): New function.
2427         (copy_uint16_byte_table): New function.
2428         (copy_byte_table): New function.
2429         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2430         characters to call.
2431         (map_over_uint16_byte_table): Likewise.
2432         (map_over_byte_table): Likewise.
2433         (get_byte_table): Move prototype to chartab.h.
2434         (put_byte_table): Likewise.
2435         (put_char_id_table_0): Moved to chartab.h.
2436         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2437         (char_table_entry_equal): Likewise.
2438         (char_table_entry_hash): Likewise.
2439         (char_table_entry_description): Likewise.
2440         (char_table_entry): Likewise.
2441         (make_char_table_entry): Likewise.
2442         (copy_char_table_entry): Likewise.
2443         (get_non_ascii_char_table_value): Likewise.
2444         (map_over_charset_ascii): Likewise.
2445         (map_over_charset_control_1): Likewise.
2446         (map_over_charset_row): Likewise.
2447         (map_over_other_charset): Likewise.
2448         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2449         (print_char_table): Likewise.
2450         (char_table_equal): Likewise.
2451         (char_table_hash): Likewise.
2452         (char_table_description): Likewise.
2453         (fill_char_table): Likewise.
2454         (Fcopy_char_table): Likewise.
2455         (get_char_table): Likewise.
2456         (Fget_range_char_table): Likewise.
2457         (put_char_table): Likewise.
2458         (map_char_table): Likewise.
2459         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2460         UTF-2000.
2461
2462 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463
2464         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2465         `Vauto_fill_chars' in XEmacs UTF-2000.
2466
2467         * chartab.h (get_byte_table): New prototype [moved from
2468         chartab.c].
2469         (put_byte_table): Likewise [moved from chartab.c].
2470         (put_char_id_table_0): New inline function [moved from chartab.c].
2471         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2472         (Lisp_Char_Table_Entry): Likewise.
2473         (char_table_entry): Likewise.
2474         (XCHAR_TABLE_ENTRY): Likewise.
2475         (XSETCHAR_TABLE_ENTRY): Likewise.
2476         (CHAR_TABLE_ENTRYP): Likewise.
2477         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2478         (NUM_ASCII_CHARS): Likewise.
2479         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2480         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2481
2482 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2483
2484         * chartab.c (get_char_id_table): Change interface.
2485         (put_char_id_table_0): New function.
2486         (put_char_id_table): Change interface; new implementation.
2487         (Fget_composite_char): Modify for interface change of
2488         `get_char_id_table'.
2489         (Fchar_variants): Likewise.
2490         (add_char_attribute_alist_mapper): Likewise.
2491         (Fchar_attribute_alist): Likewise.
2492         (Fget_char_attribute): Likewise.
2493         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2494         as same as character as the first argument like `put-char-table';
2495         modify for interface change of `put_char_id_table'.
2496         (Fremove_char_attribute): Modify for interface change of
2497         `put_char_id_table'.
2498
2499 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * text-coding.c: Sync up with XEmacs 21.2.41.
2502         (COMPOSE_ADD_CHAR): Modify for interface change of
2503         `get_char_id_table'.
2504
2505         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2506         change of `put_char_id_table'.
2507         (remove_char_ccs): Likewise.
2508
2509         * chartab.h (put_char_id_table): Change interface.
2510
2511         * char-ucs.h (get_char_id_table): Change interface.
2512         (charset_code_point): Modify for interface change of
2513         `get_char_id_table'.
2514         (encode_char_1): Likewise.
2515
2516 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2517
2518         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2519         argument `ccs'.
2520         (map_over_uint16_byte_table): Likewise.
2521         (map_over_byte_table): Likewise.
2522         (map_char_id_table): Add new argument `range' like
2523         `map_char_table'.
2524         (Fmap_char_attribute): Add new argument `range' like
2525         `Fmap_char_table'.
2526
2527 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2528
2529         * chartab.c (map_over_uint8_byte_table): Change interface of
2530         mapping function to use struct chartab_range instead of Emchar.
2531         (map_over_uint16_byte_table): Likewise.
2532         (map_over_byte_table): Likewise.
2533         (map_char_id_table): Likewise.
2534         (struct slow_map_char_id_table_arg): Deleted.
2535         (slow_map_char_id_table_fun): Deleted.
2536         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2537         function `slow_map_char_table_fun' instead of struct
2538         `slow_map_char_id_table_arg' and function
2539         `slow_map_char_id_table_fun'.
2540
2541 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * mule-charset.c: Move char-it-table related codes to chartab.c.
2544         (Vutf_2000_version): Moved to chartab.c.
2545         (Fdefine_char): Likewise.
2546         (Ffind_char): Likewise.
2547         (syms_of_mule_charset): Move types `uint8-byte-table',
2548         `uint16-byte-table', `byte-table' and `char-id-table' to
2549         chartab.c; move functions `char_attribute_list,
2550         `find_char_attribute_table, `char_attribute_alist,
2551         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2552         `map_char_attribute, `define_char, `find_char, `char_variants and
2553         `get_composite_char to chartab.c; move symbols `=>ucs',
2554         `->decomposition', `compat', `isolated', `initial', `medial',
2555         `final', `vertical', `noBreak', `fraction', `super', `sub',
2556         `circle', `square', `wide', `narrow', `small' and `font' to
2557         chartab.c.
2558         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2559         setting codes for `Vcharacter_composition_table' and
2560         `Vcharacter_variant_table' to chartab.c.
2561         (complex_vars_of_mule_charset): Move setting code for
2562         `Vchar_attribute_hash_table' to chartab.c.
2563
2564         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2565         (make_char_id_table): New prototype.
2566         (put_char_id_table): Likewise.
2567         (Fget_char_attribute): Likewise.
2568
2569         * chartab.c: Move char-id-table related code from mule-charset.c.
2570         (Vutf_2000_version): Moved from mule-charset.c.
2571
2572         * char-ucs.h (Qucs): New external variable.
2573         (put_char_ccs_code_point): New prototype.
2574         (remove_char_ccs): Likewise.
2575
2576 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2577
2578         * mule-charset.c (Vcharset_ucs_jis): New variable.
2579         (Qucs_jis): Likewise.
2580         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2581         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2582
2583         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2584
2585 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2586
2587         * mule-charset.c (map_over_uint8_byte_table): New function.
2588         (map_over_uint16_byte_table): Likewise.
2589         (map_over_byte_table): Likewise.
2590         (map_char_id_table): Likewise.
2591         (slow_map_char_id_table_fun): Likewise.
2592         (Fmap_char_attribute): Likewise.
2593         (syms_of_mule_charset): Add new function `map-char-attribute'.
2594
2595 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2598         (syms_of_mule_charset): Add new function `find-char'.
2599
2600 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2601
2602         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2603         XEmacs UTF-2000.
2604         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2605         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2606         XEmacs UTF-2000.
2607         (complex_vars_of_mule_charset): Add new coded-charset
2608         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2609         `ideograph-gt-pj-*'.
2610
2611         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2612
2613 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * mule-charset.c (encode_builtin_char_1): Purge codes about
2616         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2617         {MIN|MAX}_CHAR_HEBREW.
2618         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2619         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2620
2621         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2622         (MAX_CHAR_GREEK): Purged.
2623         (MIN_CHAR_CYRILLIC): Purged.
2624         (MAX_CHAR_CYRILLIC): Purged.
2625         (MIN_CHAR_HEBREW): Commented out.
2626         (MAX_CHAR_HEBREW): Likewise.
2627
2628 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2629
2630         * mule-charset.c (Qto_ucs): New variable.
2631         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2632         (Fdefine_char): Likewise.
2633         (syms_of_mule_charset): Add new symbol `=>ucs'.
2634
2635 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2636
2637         * mule-charset.c (Fdecode_char): Fixed.
2638
2639 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2642         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2643         "tcvn5712-1".
2644
2645 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * mule-charset.c (Vcharset_ucs_big5): New variable.
2648         (Qucs_big5): Likewise.
2649         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2650         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2651
2652         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2653
2654 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655
2656         * mule-charset.c (decode_builtin_char): Check Big5 code range
2657         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2658
2659 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2660
2661         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2662         (Qchinese_gb12345): Likewise.
2663         (Fdecode_builtin_char): Fixed.
2664         (syms_of_mule_charset): Add `chinese-gb12345'.
2665         (complex_vars_of_mule_charset): Add coded-charset
2666         `chinese-gb12345'.
2667
2668         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2669         (LEADING_BYTE_CHINESE_GB12345): New macro.
2670
2671 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672
2673         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2674         and `latin-viscii-upper' for `latin-viscii'.
2675
2676 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2677
2678         * mule-charset.c (Fdecode_builtin_char): Comment out
2679         regularization code for ISO-IR GR representation.
2680
2681 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2682
2683         * mule-charset.c (decode_builtin_char): New function; renamed from
2684         `make_builtin_char'; return -1 instead of signal.
2685         (Fdecode_builtin_char): Use `decode_builtin_char'.
2686
2687         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2688         `make_builtin_char'.
2689         (DECODE_CHAR): Use `decode_builtin_char' instead of
2690         `make_builtin_char'; use mapping table of `chinese-big5' for
2691         `chinese-big5-{1,2}'.
2692
2693 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2694
2695         * text-coding.c (char_encode_big5): New function.
2696         (char_finish_big5): Likewise.
2697         (reset_encoding_stream): Use `char_encode_big5' and
2698         `char_finish_big5' for CODESYS_BIG5.
2699         (mule_encode): Don't use `encode_coding_big5'.
2700         (encode_coding_big5): Deleted.
2701
2702 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703
2704         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2705         0x81- in XEmacs UTF-2000.
2706         (detect_coding_big5): Likewise.
2707
2708 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2709
2710         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2711         generate character-id if the CCS property does not have
2712         corresponding predefined character.
2713         (make_builtin_char): Return -1 if corresponding predefined
2714         character is not found.
2715         (Fdecode_char): Return nil if corresponding character is not
2716         found.
2717         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2718         don't map to builtin ucs space.
2719
2720 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2721
2722         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2723         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2724
2725 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2726
2727         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2728         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2729         (Qideograph_gt): Likewise.
2730         (Qideograph_gt_pj_{1..11}): Likewise.
2731         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2732         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2733         `ideograph-gt-pj-11'.
2734         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2735         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2736         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2737
2738         * char-ucs.h (LEADING_BYTE_GT): New macro.
2739         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2740         (MIN_CHAR_GT): Likewise.
2741         (MAX_CHAR_GT): Likewise.
2742
2743 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2746         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2747
2748         * doprnt.c (unsigned_int_converters): Add `c'.
2749         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2750
2751         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2752         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2753         `MIN_CHAR_MOJIKYO'.
2754         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2755         (MAX_CHAR_MOJIKYO_0): New macro.
2756         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2757
2758 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2759
2760         * mule-charset.c (Fdefine_char): Delete cemented out code.
2761         (encode_builtin_char_1): Modify for new allocation of builtin
2762         Mojikyo characters.
2763
2764         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2765
2766 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * mule-charset.c (Vcharset_ucs_cns): New variable.
2769         (Qucs_cns): New variable.
2770         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2771         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2772
2773 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2774
2775         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2776
2777 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2778
2779         * search.c (search_buffer): Make `charset_base_code' as
2780         character-id >> 6 to eliminate the corresponding last byte in
2781         UTF-8 representation [I'm not sure it is right thing].
2782         (boyer_moore): Likewise.
2783
2784 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2785
2786         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2787         representation in MULE.
2788
2789 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2790
2791         * text-coding.c (Fmake_coding_system): Use
2792         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2793         `EXTERNAL_PROPERTY_LIST_LOOP'.
2794
2795 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * text-coding.c (decode_output_utf8_partial_char): New function.
2798         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2799
2800 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2801
2802         * text-coding.c (decode_coding_utf8): Output original byte
2803         sequence if it is broken; change order of conditions.
2804
2805         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2806         of conditions.
2807
2808         * mb-multibyte.h (BYTE_ASCII_P):
2809         Use bit ops for char-signedness safety.
2810         (BYTE_C0_P): Use bit ops for char-signedness safety.
2811         (BYTE_C1_P): Use bit ops for char-signedness safety.
2812
2813         * character.h: (XCHAR_OR_CHAR_INT):
2814         Always use inline function.
2815         Remove redundant type checking assert() - XINT will abort quite
2816         nicely.
2817
2818 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * text-coding.c: (Fencode_shift_jis_char):
2821         (Fencode_big5_char):
2822         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2823         Replace 0 with '\0' when working with bytes.
2824         Replace initial "(" with "\(" in docstrings.
2825
2826         (Fmake_coding_system):
2827         When type is ccl and value is vector, register it with a proper
2828         symbol.  And checks whether the given ccl program is valid.
2829         (mule_decode): When calling ccl_driver, if src indicates
2830         NULL pointer, set an empty string instead.
2831         (mule_encode): Likewise.
2832
2833         (detect_eol_type):
2834         (detect_coding_sjis):
2835         (decode_coding_sjis):
2836         (detect_coding_big5):
2837         (decode_coding_big5):
2838         (detect_coding_ucs4):
2839         (decode_coding_ucs4):
2840         (detect_coding_utf8):
2841         (decode_coding_utf8):
2842         (detect_coding_iso2022):
2843         (decode_coding_iso2022):
2844         (decode_coding_no_conversion):
2845         (mule_decode):
2846         Make all detecting and decoding functions take an Extbyte * arg.
2847         (text_encode_generic):
2848         (encode_coding_big5):
2849         (encode_coding_no_conversion):
2850         (mule_encode):
2851         Make all encoding functions take a Bufbyte * arg.
2852         Use size_t instead of unsigned int for memory sizes.
2853         Only cast to unsigned char whenever dereferencing Extbyte *.
2854
2855         (struct lrecord_description fcd_description_1): Use countof.
2856         (complex_vars_of_file_coding):
2857         Use countof instead of sizeof.
2858         Use CHECK_NATNUM instead of CHECK_INT.
2859
2860 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2861
2862         * mule-charset.c (Fget_char_attribute): Add new optional argument
2863         `default-value'.
2864         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2865         (remove_char_ccs): Likewise.
2866
2867 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * text-coding.c (char_encode_shift_jis): New implementation in
2870         UTF-2000.
2871         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2872         ...)'.
2873
2874         * mule-charset.c (Vcharset_chinese_big5): New variable in
2875         UTF-2000.
2876         (Qchinese_big5): New variable in UTF-2000.
2877         (BIG5_SAME_ROW): New macro in UTF-2000.
2878         (make_builtin_char): Use builtin characters of
2879         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2880         characters of `Vcharset_chinese_big5'.
2881         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2882         (complex_vars_of_mule_charset): Add new coded-charset
2883         `chinese-big5' in UTF-2000.
2884
2885         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2886         (Vcharset_chinese_big5): New external variable declaration.
2887         (Vcharset_japanese_jisx0208_1990): Likewise.
2888
2889 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2890
2891         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2892         function.
2893         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2894
2895 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2896
2897         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2898         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2899         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2900         `mojikyo-pj-*'.
2901
2902 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2903
2904         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2905
2906 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2907
2908         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2909         to 0.17.
2910
2911 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2912
2913         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2914         for `CHARSET_BY_ATTRIBUTES'.
2915         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2916         `CHARSET_BY_ATTRIBUTES'.
2917
2918         * text-coding.c (struct decoding_stream): Rename member `CH' to
2919         `CPOS'.
2920         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2921         (decode_coding_sjis): Likewise.
2922         (decode_coding_big5): Likewise.
2923         (decode_coding_ucs4): Likewise.
2924         (decode_coding_utf8): Likewise.
2925         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2926         `CHARSET_BY_ATTRIBUTES'.
2927         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2928         `str->counter'; decode 3, 4 bytes sets.
2929         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2930         sets.
2931         (decode_coding_no_conversion): Use `str->cpos' instead of
2932         `str->ch'.
2933
2934         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2935         (Qmojikyo_2022_1): New variable.
2936         (make_charset): Don't use `CHARSET_TYPE_*'.
2937         (range_charset_code_point): Support coded-charset
2938         `mojikyo-2022-1'.
2939         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2940         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2941         `CHARSET_BY_ATTRIBUTES'.
2942         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2943         `CHARSET_BY_ATTRIBUTES'.
2944         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2945         (complex_vars_of_mule_charset): Add new coded-charset
2946         `mojikyo-2022-1'.
2947
2948         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2949         interface; changed to inline function.
2950
2951         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2952         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2953         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2954         (CHARSET_TYPE_94): Deleted.
2955         (CHARSET_TYPE_94X94): Deleted.
2956         (CHARSET_TYPE_96): Deleted.
2957         (CHARSET_TYPE_96X96): Deleted.
2958         (CHARSET_TYPE_128): Deleted.
2959         (CHARSET_TYPE_128X128): Deleted.
2960         (CHARSET_TYPE_256): Deleted.
2961         (CHARSET_TYPE_256X256): Deleted.
2962         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2963         to inline function.
2964         (DECODE_MOJIKYO_2022): New inline function.
2965         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2966         `Vcharset_mojikyo_2022_1'.
2967
2968 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2969
2970         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2971         instead of `EQ'.
2972         (put_byte_table): Likewise.
2973         (char_id_table_equal): Use `get_byte_table' [new implementation].
2974
2975 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * mule-charset.c: Include <limits.h> in UTF-2000.
2978         (BT_UINT8_MIN): New macro in UTF-2000.
2979         (BT_UINT8_MAX): New macro in UTF-2000.
2980         (BT_UINT8_t): New macro in UTF-2000.
2981         (BT_UINT8_nil): New macro in UTF-2000.
2982         (BT_UINT8_unbound): New macro in UTF-2000.
2983         (INT_UINT8_P): New inline function in UTF-2000.
2984         (UINT8_VALUE_P): New inline function in UTF-2000.
2985         (UINT8_ENCODE): New inline function in UTF-2000.
2986         (UINT8_DECODE): New inline function in UTF-2000.
2987         (mark_uint8_byte_table): New function in UTF-2000.
2988         (print_uint8_byte_table): New function in UTF-2000.
2989         (uint8_byte_table_equal): New function in UTF-2000.
2990         (uint8_byte_table_hash): New function in UTF-2000.
2991         (make_uint8_byte_table): New function in UTF-2000.
2992         (uint8_byte_table_same_value_p): New function in UTF-2000.
2993         (BT_UINT16_MIN): New macro in UTF-2000.
2994         (BT_UINT16_MAX): New macro in UTF-2000.
2995         (BT_UINT16_t): New macro in UTF-2000.
2996         (BT_UINT16_nil): New macro in UTF-2000.
2997         (BT_UINT16_unbound): New macro in UTF-2000.
2998         (INT_UINT16_P): New inline function in UTF-2000.
2999         (UINT16_VALUE_P): New inline function in UTF-2000.
3000         (UINT16_ENCODE): New inline function in UTF-2000.
3001         (UINT16_DECODE): New inline function in UTF-2000.
3002         (UINT8_TO_UINT16): New inline function in UTF-2000.
3003         (mark_uint16_byte_table): New function in UTF-2000.
3004         (print_uint16_byte_table): New function in UTF-2000.
3005         (uint16_byte_table_equal): New function in UTF-2000.
3006         (uint16_byte_table_hash): New function in UTF-2000.
3007         (make_uint16_byte_table): New function in UTF-2000.
3008         (uint16_byte_table_same_value_p): New function in UTF-2000.
3009         (print_byte_table): New function in UTF-2000.
3010         (byte-table): Use `print_byte_table' as printer.
3011         (make_byte_table): Delete second argument `older'.
3012         (byte_table_same_value_p): New function in UTF-2000.
3013         (copy_byte_table): Deleted.
3014         (get_byte_table): New function in UTF-2000.
3015         (put_byte_table): New function in UTF-2000.
3016         (print_char_id_table): New function in UTF-2000.
3017         (char-id-table): Use `print_char_id_table' as printer.
3018         (make_char_id_table): Delete second argument `older'.
3019         (get_char_id_table): Use `get_byte_table [new implementation].
3020         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3021         implementation].
3022         (Ffind_char_attribute_table): New function in UTF-2000.
3023         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3024         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3025         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3026         (syms_of_mule_charset): Add new function
3027         `find-char-attribute-table' in UTF-2000.
3028
3029         * lrecord.h (enum lrecord_type): Add
3030         `lrecord_type_uint16_byte_table' and
3031         `lrecord_type_uint8_byte_table'.
3032
3033         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3034         (Lisp_Uint8_Byte_Table): New type.
3035         (XUINT8_BYTE_TABLE): New macro.
3036         (XSETUINT8_BYTE_TABLE): New macro.
3037         (UINT8_BYTE_TABLE_P): New macro.
3038         (GC_UINT8_BYTE_TABLE_P): New macro.
3039         (struct Lisp_Uint16_Byte_Table): New structure.
3040         (Lisp_Uint16_Byte_Table): New type.
3041         (XUINT16_BYTE_TABLE): New macro.
3042         (XSETUINT16_BYTE_TABLE): New macro.
3043         (UINT16_BYTE_TABLE_P): New macro.
3044         (GC_UINT16_BYTE_TABLE_P): New macro.
3045
3046 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3047
3048         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3049         (Vcharacter_ideographic_strokes_table): Deleted.
3050         (Vcharacter_total_strokes_table): Deleted.
3051         (Vcharacter_morohashi_daikanwa_table): Deleted.
3052         (Vcharacter_decomposition_table): Deleted.
3053         (Qname): Deleted because it is duplicated.
3054         (Qideographic_radical): Deleted.
3055         (Qideographic_strokes): Deleted.
3056         (Qtotal_strokes): Deleted.
3057         (Qmorohashi_daikanwa): Deleted.
3058         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3059         `ideographic-radical', `ideographic-strokes', `total-strokes',
3060         `morohashi-daikanwa' and `->decomposition'.
3061         (Fget_char_attribute): Likewise.
3062         (Fput_char_attribute): Likewise; use `make-vector' instead of
3063         `make_older_vector' for `->decomposition' value.
3064         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3065         `ideograph-daikanwa'.
3066         (syms_of_mule_charset): Delete builtin symbols `name',
3067         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3068         `morohashi-daikanwa'.
3069         (vars_of_mule_charset): Don't setup
3070         `Vcharacter_ideographic_radical_table',
3071         `Vcharacter_ideographic_strokes_table',
3072         `Vcharacter_total_strokes_table',
3073         `Vcharacter_morohashi_daikanwa_table' and
3074         `Vcharacter_decomposition_table'.
3075
3076 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3077
3078         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3079         `make_older_vector', `make_vector_newer_1' and
3080         `make_vector_newer'.
3081
3082         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3083         `make_older_vector' and `make_vector_newer'.
3084
3085         * config.h.in (HAVE_GGC): New macro.
3086
3087 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3088
3089         * mule-charset.c (struct char_attribute_list_closure): New
3090         structure in UTF-2000.
3091         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3092         (Fchar_attribute_list): Likewise.
3093         (Fset_charset_mapping_table): Use `make_vector_newer'.
3094         (Fdecode_builtin_char): New function in UTF-2000.
3095         (syms_of_mule_charset): Add new function `char-attribute-list' and
3096         `decode-builtin-char' in UTF-2000.
3097
3098         * lisp.h (make_vector_newer): New prototype.
3099
3100         * alloc.c (make_vector_newer_1): New function.
3101         (make_vector_newer): New function.
3102
3103 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3104
3105         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3106         50100)'.
3107
3108 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3109
3110         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3111         (Vcharacter_attribute_table): Deleted.
3112         (Vcharacter_name_table): Deleted.
3113         (put_char_attribute): Deleted.
3114         (remove_char_attribute): Deleted.
3115         (struct char_attribute_alist_closure): New structure.
3116         (add_char_attribute_alist_mapper): New function.
3117         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3118         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3119         (Fget_char_attribute): Likewise.
3120         (Fput_char_attribute): Likewise.
3121         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3122         of `remove_char_attribute'.
3123         (Fdefine_char): Return character.
3124         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3125         and `Vcharacter_name_table'.
3126         (complex_vars_of_mule_charset): Likewise
3127         `Vchar_attribute_hash_table'.
3128
3129 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * character.h (CHARC_CHARSET): New macro.
3132         (CHARC_CHARSET_ID): New macro.
3133         (CHARC_CODE_POINT): New macro.
3134         (CHARC_COLUMNS): New macro.
3135         (CHARC_TO_CHAR): New inline function.
3136         (CHARC_EQ): New inline function.
3137         (CHARC_ASCII_EQ): New inline function.
3138         (CHARC_IS_SPACE): New inline function.
3139         (ASCII_TO_CHARC): New inline function.
3140
3141         * char-ucs.h (encode_char_2): Deleted.
3142         (ENCODE_CHAR): Use `encode_char_1' again.
3143         (breakup_char_1): Likewise.
3144         (CHAR_TO_CHARC): New inline function.
3145
3146         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3147
3148 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3149
3150         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3151         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3152         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3153         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3154         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3155         `CHARC_IS_SPACE'.
3156         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3157
3158         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3159         `CHARC_CODE_POINT'.
3160         (x_output_display_block): Use `CHARC_CHARSET' and
3161         `CHARC_ASCII_EQ'.
3162
3163         * redisplay-tty.c (tty_output_display_block): Use
3164         `CHARC_ASCII_EQ'.
3165         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3166
3167         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3168
3169         * insdel.c (find_charsets_in_charc_string): Use
3170         `CHARC_CHARSET_ID'.
3171         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3172         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3173         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3174         (convert_charc_string_into_malloced_string): Likewise.
3175
3176 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3177
3178         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3179         instead of <Emchar_dynarr *> for buf; use
3180         `convert_bufbyte_string_into_charc_dynarr' instead of
3181         `convert_bufbyte_string_into_emchar_dynarr'; use
3182         `find_charsets_in_charc_string' instead of
3183         `find_charsets_in_emchar_string'.
3184
3185         * redisplay.h:
3186         - Include "character.h".
3187         (struct rune): New member `cglyph'; delete member `chr'.
3188
3189         * redisplay.c (redisplay_text_width_charc_string): New function;
3190         delete `redisplay_text_width_emchar_string'.
3191         (rtw_charc_dynarr): New variable; renamed from
3192         `rtw_emchar_dynarr'.
3193         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3194         `rtw_emchar_dynarr'; use
3195         `convert_bufbyte_string_into_charc_dynarr' instead of
3196         `convert_bufbyte_string_into_emchar_dynarr'; use
3197         `redisplay_text_width_charc_string' instead of
3198         `redisplay_text_width_emchar_string'.
3199         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3200         instead of `rtw_emchar_dynarr'; use
3201         `convert_bufbyte_string_into_charc_dynarr' instead of
3202         `convert_bufbyte_string_into_emchar_dynarr'.
3203         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3204         `redisplay_text_width_charc_string' instead of
3205         `redisplay_text_width_emchar_string'.
3206         (create_text_block): Modify for <struct rune> change.
3207         (generate_formatted_string_db): Likewise.
3208         (create_string_text_block): Likewise.
3209         (pixel_to_glyph_translation): Likewise.
3210
3211         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3212         instead of <const Emchar *>.
3213         (x_text_width): Likewise.
3214         (x_output_display_block): Use <Charc_dynarr *> instead
3215         <Emchar_dynarr *>; modify for <structure rune> change.
3216         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3217         *>.
3218
3219         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3220         <const Emchar *>; use `charc_string_displayed_columns' instead of
3221         `emchar_string_displayed_columns'.
3222         (tty_output_display_block): Use <Charc_dynarr *> instead of
3223         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3224         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3225         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3226         `tty_output_emchar_dynarr_dynarr'.
3227         (tty_output_charc_dynarr): New function; delete
3228         `tty_output_charc_dynarr'.
3229
3230         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3231         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3232         <Emchar_dynarr *> for buf; use
3233         `convert_bufbyte_string_into_charc_dynarr' instead of
3234         `convert_bufbyte_string_into_emchar_dynarr'.
3235
3236         * frame.c (title_string_charc_dynarr): New variable; renamed from
3237         `title_string_emchar_dynarr'.
3238         (generate_title_string): Use `title_string_charc_dynarr' instead
3239         of `title_string_emchar_dynarr'; use
3240         `convert_charc_string_into_malloced_string' instead of
3241         `convert_emchar_string_into_malloced_string'.
3242         (init_frame): Use `title_string_charc_dynarr' instead of
3243         `title_string_emchar_dynarr'.
3244
3245         * console.h:
3246         - Include "character.h".
3247         (struct console_methods): Use <const Charc *> instead of <const
3248         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3249         <Emchar_dynarr *> in output_string_method.
3250
3251         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3252         <Emchar_dynarr *>.
3253
3254         * console-stream.c (stream_text_width): Use <const Charc *>
3255         instead of <const Emchar *>.
3256
3257         * character.h (Charc_dynarr): New type.
3258
3259         * char-ucs.h (structure Charc): New structure; define new type
3260         `Charc'.
3261
3262         * char-lb.h (DECODE_CHAR): New inline function.
3263         (encode_char_1): New inline function.
3264         (ENCODE_CHAR): New macro.
3265         (structure Charc): New structure; define new type `Charc'.
3266
3267         * char-1byte.h (Vcharset_control_1): New macro.
3268         (Vcharset_latin_iso8859_1): New macro.
3269         (DECODE_CHAR): New inline function.
3270         (encode_char_1): New inline function.
3271         (ENCODE_CHAR): New macro.
3272         (structure Charc): New structure; define new type `Charc'.
3273
3274         * insdel.c (find_charsets_in_charc_string): New function; delete
3275         `find_charsets_in_emchar_string'.
3276         (charc_string_displayed_columns): New function; delete
3277         `emchar_string_displayed_columns'.
3278         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3279         `convert_bufbyte_string_into_emchar_dynarr'.
3280         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3281         `convert_charc_string_into_bufbyte_dynarr'.
3282         (convert_charc_string_into_malloced_string): New function; delete
3283         `convert_charc_string_into_malloced_string'.
3284
3285         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3286         `find_charsets_in_emchar_string'.
3287         (charc_string_displayed_columns): New prototype; delete
3288         `emchar_string_displayed_columns'.
3289         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3290         `convert_charc_string_into_bufbyte_dynarr'.
3291         (convert_charc_string_into_malloced_string): New prototype; delete
3292         `convert_charc_string_into_malloced_string'.
3293
3294 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3295
3296         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3297
3298 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3299
3300         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3301
3302         * char-ucs.h: Use <short> for <Charset_ID>.
3303
3304         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3305         <Charset_ID>.
3306
3307 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3308
3309         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3310         to 0.16.
3311
3312 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3313
3314         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3315         variable.
3316         (Qmorohashi_daikanwa): New variable.
3317         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3318         for `morohashi-daikanwa' attribute.
3319         (Fget_char_attribute): Likewise.
3320         (Fput_char_attribute): Likewise.
3321         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3322         has the same value of `ideograph-daikanwa'.
3323         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3324         (vars_of_mule_charset): Setup
3325         `Vcharacter_morohashi_daikanwa_table'.
3326
3327 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3328
3329         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3330         attributes.
3331         (add_charset_to_list_mapper): Add `key' instead of
3332         `XCHARSET_NAME (value)' to return aliases.
3333
3334 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3337         variable.
3338         (Vcharacter_ideographic_strokes_table): New variable.
3339         (Qideographic_radical): New variable.
3340         (Qideographic_strokes): New variable.
3341         (Fchar_attribute_alist): Use
3342         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3343         attribute; use `Vcharacter_ideographic_strokes_table' for
3344         `ideographic-strokes' attribute.
3345         (Fget_char_attribute): Likewise.
3346         (Fput_char_attribute): Likewise.
3347         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3348         `ideographic-strokes'.
3349         (vars_of_mule_charset): Setup
3350         `Vcharacter_ideographic_radical_table' and
3351         `Vcharacter_ideographic_strokes_table'.
3352
3353 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3354
3355         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3356         (Qtotal_strokes): New variable.
3357         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3358         `total-strokes' attribute.
3359         (Fget_char_attribute): Likewise.
3360         (Fput_char_attribute): Likewise.
3361         (syms_of_mule_charset): Add new symbol `total-strokes'.
3362         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3363
3364 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3365
3366         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3367         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3368         are found.
3369         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3370         `->decomposition' attribute.
3371         (Fput_char_attribute): Likewise.
3372         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3373
3374 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3375
3376         * mule-charset.c (decoding_table_check_elements): New function.
3377         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3378
3379 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380
3381         * mule-charset.c (Fset_charset_mapping_table): Use
3382         `put_char_ccs_code_point'.
3383
3384 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3385
3386         * mule-charset.c (decoding_table_put_char): New inline function.
3387         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3388
3389 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3390
3391         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3392         (XCHARSET_BYTE_SIZE): New macro.
3393         (decoding_table_remove_char): New inline function.
3394         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3395         `decoding_table_remove_char'.
3396         (remove_char_ccs): Use `decoding_table_remove_char'.
3397         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3398
3399 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3400
3401         * mule-charset.c (Vcharacter_name_table): New variable.
3402         (Qname): New variable.
3403         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3404         attribute.
3405         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3406         `Vcharacter_name_table' for `name' attribute.
3407         (Fremove_char_attribute): Use function `remove_char_ccs'.
3408         (put_char_ccs_code_point): New function.
3409         (remove_char_ccs): New function.
3410         (syms_of_mule_charset): Add new symbol `name'.
3411         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3412
3413 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3414
3415         * mule-charset.c (make_byte_table): Add new argument `older'.
3416         (make_char_id_table): Likewise.
3417         (copy_char_id_table): Comment out because it is not used.
3418         (put_char_id_table): Modify for `make_byte_table'.
3419         (Fput_char_attribute): Make encoding_table as older object;
3420         inherit older bit of `Vcharacter_composition_table'.
3421         (mark_charset): Don't mark `cs->encoding_table'.
3422         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3423         normal object; make `Vcharacter_composition_table' as an older
3424         object; delete staticpro for `Vcharacter_composition_table'; make
3425         `Vcharacter_variant_table' as a normal object.
3426
3427         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3428         (mark_object): Don't check older object in UTF-2000.
3429
3430         * lrecord.h (struct lrecord_header): Add new member `older' in
3431         UTF-2000.
3432         (set_lheader_implementation): Setup `SLI_header->older' in
3433         UTF-2000.
3434         (set_lheader_older_implementation): New macro in UTF-2000.
3435         (OLDER_RECORD_P): New macro in UTF-2000.
3436         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3437         (alloc_older_lcrecord): New prototype in UTF-2000.
3438         (alloc_older_lcrecord_type): New macro in UTF-2000.
3439
3440 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3441
3442         * mule-charset.c (byte_table_description): Use
3443         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3444         (char_id_table_description): Delete bogus `, 1'.
3445         (Fget_char_attribute): Refer encoding_table of each coded-charset
3446         to get value of coded-charset attribute of a character.
3447         (Fput_char_attribute): Use `make_older_vector' instead of
3448         `make_vector'; use encoding_table of each coded-charset to store
3449         value of coded-charset attribute of a character.
3450         (Fremove_char_attribute): Use encoding_table of each coded-charset
3451         to store value of coded-charset attribute of a character.
3452         (mark_charset): Mark `cs->encoding_table'; don't mark
3453         `cs->decoding_table'.
3454         (charset_description): Add description of new member
3455         `encoding_table'.
3456         (make_charset): Initialize `encoding_table'.
3457
3458         * char-ucs.h (struct Lisp_Charset): Add new member
3459         `encoding_table'.
3460         (CHARSET_ENCODING_TABLE): New macro.
3461         (XCHARSET_ENCODING_TABLE): New macro.
3462         (charset_code_point): New implementation.
3463         (encode_char_1): Likewise.
3464
3465         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3466         (disksave_object_finalization_1): Call finalizers of
3467         `all_older_lcrecords' in UTF-2000.
3468         (make_older_vector): New function in UTF-2000.
3469         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3470         UTF-2000.
3471
3472         * lisp.h (make_older_vector): New prototype in UTF-2000.
3473
3474 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * lrecord.h (enum lrecord_type): Rename
3477         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3478
3479         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3480         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3481         `get_char_code_table'.
3482
3483         * mule-charset.c (mark_char_id_table): Renamed from
3484         `mark_char_code_table'.
3485         (char_id_table_equal): Renamed from `char_code_table_equal'.
3486         (char_id_table_hash): Renamed from `char_code_table_hash'.
3487         (make_char_id_table): Renamed from `make_char_code_table'.
3488         (copy_char_id_table): Renamed from `copy_char_code_table'.
3489         (get_char_id_table): Renamed from `get_char_code_table'.
3490         (put_char_id_table): Renamed from `put_char_code_table'.
3491         (to_char_id): Renamed from `to_char_code'.
3492
3493         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3494         `Lisp_Char_Code_Table'.
3495         (char_id_table): Renamed from `char_code_table'.
3496         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3497         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3498         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3499         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3500         (get_char_id_table): Renamed from `get_char_code_table'.
3501
3502 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3503
3504         * lrecord.h (enum lrecord_type): Rename
3505         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3506
3507         * mule-charset.c (mark_byte_table): Renamed from
3508         `mark_char_byte_table'.
3509         (byte_table_equal): Renamed from `char_byte_table_equal'.
3510         (byte_table_hash): Renamed from `byte_table_hash'.
3511         (make_byte_table): Renamed from `make_byte_table'.
3512         (copy_byte_table): Renamed from `copy_char_byte_table'.
3513
3514         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3515         `Lisp_Char_Byte_Table'.
3516         (byte_table): Renamed from `char_byte_table'.
3517         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3518         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3519         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3520         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3521
3522 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3523
3524         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3525         (dfc_convert_to_internal_format): Likewise.
3526         
3527         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3528         * text-coding.c (Fcoding_system_alias_p): New function.
3529         * text-coding.c (Fcoding_system_aliasee): New function.
3530         * text-coding.c (append_suffix_to_symbol): New function.
3531         * text-coding.c (dangling_coding_system_alias_p): New function.
3532         * text-coding.c (Ffind_coding_system):
3533         * text-coding.c (Fcopy_coding_system):
3534         * text-coding.c (encode_coding_no_conversion):
3535         * text-coding.c (syms_of_file_coding):
3536         * text-coding.c (vars_of_file_coding):
3537         Rewrite coding system alias code.
3538         Allow nested aliases, like symbolic links.
3539         Allow redefinition of coding system aliases.
3540         Prevent existence of dangling coding system aliases.
3541         Eliminate convert_to_external_format.
3542         Eliminate convert_to_internal_format.
3543         
3544         * text-coding.c: Change enum eol_type to eol_type_t.
3545
3546 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3547
3548         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3549         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3550
3551         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3552         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3553
3554 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3555
3556         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3557         `ideograph-daikanwa'.
3558
3559         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3560         (Vcharset_ucs_bmp): Likewise.
3561         (Vcharset_mojikyo): Add new extern variable definition.
3562         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3563         (Vcharset_latin_iso8859_3): Likewise.
3564         (Vcharset_latin_iso8859_4): Likewise.
3565         (Vcharset_latin_iso8859_9): Likewise.
3566         (Vcharset_latin_viscii_lower): Likewise.
3567         (Vcharset_latin_viscii_upper): Likewise.
3568         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3569         `mojikyo' code-point is used to decode.
3570         (encode_char_2): New function [to convert `mojikyo' code-point to
3571         Mojikyo font encoding].
3572         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3573         (breakup_char_1): Likewise.
3574         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3575
3576 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3577
3578         * text-coding.c (Fmake_coding_system): Add document about
3579         `disable-composition' property.
3580
3581 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3582
3583         * text-coding.c (Qdisable_composition): New variable; delete
3584         `Qcomposite'.
3585         (Fmake_coding_system): Add new property `disable-composite';
3586         delete property `composite'.
3587         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3588         instead of `!CODING_SYSTEM_COMPOSITE'.
3589         (syms_of_file_coding): Add new symbol `disable-composition';
3590         delete symbol `composite'.
3591
3592         * file-coding.h (struct Lisp_Coding_System): Add
3593         `disable_composition'; delete `enable_composition'.
3594         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3595         `CODING_SYSTEM_COMPOSITE'.
3596         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3597         `XCODING_SYSTEM_COMPOSITE'.
3598
3599 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3600
3601         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3602         to 0.15.
3603
3604 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3605
3606         * text-coding.c (Qcomposite): New variable.
3607         (Fmake_coding_system): Add new property `composite'.
3608         (struct decoding_stream): Add `combined_char_count',
3609         `combined_chars' and `combining_table' in UTF-2000.
3610         (COMPOSE_FLUSH_CHARS): New macro.
3611         (COMPOSE_ADD_CHAR): New macro.
3612         (reset_decoding_stream): Reset `str->combined_char_count' and
3613         `str->combining_table' in UTF-2000.
3614         (decode_coding_iso2022): Modify for character-decomposition.
3615         (syms_of_file_coding): Add new symbol `composite'.
3616
3617 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3618
3619         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3620         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3621         of `Vcharacter_composition_table' if `->decomposition' property
3622         has only 1 element.
3623         (Qlatin_tcvn5712): New variable.
3624         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3625         (complex_vars_of_mule_charset): Add new coded-charset
3626         `latin-tcvn5712'.
3627
3628         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3629
3630 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3631
3632         * file-coding.h (struct Lisp_Coding_System): Add
3633         `enable_composition'.
3634         (CODING_SYSTEM_COMPOSITE): New macro.
3635         (XCODING_SYSTEM_COMPOSITE): New macro.
3636
3637 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3638
3639         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3640
3641 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3642
3643         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3644         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3645
3646 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3647
3648         * mule-charset.c (Vcharset_mojikyo): New variable.
3649         (Fdefine_char): Don't use coded-charset which does not have
3650         non-builtin character range to allocate character-id.
3651         (Qmojikyo): New variable.
3652         (syms_of_mule_charset): Add new symbol `mojikyo'.
3653         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3654
3655         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3656         (LEADING_BYTE_MOJIKYO): New macro.
3657         (MIN_CHAR_MOJIKYO): New macro.
3658         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3659         (MAX_CHAR_MOJIKYO): New macro.
3660
3661 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3662
3663         * mule-charset.c (remove_char_attribute): Fixed.
3664
3665 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3666
3667         * mule-charset.c (remove_char_attribute): New function.
3668         (Fremove_char_attribute): New function.
3669         (encode_builtin_char_1): Comment out builtin-support for
3670         greek-iso8859-7 and cyrillic-iso8859-5.
3671         (Fdecode_char): Check `code' is an integer.
3672         (syms_of_mule_charset): Add `remove-char-attribute'.
3673         (MIN_CHAR_GREEK): Deleted.
3674         (MAX_CHAR_GREEK): Likewise.
3675         (MIN_CHAR_CYRILLIC): Likewise.
3676         (MAX_CHAR_CYRILLIC): Likewise.
3677         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3678         MAX_CHAR_GREEK for `greek-iso8859-7'.
3679
3680         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3681         (MAX_CHAR_GREEK): Likewise.
3682         (MIN_CHAR_CYRILLIC): Likewise.
3683         (MAX_CHAR_CYRILLIC): Likewise.
3684
3685 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3686
3687         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3688         format is used without `ucs' property.
3689         (Fdecode_char): Fix problem with GR representation.
3690         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3691         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3692
3693 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3694
3695         * mule-charset.c (make_builtin_char): New function.
3696         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3697         (Fset_charset_mapping_table): Modify for new representation of
3698         code-point.
3699         (Fdecode_char): New function.
3700         (syms_of_mule_charset): Add new builtin function `decode-char' in
3701         UTF-2000.
3702
3703         * char-ucs.h (make_builtin_char): New prototype.
3704         (DECODE_CHAR): New inline function.
3705         (MAKE_CHAR): Use `DECODE_CHAR'.
3706
3707 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3708
3709         * text-coding.c (parse_charset_conversion_specs): Use
3710         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3711         `XCHARSET_TYPE'.
3712         (iso2022_designate): Likewise.
3713
3714         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3715         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3716
3717         * mule-charset.c (Vcharset_ucs): New variable.
3718         (print_charset): Change design; use `CHARSET_CHARS' and
3719         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3720         (make_charset): Change signature to specify `chars' and
3721         `dimension' instead of `type'.
3722         (range_charset_code_point): Modify for 256^n-set.
3723         (encode_builtin_char_1): Encode as `ucs' in default.
3724         (Fmake_charset): Modify for `make_charset'.
3725         (Fmake_reverse_direction_charset): Likewise.
3726         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3727         UTF-2000.
3728         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3729         for `make_charset'.
3730
3731         * char-ucs.h (Vcharset_ucs): New variable.
3732         (LEADING_BYTE_UCS): New macro.
3733         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3734         and `chars' to `unsigned short' from `unsigned int'.
3735         (CHARSET_TYPE): Deleted.
3736         (XCHARSET_TYPE): Deleted.
3737
3738 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3739
3740         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3741
3742         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3743         (ENCODE_CHAR): New macro.
3744
3745 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3746
3747         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3748         to 0.14 (Kawachi-Katakami).
3749
3750 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * text-coding.c (char_encode_shift_jis): Modify for
3753         `charset_code_point'.
3754         (char_encode_iso2022): Likewise.
3755
3756         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3757         (integer) instead of list of <Lisp_Object>s (integers) as the
3758         format of code-point of a coded-charset.
3759         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3760         (encode_builtin_char_1): New function; delete
3761         `split_builtin_char'.
3762         (charset_code_point): Return <int> instead of <Lisp_Object>.
3763         (Fsplit_char): Don't use `SPLIT_CHAR'.
3764
3765         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3766         prototype for `split_builtin_char'.
3767         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3768         (charset_code_point): Likewise.
3769         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3770         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3771
3772 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3773
3774         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3775         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3776
3777 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3778
3779         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3780
3781         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3782         (MAX_CHAR_OBS_94x94): Deleted.
3783
3784 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3785
3786         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3787
3788         * char-ucs.h (MAX_CHAR_BMP): New macro.
3789
3790 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3791
3792         * text-coding.c: Sync with r21-2-24.
3793
3794 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3795
3796         * file-coding.c: Modify for UTF-2000.
3797
3798 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3799
3800         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3801         to 0.13 (Takaida).
3802
3803 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * mule-charset.c (split_builtin_char): Delete builtin support for
3806         `katakana-jisx0201'.
3807         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3808         BMP area in builtin representation.
3809
3810         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3811         `Vcharset_katakana_jisx0201'.
3812
3813 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3814
3815         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3816         (Qisolated): New variable.
3817         (Qinitial): New variable.
3818         (Qmedial): New variable.
3819         (Qfinal): New variable.
3820         (Qvertical): New variable.
3821         (Qsmall): New variable.
3822         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3823         `Qvertical' and `Qsmall'.
3824         (Qmojikyo_pj_[1 .. 21]): New variable.
3825         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3826         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3827         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3828         .. 21]'.
3829
3830 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3831
3832         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3833         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3834         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3835
3836 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3837
3838         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3839         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3840         BMP.
3841         (Qjapanese_jisx0208_1990): New variable.
3842         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3843         (complex_vars_of_mule_charset): Add new coded-charset
3844         `japanese-jisx0208-1990'.
3845
3846         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3847         (MIN_CHAR_JIS_X0208_1990): New macro.
3848         (MAX_CHAR_JIS_X0208_1990): New macro.
3849
3850 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3851
3852         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3853         coded-charset is not found.
3854
3855 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3856
3857         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3858         (Fdefine_char): Use `Fmake_char'.
3859
3860 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3861
3862         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3863         (Vcharset_hiragana_jisx0208): Deleted.
3864         (Vcharset_katakana_jisx0208): Deleted.
3865         (Qideograph_daikanwa): New variable.
3866         (Qhiragana_jisx0208): Deleted.
3867         (Qkatakana_jisx0208): Deleted.
3868         (split_builtin_char): Split `ideograph-daikanwa'.
3869         (Fsplit_char): New implementation for UTF-2000.
3870         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3871         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3872         (complex_vars_of_mule_charset): Add new coded-charset
3873         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3874         `katakana-jisx0208'.
3875
3876         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3877         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3878         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3879         (MIN_CHAR_DAIKANWA): New macro.
3880         (MAX_CHAR_DAIKANWA): New macro.
3881
3882 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3883
3884         * data.c (Fstring_to_number): Don't recognize floating point if
3885         base is not 10.
3886
3887 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3888
3889         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3890
3891 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3892
3893         * mule-charset.c (Qsquare): New variable.
3894         (to_char_code): Add `Qsquare'.
3895         (syms_of_mule_charset): Add new symbol `square'.
3896
3897 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3898
3899         * mule-charset.c (Qcircle): New variable.
3900         (to_char_code): Add `Qcircle'.
3901         (syms_of_mule_charset): Add new symbol `circle'.
3902
3903 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3904
3905         * mule-charset.c (Qfont): New variable.
3906         (to_char_code): Add `Qfont'.
3907         (syms_of_mule_charset): Add new symbol `font'.
3908
3909 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3910
3911         * mule-charset.c (Qsub): New variable.
3912         (to_char_code): Add `Qsub'.
3913         (syms_of_mule_charset): Add new symbol `sub'.
3914
3915 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3916
3917         * mule-charset.c (Fput_char_attribute): Convert each element of
3918         VALUE to GL position if ATTRIBUTE is a GR-set,
3919
3920 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3921
3922         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3923         coded-charset is a GR-set.
3924
3925 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3926
3927         * mule-charset.c (Fput_char_attribute): Check each element of
3928         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3929
3930 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3931
3932         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3933         UTF-2000.
3934         (Qethiopic_ucs): New variable in UTF-2000.
3935         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3936         (complex_vars_of_mule_charset): Add new coded-charset
3937         `ethiopic-ucs' in UTF-2000.
3938
3939         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3940         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3941         9)'.
3942         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3943         10)'.
3944         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3945
3946 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3947
3948         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3949         `ascii'.
3950
3951 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3952
3953         * mule-charset.c (Vcharacter_variant_table): New variable.
3954         (Q_ucs): New variable.
3955         (Fchar_variants): New function.
3956         (Fput_char_attribute): Register `->ucs' value to
3957         `Vcharacter_variant_table'.
3958         (syms_of_mule_charset): Add new function `char-variants' and new
3959         symbol `->ucs'.
3960         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3961
3962 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3963
3964         * mule-charset.c (get_char_code_table): Allow negative character
3965         code.
3966         (put_char_code_table): Likewise.
3967         (Vcharacter_composition_table): New variable.
3968         (Q_decomposition): New variable.
3969         (Qwide): New variable.
3970         (Qnarrow): New variable.
3971         (Qcompat): New variable.
3972         (QnoBreak): New variable.
3973         (Qsuper): New variable.
3974         (Qfraction): New variable.
3975         (to_char_code): New function.
3976         (Fget_composite_char): New function.
3977         (Fput_char_attribute): Register `->decomposition' value to
3978         `Vcharacter_composition_table'.
3979         (syms_of_mule_charset): Add new function `get-composite-char', new
3980         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3981         `super' and `fraction'.
3982         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3983
3984 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3985
3986         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3987         character; copy the return value.
3988
3989 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3992
3993         * mule-charset.c (range_charset_code_point): Must use make_int.
3994         (split_builtin_char): New function.
3995
3996 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3997
3998         * mule-charset.c (char_byte_table): Change name from
3999         "char-code-table" to "char-byte-table".
4000         (mark_char_code_table): New function.
4001         (char_code_table_equal): New function.
4002         (char_code_table_hash): New function.
4003         (char_code_table_description): New constant.
4004         (char_code_table): New type.
4005         (make_char_code_table): New function.
4006         (copy_char_code_table): New function.
4007         (get_char_code_table): Modify for `char_code_table' type.
4008         (put_char_code_table): Likewise.
4009         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4010         (Kashiwara).
4011
4012         * char-ucs.h (char_code_table): New type.
4013         (XCHAR_CODE_TABLE): New macro.
4014         (XSETCHAR_CODE_TABLE): New macro.
4015         (CHAR_CODE_TABLE_P): New macro.
4016         (GC_CHAR_CODE_TABLE_P): New macro.
4017         (struct Lisp_Char_Code_Table): New structure.
4018
4019 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * mule-charset.c (Fmake_charset): Setup byte_offset for
4022         {94|96}^n-set.
4023
4024 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4027         character.
4028
4029 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4030
4031         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4032         is found.
4033
4034 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4035
4036         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4037         charset, it is regarded as a charset.
4038         (put_char_attribute): New function in UTF-2000.
4039         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4040         charset, mapping-table of the charset is modified.
4041         (Fdefine_char): New function in UTF-2000.
4042         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4043         `Fput_char_attribute'.
4044         (syms_of_mule_charset): Add new function `define-char' and new
4045         symbol `ucs' in UTF-2000.
4046         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4047
4048 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4049
4050         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4051         non-UTF-2000 configuration.
4052
4053 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4054
4055         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4056         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4057
4058         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4059         deleted.
4060         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4061         (Fset_charset_mapping_table): Likewise.
4062
4063         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4064         (CHARSET_ENCODING_TABLE): Delete.
4065         (XCHARSET_ENCODING_TABLE): Delete.
4066         (charset_code_point): New interface.
4067
4068 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4069
4070         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4071         instead of `charset_get_byte1' and `charset_get_byte2'.
4072
4073         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4074         (charset_get_byte2): Deleted.
4075
4076 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4077
4078         * char-ucs.h (SPLIT_CHAR): New inline function.
4079         (breakup_char_1): Use `SPLIT_CHAR'.
4080
4081         * mule-charset.c (range_charset_code_point): New function.
4082         (charset_code_point): New function.
4083
4084         * char-ucs.h (range_charset_code_point): New interface.
4085         (breakup_char_1): Use `range_charset_code_point'.
4086
4087 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4088
4089         * mule-charset.c (Fmake_charset): Delete unused local variable
4090         `code_offset'.
4091
4092         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4093         (breakup_char_1): Find a charset and code-point in
4094         `Vcharacter_attribute_table'.
4095
4096 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4097
4098         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4099         to 0.10 (Yao).
4100
4101 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4102
4103         * mule-charset.c (Vcharacter_attribute_table): New variable.
4104         (Fchar_attribute_alist): New function.
4105         (Fget_char_attribute): New function.
4106         (Fput_char_attribute): New function.
4107         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4108         too.
4109         (syms_of_mule_charset): Add new function `char-attribute-alist',
4110         `get-char-attribute' and `put-char-attribute'.
4111         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4112
4113 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4114
4115         * mule-charset.c (Fmake_charset): Just use
4116         `get_unallocated_leading_byte'.
4117
4118         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4119         sets; don't use final-byte based number for private sets.
4120
4121 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4124         integer.
4125
4126 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4127
4128         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4129         to 0.9.
4130
4131 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4132
4133         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4134         of `CHAR_LEADING_BYTE' in UTF-2000.
4135
4136         * insdel.c (find_charsets_in_bufbyte_string): Use
4137         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4138         (find_charsets_in_emchar_string): Likewise.
4139
4140         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4141         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4142
4143         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4144         (CHAR_CHARSET_ID): New macro.
4145
4146 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4147
4148         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4149         charset-id - MIN_LEADING_BYTE.
4150         (put_char_table): Likewise.
4151
4152 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4153
4154         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4155         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4156         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4157         (CHARSET_ID_OFFSET): New macro.
4158         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4159         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4160         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4161         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4162         4).
4163         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4164         5).
4165         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4166         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4167         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4168         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4169         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4170
4171 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4172
4173         * mule-charset.c (next_allocated_leading_byte): New variable in
4174         UTF-2000.
4175         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4176         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4177         (get_unallocated_leading_byte): Simply use
4178         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4179         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4180         UTF-2000.
4181
4182         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4183         (MAX_LEADING_BYTE_PRIVATE): New macro.
4184         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4185         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4186
4187 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4188
4189         * mule-charset.c (Fmake_charset): Allocate final-byte based
4190         charset-id for 94-set, 96-set and 94x94-set.
4191
4192 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4193
4194         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4195         ambiguous `else'.
4196         (Fmake_charset): Likewise.
4197         (complex_vars_of_mule_charset): Modify the font registry of
4198         `ucs-bmp' not to match `Ethiopic-Unicode'.
4199
4200 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4201
4202         * mule-charset.c (complex_vars_of_mule_charset): Add font
4203         registory of `ucs-bmp'.
4204
4205 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4206
4207         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4208         coded-charsets in `default-coded-charset-priority-list' when
4209         breaking up a character.
4210
4211         * mule-charset.c (Vcharset_latin_viscii): New variable.
4212         (Qlatin_viscii): New variable.
4213         (make_charset): Don't use `decoding_table'.
4214         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4215         byte_offset.
4216         (Fset_charset_mapping_table): New implementation.
4217         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4218         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4219         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4220         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4221         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4222         charset `latin_viscii'.
4223
4224         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4225         (CHARSET_TYPE_94X94): Change to 1 from 2.
4226         (CHARSET_TYPE_96): Change to 2 from 1.
4227         (CHARSET_TYPE_128): New macro.
4228         (CHARSET_TYPE_128X128): Change to 5 from 4.
4229         (CHARSET_TYPE_256): New macro.
4230         (CHARSET_TYPE_256X256): Change to 7 from 5.
4231         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4232
4233 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4234
4235         * text-coding.c (char_encode_shift_jis): Refer
4236         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4237         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4238
4239         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4240         (char_byte_table_equal): New function in UTF-2000.
4241         (char_byte_table_hash): New function in UTF-2000.
4242         (char_byte_table_description): New constant in UTF-2000.
4243         (char_byte_table): New type in UTF-2000.
4244         (make_char_byte_table): New function in UTF-2000.
4245         (copy_char_byte_table): New function in UTF-2000.
4246         (make_char_code_table): New macro in UTF-2000.
4247         (get_char_code_table): New function in UTF-2000.
4248         (put_char_code_table): New function in UTF-2000.
4249         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4250         (charset_description): Add setting in UTF-2000.
4251         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4252         `CHARSET_TO_BYTE1_TABLE(cs)'.
4253         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4254         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4255         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4256         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4257         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4258         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4259         `CHARSET_TO_BYTE2_TABLE(cs)'.
4260
4261         * char-ucs.h (char_byte_table): New type.
4262         (XCHAR_BYTE_TABLE): New macro.
4263         (XSETCHAR_BYTE_TABLE): New macro.
4264         (CHAR_BYTE_TABLE_P): New macro.
4265         (GC_CHAR_BYTE_TABLE_P): New macro.
4266         (struct Lisp_Char_Byte_Table): New structure.
4267         (get_char_code_table): New interface.
4268         (Emchar_to_byte_table): Deleted.
4269         (get_byte_from_character_table): Deleted.
4270         (struct Lisp_Charset): Add `encoding_table'; delete
4271         `to_byte1_table' and `to_byte2_table'.
4272         (CHARSET_ENCODING_TABLE): New macro.
4273         (CHARSET_TO_BYTE1_TABLE): Deleted.
4274         (CHARSET_TO_BYTE2_TABLE): Deleted.
4275         (XCHARSET_ENCODING_TABLE): New macro.
4276         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4277         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4278
4279 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4280
4281         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4282         `vietnamese-viscii-*'.
4283
4284 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4285
4286         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4287         (Qvietnamese_viscii_upper): New variable.
4288         (Fdefine_charset_alias): New function.
4289         (syms_of_mule_charset): Add new function `define-charset-alias'.
4290         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4291         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4292         `latin-viscii-*'.
4293
4294 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4295
4296         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4297         (MAX_CHAR_OBS_94x94): New macro.
4298         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4299         for 94x94 sets.
4300
4301         * mule-charset.c (put_byte_from_character_table): Change unit size
4302         from 128 to 256.
4303         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4304         not defined.
4305         (Fmake_reverse_direction_charset): Modify dummy argument of
4306         `make_charset' for non-UTF-2000 environment.
4307
4308 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4309
4310         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4311
4312         * mule-charset.c (destroy_byte_from_character_table): New macro.
4313         (latin_jisx0201_to_ucs): Deleted.
4314         (latin_iso8859_2_to_ucs): Deleted.
4315         (latin_iso8859_3_to_ucs): Deleted.
4316         (latin_iso8859_4_to_ucs): Deleted.
4317         (latin_iso8859_9_to_ucs): Deleted.
4318         (latin_viscii_lower_to_ucs): Deleted.
4319         (latin_viscii_upper_to_ucs): Deleted.
4320         (mark_charset): Mark `cs->decoding_table'.
4321         (Fcharset_mapping_table): Fix DOC-string.
4322         (Fset_charset_mapping_table): New function.
4323         (syms_of_mule_charset): Add nwe function
4324         `set-charset-mapping-table'.
4325         (complex_vars_of_mule_charset): Don't setup and use
4326         `latin_*_to_ucs'.
4327
4328 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4329
4330         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4331         charset.
4332
4333 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4334
4335         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4336         (Vcharset_katakana_jisx0208): New variable.
4337         (Qhiragana_jisx0208): New variable.
4338         (Qkatakana_jisx0208): New variable.
4339         (make_charset): Add new argument `byte_offset'.
4340         (charset_get_byte1): Modify for new coded-charset definition; use
4341         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4342         `XCHARSET_BYTE_OFFSET'.
4343         (Fmake_charset): Modify for `make_charset'.
4344         (Fmake_reverse_direction_charset): Likewise.
4345         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4346         `katakana-jisx0208'.
4347         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4348         `.'  in font registry of charset `katakana-jisx0201',
4349         `latin-jisx0201', `vietnamese-viscii-lower' and
4350         `vietnamese-viscii-upper'; modify DOC-string of charset
4351         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4352         registry of charset `japanese-jisx0208' not to use font for JIS
4353         X0208:1990; add new charset `hiragana-jisx0208' and
4354         `katakana-jisx0208'.
4355
4356         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4357         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4358         (struct Lisp_Charset): Add `byte_offset'.
4359         (CHARSET_BYTE_OFFSET): New macro.
4360         (XCHARSET_UCS_MIN): New macro.
4361         (XCHARSET_UCS_MAX): New macro.
4362         (XCHARSET_CODE_OFFSET): New macro.
4363         (XCHARSET_BYTE_OFFSET): New macro.
4364         (MIN_CHAR_HIRAGANA): New macro.
4365         (MAX_CHAR_HIRAGANA): New macro.
4366         (MIN_CHAR_KATAKANA): New macro.
4367         (MAX_CHAR_KATAKANA): New macro.
4368         (MAKE_CHAR): Modify for new coded-charset definition; use
4369         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4370         `XCHARSET_BYTE_OFFSET'.
4371
4372 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4373
4374         * mule-charset.c (CHAR96): Deleted.
4375         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4376         <Lisp_Object>.
4377         (latin_iso8859_2_to_ucs): Likewise.
4378         (latin_iso8859_3_to_ucs): Likewise.
4379         (latin_iso8859_4_to_ucs): Likewise.
4380         (latin_iso8859_9_to_ucs): Likewise.
4381         (latin_viscii_lower_to_ucs): Likewise.
4382         (latin_viscii_upper_to_ucs): Likewise.
4383         (latin_tcvn5712_to_ucs): Commented out.
4384         (make_charset): Change type of argument `decoding_table' from
4385         <Emchar*> to <Lisp_Object> [vector of characters].
4386         (Fmake_charset): Modify for `make_charset'.
4387         (Fmake_reverse_direction_charset): Likewise.
4388         (Fcharset_mapping_table): New function in UTF-2000.
4389         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4390         UTF-2000.
4391         (complex_vars_of_mule_charset): Modify for type change of
4392         `*_to_ucs'; modify for `make_charset'.
4393
4394         * char-ucs.h (struct Lisp_Charset): Change type of
4395         `decoding_table' from <Emchar*> to <Lisp_Object>.
4396         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4397
4398 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4399
4400         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4401         error with non-UTF-2000-Mule.
4402
4403 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4404
4405         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4406         in lisp again].
4407         (Vcharset_chinese_cns11643_4): Likewise.
4408         (Vcharset_chinese_cns11643_5): Likewise.
4409         (Vcharset_chinese_cns11643_6): Likewise.
4410         (Vcharset_chinese_cns11643_7): Likewise.
4411         (Qchinese_cns11643_3): Likewise.
4412         (Qchinese_cns11643_4): Likewise.
4413         (Qchinese_cns11643_5): Likewise.
4414         (Qchinese_cns11643_6): Likewise.
4415         (Qchinese_cns11643_7): Likewise.
4416         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4417         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4418         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4419         (complex_vars_of_mule_charset): Likewise.
4420
4421 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4422
4423         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4424         96-set.
4425         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4426         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4427
4428 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4429
4430         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4431         0xFF60.
4432         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4433         (breakup_char_1): Likewise.
4434
4435         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4436         one of them includes the specified character.
4437
4438 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4439
4440         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4441
4442 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4443
4444         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4445
4446 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4447
4448         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4449         definition for non-UTF-2000 Mule.
4450         (latin_iso8859_3_to_ucs): Likewise.
4451         (latin_iso8859_4_to_ucs): Likewise.
4452         (latin_iso8859_9_to_ucs): Likewise.
4453         (latin_jisx0201_to_ucs): Likewise.
4454         (MIN_CHAR_THAI): Likewise.
4455         (MAX_CHAR_THAI): Likewise.
4456         (MIN_CHAR_GREEK): Likewise.
4457         (MAX_CHAR_GREEK): Likewise.
4458         (MIN_CHAR_HEBREW): Likewise.
4459         (MAX_CHAR_HEBREW): Likewise.
4460         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4461         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4462         (MIN_CHAR_CYRILLIC): Likewise.
4463         (MAX_CHAR_CYRILLIC): Likewise.
4464
4465 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4466
4467         * char-ucs.h (breakup_char_1): Use
4468         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4469         thai-tis620 and katakana-jisx0201 area.
4470
4471 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4472
4473         * char-ucs.h (breakup_char_1): Use
4474         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4475         area.
4476
4477         * text-coding.c (reset_encoding_stream): Fixed.
4478         (char_encode_ucs4): Delete `& 255'.
4479
4480         * char-ucs.h (breakup_char_1): Use
4481         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4482
4483 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4484
4485         * file-coding.c (Fmake_coding_system): Don't set up
4486         `codesys->fixed.size'.
4487         (encode_coding_no_conversion): Don't refer
4488         `str->codesys->fixed.size'.
4489
4490 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4491
4492         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4493         (latin_a_char_to_byte1): Deleted.
4494         (latin_a_char_to_byte2): Deleted.
4495
4496 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4497
4498         * mule-charset.c (make_charset): Add new argument `ucs_min',
4499         `ucs_max' and `code_offset'.
4500         (charset_get_byte1): New implementation [delete specific charset
4501         depended implementations].
4502         (Fmake_charset): Modify for `make_charset'.
4503         (Fmake_reverse_direction_charset): Likewise.
4504         (complex_vars_of_mule_charset): Likewise.
4505
4506         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4507         `code_offset'.
4508         (CHARSET_UCS_MIN): New macro.
4509         (CHARSET_UCS_MAX): New macro.
4510         (CHARSET_CODE_OFFSET): New macro.
4511         (MAKE_CHAR): Delete charset depended definitions [except
4512         katakana-jisx0201].
4513
4514 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4515
4516         * char-ucs.h (breakup_char_1): Use
4517         `Vdefault_coded_charset_priority_list' for C0-Controls,
4518         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4519
4520 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4521
4522         * char-ucs.h (charset_get_byte1): New function.
4523         (XCHARSET_GET_BYTE1): Deleted.
4524         (charset_get_byte2): New function.
4525         (XCHARSET_GET_BYTE2): Deleted.
4526         (Vdefault_coded_charset_priority_list): New external variable.
4527         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4528         `Vdefault_preferred_coded_charset_list'.
4529
4530         * mule-charset.c (charset_get_byte1): New function.
4531         (charset_get_byte2): New function.
4532         (Vdefault_coded_charset_priority_list): New variable.
4533         (vars_of_mule_charset): Add new variable
4534         `default-coded-charset-priority-list'.
4535
4536 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4537
4538         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4539         (XCHARSET_GET_BYTE2): New inline function.
4540         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4541         `XCHARSET_GET_BYTE2'.
4542
4543 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4544
4545         * mule-charset.c (make_charset): Initialize
4546         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4547         NULL if table is not defined.
4548
4549 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4550
4551         * text-coding.c (char_encode_shift_jis): Use
4552         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4553         `ucs_to_latin_jisx0201'.
4554
4555         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4556         (ucs_to_latin_iso8859_2): Deleted.
4557         (ucs_to_latin_iso8859_3): Deleted.
4558         (ucs_to_latin_iso8859_4): Deleted.
4559         (ucs_to_latin_iso8859_9): Deleted.
4560         (ucs_to_latin_viscii_lower): Deleted.
4561         (ucs_to_latin_viscii_upper): Deleted.
4562         (ucs_to_latin_tcvn5712): Deleted.
4563         (make_charset): Add new argument `decoding_table'; set up
4564         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4565         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4566         `decoding_table' is defined in UTF-2000.
4567         (Fmake_charset): Modify for `make_charset'.
4568         (Fmake_reverse_direction_charset): Likewise.
4569         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4570         and `GENERATE_96_SET'.
4571
4572         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4573         (ucs_to_latin_jisx0201): Deleted.
4574         (latin_iso8859_2_to_ucs): Deleted.
4575         (ucs_to_latin_iso8859_2): Deleted.
4576         (latin_iso8859_3_to_ucs): Deleted.
4577         (ucs_to_latin_iso8859_3): Deleted.
4578         (latin_iso8859_4_to_ucs): Deleted.
4579         (ucs_to_latin_iso8859_4): Deleted.
4580         (latin_iso8859_9_to_ucs): Deleted.
4581         (ucs_to_latin_iso8859_9): Deleted.
4582         (latin_viscii_lower_to_ucs): Deleted.
4583         (ucs_to_latin_viscii_lower): Deleted.
4584         (latin_viscii_upper_to_ucs): Deleted.
4585         (ucs_to_latin_viscii_upper): Deleted.
4586         (struct Lisp_Charset): Renamed `encoding_table' to
4587         `to_byte1_table'; add `to_byte2_table'.
4588         (CHARSET_DECODING_TABLE): New macro.
4589         (CHARSET_TO_BYTE1_TABLE): New macro.
4590         (CHARSET_TO_BYTE2_TABLE): New macro.
4591         (XCHARSET_DECODING_TABLE): New macro.
4592         (XCHARSET_TO_BYTE1_TABLE): New macro.
4593         (XCHARSET_TO_BYTE2_TABLE): New macro.
4594         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4595         tables.
4596         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4597         don't use `ucs_to_*' tables.
4598
4599 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4600
4601         * text-coding.c (Fmake_coding_system): Don't set up
4602         `codesys->fixed.size'.
4603         (encode_coding_no_conversion): Use `if' instead of `switch'.
4604
4605         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4606
4607 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4608
4609         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4610         (Fmake_charset): Modify for `make_charset'.
4611         (Fmake_reverse_direction_charset): Likewise.
4612         (complex_vars_of_mule_charset): Likewise.
4613
4614 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4615
4616         * text-coding.c (char_encode_shift_jis): Use table
4617         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4618
4619 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4620
4621         * text-coding.c (text_encode_generic): Use `if' instead of
4622         `switch'.
4623         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4624         decode JIS-Latin.
4625
4626 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * text-coding.c (encode_coding_sjis): Deleted.
4629         (char_encode_shift_jis): New function.
4630         (char_finish_shift_jis): New function.
4631         (reset_encoding_stream): Set up `encode_char' and `finish' for
4632         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4633         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4634         (char_encode_utf8): Treat `eol_type'.
4635
4636 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4637
4638         * file-coding.c (decode_coding_iso2022): Use
4639         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4640
4641 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4642
4643         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4644         to 0.7 (Hirano).
4645
4646 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4647
4648         * char-lb.h (CHAR_COLUMNS): New macro.
4649
4650 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4651
4652         * text-coding.c (char_encode_ucs4): New function.
4653         (char_finish_ucs4): New function.
4654         (encode_coding_ucs4): Deleted.
4655         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4656         (text_encode_generic): Delete local variable `charset' and `half'.
4657         (ucs_to_mule_table): Deleted.
4658         (mule_to_ucs_table): Deleted.
4659         (Fset_ucs_char): Deleted.
4660         (ucs_to_char): Deleted.
4661         (Fucs_char): Deleted.
4662         (Fset_char_ucs): Deleted.
4663         (Fchar_ucs): Deleted.
4664         (decode_ucs4): Deleted.
4665         (mule_char_to_ucs4): Deleted.
4666         (encode_ucs4): Deleted.
4667         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4668         (decode_coding_utf8): Likewise.
4669         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4670         (char_encode_iso2022): Fixed.
4671         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4672         `Fset_char_ucs' and `Fchar_ucs'.
4673         (complex_vars_of_file_coding): Don't initialize
4674         `ucs_to_mule_table'.
4675
4676         * objects-tty.c (tty_initialize_font_instance): Don't use
4677         `XCHARSET_COLUMNS'.
4678
4679         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4680         UTF-2000.
4681
4682         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4683         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4684
4685         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4686         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4687         (emchar_string_displayed_columns): Likewise.
4688
4689         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4690         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4691         (string_column_at_point): Likewise.
4692         (Fmove_to_column): Likewise.
4693
4694         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4695         `encoding_table' and `decoding_table'.
4696         (CHARSET_REP_BYTES): Deleted.
4697         (XCHARSET_REP_BYTES): Deleted.
4698         (XCHARSET_COLUMNS): Deleted.
4699         (CHAR_COLUMNS): New macro.
4700         (lookup_composite_char): Deleted unconditionally.
4701         (composite_char_string): Likewise.
4702
4703 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4704
4705         * char-ucs.h (Emchar_to_byte_table): New type.
4706         (get_byte_from_character_table): New function interface.
4707         (Vcharset_latin_jisx0201): New variable.
4708         (latin_jisx0201_to_ucs): New variable.
4709         (ucs_to_latin_jisx0201): New variable.
4710         (Vcharset_latin_iso8859_2): New variable.
4711         (latin_iso8859_2_to_ucs): New variable.
4712         (ucs_to_latin_iso8859_2): New variable.
4713         (Vcharset_latin_iso8859_3): New variable.
4714         (latin_iso8859_3_to_ucs): New variable.
4715         (ucs_to_latin_iso8859_3): New variable.
4716         (Vcharset_latin_iso8859_4): New variable.
4717         (latin_iso8859_4_to_ucs): New variable.
4718         (ucs_to_latin_iso8859_4): New variable.
4719         (Vcharset_latin_iso8859_9): New variable.
4720         (latin_iso8859_9_to_ucs): New variable.
4721         (ucs_to_latin_iso8859_9): New variable.
4722         (Vcharset_latin_viscii_lower): New variable.
4723         (latin_viscii_lower_to_ucs): New variable.
4724         (ucs_to_latin_viscii_lower): New variable.
4725         (Vcharset_latin_viscii_upper): New variable.
4726         (latin_viscii_upper_to_ucs): New variable.
4727         (ucs_to_latin_viscii_upper): New variable.
4728         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4729         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4730         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4731         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4732         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4733         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4734         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4735         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4736         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4737         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4738
4739         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4740         (Vcharset_latin_viscii_upper): New variable.
4741         (make_byte_from_character_table): New function.
4742         (put_byte_from_character_table): New function.
4743         (get_byte_from_character_table): New function.
4744         (CHAR96): New macro.
4745         (ucs_to_latin_jisx0201): New variable.
4746         (latin_jisx0201_to_ucs): New variable.
4747         (ucs_to_latin_iso8859_2): New variable.
4748         (latin_iso8859_2_to_ucs): New variable.
4749         (ucs_to_latin_iso8859_3): New variable.
4750         (latin_iso8859_3_to_ucs): New variable.
4751         (ucs_to_latin_iso8859_4): New variable.
4752         (latin_iso8859_4_to_ucs): New variable.
4753         (ucs_to_latin_iso8859_9): New variable.
4754         (latin_iso8859_9_to_ucs): New variable.
4755         (ucs_to_latin_viscii_lower): New variable.
4756         (latin_viscii_lower_to_ucs): New variable.
4757         (ucs_to_latin_viscii_upper): New variable.
4758         (latin_viscii_upper_to_ucs): New variable.
4759         (ucs_to_latin_tcvn5712): New variable.
4760         (latin_tcvn5712_to_ucs): New variable.
4761         (Qlatin_viscii_lower): New variable.
4762         (Qlatin_viscii_upper): New variable.
4763         (syms_of_mule_charset): Set up new symbol
4764         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4765         (complex_vars_of_mule_charset): Set up new charset
4766         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4767         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4768         `ucs_to_<CHARSET>' tables.
4769
4770 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4771
4772         * text-coding.c: New file.
4773
4774 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4775
4776         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4777
4778         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4779         (MAKE_CHAR): Modify for `ucs-bmp'.
4780         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4781         non-MULE characters of BMP.
4782
4783 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4784
4785         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4786         to 0.6.
4787
4788 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4789
4790         * lstream.h:
4791         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4792         - Include character.h for `CHAR_ASCII_P'.
4793
4794         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4795
4796         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4797         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4798
4799         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4800         (BYTE_C0_P): Likewise.
4801         (BYTE_C1_P): Likewise.
4802         (Lstream_get_emchar_1): Likewise.
4803         (Lstream_fput_emchar): Likewise.
4804         (Lstream_funget_emchar): Likewise.
4805         (copy_internal_to_external): Likewise.
4806         (copy_external_to_internal): Likewise.
4807
4808         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4809         (BYTE_C0_P): Likewise.
4810         (BYTE_C1_P): Likewise.
4811         (Lstream_get_emchar_1): Likewise.
4812         (Lstream_fput_emchar): Likewise.
4813         (Lstream_funget_emchar): Likewise.
4814         (copy_internal_to_external): Likewise.
4815         (copy_external_to_internal): Likewise.
4816
4817         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4818         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4819
4820         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4821         (BYTE_ASCII_P): Moved to mb-1byte.h.
4822
4823 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4824
4825         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4826
4827         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4828         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4829         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4830         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4831         (VALIDATE_CHARPTR_FORWARD): Likewise.
4832         (simple_charptr_emchar): Moved to mb-multibyte.h.
4833         (simple_set_charptr_emchar): Likewise.
4834         (simple_charptr_copy_char): Likewise.
4835         (non_ascii_charptr_emchar): Likewise.
4836         (non_ascii_set_charptr_emchar): Likewise.
4837         (non_ascii_charptr_copy_char): Likewise.
4838         (charptr_emchar): Moved to mb-*byte.h.
4839         (set_charptr_emchar): Likewise.
4840         (charptr_copy_char): Likewise.
4841
4842         * mb-1byte.h, mb-multibyte.h: New files.
4843
4844 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4845
4846         * mb-utf-8.h (MULTIBYTE): New macro.
4847         (MAX_EMCHAR_LEN): Moved from buffer.h.
4848         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4849
4850         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4851
4852         * mb-lb.h, multibyte.h: New files.
4853
4854         * char-1byte.h (Charset_ID): Moved from buffer.h.
4855         (MIN_LEADING_BYTE): Likewise.
4856         (LEADING_BYTE_ASCII): Likewise.
4857         (NUM_LEADING_BYTES): Likewise.
4858         (CHARSETP): Likewise.
4859         (CHARSET_BY_LEADING_BYTE): Likewise.
4860         (XCHARSET_LEADING_BYTE): Likewise.
4861         (XCHARSET_GRAPHIC): Likewise.
4862         (XCHARSET_COLUMNS): Likewise.
4863         (XCHARSET_DIMENSION): Likewise.
4864         (CHAR_CHARSET): Likewise.
4865         (CHAR_LEADING_BYTE): Likewise.
4866         (BREAKUP_CHAR): Likewise.
4867         (Vcharset_ascii): Likewise.
4868
4869         * buffer.h: Include multibyte.h unconditionally.
4870         (VALID_CHARPTR_P): Moved to multibyte.h.
4871         (ASSERT_VALID_CHARPTR): Likewise.
4872         (REAL_INC_CHARPTR): Likewise.
4873         (REAL_INC_CHARBYTIND): Likewise.
4874         (REAL_DEC_CHARPTR): Likewise.
4875         (INC_CHARPTR): Likewise.
4876         (INC_CHARBYTIND): Likewise.
4877         (DEC_CHARPTR): Likewise.
4878         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4879         (VALIDATE_CHARPTR_FORWARD): Likewise.
4880         (charptr_n_addr): Likewise.
4881         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4882         (simple_charptr_emchar): Moved to multibyte.h.
4883         (simple_set_charptr_emchar): Likewise.
4884         (simple_charptr_copy_char): Likewise.
4885         (non_ascii_charptr_emchar): Likewise.
4886         (non_ascii_set_charptr_emchar): Likewise.
4887         (non_ascii_charptr_copy_char): Likewise.
4888         (charptr_emchar): Likewise.
4889         (set_charptr_emchar): Likewise.
4890         (charptr_copy_char): Likewise.
4891         (charptr_emchar_n): Likewise.
4892         (Charset_ID): Moved to char-1byte.h.
4893         (Vcharset_ascii): Likewise.
4894         (CHAR_CHARSET): Likewise.
4895         (CHAR_LEADING_BYTE): Likewise.
4896         (LEADING_BYTE_ASCII): Likewise.
4897         (NUM_LEADING_BYTES): Likewise.
4898         (MIN_LEADING_BYTE): Likewise.
4899         (CHARSETP): Likewise.
4900         (CHARSET_BY_LEADING_BYTE): Likewise.
4901         (XCHARSET_LEADING_BYTE): Likewise.
4902         (XCHARSET_GRAPHIC): Likewise.
4903         (XCHARSET_COLUMNS): Likewise.
4904         (XCHARSET_DIMENSION): Likewise.
4905         (BREAKUP_CHAR): Likewise.
4906
4907 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4908
4909         * character.h: Add document about interface for characters.
4910
4911         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4912         (MAKE_CHAR): Delete comment about
4913         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4914         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4915         (BREAKUP_CHAR): Modify name of arguments.
4916         (CHAR_CHARSET): Modify name of argument.
4917
4918         * buffer.h: Delete document about Emchar accessors.
4919
4920 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4921
4922         * character.h (CHAR_INTP): Moved from buffer.h
4923         (CHAR_OR_CHAR_INTP): Likewise.
4924         (XCHAR_OR_CHAR_INT): Likewise.
4925         (CHECK_CHAR_COERCE_INT): Likewise.
4926
4927         * buffer.h (CHAR_INTP): Moved to character.h
4928         (CHAR_OR_CHAR_INTP): Likewise.
4929         (XCHAR_OR_CHAR_INT): Likewise.
4930         (CHECK_CHAR_COERCE_INT): Likewise.
4931
4932 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4933
4934         * character.h:
4935         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4936         - Include char-1byte.h, char-lb.h or char-ucs.h.
4937
4938         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4939
4940         * buffer.h: Include character unconditionally.
4941         (valid_char_p): Moved to char-*.h.
4942         (non_ascii_valid_char_p): Moved to char-lb.h.
4943
4944         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4945
4946 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4947
4948         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4949         in UTF-2000 because it is not ported yet and not to use
4950         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4951         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4952         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4953
4954         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4955         (CHAR_ASCII_P): Moved from character.h.
4956
4957         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4958         (CHAR_ASCII_P): Likewise.
4959         (CHAR_FIELD1_MASK): Deleted.
4960         (CHAR_FIELD2_MASK): Deleted.
4961         (CHAR_FIELD3_MASK): Deleted.
4962         (MAX_CHAR_BASIC_LATIN): New macro.
4963         (CHAR_FIELD1): Deleted.
4964         (CHAR_FIELD2_INTERNAL): Deleted.
4965         (CHAR_FIELD3_INTERNAL): Deleted.
4966         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4967         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4968         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4969         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4970         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4971         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4972         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4973         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4974         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4975         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4976         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4977         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4978         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4979         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4980         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4981         (MIN_CHAR_COMPOSITION): Deleted.
4982         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4983         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4984
4985 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4986
4987         * buffer.h: Include mb-utf-8.h in UTF-2000.
4988
4989         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4990
4991         * mb-utf-8.h: New file.
4992
4993 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4994
4995         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4996         instead of `int'.
4997
4998         * mule-charset.h, buffer.h (Charset_ID): New type.
4999
5000 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5001
5002         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5003         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5004         instead of `MULE_CHAR_PRIVATE_OFFSET',
5005         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5006         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5007         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5008
5009         * character.h (Vcharset_japanese_jisx0212): New variable
5010         definition.
5011
5012 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5013
5014         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5015         (charset_by_attributes): Delete array about direction.
5016         (latin_a_char_to_charset): New variable in UTF-2000.
5017         (latin_a_char_to_byte1): New variable in UTF-2000.
5018         (latin_a_char_to_byte2): New variable in UTF-2000.
5019         (Qucs_bmp): New variable.
5020         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5021         `Bufbyte'.
5022         (next_allocated_2_byte_leading_byte): Likewise.
5023         (non_ascii_set_charptr_emchar): Likewise.
5024         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5025         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5026         `charset_by_attributes'.
5027         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5028         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5029         and `CHARSET_BY_LEADING_BYTE'.
5030         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5031         `utf-2000-version' to `vars_of_mule_charset'.
5032         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5033         define `leading-code-private-11' in UTF-2000; move setting of
5034         `utf-2000-version' from `syms_of_mule_charset'.
5035         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5036         UTF-2000.
5037
5038         * character.h (Charset_ID): New type.
5039         (LEADING_BYTE_UCS_BMP): New macro.
5040         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5041         (CHARSET_ID_OFFSET_94): New macro.
5042         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5043         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5044         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5045         final-byte.
5046         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5047         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5048         (CHARSET_ID_OFFSET_96): New macro.
5049         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5050         CHARSET_ID_OFFSET_96 and final-byte.
5051         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5052         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5053         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5054         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5055         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5056         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5057         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5058         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5059         (LEADING_BYTE_THAI_TIS620): Likewise.
5060         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5061         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5062         (CHARSET_ID_OFFSET_94x94): New macro.
5063         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5064         CHARSET_ID_OFFSET_94x94 and final-byte.
5065         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5066         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5067         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5068         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5069         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5070         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5071         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5072         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5073         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5074         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5075         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5076         (CHARSET_TYPE_128X128): New macro.
5077         (CHARSET_TYPE_256X256): New macro.
5078         (XCHARSET_PRIVATE_P): Delete unconditionally.
5079         (charset_by_attributes): Delete array about direction.
5080         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5081         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5082         (MIN_CHAR_94): New macro.
5083         (MAX_CHAR_94): New macro.
5084         (MIN_CHAR_96): New macro.
5085         (MAX_CHAR_96): New macro.
5086         (MIN_CHAR_94x94): New macro.
5087         (MAX_CHAR_94x94): New macro.
5088         (MIN_CHAR_96x96): New macro.
5089         (MAX_CHAR_96x96): New macro.
5090         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5091         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5092         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5093         - 32)'.
5094         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5095         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5096         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5097         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5098         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5099         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5100         `XCHARSET_LEADING_BYTE' to make code-point.
5101         (latin_a_char_to_charset): New variable.
5102         (latin_a_char_to_byte1): New variable.
5103         (latin_a_char_to_byte2): New variable.
5104         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5105         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5106         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5107
5108         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5109         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5110         (find_charsets_in_emchar_string): Likewise.
5111         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5112
5113         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5114         `int'.
5115         (decode_coding_iso2022): Likewise.
5116
5117         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5118         of `unsigned char'.
5119
5120         * redisplay.c (redisplay_text_width_emchar_string): Use
5121         `Charset_ID' instead of `unsigned char'.
5122         (redisplay_frame_text_width_string): Likewise.
5123
5124         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5125         `unsigned char'.
5126
5127         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5128         instead of `unsigned char'.
5129         (face_cachel_charset_font_metric_info): Likewise.
5130
5131         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5132         (get_non_ascii_char_table_value): Likewise.
5133         (get_char_table): Likewise.
5134         (put_char_table): Likewise.
5135         (map_over_other_charset): Likewise.
5136         (map_char_table): Likewise.
5137
5138         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5139         instead of `unsigned char'.
5140
5141 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5142
5143         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5144         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5145
5146         * mule-charset.c (leading_code_private_11): Don't define in
5147         UTF-2000.
5148
5149         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5150         in UTF-2000 because it is not ported yet and not to use
5151         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5152
5153 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5154
5155         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5156
5157 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5158
5159         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5160         in UTF-2000.
5161
5162         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5163         of unsigned char to store leading-byte.
5164
5165         * chartab.c (get_non_ascii_char_table_value): Don't use
5166         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5167
5168         * file-coding.c (encode_coding_big5): Delete bogus implementation
5169         in UTF2000.
5170
5171         * character.h (LEADING_BYTE_*): Delete definition for
5172         non-UTF-2000.
5173         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5174         (LEADING_BYTE_PREFIX_P): Deleted.
5175         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5176         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5177         (BUFBYTE_LEADING_BYTE_P): Deleted.
5178         (CHARSET_PRIVATE_P): Deleted unconditionally.
5179         (rep_bytes_by_first_byte): Deleted unconditionally.
5180         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5181         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5182         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5183         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5184         (CHAR_FIELD2): Deleted.
5185         (CHAR_FIELD3): Deleted.
5186         (MAKE_CHAR): Delete definition for non-UTF-2000.
5187         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5188         (breakup_char_1): New implementation.
5189         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5190         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5191
5192 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5193
5194         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5195         condition.
5196
5197 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5198
5199         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5200         (CHARSET_PRIVATE_P): Likewise.
5201         (XCHARSET_PRIVATE_P): Likewise.
5202         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5203
5204         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5205         UTF2000.
5206         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5207
5208 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5209
5210         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5211         (NUM_LEADING_BYTES): Changed from 128 to 256.
5212         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5213         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5214         UTF2000.
5215         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5216
5217         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5218         UTF2000.
5219         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5220         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5221         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5222         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5223         (Qchinese_cns11643_3): New variable in UTF2000.
5224         (Qchinese_cns11643_4): New variable in UTF2000.
5225         (Qchinese_cns11643_5): New variable in UTF2000.
5226         (Qchinese_cns11643_6): New variable in UTF2000.
5227         (Qchinese_cns11643_7): New variable in UTF2000.
5228         (syms_of_mule_charset): Define `chinese-cns11643-3',
5229         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5230         and `chinese-cns11643-7' in UTF2000.
5231         (vars_of_mule_charset): Initialize
5232         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5233         + 1 in UTF2000.
5234         (complex_vars_of_mule_charset): Setup charset
5235         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5236         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5237
5238 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5239
5240         * mule-charset.c: Move setting for `leading-code-private-11' from
5241         `syms_of_mule_charset' to `vars_of_mule_charset'.
5242
5243 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5244
5245         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5246         and `NUM_LEADING_BYTES' in assert.
5247
5248 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5249
5250         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5251         instead of 128.
5252         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5253         `NUM_LEADING_BYTES' instead of 128.
5254
5255 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5256
5257         * mule-charset.h (charset_by_leading_byte): Use
5258         `NUM_LEADING_BYTES' instead of 128.
5259         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5260
5261         * mule-charset.c (charset_by_leading_byte): Use
5262         `NUM_LEADING_BYTES' instead of 128.
5263         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5264
5265         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5266         128.
5267
5268 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5269
5270         * mule-charset.c (syms_of_mule_charset): Update to
5271         0.4 (Shin-Imamiya).
5272
5273 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5274
5275         * file-coding.c (encode_coding_sjis): New implementation for
5276         UTF2000.  (decode_coding_sjis): Ditto.
5277
5278 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5279
5280         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5281         Don't define in UTF2000.
5282
5283         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5284         defined.
5285
5286         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5287         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5288         MULE.
5289
5290 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5291
5292         * config.h.in (CHAR_IS_UCS4): New macro.
5293
5294         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5295         conventional MULE representation.
5296         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5297
5298         * mule-charset.h: Reverted to original.
5299
5300         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5301         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5302         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5303
5304         * character.h: New file.
5305
5306         * file-coding.c (Fmake_coding_system): Set 1 to
5307         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5308         defined.
5309         (encode_coding_no_conversion): New implementation for UTF2000.
5310
5311         * file-coding.h (struct Lisp_Coding_System): Add new member
5312         `fixed.size'.
5313
5314 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5315
5316         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5317         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5318         (encode_coding_iso2022): New implementation for UTF2000.
5319
5320 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5321
5322         * mule-canna.c (c2mu): New implementation for UTF2000.
5323         (m2c): Likewise.
5324
5325 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5326
5327         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5328
5329 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5330
5331         * file-coding.c (reset_encoding_stream): Set 0 to
5332         `str->iso2022.current_char_boundary' in UTF2000.
5333         (encode_utf8): Don't define in UTF2000.
5334         (encode_coding_utf8): New implementation for UTF-8 representation
5335         of UTF2000.
5336         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5337
5338 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5339
5340         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5341
5342         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5343         UTF2000.
5344         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5345
5346         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5347
5348         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5349         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5350         as UTF-8 in UTF2000.
5351         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5352         (non_ascii_valid_char_p): Don't define in UTF2000.
5353         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5354         (Lstream_get_emchar_1): Likewise.
5355         (utf-2000-version): New variable in UTF2000.
5356
5357         * lread.c (read_escape): Add new reader `u'.
5358
5359         * insdel.c (three_to_one_table): Don't define in UTF2000.
5360         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5361         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5362         UTF2000.
5363         (bytind_to_bufpos_func): Likewise.
5364         (buffer_mule_signal_inserted_region): Likewise.
5365         (vars_of_insdel): Don't initialize `three_to_one_table'.
5366         (init_buffer_text): Use `buf->text->mule_size' instead of
5367         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5368         UTF2000.
5369
5370         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5371         UTF-8 representation in UTF2000.
5372         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5373         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5374         (decode_coding_iso2022): Don't define local variable `lb' in
5375         UTF2000; don't use LEADING_BYTE in UTF2000; use
5376         `DECODE_ADD_UCS_CHAR' in UTF2000.
5377         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5378
5379         * config.h.in (UTF2000): New macro.
5380
5381         * buffer.h (struct buffer_text): Add new member `mule_size' and
5382         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5383         (valid_char_p): Return always 1 in UTF2000.
5384         (MAX_EMCHAR_LEN): 6 in UTF2000.
5385         (three_to_one_table): Don't define in UTF2000.
5386         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5387         UTF2000.
5388         (real_bytind_to_bufpos): Likewise.
5389
5390         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5391
5392 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5393
5394         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5395         representation change.
5396         (Vutf_2000_version): New variable.
5397         (leading_code_private_11): New variable.
5398         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5399         `leading-code-private-11'.
5400
5401         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5402         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5403         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5404         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5405         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5406         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5407         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5408         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5409         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5410         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5411         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5412         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5413         (MIN_CHAR_GREEK): New macro.
5414         (MAX_CHAR_GREEK): New macro.
5415         (MIN_CHAR_CYRILLIC): New macro.
5416         (MAX_CHAR_CYRILLIC): New macro.
5417         (MIN_CHAR_HEBREW): New macro.
5418         (MAX_CHAR_HEBREW): New macro.
5419         (MIN_CHAR_THAI): New macro.
5420         (MAX_CHAR_THAI): New macro.
5421         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5422         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5423         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5424         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5425         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5426         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5427         (CHAR_FIELD2): New inline function.
5428         (CHAR_FIELD3): New inline function.
5429         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5430         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5431         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5432         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5433         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5434         (MIN_CHAR_COMPOSITION): Likewise.
5435         (CHAR_LEADING_BYTE): Modified for character representation change.
5436         (MAKE_CHAR): Likewise.
5437
5438         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5439         (Vcharset_greek_iso8859_7): Likewise.
5440         (Vcharset_cyrillic_iso8859_5): Likewise.
5441         (Vcharset_hebrew_iso8859_8): Likewise.
5442         (Vcharset_thai_tis620): Likewise.
5443         (Vcharset_katakana_jisx0201): Likewise.
5444
5445 2004-02-02  Vin Shelton <acs@xemacs.org>
5446
5447         * XEmacs 21.4.15 is released
5448
5449 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5450
5451         * device-x.c (x_error_handler): Don't call stderr_out
5452
5453 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5454
5455         * buffer.c (other-buffer): Clarify documentation of order of
5456         arguments for FSF Emacs.
5457
5458 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5459
5460         * window.c (Fdelete_window): Dirty the mirror structure _before_
5461         marking the window deleted.
5462
5463 2003-09-15  Jerry James  <james@xemacs.org>
5464
5465         * event-msw.c (debug_mswin_messages): Conditionally compile
5466         messages missing from the Cygwin headers.
5467
5468 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5469
5470         * data.c (eq_with_ebola_notice): Fix typo in comment.
5471         (Ftrue_list_p): Improve docstring.
5472
5473 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5474
5475         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5476
5477 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5478
5479         * search.c (trivial_regexp_p): Regexps containing "\{" are
5480         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5481         Stefan Monnier for suggesting a diagnosis.
5482
5483 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5484
5485         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5486
5487 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5488
5489         * search.c (Fsearch_forward):
5490         (Fsearch_backward):
5491         Document negative count.
5492
5493 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5494
5495         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5496
5497 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5498
5499         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5500
5501 2003-09-15  Vin Shelton  <acs@xemacs.org>
5502
5503         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5504         21.5.
5505
5506 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5507
5508         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5509         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5510         (re_match_2_internal): Use TRANSLATE instead of
5511         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5512         non-ASCII char case conversion.
5513
5514 2003-09-08  Mike Sperber  <mike@xemacs.org>
5515
5516         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5517         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5518
5519 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5520
5521        * .gdbinit (pobj): fix printing of symbol name.
5522
5523 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5524
5525         * frame-x.c (x_layout_widgets): When resizing is about to cause
5526         frame size slip, mark it for redisplay.
5527
5528 2003-08-18  Jerry James  <james@xemacs.org>
5529
5530         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5531
5532 2003-09-03  Vin Shelton <acs@xemacs.org>
5533
5534         * XEmacs 21.4.14 is released
5535
5536 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5537
5538         * config.h.in (REGEX_MALLOC): Make it configure'able.
5539
5540 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5541
5542         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5543         linking.
5544         * sysdll.c (dll_init):
5545         * sysdll.c (dll_open):
5546         * sysdll.c (dll_close):
5547         * sysdll.c (dll_function):
5548         * sysdll.c (dll_variable):
5549         * sysdll.c (dll_error):
5550         Add support for loading bundles using Darwin/MacOSX
5551         native API.
5552
5553 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5554
5555         * process.c (start-process-internal): Document coding systems.
5556
5557 2003-07-30  Jerry James  <james@xemacs.org>
5558
5559         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5560
5561 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5562
5563         * event-msw.c (mswindows_enqueue_mouse_button_event):
5564         * event-msw.c (mswindows_wnd_proc):
5565           enqueue button event when scrollwheel event isn't handled by 
5566           mswindows_handle_mousewheel_event, such as when the scrollbars
5567           are not showing.
5568
5569 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5570
5571         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5572
5573 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5574
5575         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5576
5577 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5578
5579         * regex.c (re_match_2_internal): Fix matching degenerate word
5580         boundaries.
5581
5582 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5583
5584         * XEmacs 21.4.13 is released
5585
5586 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5587
5588         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5589         * lisp.h (<inttypes.h>):
5590         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5591         the definition.
5592
5593 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5594
5595         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5596         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5597         Result: "temacs can only be run in -batch mode."
5598         Fix: Check xemacs executable candidate for directory-ness.
5599
5600 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5601
5602         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5603           they conflict with <sys/types.h>.
5604
5605 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5606
5607         * database.c: Berkeley DB wants __STDC__ to be defined.
5608
5609 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5610
5611         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5612
5613 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5614
5615         * process-unix.c (unix_send_process): Fix C++ compile error.
5616
5617 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5618
5619         * Added .dylib as an acceptable shared library file extension
5620         * to support MacOSX.
5621
5622 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5623
5624         * EmacsFrameP.h (EmacsFramePart):
5625         Kludge to allow compiling with Motif1, but linking with Motif2.
5626
5627 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5628
5629         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5630
5631
5632 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5633
5634         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5635
5636 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5637
5638         * sysdll.c: Included lisp.h to define needed alloca_array.
5639
5640 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5641
5642         Make XEmacs redisplay 10 times faster.
5643         If, that is, you're using a slow X connection and MoveOpaque.
5644         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5645         Use compress_motion = TRUE.
5646         * EmacsFrame.c (emacsFrameClassRec): 
5647         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5648         * EmacsManager.c (emacsManagerClassRec):
5649         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5650
5651 2003-01-30  Vin Shelton  <acs@xemacs.org>
5652
5653         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5654
5655 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5656
5657         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5658         Patch by Martin Buchholz.
5659
5660 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5661
5662         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5663         Thanks to icc for warning and Martin Buchholz for reporting.
5664
5665 2003-01-29  Vin Shelton <acs@xemacs.org>
5666
5667         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5668
5669         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5670         remember to multiply by the element size.
5671
5672 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5673
5674         * XEmacs 21.4.12 "Portable Code" is released.
5675
5676 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5677
5678         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5679         * s/cygwin.sc: new linker file.
5680
5681 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5682
5683         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5684
5685         * redisplay-x.c (x_output_string): Use X11-specified types.
5686         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5687         * emacs.c (__free_hook): Use typeof with Intel compiler.
5688         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5689
5690 2003-01-08  Andy Piper  <andy@xemacs.org>
5691
5692         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5693         reserve size during unexec().
5694
5695 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5696
5697         * process-unix.c (unix_create_process): Don't let outchannel block.
5698
5699 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5700
5701         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5702         Needed for IsBadReadPtr().
5703
5704 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5705
5706         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5707
5708 2002-12-14  Ben Wing  <ben@xemacs.org>
5709
5710         * callint.c: Declaration error.
5711         * dumper.c (pdump):
5712         * dumper.c (pdump_load): Warning fix.
5713         * process.c: GCPRO error.
5714         * glyphs.c (unmap_subwindow):
5715         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5716         * event-stream.c (maybe_kbd_translate): Wrong argument to
5717         character_to_event().
5718
5719         * alloc.c (garbage_collect_1):
5720         * emacs.c:
5721         * emacs.c (debug_can_access_memory):
5722         * emacs.c (fatal_error_signal):
5723         * emacs.c (mswindows_handle_hardware_exceptions):
5724         * emacs.c (main_1):
5725         * emacs.c (main):
5726         * emacs.c (assert_failed):
5727         * emacs.c (syms_of_emacs):
5728         * lisp.h:
5729         * print.c:
5730         * print.c (std_handle_out_va):
5731         * print.c (write_string_to_stdio_stream):
5732         * print.c (write_fmt_string):
5733         * print.c (printing_badness):
5734         * print.c (printing_major_badness):
5735         * print.c (print_internal):
5736         * print.c (debug_print_no_newline):
5737         * print.c (debug_backtrace):
5738         Be more defensive in handling bad values when printing.  Add code
5739         from trunk involving inhibit_non_essential_printing_operations.
5740         When going down or in debug_print(), don't do external conversion
5741         and such and try really, really hard when printing to avoid core
5742         dumping.  Add force-debugging-signal, debug_break().
5743
5744 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5745
5746         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5747         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5748
5749 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5750
5751         * database.c: Fix open_database. Berkeley DB API has changed in
5752         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5753
5754 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5755
5756         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5757
5758 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5759
5760         * event-Xt.c (Xt_timeout):
5761         (Xt_timeout_callback):
5762         (emacs_Xt_add_timeout):
5763         (emacs_Xt_remove_timeout):
5764         (Xt_timeout_to_emacs_event):
5765         Turn completed_timeouts from a stack into a queue.  Fixes
5766         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5767
5768 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5769
5770         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5771         * emacs.c (main): Assert that mmap'd allocation is disabled.
5772
5773 2002-10-14  Andy Piper  <andy@xemacs.org>
5774
5775         * glyphs-widget.c (layout_query_geometry): add in fiddle
5776         factor. Include border text in width layout calculation.
5777         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5778
5779 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5780
5781         * XEmacs 21.4.10 "Military Intelligence" is released.
5782
5783 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5784
5785         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5786         using the NAS private array SoundFileInfo that no longer exists in
5787         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5788         and earlier.  This is broken for some versions between 1.5a and
5789         1.5f.
5790
5791 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5792
5793         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5794
5795         * emacs.c (shut_down_emacs): Improve crash message.
5796
5797 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5798
5799         * file-coding.c (determine_real_coding_system): Check for coding
5800         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5801         shebangs and Python PEP 263.
5802
5803 2002-10-08  Andy Piper  <andy@xemacs.org>
5804
5805         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5806         if static sizes haven't been set.
5807
5808 2002-08-30  Mike Alexander  <mta@arbortext.com>
5809
5810         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5811         to close a socket.
5812
5813 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5814
5815         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5816
5817 2002-09-20  Mike Sperber <mike@xemacs.org>
5818
5819         (This partially gets back my patch from 2002-07-20 without the
5820         bug.)
5821         * callproc.c (child_setup): Remove Ben's comment noting confusion
5822         over the file descriptors >= 3: close_process_descs() doesn't
5823         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5824         * process-unix.c (unix_create_process): Call
5825         begin_dont_check_for_quit to inhibit unwanted interaction (and
5826         thus breaking of X event synchronicity) in the child.
5827
5828 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5829
5830         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5831         widget.
5832
5833 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5834
5835         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5836         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5837         the xemacs process did not exit, but looped infinitely here.  This
5838         fixes that problem.
5839
5840 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5841
5842         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5843         (find_context): Improve comments.
5844
5845         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5846         (re_match_2): An XCHAR_TABLE operation was missing.
5847
5848         Many of the following changes were inspired by Andy Piper's (now
5849         obsolete) patch to make syntax-table text property lookup optional.
5850
5851         [Documentation]
5852
5853         * syntax.h (top level): Document semantics of syntax flags.
5854         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5855         * syntax.c, syntax.h (top level): Document syntax cache better in
5856         comments.
5857
5858         [Instrument syntax caching (temporary change)]
5859
5860         * syntax.h (enum syntax_cache_statistics_functions, struct
5861         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5862         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5863         * syntax.c (scan_words, Fforward_comment, scan_lists,
5864         Fbackward_prefix_characters):
5865         * font-lock.c (find_context):
5866         Use them to instrument syntax caching. 
5867         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5868         syntax_cache_statistics_function_names): New type and variables.
5869         * syntax.c (update_syntax_cache): Update and report statistics.
5870
5871         [Major syntax cache optimizations]
5872
5873         syntax.c (lookup_syntax_properties): Default off.
5874
5875         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5876         * syntax.c (update_syntax_cache):
5877         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5878
5879         [Minor syntax cache optimizations and code clarifications]
5880
5881         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5882         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5883         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5884         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5885         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5886         (Code clarification.)
5887
5888         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5889         scan_lists): Compute code from syncode, use Boolean macros instead
5890         of redundant masking operations.  (Code clarification; any decent
5891         compiler can do this optimization.)
5892
5893         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5894         for clarity.
5895
5896         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5897         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5898         use F*_single_property_change instead of F*_extent_change.
5899         Currently F*_single_property_change is _much_ less efficient.
5900
5901         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5902         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5903         syntax_cache.object properly, don't leave Qt or Qnil.
5904         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5905         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5906         tests for Qt or Qnil.
5907
5908 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5909
5910         * redisplay.c (point_in_line_start_cache): 
5911         * extents.c (print_extent_1):
5912         Fix warnings.
5913
5914         * extents.c (Fset_extent_property): Document `syntax-table' property.
5915
5916         * extents.h (Fnext_single_property_change): EXFUN it.
5917
5918 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5919
5920         * search.c (clear_unused_search_regs): New static function.
5921         (search_buffer): 
5922         (simple_search): 
5923         (boyer_moore):
5924         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5925         Minor clarifications in comments.
5926
5927         * regex.c (re_match_2_internal): Ensure no stale submatches.
5928
5929 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5930
5931         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5932
5933 2002-08-29  Jerry James  <james@xemacs.org>
5934
5935         * lisp.h: structrures -> structures.
5936
5937 2002-06-03  Andy Piper  <andy@xemacs.org>
5938
5939         * frame.c (frame_conversion_internal): add conversion appropriate
5940         for setting frame dimensions in pixels.
5941
5942         * console.h (struct console_methods): add device-specific widget
5943         layout functions.
5944
5945         * emacs.c (main_1): initialize glyph vars.
5946
5947         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5948         (handle_focus_event_2): new function. Allow focus to
5949         be set to a particular window and widget.
5950         (enqueue_focus_event): new function. Create a
5951         synthetic focus event.
5952         (emacs_Xt_handle_magic_event): call
5953         handle_focus_event_2.
5954
5955         * frame.c (Fset_frame_pixel_height): new function. Allow
5956         pixel-based sizing. Does the right thing on character-oriented
5957         displays.
5958         (Fset_frame_pixel_width): ditto.
5959         (Fset_frame_pixel_size): ditto.
5960         (syms_of_frame): declare.
5961
5962         * general-slots.h: add :vertically-justify and
5963         :horizontally-justify.
5964
5965         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5966         (mswindows_widget_border_width): new function.
5967         (mswindows_combo_box_instantiate): set border widths.
5968         (console_type_create_glyphs_mswindows): declare.
5969
5970         * glyphs-widget.c:
5971         (check_valid_justification): allow vertical and horizontal
5972         justification.
5973         (widget_border_width): new function. Call device methods.
5974         (widget_instance_border_width): ditto.
5975         (logical_unit_height): new function. Determine the height of a
5976         logical-unit. Logical units are intended to provide grid-like
5977         layout for subcontrols in a layout. If the layout is
5978         :vertically-justify top then subcontrols will be positioned on
5979         logical-unit boundaries, thus allowing adjacent subcontrols to
5980         line up.
5981         (widget_logical_unit_height): ditto for widgets.
5982         (redisplay_widget): misc cleanup.
5983         (widget_spacing): new function. Call device specific
5984         methods. Intended to be the default gap between adjacent widgets.
5985         (widget_query_geometry): use new spacing functions to determine
5986         appropriate geometry.
5987         (initialize_widget_image_instance): initialize horizontal and
5988         vertical justification.
5989         (widget_instantiate): use logica-units where appropriate for
5990         sizing large widgets.
5991         (button_query_geometry): use widget_instance_border_width.
5992         (tree_view_query_geometry): ditto.
5993         (tab_control_query_geometry): ditto.
5994         (edit_field_query_geometry): new function.
5995         (layout_update): pick up :justify, :horizontally-justify and
5996         :vertically-justify none of which worked previously. :justify is
5997         used as a fallback for both horizontal and vertical justification.
5998         (layout_query_geometry): use logical units to size appropriately.
5999         (layout_layout): ditto.
6000         (Fwidget_logical_to_character_width): new function. Allow users to
6001         convert from logical units to characters so that frame sizes can
6002         be set appropriately.
6003         (Fwidget_logical_to_character_height): ditto.
6004         (syms_of_glyphs_widget): declare.
6005         (image_instantiator_edit_fields): add edit_field_query_geometry.
6006         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6007         :horizontally-justify.
6008         (specifier_vars_of_glyphs_widget): new function. Declare
6009         Vwidget_border_width which is not yet used.
6010
6011         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6012         (x_widget_border_width): new function.
6013         (x_widget_instantiate): create a sensible name for widgets.
6014         (console_type_create_glyphs_x): declare x_widget_border_width.
6015
6016         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6017         (struct Lisp_Image_Instance): add :vertically-justify and
6018         :horizontally-justify.
6019         (LAYOUT_JUSTIFY_TOP): new.
6020         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6021         (ROUND_UP): new macro. Round argument up to next integral
6022         interval.
6023
6024         * redisplay-output.c (redisplay_output_layout): misc formatting.
6025
6026         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6027
6028 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6029
6030         * XEmacs 21.4.9 "Informed Management" is released.
6031
6032 2002-08-19  Andy Piper  <andy@xemacs.org>
6033
6034         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6035         win32 format.
6036
6037         * realpath.c (xrealpath): normalize drive spec also so that dir
6038         sep chars are not mixed on cygwin.
6039
6040 2002-08-06  Jerry James  <james@xemacs.org>
6041
6042         * window.c (Fsplit_window): Count only half of the divider width
6043         against the left window when splitting horizontally. 
6044
6045 2002-06-24  Andy Piper  <andy@xemacs.org>
6046
6047         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6048         toolbar was cleared.
6049
6050         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6051         function. Split out from mswindows_output_frame_toolbars.
6052         (mswindows_output_frame_toolbars): move clear pieces to
6053         mswindows_output_frame_toolbars.
6054
6055         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6056         out from gtk_output_frame_toolbars.
6057         (gtk_output_frame_toolbars): move clear pieces to
6058         gtk_clear_frame_toolbars.
6059
6060         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6061         the frame is cleared. How this ever worked before is a mystery.
6062         (x_output_frame_toolbars): Only output toolbars.
6063         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6064
6065         * gutter.c (update_gutter_geometry):
6066         Mark frame layout changed.
6067         (update_frame_gutter_geometry, update_frame_gutters):
6068         Respect frame_layout_changed.
6069
6070         * console.h (struct console_methods): add
6071         clear_frame_toolbars_method.
6072
6073         * redisplay.c (redisplay_frame): call
6074         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6075
6076         * toolbar.h: declare update_frame_toolbars_geometry.
6077
6078         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6079         out from update_frame_toolbars.  Call clear_frame_toolbars.
6080         (update_frame_toolbars): only output, do not change geometry.
6081
6082         * redisplay.c: add frame_layout_changed.
6083
6084         * redisplay.h: add frame_layout_changed.
6085         (CLASS_RESET_CHANGED_FLAGS): set it.
6086         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6087         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6088         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6089
6090         * device.h (struct device): add frame_layout_changed.
6091         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6092
6093         * frame.h (struct frame): add frame_layout_changed.
6094         (MARK_FRAME_LAYOUT_CHANGED): new.
6095
6096 2002-06-30  Mike Alexander  <mta@arbortext.com>
6097
6098         * event-msw.c (mswindows_need_event): Don't wait for a new message
6099         if the queue is not empty.  Suggested by Paul Moore.
6100
6101 2002-06-12  Andy Piper  <andy@xemacs.org>
6102
6103         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6104         for printing on accurately.
6105
6106 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6107
6108         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6109         WM_ACTIVATE message. Make sure that the frame is visible if the
6110         window is visible. This seemss to fix the problem where XEmacs
6111         appears to freeze after switching desktops with certain virtual
6112         window managers.
6113         (debug_output_mswin_message): Added code to output message
6114         parameters for WM_WINDOWPOSCHANGED, 
6115         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6116
6117 2002-05-25  Andy Piper  <andy@xemacs.org>
6118
6119         * select-x.c (vars_of_select_x): Fix docstring of
6120         x-selection-strict-motif-ownership
6121
6122 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6123
6124         * keymap.c (get_keymap):
6125         Add comment about do_autoload GCPROs own args.
6126
6127 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6128
6129         * bytecode.c (execute_optimized_program): check_opcode ifdef
6130         ERROR_CHECK_BYTE_CODE.
6131
6132 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6133
6134         Thanks to Ben Wing and Michael Sperber.
6135
6136         * eval.c (Fcommand_execute):
6137         (Feval):
6138         (Ffuncall):
6139         (Fmacroexpand_internal):
6140         (function_argcount):
6141         callint.c (Fcall_interactively):
6142         Add comment about do_autoload GCPROs own args.
6143
6144         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6145
6146         * eval.c (Ffuncall): Extra braces to placate GCC.
6147
6148 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6149
6150         * backtrace.h (grow_specpdl):
6151         (SPECPDL_RESERVE):
6152         * EmacsFrame.c (EmacsFrameSetValues):
6153         * eval.c (grow_specpdl):
6154         * ExternalShell.c (hack_event_masks_1):
6155         * glyphs-x.c (convert_EImage_to_XImage): 
6156         (x_finalize_image_instance):
6157         * ralloc.c (page_size):
6158         (r_alloc_sbrk):
6159         * xgccache.c (gc_cache_hash):
6160         Fix unsigned comparison warnings.
6161
6162 2002-07-29  Jerry James  <james@xemacs.org>
6163
6164         * lread.c (locate_file): Any nonnegative return value indicates
6165         success if MODE is nonnegative.
6166
6167 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6168
6169         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6170         argument. 
6171
6172 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6173
6174         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6175
6176         * dumper.c (pdump_get_indirect_count):
6177         (pdump_scan_by_alignment):
6178         (pdump_dump_root_struct_ptrs):
6179         (pdump_dump_rtables):
6180         (pdump_dump_root_objects):
6181         (pdump):
6182         * nas.c (WaveOpenDataForReading):
6183         * fns.c (print_bit_vector):
6184         * font-lock.c (SINGLE_SYNTAX_STYLE):
6185         * glyphs.c (check_for_ignored_expose):
6186         (find_matching_subwindow):
6187         * glyphs-eimage.c:
6188         * imgproc.c (get_histogram):
6189         * redisplay.c (point_in_line_start_cache):
6190         * redisplay-output.c (redisplay_unmap_subwindows):
6191         * symbols.c (defsymbol_massage_name_1):
6192         (defkeyword_massage_name):
6193         (deferror_massage_name_and_message):
6194         * redisplay-x.c (x_output_string): 
6195         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6196         * frame.h (struct frame):
6197         * filelock.c (current_lock_owner):
6198         * doprnt.c (emacs_doprnt_1):
6199         * lisp.h (struct Lisp_Bit_Vector):
6200         (DO_REALLOC):
6201         Fix warnings.
6202
6203 2002-02-13  Ben Wing  <ben@xemacs.org>
6204
6205         * event-stream.c (reset_key_echo):
6206         * event-stream.c (reset_this_command_keys):
6207         * event-stream.c (execute_command_event):
6208         If console is dead as a result of C-x 5 0, then post-command stuff
6209         needs to be careful and do only non-console-specific stuff.
6210
6211 2002-07-01  Mike Sperber <mike@xemacs.org>
6212
6213         * process-unix.c (unix_send_process): Mark coding_outstream as
6214         non-open upon SIGPIPE.
6215
6216         * event-stream.c (Fnext_event): Reorder switch cases to something
6217         that makes sense.
6218
6219 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6220
6221         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6222         Don't bogusly reinitialize ascii_character property.
6223
6224 2002-07-08  Mike Sperber <mike@xemacs.org>
6225
6226         * process.c (Fstart_process_internal): Do error checking before we
6227         fork off the child, so the child can't muck with the state of the
6228         parent.
6229
6230 2002-07-08  Mike Sperber <mike@xemacs.org>
6231
6232         * ralloc.c (init_ralloc): Allocate properly for pdump.
6233
6234 2002-06-12  Andy Piper  <andy@xemacs.org>
6235
6236         * glyphs.c (query_string_geometry): check the string.
6237
6238         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6239         widget names.
6240
6241 2002-06-17  Jerry James  <james@xemacs.org>
6242
6243         * sysdll.c: Remove RTLD_GLOBAL initialization.
6244         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6245
6246 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6247
6248         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6249
6250 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6251
6252         * sysdep.c (sys_rename): Make sys_rename work for the case where
6253         Windows rename sets errno to EACCES if target file exists.
6254
6255 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6256
6257         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6258         Fix detection of metric units to work on Win95
6259
6260 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6261
6262         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6263
6264 2002-04-25  Andy Piper  <andy@xemacs.org>
6265
6266         * redisplay.c (create_text_block): Remove extra comment trailer.
6267
6268 2002-04-24  Andy Piper  <andy@xemacs.org>
6269
6270         * redisplay.c (create_text_block): Don't actually add propagation
6271         data if the line ends after we have added a glyph.
6272
6273 2002-04-22  Andy Piper  <andy@xemacs.org>
6274
6275         * extents.c (extent_fragment_update): check for glyphs we have
6276         previously displayed.
6277         * extents.c (print_extent_1): warning removal.
6278         * extents.h: change prototype.
6279         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6280         widths correctly for wide glyphs.
6281         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6282         * redisplay.c (prop_type): add PROP_GLYPH.
6283         * redisplay.c (struct prop_block): add glyph type
6284         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6285         to the propagation data.
6286         * redisplay.c (create_text_block): if there is a glyph in the
6287         propagation data use it to salt extent_fragment_update.
6288         * redisplay.c (create_string_text_block): ditto.
6289
6290 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6291
6292         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6293         * redisplay-output.c (compare_runes): Compare them.
6294         * redisplay.c: Update copyright date.
6295         * redisplay.c (pos_data): Add need_baseline_computation field.
6296         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6297         need_baseline_computation; zero yoffset. Set max_pixmap_height
6298         for all pixmaps, not just automatically positioned ones.
6299         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6300         * redisplay.c (calculate_baseline): New, compute textual baseline.
6301         * redisplay.c (add_glyph_rune): Call them.
6302         * redisplay.c (create_text_block): Likewise.
6303         * redisplay.c (create_overlay_glyph_block): Likewise.
6304         * redisplay.c (add_margin_runes): Likewise.
6305         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6306
6307         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6308         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6309         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6310         * redisplay-msw.c (mswindows_output_string): Likewise.
6311         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6312         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6313         * redisplay-x.c (x_output_display_block): Likewise.
6314
6315 2002-03-28  Ben Wing  <ben@xemacs.org>
6316
6317         * redisplay.c: Fixed bug in redisplay
6318         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6319         and down of the lines, since they're bigger than the line
6320         size. (It was seen most obviously when there's a horizontal scroll
6321         bar, e.g. do C-h a glyph or something like that.) The problem was
6322         that the glyph-contrib-p setting on glyphs was ignored even if it
6323         was set properly, which it wasn't until now.
6324
6325 2002-04-24  Andy Piper  <andy@xemacs.org>
6326
6327         * lisp.h (Dynarr_end): Fix definition.
6328
6329 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6330
6331         * redisplay.c (mark_redisplay): Remove call to
6332         update_frame_window_mirror.
6333
6334 2001-11-15  Andy Piper  <andy@xemacs.org>
6335
6336         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6337         cygwin (again).
6338
6339 2002-02-13  Andy Piper  <andy@xemacs.org>
6340
6341         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6342         we did in fact enqueue the XM_MAPFRAME event.
6343
6344 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6345
6346         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6347         to fix problem switching between virtual desktops under virtuawin
6348         virtual window manager.
6349
6350 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6351
6352         * event-msw.c: Typo fix.
6353         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6354         magic XM_MAPFRAME event has been sent.
6355
6356 2001-11-23  Andy Piper  <andy@xemacs.org>
6357
6358         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6359
6360 2001-11-21  Andy Piper  <andy@xemacs.org>
6361
6362         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6363         mouse events outside the frame.
6364
6365 2002-03-20  Andy Piper  <andy@xemacs.org>
6366
6367         * menubar-msw.c (mswindows_popup_menu): warning removal.
6368         * dialog-msw.c (dialog_popped_down): ditto.
6369
6370 2001-12-11  Andy Piper  <andy@xemacs.org>
6371
6372         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6373         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6374         popup_up_p.
6375         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6376         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6377         * menubar-msw.c (mswindows_popup_menu): ditto.
6378
6379 2001-10-29  Andy Piper  <andy@xemacs.org>
6380
6381         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6382         cancels.
6383
6384 2002-01-03  Andy Piper  <andy@xemacs.org>
6385
6386         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6387         letters.
6388         (xrealpath): ditto.
6389
6390 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6391
6392         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6393         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6394         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6395         Detect and handle case where machine is set up for metric units
6396
6397 2002-04-02  Andy Piper  <andy@xemacs.org>
6398
6399         * dired-msw.c (mswindows_get_files): 
6400         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6401         completely handled by XEmacs. Suggested by Thomas Vogler
6402         <mail@thomas-vogler.de>.
6403
6404 2001-11-14  Andy Piper  <andy@xemacs.org>
6405
6406         * nt.c (REG_ROOT): change registry key to XEmacs.
6407
6408 2002-04-27  Andy Piper  <andy@xemacs.org>
6409
6410         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6411
6412 2002-04-26  Andy Piper  <andy@xemacs.org>
6413
6414         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6415         behavior.
6416
6417 2002-03-14  Mike Alexander  <mta@arbortext.com>
6418
6419         * event-msw.c (mswindows_unwait_process): New, remove process from
6420         wait list
6421         * process-nt.c (nt_finalize_process_data): Call
6422         mswindows_unwait_process
6423         * console-msw.h: Declare mswindows_unwait_process
6424
6425 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6426
6427         * editfns.c (Fdecode_time):
6428         (Fformat_time_string):
6429         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6430         (make_time): Warning elimination (change arg name).
6431
6432 2001-11-24  Andy Piper  <andy@xemacs.org>
6433
6434         * window.c (Fsplit_window): Doc return type.
6435
6436 2002-04-01  Andy Piper  <andy@xemacs.org>
6437
6438         * emacs.c (Fkill_emacs): Only output message box in interactive
6439         mode.
6440
6441 2002-04-26  Andy Piper  <andy@xemacs.org>
6442  
6443         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6444         cygwin.
6445
6446 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6447
6448         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6449         bit platform.
6450
6451 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6452
6453         * XEmacs 21.4.8 "Honest Recruiter" is released.
6454
6455 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6456
6457         Supersedes 2002-04-17 patch.
6458
6459         * process.h (PROCESS_LIVE_P): Use the process status as
6460         evidence of health, not the state of the input stream.
6461         (PROCESS_READABLE_P): Say if the process is readable
6462         from. (It may be dead nonetheless.)
6463         (CHECK_READABLE_PROCESS): Test for that condition.
6464
6465         * process.c (create_process): Use PROCESS_READABLE_P.
6466         (read_process_output, set_process_filter): Likewise.
6467
6468         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6469         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6470
6471         This code is #if 0'd, this is not the time to add new functions:
6472
6473         * process.c (Fprocess_readable_p): Report readability status.
6474         * process.c (Qprocess_readable_p): New, associated symbol...
6475         * process.c (syms_of_process): ... initialize it.
6476
6477 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6478
6479         * XEmacs 21.4.7 "Economic Science" is released.
6480
6481 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6482
6483         * process.h (PROCESS_LIVE_P): Use the process status as
6484         evidence of health, not the state of the input stream.
6485
6486 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6487
6488         * sysdep.c (sys_siglist): change "signum" to "signal"
6489
6490 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6491
6492         * s/darwin.h: New file.
6493         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6494         
6495 2002-04-23  Andreas Jaeger  <aj@suse.de>
6496
6497         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6498         which use lib64 for 64-bit libs.
6499         (START_FILES): Likewise.
6500
6501 2002-02-11  Mike Sperber  <mike@xemacs.org>
6502
6503         * device-x.c: 
6504         (x_IO_error_handler):
6505         (x_init_device): Temporarily keep device in static variable
6506         `device_being_initialized' so we can recover gracefully from
6507         internal XOpenDevice failure.  (XOpenDevice is documented to
6508         return NULL on failure, but sometimes calls the IO error handler
6509         instead.)
6510
6511 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6512
6513         * dired.c (Ffile_name_all_completions): Change documentation --
6514         remove reference to completion-ignored-extensions.
6515         * dired.c (vars_of_dired): Change documentation for
6516         completion-ignored-extensions -- remove reference to
6517         file-name-all-completions.
6518
6519 2002-03-06  Jerry James  <james@xemacs.org>
6520
6521         * emodules.c (emodules_load): Fix multiple loading of same module.
6522
6523 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6524         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6525         RTLD_LAZY to avoid incorrect symbol binding when using nested
6526         shared libraries on Solaris.
6527
6528 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6529
6530         * fileio.c (Ffind_file_name_handler): Improve docstring.
6531
6532 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6533
6534         * fns.c (Fmapconcat): Improve docstring.
6535
6536 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6537
6538         * device-gtk.c: Add prototype for
6539         emacs_gtk_selection_clear_event_handle.
6540         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6541         selection.  Setup signal handler for "selection_clear_event"
6542         (emacs_gtk_selection_clear_event_handle).
6543
6544         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6545         other applications owning the clipboard (based on
6546         x_handle_selection_clear).
6547
6548 2001-12-23  William M. Perry  <wmperry@gnu.org>
6549
6550         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6551         
6552 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6553
6554         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6555
6556 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6557
6558         * XEmacs 21.4.6 "Common Lisp" is released.
6559
6560 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6561
6562         * search.c (Freplace_match): Add missing sub-expression functionality.
6563
6564         * buffer.c (decode_buffer): Add a check for pointer type to
6565         decode_buffer, before gcc's CSE optimization reorders a
6566         dereference in front of the allow_string test.
6567
6568 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6569
6570         * window.c (window_loop): Fix bug that sometimes prevented
6571         window_loop() from iterating across multiple devices.  Also, at
6572         Ben's request, changed infloop-detecting code to abort() instead
6573         of silently terminating window_loop().
6574
6575 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6576
6577         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6578         * editfns.c (make_time): New function.
6579         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6580         * lisp.h (make_time): Prototype and comment it.
6581         * dired.c (wasteful_word_to_lisp): Deprecate.
6582         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6583
6584 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6585
6586         * fileio.c (auto_save_1): Use current coding system, not
6587         escape-quoted.
6588
6589 2001-11-13  Ben Wing  <ben@xemacs.org>
6590
6591         * window.c:
6592         * window.c (window_truncation_on):
6593         * window.c (syms_of_window):
6594         truncate-partial-width-windows should respect the buffer being
6595         displayed, like other redisplay vars.
6596
6597 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6598
6599         * event-stream.c (Fread_key_sequence): save current buffer.
6600
6601 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6602
6603         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6604
6605 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6606
6607         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6608
6609 2001-10-26  Mike Alexander  <mta@arbortext.com>
6610
6611         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6612
6613 2001-10-25  Andy Piper  <andy@xemacs.org>
6614
6615         * ChangeLog:
6616         * dialog-msw.c (handle_directory_proc): new function.
6617          (handle_directory_dialog_box): new fucntion.
6618          (handle_file_dialog_box): use new directory dialog support.
6619          (mswindows_make_dialog_box_internal): ditto.
6620         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6621         handling.
6622         (mswindows_find_frame): make global.
6623         * fileio.c (Fexpand_file_name): build fix.
6624         * general-slots.h: add Qdirectory.
6625         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6626         handling.
6627         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6628         cygwin not leaving win32 paths unchanged.
6629         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6630         cygwin runtime to do path conversion.
6631         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6632         (syms_of_win32): add new function.
6633         * window.c (window_loop): build fix.
6634
6635 2001-10-15  Andy Piper  <andy@xemacs.org>
6636
6637         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6638
6639 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6640
6641         * XEmacs 21.4.5 "Civil Service" is released.
6642
6643 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6644
6645         * glyphs-x.c: Force buffer-tab highlight update when moving the
6646         buffer, avoiding an ugly black border, used for keyboard focus
6647         indication, on a widget that can never have keyboard focus, the
6648         buffer tab.
6649
6650 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6651
6652         * process-unix.c (unix_open_multicast_group): Remove too much
6653         conversion between host and network byte order.
6654
6655 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6656
6657         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6658         before replacing them.
6659
6660         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6661         operation.
6662
6663         * src/window.c (undedicate_windows): Use it.
6664         * src/window.h: Add prototype.
6665
6666 2001-09-17  Ben Wing  <ben@xemacs.org>
6667
6668         * fileio.c (normalize_filename):
6669         * fileio.c (Fexpand_file_name):
6670         Fix various C++ compile errors in Andy's recent code.
6671         
6672         * callint.c (Fcall_interactively):
6673         * editfns.c (Ftemp_directory):
6674         * editfns.c (Fuser_full_name):
6675         * emacs.c (argmatch):
6676         * lread.c (locate_file_map_suffixes):
6677         * redisplay-x.c (x_ring_bell):
6678         Fix sign-compare warnings.
6679         
6680 2001-09-08  Andy Piper  <andy@xemacs.org>
6681
6682         * fileio.c (normalize_filename): copied from nt.c
6683         * (Ffile_name_directory): enable win32 paths under cygwin.
6684         * (Ffile_name_nondirectory): ditto.
6685         * (directory_file_name): ditto.
6686         * (Fexpand_file_name): ditto.
6687         * (Ffile_truename): ditto.
6688         * (Fsubstitute_in_file_name): ditto.
6689         * (Ffile_name_absolute_p): ditto.
6690         * (Ffile_readable_p): ditto.
6691
6692 2001-09-08  Andy Piper  <andy@xemacs.org>
6693
6694         * device-msw.c (mswindows_finish_init_device): remove dde
6695         initialization.
6696         * device-msw.c (mswindows_init_dde): factor out from
6697         mswindows_finish_init_device()
6698         * device-msw.c (init_mswindows_very_early): new function
6699         initialize but don't enable dde.
6700         * emacs.c (main_1): call init_mswindows_very_early.
6701         * event-msw.c:
6702         * event-msw.c (mswindows_dde_callback): only execute when we are
6703         ready.
6704         * symsinit.h: declare init_mswindows_very_early.
6705
6706 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6707
6708         [sjt: This has been in 21.5 for months with no complaints.]
6709
6710         * console.h (struct console_methods): Added flags member.
6711         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6712         (CONMETH_IMPL_FLAG):
6713         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6714         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6715
6716         * device.c (window_system_pixelated_geometry): Use the above macros.
6717
6718         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6719         implememntation flag.
6720         * device.h (DEVICE_DISPLAY_P): Use it.
6721
6722         * frame.c (delete_frame_internal): Use the above macro.
6723
6724         * redisplay.c (redisplay_device): Use it.
6725         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6726         (redisplay_frame): Ditto.
6727
6728         * device-msw.c (mswindows_device_implementation_flags): Removed.
6729         (msprinter_device_implementation_flags): Removed.
6730         (console_type_create_device_mswindows): Removed references to
6731         implementation_flags methods, set implementation flags here.
6732         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6733
6734         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6735         (console_type_create_device_gtk): Removed method declaration.
6736         Added commented out statement which semantically matches the
6737         commented out statement in the above removed method.
6738
6739 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6740
6741         The attached patch fixes a few warnings. 
6742
6743         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6744         * src/frame-gtk.c: guard against GNOME calls in GTK only
6745         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6746         * src/select-gtk.c: prototype lisp_to_time
6747
6748 2001-06-08  Ben Wing  <ben@xemacs.org>
6749
6750         ------ gc-in-window-procedure fixes ------
6751         
6752         * alloc.c:
6753         * alloc.c (struct post_gc_action):
6754         * alloc.c (register_post_gc_action):
6755         * alloc.c (run_post_gc_actions):
6756         * alloc.c (garbage_collect_1):
6757         Create "post-gc actions", to avoid those dreaded "GC during window
6758         procedure" problems.
6759
6760         * event-msw.c:
6761         Abort, clean and simple, when GC in window procedure.  We want
6762         to flush these puppies out.
6763
6764         * glyphs-msw.c:
6765         * glyphs-msw.c (finalize_destroy_window):
6766         * glyphs-msw.c (mswindows_finalize_image_instance):
6767         Use a post-gc action when destroying subwindows.
6768
6769         * lisp.h:
6770         Declare register_post_gc_action().
6771
6772         * scrollbar-msw.c:
6773         * scrollbar-msw.c (unshow_that_mofo):
6774         Use a post-gc action when unshowing scrollbar windows, if in gc.
6775
6776         * redisplay.c (mark_redisplay):
6777         Add comment about the utter evilness of what's going down here.
6778
6779         ------ cygwin setitimer fixes ------
6780         
6781         * Makefile.in.in (sheap_objs):
6782         * Makefile.in.in (profile_objs):
6783         * Makefile.in.in (objs):
6784         Compile profile.c only when HAVE_SETITIMER.
6785         
6786         * nt.c (mswindows_sigset):
6787         * nt.c (mswindows_sighold):
6788         * nt.c (mswindows_sigrelse):
6789         * nt.c (mswindows_sigpause):
6790         * nt.c (mswindows_raise):
6791         * nt.c (close_file_data):
6792         Style fixes.
6793         
6794         * nt.c:
6795         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6796         
6797         * profile.c:
6798         * profile.c (Fstart_profiling):
6799         * profile.c (Fstop_profiling):
6800         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6801         instead of just plain setitimer().
6802         
6803         * signal.c:
6804         * signal.c (set_one_shot_timer):
6805         * signal.c (alarm):
6806         Define qxe_setitimer() as an encapsulation around setitimer() --
6807         call setitimer() directly unless Cygwin or MS Win, in which case
6808         we use our simulated version in win32.c.
6809         
6810         * systime.h:
6811         * systime.h (struct itimerval):
6812         * systime.h (ITIMER_REAL):
6813         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6814         comment about "qxe" and the policy regarding encapsulation.
6815
6816         * win32.c:
6817         * win32.c (setitimer_helper_proc):
6818         * win32.c (setitimer_helper_period):
6819         * win32.c (setitimer_helper):
6820         * win32.c (mswindows_setitimer):
6821         Move setitimer() emulation here, so Cygwin can use it.
6822         Rename a couple of functions and variables to be longer and more
6823         descriptive.  In setitimer_helper_proc(), send the signal
6824         using either mswindows_raise() or (on Cygwin) kill().  If for
6825         some reason we are still getting lockups, we'll change the kill()
6826         to directly invoke the signal handlers.
6827
6828         ------ windows shell fixes ------
6829         
6830         * callproc.c:
6831         * ntproc.c:
6832         Comments about how these two files must die.
6833
6834         * callproc.c (init_callproc):
6835         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6836         not just COMSPEC. (more correct and closer to FSF.) Don't
6837         force a value for SHELL into the environment. (Comments added
6838         to explain why not.)
6839         
6840         * nt.c (init_user_info):
6841         Don't shove a fabricated SHELL into the environment.  See above.
6842
6843 2001-06-01  Ben Wing  <ben@xemacs.org>
6844
6845         * Makefile.in.in (ldflags):
6846         eliminate that pesky "defaulting to 00401000" warning.
6847         * nt.h:
6848         eliminate warnings.
6849
6850 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6851
6852         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6853         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6854
6855 2001-04-24  Jerry James <james@xemacs.org>
6856
6857         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6858         correct order.
6859
6860 2001-06-01  Ben Wing  <ben@xemacs.org>
6861
6862         * event-msw.c (debug_mswin_messages):
6863         conditionalize the messages that were causing compile errors.
6864         (if only macros could generate #ifdef statements ...)
6865
6866 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6867
6868         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6869
6870 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6871
6872         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6873
6874 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6875
6876         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6877         * process-unix.c (unix_canonicalize_host_name):
6878         sysdep.c (init_system_name):
6879         Use it to conditionally support IPv6 canonicalization.
6880
6881 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6882
6883         * event-msw.c:
6884         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6885
6886 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6887
6888         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6889         attempt is made to scroll when no scroll bar is available.
6890
6891 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6892
6893         * input-method-motif.c (XIM_delete_frame): New callback.
6894         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6895         got deleted from 21.4.3.)
6896
6897 2001-06-01  Ben Wing  <ben@xemacs.org>
6898
6899         * nt.c (mswindows_utime):
6900         * nt.c (close_file_data):
6901         fix off-by-one-indirection error.
6902
6903 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6904
6905         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6906         because set_file_times() now takes Lisp_Object path, instead of
6907         char*.
6908         * nt.c: Include buffer.h.
6909         * nt.c (convert_from_time_t): New.
6910         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6911         not set mtime correctly.
6912         * nt.h: Declare mswindows_utime().
6913         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6914         path, instead of char*.
6915         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6916
6917 2001-05-30  Ben Wing  <ben@xemacs.org>
6918
6919         For 21.4:
6920
6921         (Stephen, just take all event-msw.c patches.  This includes
6922         the "iconify" fix below.)
6923
6924         * event-msw.c:
6925         * event-msw.c (mswindows_dequeue_dispatch_event):
6926         * event-msw.c (assert):
6927         * event-msw.c (emacs_mswindows_quit_p):
6928         * event-msw.c (debug_mswin_messages):
6929         * event-msw.c (debug_output_mswin_message):
6930         * event-msw.c (vars_of_event_mswindows):
6931         Fix yet more problems with C-g handling.
6932         Implement debug-mswindows-events.
6933         
6934 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6935
6936         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6937         
6938 2001-05-23  Ben Wing  <ben@xemacs.org>
6939
6940         * event-msw.c (winsock_writer):
6941         * event-msw.c (winsock_closer):
6942         prior kludgy code was clobbering the buffer, thinking it was
6943         "unused" space to store an unneeded return value; instead, use
6944         the variable we've already got staring us in the face.
6945
6946 2001-05-17  Andy Piper  <andy@xemacs.org>
6947
6948         * sysfile.h: don't assume that file attributes are boolean
6949
6950 2001-05-23  Ben Wing  <ben@xemacs.org>
6951
6952         * device-msw.c (msprinter_init_device):
6953         signal an error rather than crash with an unavailable network
6954         printer (from Mike Alexander).
6955         
6956         * event-msw.c:
6957         * event-msw.c (struct winsock_stream):
6958         * event-msw.c (winsock_writer):
6959         * event-msw.c (winsock_closer):
6960         * event-msw.c (make_winsock_stream_1):
6961         cleanup headers.  fix (hopefully) an error with data corruption
6962         when sending to a network connection.
6963
6964         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6965         to handle the ~user prefix by (a) always assuming we're referencing
6966         ourselves and not even verifying the user -- hence any file with
6967         a tilde as its first char is invalid! (b) if there wasn't a slash
6968         following the filename, the pointer was set *past* the end of
6969         file and we started reading from uninitialized memory.  Now we
6970         simply treat these as files, always.
6971
6972         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6973         
6974 2001-05-19  Ben Wing  <ben@xemacs.org>
6975
6976         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6977
6978         * process-nt.c:
6979         * process-nt.c (vars_of_process_nt):
6980         remove unused mswindows-quote-process-args.  rec for 21.4.
6981         
6982 2001-05-12  Ben Wing  <ben@xemacs.org>
6983
6984         * event-msw.c (mswindows_dde_callback):
6985         * event-msw.c (mswindows_wnd_proc):
6986         eliminate cygwin warnings.
6987
6988 2001-05-06  Ben Wing  <ben@xemacs.org>
6989
6990         * console-msw.h:
6991         * device-msw.c:
6992         * device-msw.c (print_dialog_worker):
6993         * device-msw.c (mswindows_handle_print_dialog_box):
6994         * device-msw.c (syms_of_device_mswindows):
6995         * dialog-msw.c (mswindows_make_dialog_box_internal):
6996         * general-slots.h:
6997         implement printing the selection when it's selected.
6998
6999 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7000
7001         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7002
7003 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7004
7005         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7006         EMACS_INT is signed.
7007
7008 2001-04-15  Michael Lausch  <mla@1012surf.net>
7009
7010         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7011         gtk_widget_request_size() to give scrollbar >0 width for
7012         GTK >1.2.8.
7013
7014 2001-05-30  William M. Perry  <wmperry@gnu.org>
7015
7016         * event-gtk.c: Check for buttons as modifier keys.
7017
7018 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7019
7020         * s\mingw32.h:
7021         Properly find MinGW's <process.h> inside Cygwin's restructured
7022         include directories.  Don't try to include <cygwin/version.h>
7023         since we are dropping support for MinGW in versions of Cygwin
7024         earlier than b21.
7025         * nt.c:
7026         Drop support for MinGW in versions of Cygwin before b21.
7027         * sysdep.c:
7028         Properly find MinGW's <process.h> inside Cygwin's restructured
7029         include directories.
7030         * syswindows.h:
7031         Drop support for MinGW in versions of Cygwin before b21.
7032         * unexcw.c:
7033         Even though a.out.h is no longer detected by configure, allow
7034         MinGW to use it until we figure out how to do the job with Win32.
7035
7036 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7037
7038         * syntax.c (find_start_of_comment):
7039         Fix `unbalanced parentheses' bug when dealing with mixed comment
7040         styles in c++/java/etc. mode
7041
7042 2001-05-29  Mike Alexander  <mta@arbortext.com>
7043
7044         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7045         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7046
7047 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7048
7049         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7050
7051 2001-03-31  Mike Sperber <mike@xemacs.org>
7052
7053         * search.c (Freplace_match): Support FSF-style specification of
7054         match subexpression when applied to a buffer.
7055
7056 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7057
7058         * event-stream.c (is_scrollbar_event): add missing semicolon
7059
7060 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7061
7062         * Makefile.in.in: Use TAR macro instead of hardcoding
7063           tar.  Allows use of GNU tar instead of system tar
7064
7065 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7066
7067         * event-stream.c (is_scrollbar_event): add missing semicolon
7068
7069 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7070
7071         * XEmacs 21.4.3 "Academic Rigor" is released.
7072
7073 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7074
7075         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7076
7077 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7078
7079         * buffer.c (Vcase_fold_search): Remove obsolete
7080           comment about non ASCII case-fold-search.  This
7081           bug has been fixed by case-table changes.
7082
7083 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7084
7085         * event-msw.c: Restore include of events-mod.h.
7086
7087 2001-04-22   zhaoway  <zw@debian.org>
7088
7089         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7090         !HAVE_SCROLLBARS.
7091
7092 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7093
7094         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7095
7096 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7097
7098         * mule-charset.c (Fmake_charset): Add missing else.
7099
7100 2001-04-23  Ben Wing  <ben@xemacs.org>
7101
7102         * event-msw.c (FAKE_MOD_QUIT):
7103         * event-msw.c (mswindows_dequeue_dispatch_event):
7104         * event-msw.c (mswindows_wnd_proc):
7105         * event-msw.c (emacs_mswindows_quit_p):
7106         Get critical quit working.
7107
7108 2001-05-05  Ben Wing  <ben@xemacs.org>
7109
7110         * console-msw.h:
7111         * device-msw.c:
7112         * device-msw.c (mswindows_get_default_margin):
7113         * frame-msw.c (mswindows_size_frame_internal):
7114         * frame-msw.c (msprinter_init_frame_1):
7115         * frame-msw.c (vars_of_frame_mswindows):
7116         Change top/bottom margin defaults to 0.5 inches.
7117
7118 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7119
7120         Fix link error with gcc 3.0 on Linux.
7121         * terminfo.c (UP): Remove.
7122         * terminfo.c (BC): Remove.
7123         * terminfo.c (PC): Remove.
7124         They weren't used, and in any case, these symbols should be
7125         defined in the *library*.
7126
7127 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7128
7129         * s/aix4.h: Fix crash with xlc -O3.
7130         Improve comment explaining how -O3 works.
7131
7132 2001-04-15  Ben Wing  <ben@xemacs.org>
7133
7134         * event-stream.c:
7135         * event-stream.c (Fnext_event):
7136         * event-stream.c (is_scrollbar_event):
7137         * event-stream.c (execute_command_event):
7138         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7139         crash' problem.  His fix introduces other problems.  We filter
7140         out scrollbar events specifically, making them somewhat invisible
7141         to command-building, and not appearing in `this-command-keys'.
7142         More work is still needed (see comments in event-stream.c), but
7143         this fixes all the major problems.
7144
7145 2001-04-20  Ben Wing  <ben@xemacs.org>
7146
7147         * .cvsignore: Added stuff for Windows.
7148
7149 2001-04-28  Ben Wing  <ben@xemacs.org>
7150
7151         * buffer.c (Ferase_buffer):
7152         * editfns.c (buffer_insert1):
7153         * editfns.c (Finsert_before_markers):
7154         * editfns.c (Finsert_string):
7155         * editfns.c (Finsert_char):
7156         * editfns.c (Fdelete_region):
7157         * editfns.c (Fwiden):
7158         * editfns.c (Fnarrow_to_region):
7159         remove bogus lines setting zmacs_region_stays to 0.
7160         
7161 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7162
7163         * process-unix.c (unix_open_network_stream): If connect() fails
7164         invalidate file descriptor after closing it.
7165
7166 2001-03-08  Mike Alexander  <mta@arbortext.com>
7167
7168         * event-msw.c (mswindows_need_event_in_modal_loop):
7169         Don't dispatch a message if we didn't get one.
7170         (mswindows_need_event):
7171         Terminate the correct process when one exits instead of the first
7172         one on Vprocess_list and look for process termination when in
7173         mswindows_protect_modal_loop.
7174
7175 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7176
7177         * XEmacs 21.4.1 "Copyleft" is released.
7178
7179 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7180
7181         * input-method-motif.c (XIM_delete_frame): New callback.
7182         (XIM_init_frame): Register it.
7183
7184 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7185
7186         * XEmacs 21.4.0 "Solid Vapor" is released.
7187
7188 2001-04-15  Ben Wing  <ben@xemacs.org>
7189
7190         * cmdloop.c (call_command_loop):
7191         Fix braino in bit-rotting code.
7192         
7193 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7194
7195         * extents.c (Fset_extent_endpoints): Force creation of extent info
7196         in buffer_or_string.
7197
7198         * extents.c (process_extents_for_insertion_mapper): Correctly
7199         check for open-open zero-length extents.
7200
7201 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7202
7203         * lisp.h: New typedefs Memory_count, Element_count.
7204         * regex.c:
7205         * regex.h:
7206         Sign-compare warning elimination: several unsigned -> signed.
7207         Based on work by Ben Wing <ben@xemacs.org>.
7208
7209 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7210
7211         * XEmacs 21.2.47 "Zephir" is released.
7212
7213 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7214
7215         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7216
7217 2001-04-03  Mike Sperber <mike@xemacs.org>
7218
7219         * search.c: Revert previous patch due because of release.
7220
7221 2001-03-30  Ben Wing  <ben@xemacs.org>
7222
7223         * s\cygwin32.h:
7224         Add missing killpg prototype.
7225
7226         * elhash.c:
7227         Add a comment about fixing problems when a new entry is added
7228         while mapping.
7229
7230         * frame-msw.c (mswindows_init_frame_1):
7231         Fix compile warnings.
7232
7233         * menubar.c (vars_of_menubar):
7234         Provide `menu-accelerator-support' to indicate that we properly
7235         support %_ in menu specifications, so that package code can
7236         conditionalize on this (and remove %_ from menu specifications
7237         on older versions).
7238
7239         * event-msw.c:
7240         * scrollbar-msw.c:
7241         * scrollbar-msw.c (can_scroll):
7242         * scrollbar-msw.h:
7243         Fix handling of mouse wheel under Windows to follow standards --
7244         now scrolls window under pointer, not selected window.
7245
7246 2001-03-31  Mike Sperber <mike@xemacs.org>
7247
7248         * search.c (Freplace_match): Support FSF-style specification of
7249         match subexpression when applied to a buffer.
7250
7251 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7252
7253         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7254         function to modify KEYMAP, so map over a copy of the hash table.
7255
7256 2001-03-21  Martin Buchholz <martin@xemacs.org>
7257
7258         * XEmacs 21.2.46 "Urania" is released.
7259
7260 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7261
7262         * realpath.c (xrealpath): Make file-truename work with symlinks to
7263         /cygdrive paths on cygwin. Always lowercase drive-letters on
7264         native windows.
7265         (cygwin_readlink): Don't try to find canonical filename unless
7266         file exists.
7267
7268 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7269
7270         * ChangeLog: Log GTK merge.
7271
7272         * dumper.c:
7273         * select-x.c:
7274         * specifier.c:
7275         * symeval.h:
7276         Revert gratuitous whitespace changes from GTK merge.
7277
7278         * emacs.c: Document end of complex #ifdef @ l. 1495.
7279
7280
7281 2001-03-12  Andy Piper  <andy@xemacs.org>
7282
7283         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7284         have to do likewise.
7285
7286 2001-03-12  Andy Piper  <andy@xemacs.org>
7287
7288         * sysdep.c: we only support mingw now.
7289
7290 2001-03-09  Andy Piper  <andy@xemacs.org>
7291
7292         * unexcw.c (copy_executable_and_dump_data_section): making approx
7293         overrun a warning only.
7294
7295 2001-03-10  William M. Perry  <wmperry@aventail.com>
7296
7297         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7298         satisfy Stephen's identical-after-cpp plea.
7299
7300 2001-03-02  Ben Wing  <ben@xemacs.org>
7301
7302         * cmds.c:
7303         * cmds.c (Fforward_char):
7304         * syntax.c:
7305         * window.c:
7306
7307         Augment documentation of the most common motion commands to make
7308         note of the shifted-motion support.
7309         
7310 2001-03-02  Ben Wing  <ben@xemacs.org>
7311
7312         * nt.c (mswindows_fstat):
7313         * nt.c (mswindows_stat):
7314         * search.c (boyer_moore):
7315         Fix compile warnings under Windows.
7316         
7317         * sysdep.c (sys_readdir):
7318         Fix buggy filename-conversion code under Mule.
7319
7320 2001-03-09  William M. Perry  <wmperry@aventail.com>
7321
7322         * Makefile.in.in:
7323         * config.h.in:
7324         * console.c:
7325         * console.h:
7326         * device.c:
7327         * device.h:
7328         * dragdrop.c:
7329         * emacs.c:
7330         * event-stream.c:
7331         * events.c:
7332         * events.h:
7333         * faces.c:
7334         * frame.h:
7335         * general-slots.h:
7336         * glyphs.c:
7337         * gutter.c:
7338         * inline.c:
7339         * lisp.h:
7340         * lrecord.h:
7341         * make-src-depend:
7342         * redisplay-output.c:
7343         * redisplay.c:
7344         * symsinit.h:
7345         * sysfile.h:
7346         * toolbar.c:
7347         * window.c:
7348         The Great GTK Merge.
7349
7350         * ChangeLog.GTK:
7351         * console-gtk.c:
7352         * console-gtk.h:
7353         * device-gtk.c:
7354         * emacs-marshals.c:
7355         * emacs-widget-accessors.c:
7356         * event-gtk.c:
7357         * frame-gtk.c:
7358         * gccache-gtk.c:
7359         * gccache-gtk.h:
7360         * glade.c:
7361         * glyphs-gtk.c:
7362         * glyphs-gtk.h:
7363         * gtk-glue.c:
7364         * gtk-xemacs.c:
7365         * gtk-xemacs.h:
7366         * gui-gtk.c:
7367         * gui-gtk.h:
7368         * menubar-gtk.c:
7369         * native-gtk-toolbar.c:
7370         * objects-gtk.c:
7371         * objects-gtk.h:
7372         * redisplay-gtk.c:
7373         * scrollbar-gtk.c:
7374         * scrollbar-gtk.h:
7375         * select-gtk.c:
7376         * toolbar-gtk.c:
7377         * ui-byhand.c:
7378         * ui-gtk.c:
7379         * ui-gtk.h:
7380         The Great GTK Merge: new files.
7381
7382 2001-02-26  Ben Wing  <ben@xemacs.org>
7383
7384         Reapplied Lstream change.
7385
7386 2001-02-26  Ben Wing  <ben@xemacs.org>
7387
7388         Undid the last change, since it is more controversial than I
7389         thought.  It should be back in at some point soon.
7390         
7391 2001-02-25  Ben Wing  <ben@xemacs.org>
7392
7393         * buffer.c:
7394         * callproc.c (Fold_call_process_internal):
7395         * event-msw.c (ntpipe_slurp_reader):
7396         * event-msw.c (ntpipe_shove_writer):
7397         * event-msw.c (winsock_reader):
7398         * event-msw.c (winsock_writer):
7399         * file-coding.c:
7400         * file-coding.c (detect_eol_type):
7401         * file-coding.c (detect_coding_type):
7402         * file-coding.c (determine_real_coding_system):
7403         * file-coding.c (Fdetect_coding_region):
7404         * file-coding.c (decoding_reader):
7405         * file-coding.c (decoding_writer):
7406         * file-coding.c (mule_decode):
7407         * file-coding.c (Fdecode_coding_region):
7408         * file-coding.c (encoding_reader):
7409         * file-coding.c (encoding_writer):
7410         * file-coding.c (mule_encode):
7411         * file-coding.c (Fencode_coding_region):
7412         * file-coding.c (detect_coding_sjis):
7413         * file-coding.c (decode_coding_sjis):
7414         * file-coding.c (encode_coding_sjis):
7415         * file-coding.c (detect_coding_big5):
7416         * file-coding.c (decode_coding_big5):
7417         * file-coding.c (encode_coding_big5):
7418         * file-coding.c (detect_coding_ucs4):
7419         * file-coding.c (decode_coding_ucs4):
7420         * file-coding.c (encode_coding_ucs4):
7421         * file-coding.c (detect_coding_utf8):
7422         * file-coding.c (decode_coding_utf8):
7423         * file-coding.c (encode_coding_utf8):
7424         * file-coding.c (detect_coding_iso2022):
7425         * file-coding.c (decode_coding_iso2022):
7426         * file-coding.c (encode_coding_iso2022):
7427         * file-coding.c (decode_coding_no_conversion):
7428         * file-coding.c (encode_coding_no_conversion):
7429         * glyphs-x.c (write_lisp_string_to_temp_file):
7430         * gpmevent.c (tty_get_foreign_selection):
7431         * lisp.h:
7432         * lstream.c:
7433         * lstream.c (Lstream_flush_out):
7434         * lstream.c (Lstream_adding):
7435         * lstream.c (Lstream_write_1):
7436         * lstream.c (Lstream_write):
7437         * lstream.c (Lstream_raw_read):
7438         * lstream.c (Lstream_read_more):
7439         * lstream.c (Lstream_read):
7440         * lstream.c (Lstream_unread):
7441         * lstream.c (Lstream_fputc):
7442         * lstream.c (stdio_reader):
7443         * lstream.c (stdio_writer):
7444         * lstream.c (filedesc_reader):
7445         * lstream.c (filedesc_writer):
7446         * lstream.c (lisp_string_reader):
7447         * lstream.c (struct fixed_buffer_stream):
7448         * lstream.c (make_fixed_buffer_input_stream):
7449         * lstream.c (make_fixed_buffer_output_stream):
7450         * lstream.c (fixed_buffer_reader):
7451         * lstream.c (fixed_buffer_writer):
7452         * lstream.c (struct resizing_buffer_stream):
7453         * lstream.c (resizing_buffer_writer):
7454         * lstream.c (dynarr_writer):
7455         * lstream.c (lisp_buffer_reader):
7456         * lstream.c (lisp_buffer_writer):
7457         * lstream.h:
7458         * lstream.h (lstream_implementation):
7459         * lstream.h (struct lstream):
7460         * md5.c (Fmd5):
7461         * process-nt.c (nt_send_process):
7462         * process-unix.c (unix_send_process):
7463         
7464         Correct Lstream lossage due to mixing of signed and unsigned
7465         quantities.  All Lstream uses of size_t and ssize_t are now a
7466         single signed data type Lstream_data_count.  This fixes problems
7467         under Windows with sending large quantities of data to a process,
7468         and may well fix other subtle bugs.
7469
7470 2001-02-23  Martin Buchholz <martin@xemacs.org>
7471
7472         * XEmacs 21.2.45 "Thelxepeia" is released.
7473
7474 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7475
7476         * lisp-union.h (XSETINT): 
7477         (XSETCHAR):
7478         (XSETOBJ): 
7479         Reverse previous change of 2001-02-06.
7480
7481 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7482
7483         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7484         buffers.
7485         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7486         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7487         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7488         * regex.c (POS_AS_IN_BUFFER): removed
7489         * regex.c (re_search_2):
7490         * regex.c (re_match_2):
7491         Don't use an offset of 1 when calculating buffer positions, since
7492         `BI_BUF_BEGV' does it already.
7493
7494 2001-02-18  Wim Dumon  <wim@easics.be>
7495
7496         * insdel.c (prepare_to_modify_buffer): Also check for
7497         supersession when clash-detection is enabled. 
7498
7499 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7500
7501         * regex.c (re_match_2_internal):
7502         Convert temp characters from 'const unsigned char' to 're_char'.
7503         Fix crashing bug with extended characters under mule.
7504         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7505         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7506         font-lock, pdump, and new syntax-table code.
7507         * syntax.c (find_start_of_comment):
7508         (find_end_of_comment):
7509         (forward-comment):
7510         Fix crashing bugs involving moving beyond end of buffer.
7511         * syntax.c (find_start_of_comment):
7512         Fixed logic to allow proper detection of cases where the same
7513         character is used to end both a two-char comment start and a
7514         two-char comment end sequence. Fixes `(forward-comment -1)'.
7515         * syntax.c (find_start_of_comment):
7516         Return position just past last comment-end character for all cases
7517         (previously was only done for two-char comment-end sequences).
7518         * syntax.c (forward-comment):
7519         Take value returned from `find_end_of_comment', rather than
7520         incrementing it.
7521         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7522         Properly deal with BUFFERP (syntax_cache.object)
7523
7524 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7525
7526         * alloc.c (Fgarbage_collect): 
7527         * alloc.c (make_bit_vector_from_byte_vector):
7528         -Wsign-compare-correctness.
7529
7530 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7531
7532         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7533         (XSETCHAR): Likewise.
7534         (XSETOBJ): Likewise.
7535
7536 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7537
7538         * mule-canna.c (canna-func-delete_previous): 
7539         Rename to canna-func-delete-previous.
7540
7541 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7542
7543         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7544
7545 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7546
7547         * font-lock.c (find_context): Fix C++ compile errors introduced by
7548         recent patch
7549
7550 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7551
7552         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7553         pragma, but earlier ones barf on the same pragma.
7554
7555 2001-02-06  Mike Sperber <mike@xemacs.org>
7556
7557         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7558         `configure-mule-lisp-directory'.
7559
7560 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7561
7562         Make sure dump-id.c is compiled in the same way as other .c's.
7563         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7564         * dump-id.h: Remove.
7565         * emacs.c: Move dump-id.h into dumper.h.
7566         * dumper.h: Move dump-id.h into dumper.h.
7567         * Makefile.in.in:
7568         Use standard .c.o rule for building dump-id.o.
7569         Remove preprocessor flags from link command.
7570         Add dump-id.o to ${otherobjs} if PDUMP.
7571
7572 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7573
7574         Port FSF 20.7 syntax table improvements.
7575         * syntax.c.
7576         * syntax.h.
7577
7578         Fixups for new syntax table stuff.
7579         * dired.c: Include syntax.c.
7580         (Fdirectory_files): Initialize regex_match_object and
7581         regex_emacs_buffer.
7582         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7583         and Fget_char_property.
7584
7585         Use ported FSF 20.7 syntax table improvements.
7586         * font-lock.c.
7587         * regex.c.
7588         * search.c.
7589         
7590 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7591
7592         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7593         Unixware's enum boolean from sys/types.h.
7594
7595 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7596
7597         Fix support for building with latest Purify.
7598         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7599         (PURIFY_FLAGS): Likewise.
7600
7601 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7602
7603         * fileio.c (lisp_string_set_file_times): New.
7604         * fileio.c (Fcopy_file): Use it.
7605         Fixes bug:
7606         (copy-file filename non-ascii-filename t t)
7607         ==> No such file or directory, non-ascii-filename
7608
7609 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7610
7611         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7612         USHRT_MAX seems clearer than ~0 anyways.
7613
7614 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7615
7616         dumper improvements.  Inspired by Olivier.
7617         * dumper.c (pdump_max_align): New.
7618         * dumper.c (pdump_add_entry): Use pdump_max_align.
7619         * dumper.c (pdump_get_entry_list): Likewise.
7620         * dumper.c (pdump_scan_by_alignment): Likewise.
7621         Don't iterate through unnecessary alignments.
7622         * dumper.c (pdump_file_get): No need to align result of malloc().
7623         * dumper.c (pdump_mallocadr): Remove.  
7624         The result of malloc() is guaranteed to be maximally aligned.
7625         * dumper.c: s/elmt/elt/g;
7626         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7627         * dumper.c (pdump_alert_undump_object): Likewise.
7628         * dumper.c (pdump_align_table): 
7629         Don't support alignments > 64.
7630         Store ALIGNOF's, not shift counts, in table.
7631
7632 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7633
7634         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7635         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7636         * systime.h: Use HAVE_UTIME.
7637         * sysdep.c (struct utimbuf): Remove.
7638         * sysdep.c (set_file_times): Prefer utime() to utimes().
7639         * config.h.in (HAVE_UTIME): New.
7640         * config.h.in (HAVE_UTIME_H): Remove.
7641         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7642
7643 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7644
7645         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7646
7647 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7648
7649         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7650
7651 2001-02-08  Martin Buchholz <martin@xemacs.org>
7652
7653         * XEmacs 21.2.44 "Thalia" is released.
7654
7655 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7656
7657         Fixes crashes in kill-emacs on some systems.
7658         * process-unix.c (unix_kill_child_process):
7659         It's OK for kill() to fail with ESRCH.
7660
7661 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7662
7663         Contortions to make .gdbinit tricks work on most systems.
7664         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7665         * alloc.c (dbg_valmask): Make non-const.
7666         * alloc.c (dbg_typemask): Make non-const.
7667         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7668         * alloc.c (dbg_valbits): Make non-const.
7669         * alloc.c (dbg_gctypebits): Make non-const.
7670         * .gdbinit (decode_object): Make it work with AIX cc.
7671
7672 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7673
7674         * elhash.c (make_general_lisp_hash_table):
7675         Use simpler and more efficient calloc to clear entries.
7676
7677 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7678
7679         * window.c (window_scroll): Work around an AIX C compiler bug.
7680         Fixes 'scroll-up' does nothing problem with xlC.
7681
7682 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7683
7684         * .gdbinit: Remove obsolete comment.
7685
7686 2001-01-31  Mike Alexander  <mta@arbortext.com>
7687
7688         * select.c (Fown_selection_internal): Set owned_p for device
7689         method correctly.
7690
7691 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7692
7693         Port to g++ 2.97.
7694         "not" cannot be used as a macro name as it is an operator in C++
7695         * config.h.in: Stop #defining `not'.
7696         * chartab.c (check_category_char): not ==> not_p
7697         * chartab.h: Likewise.
7698         * regex.c (re_match_2_internal): Likewise.
7699
7700 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7701
7702         * lisp-disunion.h: Fix up comments.
7703
7704 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7705
7706         * keymap.c (define_key_check_and_coerce_keysym):
7707         (syms_of_keymap):
7708         Support mouse-6 and mouse-7 bindings in the obvious way.
7709
7710 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7711
7712         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7713
7714 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7715
7716         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7717         Previous patch missed DEFVAR_INT_MAGIC.
7718         Make sure future DEFVAR_foo use correct types.
7719         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7720         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7721         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7722         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7723         * (DEFVAR_INT): Likewise.
7724         * redisplay.c (vertical_clip): Should be of type Fixnum.
7725         * redisplay.c (horizontal_clip): Likewise.
7726         * lisp.h (dump_add_opaque_int): New.
7727         (dump_add_opaque_fixnum): New.
7728
7729 2001-01-29  Andy Piper  <andy@xemacs.org>
7730
7731         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7732         since they can be eval'ed
7733
7734 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7735
7736         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7737         Oops, XEmacs redefines `class'.  Use `typename' instead.
7738
7739 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7740
7741         * dumper.c: Fix C++ compile errors.
7742
7743 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7744
7745         * tparam.c: Use correct prototypes.
7746
7747 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7748
7749         * sysproc.h: #include util.h for NetBSD's openpty.
7750
7751 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7752
7753         More 64-bit correctness.
7754         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7755         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7756         Fix up comments.
7757         This finally finishes the 64-bit SGI port.
7758         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7759         * symbols.c: Fix up comments and type casts.
7760         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7761         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7762         * symeval.h (Fixnum): New type.
7763         * symeval.h (symbol_value_type): Fix up comment.
7764
7765         * commands.h:
7766         * nt.c:
7767         * emacs.c:
7768         * data.c:
7769         * redisplay.c:
7770         * abbrev.c:
7771         * dired-msw.c:
7772         * event-Xt.c:
7773         * eldap.c:
7774         * window.c:
7775         * sound.c:
7776         * event-stream.c:
7777         * eval.c:
7778         * buffer.c:
7779         * mule-canna.c: A million DEFVAR_INTs here...
7780         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7781         * extents.c:
7782         * cmdloop.c:
7783         * lisp.h:
7784         * select-x.c:
7785         * console-x.h:
7786         * event-msw.c:
7787         * mule-wnnfns.c:
7788         * hpplay.c:
7789         * ralloc.c:
7790         * alloc.c:
7791         * keymap.c:
7792         * profile.c:
7793         s/int/Fixnum/g in DEFVAR_INT declarations.
7794
7795 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7796
7797         Port pdump to SGI alignment-sensitive environment.
7798         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7799         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7800         properly aligned.
7801         Define and use aligned reading and writing macros.
7802         Use buffered stdio instead of posix i/o for faster dumping.
7803         Eliminate kludgy 256 byte space for header.
7804         Read and write from dump file using structs for alignment safety.
7805         * dumper.c (pdump_align_stream): New.
7806         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7807         * dumper.c (PDUMP_READ_ALIGNED): New.
7808         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7809         * dumper.c (pdump_static_Lisp_Object): New struct.
7810         * dumper.c (pdump_static_pointer): New struct.
7811         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7812         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7813         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7814         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7815
7816         * dumper.c (pdump_backtrace):
7817         * dumper.c (pdump_get_indirect_count):
7818         * dumper.c (pdump_register_object):
7819         * dumper.c (pdump_register_struct):
7820         * dumper.c (pdump_reloc_one):
7821         * dumper.c (pdump_scan_by_alignment):
7822         * dumper.c (pdump_dump_from_root_struct_ptrs):
7823         * dumper.c (pdump_dump_opaques):
7824         * dumper.c (pdump_dump_rtables):
7825         * dumper.c (pdump_dump_from_root_objects):
7826         * dumper.c (pdump):
7827         * dumper.c (pdump_load_finish):
7828         Use aligned reading and writing.
7829
7830         * dumper.c (pdump_free): Make static.
7831         * dumper.c (pdump_hFile): Likewise.
7832         * dumper.c (pdump_hMap): Likewise.
7833
7834 2001-01-26  Martin Buchholz <martin@xemacs.org>
7835
7836         * XEmacs 21.2.43 "Terspichore" is released.
7837
7838 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7839
7840         Type fiddling for window_config.saved_windows_count
7841         * window.c (struct window_config): 
7842         Make saved_windows_count member unsigned.
7843         * window.c (sizeof_window_config_for_n_windows): 
7844         Make parameter unsigned.
7845         * window.c (mark_window_config):
7846         * window.c (window_config_equal):
7847         * window.c (free_window_configuration):
7848         * window.c (Fset_window_configuration):
7849         * window.c (count_windows):
7850         * window.c (Fcurrent_window_configuration):
7851         * window.c (reinit_vars_of_window):
7852         Update all callers and users.
7853
7854 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7855
7856         Alignment correctness for flexible arrays.
7857         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7858         Make alignment-correct. Add interesting comments.
7859         * alloc.c (size_vector):
7860         * alloc.c (make_vector_internal):
7861         * alloc.c (make_bit_vector_internal):
7862         * alloc.c (sweep_bit_vectors_1):
7863         * fns.c (size_bit_vector):
7864         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7865         * window.c (sizeof_window_config_for_n_windows): 
7866         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7867
7868 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7869
7870         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7871
7872 2001-01-23  Andy Piper  <andy@xemacs.org>
7873
7874         * select.c (Fown_selection_internal): pass owned_p
7875
7876         * select-msw.c (mswindows_own_selection): New Signature.
7877
7878         * console.h (struct console_methods): add owned_p to
7879         _own_selection.
7880
7881         * select-x.c (x_own_selection): pass owned_p
7882         (hack_motif_clipboard_selection): use owned_p
7883         (vars_of_select_x): new variable -
7884         x_selection_strict_motif_ownership.
7885
7886 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7887
7888         * specifier.h (specifier_data_offset): Remove pointless parens.
7889         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7890
7891 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7892
7893         Make Lisp_Object sizeof methods be alignment-correct.
7894         pdump must restore objects to the same alignment as the C compiler
7895         assumes.  It really matters on SGIs.
7896         * lstream.c (aligned_sizeof_lstream): New.
7897         (sizeof_lstream): Use aligned_sizeof_lstream.
7898         (Lstream_new): Likewise.
7899         * opaque.c (aligned_sizeof_opaque): New.
7900         (sizeof_opaque): Use aligned_sizeof_opaque.
7901         (make_opaque): Likewise.
7902         * specifier.c (aligned_sizeof_specifier): New.
7903         (sizeof_specifier): Use aligned_sizeof_specifier.
7904         (make_specifier_internal): Likewise.
7905
7906 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7907
7908         * lstream.h (struct lstream): Use max_align_t for trailing data.
7909         * specifier.h (struct Lisp_Specifier): Likewise.
7910
7911 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7912
7913         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7914         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7915         (CCL_SUSPEND): Likewise.
7916         (CCL_INVALID_CMD): Likewise.
7917         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7918         (ccl_driver): Likewise.
7919         (CCL_WRITE_CHAR): Macro hygiene.
7920         (CCL_WRITE_STRING): Macro hygiene.
7921
7922 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7923
7924         Port "portable" dumper to SunOS 4 and HP-UX.
7925         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7926         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7927         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7928
7929 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7930
7931         * lisp.h (ALIGNOF): A better definition for C++.
7932
7933 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7934
7935         Macro hygiene.
7936         Fix printf warnings: int format, long int arg.
7937         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7938         (PUSH_FAILURE_POINT): Use correct printf formats.
7939         (POP_FAILURE_POINT): Use correct printf formats.  
7940         Use do {...} while (0)
7941
7942 2001-01-20  Martin Buchholz <martin@xemacs.org>
7943
7944         * XEmacs 21.2.42 "Poseidon" is released.
7945
7946 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7947
7948         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7949
7950 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7951
7952         De-kludgify FIXED_TYPE free list frobbing.
7953         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7954         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7955         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7956         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7957         * alloc.c (LRECORD_FREE_P): New.
7958         * alloc.c (MARK_LRECORD_AS_FREE): New.
7959         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7960         * alloc.c (STRUCT_FREE_P): Deleted.
7961         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7962         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7963         * alloc.c (STRING_CHARS_FREE_P): New.
7964         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7965         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7966         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7967         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7968         * alloc.c (resize_string): Use new definitions.
7969         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7970         * alloc.c (verify_string_chars_integrity): Use new definitions.
7971         * alloc.c (compact_string_chars): Use new definitions.
7972         * alloc.c: Update monster comments.
7973         * lrecord.h (lrecord_type): Add some new lrecord types for
7974         alloc.c's use.
7975
7976 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7977
7978         Improve alignment hackery.
7979         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7980         (max_align_t): Moved from opaque.h - general purpose.
7981         (ALIGN_PTR): Use size_t, not long.
7982         * opaque.h (max_align_t): Move to lisp.h.
7983
7984 2001-01-18  Norbert Koch  <nk@LF.net>
7985
7986         * gui.h: Fix and add prototypes to fix build problems.
7987
7988 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7989
7990         temacs is going away, so `dump-temacs' is now a bad name.
7991         * .dbxrc (dump-temacs): Rename to `dmp'.
7992         * .gdbinit (dump-temacs): Rename to `dmp'.
7993
7994 2001-01-17  Andy Piper  <andy@xemacs.org>
7995
7996         * glyphs.c (print_image_instance): comment to make martin happy.
7997
7998         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7999         change.
8000
8001         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8002         activation.
8003         (mswindows_tab_control_redisplay): warning suppression.
8004
8005         * glyphs-widget.c (widget_update): re-write to cope with updated
8006         items.
8007         (widget_instantiate): use new gui_item functions.
8008         (tab_control_update): deleted.
8009         (progress_gauge_update): deleted.
8010         (image_instantiator_progress_guage): take out update reference.
8011         (image_instantiator_tree_view): ditto.
8012         (image_instantiator_tab_control): ditto.
8013
8014         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8015         Right the new way.
8016         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8017         return whether anything was changed.
8018         (update_gui_item_keywords): as it sounds.
8019
8020         * gui.h: declare widget_gui_parse_item_keywords.
8021
8022         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8023         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8024
8025 2001-01-17  Martin Buchholz <martin@xemacs.org>
8026
8027         * XEmacs 21.2.41 "Polyhymnia" is released.
8028
8029 2001-01-16  Didier Verna  <didier@xemacs.org>
8030
8031         * glyphs.c (image_instantiate): don't use fallbacks when
8032         instantiating a face's background pixmap by inheritance.
8033
8034 2001-01-14  Mike Sperber <mike@xemacs.org>
8035
8036         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8037         Conditionalize accordingly.
8038
8039 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8040
8041         * dumper.c (pdump_file_get): Fix a compiler warning.
8042
8043 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8044
8045         Make Purify happy when pdumping.
8046         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8047         iniitalizing all bits of new lisp object memory.
8048         * symbols.c (Fmake_local_variable): Likewise.
8049         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8050         * symbols.c (Fdefvaralias): Likewise.
8051         * mule-charset.c (vars_of_mule_charset): Likewise.
8052
8053 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8054         Add the `-nd' flag when running pre-dump operations under the debugger.
8055         * .dbxrc (run-temacs): Add `-nd'.
8056         * .dbxrc (update-elc): Likewise.
8057         * .dbxrc (dump-temacs): Likewise.
8058         * .gdbinit (run-temacs): Likewise.
8059         * .gdbinit (check-temacs): Likewise.
8060         * .gdbinit (update-elc): Likewise.
8061         * .gdbinit (dump-temacs): Likewise.
8062
8063 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8064
8065         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8066         export OBJECT_MODE=64
8067         configure --pdump --use-union-type=no
8068         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8069         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8070
8071         * miscplay.c (sndcnv8U_2mono):
8072         Avoid two uses of `++' in the same expression.
8073         Suppresses a GCC warning.
8074
8075 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8076
8077         Make sure future compilers don't miscompile alloc.c.
8078         * alloc.c:
8079         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8080         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8081
8082 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8083
8084         * dumper.c: A little post-pdump-rename comment fixup.
8085
8086 2001-01-09  Jerry James  <james@eecs.ku.edu>
8087
8088         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8089
8090 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8091
8092         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8093         script:
8094         #!/bin/sh
8095         replace_symbol () {
8096           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8097         }
8098
8099         replace_symbol pdump_wire_lists pdump_weak_object_chains
8100         replace_symbol pdump_wire_list dump_add_weak_object_chain
8101
8102         replace_symbol pdump_wires pdump_root_objects
8103         replace_symbol pdump_wire dump_add_root_object
8104
8105         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8106         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8107
8108         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8109         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8110         replace_symbol dumpstructinfo pdump_root_struct_ptr
8111         replace_symbol dumpstruct dump_add_root_struct_ptr
8112
8113         replace_symbol dumpopaque dump_add_opaque
8114         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8115         replace_symbol dumpopaqueinfos pdump_opaques
8116         replace_symbol dumpopaqueinfo pdump_opaque
8117
8118         replace_symbol nb_structdump nb_root_struct_ptrs
8119         replace_symbol nb_opaquedump nb_opaques
8120
8121         replace_symbol align_table pdump_align_table
8122         replace_symbol dump_header pdump_header
8123
8124         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8125         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8126
8127
8128 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8129
8130         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8131         optimizing bytecount_to_charcount().
8132
8133 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8134
8135         * config.h.in:
8136         (HAVE_DLFCN_H): Removed.
8137         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8138
8139 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8140
8141         Portable dumper maintainability improvements.
8142         * alloc.c (staticpro):
8143         * alloc.c (staticpro_nodump):
8144         * alloc.c (garbage_collect_1):
8145         * alloc.c (reinit_alloc_once_early):
8146         * alloc.c (init_alloc_once_early):
8147         * alloc.c: Move dumper functions to alloc.c.
8148         * dumper.c (pdump_backtrace):
8149         * dumper.c (pdump_dump_structs):
8150         * dumper.c (pdump_dump_opaques):
8151         * dumper.c (pdump_dump_rtables):
8152         * dumper.c (pdump_dump_wired):
8153         * dumper.c (pdump):
8154         * dumper.c (pdump_load_check):
8155         * dumper.c (pdump_load_finish):
8156         * dumper.c (pdump_file_unmap):
8157         * dumper.c (pdump_file_get):
8158         * dumper.c (pdump_resource_free):
8159         * dumper.c (pdump_resource_get):
8160         * dumper.c (pdump_file_free):
8161         * dumper.c (pdump_file_try):
8162         * dumper.c (pdump_load):
8163         Remove fixed size limits on staticpro(), staticpro_nodump(),
8164         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8165         Remove custom code for dumping lrecord_implementations_table - use
8166         dumpopaque instead.
8167         Remove (most of the) custom code for dumping staticpros - dump it
8168         like any other dynarr.
8169
8170         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8171         * dumper.c: Moved functions from alloc.c.
8172         * alloc.c (dumpstruct): Moved to dumper.c.
8173         * alloc.c (dumpopaque): Likewise.
8174         * alloc.c (pdump_wire): Likewise.
8175         * alloc.c (pdump_wire_list): Likewise.
8176
8177         * lisp.h (Dynarr_sizeof): New.
8178         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8179         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8180         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8181
8182         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8183         * lisp.h (dumpopaque): ditto.
8184         * lisp.h (pdump_wire): ditto.
8185         * lisp.h (pdump_wire_list): ditto.
8186
8187 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8188
8189         * make-src-depend (PrintPatternDeps):
8190         Use `sort' to make output independent of perl version.
8191
8192 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8193
8194         Port to Netbsd 1.5.
8195         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8196         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8197
8198 2001-01-03  Didier Verna  <didier@xemacs.org>
8199
8200         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8201         that `focus_frame' is alive before thinking of calling
8202         `redisplay_redraw_cursor' on it.
8203
8204 2001-01-08  Martin Buchholz <martin@xemacs.org>
8205
8206         * XEmacs 21.2.40 is released.
8207
8208 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8209
8210         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8211
8212 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8213
8214         * alloc.c (dbg_valmask): Make const.
8215         * alloc.c (dbg_typemask): Make const.
8216         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8217         * alloc.c (dbg_valbits): Make const.
8218         * alloc.c (dbg_gctypebits): Make const.
8219
8220 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8221
8222         * redisplay-x.c (x_bevel_area):
8223         redisplay.h (struct rune):
8224         Typo fixes in comments.
8225
8226 2001-01-05  Andy Piper  <andy@xemacs.org>
8227
8228         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8229         adjustment.
8230
8231         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8232
8233 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8234
8235         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8236
8237         * mule-ccl.c (stack_idx_of_map_multiple):
8238         Non const global data must not be initialized!
8239         Found by MIYASHITA Hisashi.
8240
8241 2001-01-02  Andy Piper  <andy@xemacs.org>
8242
8243         * frame.c (change_frame_size): make sure frame size is always
8244         marked as changed.
8245
8246         * glyphs.c (image_instance_layout): minor code reuse.
8247
8248         * window.c (Fcurrent_window_configuration): revert previous
8249         change.
8250
8251 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8252
8253         * glyphs.h:
8254         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8255
8256 2000-12-31  Andy Piper  <andy@xemacs.org>
8257
8258         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8259         when widget gets unmapped.
8260
8261         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8262         function. Make sure widgets losing focus don't just drop it.
8263         (handle_focus_event_1): record the widget with focus.
8264
8265 2000-12-31  Andy Piper  <andy@xemacs.org>
8266
8267         * window.c (allocate_window): use
8268         make_image_instance_cache_hash_table.
8269         (make_dummy_parent): ditto.
8270         (Fset_window_configuration): ditto.
8271
8272         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8273
8274         * glyphs.c (process_image_string_instantiator): use
8275         INSTANTIATOR_TYPE.
8276         (get_image_instantiator_governing_domain): ditto.
8277         (normalize_image_instantiator): ditto.
8278         (instantiate_image_instantiator): ditto.
8279         (make_image_instance_1): ditto.
8280         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8281         (instantiator_eq_equal): new function for use with instance hash
8282         tables.
8283         (instantiator_eq_hash): ditto.
8284         (make_image_instance_cache_hash_table): create a suitable hash
8285         table for storing image instances.
8286
8287         * elhash.h (hash_table_weakness): new internal weakness type
8288         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8289         declare new functions.
8290
8291         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8292         another weakness type for glyphs.
8293         (make_standard_lisp_hash_table): new function split out from
8294         make_general_lisp_hash_table.
8295         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8296         (hash_table_instantiate): ditto.
8297         (Fmake_hash_table): ditto.
8298
8299 2000-12-31  Martin Buchholz <martin@xemacs.org>
8300
8301         * XEmacs 21.2.39 is released.
8302
8303 2000-12-29  Andy Piper  <andy@xemacs.org>
8304
8305         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8306
8307         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8308         the frame has changed so that we pick up geometry changes such as
8309         menubar visibility.
8310
8311 2000-12-28  Andy Piper  <andy@xemacs.org>
8312
8313         * lastfile.c (my_ebss): make a char array so we can pad the
8314         bss. Fixes cygwin unexec.
8315
8316         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8317
8318 2000-12-26  Andy Piper  <andy@xemacs.org>
8319
8320         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8321         comments and try and be more precise about a non-/SIGIO world.
8322         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8323         SIGIO.
8324
8325         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8326         we don't normalize to zero width or height.
8327
8328 2000-12-24  Andy Piper  <andy@xemacs.org>
8329
8330         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8331
8332 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8333
8334         * s/sco5.h: SCO 5 has pty support.
8335
8336 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8337
8338         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8339         input-method-xlib.c contains whole contents of input-method-xfs.c,
8340         so we can use input-method-xlib.c's code for USE_XFONTSET
8341         using #ifdefs.
8342         * input-method-xfs.c: removed.
8343
8344 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8345
8346         * file-coding.h (enum coding_category_type): reorder enumerators to
8347         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8348         (now one greater than largest real coding_category_type enumerator).
8349         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8350         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8351         Fcoding_category_list, Fset_coding_priority_list,
8352         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8353         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8354
8355 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8356
8357         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8358         * redisplay-output.c (redisplay_output_window): Clear top of window
8359         when face is changed.
8360         * redisplay-x.c (x_redraw_exposed_window): Call
8361         redisplay_clear_top_of_window.
8362         * redisplay.h: Publish redisplay_clear_top_of_window.
8363
8364 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8365
8366         * buffer.c (Fkill_buffer): Map over all devices.
8367         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8368         (list_windows): New function.
8369         (list_all_windows): Ditto.
8370         (Freplace_buffer_in_windows): Use them.
8371
8372 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8373
8374         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8375         (Fopen_database): Use `db_create' instead of `db_open'.
8376         (syms_of_database): Initialize Qqueue.
8377
8378 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8379
8380         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8381         buffer_local_face_property.
8382         * buffer.h (struct buffer): New member buffer_local_face_property.
8383         * window.c (Fset_window_buffer):  Mark window's face as changed
8384         when buffer has buffer local face.
8385         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8386         * objects.c (color_after_change): Set buffer_local_face_property
8387         when locale of face specifier is buffer.
8388         * objects.c (font_after_change): Ditto.
8389         * objects.c (face_boolean_after_change): Ditto.
8390         * glyphs.c (image_after_change): Ditto.
8391
8392 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8393
8394         * nt.c (mswindows_fstat): Report file permissions, volume serial
8395         number, etc. Code adapted from FSF Emacs 20.7.
8396
8397 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8398
8399         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8400         of stat when we don't have symbolic links, to make sure
8401         mswindows_stat is called on mswindows.
8402
8403 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8404
8405         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8406
8407 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8408
8409         * doprnt.c (emacs_doprnt_1): More printing fixes.
8410         Make printing of numbers compatible with libc and FSF Emacs.
8411         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8412         Use the system printf to do most of the hard work of formatting,
8413         instead of doprnt_1().
8414         Calculate memory to allocate for format string.
8415         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8416         (doprnt_1): Cleaner code and documentation.
8417
8418 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8419
8420         * Makefile.in.in: Use the loop variable to install headers.
8421
8422 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8423
8424         * window.c (Fsplit_window): Don't invalidate face cache.
8425
8426 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8427
8428         * minibuf.c (Fall_completions): Undo the previous change
8429         which removed checking elements start with space.
8430
8431 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8432
8433         * mule-canna.c: Didier suppression.
8434
8435 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8436
8437         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8438         (warning suppression).  Add English comment translations.
8439
8440 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8441
8442         * unexelfsgi.c (unexec): Better test for mmap failure.
8443
8444 2000-12-05  Martin Buchholz <martin@xemacs.org>
8445
8446         * XEmacs 21.2.38 is released.
8447
8448 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8449
8450         * redisplay.c (bar-cursor): Make a user variable.
8451
8452         * symsinit.h: Add init_postgresql_from_environment.
8453
8454 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8455
8456         * regex.c: Convert to clean C.
8457
8458 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8459
8460         * realpath.c:
8461         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8462         initialization.
8463         (sys_readlink): renamed to system_readlink to avoid conflict with
8464         the other sys_readlink.
8465
8466 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8467
8468         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8469
8470 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8471
8472         * postgresql.c (init_postgresql_from_environment): new function.
8473         (vars_of_postgresql): Move code initializing Lisp variables out and
8474         into init_postgresql_from_environment.
8475         emacs.c (main_1): Call init_postgresql_from_environment if and only
8476         if running a dumped XEmacs.
8477
8478 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8479
8480         * buffer.c: Make find-file-compare-truenames default to true on
8481         windows.
8482
8483         * realpath.c (win32_abs_start):
8484         (cygwin_readlink):
8485         (win32_readlink): New functions.
8486         (xrealpath): Return really real filenames on windows.
8487
8488         * fileio.c (Ffile_truename): Make file-truename work on windows.
8489
8490 2000-11-29  Didier Verna  <didier@xemacs.org>
8491
8492         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8493         * faces.c (update_face_cachel_data): use it.
8494         * faces.c (add_face_cachel): use it. Complete background pixmap
8495         frobbing in face cache if `update_face_cachel_data' has not done so.
8496
8497 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8498
8499         * search.c (string_match_1): Don't set last_thing_searched
8500         when search failed.
8501
8502 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8503
8504         * buffer.c: Include casetab.h
8505         (common_init_complex_vars_of_buffer): Use new case-table object.
8506         * buffer.h: Include casetab.h
8507         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8508         (DOWNCASE_TABLE_OF): Ditto.
8509         * bufslots.h: Remove char-tables and add case-table.
8510         * casetab.c: Include casetab.h
8511         (CASE_TABLE_P): Removed.
8512         (mark_case_table): New function.
8513         (allocate_case_table): New function.
8514         (Fcase_table_p): Use new case-table.
8515         (case_table_char): New function.
8516         (Fget_case_table): Ditto.
8517         (Fput_case_table): Ditto.
8518         (Fput_case_table_pair): Ditto.
8519         (Fcopy_case_table): Ditto.
8520         (Fcurrent_case_table): Return case-table.
8521         (Fstandard_case_table): Return case-table.
8522         (Fset_case_table): Fix doc-string.
8523         (set_case_table): Use case-table
8524         (syms_of_casetab): DEFSUBR new functions.
8525         (complex_vars_of_casetab): Set up standard case-table.
8526         * casetab.h: New file.
8527         * editfns.c: Include casetab.h
8528         (Fcompare_buffer_substrings): Use case-table.
8529         * inline.c: Include casetab.h
8530         * lisp.h: Remove bogus extern.
8531         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8532         * search.c: Include casetab.h
8533         (TRANSLATE_ASCII): Removed.
8534         (TRANSLATE): Unconditionally translate character.
8535         (looking_at_1): Use case-table.
8536         (string_match_1): Ditto.
8537         (fast_string_match): Ditto.
8538         (search_command): Ditto.
8539         (search_buffer): Separate boyer_moore.  Check whether
8540         boyer_moore is possible.
8541         (simple_search): New function.
8542         (boyer_moore): Separated from search_buffer. Translate char.
8543
8544 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8545
8546         * regex.c (RE_TR_ASCII): Removed.
8547         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8548         (PATFETCH): Call PATFETCH_RAW.
8549         (PATFETCH_RAW): Fetch Emchar.
8550         (PATUNFETCH): Decrement charptr.
8551         (GET_BUFFER_SPACE): Rename b to buf_end.
8552         (BUF_PUSH): Ditto.
8553         (BUF_PUSH_2): Ditto.
8554         (BUF_PUSH_3): Ditto.
8555         (EXTEND_BUFFER): Ditto.
8556         (SET_LIST_BIT): Ditto.
8557         (regex_compile): Ditto.  Translate non ASCII char.
8558         (compile_range): Ditto.
8559         (re_search_2): Ditto.
8560         (re_match_2_internal): Compare Emchar.
8561         (bcmp_translate): Ditto.
8562
8563 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8564
8565         * lisp.h (basic char/int typedefs):  comment improvement.
8566
8567 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8568
8569         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8570         unstomp inhibit_site_lisp.  Improve comments.
8571
8572 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8573
8574         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8575
8576 2000-11-28  Andy Piper  <andy@xemacs.org>
8577
8578         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8579         clipped display for windows in the gutter also.
8580         (redisplay_display_boxes_in_window_p): change semantics of return
8581         codes to be more intuitive.
8582
8583         * gutter.h: declare display_boxes_in_gutter_p.
8584
8585         * gutter.c (display_boxes_in_gutter_p): new function for
8586         redisplay.
8587
8588 2000-11-22  Andy Piper  <andy@xemacs.org>
8589
8590         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8591         autodetect domain.
8592
8593 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8594
8595         * callproc.c (Fold_call_process_internal):
8596         * gpm.c (Freceive_gpm_event):
8597         (tty_get_foreign_selection): Might be just warning supression.
8598         * fileio.c (Fwrite_region_internal):
8599         (Fset_visited_file_modtime):
8600         * keymap.c (event_matches_key_specifier_p):
8601         Initialize GCPROed variable.
8602
8603         * menubar-x.c (command_builder_find_menu_accelerator):
8604         Initialize before use.
8605
8606 2000-11-23  Andy Piper  <andy@xemacs.org>
8607
8608         * unexcw.c (unexec): make the resulting executable executable.
8609
8610 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8611
8612         * doc.c (get_doc_string):
8613         Use size_t, not int, for result of XSTRING_LENGTH.
8614
8615         * cmds.c (Fdelete_char):
8616         * cmds.c (Fpoint_at_eol):
8617         * cmds.c (Fself_insert_command):
8618         Use EMACS_INT, not int, for result of XINT.
8619         Someday, someone will want to insert more than 2**31 identical characters.
8620
8621         * cmds.c (Fdelete_char):
8622         * cmds.c (Fdelete_backward_char):
8623         * syntax.c (Fforward_word):
8624         * syntax.c (Fforward_comment):
8625         Make COUNT argument optional, for consistency with forward-char et al.
8626
8627 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8628
8629         * lisp.h:
8630         * print.c (long_to_string):
8631         Return a useful value: the pointer at end of data written.
8632
8633         * doprnt.c:
8634         Use `static const char * const' for constant strings.
8635         (union printf_arg): Delete `i', `ui' members.
8636         (get_doprnt_args):
8637         (emacs_doprnt_1):
8638         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8639         Do all printf-ing via the `l' specifier.
8640         Use EMACS_INT instead of int.
8641         Optimize.
8642
8643 2000-11-20  Didier Verna  <didier@xemacs.org>
8644
8645         * faces.c (update_face_cachel_data): don't frob the background
8646         pixmap when the window is being created. The face is needed but
8647         does not exist yet.
8648
8649 2000-11-20  Andy Piper  <andy@xemacs.org>
8650
8651         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8652         messing with a debug environment.
8653
8654 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8655
8656         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8657
8658 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8659
8660         * casetab.c (Fcase_table_p): Fix compile error and crash.
8661
8662 2000-11-18  Philip Aston  <philipa@mail.com>
8663
8664         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8665
8666 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8667
8668         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8669         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8670
8671 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8672
8673         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8674         * unexelf.c: Use HAVE_ELF_H.
8675         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8676         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8677         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8678         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8679         for testing.
8680         So this is an unexelfsgi.c from a different line of development.
8681
8682 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8683
8684         * regex.c (RE_TR_ASCII): New function.
8685         (RE_TRANSLATE): Call it.
8686
8687 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8688
8689         * buffer.h (TRT_TABLE_OF): Remove assert.
8690         (IN_TRT_TABLE_DOMAIN): Removed.
8691
8692 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8693
8694         * free-hook.c (log_gcpro):
8695         (show_gcprohist): Add support for GCPRO5.
8696
8697 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8698
8699         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8700
8701 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8702
8703         * symeval.h: Declare flush_all_buffer_local_cache.
8704
8705         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8706         (flush_buffer_local_cache): Added.
8707         (flush_all_buffer_local_cache): Added.
8708
8709         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8710
8711         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8712         (pdump_dump_data): Ditto.
8713         (pdump_reloc_one): Ditto.
8714         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8715         before dumping.
8716
8717
8718 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8719
8720         * buffer.c: Remove if 0'ed entry.
8721         * buffer.h: Rewrite TRT to use char-table.
8722         * bufslots.h: Remove mirror tables.
8723         * casetab.c: Remove mirror tables.
8724         (CASE_TABLE_P): New macro.
8725         (Fcase_table_p): Element of a case table is string or char-table.
8726         (make_mirror_trt_table): Removed.
8727         (set_case_table): Setup char-table from strings for backward
8728         compatibility.
8729         * dired.c (Fdirectory_files):
8730         * dired-msw.c: (mswindows_get_files):
8731         * lisp.h: Change prototype of re_pattern_buffer.
8732         * regex.c: (RE_TRANSLATE): New macro.
8733         (TRANSLATE_P): Ditto.
8734         Change translate to type RE_TRANSLATE_TYPE.
8735         * regex.h: Define RE_TRANSLATE_TYPE
8736         * search.c (TRANSLATE): New macro.
8737         (TRANSLATE_ASCII): New macro.
8738         Translate table is changed to Lisp_Object.
8739         (signal_failure): Inhibit return.
8740
8741 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8742
8743         * device-msw.c:
8744         * eldap.c:
8745         * event-Xt.c:
8746         * event-stream.c:
8747         * print.c:
8748         Do UNGCPRO before return.
8749
8750 2000-11-14  Martin Buchholz <martin@xemacs.org>
8751
8752         * XEmacs 21.2.37 is released.
8753
8754 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8755
8756         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8757         Add comments about discarded return value.
8758
8759 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8760
8761         * callint.c:
8762         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8763
8764 2000-10-27  Andy Piper  <andy@xemacs.org>
8765
8766         * gutter.c (Fset_default_gutter_position): default left and right
8767         gutters to visible.
8768         (calculate_gutter_size): calculate resonable heuristic for left
8769         and right gutter sizes.
8770         (specifier_vars_of_gutter): change left and right gutter sizes to
8771         autodetect.
8772         (calculate_gutter_size_from_display_lines): new function.
8773         (output_gutter): check for resizing on left and right gutters.
8774         (clear_gutter): don't special case top and left gutters.
8775         (specifier_vars_of_gutter): use new signature for
8776         set_specifier_caching.
8777
8778         * glyphs-x.c (x_redisplay_widget): spelling fix.
8779         * glyphs.c (specifier_vars_of_glyphs):
8780         * menubar.c (specifier_vars_of_menubar):
8781         * redisplay.c (specifier_vars_of_redisplay):
8782         * toolbar.c (specifier_vars_of_toolbar):
8783         * window.c (specifier_vars_of_window):
8784         * scrollbar.c (specifier_vars_of_scrollbar):
8785         (complex_vars_of_scrollbar): use new signature for
8786         set_specifier_caching.
8787
8788         * specifier.c (set_specifier_caching): include recompute flag.
8789         (recompute_one_cached_specifier_in_window): always recompute if
8790         flag set.
8791         (recompute_one_cached_specifier_in_frame): ditto.
8792
8793         * specifier.h (struct specifier_caching): add recompute flag.
8794
8795 2000-10-24  Andy Piper  <andy@xemacs.org>
8796
8797         * unexcw.c (copy_executable_and_dump_data_section): add new
8798         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8799         5.0 happy.
8800
8801 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8802
8803         * console-x.h (x_device): New member modifier_release_time.
8804         * event-Xt.c (x_handle_sticky_modifiers):
8805         Bound interval modifier keys are sticky.
8806         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8807         * events.h: extern it.
8808
8809 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8810
8811         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8812
8813 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8814
8815         * event-stream.c (execute_command_event): Preserve current_events
8816         and the like when event is misc-user-event.
8817         Inhibit quit during the call to maybe_echo_keys.
8818
8819 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8820
8821         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8822         symlink when buffer is killed.
8823         (inhibit_clash_detection): New variable.
8824
8825 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8826
8827         * console.c (Fset_input_method): Trigger redisplay on tty.
8828
8829 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8830
8831         * process.c (Fprocess_status): Revert to previous behavior:
8832         (process-status "nosuchprocess") ==> nil
8833
8834 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8835
8836         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8837         Work around another GCC 2.95.2 optimizer bug.
8838
8839 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8840
8841         * process.c (Fget_process): Use LIST_LOOP_2.
8842         (kill_buffer_processes): Use LIST_LOOP_2.
8843
8844         * minibuf.c (Fall_completions):
8845         Delete old non-functional code for FSF fourth argument.
8846
8847         * frame.c (frame_matches_frame_spec):
8848         Renamed from `frame_matches_frametype'.  Update all callers.
8849         (device_matches_device_spec):
8850         Renamed from 'device_matches_console_spec'.  Update all callers.
8851
8852         * doc.c (Fsubstitute_command_keys):
8853         Remove buffer overflow crash.  Small code cleanups.
8854
8855         * casetab.c (check_case_table): Simpler code.
8856
8857         * window.c (Freplace_buffer_in_windows):
8858         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8859         (and similar implementation) as Fdelete_windows_on.
8860         Update all callers.
8861
8862         * alloc.c (Fmake_list):
8863         * alloc.c (make_vector):
8864         * alloc.c (Fmake_vector):
8865         * alloc.c (make_bit_vector):
8866         * alloc.c (Fmake_bit_vector):
8867         * alloc.c (Fbit_vector):
8868         * alloc.c (Fmake_string):
8869         * alloc.c (Fpurecopy):
8870         * alloc.c (Fmemory_limit):
8871         * buffer.c:
8872         * buffer.c (Fget_buffer):
8873         * buffer.c (Fkill_buffer):
8874         * buffer.c (complex_vars_of_buffer):
8875         * bytecode.c (Fcompiled_function_stack_depth):
8876         * callint.c (Fprefix_numeric_value):
8877         * event-stream.c:
8878         * event-stream.c (Fread_key_sequence):
8879         * casetab.c:
8880         * casetab.c (Fcase_table_p):
8881         * casetab.c (check_case_table):
8882         * casetab.c (Fset_case_table):
8883         * casetab.c (Fset_standard_case_table):
8884         * chartab.c:
8885         * chartab.c (Fchar_table_type):
8886         * chartab.c (Freset_char_table):
8887         * chartab.c (Fget_char_table):
8888         * chartab.c (Fget_range_char_table):
8889         * chartab.c (Fput_char_table):
8890         * chartab.c (Fmap_char_table):
8891         * chartab.c (Fcategory_table_p):
8892         * chartab.c (Fcheck_category_at):
8893         * chartab.c (Fchar_in_category_p):
8894         * chartab.c (Fcategory_table):
8895         * chartab.c (Fcopy_category_table):
8896         * chartab.c (Fset_category_table):
8897         * chartab.c (Fcategory_designator_p):
8898         * chartab.c (Fcategory_table_value_p):
8899         * cmds.c (Fdelete_char):
8900         * cmds.c (Fdelete_backward_char):
8901         * cmds.c (Fself_insert_command):
8902         * cmds.c (Fself_insert_internal):
8903         * console.c (Fvalid_console_type_p):
8904         * console.c (Fcdfw_console):
8905         * console.c (Fconsole_type):
8906         * console.c (Fconsole_name):
8907         * console.c (Fconsole_device_list):
8908         * console.c (Fconsole_on_window_system_p):
8909         * data.c:
8910         * data.c (Feq):
8911         * data.c (Fold_eq):
8912         * data.c (Fsubr_interactive):
8913         * data.c (Fchar_to_int):
8914         * data.c (Fint_to_char):
8915         * data.c (Fsetcar):
8916         * data.c (Fsetcdr):
8917         * data.c (Fnumber_to_string):
8918         * data.c (Fstring_to_number):
8919         * data.c (Frem):
8920         * database.c (mark_database):
8921         * database.c (finalize_database):
8922         * database.c (Fdatabase_live_p):
8923         * database.c (Fdatabasep):
8924         * device-x.c (Fx_get_resource):
8925         * device.c (Fdfw_device):
8926         * dired.c:
8927         * dired.c (Ffile_name_completion):
8928         * dired.c (Ffile_name_all_completions):
8929         * dired.c (Fuser_name_completion):
8930         * dired.c (Fuser_name_completion_1):
8931         * dired.c (Fuser_name_all_completions):
8932         * doc.c (Fdocumentation):
8933         * doc.c (Fdocumentation_property):
8934         * doc.c (Fsubstitute_command_keys):
8935         * editfns.c:
8936         * editfns.c (Fchar_to_string):
8937         * editfns.c (Fstring_to_char):
8938         * editfns.c (Ftemp_directory):
8939         * editfns.c (Finsert_char):
8940         * editfns.c (Fbuffer_substring_no_properties):
8941         * editfns.c (Fnarrow_to_region):
8942         * editfns.c (Fchar_equal):
8943         * editfns.c (Fchar_Equal):
8944         * editfns.c (Ftranspose_regions):
8945         * emacs.c (Fdump_emacs):
8946         * eval.c (Fthrow):
8947         * eval.c (Fcommand_execute):
8948         * eval.c (Fautoload):
8949         * eval.c (Fbacktrace):
8950         * eval.c (Fbacktrace_frame):
8951         * events.c:
8952         * events.c (Fcopy_event):
8953         * events.c (Fcharacter_to_event):
8954         * events.c (Fevent_button):
8955         * events.c (Fevent_process):
8956         * extents.c:
8957         * extents.c (Fnext_extent_change):
8958         * extents.c (Fextent_property):
8959         * faces.c (Ffacep):
8960         * faces.c (Fmake_face):
8961         * file-coding.c:
8962         * file-coding.c (Fencode_shift_jis_char):
8963         * file-coding.c (Fencode_big5_char):
8964         * fileio.c (Ffile_name_directory):
8965         * fileio.c (Ffile_name_nondirectory):
8966         * fileio.c (Ffile_name_as_directory):
8967         * fileio.c (Fdirectory_file_name):
8968         * fileio.c (Ffile_truename):
8969         * fileio.c (Fsubstitute_in_file_name):
8970         * fileio.c (Ffile_modes):
8971         * fileio.c (Fset_file_modes):
8972         * fileio.c (Fset_default_file_modes):
8973         * fileio.c (Fverify_visited_file_modtime):
8974         * floatfns.c (Facos):
8975         * floatfns.c (Fasin):
8976         * floatfns.c (Fatan):
8977         * floatfns.c (Fcos):
8978         * floatfns.c (Fsin):
8979         * floatfns.c (Ftan):
8980         * floatfns.c (Fbessel_j0):
8981         * floatfns.c (Fbessel_j1):
8982         * floatfns.c (Fbessel_jn):
8983         * floatfns.c (Fbessel_y0):
8984         * floatfns.c (Fbessel_y1):
8985         * floatfns.c (Fbessel_yn):
8986         * floatfns.c (Ferf):
8987         * floatfns.c (Ferfc):
8988         * floatfns.c (Flog_gamma):
8989         * floatfns.c (Fexp):
8990         * floatfns.c (Fexpt):
8991         * floatfns.c (Flog):
8992         * floatfns.c (Flog10):
8993         * floatfns.c (Fsqrt):
8994         * floatfns.c (Fcube_root):
8995         * floatfns.c (Facosh):
8996         * floatfns.c (Fasinh):
8997         * floatfns.c (Fatanh):
8998         * floatfns.c (Fcosh):
8999         * floatfns.c (Fsinh):
9000         * floatfns.c (Ftanh):
9001         * floatfns.c (Fabs):
9002         * floatfns.c (Ffloat):
9003         * floatfns.c (Flogb):
9004         * floatfns.c (Fceiling):
9005         * floatfns.c (Ffloor):
9006         * floatfns.c (Fround):
9007         * floatfns.c (Ftruncate):
9008         * floatfns.c (Ffceiling):
9009         * floatfns.c (Fffloor):
9010         * floatfns.c (Ffround):
9011         * floatfns.c (Fftruncate):
9012         * fns.c (Fstring_equal):
9013         * fns.c (Fstring_lessp):
9014         * fns.c (concat2):
9015         * fns.c (concat3):
9016         * fns.c (vconcat2):
9017         * fns.c (vconcat3):
9018         * fns.c (Fsubstring):
9019         * fns.c (Fassoc):
9020         * fns.c (Fold_assoc):
9021         * fns.c (assoc_no_quit):
9022         * fns.c (Fassq):
9023         * fns.c (Fold_assq):
9024         * fns.c (assq_no_quit):
9025         * fns.c (Frassoc):
9026         * fns.c (Fold_rassoc):
9027         * fns.c (Frassq):
9028         * fns.c (Fold_rassq):
9029         * fns.c (rassq_no_quit):
9030         * fns.c (Fremassoc):
9031         * fns.c (remassoc_no_quit):
9032         * fns.c (Fremassq):
9033         * fns.c (remassq_no_quit):
9034         * fns.c (Fremrassoc):
9035         * fns.c (Fremrassq):
9036         * fns.c (remrassq_no_quit):
9037         * fns.c (Fsort):
9038         * fns.c (Fplist_get):
9039         * fns.c (Fplist_put):
9040         * fns.c (Fplist_remprop):
9041         * fns.c (Fplist_member):
9042         * fns.c (Flax_plist_get):
9043         * fns.c (Flax_plist_put):
9044         * fns.c (Flax_plist_remprop):
9045         * fns.c (Flax_plist_member):
9046         * fns.c (Fequal):
9047         * fns.c (Fold_equal):
9048         * fns.c (Frequire):
9049         * fns.c (Fbase64_encode_region):
9050         * fns.c (Fbase64_encode_string):
9051         * fns.c (Fbase64_decode_region):
9052         * frame.c:
9053         * frame.c (frame_matches_frame_spec):
9054         * frame.c (device_matches_device_spec):
9055         * frame.c (next_frame):
9056         * frame.c (previous_frame):
9057         * frame.c (Fnext_frame):
9058         * frame.c (Fprevious_frame):
9059         * frame.c (Fframe_property):
9060         * frame.c (Fset_frame_height):
9061         * frame.c (Fset_frame_size):
9062         * frame.h:
9063         * glyphs.c:
9064         * glyphs.c (if):
9065         * glyphs.c (decode_error_behavior_flag):
9066         * glyphs.c (Fmake_image_instance):
9067         * indent.c (Findent_to):
9068         * intl.c (Fignore_defer_gettext):
9069         * keymap.c (Fkeymapp):
9070         * keymap.c (Flookup_key):
9071         * lread.c:
9072         * lread.c (Fload_internal):
9073         * lread.c (Feval_buffer):
9074         * lread.c (Feval_region):
9075         * macros.c (Fexecute_kbd_macro):
9076         * marker.c (set_marker_internal):
9077         * marker.c (Fset_marker):
9078         * marker.c (set_marker_restricted):
9079         * marker.c (Fcopy_marker):
9080         * marker.c (noseeum_copy_marker):
9081         * menubar.c:
9082         * menubar.c (Fpopup_menu):
9083         * minibuf.c:
9084         * mule-charset.c (Fcharset_name):
9085         * mule-charset.c (Fchar_charset):
9086         * mule-charset.c (Fchar_octet):
9087         * mule-charset.c (Fsplit_char):
9088         * mule-wnnfns.c (Fwnn_open):
9089         * mule-wnnfns.c (Fwnn_dict_comment):
9090         * mule-wnnfns.c (Fwnn_quit_henkan):
9091         * mule-wnnfns.c (Fwnn_word_toroku):
9092         * mule-wnnfns.c (Fwnn_word_sakujo):
9093         * mule-wnnfns.c (Fwnn_word_use):
9094         * mule-wnnfns.c (Fwnn_hindo_set):
9095         * objects.c:
9096         * objects.c (Fmake_color_instance):
9097         * objects.c (Fmake_font_instance):
9098         * print.c (Fwrite_char):
9099         * process.c:
9100         * process.c (mark_process):
9101         * process.c (print_process):
9102         * process.c (get_process_from_usid):
9103         * process.c (Fprocessp):
9104         * process.c (Fprocess_live_p):
9105         * process.c (Fget_process):
9106         * process.c (Fget_buffer_process):
9107         * process.c (get_process):
9108         * process.c (Fprocess_id):
9109         * process.c (Fprocess_name):
9110         * process.c (Fprocess_command):
9111         * process.c (init_process_io_handles):
9112         * process.c (start_process_unwind):
9113         * process.c (Fstart_process_internal):
9114         * process.c (Fopen_multicast_group_internal):
9115         * process.c (Fset_process_window_size):
9116         * process.c (read_process_output):
9117         * process.c (send_process):
9118         * process.c (Fprocess_tty_name):
9119         * process.c (Fset_process_buffer):
9120         * process.c (Fprocess_buffer):
9121         * process.c (Fprocess_mark):
9122         * process.c (set_process_filter):
9123         * process.c (Fset_process_filter):
9124         * process.c (Fprocess_filter):
9125         * process.c (Fprocess_send_region):
9126         * process.c (Fprocess_send_string):
9127         * process.c (exec_sentinel):
9128         * process.c (Fset_process_sentinel):
9129         * process.c (Fprocess_sentinel):
9130         * process.c (status_notify):
9131         * process.c (Fprocess_status):
9132         * process.c (Fprocess_exit_status):
9133         * process.c (process_send_signal):
9134         * process.c (Fprocess_send_eof):
9135         * process.c (deactivate_process):
9136         * process.c (remove_process):
9137         * process.c (Fdelete_process):
9138         * process.c (kill_buffer_processes):
9139         * process.c (Fprocess_kill_without_query):
9140         * process.c (Fprocess_kill_without_query_p):
9141         * rangetab.c:
9142         * rangetab.c (Fget_range_table):
9143         * rangetab.c (Fput_range_table):
9144         * rangetab.c (Fremove_range_table):
9145         * rangetab.c (Fclear_range_table):
9146         * search.c:
9147         * search.c (Fskip_chars_forward):
9148         * search.c (Fskip_chars_backward):
9149         * search.c (Fskip_syntax_forward):
9150         * search.c (Fskip_syntax_backward):
9151         * search.c (search_command):
9152         * search.c (Freplace_match):
9153         * search.c (Fregexp_quote):
9154         * select.c (Fown_selection_internal):
9155         * select.c (Fselection_owner_p):
9156         * select.c (Fselection_exists_p):
9157         * select.c (Fget_selection_internal):
9158         * specifier.c:
9159         * symbols.c:
9160         * symbols.c (Fintern):
9161         * symbols.c (Fintern_soft):
9162         * symbols.c (Funintern):
9163         * symbols.c (Fapropos_internal):
9164         * symbols.c (Fset_default):
9165         * syntax.c:
9166         * syntax.c (Fsyntax_table_p):
9167         * syntax.c (Fcopy_syntax_table):
9168         * syntax.c (Fset_syntax_table):
9169         * syntax.c (Fchar_syntax):
9170         * syntax.c (syntax_match):
9171         * syntax.c (Fmatching_paren):
9172         * syntax.c (Fforward_word):
9173         * syntax.c (scan_lists):
9174         * syntax.c (Fscan_lists):
9175         * syntax.c (Fscan_sexps):
9176         * syntax.c (Fparse_partial_sexp):
9177         * toolbar.c (Fcheck_toolbar_button_syntax):
9178         * tooltalk.doc:
9179         * window.c:
9180         * window.c (Fwindowp):
9181         * window.c (Fwindow_live_p):
9182         * window.c (Fwindow_point):
9183         * window.c (Fdelete_window):
9184         * window.c (Fnext_window):
9185         * window.c (Fprevious_window):
9186         * window.c (Fother_window):
9187         * window.c (window_loop):
9188         * window.c (Fget_lru_window):
9189         * window.c (Fsplit_window):
9190         * window.c (Fenlarge_window):
9191         * window.c (Fenlarge_window_pixels):
9192         * window.c (Fshrink_window):
9193         * window.c (Fshrink_window_pixels):
9194         * window.c (change_window_height):
9195         * window.c (Fwindow_configuration_p):
9196         * window.c (Fcurrent_window_configuration):
9197         * window.h:
9198         * casefiddle.c (casify_object):
9199         * casefiddle.c (Fupcase):
9200         * casefiddle.c (Fdowncase):
9201         * casefiddle.c (Fcapitalize):
9202         * casefiddle.c (Fupcase_initials):
9203         * casefiddle.c (casify_region_internal):
9204         * casefiddle.c (casify_region):
9205         * casefiddle.c (Fupcase_region):
9206         * casefiddle.c (Fdowncase_region):
9207         * casefiddle.c (Fcapitalize_region):
9208         * casefiddle.c (Fupcase_initials_region):
9209         * casefiddle.c (Fupcase_word):
9210         * casefiddle.c (Fdowncase_word):
9211         * casefiddle.c (Fcapitalize_word):
9212         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9213         Replace 0 with '\0' when working with bytes.
9214         Replace initial "(" with "\(" in docstrings.
9215
9216 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9217
9218         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9219
9220         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9221
9222 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9223
9224         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9225
9226 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9227
9228         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9229         correctly.
9230
9231 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9232
9233         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9234         (inhibit_auto_save_session): New variable.
9235         (vars_of_fileio): Declare and initialize them.
9236         * fileio.c (Fdo_auto_save): Don't create session file if
9237         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9238
9239 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9240
9241         * sgiplay.c (play_internal): C++ compilability.
9242         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9243         * callproc.c (Fold_call_process_internal):
9244         Remove unused vars `env', `first'.
9245         * scrollbar.c (update_scrollbar_instance):
9246         #### unused var `current_window'.
9247         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9248         etc. within #ifdef NOT_YET.
9249         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9250         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9251         * specifier.c (specifier_instance):
9252         #### unused var `tag'.
9253         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9254
9255 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9256
9257         * fns.c (Fbutlast):
9258         * fns.c (list_sort):
9259         * fns.c (Ffillarray):
9260         * fns.c (bytecode_nconc2):
9261         * fns.c (Fnconc):
9262         * fns.c (mapcar1):
9263         * fns.c (Fmapconcat):
9264         Be pedantically 64-bit correct.  For the time when someone will
9265         want to have a list with length > 2**32.
9266
9267         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9268         Work around MIPSpro compiler bug.
9269
9270         * process-unix.c (unix_kill_child_process): Add snarky comment.
9271         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9272
9273         * config.h.in: Oops, _getpt ==> _getpty
9274
9275 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9276
9277         * config.h.in:
9278         * regex.c:
9279         Use void*, not char*, as return type of alloca().
9280
9281         * alloc.c (free_marker): Side effect inside assert expression!
9282
9283 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9284
9285         * mule-charset.c (Fset_charset_ccl_program): To check
9286         if the given ccl program is valid, use setup_ccl_program()
9287         instead of CHECK_VECTOR().
9288         (Fmake_charset): Likewise.
9289
9290 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9291
9292         * faces.c (get_extent_fragment_face_cache_index):
9293         Fix cachel.merged_faces memory leak.
9294
9295 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9296
9297         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9298         Reset MSB of octets obtained by DECODE_SJIS
9299         because of the incompatibility with Emacs.
9300         (ccl_driver)<CCL_ENCODE_SJIS>:
9301         Set MSB of octets before passing them to
9302         ENCODE_SJIS because of the incompatibility
9303         with Emacs.
9304
9305 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9306
9307         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9308         (DECLARE_LRECORD): Undo the last change.
9309         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9310
9311 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9312
9313         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9314         the implementation to lrecord_implementations_table.
9315
9316 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9317
9318         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9319         initial value of `lrecord_type_##c_name' and
9320         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9321         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9322         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9323         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9324         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9325
9326 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9327
9328         * miscplay.c (sndcnv8S_2mono):
9329         (sndcnv2monounsigned):
9330         (sndcnvULaw_2linear):
9331         (sndcnv16swap):
9332         Remove implementation-defined behavior.
9333
9334 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9335
9336         * input-method-xlib.c: Warning suppression.
9337
9338 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9339
9340         * mule-ccl.c: Sync up with Emacs 21.0.90.
9341         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9342         Do nothing.
9343         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9344         Likewise.
9345         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9346         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9347         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9348         leading char belongs to official 2-dimensional charset.
9349         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9350         write the given character as is.  Otherwise,
9351         if it is a multibyte char, convert it by
9352         non_ascii_set_charptr_emchar, then write it.
9353         (CCL_WRITE_STRING): Likewise.
9354         (ccl_get_compiled_code): New function.
9355         (setup_ccl_program): When ccl_prog is invalid,
9356         return -1.
9357         (Fregister_code_conversion_map): New function.
9358         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9359
9360         * mule-ccl.h: Sync up with Emacs 21.0.90.
9361         (Fregister_ccl_program): export it.
9362
9363         * redisplay-msw.c (separate_textual_runs):
9364         If ccl program is not valid, don't do ccl conversion.
9365
9366         * redisplay-x.c (separate_textual_runs): Ditto.
9367
9368         * file-coding.c (Fmake_coding_system):
9369         When type is ccl and value is vector, register it
9370         with a proper symbol.  And checks whether the
9371         given ccl program is valid.
9372         (mule_decode): When calling ccl_driver, if src indicates
9373         NULL pointer, set an empty string instead.
9374         (mule_encode): Likewise.
9375
9376 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9377
9378         The following large batch of changes gets us back to a state of
9379         C++ compilability.  Extbyte is now a char, which means that
9380         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9381
9382         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9383
9384         * sound.c (Fplay_sound): Type correctness.
9385
9386         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9387         (x_get_window_property): Type correctness.
9388         (receive_incremental_selection): unsigned char ==> Extbyte
9389         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9390         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9391         (Fx_store_cutbuffer_internal): Type correctness.
9392
9393         * process-unix.c (try_to_initialize_subtty): Type correctness.
9394
9395         * objects-x.c (x_print_color_instance): Type correctness.
9396         (x_print_font_instance): Type correctness.
9397         (x_list_fonts): SExtbyte ==> Extbyte.
9398         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9399         (x_find_charset_font): SExtbyte ==> Extbyte.
9400         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9401         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9402         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9403         Use bufbyte_strcmp.
9404
9405         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9406         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9407         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9408         (BYTE_C0_P): Use bit ops for char-signedness safety.
9409         (BYTE_C1_P): Use bit ops for char-signedness safety.
9410         (CHARSET_BY_LEADING_BYTE):
9411         (CHARSET_BY_ATTRIBUTES):
9412         Always use inline function.
9413         Use type_checking_assert.
9414         Hide chlook.
9415
9416         * mule-charset.c (non_ascii_charptr_copy_char):
9417         Modify to work with both ASCII and non-ASCII characters.
9418         Improve docs and variable names.
9419         Replace over-clever fall-through switch with a simple loop.
9420         (Lstream_get_emchar_1):
9421         Replace over-clever fall-through switch with a simple loop.
9422
9423         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9424         Warning suppression.
9425
9426         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9427         the return value of Lstream_getc, which could be EOF as well.
9428
9429         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9430
9431         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9432         APIs can be used on Extbytes without casts.  Risky!
9433         (SExtbyte): Remove.
9434         (UExtbyte): Remove.
9435
9436         * input-method-xlib.c (XIM_init_device):
9437         Use Xlib.h instead of IntrinsicP.h.
9438         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9439         which will break in X11R7.
9440         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9441         to call XRegisterIMInstantiateCallback with correct types.
9442
9443         * gui-x.c (button_item_to_widget_value): Type correctness.
9444
9445         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9446
9447         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9448         (xbm_instantiate_1): Type correctness.
9449         (BUILD_GLYPH_INST):  Type correctness.
9450
9451         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9452
9453         * file-coding.c:
9454         (decode_coding_sjis):
9455         (decode_coding_big5):
9456         (decode_coding_ucs4):
9457         (decode_coding_utf8):
9458         (decode_coding_iso2022):
9459         (decode_coding_no_conversion):
9460         Make all decoding functions take an Extbyte * arg.
9461         (encode_coding_sjis):
9462         (encode_coding_big5):
9463         (encode_coding_ucs4):
9464         (encode_coding_utf8):
9465         (encode_coding_iso2022):
9466         (encode_coding_no_conversion):
9467         Make all encoding functions take a Bufbyte * arg.
9468         Use size_t instead of unsigned int for memory sizes.
9469         Only cast to unsigned char whenever dereferencing Extbyte *.
9470
9471         * doc.c (unparesseuxify_doc_string): Type correctness.
9472
9473         * console-x.c (split_up_display_spec):
9474         Rewrite without using details of internal string representation.
9475         (x_semi_canonicalize_device_connection): Type correctness.
9476
9477         * config.h.in:
9478         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9479         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9480         (HAVE_XFREE386): Removed.
9481
9482         * buffer.h (DEC_CHARPTR): `const' correctness.
9483         (bufbyte_strcmp): New.
9484         (bufbyte_memcmp): New.
9485
9486         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9487
9488         * buffer.h (XCHAR_OR_CHAR_INT):
9489         Always use inline function.
9490         Remove redundant type checking assert() - XINT will abort quite nicely.
9491
9492 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9493
9494         * search.c (Freplace_match): Set newtext to an empty string.
9495
9496 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9497
9498         * s/decosf1-3.h: Remove #include of stropts.h
9499         * s/ptx.h: Remove #include of stropts.h
9500         * s/usg5-4.h: Remove #include of stropts.h
9501         * sysproc.h:
9502         * config.h.in:
9503         Use stropts.h, not sys/stropts.h.
9504         Use strtio.h, not sys/strtio.h.
9505
9506 2000-10-04  Martin Buchholz <martin@xemacs.org>
9507
9508         * XEmacs 21.2.36 is released.
9509
9510 2000-09-21  Andy Piper  <andy@xemacs.org>
9511
9512         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9513         changes still involve copying the widget tree.
9514         (update_widget_face): make sure a change is register in the widget
9515         tree. Call update_tab_widget_face appropriately.
9516         (update_tab_widget_face): ditto.
9517         (x_tab_control_redisplay): make sure non-structural changes still
9518         involve copying the widget tree.
9519
9520 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9521
9522         * lread.c (locate_file): Check the path element is non-nil.
9523
9524 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9525
9526         * lisp.h: Warning suppression for SCO compilers.
9527
9528         * redisplay-tty.c (reset_tty_modes): Fix crash.
9529         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9530
9531 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9532
9533         Big signal/process handling overhaul.  Bugs fixed:
9534         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9535         M-x comint-kill-subjob should work for both values nil and t of
9536         process-connection-type. It was broken on most platforms.
9537         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9538         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9539         * process-unix.c: Signal/Process handling overhaul.
9540         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9541         (allocate_pty): Use all available modern methods of allocating
9542         ptys, falling back to old style BSD allocation as a last resort.
9543         Use allegedly more secure Unix98 pty allocation by default.
9544         (allocate_pty_the_old_fashioned_way): New. the last resort.
9545         (unix_create_process): Push ptem, ldterm, ttcompat where
9546         available.  Autoconfiscate.
9547         (try_to_initialize_subtty): New.
9548         (unix_kill_child_process): Proper signal handling for ptys on most
9549         platforms, using special knowledge of AIX, BSD, etc...
9550         (unix_create_process): Always disconnect_controlling_terminal() for
9551         subprocesses, whether using ptys or not.
9552         * process.h: Remove old getpt-dependent PTY code.
9553         * process.c (Fprocess_send_signal): New, obvious generic function.
9554         (decode_signal): New.
9555         (Finterrupt_process):
9556         (Fkill_process):
9557         (Fquit_process):
9558         (Fstop_process):
9559         (Fcontinue_process):
9560         (Fsignal_process): Use decode_signal.
9561         (process_send_signal):
9562         Many docstring corrections.
9563         Allow any signal to be sent to a process object.
9564         * config.h.in: Add symbols for big signal/process overhaul.
9565         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9566         * sysproc.h: Include process-related headers, where available:
9567         sys/stropts.h sys/strtio.h pty.h libutil.h
9568         * s/irix4-0.h:
9569         * s/irix5-0.h:
9570         * s/cygwin32.h:
9571         * s/gnu.h:
9572         * s/linux.h:
9573         * s/hpux.h:
9574         * s/aix3-1.h:
9575         Remove old S&M pty stuff.
9576         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9577         * systty.h: Simplify cpp hackery, improve comments.
9578         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9579
9580         * editfns.c (Fformat_time_string):
9581         Be a little more paranoid with the return value of ctime.
9582
9583         * fileio.c (check_executable):
9584         (check_writable):
9585         Use symbolic constants X_OK, W_OK.
9586
9587         * console-x.c (split_up_display_spec): Fix a warning.
9588
9589 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9590
9591         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9592         * ntproc.c (sys_spawnve): make_string ==> build_string
9593         Small clarity improvements.
9594
9595 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9596
9597         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9598
9599         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9600
9601         * config.h.in (HAVE_STRCASECMP): Remove.
9602
9603 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9604
9605         * redisplay-output.c (redisplay_output_pixmap):
9606         Cleaner and possibly more 64-bit correct code.
9607
9608 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9609
9610         * dumper.c (pdump_load_finish): move restoration of
9611         `noninteractive1' to emacs.c (main_1).
9612         * emacs.c (main_1): protect LISP-visible command-line flags
9613         from pdump_load().
9614
9615 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9616
9617         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9618         DUMP_TARGET instead of literal program names.
9619
9620 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9621
9622         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9623
9624 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9625
9626         * *: Spelling mega-patch
9627
9628 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9629
9630         * fns.c (bad_bad_turtle):
9631         Delete "Eek!" comment, since we fixed the bug to which it refers.
9632
9633 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9634
9635         * alloca.c: Replace REGISTER with register.
9636
9637 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9638
9639         * file-coding.c (ucs_to_char): Use countof.
9640
9641 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9642
9643         * file-coding.c: (ucs_to_char):
9644         (complex_vars_of_file_coding):
9645         Use countof instead of sizeof.
9646         Use CHECK_NATNUM instead of CHECK_INT.
9647
9648         * sysdep.c (strcasecmp): Remove.
9649         * device-x.c (ascii_strcasecmp): New.
9650         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9651         Avoid using non-standard non-portable strcasecmp.
9652
9653 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9654
9655         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9656         * font-lock.c: remove reference to emacsfns.h.
9657         * search.c: small doc improvement.
9658         * event-Xt.c: correct file names in comments.
9659         * console-x.h Correct file names in comments.
9660         * frame.c: Correct file names in comments.
9661         * event-stream.c: remove Energize from comments.
9662
9663 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9664
9665         * symeval.h (DEFERROR_STANDARD):
9666         (DEFERROR):
9667         (DEFSYMBOL):
9668         (DEFSYMBOL_NO_DUMP):
9669         (DEFSYMBOL_MULTIWORD_PREDICATE):
9670         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9671         (DEFKEYWORD):
9672         The construct &##name is not sensible C.
9673         Fixes compilation errors with Unixware native compiler.
9674
9675 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9676
9677         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9678         (next_frame_internal): Removed.  We now just have next_frame.
9679         (next_frame):
9680         Write a simpler and cleaner one-pass algorithm.
9681         Remove called_from_delete_device arg and #ifdefed-out code.
9682         (previous_frame):
9683         Renamed from prev_frame.  Update callers.
9684         Cleaned up to have an analogous implementation to next_frame.
9685         (other_visible_frames_internal): Remove the
9686         called_from_delete_device bogus arg, and hence, remove this
9687         function.  Just use other_visible_frames().
9688
9689         * window.c (Fnext_window):
9690         Prettify docstring.
9691         Since next_frame() is guaranteed to return a frame, remove check
9692         for nil inserted in previous patch.
9693         (Fprevious_window):
9694         Prettify docstring.
9695         Make code look more like Fnext_window.
9696         (window_loop):
9697         Respect the `console' arg when iterating through windows.
9698         Fixes bug: (get-buffer-window buffer t device) not respecting
9699         the `device' arg.
9700         This function needs more work, as others have pointed out.
9701
9702         * frame.h: Rename prev_frame to previous_frame.
9703         device_matches_console_spec no longer takes a `frame' arg.
9704
9705         * s/gnu.h:
9706         * s/linux.h:
9707         * s/hpux.h:
9708         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9709         From "Golubev I. N." <gin@mo.msk.ru>.
9710
9711         * make-src-depend: Fix typo.
9712
9713 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9714
9715         * window.c (Fnext_window):
9716         next_frame() might return nil, not a frame.
9717         Fixes this crash:
9718         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9719
9720         * frame.c (next_frame_internal):
9721         We've passed a frame if we've passed its device.
9722         Fixes this crash:
9723         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9724 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9725
9726 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9727
9728         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9729         Allow option to suppress accelerators in menu/dialog items.
9730         (populate_or_checksum_helper): Pass dialog title through above.
9731
9732 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9733
9734         * event-msw.c (mswindows_key_to_emacs_keysym):
9735         Add "pause" key, fix "menu" key.
9736
9737 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9738
9739         * eval.c (reinit_vars_of_eval):
9740         Increase max_lisp_eval_depth to 1000,
9741         required for thai-xtis.el to byte-compile under some circumstances.
9742
9743 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9744
9745         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9746         From Kenichi Handa.
9747
9748 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9749
9750         * make-src-depend: Make the generated Makefiles smaller.
9751
9752         * s/hpux.h (SETUP_SLAVE_PTY):
9753         Provide a %d in the format string for the errno argument.
9754
9755         * editfns.c (Ftemp_directory):
9756         Warning fix.
9757         Avoid buffer overrun on very long file name.
9758
9759         * input-method-xlib.c (XIM_init_device):
9760         6th parameter of XRegisterIMInstantiateCallback has different
9761         pointer types on different OSes, so simply cast to (void *).
9762
9763         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9764
9765         * sysdll.c (dll_open):
9766         shl_load will hang hard if passed a NULL filename.
9767         Simply return NULL for compatibility with dlopen.
9768         * sysdll.c: Conform to XEmacs coding standards.
9769
9770         * sysdep.c (get_pty_max_bytes):
9771         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9772
9773 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9774
9775         * tooltalk.c: Add #include <syssignal.h>
9776
9777 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9778
9779         * s/hpux.h: Don't use undefined function sigunblock().
9780
9781 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9782
9783         * config.h.in: Add HAVE_BALLOON_HELP.
9784         * emacs.c: Use HAVE_BALLOON_HELP.
9785         * Makefile.in.in (x_objs):
9786         Make Balloon Help conditional on finding shape.h.
9787
9788 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9789
9790         * syntax.c (regex_emacs_buffer_p): New variable.
9791         * syntax.h (regex_emacs_buffer_p): extern.
9792         * search.c (looking_at_1):
9793         (string_match_1):
9794         (fast_string_match):
9795         (search_buffer): Set regex_emacs_buffer_p.
9796         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9797         when before_dot, at_dot, after_dot.
9798
9799 2000-08-23  Andy Piper  <andy@xemacs.org>
9800
9801         * gui-x.c (popup_selection_callback): Only set action_occurred
9802         when we really have an image instance.
9803         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9804
9805 2000-08-23  Andy Piper  <andy@xemacs.org>
9806
9807         * gui-msw.c (mswindows_handle_gui_wm_command): set
9808         action_occurred.
9809         * gui-x.c (popup_selection_callback): ditto.
9810
9811         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9812         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9813         (struct Lisp_Image_Instance): add action_occurred flag.
9814
9815         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9816         (image_instance_changed): ditto.
9817         (reset_frame_subwindow_instance_cache): only unmap windows - do
9818         not remove them from the cache also.
9819
9820         * glyphs-widget.c (tab_control_update): better debug.
9821         (progress_gauge_update): ditto.
9822         (layout_update): ditto.
9823         (layout_instantiate): ditto.
9824         (tab_control_order_only_changed): cope with null pending items.
9825
9826         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9827         debug. Force selection of an item when an action occurred. Cope
9828         with null pending_items.
9829         (mswindows_progress_gauge_redisplay): better debug.
9830         * glyphs-x.c (x_tab_control_redisplay): ditto.
9831
9832         * redisplay.c (redisplay_frame): reset the frame cache if the
9833         frame is garbaged.
9834
9835         * window.c (Fset_window_configuration): potentially re-enable
9836         frame cache reset.
9837         (window_unmap_subwindows): need to finalize instances here since
9838         it is only used in mark_window_as_deleted.
9839
9840 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9841
9842         * nas.c (SndOpenDataForReading):
9843         nas.c (WaveOpenDataForReading):
9844         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9845         Somehow escaped from the 2000-08-14 patch.
9846
9847 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9848
9849         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9850         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9851
9852 2000-08-21  Andy Piper  <andy@xemacs.org>
9853
9854         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9855         window if it is not already displayed.
9856
9857         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9858         it is not already displayed.
9859
9860         * window.c (Fset_window_configuration): don't reset the frame
9861         cache.
9862
9863         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9864         instances from the frame cache if we are actually finalizing them.
9865         (reset_frame_subwindow_instance_cache): reset frame cache only
9866         after unmapping everything.
9867         (map_subwindow): set displayed flag after mapping.
9868
9869 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9870
9871         * data.c (indirect_function):
9872         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9873
9874         * eval.c (function_argcount):
9875         Use original function when signaling errors.
9876
9877 2000-08-18  Andy Piper  <andy@xemacs.org>
9878
9879         * frame.c (delete_frame_internal): use new
9880         free_frame_subwindow_instances name.
9881
9882         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9883         (add_tab_item): make return type correct.
9884         (mswindows_tab_control_instantiate): assert index of tab.
9885         (mswindows_tab_control_redisplay): Re-code to use
9886         gui_item_equal_sans_selected and gui_item_list_find_selected.
9887
9888         * glyphs-widget.c (tab_control_update): Correct comment.
9889
9890         * window.c (window_unmap_subwindows): use new
9891         unmap_subwindow_instance_cache_mapper.
9892         (window_unmap_subwindows_cache_mapper): deleted.
9893         (Fset_window_configuration): comparisons should now be with
9894         EQ. Preserve the subwindow instance cache across configuration
9895         changes.
9896         (allocate_window): ditto.
9897         (make_dummy_parent): ditto.
9898
9899         * glyphs.c (free_frame_subwindow_instances): rename from
9900         free_frame_subwindow_instance_cache. finalize all instances rather
9901         than just those in the display cache.
9902         (finalize_all_subwindow_instances): walk windows unmapping and
9903         finalizing subwindows.
9904         (unmap_subwindow_instance_cache_mapper): moved from
9905         window.c. Allow finalization as well as unmapping.
9906
9907         * gui.c (gui_item_list_find_selected): new function.
9908
9909         * gui.h (gui_item_list_find_selected): declare.
9910
9911         * glyphs-x.c (x_tab_control_redisplay): pick tab
9912         explicitly. Re-code to use gui_item_equal_sans_selected and
9913         gui_item_list_find_selected.
9914
9915         * glyphs-x.h: add lwlib-utils.h
9916
9917         * buffer.c (Frecord_buffer): undo previous change.
9918
9919 2000-08-09  Vin Shelton  <acs@xemacs.org>
9920
9921         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9922         possible.  Create temporary files more securely.  The patch was
9923         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9924         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9925         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9926         for details.
9927
9928 2000-08-07  Ben Wing  <ben@xemacs.org>
9929
9930         * getloadavg.c: remove duplicate (and windows-breaking)
9931         includes of fcntl.h and sys/file.h.
9932
9933         * nt.c: remove duplicate getloadavg() definition.
9934
9935         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9936         encodings.
9937
9938 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9939
9940         * eval.c (function_argcount): If function needs to be autoloaded
9941         actually use the loaded definition.
9942         GCPRO function.
9943
9944 2000-08-05  Ben Wing  <ben@xemacs.org>
9945
9946         * getloadavg.c: add prototype for getloadavg().  remove
9947         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9948         of the code).  remove duplicate header includes.
9949
9950         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9951
9952         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9953         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9954         useful load average.
9955
9956         * alloc.c (reinit_alloc_once_early): removed references to
9957         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9958         the lisp vars are the only things referencing the malloc_sbrk_*
9959         vars, and they were already if 0'd out.  these vars only exist
9960         in the older malloc.c, which is basically unused, and they're
9961         only for informational purposes.
9962
9963         * m\*.h: removed useless VIRT_ADDR_VARIES.
9964
9965         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9966
9967 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9968
9969         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9970         color if the image is a mono pixmap.
9971
9972 2000-07-30  Ben Wing  <ben@xemacs.org>
9973
9974         * Makefile.in.in (release):
9975         Remove stray @.
9976
9977         * buffer.c (directory_is_current_directory):
9978         * dired-msw.c (mswindows_get_files):
9979         * dired.c:
9980         * dired.c (Fdirectory_files):
9981         * dired.c (file_name_completion_stat):
9982         * dired.c (Ffile_attributes):
9983         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9984         preprocessor tricks, to avoid problems on some machines
9985         (e.g. SCO).
9986
9987         * callproc.c (egetenv): GC docs.
9988
9989         * console-msw.h:
9990         * console-msw.h (struct mswindows_dialog_id):
9991         * lrecord.h (lrecord_type):
9992         New object for use with MSW dialogs.
9993
9994         * console.h (struct console_methods):
9995         New enable/disable frame methods, for proper modal dialogs.
9996
9997         * device-msw.c (msprinter_default_printer): Fix to follow
9998         proper Mule conventions.
9999
10000         * device-msw.c:
10001         * device-msw.c (signal_open_printer_error):
10002         * device-msw.c (msprinter_init_device):
10003         * device-msw.c (ensure_not_printing):
10004         * device-msw.c (plist_get_margin):
10005         * device-msw.c (Fmsprinter_select_settings):
10006         * device-msw.c (finalize_devmode):
10007         * device-msw.c (Fmsprinter_settings_despecialize):
10008         * device-msw.c (signal_enum_priner_error):
10009         * extents.c (decode_extent):
10010         * extents.c (decode_map_extents_flags):
10011         * extents.c (decode_extent_at_flag):
10012         * extents.c (Fextent_at):
10013         * extents.c (Fextents_at):
10014         * extents.c (symbol_to_glyph_layout):
10015         [[[[2]]]] Use structured errors.
10016
10017         * dialog-msw.c:
10018         * dialog-msw.c (mswindows_is_dialog_msg):
10019         * dialog-msw.c (mark_mswindows_dialog_id):
10020         * dialog-msw.c (dialog_proc):
10021         * dialog-msw.c (handle_question_dialog_box):
10022         * dialog-msw.c (syms_of_dialog_mswindows):
10023         Define new object to clean up marking; use it as a dialog identifier.
10024         Call new delete-dialog-box-hook.
10025
10026         * dialog-x.c (dbox_selection_callback):
10027         * dialog-x.c (dbox_descriptor_to_widget_value):
10028         * dialog-x.c (x_make_dialog_box_internal):
10029         Call new delete-dialog-box-hook.
10030         Return an id.
10031
10032         * dialog.c:
10033         * dialog.c (syms_of_dialog):
10034         * dialog.c (vars_of_dialog):
10035         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10036
10037         * eval.c:
10038         * eval.c (signal_call_debugger):
10039         when noninteractive, output stack traces on the console instead
10040         of in a (never-seen) buffer.
10041
10042         * eval.c (signal_type_error):
10043         * eval.c (invalid_argument_2):
10044         * lisp.h:
10045         new funs for use w/structured errors.
10046
10047         * event-Xt.c:
10048         * event-Xt.c (x_to_emacs_keysym):
10049         * event-Xt.c (describe_event):
10050         * event-Xt.c (emacs_Xt_event_handler):
10051         * event-Xt.c (vars_of_event_Xt):
10052         * event-msw.c:
10053         * event-msw.c (mswindows_wnd_proc):
10054         * event-msw.c (vars_of_event_mswindows):
10055         rename {x,mswindows}-debug-events to debug-{}-events for
10056         consistency with other debug-foo variables.
10057
10058         * event-stream.c:
10059         document next-event more clearly.
10060
10061         * fileio.c (Ffile_name_directory):
10062         * fileio.c (Ffile_name_nondirectory):
10063         * fileio.c (Funhandled_file_name_directory):
10064         * fileio.c (file_name_as_directory):
10065         * fileio.c (Ffile_name_as_directory):
10066         * fileio.c (directory_file_name):
10067         * fileio.c (Fdirectory_file_name):
10068         * fileio.c (Fmake_temp_name):
10069         * fileio.c (Ffile_truename):
10070         * fileio.c (Fsubstitute_in_file_name):
10071         * fileio.c (expand_and_dir_to_file):
10072         * fileio.c (barf_or_query_if_file_exists):
10073         * fileio.c (check_executable):
10074         * fileio.c (Ffile_exists_p):
10075         * fileio.c (Ffile_writable_p):
10076         * fileio.c (Ffile_directory_p):
10077         * fileio.c (Ffile_regular_p):
10078         * fileio.c (Ffile_modes):
10079         * fileio.c (Ffile_newer_than_file_p):
10080         * fileio.c (Fverify_visited_file_modtime):
10081         * fileio.c (Fset_visited_file_modtime):
10082         * fileio.c (auto_save_1):
10083         (1). (2).
10084         fix up gcpro's.
10085
10086         * frame-msw.c:
10087         * frame-msw.c (mswindows_init_frame_1):
10088         * frame-msw.c (mswindows_enable_frame):
10089         * frame-msw.c (error_frame_unsizable):
10090         * frame-msw.c (msprinter_init_frame_1):
10091         * frame-msw.c (msprinter_init_frame_3):
10092         * frame-msw.c (console_type_create_frame_mswindows):
10093         (2).
10094         implement new enable/disable frame methods.
10095
10096         * frame-x.c:
10097         * frame-x.c (x_enable_frame):
10098         * frame-x.c (console_type_create_frame_x):
10099         implement new enable/disable frame methods.
10100
10101         * frame.c:
10102         * frame.c (Fdisable_frame):
10103         * frame.c (syms_of_frame):
10104         * frame.h (struct frame):
10105         implement new enable/disable frame methods/functions.
10106
10107         * general-slots.h:
10108         add initial-focus.
10109
10110         * glyphs-msw.c (mswindows_widget_instantiate):
10111         comment that initial-focus should be implemented.
10112
10113         * glyphs-widget.c:
10114         * glyphs-widget.c (check_valid_instantiator):
10115         * glyphs-widget.c (check_valid_orientation):
10116         * glyphs-widget.c (check_valid_tab_orientation):
10117         * glyphs-widget.c (check_valid_justification):
10118         * glyphs-widget.c (check_valid_border):
10119         * glyphs-widget.c (check_valid_callback):
10120         * glyphs-widget.c (check_valid_int_or_function):
10121         * glyphs-widget.c (check_valid_string_or_vector):
10122         * glyphs-widget.c (check_valid_item_list_1):
10123         * glyphs-widget.c (widget_validate):
10124         * glyphs-widget.c (combo_box_validate):
10125         * glyphs-widget.c (widget_instantiate):
10126         * glyphs-widget.c (syms_of_glyphs_widget):
10127         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10128         * glyphs-widget.c (image_instantiator_combo_box):
10129         * glyphs-widget.c (image_instantiator_scrollbar):
10130         * glyphs-widget.c (image_instantiator_tab_control):
10131         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10132         (2).
10133         support (unimplemented) keyword initial-focus.
10134         reindent long macros.
10135
10136         * glyphs-x.c (x_redisplay_widget):
10137         * glyphs-x.c (x_button_instantiate):
10138         * glyphs-x.c (x_button_redisplay):
10139         * glyphs-x.c (x_progress_gauge_instantiate):
10140         * glyphs-x.c (x_edit_field_instantiate):
10141         * glyphs-x.c (x_combo_box_instantiate):
10142         * glyphs-x.c (x_tab_control_instantiate):
10143         * glyphs-x.c (x_label_instantiate):
10144         * gui-x.c:
10145         * gui-x.c (button_item_to_widget_value):
10146         * gui-x.c (gui_items_to_widget_values_1):
10147         * gui-x.c (gui_item_children_to_widget_values):
10148         * gui-x.c (gui_items_to_widget_values):
10149         * gui-x.h:
10150         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10151         add new flag to gui-parsing routines to indicate whether
10152         accelerator specs should be supported.
10153
10154         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10155
10156         * glyphs.h (struct Lisp_Image_Instance):
10157         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10158         add initial-focus flag.
10159
10160         * gui.c:
10161         * gui.c (syms_of_gui):
10162         * gui.c (vars_of_gui):
10163         clean up menu-no-selection-hook.
10164
10165         * gui.h:
10166         support delete-dialog-box-hook.
10167
10168         * lread.c (Fload_internal):
10169         * lread.c (locate_file_in_directory_mapper):
10170         (1).
10171
10172         * lrecord.h:
10173         * lrecord.h (struct toolbar_button):
10174         * lrecord.h (syms_of_toolbar):
10175         document how to create a new object.
10176
10177         * menubar-msw.c (mswindows_char_is_accelerator):
10178         may be called on frames w/o menus.
10179
10180         * menubar.c (vars_of_menubar):
10181         clean up :filter docs.
10182
10183         * nt.c (readdir):
10184         * ntproc.c:
10185         (1).
10186
10187         * process-nt.c:
10188         * process-nt.c (validate_signal_number):
10189         * process-nt.c (signal_cannot_launch):
10190         * process-nt.c (nt_create_process):
10191         * process-nt.c (nt_send_process):
10192         * process-nt.c (nt_kill_child_process):
10193         * process-nt.c (nt_open_network_stream):
10194         * process-nt.c (syms_of_process_nt):
10195         (2).
10196         delete quote-handling.  call new lisp code that does it better.
10197
10198         * process-unix.c (connect_to_file_descriptor):
10199         * process-unix.c (allocate_pty):
10200         * process-unix.c (unix_send_process):
10201         * process-unix.c (unix_kill_child_process):
10202         * process-unix.c (unix_open_network_stream):
10203         * process-unix.c (unix_open_multicast_group):
10204         (1). (2).
10205
10206         * process.c:
10207         * process.c (Fstart_process_internal):
10208         (2).  need to canonicalize process path even if absolute.
10209
10210         * select-msw.c (symbol_to_ms_cf):
10211         * select-msw.c (ms_cf_to_symbol):
10212         * select-msw.c (cf_is_autofreed):
10213         * select-msw.c (mswindows_destroy_selection):
10214         * select.c:
10215         * select.c (syms_of_select):
10216         * select.h:
10217         support dibv5, fix bugs. (from Mike Alexander)
10218
10219         * select.c (Fget_selection_internal):
10220         * select.c (select_convert_out):
10221
10222         * sysdep.c:
10223         * sysdep.c (xemacs_stat):
10224         renamed.
10225
10226         * sysdep.c (mkdir):
10227         * sysdep.c (rmdir):
10228         but keep original stat() here because we provide encapsulation
10229         around these funs.
10230
10231         * sysfile.h:
10232         * sysfile.h (fstat):
10233         remove stat garbage.
10234
10235         * syswindows.h:
10236         fix X/MSW conflict.
10237         don't include tchar.h.  it's inappropriate because it makes
10238         compile-time distinctions when we want runtime distinctions.
10239         (we provide our own tchar replacements)
10240
10241         * toolbar.c:
10242         use default object printer for toolbar-button.
10243
10244         * unexcw.c:
10245         make sure we don't encapsulate.
10246
10247         * window.c (vars_of_window):
10248         emphasize that temp-buffer-show-hook is obsolete.
10249
10250 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10251
10252         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10253         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10254
10255         * events.c (Fevent_timestamp_lessp):
10256         Not 64-bit clean.  Use EMACS_INT, not int.
10257
10258 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10259
10260         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10261         unsigned int and changed the last enum to
10262         lrecord_type_last_built_in_type.
10263         (lrecord_implementations_table): changed prototype to know how
10264         long the array is supposed to be.
10265         (lrecord_type_count): new unsigned int to keep track of the
10266         current number of lisp lrecord types.
10267         (DEFINE_EXTERNAL_LRECORD):
10268         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10269         dynamic-modules to declare new lisp types. They are the same
10270         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10271         int for each new type, and increment lrecord_type_count by 1.
10272
10273         * alloc.c (lrecord_implementations_table): Changed to reference
10274         lrecord_type_last_built_in_type for the size of the array.
10275         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10276
10277 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10278
10279         * glyphs.h (check_valid_item_list): Renamed from
10280         check_valid_item_list_1.
10281
10282 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10283
10284         * select.c (Qselect_coerce): New.
10285         * select.c (Vselection_coercion_alist): New.
10286         * select.c (syms_of_select): Declare.
10287         * select.c (get-selection-internal): Use it.
10288         Use the new select-coerce functionality.
10289
10290         * select.c (select_coerce): New.
10291         * select.h (select_coerce): Declare.
10292         New function to coerce one type of data into another.
10293
10294 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10295
10296         * callproc.c (Fcall_process_internal):
10297         (Fcall_process_internal):
10298         * process-unix.c (unix_create_process):
10299         Save and restore the value of errno, so that error messages are accurate.
10300
10301 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10302
10303         * elhash.c (print_hash_table):
10304         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10305         Prettify docstrings and indentation.
10306
10307 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10308
10309         * window.c (Fwindow_pixel_edges): Subtract frame border and
10310         gutter size.
10311
10312 2000-07-31  Andy Piper  <andy@xemacs.org>
10313
10314         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10315         will acknowledge the change.
10316
10317         * glyphs.h: declare tab_control_order_only_changed.
10318
10319         * glyphs-x.c (x_tab_control_redisplay): use
10320         tab_control_order_only_changed.
10321
10322         * glyphs-widget.c (tab_control_order_only_changed): new function.
10323
10324         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10325         tab_control_order_only_changed.
10326
10327         * gui.c (gui_item_equal_sans_selected): new function.
10328         (gui_item_equal): use it.
10329
10330         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10331         :properties in favor of :items..
10332
10333         * glyphs-widget.c (check_valid_item_list): rename from
10334         check_valid_item_list_1.
10335         (check_valid_item_list_1): renamed.
10336         (combo_box_validate): deprecate :properties in favor of :items.
10337         (widget_instantiate): ditto.
10338         (tab_control_update): ditto.
10339         (image_instantiator_combo_box): ditto.
10340         (image_instantiator_tree_view): ditto.
10341         (image_instantiator_tab_control): ditto.
10342         (layout_post_instantiate): remove dead code.
10343
10344         * print.c (debug_print_no_newline): only write to debugger if in
10345         WIN32_NATIVE.
10346
10347         * elhash.c (Fmake_hash_table): update doc string.
10348
10349         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10350         messages whilst in GC. This at least stops XEmacs crashing but has
10351         the potential for wierd behaviour.
10352
10353 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10354
10355         * config.h.in:
10356         Make existence of s&m files optional.
10357
10358         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10359         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10360         * s/gnu.h: Remove HAVE_GETLOADAVG.
10361         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10362         * s/sol2.h: Remove HAVE_GETLOADAVG.
10363         * lisp.h: Remove getloadavg() declaration.
10364         * fns.c:
10365         Include <sys/loadavg.h> if available.
10366         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10367         * config.h.in:  Group together getloadavg()-related macros.
10368         Use only configure-time tests to detect getloadavg().
10369
10370 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10371
10372         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10373
10374 2000-07-25  Andy Piper  <andy@xemacs.org>
10375
10376         * syswindows.h: add tchar.h for native builds.
10377
10378         * frame.c (syms_of_frame): remove set-glyph-image.
10379
10380         * general-slots.h: add Qset_glyph_image.
10381
10382         * glyphs-widget.c (layout_update): add domain arg to
10383         set-glyph-image.
10384         (syms_of_glyphs_widget): remove set-glyph-image.
10385
10386 2000-07-23  Ben Wing  <ben@xemacs.org>
10387
10388         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10389         Vpopup_frame_list.
10390
10391 2000-07-22  Andy Piper  <andy@xemacs.org>
10392
10393         * symsinit.h: add syms_of_win32().
10394
10395         * gui-msw.c (syms_of_gui_mswindows): remove
10396         Fmswindows_shell_execute.
10397         (Fmswindows_shell_execute): moved to win32.c.
10398
10399         * emacs.c (main_1): add syms_of_win32 ().
10400
10401         * win32.c (init_potentially_nonexistent_functions): rewrite in
10402         compiler-friendly terms.
10403         (Fmswindows_shell_execute): move here from gui-msw.c.
10404         (syms_of_win32): new.
10405
10406         * device-msw.c (Fmswindows_printer_list): clean up args to
10407         EnumPrinters.
10408         Don't include tchar under cygwin or mingw.
10409         (msprinter_default_printer): make cygwin-friendly.
10410
10411 2000-07-21  Andy Piper  <andy@xemacs.org>
10412
10413         * glyphs-widget.c (image_instantiator_tree_view): use tab
10414         control's update function.
10415         (layout_property): new function. Retrieve items.
10416
10417         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10418         function. Re-populate the tree view from the pending items.
10419
10420         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10421         is designated the parent if the domain is an image instance. This
10422         is needed so that dirtiness can be cascade up the hierarchy and
10423         thus for layout children to be redisplayed correctly.
10424         (allocate_image_instance): rename glyph -> parent.
10425
10426         * redisplay.h: change redisplay_output_layout signature.
10427
10428         * redisplay-msw.c (mswindows_output_display_block): use domain
10429         arg.
10430
10431         * redisplay-x.c (x_output_display_block): use domain arg.
10432
10433 2000-07-10  Andy Piper  <andy@xemacs.org>
10434
10435         * window.c (Fset_window_configuration): add comment.
10436
10437         * redisplay-output.c (compare_runes):
10438         (redisplay_output_subwindow): redisplay rather than update subwindow.
10439         (redisplay_output_layout): ditto.
10440
10441         * redisplay-msw.c (mswindows_frame_output_end):
10442         (mswindows_frame_output_end): make defer window pos optional.
10443
10444         * lisp.h: add Flast.
10445
10446         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10447         normalize method. Change update method to be for changed
10448         instantiators. Add redisplay method. Change signature of layout
10449         method.
10450         (struct Lisp_Image_Instance): add instantiator.
10451         (IMAGE_INSTANCE_INSTANTIATOR): new.
10452         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10453         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10454         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10455
10456         * glyphs.c:
10457         (find_instantiator_differences): new function.
10458         (Fset_instantiator_property): new convenience function.
10459         (check_image_instance_structure): strictly check for vector
10460         instantiators.
10461         (normalize_image_instantiator): make non-static.
10462         (instantiate_image_instantiator): pass on dest_mask and use new
10463         signatures for image_instance_layout and friends.
10464         (mark_image_instance): mark the instantiator. Mark the subwindow
10465         face not the widget face.
10466         (image_instance_equal): add instantiator.
10467         (image_instance_hash): ditto.
10468         (allocate_image_instance): ditto.
10469         (Fset_image_instance_property): removed.
10470         (Fimage_instance_file_name): ditto.
10471         (Fcolorize_image_instance): ditto.
10472         (image_instance_layout): add offsets to be set.
10473         (update_image_instance): new function. update an image instance
10474         from its changed instantiator.
10475         (inherit_normalize): add dest_mask.
10476         (xbm_normalize): ditto.
10477         (xface_normalize): ditto.
10478         (xpm_normalize): ditto.
10479         (text_update): set_property -> update.
10480         (image_instantiate): use the glyph identity as a hash key, not the
10481         instantiator.
10482         (glyph_width): use new image_instance_layout signature.
10483         (glyph_ascent): ditto.
10484         (glyph_descent): ditto.
10485         (glyph_height): ditto.
10486         (glyph_query_geometry): ressurrect.
10487         (glyph_layout): ditto.
10488         (redisplay_subwindow): update -> redisplay.
10489         (syms_of_glyphs): add Fset_instantiator_property.
10490         (image_instantiator_format_create): set_property -> update.
10491
10492         * glyphs-x.c:
10493         (autodetect_normalize): add dest_maks to signature.
10494         (x_redisplay_subwindow): update -> redisplay.
10495         (x_redisplay_widget): ditto.
10496         (x_button_redisplay): ditto.
10497         (x_progress_gauge_redisplay): ditto.
10498         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10499         stacking order.
10500         (console_type_create_glyphs_x): update -> redisplay.
10501         (image_instantiator_format_create_glyphs_x): ditto.
10502
10503         * glyphs-widget.c:
10504         (check_valid_instantiator): disallow glyphs in the instantiator,
10505         they must now be vectors.
10506         (check_valid_instantiator_list): ditto.
10507         (glyph_instantiator_to_glyph): use internal symbol rather than
10508         intern.
10509         (widget_update): renamed from widget_set_property. Call cascaded
10510         update methods.
10511         (redisplay_widget): renamed from update_widget.
10512         (widget_layout): image_instance_layout now takes position as well
10513         as size.
10514         (widget_normalize): ditto.
10515         (widget_instantiate): ditto.
10516         (tab_control_query_geometry) ditto.:
10517         (tab_control_update): renamed from tab_control_set_property.
10518         (progress_gauge_update): set_property -> update.
10519         (layout_normalize): rewrite so that child instantiators are
10520         normalized also.
10521         (layout_update): new function. Create glyphs from the normalized
10522         children and cope with any other layout keywords. We do not
10523         instantiate children here that will be take care of by
10524         redisplay_output_layout.
10525         (layout_instantiate): call layout_update and not much else.
10526         (layout_post_instantiate): not sure whether this is needed
10527         anymore.
10528         (layout_query_geometry): query glyph geometry rather than
10529         image_instance geometry.
10530         (layout_layout): set offsets from pass in parameters. Use glyph
10531         geometry and layout functions rather than image instance ones.
10532         (native_layout_layout): ditto.
10533         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10534         (image_instantiator_widget): set_property -> update.
10535         (image_instantiator_buttons): ditto.
10536         (image_instantiator_progress_guage): ditto.
10537         (image_instantiator_tab_control): ditto.
10538         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10539         (image_instantiator_layout): add update method.
10540
10541         * glyphs-msw.c (bmp_normalize):
10542         (mswindows_resource_normalize): add dest_mask so that it can be
10543         proprogated by layout_normalize.
10544         (begin_defer_window_pos): make optional because it may not be the
10545         right thing to do and it introduces differences with X.
10546         (mswindows_unmap_subwindow): ditto.
10547         (mswindows_map_subwindow): ditto.
10548         (mswindows_redisplay_subwindow): renamed from
10549         mswindows_update_subwindow.
10550         (mswindows_redisplay_widget): ditto.
10551         (mswindows_button_redisplay): renamed from
10552         mswindows_button_update. Update is now what the instantiation
10553         function does for a changed instantiator.
10554         (mswindows_progress_gauge_instantiate): set the progress value
10555         here if appropriate.
10556         (mswindows_tab_control_redisplay): cope with re-ordering of the
10557         members of the tab widget by simply selecting the new top
10558         widget. This makes things appear ok if you click on a tab.
10559         (mswindows_combo_box_instantiate): image_instance_layout now takes
10560         position as well as size.
10561         (mswindows_progress_gauge_redisplay): renamed from
10562         mswindows_progress_gauge_update.
10563         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10564         (image_instantiator_format_create_glyphs_mswindows): ditto.
10565
10566         * glyphs-eimage.c (jpeg_normalize):
10567         (gif_normalize):
10568         (png_normalize):
10569         (tiff_normalize): add dest_mask so that it can be proprogated by
10570         layout_normalize.
10571
10572         * elhash.c:
10573         (print_hash_table):
10574         (hash_table_weakness_validate):
10575         (decode_hash_table_weakness):
10576         (Fhash_table_weakness):
10577         (Fhash_table_type):
10578         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10579
10580         * console.h (struct console_methods): move update_* to
10581         redisplay_*.
10582
10583 2000-07-20  Ben Wing  <ben@xemacs.org>
10584
10585         * *.[ch] (XSETOBJ): remove unused middle argument.
10586         lisp-disunion.h: correct wrap_object() to one argument.
10587
10588 2000-07-15  Ben Wing  <ben@xemacs.org>
10589
10590         * s/cygwin32.h:
10591         * s/cygwin32.h (CYGWIN_CONV_PATH):
10592         Add missing logb prototype for v1.1.
10593         Use post-b20 names and alias to pre-b20 names when pre-b20.
10594
10595         * s/windowsnt.h: [5].
10596
10597 2000-07-15  Ben Wing  <ben@xemacs.org>
10598
10599         * Makefile.in.in (x_objs):
10600         * Makefile.in.in (sheap_objs):
10601         * Makefile.in.in (objs):
10602         added win32.o, cosmetic cleanups.
10603
10604         * alloc.c (Fmake_byte_code):
10605         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10606         etc. macros which declare their own args now.
10607
10608         * alloc.c (syms_of_alloc):
10609         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10610
10611         * buffer.c:
10612         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10613
10614         * buffer.c (Fget_file_buffer):
10615         Fixed GCPRO problem.
10616
10617         * buffer.c (get_truename_buffer):
10618         Fixed comment about GC checking.
10619
10620         * buffer.c (syms_of_buffer):
10621         Undeclared those dedicated frame funs.
10622         [2].
10623
10624         * buffer.h:
10625         Define convenience macros for internal/external conversions.
10626         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10627         and Qenvironment_variable_encoding for cleaner code.
10628
10629         * bufslots.h:
10630         Remove dedicated-frame; in lisp.
10631
10632         * bytecode.c (funcall_compiled_function):
10633         [1].
10634
10635         * bytecode.c (syms_of_bytecode):
10636         [2].
10637
10638         * console-msw.c:
10639         * console-msw.c (mswindows_show_console): Rewrote.
10640
10641         * console-msw.c (Fmswindows_debugging_output): New.
10642         Sends to OutputDebugString (special MSWin debugger interface).
10643
10644         * console-msw.c (Fmswindows_message_box):
10645         Fixed stupid bugs so it works when called from kill-emacs.
10646
10647         * console-msw.c (syms_of_console_mswindows):
10648         Declare Fmswindows_debugging_output.
10649
10650         * console-msw.h:
10651         New MSWin prototypes.
10652
10653         * console-msw.h (struct mswindows_frame):
10654         New entry last-click-mods for improved button-modifier support.
10655
10656         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10657         New struct entry `popup' with corresponding accessor.
10658
10659         * console-x.c:
10660         * console-x.c (split_up_display_spec):
10661         * console-x.c (get_display_arg_connection):
10662         * console-x.c (x_semi_canonicalize_console_connection):
10663         * console-x.c (x_canonicalize_device_connection):
10664         [[[6]]]: Change char to more specific type.
10665         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10666
10667         * console-x.c (x_semi_canonicalize_console_connection):
10668         * console-x.c (x_canonicalize_device_connection):
10669         [[[9]]]: Fix up error signalling to use new structured error system.
10670
10671         * console-x.h:
10672         [[[4]]]: Define codesys aliases:
10673         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10674         Qx_color_name_encoding, Qx_display_name_encoding.
10675
10676         * console.h (struct console_methods):
10677         New method make_dialog_box_internal supersedes older
10678         popup_dialog_box method.
10679
10680         * data.c:
10681         Define many new errors, part of new structured errors.
10682
10683         * data.c (init_errors_once_early):
10684         * data.c (syms_of_data):
10685         [2].
10686
10687         * device-msw.c (mswindows_init_device):
10688         [[[5]]]: Cleanup to support NT 3.51.
10689
10690         * device-msw.c (decode_devmode): Cleanup.
10691
10692         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10693         * device-msw.c (mswindows_handle_print_dialog_box):
10694         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10695         * device-msw.c (syms_of_device_mswindows):
10696         Delete the dialog box primitives recently introduced by Kirill and
10697         instead interface to general dialog box interface.
10698
10699         * device-x.c:
10700         * device-x.c (compute_x_app_name):
10701         * device-x.c (x_init_device):
10702         * device-x.c (Fx_valid_keysym_name_p):
10703         * device-x.c (Fx_set_font_path):
10704         [6].
10705         [7].
10706
10707         * device.h (wrap_device): New.
10708         First of its kind; meant to replace XSETDEVICE.
10709
10710         * dialog-msw.c: Many file-dialog symbols.
10711
10712         * dialog-msw.c (mswindows_register_popup_frame): New.
10713         * dialog-msw.c (mswindows_is_dialog_msg): New.
10714         For supporting kbd traversal in dialog boxes.
10715
10716         * dialog-msw.c (dialog_proc):
10717         Support hitting ESC in dialogs.
10718
10719         * dialog-msw.c (struct):
10720         Common dialog box errors.
10721
10722         * dialog-msw.c (handle_file_dialog_box): New.
10723         Add file dialog code.
10724
10725         * dialog-msw.c (handle_question_dialog_box):
10726         Redo existing code to support new question dialog syntax.
10727
10728         * dialog-msw.c (console_type_create_dialog_mswindows):
10729         We support new dialog console method.
10730
10731         * dialog-msw.c (syms_of_dialog_mswindows):
10732         * dialog-msw.c (vars_of_dialog_mswindows):
10733         New file dialog symbols, vars.
10734
10735         * dialog-x.c:
10736         * dialog-x.c (maybe_run_dbox_text_callback):
10737         * dialog-x.c (dbox_descriptor_to_widget_value):
10738         * dialog-x.c (x_make_dialog_box_internal):
10739         * dialog-x.c (console_type_create_dialog_x):
10740         Mule-ize entire file.
10741         Redo to support question dialog syntax.
10742         [6].
10743
10744         * dialog.c:
10745         * dialog.c (Fmake_dialog_box_internal):
10746         * dialog.c (syms_of_dialog):
10747         Kill old popup-dialog-box, replace with new primitive.
10748         Just call device method or signal error.
10749
10750         * eldap.c (Fldap_open):
10751         * eldap.c (Fldap_search_basic):
10752         * eldap.c (Fldap_add):
10753         * eldap.c (Fldap_modify):
10754         [1].
10755         [7].
10756
10757         * emacs.c:
10758         * emacs.c (make_arg_list_1):
10759         * emacs.c (make_arg_list):
10760         Mule-ize call to dll_init().
10761         [6].
10762         [8].
10763
10764         * emacs.c (make_argc_argv):
10765         * emacs.c (free_argc_argv):
10766         * emacs.c (init_cmdargs):
10767         * emacs.c (main_1):
10768         * emacs.c (Fkill_emacs):
10769         * emacs.c (Fdump_emacs):
10770         Update comments about what can be used in syms_* etc.
10771         Call init_win32() when necessary.
10772         Fix up MS Win dialog box in kill-buffer to actually work right.
10773         [7].
10774
10775         * eval.c:
10776         * eval.c (For):
10777         * eval.c (Fand):
10778         * eval.c (Fprogn):
10779         * eval.c (Fprog1):
10780         * eval.c (Fprog2):
10781         * eval.c (FletX):
10782         * eval.c (Flet):
10783         * eval.c (condition_case_3):
10784         * eval.c (Feval):
10785         * eval.c (function_argcount):
10786         * eval.c (funcall_lambda):
10787         [1].
10788
10789         * eval.c (type_error): New.
10790         * eval.c (maybe_type_error): New.
10791         * eval.c (continuable_type_error): New.
10792         * eval.c (maybe_continuable_type_error): New.
10793         * eval.c (type_error_with_frob): New.
10794         * eval.c (maybe_type_error_with_frob): New.
10795         * eval.c (continuable_type_error_with_frob): New.
10796         * eval.c (maybe_continuable_type_error_with_frob): New.
10797         New functions for use with structured errors.
10798
10799         * event-Xt.c:
10800         * event-Xt.c (x_event_to_emacs_event):
10801         Buttons are now modifiers too.
10802
10803         * event-Xt.c (emacs_Xt_current_event_timestamp):
10804         Implement new event method.
10805         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10806
10807         * event-msw.c:
10808         * event-msw.c (ntpipe_shove_writer): [5].
10809         * event-msw.c (mswindows_enqueue_mouse_button_event):
10810         * event-msw.c (mswindows_drain_windows_queue):
10811         * event-msw.c (mswindows_wnd_proc): [7].
10812         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10813         * event-msw.c (mswindows_modifier_state):
10814         Throughout: support new button modifiers.
10815
10816         * event-msw.c (emacs_mswindows_current_event_timestamp):
10817         Implement new event method.
10818         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10819
10820         * event-stream.c:
10821         * event-stream.c (event_stream_current_event_timestamp): New.
10822         * event-stream.c (maybe_kbd_translate): New functionality.
10823         * event-stream.c (vars_of_event_stream):
10824         Document new kbd-translate-table functionality.
10825
10826         * event-stream.c (Fcurrent_event_timestamp): New.
10827         New primitive for use in fabricated events.
10828         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10829
10830         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10831
10832         * events.c:
10833         * events.c (Fmake_event):
10834         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10835         [1].
10836         [9].
10837
10838         * events.c (format_event_object): fix gcc warnings.
10839
10840         * events.c (Fevent_timestamp): Document new primitives.
10841
10842         * events.c (TIMESTAMP_HALFSPACE): New.
10843
10844         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10845         comparing timestamps correctly (half-space algorithm).
10846
10847         * events.c (Fevent_modifier_bits): Doc fix.
10848
10849         * events.c (Fevent_modifiers): Major doc addition.
10850         * events.c (event_x_y_pixel_internal): Typo fix.
10851         * events.c (syms_of_events): Declare new primitives.
10852
10853         * events.h:
10854         Update long comment for button modifiers, timestamps.
10855
10856         * events.h (struct event_stream):
10857         New current_event_timestamp method.
10858
10859         * extents.c:
10860         * extents.c (extent_in_region_p):
10861         * extents.c (decode_extent):
10862         * extents.c (Fset_extent_parent):
10863         * extents.c (decode_map_extents_flags):
10864         Fix gcc warnings.
10865         [9].
10866
10867         * extents.c (struct extent_at_arg):
10868         * extents.c (decode_extent_at_flag):
10869         * extents.c (extent_at_mapper):
10870         * extents.c (extent_at_bytind):
10871         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10872         * extents.c (Fextents_at): New primitive. [9].
10873         * extents.c (symbol_to_glyph_layout): [9].
10874         Support new primitive `extents-at'.
10875
10876
10877         * extents.c (get_text_property_bytind):
10878         extent_at_bytind has another arg.
10879         [9].
10880
10881         * extents.c (syms_of_extents): New primitive.
10882
10883         * file-coding.c (Fmake_coding_system): [1].
10884         * file-coding.c (subsidiary_coding_system): fix gcc warning
10885         * file-coding.c (syms_of_file_coding): [2].
10886
10887         * fileio.c (Fexpand_file_name):
10888         * fileio.c (Fsysnetunam):
10889         * fileio.c (Ffile_exists_p):
10890         * fileio.c (Ffile_executable_p):
10891         * fileio.c (Fverify_visited_file_modtime):
10892         Clean up GCPROing.
10893
10894         * fileio.c (syms_of_fileio): [2].
10895
10896         * filelock.c (lock_file_1):
10897         * filelock.c (current_lock_owner):
10898         * filelock.c (lock_if_free):
10899         * filelock.c (lock_file):
10900         * filelock.c (unlock_file):
10901         Clean up GCPROing.
10902
10903         * fns.c (concat): Fix gcc warning.
10904
10905         * fns.c (Fmember):
10906         * fns.c (Fold_member):
10907         * fns.c (Fmemq):
10908         * fns.c (Fold_memq):
10909         * fns.c (memq_no_quit):
10910         * fns.c (Fassoc):
10911         * fns.c (Fold_assoc):
10912         * fns.c (Fassq):
10913         * fns.c (Fold_assq):
10914         * fns.c (assq_no_quit):
10915         * fns.c (Frassoc):
10916         * fns.c (Fold_rassoc):
10917         * fns.c (Frassq):
10918         * fns.c (Fold_rassq):
10919         * fns.c (rassq_no_quit):
10920         * fns.c (Fdelete):
10921         * fns.c (Fold_delete):
10922         * fns.c (Fdelq):
10923         * fns.c (Fold_delq):
10924         * fns.c (delq_no_quit):
10925         * fns.c (Fremassoc):
10926         * fns.c (Fremassq):
10927         * fns.c (remassq_no_quit):
10928         * fns.c (Fremrassoc):
10929         * fns.c (Fremrassq):
10930         * fns.c (remrassq_no_quit):
10931         * fns.c (Freverse):
10932         * fns.c (mapcar1):
10933         [1].
10934
10935         * frame-msw.c (mswindows_init_frame_1):
10936         * frame-msw.c (mswindows_delete_frame):
10937         Register popups with dialog code so keyboard traversing works.
10938
10939         * frame-tty.c (tty_raise_frame_no_select): [1].
10940
10941         * frame-x.c:
10942         * frame-x.c (x_set_frame_text_value):
10943         * frame-x.c (x_set_frame_properties):
10944         * frame-x.c (x_create_widgets):
10945         [7].
10946
10947         * frame.c:
10948         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10949
10950         * frame.h (wrap_frame): New.
10951         Macro like wrap_device.
10952
10953         * general.c:
10954         * general.c (SYMBOL):
10955         * general.c (syms_of_general):
10956         Major reorg.  This is now just a wrapper and symbols themselves
10957         are listed in general-slots.h.
10958
10959         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10960         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10961
10962         * glyphs-msw.c (mswindows_native_layout_instantiate):
10963         Add DS_CONTROL so keyboard traversal will work.
10964
10965         * glyphs-widget.c:
10966         * glyphs-widget.c (syms_of_glyphs_widget):
10967         Move some symbols to general-slots.h.
10968
10969         * glyphs-x.c:
10970         * glyphs-x.c (xbm_instantiate_1):
10971         * glyphs-x.c (x_xbm_instantiate):
10972         * glyphs-x.c (x_xface_instantiate):
10973         * glyphs-x.c (autodetect_instantiate):
10974         * glyphs-x.c (cursor_font_instantiate):
10975         * glyphs-x.c (x_update_widget):
10976         * glyphs-x.c (x_widget_instantiate):
10977         * glyphs.c (bitmap_to_lisp_data):
10978         * glyphs.c (pixmap_to_lisp_data):
10979         [7].
10980
10981         * glyphs.c (syms_of_glyphs):
10982         [2].
10983
10984         * gui-x.c:
10985         * gui-x.c (print_widget_value):
10986         * gui-x.c (menu_separator_style_and_to_external):
10987         * gui-x.c (add_accel_and_to_external):
10988         * gui-x.c (button_item_to_widget_value):
10989         * gui-x.c (gui_items_to_widget_values_1):
10990         * gui-x.c (gui_items_to_widget_values):
10991         * gui-x.c (syms_of_gui_x):
10992         * gui-x.c (vars_of_gui_x):
10993         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10994         [9].
10995
10996         * gui-x.h:
10997         Muleize, prototype changes matching gui-x.c.
10998
10999         * gui.c:
11000         * gui.c (separator_string_p):
11001         * gui.c (gui_item_add_keyval_pair):
11002         * gui.c (make_gui_item_from_keywords_internal):
11003         * gui.c (signal_too_long_error):
11004         * gui.c (parse_gui_item_tree_item):
11005         * gui.c (syms_of_gui):
11006         * gui.c (vars_of_gui):
11007         * gui.h:
11008         menu-no-selection-hook moved here (used by MSWin).
11009         Move some symbols to general-slots.h.
11010         [6].
11011         [9].
11012
11013         * insdel.c (get_buffer_pos_char):
11014         * insdel.c (get_buffer_range_char):
11015         Add GC comments.
11016
11017         * keymap.c (keymap_lookup_directly):
11018         * keymap.c (keymap_store):
11019         * keymap.c (ensure_meta_prefix_char_keymapp):
11020         * keymap.c (describe_map):
11021         * keymap.h:
11022         Support new button modifiers.
11023
11024         * lisp-disunion.h (wrap_object):
11025         * lisp-disunion.h (XSETOBJ):
11026         Rename make_obj to wrap_object.
11027
11028         * lisp-union.h:
11029         * lisp-union.h (make_int):
11030         * lisp-union.h (make_char):
11031         Support wrap_object.
11032
11033         * lisp.h:
11034         * lisp.h (LIST_LOOP):
11035         * lisp.h (EXTERNAL_LIST_LOOP):
11036         * lisp.h (LIST_LOOP_2):
11037         * lisp.h (EXTERNAL_LIST_LOOP_1):
11038         * lisp.h (EXTERNAL_LIST_LOOP_2):
11039         * lisp.h (EXTERNAL_LIST_LOOP_3):
11040         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11041         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11042         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11043         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11044         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11045         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11046         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11047         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11048         * lisp.h (struct Lisp_Symbol):
11049         * lisp.h (maybe_continuable_error_with_frob):
11050         Fix up section comments.
11051         Add new types for char to indicate usage.
11052         Delete symbols auto-generated from general-slots.h.
11053         Add prototypes for structured error functions.
11054         Add long comments describing looping macros and change interface
11055         so that lvalues are automatically declared.
11056         Add NO_DECLARE macro in case callers want to declare lvalues
11057         themselves.
11058
11059         * lread.c (read_syntax_error):
11060         * lread.c (continuable_read_syntax_error):
11061         * lread.c (read_structure):
11062         * lread.c (sequence_reader):
11063         * lread.c (read_list_conser):
11064         * lread.c (read_compiled_function):
11065         Rename syntax_error and continuable_syntax_error to avoid clash
11066         with same-named structured error functions.
11067
11068         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11069         * menubar-msw.c (populate_menu_add_item):
11070         * menubar-msw.c (populate_or_checksum_helper):
11071         [5].
11072         [9].
11073
11074         * menubar-x.c:
11075         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11076         Mule-ize whole file.
11077
11078         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11079
11080         * mule-charset.c (Fmake_charset):
11081         * mule-wnnfns.c (Fwnn_set_param):
11082         [1].
11083
11084         * ntproc.c (create_child):
11085         * ntproc.c (Fwin32_set_current_locale):
11086         Add comments portending doom.
11087
11088         * objects-msw.c:
11089         * objects-msw.c (old_font_enum_callback_2):
11090         * objects-msw.c (font_enum_callback_1):
11091         * objects-msw.c (mswindows_enumerate_fonts):
11092         [5].
11093
11094         * objects-x.c:
11095         * objects-x.c (allocate_nearest_color):
11096         * objects-x.c (x_parse_nearest_color):
11097         * objects-x.c (x_initialize_color_instance):
11098         * objects-x.c (x_print_color_instance):
11099         * objects-x.c (x_finalize_color_instance):
11100         * objects-x.c (x_valid_color_name_p):
11101         * objects-x.c (x_initialize_font_instance):
11102         * objects-x.c (x_print_font_instance):
11103         * objects-x.c (valid_x_font_name_p):
11104         * objects-x.c (truename_via_FONT_prop):
11105         * objects-x.c (truename_via_random_props):
11106         * objects-x.c (truename_via_XListFonts):
11107         * objects-x.c (x_font_truename):
11108         * objects-x.c (x_font_instance_truename):
11109         * objects-x.c (x_font_instance_properties):
11110         * objects-x.c (x_list_fonts):
11111         * objects-x.c (x_find_charset_font):
11112         Mule-ize entire file.
11113         [7].
11114
11115         * objects-x.h:
11116         Mule-verify.
11117
11118         * print.c:
11119         * print.c (std_handle_out_external):
11120         * print.c (debug_print_no_newline):
11121         * print.c (syms_of_print):
11122         Output to all debugger kinds in debug-print.
11123         Fix console-output code under MSWin to actually work.
11124
11125         * process-nt.c (send_signal):
11126         * process-nt.c (nt_create_process):
11127         Use newer Unicode macros.
11128
11129         * process-unix.c (unix_create_process):
11130         * process-unix.c (unix_canonicalize_host_name):
11131         * process-unix.c (unix_open_network_stream):
11132         [7].
11133
11134         * scrollbar-x.c:
11135         Mule-verify.
11136
11137         * search.c (syms_of_search):
11138         [2].
11139
11140         * select-msw.c (mswindows_destroy_selection):
11141         Use LIST_LOOP_2.
11142
11143         * select-x.c (symbol_to_x_atom):
11144         [7].
11145
11146         * select.c (syms_of_select):
11147         [2].
11148
11149         * sound.c (Fplay_sound_file):
11150         [7].
11151
11152         * specifier.c:
11153         * specifier.c (decode_specifier_type):
11154         * specifier.c (Fvalid_specifier_locale_type_p):
11155         * specifier.c (check_valid_locale_or_locale_type):
11156         * specifier.c (decode_locale):
11157         * specifier.c (decode_locale_type):
11158         * specifier.c (decode_locale_list):
11159         * specifier.c (check_valid_domain):
11160         * specifier.c (decode_specifier_tag_set):
11161         * specifier.c (Fcanonicalize_tag_set):
11162         * specifier.c (Fdefine_specifier_tag):
11163         * specifier.c (Fspecifier_tag_predicate):
11164         * specifier.c (check_valid_inst_list):
11165         * specifier.c (check_valid_spec_list):
11166         * specifier.c (decode_how_to_add_specification):
11167         * specifier.c (check_modifiable_specifier):
11168         * specifier.c (specifier_add_spec):
11169         * specifier.c (boolean_validate):
11170         * specifier.c (display_table_validate):
11171         [9].
11172
11173         * specifier.c (syms_of_specifier):
11174         Move some symbols to general-slots.h.
11175         [2].
11176
11177         * symbols.c:
11178         * symbols.c (Fmapatoms):
11179         * symbols.c (Fapropos_internal):
11180         Add GCPROs.
11181
11182         * symbols.c (set_default_buffer_slot_variable):
11183         * symbols.c (set_default_console_slot_variable):
11184         [1].
11185
11186         * symbols.c (defsymbol_massage_name_1):
11187         * symbols.c (defkeyword_massage_name):
11188         * symbols.c (deferror_1):
11189         * symbols.c (deferror):
11190         * symbols.c (deferror_massage_name_and_message):
11191         * symeval.h:
11192         * symeval.h (DEFSYMBOL):
11193         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11194
11195         * symbols.c (syms_of_symbols):
11196         [2].
11197
11198         * symsinit.h:
11199         * symsinit.h (init_win32): New.
11200         Also new is syms_of_dialog_mswindows.
11201
11202         * syswindows.h:
11203         Add new Unicode macros, missing Cygwin wide-char functions,
11204         convenience conversion macros for Qmswindows_tstr, macros for
11205         encapsulating required MSWin <-> Cygwin filename conversions,
11206         prototype for dynamically-extracted (not in NT 3.51) functions.
11207
11208         * toolbar-x.c:
11209         Mule-verify.
11210
11211         * tooltalk.c (Fadd_tooltalk_message_arg):
11212         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11213         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11214         [7].
11215
11216         * tooltalk.c (syms_of_tooltalk):
11217         [2].
11218
11219         * unexnt.c:
11220         * unexnt.c (unexec):
11221         Fix up headers, declaration of unexec() to be more standard.
11222
11223 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11224
11225         * offix.h: Revert change to guard macros - they're used in offix.c!
11226
11227 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11228
11229         * lisp.h: Defsubred Fdelete.
11230
11231         * console-msw.h:  (msprinter_default_printer): Added.
11232
11233         * console-msw.c (msprinter_canonicalize_console_connection):
11234         (msprinter_canonicalize_device_connection): Added.
11235
11236         * device-msw.c (msprinter_default_printer):
11237         (Fmswingows_get_default_printer):
11238         (signal_enum_priner_error):
11239         (Fmswingows_printer_list): Added.
11240
11241 2000-07-19  Martin Buchholz <martin@xemacs.org>
11242
11243         * XEmacs 21.2.35 is released.
11244
11245 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11246
11247         * select-x.c (x_handle_selection_request):
11248         Text selected in xemacs and pasted into xterm failed to appear.
11249         Spelling fixes and cosmetic changes.
11250
11251 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11252
11253         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11254         XEmacs frame (fix for doubling chars in dialog boxes).
11255
11256 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11257
11258         * select.c (select_convert_in, select_convert_out):
11259         Don't call intern() every time.
11260
11261         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11262         * select.c (vars_of_select): Initialise them.
11263
11264 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11265
11266         * select.c (selection-coercible-types): New.
11267
11268         * select.c (own-selection-internal):
11269         * select.c (get-selection-internal):
11270         MULE bug fix - these should default to COMPOUND_TEXT and not
11271         STRING for MULE. I think.
11272
11273         * select.c (select_convert_out): Use selection-coercible-types
11274         to find types that we can attempt to perform coercions on.
11275
11276 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11277
11278         * mule-wnnfns.c:
11279         * mule-canna.c:
11280         Add coding: cookie to identify encoding.
11281
11282         * mule-canna.c (CANNA_mode_keys): make static.
11283         Use proper prototypes, even for functions of no arguments.
11284         Remove external prototype for Fding().
11285
11286         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11287
11288         * select.c (syms_of_select): Add missing DEFSUBR.
11289
11290 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11291
11292         * select.c (get_selection_internal, own_selection_internal):
11293         Make the type default to STRING, rather than placing a nil type
11294         into Vselection_alist.
11295
11296 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11297
11298         * gpmevent.c (tty_selection_exists_p):
11299         * gpmevent.c (tty_own_selection):
11300         Updated parameter lists.
11301
11302 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11303
11304         * select.h (selection-alist): Removed declaration.
11305
11306         * select.h (get_local_selection):
11307         * select.c (get_local_selection):
11308         Made static.
11309
11310         * select.h (convert_selection): Removed declaration.
11311         * select.c (convert_selection): Removed.
11312         This function belongs in Lisp.
11313
11314         * select.h (select_convert_in): Declare.
11315         * select.h (select_convert_out): Declare.
11316         * select.c (select_convert_in): New.
11317         * select.c (select_convert_out): New.
11318         New conversion functions for other files to call.
11319
11320         * select.h (select_notify_buffer_kill): Declare.
11321         * select.c (select_notify_buffer_kill): New.
11322         New functions that get called from kill-buffer.
11323
11324         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11325         X-specific lisp code.
11326
11327         * select.h: Declare some of the lisp-visible functions for
11328         external use.
11329
11330         * select.c (clean_local_selection_data): Removed. This was
11331         a disgusting function, and previously should have been in
11332         select-x.c in any case. The functionality is now provided
11333         in select-convert-from-integer (select.el).
11334
11335         * select.c (available-selection-types): Fixed stupidity where
11336         INTEGER and ATOM got added twice. Also add STRING when we see an
11337         extent.
11338
11339         * select.c (get-selection-internal): Removed symbol stripping. No
11340         longer causes conversion when data comes from the internal cache.
11341
11342         * select.c (syms_of_select): Added new functions.
11343
11344         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11345         error checking - previously this called abort!
11346
11347         * select-x.c (x_own_selection): Changed comment.
11348
11349         * select-x.c (x_handle_selection_request): Use select_convert_out.
11350         Don't mess with selection-alist; it's an internal variable of select.c.
11351
11352         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11353
11354         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11355         rather than messing with selection-alist.
11356
11357         * select-msw.c (mswindows_get_foreign_selection):
11358         Use TO_INTERNAL_FORMAT rather than hacking.
11359
11360 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11361
11362         * process-unix.c (unix_open_multicast_group):
11363         (unix_open_multicast_group): Remove useless casts.
11364
11365 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11366
11367         * sound.c (Fplay_sound): Fix `unused variable' warning.
11368
11369         * emacs.c (main): Use correct type for _environ on SCO5.
11370
11371 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11372
11373         * console.h (own_selection_method):
11374         * console.h (selection_exists_p_method):
11375         * console.h (available_selection_types_method): New.
11376         * console.h (register_selection_data_type_method): New.
11377         * console.h (selection_data_type_name): New.
11378
11379         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11380         function & alist to track GlobalAlloc()'d handles that need
11381         releasing when the clipboard data gets replaced or emptied.
11382
11383         * event-msw.c (mswindows_wnd_proc): Call it.
11384
11385         * lisp.h, general.c (Qappend): New symbol representing a
11386         `how-to-add' mode.
11387
11388         * select.c (own-selection-internal):
11389         * select.c (selection-exists-p):
11390         * select.c (available-selection-types): New.
11391         * select.c (register-selection-data-type): New.
11392         * select.c (selection-data-type-name): New.  New functions to deal
11393         with device-specific selection data formats.
11394         * select.c (selection-converter-out-alist): Renamed.
11395         * select.c (selection-converter-in-alist): New.
11396         * select.c (selection-appender-alist): New.  Added new alists.
11397         * select.c (syms_of_select, vars_of_select): Added new symbols &
11398         variables.
11399         * select.c (get_local_selection): Split.
11400         * select.c: Removed spurious type checking - selections may now be
11401         of any type, not just strings.
11402         * select.c (own-selection-internal):
11403
11404         * select.h, select.c (convert_selection): New. Created
11405         convert_selection() function based on get_local_selection().
11406         * select.h, select.c (QCF_*): New symbols representing mswindows
11407         clipboard formats.
11408         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11409         symbols representing `how-to-add' modes.
11410
11411         * select-msw.c (x_sym_p): New.
11412         * select-msw.c (symbol_to_ms_cf): New.
11413         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11414         symbols & clipboard formats. Can also handle string names.
11415         * select-msw.c (mswindows_own_selection):
11416         * select-msw.c (mswindows_selection_exists_p):
11417         Added `data-type' parameter. Use it.
11418         * select-msw.c (mswindows_available_selection_types): New.
11419         * select-msw.c (mswindows_register_selection_data_type): New.
11420         * select-msw.c (mswindows_selection_data_type_name): New.
11421         * select-msw.c (mswindows_own_selection):
11422         * select-msw.c (mswindows_get_foreign_selection):
11423         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11424         * select-msw.c (console_create_select_mswindows): Added new methods.
11425         * select-msw.c (mswindows_destroy_selection): New.
11426         * select-msw.c (Vhandle_alist): New list.
11427         * select-msw.c (mswindows_own_selection):
11428
11429         * select-x.c (x_own_selection):
11430         * select-x.c (x_selection_exists_p):
11431         * select-x.c: Added some comments about maybe using new
11432         functionality.
11433         * select-x.c (x_own_selection):
11434
11435         * specifier.c: Remove definition of Qappend (now in general.c)
11436         * specifier.c (syms_of_specifier): Remove Qappend.
11437
11438 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11439
11440         * config.h.in: Add socklen_t.
11441
11442         * s/decosf4-0.h: No special compiler flags needed or desired.
11443         In particular, undefine _BSD for DEC OSF 4.0.
11444
11445 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11446
11447         * redisplay-msw.c (msprinter_frame_output_end): Added.
11448         (console_type_create_redisplay_mswindows): Referred the above.
11449
11450         * frame.c (setup_frame_without_minibuffer): Do not create a
11451         default minibuffer frame on a printer device.
11452
11453         * frame-msw.c (apply_dc_geometry): Added.
11454         (msprinter_start_page):
11455         (msprinter_init_frame_3):
11456         (msprinter_eject_page): Use it.
11457
11458         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11459         and removed residual duplex and orientation properties.
11460
11461 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11462
11463         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11464
11465         * unexalpha.c: Remove system prototypes from C sources!
11466
11467 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11468
11469         * eval.c: Remove references to M-x edit-options in DEFUNs for
11470         `defvar' and `defconst'.
11471
11472 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11473
11474         * config.h.in: Remove SMART_INCLUDE hackery.
11475
11476         PostgreSQL hacking:
11477         * config.h.in: Don't use SMART_INCLUDE.
11478
11479         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11480         * inline.c: Simply #include "postgresql.h"
11481         * postgresql.c:
11482         - Don't use SMART_INCLUDE
11483         - Use simply "const".
11484         - Use standard doc string conventions.
11485         - Use correct type for result of PQstatus.
11486
11487 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11488
11489         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11490
11491         C++ compilation changes.
11492         * config.h.in (EXTERN_C): Define.
11493         * config.h.in (not): This is also a C++ keyword.
11494         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11495         * cm.c: Use EXTERN_C.
11496         * redisplay-tty.c: Use EXTERN_C.
11497         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11498
11499 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11500
11501         * general.c: Remove duplicate definition for Qfunction.
11502
11503 2000-07-08  Ben Wing  <ben@xemacs.org>
11504
11505         * device-msw.c (msprinter_init_device):
11506         * device-msw.c (sync_printer_with_devmode):
11507         * device-msw.c (handle_devmode_changes):
11508         * device-msw.c (print_dialog_worker):
11509         * device-msw.c (Fmsprinter_apply_settings):
11510         * device-msw.c (hash_devmode):
11511         * device-msw.c (Fmsprinter_settings_despecialize):
11512         use Qmswindows_tstr, not Qctext.
11513
11514         * vm-limit.c (check_memory_limits):
11515         avoid infinite loop printing warning messages.
11516
11517 2000-07-05  Craig Lanning  <lanning@scra.org>
11518
11519         * Makefile.in.in: Add support for including the Windows resources
11520         when building with the cygwin and mingw targets.
11521
11522         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11523         not set or not correct.
11524         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11525         (init_initial_directory): Don't try to use $PWD on the
11526         WIN32_NATIVE target.
11527
11528         * s\cygwin32.h:
11529         [[Add -mwindows to eliminate console window.]] not required --ben
11530         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11531         (MAIL_USE_POP): removed; now handled by configure.
11532
11533         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11534         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11535         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11536         (MAIL_USE_POP): removed; now handled by configure.
11537         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11538         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11539         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11540         constant string.
11541         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11542         up from <winsock.h> via systime.h.
11543         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11544         (getpagesize): from Dan Holmsand, added.
11545         Added #endif which was left dangling by Ben's mega patch; added
11546         comment to help prevent this in the future.
11547
11548         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11549
11550 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11551
11552         * console-msw.h (struct mswindows_device): Removed unnecessary
11553         cached device geometry values.
11554         Added update_tick and an accessor macro.
11555         (Lisp_Devmode): Added lrecord declaration.
11556         (struct msprinter_device): Contain devmode as a Lisp object.
11557         Added mswindows_get_selected_frame_hwnd();
11558
11559         * console.h (struct console_methods): Indentation nitpicking.
11560
11561         * device-msw.c (mswindows_init_device): Do not initialize geometry
11562         cache. Initialize update tick.
11563         (mswindows_device_system_metrics): Ask the device for its geometry.
11564         (global_free_2_maybe):
11565         (devmode_to_hglobal):
11566         (handle_printer_changes):
11567         (ensure_not_printing):
11568         (print_dialog_worker):
11569         (Fmsprinter_print_setup_dialog):
11570         (Fmsprinter_print_dialog):
11571         (plist_get_margin):
11572         (plist_set_margin):
11573         (Fmsprinter_page_setup_dialog): Added functions.
11574         (sync_printer_with_devmode):
11575         (handle_devmode_changes):
11576         (Fmsprinter_get_settings):
11577         (Fmsprinter_select_settings):
11578         (Fmsprinter_apply_settings):
11579         (allocate_devmode):
11580         (Fmsprinter_settings_copy):
11581         (Fmsprinter_settings_despecialize):
11582         (print_devmode):
11583         (finalize_devmode):
11584         (equal_devmode):
11585         (hash_devmode): Added functions
11586         (syms_of_device_mswindows): Init devmode lrecord class.
11587
11588         * device.h: Added an exfun for find-device.
11589
11590         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11591         geometry; although, recreate the device compatible DC.
11592
11593         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11594         (msprinter_init_frame_3):
11595         (msprinter_frame_property):
11596         (msprinter_internal_frame_property_p):
11597         (msprinter_frame_properties):
11598         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11599         print job properties (will move to device settings).
11600
11601         * lisp.h: Added symbols.
11602
11603         * general.c (syms_of_general): Declared them.
11604
11605         * hash.c (string_hash): Added.
11606
11607         * lrecord.h (lrecord_type): Added devmode lrecord type.
11608
11609 2000-07-02  Mike Sperber <mike@xemacs.org>
11610
11611         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11612         FreeBSD 4.0.
11613
11614 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11615
11616         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11617         integer.
11618
11619 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11620
11621         * data.c (Fstring_to_number): Don't recognize floating point if
11622         base is not 10.
11623
11624 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11625
11626         * glyphs-widget.c (tab_control_query_geometry):
11627         (widget_query_geometry):
11628         (button_query_geometry):
11629         * glyphs.c (text_query_geometry):
11630         Enforce type correctness.
11631
11632 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11633
11634         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11635         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11636
11637 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11638
11639         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11640         conflicts with gcc's fixincluded version of FOO.h.
11641
11642         * glyphs.h (image_instance_geometry): Remove trailing `,'
11643
11644 2000-06-08  Mike Alexander  <mta@arbortext.com>
11645
11646         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11647         (shove_thread): Don't write the same output twice
11648         (make_ntpipe_output_stream): Increase priority of shove thread
11649         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11650         chance to run
11651         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11652         it.
11653
11654 2000-06-12  Ben Wing  <ben@xemacs.org>
11655
11656         * s\mingw32.h (sigset):
11657         * s\windowsnt.h (sigset):
11658         rename msw_ to mswindows_ for consistency with general convention.
11659
11660 2000-06-12  Ben Wing  <ben@xemacs.org>
11661
11662         * console-msw.c:
11663         * console-msw.c (mswindows_get_console_hwnd):
11664         * console-msw.c (mswindows_ensure_console_allocated):
11665         * console-msw.c (mswindows_hide_console):
11666         * console-msw.c (mswindows_show_console):
11667         * console-msw.c (mswindows_ensure_console_buffered):
11668         * console-msw.c (mswindows_output_console_string):
11669         * console-msw.c (mswindows_windows9x_p):
11670         * console-msw.h:
11671         * device-msw.c (mswindows_get_workspace_coords):
11672         * device-msw.c (mswindows_device_system_metrics):
11673         * dialog-msw.c (mswindows_popup_dialog_box):
11674         * event-msw.c (mswindows_wnd_proc):
11675         * frame-msw.c (mswindows_size_frame_internal):
11676         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11677         * menubar-msw.c (displayable_menu_item):
11678         * menubar-msw.c (mswindows_char_is_accelerator):
11679         * nt.c:
11680         * nt.c (mswindows_sigset):
11681         * nt.c (mswindows_sigrelse):
11682         * nt.c (mswindows_sigpause):
11683         * nt.c (mswindows_raise):
11684         * nt.c (timer_proc):
11685         * ntproc.c:
11686         * ntproc.c (find_child_console):
11687         * ntproc.c (sys_kill):
11688         * print.c:
11689         * print.c (std_handle_out_external):
11690         * process-nt.c (find_child_console):
11691         * process-nt.c (send_signal_the_95_way):
11692         * process-nt.c (ensure_console_window_exists):
11693         * process-nt.c (nt_create_process):
11694         * syssignal.h:
11695         rename msw_ to mswindows_ for consistency with general convention.
11696
11697         * emacs.c:
11698         * dumper.c:
11699         include nt.h, not syswindows.h.
11700
11701         * nt.c (mswindows_fstat):
11702         * nt.c (mswindows_stat):
11703         prefix mswindows_ instead of attempting to directly override the
11704         library functions.  fix declarations.
11705
11706         * nt.h:
11707         include syswindows.h.  move some sysdep.h stuff here.
11708
11709         * ntheap.h:
11710         include syswindows.h, not <windows.h>.
11711
11712         * ntplay.c:
11713         clean up headers.
11714
11715         * sysdep.c:
11716         clean up headers.
11717
11718         * sysdep.c (sys_fstat):
11719         * sysdep.c (sys_stat):
11720         call mswindows versions when appropriate.
11721
11722         * sysdep.h:
11723         move mswin decls to nt.h.
11724
11725         * syswindows.h:
11726         add long comment describing appropriate use of the various windows
11727         headers.
11728
11729 2000-06-11  Ben Wing  <ben@xemacs.org>
11730
11731         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11732
11733 2000-06-10  Ben Wing  <ben@xemacs.org>
11734
11735         * Makefile.in.in (release):
11736         Correction to make sure xemacs.exe always dumped when correct.
11737
11738         * alloca.c:
11739         * balloon_help.c:
11740         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11741
11742         * buffer.c (set_buffer_internal):
11743         [[[[2]]]]: Remove HAVE_FEP code.
11744
11745         * buffer.c (init_initial_directory):
11746         [3].
11747
11748         * bytecode.c:
11749         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11750         individual files.
11751
11752         * callproc.c:
11753         * callproc.c (call_process_cleanup):
11754         * callproc.c (Fold_call_process_internal):
11755         * callproc.c (child_setup):
11756         * callproc.c (getenv_internal):
11757         * callproc.c (init_callproc):
11758         * callproc.c (vars_of_callproc):
11759         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11760         __CYGWIN32__ -> CYGWIN.
11761         DOS_NT -> WIN32_NATIVE.
11762         Remove MSDOS support/references, converting to WIN32_NATIVE
11763           where correct.
11764         __MINGW32__ -> MINGW.
11765         Fix windows.h includes.
11766         Remove bogus HAVE_NTGUI.
11767
11768         * config.h.in:
11769         [2].
11770
11771         * console-msw.c:
11772         mswindows_message_outputted added for use in allowing startup
11773         errors on the console to be seen.
11774
11775         * console-msw.c (msw_ensure_console_allocated):
11776         * console-msw.c (msw_output_console_string):
11777         * console-msw.c (DHEADER):
11778         * console-msw.c (DOPAQUE_DATA):
11779         * console-msw.c (DEVENT):
11780         * console-msw.c (DCONS):
11781         * console-msw.c (DCONSCDR):
11782         * console-msw.c (DSTRING):
11783         * console-msw.c (DVECTOR):
11784         * console-msw.c (DSYMBOL):
11785         * console-msw.c (DSYMNAME):
11786         Fix warnings.
11787
11788         * console-stream.c (stream_init_console):
11789         Fix text/binary problems.
11790
11791         * device-msw.c:
11792         * device-msw.c (mswindows_finish_init_device):
11793         * device-msw.c (mswindows_delete_device):
11794         [1].
11795
11796         * device.c (handle_asynch_device_change):
11797         [3].
11798
11799         * dgif_lib.c:
11800         * dgif_lib.c (DGifOpenFileName):
11801         * dgif_lib.c (DGifOpenFileHandle):
11802         * dgif_lib.c (DGifGetLine):
11803         * dgif_lib.c (DGifGetPixel):
11804         Added config.h/lisp.h, fix up includes.
11805         [1].
11806
11807         * dired-msw.c:
11808         [4].
11809
11810         * dired.c:
11811         * dired.c (file_name_completion):
11812         * dired.c (Ffile_attributes):
11813         * dired.c (syms_of_dired):
11814         [1].
11815
11816         * dumper.c:
11817         * dumper.c (pdump_file_unmap):
11818         * dumper.c (pdump_load):
11819         [1].
11820
11821         * editfns.c:
11822         * editfns.c (Ftemp_directory):
11823         * editfns.c (user_login_name):
11824         * editfns.c (Fuser_real_login_name):
11825         * editfns.c (get_home_directory):
11826         [1].
11827
11828         * elhash.c (finish_marking_weak_hash_tables):
11829         [[[[5]]]]: Fix GCC warnings.
11830
11831         * emacs.c:
11832         * emacs.c (mswindows_handle_hardware_exceptions):
11833         * emacs.c (make_arg_list_1):
11834         * emacs.c (main_1):
11835         * emacs.c (Fkill_emacs):
11836         * emacs.c (Fdump_emacs):
11837         [1].
11838         Fix problems with nested crashes, add long comment.
11839
11840         * event-Xt.c (init_event_Xt_late):
11841         [1].
11842
11843         * event-msw.c:
11844         * event-msw.c (mswindows_dde_callback):
11845         * event-msw.c (mswindows_handle_sticky_modifiers):
11846         * event-msw.c (mswindows_wnd_proc):
11847         [1].
11848         [5].
11849
11850         * events.c (character_to_event):
11851         [1].
11852
11853         * fileio.c:
11854         * fileio.c (Ffile_name_directory):
11855         * fileio.c (Ffile_name_nondirectory):
11856         * fileio.c (directory_file_name):
11857         * fileio.c (Fexpand_file_name):
11858         * fileio.c (Fsubstitute_in_file_name):
11859         * fileio.c (Ffile_name_absolute_p):
11860         * fileio.c (check_executable):
11861         * fileio.c (Ffile_readable_p):
11862         * fileio.c (Ffile_accessible_directory_p):
11863         * fileio.c (Ffile_modes):
11864         * fileio.c (Funix_sync):
11865         * fileio.c (vars_of_fileio):
11866         [1]. [4].
11867
11868         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11869
11870         Expand getdefdir defn.
11871         Fix bogus rename() comment.
11872
11873         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11874         to use standard XEmacs include files, e.g. sysfile.h, rather
11875         than system-specific includes.
11876
11877         * fns.c:
11878         * fns.c (Fsubseq):
11879         [5]. [6].
11880
11881         * frame.c (vars_of_frame):
11882         [1].
11883
11884         * getloadavg.c:
11885         * getloadavg.c (getloadavg):
11886         [1]. [6].
11887         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11888         (We don't use it elsewhere in the code; just add a comment.)
11889
11890         * gif_io.c:
11891         [6].
11892         Add config.h.
11893
11894         * glyphs-msw.c:
11895         * glyphs-msw.c (mswindows_resource_instantiate):
11896         [1].
11897
11898         * glyphs-x.c (x_native_layout_instantiate):
11899         [5].
11900
11901         * gui-msw.c (Fmswindows_shell_execute):
11902         [1].
11903
11904         * insdel.c:
11905         [4].
11906
11907         * lisp.h:
11908         [4]. [5].
11909
11910         * lread.c (locate_file_in_directory_mapper):
11911         [1].
11912
11913         * lstream.c:
11914         [4].
11915
11916         * mem-limits.h:
11917         * mem-limits.h (get_lim_data):
11918         [1].
11919
11920         * menubar-msw.c:
11921         [4].
11922
11923         * ndir.h:
11924         [1].
11925
11926         * nt.c:
11927         * nt.c (getwd):
11928         * nt.c (closedir):
11929         * nt.c (rva_to_section):
11930         * nt.c (mswindows_executable_type):
11931         [1]. [6].
11932         Fix closedir() defn.
11933
11934         * nt.h:
11935         [[[[8]]]]: *_OK defs moved to sysfile.h.
11936
11937         * ntproc.c:
11938         [6]. [7].
11939
11940         * objects-x.c:
11941         [4].
11942
11943         * print.c:
11944         * print.c (std_handle_out_external):
11945         [1]. [4].
11946
11947         * process-nt.c:
11948         * process-nt.c (nt_create_process):
11949         [6].
11950         try to fix process quoting somewhat.
11951
11952         * process-unix.c (unix_create_process):
11953         [1].
11954
11955         * process.c:
11956         * process.c (vars_of_process):
11957         Add Vnull_device.
11958
11959         * process.h:
11960         [1].
11961
11962         * realpath.c:
11963         * realpath.c (xrealpath):
11964         [1].
11965
11966         * redisplay-tty.c (init_tty_for_redisplay):
11967         [3].
11968
11969         * redisplay.c:
11970         [4]. [6].
11971
11972         * scrollbar-msw.c:
11973         [4].
11974
11975         * sheap.c:
11976         * sheap.c (more_static_core):
11977         * sheap.c (report_sheap_usage):
11978         [5]. [6].
11979
11980         * signal.c:
11981         * signal.c (alarm_signal):
11982         [1]. [6].
11983
11984         * sound.c:
11985         [6].
11986
11987         * strftime.c:
11988         * strftime.c (zone_name):
11989         [1]. [5].
11990
11991         * symsinit.h (init_sunpro):
11992         [1].
11993
11994         * syscommctrl.h:
11995         commctrl.h not in Cygwin b20.1.
11996
11997         * sysdep.c:
11998         * sysdep.c (endif):
11999         * sysdep.c (sys_subshell):
12000         * sysdep.c (init_baud_rate):
12001         * sysdep.c (emacs_get_tty):
12002         * sysdep.c (emacs_set_tty):
12003         * sysdep.c (tty_init_sys_modes_on_device):
12004         * sysdep.c (init_system_name):
12005         * sysdep.c (sys_open):
12006         * sysdep.c (interruptible_open):
12007         * sysdep.c (sys_fopen):
12008         * sysdep.c (sys_mkdir):
12009         * sysdep.c (sys_rename):
12010         * sysdep.c (get_process_times_1):
12011         [1]. [6].
12012
12013         * sysdep.h:
12014         [1].
12015
12016         * sysdir.h:
12017         * sysdir.h (DIRENTRY_NONEMPTY):
12018         [1]. [6].
12019
12020         * sysdll.c (dll_init):
12021         * sysdll.h:
12022         [1].
12023
12024         * sysfile.h:
12025         [1]. [6]. [8].
12026         added text/binary defs.
12027
12028         * sysfloat.h:
12029         [1].
12030
12031         * sysproc.h:
12032         * sysproc.h (EDESTADDRREQ):
12033         * sysproc.h (poll_fds_for_input):
12034         [1]. [6].
12035
12036         * syspwd.h:
12037         [6].
12038
12039         * syssignal.h:
12040         [1].
12041
12042         * systime.h:
12043         [1]. [6].
12044
12045         * systty.h:
12046         [1].
12047
12048         * syswindows.h:
12049         [1].
12050         Always define WIN32_LEAN_AND_MEAN.
12051
12052         * unexcw.c (unexec):
12053         [5].
12054
12055         * unexec.c:
12056         * unexec.c (copy_text_and_data):
12057         * unexec.c (adjust_lnnoptrs):
12058         [1].
12059
12060         * unexnt.c:
12061         * unexnt.c (_start):
12062         [1].
12063
12064 2000-06-07  Ben Wing  <ben@xemacs.org>
12065
12066         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12067         was used only as a model.  We've long since extracted any useful
12068         logic or code out of this. (I just did an exhaustive search.)
12069
12070         * s\msdos.h: Removed.
12071
12072         * s\windows95.h: Removed.
12073
12074 2000-06-10  Ben Wing  <ben@xemacs.org>
12075
12076         * s\cygwin32.h:
12077         [1]. [5].
12078         Don't use extern with fun defs.
12079
12080         * s\mingw32.h:
12081         [1]. [7].
12082         Remove nt\inc include.
12083         Remove getdisk, getdefdir. (The former is unused, the latter
12084         expanded in fileio.h.)
12085
12086         * s\windowsnt.h:
12087         * s\windowsnt.h (WIN32_NATIVE):
12088         * s\windowsnt.h (HAVE_STRCASECMP):
12089         [1]. [7].
12090         Add long comment about preprocessor changes.
12091         Remove getdisk, getdefdir. (The former is unused, the latter
12092         expanded in fileio.h.)
12093
12094 2000-06-10  Ben Wing  <ben@xemacs.org>
12095
12096         * m\arm.h:
12097         * m\delta.h:
12098         * m\intel386.h:
12099         * m\sequent.h:
12100         * m\template.h:
12101         * m\windowsnt.h:
12102         [1].
12103         Remove bogus/unused NO_SOCK_SIGIO.
12104
12105 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12106
12107         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12108         not an Emchar.
12109
12110 2000-06-04  Mike Sperber <mike@xemacs.org>
12111
12112         * casetab.c (set_case_table): For `set-standard-case-table',
12113         actually deposit the new case tables where the rest of XEmacs can
12114         see them.
12115
12116 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12117
12118         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12119
12120 2000-06-05  Ben Wing  <ben@xemacs.org>
12121
12122         * callproc.c (child_setup): Don't do close_load_descs() under
12123         MS Windows.  Put in a comment explaining why.
12124
12125 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12126
12127         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12128         Toolkit shell" which breaks `kill-compilation' on Windows NT
12129         native, retaining STDERR handling improvements.
12130
12131 2000-06-01  Andreas Jaeger  <aj@suse.de>
12132
12133         * s/s390.h: Support for S390, based on a patch by Martin
12134         Schwidefsky <schwidefsky@de.ibm.com>.
12135
12136 2000-05-30  Andy Piper  <andy@xemacs.org>
12137
12138         * window.c (allocate_window):
12139         (make_dummy_parent):
12140         (Fset_window_configuration): use new hashtable type.
12141
12142         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12143         (struct image_instantiator_methods):
12144         (struct Lisp_Image_Instance): make instance geometry signed.
12145
12146         * glyphs.c (instantiate_image_instantiator):
12147         (image_instance_query_geometry):
12148         (image_instance_layout):
12149         (image_instance_layout):
12150         (query_string_geometry):
12151         (text_query_geometry):
12152         (image_instantiate):
12153         (image_instantiate):
12154         (cache_subwindow_instance_in_frame_maybe):
12155         (subwindow_query_geometry): make instance geometry signed.
12156
12157         * glyphs-widget.c (widget_query_geometry):
12158         (widget_layout):
12159         (button_query_geometry):
12160         (tree_view_query_geometry):
12161         (tab_control_query_geometry):
12162         (layout_query_geometry):
12163         (layout_layout):
12164         (native_layout_layout): make instance geometry signed.
12165
12166 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12167
12168         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12169         constant.
12170
12171         * general.c (syms_of_general): Add Qfull_assoc symbol.
12172
12173         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12174         correctly.
12175         (decode_weak_list_type): Decode full-assoc type.
12176         (encode_weak_list_type): Encode full-assoc type.
12177         (Fmake_weak_list): Update doc string.
12178
12179 2000-05-30  Andy Piper  <andy@xemacs.org>
12180
12181         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12182
12183         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12184         (decode_hash_table_weakness): ditto.
12185         (Fhash_table_weakness): ditto.
12186         (Fhash_table_type): ditto.
12187         (finish_marking_weak_hash_tables): ditto.
12188         (hash_table_weakness_validate): ditto.
12189         (syms_of_elhash): ditto.
12190
12191 2000-05-28  Martin Buchholz <martin@xemacs.org>
12192
12193         * XEmacs 21.2.34 is released.
12194
12195 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12196
12197         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12198         start cache.
12199         (updating_line_start_cache): Gone.
12200         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12201         generic code to force a minimum of 1 line laid out in the
12202         CMOTION_DISP case.
12203
12204 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12205
12206         * glyphs.c (instantiate_image_instantiator): Check for initialized
12207         height & width no longer special cases IMAGE_NOTHING.
12208         (nothing_instantiate): Set height and width of instance.
12209
12210 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12211
12212         * unexelf.c (unexec): Search for ".data" section.
12213         Initialize new_data2_offset from old_data_index.
12214         Remove redundant check for ElfW.
12215
12216 2000-05-23  Andy Piper  <andy@xemacs.org>
12217
12218         * glyphs.c (get_image_instantiator_governing_domain): allow more
12219         specific domains as the governing domain rather than expecting an
12220         exact match. This fixes problems with layouts.
12221
12222 2000-05-22  Andy Piper  <andy@xemacs.org>
12223
12224         * redisplay-output.c (compare_runes): check for non-images
12225
12226         * glyphs.c (set_glyph_dirty_p): ditto.
12227         (update_glyph_cachel_data): ditto.
12228
12229         * glyphs-widget.c (layout_post_instantiate): ditto.
12230         (layout_post_instantiate): ditto.
12231
12232         * event-msw.c (mswindows_wnd_proc): warning removal.
12233
12234 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12235
12236         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12237
12238         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12239
12240         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12241
12242         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12243         (mswindows_executable_type): mingw32 now has enough headers for
12244         this to work.
12245
12246 2000-05-20  Andy Piper  <andy@xemacs.org>
12247
12248         * console-msw.c (mswindows_output_last_error): ; -> ,
12249
12250 2000-05-12  Andy Piper  <andy@xemacs.org>
12251
12252         * console-msw.c (FROB): compare ints with ints.
12253
12254 2000-05-11  Andy Piper  <andy@xemacs.org>
12255
12256         * glyphs-x.c (x_finalize_image_instance): make minimal build
12257         happy.
12258
12259 2000-05-20  Ben Wing  <ben@xemacs.org>
12260
12261         * event-Xt.c:
12262         * event-Xt.c (vars_of_event_Xt):
12263         move modifier-keys-are-sticky to event-stream.c.
12264
12265         * event-msw.c:
12266         * event-msw.c (mswindows_enqueue_mouse_button_event):
12267         * event-msw.c (key_needs_default_processing_p):
12268         * event-msw.c (XEMSW_LCONTROL):
12269         * event-msw.c (mswindows_handle_sticky_modifiers):
12270         * event-msw.c (FROB):
12271         * event-msw.c (clear_sticky_modifiers):
12272         * event-msw.c (output_modifier_keyboard_state):
12273         * event-msw.c (output_alt_keyboard_state):
12274         * event-msw.c (mswindows_wnd_proc):
12275         * event-msw.c (mswindows_modifier_state):
12276         * event-msw.c (emacs_mswindows_handle_magic_event):
12277         implement sticky modifiers.
12278
12279         * event-stream.c:
12280         * event-stream.c (vars_of_event_stream):
12281         move modifier-keys-are-sticky here.
12282
12283         * lisp.h:
12284         add CHECK_FUNCTION.
12285
12286         * rangetab.c:
12287         implement map-range-table.
12288
12289
12290 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12291
12292         * redisplay-tty.c (reset_tty_modes):
12293         (tty_redisplay_shutdown): Adjust argument type to
12294         tty_frame_output_end.
12295
12296 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12297
12298         * eval.c (Fbacktrace): Don't output a line with only right
12299         parenthesis.
12300
12301 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12302
12303         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12304         (Fpq_reset_poll): Ditto.
12305
12306 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12307
12308         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12309
12310 2000-05-16  Ben Wing  <ben@xemacs.org>
12311
12312         * buffer.c:
12313         * buffer.c (dfc_convert_to/from_internal_format):
12314         * buffer.c (reinit_vars_of_buffer):
12315         Fix conversion functions to allow reentrancy.
12316
12317         * console-msw.c:
12318         * console-msw.c (mswindows_output_last_error):
12319         New fun, generally useful -- output a human-readable
12320         version of GetLastError() on the console.
12321
12322         * console-msw.h:
12323         * console-msw.h (struct mswindows_frame):
12324         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12325
12326         * console-stream.c (stream_output_begin):
12327         * console-stream.c (stream_output_end):
12328         * console-stream.c (stream_output_vertical_divider):
12329         * console-stream.c (stream_clear_region):
12330         * console-stream.c (stream_flash):
12331         * console-stream.c (console_type_create_stream):
12332         Delete blank stream methods, not needed.
12333
12334         * console.h (struct console_methods):
12335         Split begin/end methods into window and frame.
12336
12337         * event-msw.c:
12338         * event-msw.c (mswindows_handle_paint):
12339         * event-msw.c (output_alt_keyboard_state):
12340         * event-msw.c (mswindows_wnd_proc):
12341         * event-msw.c (vars_of_event_mswindows):
12342         Comment about problems with ignored-expose.
12343         Define mswindows-debug-events; not really implemented.
12344
12345         * frame-msw.c (mswindows_init_frame_1):
12346         random cleanups.
12347
12348         * glyphs-msw.c:
12349         * glyphs-msw.c (begin_defer_window_pos):
12350         * glyphs-msw.c (mswindows_unmap_subwindow):
12351         * glyphs-msw.c (mswindows_map_subwindow):
12352         * glyphs-msw.c (mswindows_resize_subwindow):
12353         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12354
12355         * glyphs.c (make_image_instance_1):
12356         Fix crash.
12357
12358         * gutter.c (Fredisplay_gutter_area):
12359         Use new begin/end methods.
12360
12361         * lisp.h (Dynarr_new2):
12362         New creation fun.
12363
12364         * redisplay-msw.c:
12365         * redisplay-msw.c (mswindows_frame_output_begin):
12366         * redisplay-msw.c (mswindows_frame_output_end):
12367         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12368         New begin/end methods -- handle DeferWindowPos.
12369
12370         * redisplay-output.c (redisplay_move_cursor):
12371         * redisplay-output.c (redraw_cursor_in_window):
12372         * redisplay-output.c (redisplay_update_line):
12373         * redisplay-output.c (redisplay_output_window):
12374         New begin/end methods.
12375
12376         * redisplay-tty.c:
12377         * redisplay-tty.c (tty_frame_output_begin):
12378         * redisplay-tty.c (tty_frame_output_end):
12379         * redisplay-tty.c (console_type_create_redisplay_tty):
12380         New begin/end methods.
12381
12382         * redisplay-x.c:
12383         * redisplay-x.c (x_window_output_begin):
12384         * redisplay-x.c (x_window_output_end):
12385         * redisplay-x.c (console_type_create_redisplay_x):
12386         New begin/end methods.
12387
12388         * redisplay.c (redisplay_frame):
12389         * redisplay.c (Fredisplay_echo_area):
12390         New begin/end methods.
12391         use MAYBE_DEVMETH for clear_frame; it may not exist.
12392
12393         * window.h (WINDOW_XFRAME):
12394         WINDOW_XFOO macros -- get locale and decode struct pointer.
12395
12396
12397 2000-05-12  Ben Wing  <ben@xemacs.org>
12398
12399         * emacs.c:
12400         * emacs.c (ensure_no_quitting_from_now_on):
12401         * emacs.c (fatal_error_signal):
12402         * emacs.c (mswindows_handle_hardware_exceptions):
12403         * emacs.c (main):
12404         * emacs.c (Fkill_emacs):
12405         * emacs.c (shut_down_emacs):
12406         * emacs.c (assert_failed):
12407         various improvements in fatal error handling.
12408
12409         * eval.c:
12410         move preparing_for_armageddon to emacs.c.
12411
12412         * lisp.h:
12413         declare fatal_error_in_progress.
12414
12415         * print.c:
12416         * print.c (std_handle_out_external):
12417         * print.c (std_handle_out_va):
12418         * print.c (stderr_out):
12419         * print.c (stdout_out):
12420         use console under mswin when no standard output.
12421         don't do code conversion during fatal error.
12422
12423         * scrollbar.c (Fscrollbar_page_up):
12424         * scrollbar.c (Fscrollbar_page_down):
12425         fix missing else.  reindent.
12426
12427 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12428
12429         Emergency fix.
12430
12431         * glyphs.h (GLYPH_CACHEL_DESCENT):
12432         (GLYPH_CACHEL_DESCENT):
12433         (GLYPH_CACHEL_DESCENT):
12434         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12435         used in case these are inline functions.
12436         Use more absurd values to error check.
12437
12438         include window.h for error check functions.
12439
12440 2000-05-11  Ben Wing  <ben@xemacs.org>
12441
12442         * cmdloop.c (Freally_early_error_handler):
12443         Display message box under windows; otherwise, message will disappear
12444         before it can be viewed.
12445
12446         * console-msw.c:
12447         * console-msw.c (Fmswindows_message_box):
12448         * console-msw.c (FROB):
12449         * console-msw.c (syms_of_console_mswindows):
12450         Define new fun `mswindows-message-box'.
12451         #### I will merge this into `popup-dialog-box'; just give me
12452         a bit of time.
12453
12454         * general.c:
12455         * general.c (syms_of_general):
12456         Some new symbols used in `mswindows-message-box'.
12457
12458         * glyphs.c:
12459         * glyphs.c (Fset_image_instance_property):
12460         put warning in this fun.
12461
12462         * glyphs.h:
12463         * glyphs.h (GLYPH_CACHEL_WIDTH):
12464         * glyphs.h (GLYPH_CACHEL_ASCENT):
12465         * glyphs.h (GLYPH_CACHEL):
12466         * glyphs.h (GLYPH_CACHEL_GLYPH):
12467         define error-checking versions to try to catch a bug i've seen --
12468         redisplay gets in an infinite loop because the glyph width of the
12469         continuation glyph is 65535.
12470
12471         * lisp.h:
12472         Extern message-box stuff.
12473
12474         * window.c (allocate_window):
12475         * window.c (make_dummy_parent):
12476         * window.c (Fset_window_configuration):
12477         Use EQUAL not EQ for subwindow caches to make them work a bit
12478         better. (Something is still very broken.)
12479
12480
12481 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12482
12483         * glyphs.c (image_instantiate): Suppress gcc warnings.
12484         (Fmake_image_instance): Fix doc string.
12485         * specifier.c (Fmake_specifier): Ditto.
12486
12487 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12488
12489         * paths.h.in (PATH_LOCK): Removed.
12490         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12491         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12492
12493 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12494
12495         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12496         Document (featurep '(and xemacs 21.02)).
12497
12498 2000-05-09  Ben Wing  <ben@xemacs.org>
12499
12500         * buffer.c (complex_vars_of_buffer):
12501         update modeline-format doc.
12502
12503         * device.h:
12504         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12505
12506         * emacs.c:
12507         timeline of all released versions of Emacs, for use in creating
12508         authorship comments and in synching up.
12509
12510         * glyphs-widget.c (image_instantiator_buttons):
12511         * glyphs-widget.c (image_instantiator_edit_fields):
12512         * glyphs-widget.c (image_instantiator_combo_box):
12513         * glyphs-widget.c (image_instantiator_scrollbar):
12514         * glyphs-widget.c (image_instantiator_progress_guage):
12515         * glyphs-widget.c (image_instantiator_tree_view):
12516         * glyphs-widget.c (image_instantiator_tab_control):
12517         * glyphs-widget.c (image_instantiator_labels):
12518         * glyphs-widget.c (image_instantiator_layout):
12519         * glyphs-widget.c (image_instantiator_native_layout):
12520         rename decode_domain method to governing_domain.
12521
12522         * glyphs.c:
12523         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12524         * glyphs.c (add_entry_to_device_ii_format_list):
12525         make sure we don't put an entry more than once into the list.
12526         * glyphs.c (check_instance_cache_mapper):
12527         *************************************************************
12528         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12529         HAVE BEEN GETTING.
12530         *************************************************************
12531         * glyphs.c (get_image_instantiator_governing_domain):
12532         clean up, expand on new concept of governing domain.
12533         * glyphs.c (instantiate_image_instantiator):
12534         * glyphs.c (allocate_image_instance):
12535         use governing_domain instead of cache_domain in naming.
12536         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12537         * glyphs.c (make_image_instance_1):
12538         * glyphs.c (Fmake_image_instance):
12539         allow for any domain (not just device), and process the
12540         governing domain correctly.  very big doc fix.
12541         * glyphs.c (Fimage_instance_domain):
12542         new primitive, to retrieve the governing domain of an image instance.
12543         * glyphs.c (image_instantiate):
12544         use new governing_domain stuff.  this fixes a crash you could get
12545         by instantiating certain widget glyphs in frame locales. (should
12546         signal an error instead of crashing.)
12547         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12548         * glyphs.c (Fglyphp): clean up doc.
12549         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12550         * glyphs.c (syms_of_glyphs):
12551         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12552         * glyphs.c (image_instantiator_format_create): add some comments about
12553         bogus code.
12554         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12555         for current-display-table. (Apparently Hrjove implemented in 1998 a
12556         design I wrote up in 1996, but didn't update the doc string.)
12557
12558         * glyphs.h: clean up a doc string.
12559         * glyphs.h (governing_domain):
12560         * glyphs.h (struct image_instantiator_methods):
12561         changes for governing_domain stuff.
12562
12563         * gutter.c:
12564         * gutter.c (Fgutter_specifier_p):
12565         * gutter.c (Fgutter_size_specifier_p):
12566         * gutter.c (Fgutter_visible_specifier_p):
12567         * objects.c:
12568         * objects.c (Fcolor_specifier_p):
12569         * objects.c (Ffont_specifier_p):
12570         * objects.c (Fface_boolean_specifier_p):
12571         doc strings moved to make-*-specifier.
12572
12573         * redisplay.c (add_disp_table_entry_runes_1):
12574         * redisplay.c (generate_fstring_runes):
12575         * redisplay.c (screen):
12576         add random comments and doc strings.
12577
12578         * specifier.c:
12579         * specifier.c (Fmake_specifier):
12580         major overhaul of this doc string.
12581
12582         * specifier.c (Fvalid_specifier_domain_p):
12583         comment about the bogosity of image instances being domains.
12584         * specifier.c (decode_domain):
12585         now non-static, used in glyphs.c.
12586         * specifier.c (specifier_instance):
12587         comment about the bogosity of image instances being domains.
12588         * specifier.c (Fgeneric_specifier_p):
12589         move doc string to make-generic-specifier.
12590         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12591         rebackslashify.
12592
12593         * specifier.h:
12594         * specifier.h (DOMAIN_FRAME):
12595         * specifier.h (DOMAIN_LIVE_P):
12596         * specifier.h (DOMAIN_XDEVICE):
12597         rebackslashify.
12598         add comments about problems with these macros.
12599         prototype for decode_domain.
12600
12601         * toolbar.c:
12602         * toolbar.c (Ftoolbar_specifier_p):
12603         move doc string to `make-toolbar-specifier'.
12604
12605         * window.c (window_unmap_subwindows_cache_mapper):
12606         *************************************************************
12607         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12608         HAVE BEEN GETTING.
12609         *************************************************************
12610
12611 2000-05-09  Andy Piper  <andy@xemacs.org>
12612
12613         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12614
12615         * window.c (Fset_window_configuration): reset the frame subwindow
12616         cache and re-initialize the window subwindow caches.
12617
12618         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12619
12620 2000-05-09  Ben Wing  <ben@xemacs.org>
12621
12622         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12623         DWORD.
12624
12625 2000-04-26  Mike Woolley  <mike@bulsara.com>
12626
12627         * ntheap.c: Changed recreate_heap to limit the amount reserved
12628         for the heap to that which is actually available. Also now
12629         displays a message box (with some dignostics) in the event that
12630         it still can't start.
12631
12632 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12633
12634         * callproc.c (Fold_call_process_internal): GCPRO path
12635
12636 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12637
12638         Patch by Bill Perry.
12639
12640         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12641         back data instead of #ifdef.
12642         (Fscrollbar_page_down): ditto.
12643
12644 2000-05-07  Ben Wing  <ben@xemacs.org>
12645
12646         * buffer.h:
12647         Kludge for defining Qmswindows_tstr.
12648
12649         * nt.c:
12650         * nt.c (open_input_file):
12651         * nt.c (open_output_file):
12652         * nt.c (rva_to_section):
12653         * nt.c (mswindows_executable_type):
12654         Move all memory-mapped-file routines here (some were in unexnt.c,
12655         which is bad because they are used by process-nt.c, and unexnt
12656         won't be around when portable dumping).  Synched the above routines
12657         with FSF 20.6.
12658
12659         * nt.h:
12660         Removed ifdef'd out bogus code.
12661         Fixed some prototypes.
12662
12663         * nt.h (file_data):
12664         * nt.h (OFFSET_TO_RVA):
12665         * nt.h (RVA_TO_OFFSET):
12666         * nt.h (RVA_TO_PTR):
12667         Moved the memory-mapped-file structures, macros and prototypes
12668         here, to parallel nt.c.  ntheap.h should really be removed
12669         entirely, and it's a non-portable-dumper specific file.
12670
12671         * ntheap.h (round_to_next):
12672         Moved the memory-mapped-file structures, macros and prototypes
12673         to nt.h.
12674
12675         * ntproc.c (compare_env):
12676         Moved rva_to_section and mswindows_executable_type to nt.c.
12677         Moved compare_env to process-nt.c.
12678         ntproc.c will die, one day.
12679
12680         * ntproc.c (sys_spawnve):
12681         Account for win32_ -> mswindows_.
12682
12683         * process-nt.c:
12684         * process-nt.c (struct nt_process_data):
12685         * process-nt.c (ensure_console_window_exists):
12686         * process-nt.c (compare_env):
12687         * process-nt.c (nt_create_process):
12688         * process-nt.c (nt_kill_process_by_pid):
12689         * process-nt.c (syms_of_process_nt):
12690         * process-nt.c (vars_of_process_nt):
12691         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12692         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12693         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12694         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12695         Move compare_env here from ntproc.c.
12696
12697         * process.c (Fprocess_send_region):
12698         Takes an optional fourth argument, BUFFER, which should fix some
12699         problems with call-process.
12700
12701         * syscommctrl.h:
12702         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12703
12704         * syswindows.h:
12705         Move ICC_BAR_CLASSES to syscommctrl.h.
12706         Add preliminary macros for MSWindows/Mule.  More to come.
12707
12708         * unexnt.c:
12709         * unexnt.c (unexec):
12710         open_output_file moved to nt.c.
12711
12712
12713 2000-05-05  Andy Piper  <andy@xemacs.org>
12714
12715         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12716         instance from the frame cache also since GC may catch up too late
12717         to make frame deletion sane.
12718
12719 2000-05-04  Andy Piper  <andy@xemacs.org>
12720
12721         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12722         (x_finalize_image_instance): ungcpro on deletion.
12723
12724         * glyphs.c (image_instantiator_format_create): give pointers a
12725         query geometry method so that the geometry is at least set.
12726
12727         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12728         initialize layouts if using widgets.
12729
12730 2000-05-03  Andy Piper  <andy@xemacs.org>
12731
12732         * nt.c: remove bogus reference to sysmmsystem.h
12733
12734         * gui-x.c (popup_selection_callback): fix no selection abort.
12735
12736 2000-05-02  Andy Piper  <andy@xemacs.org>
12737
12738         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12739         (mswindows_widget_instantiate): ditto.
12740
12741         * glyphs-widget.c (initialize_widget_image_instance): initialize
12742         children correctly.
12743         (widget_instantiate): cope with children and items in the same
12744         instance.
12745
12746         * glyphs.c (mark_image_instance): cope with children as a first
12747         class member.
12748         (image_instance_equal): ditto.
12749         (image_instance_hash): ditto.
12750         (image_instance_changed): ditto.
12751
12752 2000-04-30  Andy Piper  <andy@xemacs.org>
12753
12754         * glyphs.c (subwindow_query_geometry): new function. Return some
12755         defaults.
12756         (subwindow_instantiate): don't assign dimensions if none have been
12757         given.
12758         (image_instantiator_format_create): add subwindow_query_geometry.
12759         (print_image_instance): cope with layouts as widgets.
12760
12761 2000-04-29  Andy Piper  <andy@xemacs.org>
12762
12763         * frame.c (delete_frame_internal): call
12764         free_frame_subwindow_instance_cache so that all subwindows are
12765         finalized before their parent.
12766         (mark_frame): remove subwindow_cachels.
12767         (Fmake_frame): remove subwindow_cachel manipulation.
12768         (allocate_frame_core): subwindow_instance_cache is a weak list.
12769         (delete_frame_internal): set subwindow_instance_cache to nil.
12770
12771         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12772         finalization safe.
12773         (mswindows_finalize_image_instance): use the device
12774         not the domain as the domain may have died already.
12775
12776         * glyphs-x.c (x_finalize_image_instance): ditto.
12777         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12778         HEIGHT.
12779
12780         * redisplay-output.c (redisplay_unmap_subwindows): update for
12781         subwindow instance cache as a weak list.
12782         (redisplay_unmap_subwindows_maybe): ditto.
12783         (redisplay_unmap_subwindows_except_us): ditto.
12784
12785         * glyphs.c (unmap_subwindow): error checking will check the domain
12786         so don't deal with it here. Don't use cachels anymore.
12787         (map_subwindow): ditto.
12788         (update_subwindow_cachel_data): remove old accessor names.
12789         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12790         (Fresize_subwindow): don't update cachel.
12791         (mark_subwindow_cachels):
12792         (update_subwindow_cachel_data):
12793         (add_subwindow_cachel):
12794         (get_subwindow_cachel_index):
12795         (update_subwindow_cachel):
12796         (reset_subwindow_cachels):
12797         (mark_subwindow_cachels_as_not_updated): deleted.
12798         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12799         subwindow instance to the frame cache.
12800         (find_matching_subwindow): update for subwindow instance cache as
12801         a weak list.
12802         (update_widget_instances): ditto.
12803         (image_instance_type_to_mask):inlined.
12804         (free_frame_subwindow_instance_cache): new function. finalize all
12805         subwindows that are instantiated.
12806
12807         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12808         of cachel information.
12809         (IMAGE_INSTANCE_DISPLAY_X):
12810         (IMAGE_INSTANCE_DISPLAY_Y):
12811         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12812         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12813         (XIMAGE_INSTANCE_DISPLAY_X):
12814         (XIMAGE_INSTANCE_DISPLAY_Y):
12815         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12816         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12817         remove subwindow_cachel structure and function references.
12818         (image_instance_type_to_mask): inline from glyphs.c
12819
12820         * redisplay.c (redisplay_frame): remove subwindow_cachel
12821         references.
12822
12823         * frame.h (struct frame): remove subwindow_cachels.
12824         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12825
12826         * frameslots.h: add subwindow_instance_cache.
12827
12828         * window.c (replace_window): check subwindow cache of replacement.
12829         (window_unmap_subwindows_cache_mapper):
12830         (window_unmap_subwindows): new functions. Unmap all subwindows
12831         cached on this window.
12832         (mark_window_as_deleted): unmap all subwindows.
12833
12834 2000-04-27  Andy Piper  <andy@xemacs.org>
12835
12836         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12837
12838         * glyphs-widget.c (widget_layout): return something.
12839         (layout_layout): return something. Fail if not initialized.
12840         (layout_query_geometry): ditto.
12841         (image_instantiator_native_layout): new function. Initialized the
12842         native layout type.
12843         (widget_instantiate): don't do layout stuff here.
12844
12845         * glyphs.c (instantiate_image_instantiator): reorded calling or
12846         instantiate and post_instantiate with layout in between.
12847         (image_instance_layout): be more selective about deciding whether
12848         the layout has been done or not.
12849
12850         * glyphs.h (struct image_instantiator_methods): return a value
12851         from layout_method.
12852
12853 2000-04-26  Andy Piper  <andy@xemacs.org>
12854
12855         * glyphs.c (allocate_image_instance): make initial width and
12856         height unspecified. Set initialized to 0.
12857
12858         * syscommctrl.h new file. Encapsulates commctrl.h.
12859
12860         * syswindows.h new file. Encapsulates windows.h.
12861
12862         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12863         * nt.c: ditto.
12864         * console-msw.h: ditto.
12865
12866         * redisplay-tty.c (tty_output_display_block): remove layout references.
12867
12868         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12869         window handle rather than just the frame.
12870
12871         * glyphs.c (mark_image_instance): remove layout references.
12872         (print_image_instance): ditto.
12873         (image_instance_equal): ditto.
12874         (image_instance_hash): ditto.
12875         (decode_image_instance_type): ditto.
12876         (encode_image_instance_type): ditto.
12877         (image_instantiate): ditto.
12878         (allocate_glyph): ditto.
12879         (Fimage_instance_height): ditto.
12880         (Fimage_instance_width): ditto.
12881         (update_subwindow): ditto.
12882
12883         * redisplay-x.c (x_output_display_block): recode for layouts as
12884         widgets.
12885
12886         * redisplay-output.c (redisplay_output_layout): recode for layouts
12887         as widgets.
12888         (compare_runes): remove layout references.
12889
12890         * redisplay-msw.c (mswindows_output_display_block): recode for
12891         layouts as widgets.
12892
12893         * glyphs-widget.c (image_instantiator_layout): remove
12894         layout_possible_dest_types.
12895         (layout_possible_dest_types): deleted.
12896
12897         * glyphs.h (image_instance_type): remove layout references.
12898         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12899         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12900         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12901
12902 2000-04-25  Andy Piper  <andy@xemacs.org>
12903
12904         * glyphs-widget.c (image_instantiator_buttons):
12905         (image_instantiator_edit_fields):
12906         (image_instantiator_combo_box):
12907         (image_instantiator_scrollbar):
12908         (image_instantiator_progress_guage):
12909         (image_instantiator_tree_view):
12910         (image_instantiator_tab_control):
12911         (image_instantiator_labels):
12912         (image_instantiator_layout): call default post_instantiate method.
12913         (widget_post_instantiate): new function. Simply lays out the
12914         widgets.
12915
12916         * glyphs.h (struct image_instantiator_methods): add
12917         post_instantiate method.
12918
12919         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12920         method calls.
12921
12922 2000-04-23  Andy Piper  <andy@xemacs.org>
12923
12924         * glyphs.h (struct image_instantiator_methods): add
12925         decode_domain_method.
12926         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12927         derived from the domain.
12928         (IMAGE_INSTANCE_FRAME): new accessor.
12929         (XIMAGE_INSTANCE_FRAME): ditto.
12930
12931         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12932         instead of _SUBWINDOW_FRAME.
12933         (finalize_image_instance): ditto.
12934         (Fimage_instance_foreground): ditto.
12935         (Fimage_instance_background): ditto.
12936         (image_instantiate): ditto.
12937         (update_subwindow_cachel): ditto.
12938         (update_subwindow): ditto.
12939         (unmap_subwindow): ditto.
12940         (map_subwindow): ditto
12941         (subwindow_instantiate): ditto.
12942         * glyphs-msw.c (mswindows_update_widget): ditto.
12943         (mswindows_progress_gauge_instantiate): ditto.
12944         (mswindows_tab_control_update): ditto.
12945         * glyphs-x.c (x_update_widget): ditto.
12946         (x_widget_instantiate): ditto.
12947         (x_tab_control_instantiate): ditto.
12948         (x_tab_control_update): ditto.
12949         * event-msw.c (mswindows_wnd_proc): ditto
12950
12951         * glyphs-widget.c (image_instantiator_layout): use
12952         subwindow_decode_domain.
12953         (image_instantiator_buttons): ditto.
12954         (image_instantiator_edit_fields): ditto.
12955         (image_instantiator_combo_box): ditto.
12956         (image_instantiator_scrollbar): ditto.
12957         (image_instantiator_progress_guage): ditto.
12958         (image_instantiator_tree_view): ditto.
12959         (image_instantiator_tab_control): ditto.
12960         (image_instantiator_labels): ditto.
12961         (image_instantiator_layout): ditto.
12962
12963         * glyphs.c: add instance error checking to many functions.
12964         (instantiate_image_instantiator): decode device from cache_domain.
12965         (image_instantiate): partially rewrite by using
12966         decode_image_instantiator_domain to determine what domain the
12967         instance needs to be cached in.
12968         (decode_image_instantiator_domain): new function. Determine what
12969         domain the image needs to be cached in.
12970         (check_window_subwindow_cache): new error checking function.
12971         (check_instance_cache_mapper): ditto.
12972         (check_image_instance_structure): ditto.
12973         (subwindow_decode_domain): new function. Encodes a window as a
12974         subwindow's cache domain.
12975         (image_instantiator_format_create): use it for text and
12976         subwindows.
12977
12978 2000-04-21  Andy Piper  <andy@xemacs.org>
12979
12980         * glyphs.c (image_instance_device): new function.
12981         (image_instance_frame): new function.
12982         (image_instance_window): new function.
12983         (image_instance_live_p): new function.
12984
12985         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12986         cache to nil.
12987
12988         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12989         (IMAGE_INSTANCE_DOMAIN): new accessor.
12990         (XIMAGE_INSTANCE_DOMAIN): ditto.
12991
12992         * glyphs-x.c (x_finalize_image_instance): device->domain.
12993
12994         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12995         (mswindows_finalize_image_instance): ditto.
12996
12997         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12998         (gif_instantiate): ditto.
12999         (png_instantiate): ditto.
13000         (tiff_instantiate): ditto.
13001
13002         * glyphs.c (instantiate_image_instantiator): use domain rather
13003         than device.
13004         (mark_image_instance): device -> domain.
13005         (print_image_instance): ditto.
13006         (finalize_image_instance): ditto.
13007         (image_instance_equal): ditto.
13008         (allocate_image_instance): ditto.
13009         (Fcolorize_image_instance): ditto.
13010         (query_string_geometry): ditto.
13011         (image_instantiate): ditto
13012         (query_string_font): ditto.
13013         (image_instantiate): ditto.
13014         (update_subwindow): ditto.
13015         (unmap_subwindow): ditto.
13016         (map_subwindow): ditto.
13017         (subwindow_instantiate): ditto.
13018
13019         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13020         (DOMAIN_FRAME): ditto.
13021         (DOMAIN_WINDOW): ditto.
13022         (DOMAIN_LIVE_P): ditto.
13023         (XDOMAIN_DEVICE): ditto.
13024         (XDOMAIN_FRAME): ditto.
13025         (XDOMAIN_WINDOW): ditto.
13026
13027         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13028         a valid specifier domain.
13029
13030 2000-04-19  Andy Piper  <andy@xemacs.org>
13031
13032         * glyphs-widget.c (syms_of_glyphs_widget): remove
13033         widget-callback-current-channel.
13034         (vars_of_glyphs_widget): ditto.
13035         * glyphs.h: ditto
13036
13037         * gui.c (get_gui_callback): revert to previous behaviour.
13038
13039 2000-04-18  Andy Piper  <andy@xemacs.org>
13040
13041         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13042         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13043         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13044
13045         * glyphs.c (image_instance_equal): add margin_width.
13046         (image_instance_hash): ditto.
13047
13048         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13049         (layout_query_geometry): ditto.
13050         (layout_layout): ditto.
13051         (syms_of_glyphs_widget): add margin-width.
13052         (image_instantiator_layout): allow margin-width.
13053
13054         * glyphs.c (update_widget_instances): make a normal function.
13055         (syms_of_glyphs): remove Qupdate_widget_instances.
13056         * glyphs.h: ditto.
13057
13058         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13059         so that we don't corrupt ideas about the last event or
13060         command. Remove widget-callback-current-channel fiddling.
13061         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13062
13063 2000-05-01  Martin Buchholz <martin@xemacs.org>
13064
13065         * XEmacs 21.2.33 is released.
13066
13067 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13068
13069         * make-src-depend: Allow dots in header file name.
13070
13071 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13072
13073         * mule-charset.h (struct charset_lookup): Add
13074         next_allocated_1_byte_leading_byte and
13075         next_allocated_2_byte_leading_byte.
13076         * mule-charset.c: Move above two variables so that those values
13077         will be dumped.
13078
13079 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13080
13081         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13082         when string length is zero.
13083         (find_charsets_in_emchar_string): Ditto.
13084
13085 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13086
13087         * lisp.h: extern Qdialog and Qmenubar.
13088
13089         * gui-x.c: added events.h.
13090                 also fixed typo which made the file uncompilable.
13091
13092         * general.c: Added Qmenubar and Qdialog
13093
13094 2000-04-28  Ben Wing  <ben@xemacs.org>
13095
13096         * frame-msw.c (mswindows_init_frame_1):
13097         * frame-msw.c (mswindows_mark_frame):
13098         * event-msw.c (mswindows_enqueue_dispatch_event):
13099         * console-msw.h:
13100         * console-msw.h (struct mswindows_frame):
13101         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13102         there are now three hash tables for callbacks.
13103         mswindows_enqueue_dispatch_event is no longer static.
13104
13105         * dialog-x.c (maybe_run_dbox_text_callback):
13106         * dialog-x.c (dbox_descriptor_to_widget_value):
13107         switch to new cons3 form for callbacks.
13108
13109         * glyphs-msw.c (mswindows_register_gui_item):
13110         * glyphs-msw.c (mswindows_widget_instantiate):
13111         * glyphs-msw.c (add_tree_item):
13112         * glyphs-msw.c (add_tab_item):
13113         new image instance parameter, so it can be passed to callback-ex.
13114         respect :callback-ex as well as :callback.
13115
13116         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13117         add :callback-ex.
13118
13119         * glyphs.c (print_image_instance):
13120         prettify, e.g. now prints widget type.
13121
13122         * gui-x.h:
13123         certain funs have new image instance parameter.
13124
13125         * gui.c:
13126         * gui.c (get_gui_callback):
13127         * gui.c (gui_item_add_keyval_pair):
13128         * gui.c (gui_item_init):
13129         * gui.c (gui_add_item_keywords_to_plist):
13130         * gui.c (mark_gui_item):
13131         * gui.c (gui_item_hash):
13132         * gui.c (gui_item_equal):
13133         * gui.c (copy_gui_item):
13134         * gui.c (syms_of_gui):
13135         recognize callback-ex in a number of places.
13136         also, fix the annoying "can't get out of yes-no dialog" bug.
13137
13138         * gui.h:
13139         * gui.h (struct Lisp_Gui_Item):
13140         recognize callback-ex in a number of places.
13141
13142         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13143         new parameter in button_item_to_widget_value.
13144
13145         * glyphs-x.c (x_update_widget):
13146         * glyphs-x.c (x_button_instantiate):
13147         * glyphs-x.c (x_button_update):
13148         * glyphs-x.c (x_progress_gauge_instantiate):
13149         * glyphs-x.c (x_edit_field_instantiate):
13150         * glyphs-x.c (x_combo_box_instantiate):
13151         * glyphs-x.c (x_tab_control_instantiate):
13152         * glyphs-x.c (x_label_instantiate):
13153         new image instance parameter in various places.
13154
13155         * event-Xt.c:
13156         * event-Xt.c (enqueue_Xt_dispatch_event):
13157         this fun gets exported.
13158
13159         * gui-msw.c:
13160         * gui-msw.c (mswindows_handle_gui_wm_command):
13161         handle both :callback and :callback-ex, and generate our own
13162         event because it's one of the callback-ex arguments.
13163
13164         * gui-x.c:
13165         * gui-x.c (popup_selection_callback):
13166         handle both :callback and :callback-ex, and generate our own
13167         event because it's one of the callback-ex arguments.
13168         * gui-x.c (button_item_to_widget_value):
13169         * gui-x.c (gui_items_to_widget_values_1):
13170         * gui-x.c (gui_item_children_to_widget_values):
13171         * gui-x.c (gui_items_to_widget_values):
13172         new image instance parameter in various places.
13173
13174         * fns.c (Freplace_list):
13175         fix small typo in doc string.
13176
13177         * lisp.h:
13178         declare enqueue_Xt_dispatch_event.
13179
13180 2000-04-28  Ben Wing  <ben@xemacs.org>
13181
13182         * buffer.c:
13183         * buffer.c (Frecord_buffer):
13184         * buffer.c (syms_of_buffer):
13185         delete record-buffer-hook.
13186
13187         * fns.c:
13188         * fns.c (Freplace_list):
13189         * fns.c (syms_of_fns):
13190         new primitive replace-list.
13191
13192         * frameslots.h:
13193         slot for old buffer-alist.
13194
13195         * lisp.h:
13196         exfun replace-list.
13197
13198         * redisplay.c:
13199         * redisplay.c (redisplay_frame):
13200         * redisplay.c (syms_of_redisplay):
13201         * redisplay.c (vars_of_redisplay):
13202         new hook buffer-list-changed-hook.
13203         call it.
13204
13205 2000-04-27  Ben Wing  <ben@xemacs.org>
13206
13207         * extents.h: extern in_modeline_generation.
13208
13209         * redisplay.c (generate_formatted_string_db): set
13210         in_modeline_generation.
13211
13212         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13213         flags if in modeline generation.  otherwise frame-modified-tick
13214         is ticked far too often.
13215         Declare in_modeline_generation.
13216
13217 2000-04-26  Ben Wing  <ben@xemacs.org>
13218
13219         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13220         option.
13221         (vars_of_emacs): add quick-build as an error-checking option.
13222         A bit kludgy, but there doesn't seem much point in creating
13223         a real var for this.
13224
13225         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13226
13227 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13228
13229         * redisplay.h (struct display_line): Add a new variable,
13230         line_continuation.
13231
13232         * redisplay.c (create_text_block): Set dl->line_continuation if
13233         the line continues.
13234         (create_string_text_block): Ditto.
13235         (regenerate_window_incrementally): Use line_continuation instead
13236         of searching continuation glyph.
13237         (add_margin_runes): Call add_glyph_rune.
13238         (add_glyph_rune): Handle margin glyph.
13239
13240 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13241
13242         * filelock.c (fill_in_lock_file_name):
13243         ANSIfy.
13244         Check for IS_ANY_SEP instead of '/'.
13245         (lock_file_1):
13246         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13247         Never check errno without first seeing that system call failed.
13248         (unlock_file): Add GCPRO.
13249         (Flock_buffer): Fix docstring.
13250         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13251
13252 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13253
13254         * sysdep.c (get_pty_max_bytes):
13255         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13256         strings longer than 252 bytes.
13257
13258         * md5.c: Unconditionally include ANSI header <limits.h>
13259
13260         * glyphs-x.c (convert_EImage_to_XImage):
13261         * lisp-union.h (union Lisp_Object):
13262         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13263
13264 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13265
13266         * filelock.c (current_lock_owner): Remove unused variable o, p.
13267
13268 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13269
13270         * callint.c: Remove multiply defined symbol Qlet
13271         (syms_of_callint): ditto.
13272
13273 2000-04-14  Andy Piper  <andy@xemacs.org>
13274
13275         * general.c (syms_of_general): add last-command, this-command, let
13276         and funcall.
13277
13278         * lisp.h: declare various symbols.
13279
13280         * glyphs.h: declare Qwidget_callback_current_channel;
13281
13282         * glyphs-widget.c (syms_of_glyphs_widget): add
13283         Qgui_callback_current_channel.
13284         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13285
13286         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13287         widget-callback-current-channel when invoking the interactive
13288         arg. Also bind last-command and next-command when invoking the
13289         widget updates.
13290         * gui-x.c (popup_selection_callback): ditto.
13291
13292         * gui.c (get_gui_callback): massage args so that we are always
13293         calling eval. This allows us to add our own variable bindings
13294         outside.
13295
13296         * glyphs-x.c (x_button_instantiate): use
13297         gui_items_to_widget_values since this is GC safe.
13298         (x_progress_gauge_instantiate): ditto.
13299         (x_edit_field_instantiate): ditto.
13300         (x_label_instantiate): ditto.
13301
13302         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13303         (emacs_Xt_event_widget_focus_out): new function
13304         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13305         focus.
13306         (emacs_Xt_event_add_widget_actions): new function. add focus
13307         functions as actions.
13308         (init_event_Xt_late): use it.
13309
13310 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13311
13312         * event-stream.c (Fdispatch_event): Doc fix.
13313
13314 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13315
13316         * postgresql.c: Remove all references to PQsetenv*.
13317
13318         * postgresql.h: Remove references to PGsetenvHandler object.
13319         * lrecord.h (lrecord_type): Ditto.
13320
13321 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13322
13323         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13324         real_heigh and real_width members, and accessor macros for these.
13325
13326         * glyphs-msw.c (init_image_instance_geometry): New function.
13327         (init_image_instance_from_dibitmap): Use it.
13328         (mswindows_resource_instantiate): Use it.
13329         (init_image_instance_from_xbm_inline): Use it.
13330         (mswindows_initialize_image_instance_mask): Use real bitmap
13331         geometry.
13332         (mswindows_create_resized_bitmap): Ditto.
13333         (mswindows_create_resized_mask): Ditto.
13334
13335         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13336         and bitmap to their surface size.
13337
13338 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13339
13340         * process-unix.c (unix_send_process): Guard against process MIA
13341         after Faccept_process_output.
13342
13343 2000-04-11  Ben Wing  <ben@xemacs.org>
13344
13345         * eval.c (unbind_to_hairy): fix brokenness introduced by
13346         nanosecond speed improvements.
13347
13348 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13349
13350         * sunplay.c (init_device): To play sounds correctly, the device
13351         apparently needs to be initialized at least once by XEmacs.  Make
13352         it so.
13353
13354 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13355
13356         * redisplay.c (add_margin_runes): Add text image glyph
13357           handling.
13358
13359 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13360
13361         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13362         gcc is newer than 2.5.
13363
13364 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13365
13366         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13367
13368         * fns.c (size_bit_vector):
13369         * alloc.c (size_vector):
13370         (make_vector_internal):
13371         (make_bit_vector_internal):
13372         (sweep_bit_vectors_1):
13373         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13374
13375 2000-04-06  Andy Piper  <andy@xemacs.org>
13376
13377         * gmalloc.c (malloc): undo previous change.
13378         (malloc): ditto.
13379         (free): ditto.
13380         (realloc): ditto.
13381
13382 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13383
13384         * line-number.c (buffer_line_number): Revert to former version.
13385
13386 2000-04-06  Andy Piper  <andy@xemacs.org>
13387
13388         * gmalloc.c (malloc): add error checking.
13389         (malloc): ditto.
13390         (free): ditto.
13391         (realloc): ditto.
13392
13393         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13394         button_item_to_widget_value arg.
13395
13396         * glyphs-x.c (x_button_instantiate): add extra
13397         button_item_to_widget_value arg.
13398         (x_progress_gauge_instantiate): ditto.
13399         (x_edit_field_instantiate): ditto.
13400         (x_label_instantiate): ditto.
13401
13402         * gui-x.c (gui_items_to_widget_values_1): add extra
13403         button_item_to_widget_value arg.
13404         (button_item_to_widget_value): add extra menu_item_p arg.
13405
13406         * gui-x.h: change signature of button_item_to_widget_value.
13407
13408         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13409         button_item_to_widget_value arg.
13410
13411 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13412
13413         * buffer.h (struct buffer): auto_save_modified should be long.
13414
13415 2000-04-05  Andy Piper  <andy@xemacs.org>
13416
13417         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13418         type.
13419         (button_query_geometry): give a little more room so that athena
13420         buttons fit.
13421
13422 2000-04-05  Andy Piper  <andy@xemacs.org>
13423
13424         * faces.c (complex_vars_of_faces): The widget face should inherit
13425         the font of the gui-element face.
13426
13427 2000-04-04  Andy Piper  <andy@xemacs.org>
13428
13429         * glyphs-x.c (x_button_update): new function. unconditionally
13430         update a button's state when the instance is dirty.
13431         (image_instantiator_format_create_glyphs_x): add x_button_update.
13432         (x_widget_instantiate): remove old resize cruft.
13433
13434 2000-04-02  Andy Piper  <andy@xemacs.org>
13435
13436         * frame.c (change_frame_size_1): The introduction of gutters means
13437         that we need to allow 0 as a potential frame dimension.
13438
13439 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13440
13441         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13442         image glyph if allow_cursor.
13443         (add_hscroll_rune): Don't allow cursor to border glyph.
13444         (create_text_block): Ditto.
13445
13446         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13447         text not in buffer.
13448         (redisplay_output_layout): Call ensure_face_cachel_complete for
13449         text image glyph.
13450
13451
13452 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13453
13454         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13455
13456         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13457         not in buffer
13458
13459         * redisplay-tty.c (tty_output_display_block): Delete the routine
13460         for text image glyph
13461         * redisplay-x.c (x_output_display_block): ditto
13462         * redisplay-msw.c (mswindows_output_display_block): ditto
13463
13464 2000-02-02  Mike Alexander  <mta@arbortext.com>
13465
13466         Note: Some of these were committed by accident as part of other
13467         patches.
13468
13469         * regex.c (regex_compile): Avoid compiler warnings.
13470
13471         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13472
13473         * nt.h: Declare term_ntproc correctly.
13474
13475         * nt.c: Remove incorrect declaration of get_home_directory which
13476         is declared correctly in lisp.h.
13477
13478         * keymap.c (get_keyelt): Avoid compiler warnings.
13479         (raw_lookup_key_mapper): Avoid compiler warnings.
13480
13481         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13482
13483         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13484
13485         * filemode.c (mode_string): Avoid compiler warnings.
13486
13487         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13488         avoid warning.
13489
13490         * events-mod.h: Undef some things that winuser.h defines differently.
13491
13492         * data.c (Faset): Avoid compiler warnings.
13493
13494         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13495
13496 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13497
13498         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13499         Fall through to simple beep on error.
13500         Replace "extern" by real header file.
13501
13502         * linuxplay.c: Use nativesound.h
13503         (play_sound_data): Return error code. Be less verbose on error.
13504
13505         * sunplay.c: Use nativesound.h
13506         (play_sound_data): Return error code. Be less verbose on error.
13507
13508         * ntplay.c: Use nativesound.h
13509         (play_sound_data): Return fake error code
13510
13511         * sgiplay.c: Use nativesound.h
13512         (play_sound_data): Return error code
13513
13514         * hpplay.c: Use nativesound.h, partially implement
13515         new error code. Break compilation until finished.
13516         (play_sound_data): error code.
13517
13518         * nativesound.h (play_sound_file):
13519           (play_sound_data): Prototype in new header.
13520
13521 2000-03-31  Andy Piper  <andy@xemacs.org>
13522
13523         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13524         for toggle and radio buttons.
13525         (image_instantiator_buttons): use it.
13526
13527 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13528
13529         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13530         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13531         found. Scrollbar event probably belonged to some old config.
13532
13533 2000-03-31  Andy Piper  <andy@xemacs.org>
13534
13535         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13536         than 1.
13537         (initialize_widget_image_instance): default layout to
13538         LAYOUT_HORIZONTAL rather than 0.
13539         (widget_instantiate): reverse the item list at the end rather than
13540         every iteration.
13541         (layout_layout): re-code for the border text at the front of the
13542         item list rather than at the end.
13543         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13544         provided by the user.
13545         (widget_query_geometry): comment.
13546
13547 2000-03-30  Andy Piper  <andy@xemacs.org>
13548
13549         * glyphs-widget.c (image_instantiator_layout): allow standard
13550         widget keywords in layouts.
13551
13552         * gutter.c (output_gutter): cope with nil gutter contents.
13553
13554         * frame.c (Fset_frame_properties): add gutter docs.
13555
13556 2000-03-29  Andy Piper  <andy@xemacs.org>
13557
13558         * toolbar-msw.c (TBSTYLE_FLAT): add.
13559         (mswindows_output_toolbar): minor fiddling.
13560
13561 2000-03-29  Andy Piper  <andy@xemacs.org>
13562
13563         * gutter.c (output_gutter): force gutter size recalculation if
13564         what we are trying to display won't fit.
13565         (update_gutter_geometry): new function. A per-gutter version of
13566         update_frame_gutter_geometry.
13567         (update_frame_gutter_geometry): use it.
13568         (redraw_exposed_gutter): add extra debugging output.
13569
13570 2000-03-28  Mike Alexander  <mta@arbortext.com>
13571
13572         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13573         (pdump_file_unmap): Implement it on Windows
13574         (pdump_file_get): Save alocated handles for pdump_file_unmap
13575
13576 2000-03-28  Andy Piper  <andy@xemacs.org>
13577
13578         * gui.c (get_gui_callback): treat Quit specially.
13579
13580 2000-03-27  Andy Piper  <andy@xemacs.org>
13581
13582         * glyphs.c (image_instantiate): be careful to check in the same
13583         way we assigned.
13584
13585 2000-03-27  Didier Verna  <didier@xemacs.org>
13586
13587         * config.h.in: define the proper SMART_INCLUDE macro.
13588         handle renaming of `foo_h_path' to `foo_h_file'.
13589
13590         * database.c: ditto.
13591
13592         * emacs.c: ditto.
13593
13594         * linuxplay.c: ditto.
13595
13596         * terminfo.c: ditto.
13597
13598         * tooltalk.h: ditto.
13599
13600 2000-03-27  Andy Piper  <andy@xemacs.org>
13601
13602         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13603         gets updated whenever the face might have changed.
13604
13605 2000-03-26  Mike Alexander  <mta@arbortext.com>
13606
13607         * dumper.c (pdump_resource_free): Fix the comment.
13608
13609 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13610
13611         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13612
13613 2000-03-22  Mike Alexander  <mta@arbortext.com>
13614
13615         * dumper.c: Include Windows headers on Windows
13616         (pdump_resource_free): Add a body to the function
13617         (pdump_load): exe_name -> exe_path and add some comments.
13618
13619 2000-03-25  Mike Alexander  <mta@arbortext.com>
13620
13621         * gui.c (copy_gui_item_tree): Return a value in all cases
13622
13623 2000-03-21  Didier Verna  <didier@xemacs.org>
13624
13625         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13626         lwlib/config.h.in.
13627         (SMART_INCLUDE): new macro.
13628         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13629         the proper location.
13630
13631         * postgresql.c: use it.
13632
13633         * inline.c: ditto.
13634
13635 2000-03-24  Andy Piper  <andy@xemacs.org>
13636
13637         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13638         do this.
13639
13640 2000-03-24  Andy Piper  <andy@xemacs.org>
13641
13642         * redisplay-output.c (compare_runes): use image_instance_changed
13643         to detect changes. Do not depend on glyphs_changed, only depend on
13644         dirtiness.
13645          (redisplay_output_layout): add debug messages.
13646         (compare_runes): ditto.
13647
13648         * glyphs.h: declare new functions.
13649         (struct Lisp_Image_Instance): remove percent and associated
13650         accessors.
13651
13652         * gui.h: declare new copying functions.
13653
13654         * gui.c (copy_gui_item_tree): new function.
13655         (copy_gui_item): new function.
13656         (gui_item_id_hash): revert to standard hash.
13657         (gui_item_hash): ditto.
13658         (gui_item_hash_internal): deleted.
13659         (mark_gui_item): mark value.
13660         (gui_item_add_keyval_pair): add value.
13661         (gui_item_init): ditto.
13662         (gui_add_item_keywords_to_plist): ditto.
13663         (gui_item_equal): ditto.
13664         (syms_of_gui): add Q_value.
13665
13666         * glyphs-x.c (x_progress_gauge_update): use pending items and
13667         value for setting the state.
13668         (x_update_widget): don't set items from pending here.
13669
13670         * glyphs-widget.c (update_widget): update items here.
13671         (progress_gauge_set_property): use items for storing value. Put
13672         new value in pending items.
13673
13674         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13675         items for new value. Convert percent -> value.
13676         (mswindows_tab_control_update): don't update items here.
13677
13678         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13679         (update_subwindow): ditto.
13680         (image_instance_changed): new function. Compare hash values and
13681         past and present widget items.
13682         (image_instantiate): We more careful about where we instantiate
13683         things.
13684         (image_instantiate): add error checking.
13685
13686         * gutter.c (syms_of_gutter): use -hook.
13687
13688 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13689
13690         * console-tty.c (Fset_console_tty_input_coding_system): Use
13691         Qkeyboard.
13692         (Fset_console_tty_output_coding_system): Use Qterminal.
13693         (tty_init_console): Use Qkeyboard and Qterminal.
13694
13695 2000-03-21  Ben Wing  <ben@xemacs.org>
13696
13697         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13698         From Mike Alexander <mta@arbortext.com>.
13699
13700 2000-03-21  Ben Wing  <ben@xemacs.org>
13701
13702         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13703         process brokenness.  Proper implementation to come.
13704         * callproc.c:
13705         Rename call-process-internal to old-call-process-internal.
13706         New impl. in process.el.
13707
13708 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13709
13710         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13711
13712 2000-03-20  Andy Piper  <andy@xemacs.org>
13713
13714         * glyphs.c (full_list_hash): make hashes of the same elements in
13715         different orders return different values.
13716
13717 2000-03-20  Martin Buchholz <martin@xemacs.org>
13718
13719         * XEmacs 21.2.32 is released.
13720
13721 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13722
13723         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13724         (DFC_MALLOC_USE_CONVERTED_DATA):
13725         Add aliasing-safe casts to allow use with char* or unsigned char*
13726         lvalues.
13727
13728         * eldap.c (Fldap_open):
13729         (Fldap_search_basic):
13730         (Fldap_add):
13731         (Fldap_modify):
13732         Make C++-compilable.
13733         Make sure GCPRO'ed variables are initialized.
13734         Use temp variables to avoid repeated calls to Flength.
13735
13736 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13737
13738         * sysfile.h:
13739         Make sure PATH_MAX is always defined.
13740         Include limits.h for PATH_MAX.
13741         Deprecate use of MAXPATHLEN.
13742
13743 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13744
13745         * emacs.c: Add reinit_vars_of_fileio.
13746         * symsinit.h: Add reinit_vars_of_fileio.
13747         * fileio.c (reinit_vars_of_fileio): New.
13748         * fileio.c (Fmake_temp_name):
13749         Initialize temp_name random number from microseconds to make
13750         collisions even less likely.  Initialize always at process startup
13751         time.  (make-temp-name) used to return the same file name twice in
13752         a row when PDUMP.
13753         Random stylistic fiddling.
13754         Comment fixes.
13755
13756 2000-03-20  Andy Piper  <andy@xemacs.org>
13757
13758         * glyphs.c (image_instantiate): allow text glyphs to be
13759         instantiated in the minibuffer window.
13760
13761 2000-03-19  Andy Piper  <andy@xemacs.org>
13762
13763         * glyphs.c (image_instance_hash): be careful about which items we
13764         hash on.
13765
13766         * glyphs-widget.c (tab_control_set_property): record into pending
13767         items rather than the actual items.
13768
13769         * glyphs-x.c (x_update_widget): use pending items to update with.
13770
13771         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13772         to update with.
13773
13774         * glyphs.c (mark_image_instance): mark pending items.
13775
13776         * window.c (Fset_window_configuration): record the buffer.
13777         (Fselect_window): totally revert previous change which breaks many
13778         things.
13779
13780 2000-03-18  Andy Piper  <andy@xemacs.org>
13781
13782         * glyphs-msw.c (mswindows_tab_control_update): force selected
13783         item.
13784
13785         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13786         window domain cache, otherwise we get inconsistencies at
13787         startup. There is something fishy at startup which can lead to the
13788         minibuffer being the selected window when the gutter content is
13789         instantiated.
13790
13791         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13792         gcpros.
13793         (parse_gui_item_tree_children): ditto.
13794         (parse_gui_item_tree_item): ditto.
13795
13796         * glyphs.c (Fupdate_widget_instances): return something.
13797
13798 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13799
13800         * window.c (Fselect_window): Undo 2000-03-17 change.
13801
13802 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13803
13804         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13805         against v7.0 libraries.  Insta-coredump city until the postgres
13806         folks fix it.
13807
13808 2000-03-17  Andy Piper  <andy@xemacs.org>
13809
13810         * faces.c (complex_vars_of_faces): don't give the widget face an
13811         inherited background pixmap.
13812
13813         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13814         selected item.
13815
13816         * event-stream.c (Fdispatch_non_command_events): return something.
13817
13818         * gutter.c (output_gutter): use widget face.
13819         (clear_gutter): ditto.
13820
13821         * NEWS: adjust again.
13822
13823         * window.c (Fselect_window): make sure this runs to completion to
13824         avoid oddities with Fset_window_configuration.
13825         (Fcurrent_window_configuration): in general do not save the
13826         minibuffer as the selected window.
13827
13828         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13829
13830 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13831
13832         * emacs.c (Frunning_temacs_p): Revert previous patch.
13833         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13834
13835 2000-03-16  Andy Piper  <andy@xemacs.org>
13836
13837         * glyphs-x.c (x_tab_control_update): if no widget values then
13838         return.
13839
13840         * NEWS: update for new features.
13841
13842         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13843         synthetic event to the native system.
13844         (reinit_vars_of_event_Xt): set force_event_pending to
13845         emacs_Xt_force_event_pending.
13846
13847         * events.h (struct event_stream): add force_event_pending.
13848
13849         * specifier.c (recompute_one_cached_specifier_in_window): add
13850         comment.
13851
13852         * redisplay.c (redisplay_frame): don't call
13853         update_frame_subwindows. Reset subwindow cachels when
13854         subwindows_changed, removing this was an optimization too far.
13855
13856         * redisplay-output.c (compare_runes): reorganize so that we catch
13857         glyph changes when we want them. Set optimize_output when this
13858         would help layouts.
13859         (redisplay_output_layout): remove frame_really_changed, use
13860         optimize_output instead.
13861
13862         * redisplay-msw.c (mswindows_output_display_block): reset
13863         optimize_output after outputting a glyph.
13864         * redisplay-x.c (x_output_display_block): ditto.
13865         * redisplay-tty.c (tty_output_display_block): ditto.
13866
13867         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13868         functions.
13869         (gutter_specs_changed): do specific gutter positions.
13870         (top_gutter_specs_changed): new function. Only update the
13871         specified gutter specs.
13872         (bottom_gutter_specs_changed): ditto.
13873         (left_gutter_specs_changed): ditto.
13874         (right_gutter_specs_changed): ditto.
13875
13876         * gui.c (gui_item_hash_internal): new function, does a real hash.
13877         (gui_item_id_hash): use it.
13878         (gui_item_hash): hash the eval'ed gui_item.
13879
13880         * gui-x.c (popup_selection_callback): send an eval event to call
13881         Fupdate_widget_instances.
13882
13883         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13884         to call Fupdate_widget_instances.
13885
13886         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13887         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13888
13889         * glyphs.c: (update_frame_subwindows): deleted.
13890         (Fupdate_widget_instances): new function for updating the dirty
13891         state of widgets that might have changed.
13892         (syms_of_glyphs): add Qupdate_widget_instances.
13893         (full_list_hash): hash a list completely.
13894         (image_instance_hash): use it for items and properties.
13895
13896         * frame-msw.c (mswindows_size_frame_internal): remove unused
13897         variable.
13898
13899         * faces.h (struct face_cachel): fix comment.
13900
13901         * event-stream.c (Fdispatch_non_command_events): new
13902         function. Process non-command events, forcing an event cycle
13903         beforehand.
13904         (syms_of_event_stream): declare.
13905         (event_stream_force_event_pending): new function. Force an event
13906         on the native event queue so that an event cycle will occur next
13907         time we check.
13908
13909         * event-msw.c:
13910         (struct ntpipe_shove_stream):
13911         (mswindows_enqueue_dispatch_event):
13912         (mswindows_dequeue_dispatch_event):
13913         (mswindows_cancel_dispatch_event):
13914         (mswindows_pump_outstanding_events):
13915         (mswindows_drain_windows_queue):
13916         (mswindows_handle_paint):
13917         (mswindows_wnd_proc):
13918         (mswindows_key_to_emacs_keysym):
13919         (get_process_input_waitable):
13920         (emacs_mswindows_delete_stream_pair): re-indent file.
13921         (mswindows_need_event): do not process further fds if the windows
13922         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13923         fixes the 100% cpu problem.
13924         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13925
13926 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13927
13928         * alloc.h: New.
13929         * dumper.h: New.
13930         * dumper.c: New.
13931
13932         * emacs.c: Moved dump file searching to dumper.c.
13933         (Frunning_temacs_p): Fixed.
13934
13935         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13936         last_lrecord_type_index_assigned.
13937
13938 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13939
13940         * symsinit.h: Added reinit parameter to init_console_stream
13941         declaration.
13942
13943         * lisp.h: Added file parameter to pdump_load declaration.
13944
13945         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13946         support.  Added dump file searching.
13947
13948         * config.h.in: Added EMACS_PROGNAME.
13949
13950         * console-stream.c (init_console_stream): Fix reinitialisation
13951         when running from temacs.
13952
13953         * alloc.c (pdump): Add id support.
13954         (pdump_load): Add file parameter and signature/id support.
13955
13956         * Makefile.in.in: Add full pdump support.
13957
13958 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13959
13960         * postgresql.c: Update documentation to reflect latest code
13961         status.
13962         (print_result): Show tuple counts in printed representation when
13963         appropriate.
13964         (Fpq_put_nbytes): MULE-ize.
13965         (Fpq_get_line_async): Ditto.
13966
13967 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13968
13969         * postgresql.c (Fpq_lo_import): Fix return value.
13970         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13971
13972 2000-03-13  Ben Wing  <ben@xemacs.org>
13973
13974         * alloc.c (pdump_load):
13975         Fix compile warning under mswin.
13976
13977 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13978
13979         * postgresql.c: Mule-ization, bug fixes.
13980         Use PG_CODING to encapsulate coding system name changes.
13981         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13982         (pg-coding-system): Create.
13983
13984         (Fpq_conn_defaults): Mule-ize.
13985         (Fpq_connectdb): Mule-ize & bug fix.
13986         (Fpq_connect_start): Mule-ize.
13987         (Fpq_set_client_encoding): Mule-ize.
13988         (Fpq_finish): Document `DEAD' connection status.
13989         (Fpq_clear): Ditto.
13990         (Fpq_pgconn): Mule-ize.
13991         (Fpq_exec): Mule-ize & bug fix.
13992         (Fpq_send_query): Ditto.
13993         (Fpq_get_result): Ditto.
13994         (Fpq_res_status): Mule-ize.
13995         (Fpq_result_error_message): Mule-ize.
13996         (Fpq_ntuples): fix comments.
13997         (Fpq_fname): Mule-ize.
13998         (Fpq_fnumber): Mule-ize.
13999         (Fpq_ftype): fix comments.
14000         (Fpq_get_value): Mule-ize.
14001         (Fpq_cmd_status): Ditto.
14002         (Fpq_cmd_tuples): Ditto.
14003         (Fpq_oid_value): Ditto.
14004         (Fpq_notifies): Ditto.
14005         (Fpq_lo_import): Ditto.
14006         (Fpq_lo_export): Ditto.
14007         (Fpq_get_line): Ditto.
14008         (Fpq_put_line): Mule-ize and bug fix.
14009         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14010
14011 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14012
14013         * postgresql.c (vars_of_postgresql): Mule-ize.
14014         (Fpq_conn_defaults): Ditto.
14015
14016 2000-03-12  Ben Wing  <ben@xemacs.org>
14017
14018         * alloc.c (Fmake_byte_code):
14019         * alloc.c (debug_string_purity_print):
14020         * alloc.c (pdump_backtrace):
14021         * alloc.c (pdump_get_indirect_count):
14022         * alloc.c (pdump_register_sub):
14023         * alloc.c (pdump_register_object):
14024         * alloc.c (pdump_register_struct):
14025         * alloc.c (pdump_dump_data):
14026         * alloc.c (pdump_reloc_one):
14027         Minor cleanups.
14028
14029         * console-msw.c:
14030         * console-msw.c (GetConsoleHwnd):
14031         * console-msw.c (msw_hide_console):
14032         * console-msw.c (msw_show_console):
14033         * console-msw.c (msw_ensure_console_buffered):
14034         * console-msw.c (msw_output_console_string):
14035         * console-msw.c (console_type_create_mswindows):
14036
14037         a) Added functions to manipulate the console window for use with
14038         shell support.
14039
14040         b) Added support for writing text to the console, which is now
14041         used under Windows when xemacs is not being run non-interactively,
14042         to write text that would otherwise be destined for stdout because
14043         under these circumstances, text written to stdout tends to
14044         disappear and not be seen.
14045
14046         * console-msw.h:
14047         * event-Xt.c:
14048         * event-Xt.c (x_event_to_emacs_event):
14049         * event-Xt.c (describe_event_window):
14050         * events-mod.h (XEMACS_MOD_CONTROL):
14051         * events.c:
14052         * events.c (Fmake_event):
14053         * events.c (character_to_event):
14054         * events.c (event_to_character):
14055         * events.c (format_event_object):
14056         * events.c (Fevent_modifiers):
14057         * events.h:
14058         * events.h (struct key_data):
14059         * events.h (struct button_data):
14060         * events.h (struct misc_user_data):
14061         * frame-x.c (Fcde_start_drag_internal):
14062         * frame-x.c (Foffix_start_drag_internal):
14063         * gpmevent.c (Freceive_gpm_event):
14064         * keymap.c:
14065         * keymap.c (bucky_sym_to_bucky_bit):
14066         * keymap.c (control_meta_superify):
14067         * keymap.c (make_key_description):
14068         * keymap.c (keymap_lookup_directly):
14069         * keymap.c (create_bucky_submap):
14070         * keymap.c (keymap_store):
14071         * keymap.c (define_key_check_and_coerce_keysym):
14072         * keymap.c (define_key_parser):
14073         * keymap.c (define_key_alternate_name):
14074         * keymap.c (Fdefine_key):
14075         * keymap.c (raw_lookup_key_mapper):
14076         * keymap.c (struct map_keymap_unsorted_closure):
14077         * keymap.c (map_keymap_unsorted_mapper):
14078         * keymap.c (map_keymap_sort_predicate):
14079         * keymap.c (map_keymap_sorted):
14080         * keymap.c (accessible_keymaps_mapper_1):
14081         * keymap.c (where_is_recursive_mapper):
14082         * keymap.c (describe_map_mapper):
14083         * keymap.c (describe_map_sort_predicate):
14084         * keymap.c (describe_map):
14085         * keymap.c (complex_vars_of_keymap):
14086         And a number of other files, the key modifier preprocessor
14087         constants that xemacs uses have names that conflict with constants
14088         defined under MS Windows for other purposes, so they were renamed
14089         to begin with the prefix XEMACS_. The variables that hold such
14090         modifiers were changed to consistently be of type int to fix
14091         various compile warnings.
14092
14093         * console.c (complex_vars_of_console):
14094         * device.c:
14095         * device-msw.c:
14096         * device-msw.c (mswindows_finish_init_device):
14097         * device-msw.c (msw_get_workspace_coords):
14098         * device-msw.c (mswindows_device_system_metrics):
14099         and various other files, added support for a new
14100         device property called offset-workspace which returns the position
14101         of the upper left corner of the workspace area and goes along with
14102         the existing size-workspace property.
14103
14104         * dialog-msw.c:
14105         * dialog-msw.c (push_bufbyte_string_as_unicode):
14106         * dialog-msw.c (mswindows_popup_dialog_box):
14107         Added support for XEmacs-style accelerator specifications in
14108         button text.  Note: I didn't add support for this under X Windows,
14109         and somebody needs to do this.
14110
14111         * dialog.c:
14112         * dialog.c (Fpopup_dialog_box):
14113         Documented the support for accelerators that was just mentioned.
14114
14115         editfns.c (get_home_directory): Changed behavior under Windows
14116         when HOME not defined; former behavior was irretrievably broken.
14117
14118         * emacs.c:
14119         * emacs.c (main_1):
14120         * emacs.c (main):
14121         * minibuf.c (clear_echo_area_internal):
14122         * minibuf.c (echo_area_append):
14123         * print.c:
14124         * print.c (std_handle_out_external):
14125         * print.c (std_handle_out_va):
14126         * print.c (fatal):
14127         * print.c (write_string_to_stdio_stream):
14128         * print.c (output_string):
14129         * print.c (debug_print):
14130         * print.c (debug_backtrace):
14131         * print.c (debug_short_backtrace):
14132         Cleaned up the code that prints text to stdout so that this can be
14133         changed to output into a console window instead under MS Windows,
14134         as described above.
14135
14136         * eval.c:
14137         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14138         * eval.c (internal_catch):
14139         * eval.c (unwind_to_catch):
14140         * eval.c (throw_or_bomb_out):
14141         * eval.c (condition_case_1):
14142         * eval.c (signal_1):
14143         * eval.c (check_error_state_sanity):
14144         * eval.c (call_with_suspended_errors_1):
14145         * eval.c (call_with_suspended_errors):
14146         * eval.c (reinit_vars_of_eval):
14147         Added code to catch throw loops and check for a pesky bug that may
14148         be gone now.
14149
14150         * event-msw.c:
14151         * event-msw.c (key_needs_default_processing_p):
14152         * event-msw.c (mswindows_wnd_proc):
14153         * event-msw.c (mswindows_modifier_state):
14154         * event-msw.c (emacs_mswindows_quit_p):
14155         * event-msw.c (vars_of_event_mswindows):
14156         a) Added support for using the alt key to select menu items as is
14157         standard under MS Windows.  This is controlled using the variable
14158         menu-accelerator-enabled, just like under X Windows.  There is an
14159         option on the options menu to turn this support on.  I really
14160         think that it should be on by default under Windows, but I'm not
14161         going to make this change yet.
14162
14163         b)  Added support for dynamic display size changes under Windows.
14164
14165         * event-stream.c:
14166         * event-stream.c (maybe_echo_keys):
14167         * event-stream.c (Fnext_event):
14168         * event-stream.c (command_builder_find_leaf):
14169         * event-stream.c (lookup_command_event):
14170         * event-stream.c (execute_command_event):
14171         * event-stream.c (pre_command_hook):
14172         * event-stream.c (post_command_hook):
14173         * event-stream.c (syms_of_event_stream):
14174         * event-stream.c (vars_of_event_stream):
14175         * event-stream.c (complex_vars_of_event_stream):
14176         * events.h (struct command_builder):
14177
14178         a) Tried to clean up a little bit the horribly written x-specific
14179         accelerator code that crept into this file.  I moved this code
14180         into menubar-x.c where it belongs. I also needed to move the
14181         command builder structure into the file events.h because it is
14182         accessed directly by this accelerator code.  What I didn't do, but
14183         which should be done at some point, is to properly abstract this
14184         code using device methods instead of the kludgy way that it
14185         currently hooks into the event code.
14186
14187         b) Added the lisp variables this-command-properties and
14188         last-command- properties, which should be used to synchronize two
14189         adjacent commands in preference to playing games with the variable
14190         this-command, which is typically what happens.
14191
14192         c) Added some slightly nasty code to hook into the lisp support
14193         for shifted- motion-key selection.  This is actually necessary for
14194         somewhat complicated reasons, which are described in
14195         simple.el. (NB: I think the proper thing would be to have the code
14196         that calls the pre and post command hooks also call out to generic
14197         lisp functions in simple.el, where all built-in stuff could be
14198         added.  I will think about this more.)
14199
14200         * event-unixoid.c (poll_fds_for_input):
14201         * lread.c (readchar):
14202         * redisplay-tty.c (tty_clear_frame):
14203         * redisplay-x.c (x_get_gc):
14204         * signal.c (interrupt_signal):
14205         And a whole bunch of other files: fixed up places that printed
14206         directly to stderr to instead call the function stderr_out so that
14207         the changes I made under Windows work correctly.
14208
14209         * filemode.c (mode_string):
14210         Warning fixes.
14211
14212         * frame-msw.c:
14213         * frame-msw.c (mswindows_size_frame_internal):
14214         Fixed the computation of frame size and position to keep the frame
14215         within the workspace area, rather than within the physical
14216         dimensions of the screen, so that the frame doesn't overlap window
14217         manager decorations, such as the start menu and toolbar, typically
14218         at the bottom of the screen.
14219
14220         * frame.c (vars_of_frame):
14221         Changed the default frame title format under MS Windows to consist
14222         of buffername-XEmacs, which is standard under MS Windows.  I think
14223         it might be a good idea to change this everywhere because I think
14224         it is superior to the current frame title format, but this is the
14225         kind of change that is likely to cause some people to get annoyed,
14226         so I'm not making it.
14227
14228         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14229
14230         * gui-msw.c (mswindows_handle_gui_wm_command):
14231         Fixed compile warnings.
14232
14233         * gui-x.c:
14234         * gui-x.c (strdup_and_add_accel):
14235         * gui-x.c (button_item_to_widget_value):
14236         * gui-x.h:
14237         Added code to automatically put an accelerator onto the beginning
14238         of menu items that don't have one as is now the standard, and is
14239         described more later.  Also fixed things so that the menu item
14240         name can be an evaluated expression, again a new standard.
14241
14242         * gui.c:
14243         * gui.c (gui_item_add_keyval_pair):
14244         * gui.c (make_gui_item_from_keywords_internal):
14245         * gui.c (gui_add_item_keywords_to_plist):
14246         * gui.c (gui_item_accelerator):
14247         * gui.c (gui_name_accelerator):
14248         * gui.c (gui_item_included_p):
14249         * gui.c (gui_item_display_flush_left):
14250         * gui.c (gui_item_display_flush_right):
14251         * gui.c (parse_gui_item_tree_item):
14252         * gui.c (parse_gui_item_tree_children):
14253         * gui.c (parse_gui_item_tree_list):
14254         Mule-ized.  Cleanup.  GCPRO addition.
14255
14256         * line-number.c (buffer_line_number):
14257         * lisp.h:
14258         * lisp.h (EMACS_INT_MAX):
14259         Added the manifest constant EMACS_INT_MIN corresponding to the
14260         existing constant EMACS_INT_MAX.  This is partially to fix compile
14261         warnings under Windows, and partly for cleanliness.
14262
14263         * menubar-msw.c:
14264         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14265         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14266         * menubar-msw.c (displayable_menu_item):
14267         * menubar-msw.c (populate_menu_add_item):
14268         * menubar-msw.c (populate_or_checksum_helper):
14269         * menubar-msw.c (populate_menu):
14270         * menubar-msw.c (update_frame_menubar_maybe):
14271         * menubar-msw.c (prune_menubar):
14272         * menubar-msw.c (msw_char_is_accelerator):
14273         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14274         * menubar-msw.c (mswindows_handle_wm_command):
14275         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14276         * menubar-msw.c (mswindows_handle_wm_initmenu):
14277         * menubar-msw.c (mswindows_update_frame_menubars):
14278         * menubar-msw.c (mswindows_free_frame_menubars):
14279         * menubar-msw.c (mswindows_popup_menu):
14280         Fixed a bug in handling accelerators where an extra character
14281         would be displayed in the menu item.  Also generalized the
14282         function displayable_menu_item because it is now used by the
14283         dialog box code as well.  And finally, added code in the functions
14284         that create the menubar to extract a list of accelerators for the
14285         top level menubar, which is used in the event code to determine
14286         whether a particular alt-key combination should be used to invoke
14287         a menu item, or should be passed through to access the standard
14288         XEmacs keymap binding for this key combination.
14289
14290         Much needed GCPROing.
14291
14292         * menubar-x.c:
14293         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14294         * menubar-x.c (menu_item_descriptor_to_widget_value):
14295         * menubar-x.c (restore_in_menu_callback):
14296         * menubar-x.c (x_popup_menu):
14297         * menubar-x.c (menu_move_up):
14298         * menubar-x.c (menu_move_down):
14299         * menubar-x.c (menu_move_left):
14300         * menubar-x.c (menu_move_right):
14301         * menubar-x.c (menu_select_item):
14302         * menubar-x.c (command_builder_operate_menu_accelerator):
14303         * menubar-x.c (menu_accelerator_junk_on_error):
14304         * menubar-x.c (command_builder_find_menu_accelerator):
14305         * menubar-x.c (Faccelerate_menu):
14306         * menubar.h:
14307         Moved a whole bunch of code here that was previously in
14308         event-stream.c as described above.  There is also code connected
14309         to the new standard of adding an accelerator to the beginning of
14310         menu items that don't have one as described above and below.
14311
14312         * menubar.c:
14313         * menubar.c (menu_parse_submenu_keywords):
14314         * menubar.c (Fmenu_find_real_submenu):
14315         * menubar.c (Fnormalize_menu_item_name):
14316         * menubar.c (syms_of_menubar):
14317         * menubar.c (vars_of_menubar):
14318         * menubar.c (complex_vars_of_menubar):
14319
14320         a) Cleaned up a bunch of documentation and improved it.
14321
14322         b) XEmacs now automatically adds an accelerator onto the beginning
14323         of any menu items that don't have one.  I did this because there
14324         will inevitably be some menu items on the main menubar that don't
14325         have accelerators on them because the package that adds that
14326         particular menu item hasn't yet been fixed up to have accelerators
14327         in them and it looked rather strange to have some items with and
14328         some items without accelerators, especially since even in items
14329         without accelerators, you can, at least under windows, still
14330         access the item through an accelerator corresponding to the first
14331         character in the item's name.  If people don't like this behavior,
14332         I can add a variable to turn it off optionally, but I'm not sure
14333         this is a good idea because we really do need to have accelerators
14334         on all of the menu items, and if a package doesn't like the
14335         accelerators being put on the first character, then it should put
14336         the accelerators where they belong.
14337
14338         c) I made a behavior change, which is that the descriptor that
14339         specifies the text of the menu item, which formerly was just a
14340         string, can now also be an evaluated expression.  This makes this
14341         descriptor parallel with all of the others, which could also be
14342         evaluated expressions.  This also obviates the need for the
14343         keyword :label, which was previously listed in the documentation
14344         as unimplemented, and which was for the same purpose.
14345
14346         d) GCPROing.
14347
14348         * ntproc.c:
14349         * ntproc.c (new_child):
14350         * ntproc.c (sys_spawnve):
14351         * ntproc.c (find_child_console):
14352         * ntproc.c (sys_kill):
14353         Fixed compile warnings.  By the way, this file should really go
14354         away entirely, and this will happen as soon as Kirill makes his
14355         final round of process cleanups, which affect the function
14356         call-process.
14357
14358         * process-nt.c:
14359         * process-nt.c (struct nt_process_data):
14360         * process-nt.c (find_process_from_pid):
14361         * process-nt.c (send_signal_the_nt_way):
14362         * process-nt.c (enable_child_signals):
14363         * process-nt.c (find_child_console):
14364         * process-nt.c (send_signal_the_95_way):
14365         * process-nt.c (nt_finalize_process_data):
14366         * process-nt.c (ensure_console_window_exists):
14367         * process-nt.c (nt_create_process):
14368         * process-nt.c (nt_kill_child_process):
14369         * process-nt.c (nt_kill_process_by_pid):
14370         * process-nt.c (nt_open_network_stream):
14371         * process-nt.c (vars_of_process_nt):
14372         Copied over code from Emacs 20.5 to correctly send signals to sub-
14373         processes under Windows 95.  Also added code to automatically
14374         create and hide console window when a sub-process is created under
14375         Windows 95, which obviates the need for the separate runemacs.exe
14376         executable, and finally implemented some variables that were
14377         implemented in Emacs 20.5, but previously not in XEmacs.  These
14378         include mswindows- start-process-share-console and
14379         mswindows-start-process-inherit-error-mode. (Both of these only
14380         apply to Windows 95.)
14381
14382         * regex.c (regex_compile): Fixed a compile warning.
14383
14384         * select-msw.c:
14385         * select-msw.c (mswindows_own_selection):
14386         * select-msw.c (mswindows_get_foreign_selection):
14387         * select-msw.c (mswindows_disown_selection):
14388         * select-msw.c (console_type_create_select_mswindows):
14389         * select-msw.c (syms_of_select_mswindows):
14390         Cleaned up the file and implemented the device method
14391         selection_exists_p, which had accidentally been left out.  Also
14392         removed four lisp functions that were remnants from before the
14393         time when the selection code was properly device abstracted.
14394         These functions are no longer needed because there are generic
14395         equivalents, and because they were added recently and don't exist
14396         in FSF Emacs, I don't think there's any problem with just deleting
14397         them.
14398
14399         * sysdep.c:
14400         * sysdep.c (sys_subshell):
14401         Fixed a compile warning, although in this case there's probably
14402         something wrong with this code, and it ought to be looked into
14403         more thoroughly by somebody who understands it.
14404
14405         * window.c:
14406         * window.c (Fwindow_text_area_height):
14407         * window.c (Fwindow_width):
14408         * window.c (Fwindow_full_width):
14409         * window.c (Fwindow_pixel_width):
14410         * window.c (debug_print_window):
14411         * window.c (syms_of_window):
14412         Added functions window-text-area-height and window-full-width,
14413         which are functions for returning various width and height
14414         characteristics of a window. (One of these functions is necessary
14415         for making the file dialog box work correctly, and the other one
14416         was added for completeness.)  Also added a table to the
14417         documentation for window-height which describes the entire scheme
14418         for accessing width and height characteristics of a window.
14419
14420 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14421
14422         * nt.c (fstat): Added a comment for another problem with
14423         non-encapsulated [f]stat(), reported by Adrian Aichner
14424         <aichner@ecf.teradyne.com>.
14425
14426 2000-03-11  Andy Piper  <andy@xemacs.org>
14427
14428         * window.c (make_dummy_parent): initialize subwindow instance
14429         cache.
14430         (Fset_window_configuration): zero extent_modiff.
14431
14432 2000-03-10  Andy Piper  <andy@xemacs.org>
14433
14434         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14435         more changes can be triggered.
14436         (Fredisplay_frame): ditto.
14437         (Fredraw_device): ditto.
14438         (Fredisplay_device): ditto.
14439         (redisplay_frame): make non-static.
14440         (redisplay_frame): call update_frame_gutter_geometry outside of
14441         display proper.
14442
14443         * gutter.h: declare update_frame_gutter_geometry.
14444
14445         * redisplay.h: declare redisplay_frame.
14446
14447         * gutter.c (update_frame_gutter_geometry): move geometry changes
14448         in update_frame_gutters here. Geometry changes can only occur
14449         outside of redisplay.
14450         (update_frame_gutters): remove geometry change code.
14451         (Fredisplay_gutter_area): make sure that we are in display when we
14452         update and that we have flushed any size changes.
14453
14454 2000-03-11  Andy Piper  <andy@xemacs.org>
14455
14456         * alloc.c (pdump_dump_data): remove i & count shadows.
14457
14458 2000-02-27  Mike Alexander  <mta@arbortext.com>
14459
14460         * sysdep.h: Declare pdump_read_file
14461
14462         * sysdep.c (pdump_read_file): New function
14463
14464         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14465         dump data
14466
14467 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14468
14469         * lrecord.h: add `lrecord_type_pgsetenv'.
14470
14471 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14472
14473         * symsinit.h: declare (vars|syms)_of* functions.
14474         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14475
14476 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14477
14478         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14479
14480         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14481         GCCs.
14482
14483         * emacs.c (main_1): Call postgres initialization code.
14484
14485         * postgresql.h: New file.  PostgreSQL RDBMS support.
14486         * postgresql.c: New file.
14487
14488 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14489
14490         * redisplay-output.c (redisplay_output_display_block): Disable
14491         redundant code.
14492
14493 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14494
14495         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14496         (Fcanna_henkan_next): Ditto.
14497         (Fcanna_bunsetu_henkou): Ditto.
14498         (Fcanna_henkan_kakutei): Ditto.
14499         (Fcanna_henkan_end): Ditto.
14500         (Fcanna_henkan_quit): Ditto.
14501         (Fcanna_henkan_next): Set retun value correctly.
14502         (c2mu): Use unsigned char instead of signed char.
14503
14504 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14505
14506         * emacs.c (main_1): Always call syms_of_gui.
14507         * inline.c: include gui.h
14508
14509 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14510
14511         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14512         converted to Lisp_Object.
14513         (Qtop_bottom): New variable.
14514         (syms_of_redisplay): Initialize it.
14515         * redisplay.h (Vvisible_bell): Ditto.
14516         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14517         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14518         only flash top and bottom.
14519
14520 2000-03-08  Andy Piper  <andy@xemacs.org>
14521
14522         * buffer.c (Frename_buffer): record new buffer name the right way.
14523
14524 2000-03-08  Andy Piper  <andy@xemacs.org>
14525
14526         * glyphs.c (update_subwindow): increase hash depth so that widget
14527         items get picked up properly.
14528
14529         * redisplay-output.c (compare_runes): increase hash depth so that
14530         widget items get picked up properly.
14531
14532 2000-03-08  Andy Piper  <andy@xemacs.org>
14533
14534         * gutter.c (output_gutter): add some debug.
14535
14536         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14537         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14538         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14539
14540         * redisplay-output.c (compare_runes): use display_hash to
14541         determine if glyphs really are not the same.
14542
14543         * glyphs.c (update_subwindow): check display_hash to see if
14544         anything really needs to be updated. If not then do
14545         nothing. Record the display_hash after updating.
14546         (image_instance_equal): compare the image_instance face also.
14547
14548 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14549
14550         * redisplay.h: Fix comment style.
14551
14552 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14553
14554         * consle-msw.h (struct mswindows_frame):
14555         Added new member paint_pending to indicate whether a WM_PAINT
14556         magic event has been queued for this frame.
14557
14558         * event-msw.c (mswindows_drain_windows_queue):
14559         Don't queue a WM_PAINT magic event if one is already queued.
14560         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14561
14562         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14563
14564 2000-03-07  Didier Verna  <didier@xemacs.org>
14565
14566         * dired.c: #include `regex.h' after `sysfile.h'.
14567
14568 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14569
14570         * sound.c (init_nas_sound): Fix compiler warning.
14571
14572         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14573         (FREE_STRUCT_P):
14574         (MARK_STRUCT_AS_FREE):
14575         (MARK_STRUCT_AS_NOT_FREE):
14576         Make `gcc -fstrict-aliasing' work properly.
14577
14578 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14579
14580         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14581         (mswindows_delete_device): Call CoUnnitialize().
14582
14583         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14584
14585 2000-02-25    <CraigL@DyCon.com>
14586
14587         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14588         <errno.h>.
14589
14590         * sysdep.c: This extern declaration for environ prevents MinGW
14591         from finding the variable in CRTDLL.DLL.
14592
14593         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14594         windows headers.
14595         (SHGFI_EXETYPE): ..
14596         (WM_MOUSEWHEEL): ..
14597         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14598         definitions.
14599         (MMRESULT): Removed, now defined in cygwin's windows headers.
14600         (TIMECAPS): ..
14601         (uid_t,gid_t,pid_t,ssize_t): ..
14602         (_timeb): Removed, MinGW defines both _timeb and timeb.
14603         (HAVE_H_ERRNO): Added.
14604         (HAVE_TZNAME): Added, configure is not detecting this.
14605
14606 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14607
14608         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14609         * syntax.c (syntax_match): Use it.
14610
14611         * cmds.c: Import auto-fill-chars from FSF Emacs.
14612         (Vauto_fill_chars): New variables.
14613         (internal_self_insert): Check Vauto_fill_chars.
14614         (vars_of_cmds):
14615         Declare auto-fill-chars as a Lisp variable and initialize it.
14616
14617 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14618
14619         * fileio.c (Fmake_symbolic_link):
14620         (Ffile_symlink_p):
14621         Run handlers even if local machine doesn't have symlinks.
14622
14623 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14624
14625         * event-msw.c (mswindows_drain_windows_queue):
14626         Don't generate paint magic events for non-XEmacs frames.
14627
14628 2000-03-05  Andy Piper  <andy@xemacs.org>
14629
14630         * redisplay.c (redisplay_frame): generate_displayable_area and
14631         friends assumes that we are not in GC, we therefore have to make
14632         sure that this doesn't happen.
14633
14634         * gutter.c (calculate_gutter_size): generate_displayable_area
14635         assumes that we are not in GC, we therefore have to make sure that
14636         this doesn't happen.
14637
14638 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14639
14640         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14641
14642 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14643
14644         * redisplay.c (regenerate_window): Make sure we set a sane value
14645         for end_pos even if we jump out of the loop.
14646         (regenerate_window): Answer Ben's question :-).
14647         (start_end_of_last_line): Add may_error argument.
14648         (start_of_last_line):
14649         (end_of_last_line): Pass may_error = 0.
14650         (end_of_last_line_may_error): New function.
14651         (pixel_to_glyph_translation): Use it, so we don't crash in
14652         event_to_glyph.
14653
14654 2000-03-04  Andy Piper  <andy@xemacs.org>
14655
14656         * window.h (struct window): add gutter_extent_modiff.
14657
14658         * window.c (allocate_window): zero out gutter_extent_modiff.
14659
14660         * redisplay.h: declare sync_display_line_structs.
14661
14662         * redisplay.c (add_glyph_rune): add a better comment.
14663
14664         * redisplay-output.c (sync_display_line_structs): made non-static.
14665         (compare_runes): remove unneccesary glyph cachel access.
14666
14667         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14668
14669         * gutter.c (output_gutter): don't output the gutter if extent
14670         changes only involve extents in buffers. use 4 sets of display
14671         lines.
14672         (gutter_extent_signal_changed_region_maybe): new function. Mark
14673         extents in gutters as changed.
14674         (update_frame_gutters): use 4 sets of display lines.
14675         (reset_gutter_display_lines): ditto.
14676         (free_frame_gutters): ditto.
14677         (redraw_exposed_gutter): force output of gutters.
14678
14679         * frame.h (struct frame): add 4 sets of gutter display lines.
14680
14681         * extents.c: (extent_changed_for_redisplay): signal changes to
14682         extents in strings in the gutter as well as extents in buffers.
14683
14684 2000-03-02  Andy Piper  <andy@xemacs.org>
14685
14686         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14687
14688         * frame.c (Fmake_frame): make sure the gutters get initialized
14689         after the frame is visible.
14690         (set_frame_selected_window): re-arrange compilation macros a
14691         little.
14692         (change_frame_size_1): mark gutters changed.
14693
14694         * device.c (Fset_device_class): mark gutters changed.
14695
14696 2000-03-01  Andy Piper  <andy@xemacs.org>
14697
14698         * window.c (window_top_frame_gutter_height): deleted.
14699         (window_bottom_frame_gutter_height): ditto.
14700         (window_left_frame_gutter_height): ditto.
14701         (window_right_frame_gutter_height): ditto.
14702         (window_top_gutter_height): don't use them.
14703         (window_bottom_gutter_height): ditto.
14704         (window_left_gutter_width): ditto.
14705         (window_right_gutter_width): ditto.
14706         (Fsplit_window): ditto.
14707         (Fwindow_pixel_edges): don't use border dimensions here.
14708
14709         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14710         (update_scrollbar_instance): ditto.
14711
14712         * redisplay.c (generate_modeline): don't take gutters into account.
14713         (generate_modeline): ditto.
14714         (redisplay_frame): small gutter display optimization.
14715
14716         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14717
14718         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14719         gutters into account.
14720
14721         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14722         for window position and type.
14723
14724         * gutter.c (get_gutter_coords): fix for frame gutters.
14725         (update_frame_gutters): update frame geometry if the gutters have
14726         changed.
14727         (init_frame_gutters): record current gutter geometries.
14728
14729         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14730         var.
14731         (mswindows_widget_instantiate): ditto.
14732
14733         * frame.h (struct frame): add current_gutter_bounds.
14734
14735         * frame.c (change_frame_size_1): position window and minibuffer
14736         appropriately taking into account the frame gutters.
14737
14738         * frame-x.c: (x_initialize_frame_size): take into account the
14739         frame gutters.
14740
14741 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14742
14743         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14744
14745 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14746
14747         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14748
14749 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14750
14751         * file-coding.c (reset_decoding_stream): Clear previous
14752         detection state when autodetect.
14753
14754 2000-02-29  Didier Verna  <didier@xemacs.org>
14755
14756         * extents.c (set_extent_glyph_1): don't require extents to be
14757         attached.
14758
14759 2000-02-27  Andy Piper  <andy@xemacs.org>
14760
14761         * gutter.c (Fset_default_gutter_position): don't default left and
14762         right gutter visibility to t.
14763         (Fset_default_gutter_position): run
14764         default-gutter-position-changed-hook.
14765         (syms_of_gutter): add default-gutter-position-changed-hook.
14766
14767 2000-02-26  Andy Piper  <andy@xemacs.org>
14768
14769         * specifier.c (Fmake_specifier): add gutter references.
14770
14771         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14772
14773         * lisp.h: declare Fvalid_plist_p.
14774
14775         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14776         as changed.
14777         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14778         well as its visibility so that it gets reconstructed.
14779         (construct_window_gutter_spec): new function. Construct a string
14780         to be displayed in the gutter from a plist of strings. Take care
14781         to only use elements that are declared as visible.
14782         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14783         WINDOW_GUTTER.
14784         (gutter_validate): allow plists of strings in the specifier.
14785         (gutter_specs_changed): construct the real_gutter from the gutter
14786         specs using construct_window_gutter_spec.
14787         (gutter_visible_validate): gutter-visible is a new specifier type.
14788         (Fgutter_visible_specifier_p): new function for the new specifier.
14789         (syms_of_gutter): declare gutter-visible and
14790         Fgutter_visible_specifier_p.
14791         (specifier_type_create_gutter): intitalize new gutter-visible
14792         specifier.
14793         (reinit_specifier_type_create_gutter): ditto.
14794         (specifier_vars_of_gutter): use new specifier type for gutter
14795         visibility.
14796         (init_frame_gutters): construct real_gutter correctly.
14797         (Fgutter_specifier_p): beef up documentation.
14798         (Fgutter_size_specifier_p): ditto.
14799
14800         * winslots.h: add real_gutter slots.
14801
14802 2000-02-25  Andy Piper  <andy@xemacs.org>
14803
14804         * device-msw.c: Be kind to older cygwin versions. From Raymond
14805         Toy <toy@rtp.ericsson.se>.
14806
14807         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14808         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14809
14810 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14811
14812         * elhash.c (MARK_OBJ): Practice macro hygiene.
14813
14814 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14815
14816         * miscplay.c: s/__inline__/inline/g;
14817         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14818         (get_device_compdc): INLINE ==> static inline
14819         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14820         find -name '*.h' | \
14821         xargs global-replace \
14822         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14823
14824 2000-02-25  Andy Piper  <andy@xemacs.org>
14825
14826         * window.c (window_top_frame_gutter_height): new function.
14827         (window_top_window_gutter_height): ditto.
14828         (window_top_gutter_height): use them.
14829         (window_bottom_frame_gutter_height): new function.
14830         (window_bottom_window_gutter_height): ditto.
14831         (window_bottom_gutter_height): use them.
14832         (window_left_window_gutter_width): new function.
14833         (window_left_frame_gutter_width): ditto.
14834         (window_left_gutter_width): use them.
14835         (window_right_window_gutter_width): new function.
14836         (window_right_frame_gutter_width): ditto.
14837         (window_right_gutter_width): use them.
14838         (window_pixel_height): new function. calulate window pixel height
14839         with frame gutter involvement.
14840         (Fsplit_window): calculate new sizes taking frame gutters into
14841         account.
14842         (window_char_height_to_pixel_height): don't include frame gutters.
14843         (window_char_height): use window_pixel_height.
14844         (window_pixheight): rename from window_pixel_height.
14845         (change_window_height): use it.
14846         (window_pixel_height_to_char_height): don't include frame gutters.
14847         (window_char_width_to_pixel_width): ditto.
14848
14849 2000-02-25  Andy Piper  <andy@xemacs.org>
14850
14851         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14852         if it is.
14853
14854 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14855
14856         * alloc.c (staticpro):
14857         (staticpro_nodump):
14858         (dumpstruct):
14859         (dumpopaque):
14860         (pdump_wire):
14861         (pdump_wire_list):
14862         (compact_string_chars):
14863         (pdump_dump_wired):
14864         Convert:  if (foo) abort();  ==>  assert (! foo);
14865
14866         * eldap.c (Fldap_search_basic):
14867         (Fldap_add):
14868         (Fldap_modify):
14869         (Fldap_delete):
14870         Fix compiler warnings, and possible crashes if (random) return
14871         value were to be used.
14872
14873 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14874
14875         * device-msw.c: Workaround ResetDC failure.
14876
14877         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14878         applying a devmode.
14879
14880         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14881         (mswindows_text_width): Do not start printer page.
14882
14883         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14884
14885         * glyphs-msw.c: Added image methods to msprinter console and
14886         msprinter-specific image instantiation.
14887
14888 2000-02-20  Mike Alexander  <mta@arbortext.com>
14889
14890         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14891         to avoid crashes when selection-sets-clipboard is on
14892         (mswindows_own_selection): ditto
14893
14894 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14895
14896         * glyphs-msw.c:
14897         * redisplay-msw.c (get_frame_dc):
14898         (get_frame_compdc):
14899         * console-msw.h:
14900         * device-msw.c (mswindows_init_device):
14901         (mswindows_delete_device):
14902         (msprinter_init_device):
14903         (msprinter_delete_device):
14904         * frame-msw.c (mswindows_init_frame_1):
14905         (mswindows_delete_frame):
14906         (msprinter_init_frame_3):
14907         (msprinter_delete_frame): Move compatible DC to device object from
14908         frame object, for both mswindows and msprinter. Only one at a time
14909         is needed, it is a real waste to have one per frame!
14910
14911 2000-02-23  Andy Piper  <andy@xemacs.org>
14912
14913         * glyphs.c: add dynamic width and height elements.
14914         (image_instance_equal): ditto.
14915
14916         * glyphs-widget.c (widget_query_geometry): calculate width and
14917         height dynamically if required.
14918         (initialize_widget_image_instance): initialize dynamic dimensions.
14919         (widget_instantiate): pick-up dynamic dimensions.
14920
14921         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14922         dynamic determination. Add appropriate macros.
14923
14924         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14925         dimensions safe.
14926         (WINDOW_GUTTER_SIZE): ditto.
14927         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14928
14929         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14930         inline.
14931         (get_frame_dc): ditto.
14932
14933         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14934         here.
14935
14936 2000-02-23  Martin Buchholz <martin@xemacs.org>
14937
14938         * XEmacs 21.2.31 is released.
14939
14940 2000-02-22  Ben Wing <ben@xemacs.org>
14941
14942         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14943
14944 2000-02-22  Andy Piper  <andy@xemacs.org>
14945
14946         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14947
14948 2000-02-21  Mike Sperber <mike@xemacs.org>
14949
14950         * .dbxrc:
14951         * .gdbinit:
14952         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14953         variables.
14954
14955 2000-02-21  Mike Sperber <mike@xemacs.org>
14956
14957         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14958
14959 2000-02-21  Martin Buchholz <martin@xemacs.org>
14960
14961         * XEmacs 21.2.30 is released.
14962
14963 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14964
14965         Performance hacking.
14966         * *.c (syms_of_*):
14967         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14968         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14969         * emacs.c (main_1):
14970         * lisp.h (DEFUN):
14971         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14972         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14973         * symeval.h (DEFVAR_SYMVAL_FWD):
14974         * symbols.c (guts_of_unbound_marker):
14975         Make all c_readonly objects also lisp_readonly and marked for life.
14976         * lrecord.h (struct lrecord_implementation):
14977         Document flags better.
14978         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14979         * lrecord.h (DECLARE_LRECORD):
14980         * lrecord.h (XSETRECORD):
14981         * lrecord.h (RECORDP):
14982         * lrecord.h (RECORD_TYPEP):
14983         * lrecord.h (RECORD_MARKER): New.
14984         * lrecord.h (error_check_*):
14985         * lrecord.h (CONCHECK_NONRECORD):
14986         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14987         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14988         * lrecord.h (set_lheader_implementation):
14989         * lrecord.h (enum lrecord_type): New.
14990         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14991         * alloc.c (disksave_object_finalization_1):
14992         * alloc.c (mark_object):
14993         * alloc.c (lrecord_type_index):
14994         * alloc.c (tick_lcrecord_stats):
14995         * alloc.c (Fgarbage_collect):
14996         * alloc.c (init_alloc_once_early):
14997         * alloc.c (pdump_load):
14998         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14999         * alloc.c (lrecord_type_index): Delete.
15000         Make lisp object type indexes be constant.
15001           Makes (byte-compile) 5% faster.
15002         Put all marker functions into their own array.
15003           Makes (garbage-collect) 5% faster.
15004         Optimize SYMBOL_VALUE_MAGIC_P.
15005           Makes (byte-compile) 2-3% faster.
15006         * config.h.in (gc_checking_assert): New.
15007         * alloc.c: Use gc_checking_assert().
15008         * .dbxrc: Make compatible with new object type implementation.
15009         * .gdbinit: Make compatible with new object type implementation.
15010         * alloc.c: Delete all symbols defined only for debugging, such as
15011         Lisp_Type_Vector and lrecord_charset.
15012
15013 2000-02-21  Andy Piper  <andy@xemacs.org>
15014
15015         * gui-msw.c (Fmswindows_shell_execute): fix file location
15016         problems.
15017
15018         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15019         unshowing so that set_window_buffer doesn't undo
15020         kill_buffer_hook's hard work.
15021
15022         * glyphs-widget.c (tab_control_query_geometry): don't count the
15023         first item when calculating geometry.
15024
15025         * glyphs.c (map_subwindow): remove redundant code.
15026         (update_frame_subwindows): be more circumspect about when to
15027         update subwindows.
15028
15029         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15030         when items haven't changed. Update faces if faces have changed as
15031         well as just the widget face.
15032         (x_tab_control_update): Update faces if faces have changed as well
15033         as just the widget face.
15034
15035 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15036
15037         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15038         registration.
15039         (build_syscolor_string): Use mswindows_color_to_string to try to
15040         get a named color.
15041         (mswindows_device_system_metrics): Reverse the foreground and
15042         background colors so that they match the documentation.
15043
15044         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15045         they match the default Windows palette.
15046         (mswindows_color_to_string): New function.
15047
15048 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15049
15050         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15051
15052 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15053
15054         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15055         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15056
15057         * symbols.c (init_symbols_once_early): Removed obsolete
15058         DATA_SEG_BITS related kludge.
15059         (defvar_magic): Ditto.
15060
15061         * malloc.c: Removed obsolete DATA_SEG_BITS
15062         * ralloc.c: Ditto.
15063         * mem-limits.h: Ditto.
15064
15065         * Makefile.in.in: Removed obsolete HAVE_SHM
15066         * emacs.c: Ditto.
15067
15068 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15069
15070         *  device-msw.c (mswindows_delete_device): Free DDE string
15071         handles.
15072
15073 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15074
15075         * keymap.c (get_keyelt):
15076         * unexnt.c (unexec):
15077         * vm-limit.c (memory_warnings):
15078         * ntheap.c (recreate_heap):
15079         * ntheap.h (UNINIT_PTR):
15080         * select-msw.c (Fmswindows_get_clipboard):
15081         (Fmswindows_set_clipboard):
15082         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15083         * objects-msw.c:
15084         * menubar-msw.c (displayable_menu_item):
15085         * glyphs-msw.c:
15086         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15087         * sysdep.c (sys_subshell):
15088         * process-nt.c (nt_create_process):
15089         * nt.c (normalize_filename):
15090         (dostounix_filename):
15091         (unixtodos_filename):
15092         * ntproc.c (win32_executable_type):
15093         * ntplay.c (play_sound_data_1):
15094         (play_sound_file):
15095         * editfns.c (get_home_directory):
15096         * event-msw.c (struct winsock_stream):
15097         (mswindows_dde_callback):
15098         * device-msw.c (msprinter_init_device):
15099         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15100
15101         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15102         mswindows_clear_toolbar were swapped!
15103
15104         * objects-msw.c:(colormap_t):
15105         (fontmap_t):
15106         * emacs.c (struct standard_args): Fixed const jumble.
15107
15108         * glyphs-widget.c (update_widget): Fixed comparison notation.
15109
15110         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15111
15112         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15113         __declspec(noreturn) syntax.
15114
15115 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15116
15117         * eldap.c (Fldap_open):
15118         (Fldap_search_basic):
15119         (Fldap_add):
15120         (Fldap_modify):
15121         Use new coding system conversion macros.
15122
15123 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15124
15125         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15126
15127 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15128
15129         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15130         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15131
15132         * eldap.c (Qadd, Qreplace): New constant symbols
15133         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15134         interruptions by XEmacs signals
15135         Remove unnecessary calls to slow_down_interrupts and
15136         speed_up_interrupts
15137         (Fldap_search_basic): Renamed from Fldap_search_internal
15138         Added new optional parameter VERBOSE that triggers the
15139         display of progress messages
15140         Remove unnecessary calls to slow_down_interrupts and
15141         speed_up_interrupts
15142         LDAP result code analysis rewritten
15143         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15144         (syms_of_eldap): Define the new symbols and functions
15145
15146
15147 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15148
15149         * realpath.c: Determine PATH_MAX maximally portably.
15150
15151         * insdel.c (bytecount_to_charcount): Optimize.
15152         The function used to be optimized for entirely ASCII sequences.
15153         Now it is optimized for successive characters from the same
15154         charset.  This also wins big for _mostly_ ASCII sequences.
15155
15156         * fileio.c (Ffile_truename): convert return from realpath() using
15157         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15158         - Rewrite GCPROing slightly.
15159
15160         * sysdep.c (sys_open): Do filename conversion, like all other
15161         sys_* functions.  Fixes bug:
15162         (let ((file-name-coding-system 'iso-8859-2))
15163            (write-region x y latin2-name))
15164         ==> writes filename using internal encoding.
15165
15166 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15167
15168         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15169         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15170         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15171         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15172         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15173         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15174         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15175         (CONST_IF_NOT_DEBUG): Delete.
15176         * alloc.c (this_one_is_unmarkable): Delete.
15177         (mark_object): Don't check for this_one_is_unmarkable. Use the
15178         c_readonly flag instead.
15179         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15180
15181 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15182
15183         * event-msw.c (mswindows_drain_windows_queue):
15184         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15185         away redundant repaint events.
15186
15187 2000-02-17  Andy Piper  <andy@xemacs.org>
15188
15189         * redisplay.h: declare mark_redisplay_structs.
15190
15191         * redisplay.c (redisplay_window):
15192         (redisplay_frame): don't check subwindows_state_changed.
15193         (mark_redisplay): mark gutters here.
15194
15195         * glyphs.c: (instantiate_image_instantiator): always layout if we
15196         haven't done so already.
15197         (allocate_image_instance): don't mark as dirty.
15198         (update_subwindow): bind inhibit_quit.
15199
15200         * gutter.c (mark_gutters): new function.
15201
15202         * glyphs-x.c (x_update_widget): Always resize to get round a
15203         widget bug.
15204
15205         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15206         breaking absolutely everything.
15207
15208         * gutter.h: declare mark_gutters.
15209
15210 2000-02-16  Martin Buchholz <martin@xemacs.org>
15211
15212         * XEmacs 21.2.29 is released.
15213
15214 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15215
15216         * fns.c (size_bit_vector): Fix computation of the size.
15217
15218 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15219
15220         * *.[ch]: Change CONST to const globally.
15221         find -name '*.[ch]' | \
15222         xargs global-replace \
15223         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15224         - Remove vestigial references to CONST_IS_LOSING
15225
15226 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15227
15228         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15229         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15230         events instead of dispatching them directly.
15231         (mswindows_handle_paint): New function to do repainting.
15232         (mswindows_wnd_proc):
15233         (emacs_mswindows_handle_magic_event): Call above function.
15234
15235 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15236
15237         * objects-msw.c (mswindows_create_font_variant): Return the new
15238         font handle.
15239         (initialize_font_instance): Get font metrics from the underlined
15240         variant of the font to cope with the case where the underlined
15241         font has a bigger descent.
15242
15243 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15244
15245         * gui.c (gui_item_accelerator): Return the first underlined
15246         character in item name.
15247
15248 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15249
15250         * lisp.h: Added Qprinter.
15251
15252         * general.c (syms_of_general): Initialized it.
15253
15254         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15255         (get_frame_dc):
15256         (get_frame_compdc): Made inline.
15257
15258         * console.h (struct console_methods): Added eject_page method.
15259
15260         * frame.h: Added FRAME_DISPLAY_P and friends.
15261         Aligned backslahes in many macros in more readable fashion.
15262         Added page_number to struct frame, and an accessor macro
15263         for it.
15264
15265         * defice.h: Added DEVICE_DISPLAY_P and friends.
15266
15267         * device.c (Fdevice_printer_p): Used these.
15268
15269         * frame.c (allocate_frame_core): Initialize page number.
15270         (Fprint_job_page_number):
15271         (Fprint_job_eject_page): Implemented.
15272
15273         * frame-msw.c (msprinter_eject_page): Added method.
15274         (msprinter_start_page): Added.
15275
15276         * window.c (Fwindow_truncated_p): Fixed docstring.
15277         (Fwindow_last_line_visible_height): Implemented.
15278
15279 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15280
15281         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15282
15283 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15284
15285         * syntax.c (scan_words): Always advance at least one character.
15286
15287 2000-02-13  Andy Piper  <andy@xemacs.org>
15288
15289         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15290         to make sure the glyph is in the cachels.
15291
15292         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15293         global image instance flag.
15294         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15295         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15296
15297         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15298         (Fset_image_instance_property): mark layout as changed.
15299         (invalidate_glyph_geometry_maybe): mark layout as changed.
15300         (glyph_width): use new NEEDS_LAYOUT macro.
15301         (glyph_ascent): ditto.
15302         (glyph_descent): ditto.
15303         (glyph_height): ditto.
15304         (image_instance_layout): mark layout as clean after laying out.
15305         (update_subwindow): don't mark layout as clean here.
15306
15307         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15308         should no longer be needed.
15309
15310         * glyphs-x.c (x_update_widget): sanitize asserts.
15311         (x_finalize_image_instance): sanitize assignment to widgets.
15312
15313         * glyphs-widget.c (widget_instantiate): don't need to clear the
15314         layout flag here.
15315
15316 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15317
15318         * sysdep.c (getcwd): Use standard prototype.
15319         * sysdep.h (getcwd): Use standard prototype.
15320
15321         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15322         (sequence, start, end).
15323         Remove redundant type checking.
15324         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15325         view of `caller-protects') to avoid a crash where the real fix was
15326         found elsewhere.
15327
15328 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15329
15330         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15331
15332         * s/sol2.h: Remove feature macro initialization.
15333
15334         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15335         (vector_hash): New.  Code from internal_hash.
15336         * lrecord.h:
15337         Fix up allocation subsystem comments.
15338
15339         * config.h.in: Add __EXTENSIONS__ for Solaris.
15340
15341         * systime.h (EMACS_GETTIMEOFDAY): New.
15342         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15343         Remove Solaris-specific code.
15344         Use void* for the (ignored) second arg for gettimeofday().
15345
15346         * elhash.c (hash_table_hash): Implement it, finally.
15347         * elhash.c:  Use hashcode_t.
15348
15349         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15350         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15351
15352         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15353         * fns.c (size_bit_vector):
15354         * alloc.c (size_vector):
15355         (make_vector_internal):
15356         (make_bit_vector_internal):
15357         (sweep_bit_vectors_1):
15358         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15359
15360 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15361
15362         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15363         Include strings.h to avoid warnings for bzero and strcasecmp.
15364
15365 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15366
15367         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15368         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15369
15370         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15371         sequence.
15372
15373 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15374
15375         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15376         use a value field instead.
15377         (symbol_value_forward_forward): Use value field.
15378         (DEFVAR_SYMVAL_FWD): Use value field.
15379         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15380         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15381         (DEFVAR_CONST_INT): Ditto.
15382         (DEFVAR_BOOL): Ditto.
15383         (DEFVAR_CONST_BOOL): Ditto.
15384         (DEFVAR_INT_MAGIC): Ditto.
15385         (DEFVAR_BOOL_MAGIC): Ditto.
15386
15387         * symbols.c (guts_of_unbound_marker): Use value field.
15388         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15389         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15390
15391         * lisp.h: Declare dumpopaque and noninteractive1.
15392
15393         * alloc.c (dumpopaque): Added.
15394         (pdump_dump_opaquevec): Added.
15395         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15396         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15397         noninteractive.
15398
15399 2000-02-10  Andy Piper  <andy@xemacs.org>
15400
15401         * glyphs.c (image_instance_layout): if the size changes, mark it
15402         as such.
15403
15404         * redisplay-output.c (redisplay_output_layout): Update the
15405         subwindow here.
15406         (redisplay_output_subwindow): ditto.
15407
15408         * glyphs.c (update_subwindow): make sure we reset flags for
15409         layouts as well as everything else.
15410
15411         * glyphs-widget.c (layout_layout): don't need to set the instances
15412         dimensions here.
15413
15414 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15415
15416         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15417         not HAVE_DLOPEN, which is a lower-level thing.
15418
15419         * .cvsignore: Ignore gmon.out
15420
15421 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15422
15423         * .cvsignore: Ignore portable dumper xemacs.dmp file
15424
15425 2000-02-09  Andy Piper  <andy@xemacs.org>
15426
15427         * redisplay-output.c (redisplay_output_layout): be more clever
15428         about when we output based on the changed flags.
15429
15430         * glyphs.h (struct image_instantiator_methods): add update_method.
15431         (struct Lisp_Image_Instance): add changed flags. Declare new
15432         macros for manipulating them.
15433
15434         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15435         (image_instance_parent_glyph): find an image_instance's parent
15436         glyph or image_instance.
15437         (image_instance_layout): mark the size as changed.
15438         (set_image_instance_dirty_p): new function. mark an image
15439         instance, plus all of its parents, as dirty.
15440         (Fset_image_instance_property): use it.
15441         (Fglyph_animated_timeout_handler): use it.
15442         (update_subwindow): call update_widget and device methods for
15443         update_subwindow. Mark all changed flags as clean.
15444         (Fresize_subwindow): mark size as changed.
15445
15446         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15447         failures.
15448         (x_update_subwindow): only resize subwindows here.
15449         (x_update_widget): new function. Update all changed properties of
15450         a widget.
15451         (x_resize_subwindow): deleted.
15452         (x_widget_set_property): deleted.
15453         (x_progress_gauge_set_property): deleted.
15454         (x_progress_gauge_update): new function. Implement recorded
15455         changes.
15456         (x_tab_control_update): ditto.
15457         (x_tab_control_set_property): deleted.
15458         (console_type_create_glyphs_x): declare new functions.
15459         (image_instantiator_format_create_glyphs_x): ditto.
15460
15461         * glyphs-widget.c (widget_set_property): mark text changed.
15462         (update_widget): new function. Update properties of a widget.
15463         (widget_instantiate): for layouts make sure we set their
15464         children's parent correctly.
15465         (tab_control_set_property): new function. Record changes that will
15466         take place under redisplay's control.
15467         (progress_gauge_set_property): ditto.
15468         (image_instantiator_progress_guage): declare new functions.
15469         (image_instantiator_tab_control): ditto.
15470
15471         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15472         now.
15473         (mswindows_update_widget): new function. Update all properties on
15474         a widget that have changed.
15475         (mswindows_button_update): new function. Update a button's set
15476         state.
15477         (mswindows_tab_control_update): new function. Update the items in
15478         a tab.
15479         (mswindows_tab_control_set_property): deleted.
15480         (mswindows_progress_gauge_update): new function. Update the
15481         progress gauge's progress.
15482         (mswindows_widget_set_property): deleted. This is all done
15483         asynchronously now.
15484         (mswindows_progress_gauge_set_property): ditto.
15485         (console_type_create_glyphs_mswindows): declare new methods.
15486         (image_instantiator_format_create_glyphs_mswindows): ditto.
15487
15488         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15489         (msprinter_set_frame_properties): ditto.
15490
15491         * console.h (struct console_methods): Add update_widget_method.
15492
15493 2000-02-09  Andy Piper  <andy@xemacs.org>
15494
15495         * gui-msw.c (Fmswindows_shell_execute): Make
15496         mswindows-shell-execute industrial strength.
15497
15498 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15499
15500         * lrecord.h: Make macro argument `props' match member function `plist'.
15501         * fns.c (Fget):
15502         * fns.c (Fput):
15503         * fns.c (Fremprop):
15504         * fns.c (Fobject_plist):
15505         * alloc.c:
15506         * symbols.c:
15507         Object property list frobbing cleanup.
15508         - Allow any lisp object (compared with `eq'), not just symbols, as
15509           keys in object plists.
15510         - Move symbol plist frobbing into symbols.c, where it belongs.
15511         - Move string plist frobbing into alloc.c, where it belongs.
15512         - Everything's an lrecord now, so no need to test for symbolp, etc.
15513         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15514
15515         * extents.c: Reorder code to remove declarations.
15516
15517         * frame.h (store_in_alist): Remove useless declaration.
15518
15519 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15520
15521         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15522         * config.h.in: Add HAVE_XCONVERTCASE.
15523
15524 2000-02-07  Andy Piper  <andy@xemacs.org>
15525
15526         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15527         it breaks many things.
15528
15529 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15530
15531         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15532         actually can start a common comment type.
15533         * src/syntax.h (SYNTAX_END_P): ditto for end.
15534
15535 2000-02-07  Martin Buchholz <martin@xemacs.org>
15536
15537         * XEmacs 21.2.28 is released.
15538
15539 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15540
15541         * event-Xt.c (x_keysym_to_character): New.
15542         (maybe_define_x_key_as_self_inserting_character): New.
15543         (x_has_keysym): New.
15544         Auto-define all keys on the keyboard as self-insert-key.
15545
15546 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15547
15548         * menubar.c (vars_of_menubar): A small code simplification.
15549
15550         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15551
15552         * ExternalShell.c:
15553         * ExternalClient.c:
15554         * EmacsShell-sub.c:
15555         * EmacsManager.c:
15556         * EmacsFrame.c:
15557         Use consistent style for specifying X resources.
15558
15559         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15560         This makes (dontusethis-set-symbol-value-handler) actually usable.
15561
15562         * lrecord.h (lrecord_decription_type):
15563         * alloc.c (pdump_register_sub):
15564         (pdump_dump_data):
15565         (pdump_reloc_one):
15566         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15567         Comply with XEmacs coding style.
15568         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15569         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15570
15571         * keymap.c (Faccessible_keymaps):
15572         Make (accessible-keymaps map "\C-h") do the Right Thing.
15573         Make (accessible-keymaps map []) do the Right Thing.
15574         Make (accessible-keymaps map "") do the Right Thing.
15575         (check_keymap_definition_loop): New function.
15576         (keymap_store_internal): Keep luser from shooting self in foot,
15577           via (define-key ctl-x-4-map "p" global-map).
15578         Remove fullness slot from struct Lisp_Keymap, since hash tables
15579         are now reliable.
15580         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15581
15582 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15583
15584         * redisplay.c (init_redisplay): Fix small memory leak.
15585         * elhash.h:
15586         * elhash.c (pdump_reorganize_hash_table):
15587         Rename from reorganize_hash_table. Change prototype.
15588         Reuse the original memory for hentries.  Save 100k.
15589         * alloc.c (PDUMP_READ): new macro.
15590         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15591         * alloc.c: No need to #ifndef before #undef.
15592
15593         * print.c: Allow debug_print() to print readably by modifying
15594         debug_print_readably.  Use consistent variable names.
15595
15596         * .dbxrc: Try to get things to work even if stopped in a function
15597         without source available by explicitly specifying source files.
15598 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15599
15600         * unexnt.c (_start): Removed bogus code which caused loading heap
15601         from differrent executable file.
15602         Removed bogus assignment to _fmode, which caused inconsistencies.
15603
15604 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15605
15606         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15607         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15608         Do not preliminary `#define signal sigset'.
15609
15610         * systime.h: Do not prototype environ on windows nt and cygwin,
15611         this conflicts with system header.
15612
15613         * syssignal.h: Use correct define for WINDOWSNT
15614
15615         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15616         with system header.
15617
15618         * sysdep.c (near start of file): Fixed commentary and rearranged
15619         ifdefs in readable order.
15620         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15621         (start_of_text):
15622         (end_of_text):
15623         (end_of_data): Do not compile in if using PDUMP.
15624
15625         * symsinit.h: Prototyped vars_of_nt().
15626
15627         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15628         (find_child_console): Use it.
15629         (sys_kill): Use it.
15630
15631         * ntheap.h: Do not extern os_subtype.
15632
15633         * ntheap.c (cache_system_info): Do not cache unneeded:
15634         nt_major_version, nt_minor_version and os_subtype.
15635         (recreate_heap): Do not compile in when PDUMPing.
15636
15637         * nt.c (geteuid and friends): Use the new varibale
15638         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15639         (init_user_info): Removed the above mentioned hackery.
15640         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15641         stat has been fixed in the C runtime.
15642         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15643
15644         * file-coding.c (struct file_coding_dump): Do not define
15645         ucs_to_mule_table in the struct if not MULE.
15646         (struct struct lrecord_description fcd_description_1): Do not dump
15647         the above.
15648
15649         * emacs.c (main_1): Call vars_of_nt().
15650         (right before Fdump_emacs_data): Don't need lastfile if using both
15651         portabe dumper and system malloc.
15652
15653         * alloc.c (Fmemory_limit): Conditionalized out.
15654         (pdump): Use OPEN_BINARY for the portable dump file.
15655         (pdump_load): Ditto.
15656
15657 2000-02-02  Mike Alexander  <mta@arbortext.com>
15658
15659         * nt.c (convert_time): Set tm_isdst before calling mktime and
15660         avoid calling it at all if the compiler supports 64 bit integers.
15661         Also initialize utc_base_ft before using it.
15662
15663 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15664
15665         * frame.c (change_frame_size_1): Take f->internal_border_width
15666         into consideration when calculating the width of the frame.
15667
15668 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15669
15670         * window.c (frame_min_height):
15671         (frame_size_valid_p):
15672         (frame_pixsize_valid_p): Added.
15673         (check_frame_size): Generalized.
15674
15675         * window.h: Prototyped the above.
15676
15677         * lisp.h:
15678         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15679         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15680         Deleted Vwin32_* and Vbinary_process_* unused variables.
15681
15682         * device-msw.c (msprinter_init_device): Do not get printer font
15683         list; Added DEVMODE functions.
15684
15685         * frame-msw.c: Added lots of printer code.
15686
15687         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15688         general.c.
15689
15690         * console-msw.h: Added more msprinter device private slots.
15691
15692 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15693
15694         * event-msw.c (key_needs_default_processing_p): Added.
15695         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15696
15697 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15698
15699         * glyphs.c (image_instance_layout): Mark image instance as clean
15700         after layout.
15701         (glyph_dirty_p): Removed redundant function.
15702         (invalidate_glyph_geometry_maybe): Added.
15703         (update_glyph_cachel_data): Call it.
15704
15705         * glyphs.h: Prototyped it.
15706
15707         * redisplay.c (add_glyph_rune): Call it.
15708         (redisplay_window): Reset glyphs cachels when frame faces have
15709         changed, thus forcing recomputation of built-in border glyphs.
15710
15711 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15712
15713         * Makefile.in.in: Make portable dumper and purify play well together.
15714         Add imperfect, but better than nothing, support for pdump.
15715         Remove xemacs.dmp when temacs is re-generated.
15716         Don't ignore errors when dumping xemacs.
15717
15718         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15719
15720 2000-01-28  Andy Piper  <andy@xemacs.org>
15721
15722         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15723         (setup_normal_frame): ditto.
15724         (setup_frame_without_minibuffer): ditto.
15725         (setup_minibuffer_frame): ditto.
15726         (delete_frame_internal): ditto.
15727         (Fmake_frame_invisible): ditto.
15728         (Ficonify_frame): ditto.
15729
15730         * window.h: change Fset_window_buffer signature.
15731
15732         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15733         (Fset_window_buffer): allow recording of buffer if the window is
15734         the selected window.
15735         (window_loop): Use new Fset_window signature.
15736
15737 2000-01-23  Daniel Pittman  <daniel@danann.net>
15738
15739         * config.h.in: Added template for `HAVE_ATHENA_3D'
15740
15741 2000-01-29  Andy Piper  <andy@xemacs.org>
15742
15743         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15744
15745         * gutter.c (output_gutter): Don't output if the window isn't live.
15746
15747 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15748
15749         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15750         of 01/12/00: Moved SetFocus back here where it belongs.
15751
15752 2000-01-23  Andy Piper  <andy@xemacs.org>
15753
15754         * s/cygwin32.h: declare printer things.
15755
15756 2000-01-26  Andy Piper  <andy@xemacs.org>
15757
15758         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15759         Alexander.
15760
15761 2000-01-24  Andy Piper  <andy@xemacs.org>
15762
15763         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15764         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15765
15766         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15767
15768         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15769
15770         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15771
15772         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15773         (mswindows_output_display_block): Avoid local shadows.
15774
15775         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15776         (mswindows_enqueue_mouse_button_event): ditto.
15777         (mswindows_handle_gui_wm_command): remove declaration.
15778
15779         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15780         warnings.
15781
15782         * console-msw.h: Avoid shadows.
15783         (mswindows_get_toolbar_button_text):
15784         (emacs_mswindows_create_stream_pair):
15785         (emacs_mswindows_delete_stream_pair):
15786         (mswindows_handle_toolbar_wm_command): declare.
15787
15788         * device-msw.c (build_syscolor_string): Avoid shadows.
15789
15790 2000-01-23  Andy Piper  <andy@xemacs.org>
15791
15792         * glyphs-widget.c (widget_instantiate): reverse the items for
15793         layouts so that children are in the expected order.
15794
15795 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15796
15797         * ralloc.c: safe_bcopy ==> memmove
15798         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15799         * s/msdos.h: Remove BCOPY macros.
15800         * insdel.c (gap_right): Remove BCOPY conditional code.
15801         * insdel.c (gap_left): Remove BCOPY conditional code.
15802         XEmacs demands a working ANSI C compiler - hence memmove.
15803
15804         * regex.c (regex_compile): Remove accidental use of trigraphs.
15805
15806 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15807
15808         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15809         event timestamp.
15810
15811 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15812
15813         * event-msw.c (mswindows_drain_windows_queue): Added the
15814         parameter.
15815         (mswindows_need_event): Commented the call to
15816         mswindows_drain_windows_queue().
15817         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15818         only.
15819
15820         * console-msw.h: Moved a few function prototypes here from
15821         event-msw.c.
15822
15823         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15824         parameter from unsigned short to unsigned long.
15825         (Fmswindows_shell_execute): Added return value.
15826
15827 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15828
15829         * sysdep.c (init_system_name):
15830           process-unix.c (unix_canonicalized_host_name):
15831         Don't call freeaddrinfo() if getaddrinfo() fails.
15832
15833         * process-unix.c (unix_open_unix_network_stream):
15834         Moved the code to get a port # into address loop.
15835
15836 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15837
15838         * buffer.c (reinit_vars_of_buffer):
15839         The right place to initialize conversion_in_dynarr and
15840         conversion_out_dynarr.
15841
15842         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15843
15844         * process-unix.c (unix_canonicalize_host_name): Muleize.
15845         (unix_open_network_stream): Muleize.
15846
15847         * buffer.h: Fix up prototypes for ralloc.c functions.
15848
15849 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15850         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15851         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15852                 instead of gethostbyname()
15853         * process-unix.c: In unix_canonicalize_host_name() and
15854                 unix_open_network_stream(), add code to use getaddrinfo()
15855                 instead of gethostbyname().
15856
15857 2000-01-27  Daniel Pittman <daniel@danann.net>
15858
15859         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15860         libs when built with flat Athena.
15861
15862 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15863
15864         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15865         Use coding standards for function prototypes.
15866
15867 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15868
15869         * dialog-msw.c (push_lisp_string_as_unicode):
15870         * doc.c (unparesseuxify_doc_string):
15871         * dired.c (Fuser_name_completion_1):
15872         * dired.c (Fuser_name_all_completions):
15873         * dired.c (free_user_cache):
15874         * dired.c (user_name_completion):
15875         * console-x.c (get_display_arg_connection):
15876         * minibuf.c (clear_echo_area_internal):
15877         * minibuf.c (echo_area_append):
15878         * eldap.c (Fldap_open):
15879         * eldap.c (Fldap_search_internal):
15880         * frame-x.c (x_set_frame_text_value):
15881         * frame-x.c (x_set_frame_properties):
15882         * frame-x.c (x_create_widgets):
15883         * redisplay-tty.c (term_get_fkeys_1):
15884         * objects-x.c (x_parse_nearest_color):
15885         * objects-x.c (x_valid_color_name_p):
15886         * objects-x.c (x_initialize_font_instance):
15887         * objects-x.c (x_list_fonts):
15888         * objects-x.c (x_find_charset_font):
15889         * tooltalk.c (Fadd_tooltalk_message_arg):
15890         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15891         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15892         * process-unix.c (unix_create_process):
15893         * ntproc.c (sys_spawnve):
15894         * sound.c (Fplay_sound_file):
15895         * sound.c (Fplay_sound):
15896         * buffer.c (init_initial_directory):
15897         * buffer.c (init_buffer):
15898         * editfns.c (init_editfns):
15899         * editfns.c (Ftemp_directory):
15900         * editfns.c (Fuser_full_name):
15901         * editfns.c (uncache_home_directory):
15902         * editfns.c (get_home_directory):
15903         * editfns.c (Fuser_home_directory):
15904         * editfns.c (Fformat_time_string):
15905         * editfns.c (Fcurrent_time_string):
15906         * gui-x.c (button_item_to_widget_value):
15907         * database.c (Fopen_database):
15908         * event-Xt.c (x_to_emacs_keysym):
15909         * event-Xt.c (x_event_to_emacs_event):
15910         * event-Xt.c (describe_event_window):
15911         * event-msw.c (mswindows_wnd_proc):
15912         * glyphs-eimage.c (jpeg_instantiate):
15913         * glyphs-eimage.c (gif_instantiate):
15914         * glyphs-eimage.c (png_instantiate):
15915         * glyphs-eimage.c (tiff_instantiate):
15916         * glyphs-x.c (xbm_instantiate_1):
15917         * glyphs-x.c (x_xbm_instantiate):
15918         * glyphs-x.c (x_xface_instantiate):
15919         * glyphs-x.c (autodetect_instantiate):
15920         * glyphs-x.c (cursor_font_instantiate):
15921         * glyphs-x.c (x_widget_instantiate):
15922         * glyphs-x.c (x_widget_set_property):
15923         * glyphs-x.c (x_widget_property):
15924         * glyphs-x.c (BUILD_GLYPH_INST):
15925         * print.c (write_string_to_stdio_stream):
15926         * print.c (output_string):
15927         * print.c (Falternate_debugging_output):
15928         * print.c (Fexternal_debugging_output):
15929         * glyphs-msw.c (extract_xpm_color_names):
15930         * glyphs-msw.c (mswindows_xpm_instantiate):
15931         * glyphs-msw.c (bmp_instantiate):
15932         * glyphs-msw.c (resource_name_to_resource):
15933         * glyphs-msw.c (mswindows_resource_instantiate):
15934         * glyphs-msw.c (xbm_instantiate_1):
15935         * glyphs-msw.c (mswindows_xbm_instantiate):
15936         * glyphs-msw.c (mswindows_xface_instantiate):
15937         * glyphs-msw.c (mswindows_widget_instantiate):
15938         * glyphs-msw.c (add_tree_item):
15939         * glyphs-msw.c (add_tab_item):
15940         * glyphs-msw.c (mswindows_combo_box_instantiate):
15941         * glyphs-msw.c (mswindows_widget_property):
15942         * glyphs-msw.c (mswindows_combo_box_property):
15943         * glyphs-msw.c (mswindows_widget_set_property):
15944         * console.c (stuff_buffered_input):
15945         * objects-msw.c (mswindows_initialize_color_instance):
15946         * objects-msw.c (mswindows_valid_color_name_p):
15947         * objects-msw.c (mswindows_list_fonts):
15948         * objects-msw.c (mswindows_font_instance_truename):
15949         * bytecode.c (optimize_compiled_function):
15950         * select-x.c (symbol_to_x_atom):
15951         * select-x.c (x_atom_to_symbol):
15952         * select-x.c (hack_motif_clipboard_selection):
15953         * select-x.c (selection_data_to_lisp_data):
15954         * select-x.c (lisp_data_to_selection_data):
15955         * select-x.c (Fx_get_cutbuffer_internal):
15956         * select-x.c (Fx_store_cutbuffer_internal):
15957         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15958         * buffer.h (TO_INTERNAL_FORMAT): New function.
15959         * emacs.c (make_arg_list_1):
15960         * emacs.c (make_argc_argv):
15961         * emacs.c (main_1):
15962         * emacs.c (Fdump_emacs):
15963         * emacs.c (split_string_by_emchar_1):
15964         * file-coding.h:
15965         * lisp.h:
15966         * lstream.h:
15967         * symsinit.h:
15968         * device-x.c (x_init_device):
15969         * device-x.c (Fx_valid_keysym_name_p):
15970         * device-x.c (Fx_get_font_path):
15971         * device-x.c (Fx_set_font_path):
15972         * glyphs.c (bitmap_to_lisp_data):
15973         * glyphs.c (pixmap_to_lisp_data):
15974         * alloc.c (make_ext_string): Use coding system arguments.  Update
15975         all callers.
15976         * alloc.c (build_string):
15977         * callproc.c (child_setup):
15978         * callproc.c (init_callproc):
15979         * fileio.c (lisp_strerror):
15980         * fileio.c (directory_file_name):
15981         * fileio.c (Fexpand_file_name):
15982         * fileio.c (Ffile_truename):
15983         * fileio.c (Fsysnetunam):
15984         * fileio.c (Fdo_auto_save):
15985         * sysdep.c (sys_readdir):
15986         * tests.c: New file.  Allow adding C tests.
15987         Replace GET_* macros with a more comprehensible and flexible
15988         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15989         Modify all calls.
15990         Any coding system can be used to do format conversion.
15991         Eliminate enum external_data_format.
15992         Eliminate convert_to_external_format.
15993         Eliminate convert_to_internal_format.
15994         Make sure file-name, keyboard, terminal, and ctext are always
15995         defined as coding systems or aliases.  Make
15996         file-name-coding-system, terminal-coding-system, and
15997         keyboard-coding-system magical variables that are equivalent to
15998         defining the corresponding coding system aliases.
15999
16000         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16001         * file-coding.c (Fcoding_system_alias_p): New function.
16002         * file-coding.c (Fcoding_system_aliasee): New function.
16003         * file-coding.c (append_suffix_to_symbol): New function.
16004         * file-coding.c (dangling_coding_system_alias_p): New function.
16005         * file-coding.c (Ffind_coding_system):
16006         * file-coding.c (Fcopy_coding_system):
16007         * file-coding.c (encode_coding_no_conversion):
16008         * file-coding.c (syms_of_file_coding):
16009         * file-coding.c (vars_of_file_coding):
16010         Rewrite coding system alias code.
16011         Allow nested aliases, like symbolic links.
16012         Allow redefinition of coding system aliases.
16013         Prevent existence of dangling coding system aliases.
16014
16015         * dired.c (Fuser_name_completion_1):
16016         * dired.c (Fuser_name_all_completions):
16017         A crash would happen if user did QUIT in the middle of building
16018         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16019
16020         * lisp.h:
16021         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16022
16023         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16024         an unsigned char *.  Update all callers.
16025
16026 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16027
16028         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16029
16030 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16031
16032         * elhash.c (hentry_description): Use more portable definition.
16033         (resize_hash_table): Initialize new hentries using
16034         xnew_array_and_zero, thereby simplifying the code.
16035
16036         * mule-charset.c (make_charset): Make sure entire object is
16037         initialized, to avoid Purify warnings.
16038
16039         * alloc.c (resize_string): Fix unlikely crash with big strings.
16040
16041 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16042
16043         * realpath.c (xrealpath):
16044         Don't call getwd().
16045
16046 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16047
16048         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16049
16050 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16051
16052         * unexelfsgi.c (unexec): Change the way we decide which segment
16053         should be extended.
16054
16055         Assumption that .bss section should be outside the PT_LOADable
16056         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16057         it's present) is inside the 'data' segment. This would fail the
16058         test which was used to find a segment to grow and cover new
16059         heap. Instead of this assumption, I created another one - on IRIX
16060         the segment to grow should start below .bss and it's address
16061         should extent above the end of .bss. Once this segment is
16062         identified, it's grown to accommodate the new heap and new
16063         zero-length .bss section is added at the end of .data2.
16064
16065 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16066
16067         * eval.c (Feval): Wrong number of arguments should use original
16068         function, not the indirect_function version of it.
16069
16070 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16071
16072         * glyphs-x.c (x_button_instantiate): Don't add image if
16073         it is not a pixmap.
16074         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16075         is relative.
16076
16077 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16078
16079         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16080         declaration.
16081         (DEFVAR_INT_MAGIC): Ditto.
16082         (DEFVAR_BOOL_MAGIC): Ditto.
16083         * glyphs.h: Reindent backslash.
16084
16085 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16086
16087         * glyphs-widget.c (layout_query_geometry):
16088         (layout_layout): Use correct types for gheight, gwidth.
16089
16090 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16091
16092         * EmacsManager.c (QueryGeometry): Purified.
16093
16094 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16095
16096         * alloc.c (make_float): Make sure entire object is initialized, to
16097         avoid Purify warnings.
16098         (pdump_register_sub): Remove useless assignment.
16099         (pdump): Use xmalloc, not malloc.
16100         (pdump_load): Use xmalloc, not malloc.
16101
16102 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16103
16104         * callproc.c:
16105         * dired-msw.c:
16106         * fileio.c:
16107         * process-nt.c:
16108         * redisplay-msw.c:
16109         * sysdep.c: Removed redundant #include <windows.h>
16110
16111 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16112
16113         * frame.c (delete_frame_internal): Do not delete device when its
16114         implementation so declares.
16115         (delete_frame_internal): Set device selected frame to nil when
16116         last frame goes away.
16117
16118         * device-msw.c (msprinter_device_system_metrics): Implemented.
16119         (mswindows_device_system_metrics): Added 'device-dpi property.
16120
16121         * device.c: (Fdevice_printer_p): Added.
16122         Added 'offset-workspace device metric.
16123
16124         * console.h (device_metrics): Declared DM_offset_workspace.
16125
16126 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16127
16128         * fileio.c (Ffile_truename): Remove pointless and confusing
16129         initialization of elen.
16130
16131         * glyphs-widget.c: Compiler warning fixes.
16132
16133 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16134
16135         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16136         instead of a Lisp_Object as argument to make it consistent with
16137         the other LIVE_P macros.
16138         (CHECK_LIVE_PROCESS): New macro.
16139
16140         * process.c: Declare Qprocess_live_p.
16141         (Fprocess_live_p): New function.
16142         (create_process): Use PROCESS_LIVE_P.
16143         (read_process_output): Ditto.
16144         (set_process_filter): Ditto.
16145         (Fdelete_process): Ditto.
16146         (kill_buffer_processes): Ditto
16147         (process_send_signal): Use CHECK_LIVE_PROCESS.
16148         (Fprocess_input_coding_system): Check whether process is still
16149         alive (fix PR#1061).
16150         (Fprocess_output_coding_system): Ditto.
16151         (Fprocess_coding_system): Ditto.
16152         (Fset_process_input_coding_system): Ditto.
16153         (Fset_process_output_coding_system): Ditto.
16154
16155 2000-01-23  Andy Piper  <andy@xemacs.org>
16156
16157         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16158         layout and widget.
16159
16160         * glyphs.c (mark_image_instance): take into account changed
16161         image_instance format.
16162         (image_instance_equal): ditto.
16163         (image_instance_hash): ditto.
16164
16165         * glyphs-widget.c (widget_instantiate): Incorporate layout
16166         instantiation here. Delay layout of the layout until later.
16167         (layout_instantiate): deleted.
16168         (layout_query_geometry): new function. get the geometry of a
16169         layout.
16170         (layout_layout): layout a layout dynamically.
16171         (image_instantiator_widget): New function - splitting up
16172         image_instantiator_format_create_glyphs_widget for netwinder
16173         compilation.
16174         (image_instantiator_buttons):
16175         (image_instantiator_edit_fields):
16176         (image_instantiator_combo_box):
16177         (image_instantiator_scrollbar):
16178         (image_instantiator_progress_guage):
16179         (image_instantiator_tree_view):
16180         (image_instantiator_tab_control):
16181         (image_instantiator_labels):
16182         (image_instantiator_layout): ditto.
16183         (image_instantiator_format_create_glyphs_widget): Call preceding
16184         functions.
16185
16186 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16187
16188         * process.c (Fset_process_coding_system):
16189         * device-x.c (Fx_keysym_hash_table):
16190         Docstring fixes.
16191
16192         * lstream.c (Lstream_write): Return documented value, not 0.
16193
16194         * fileio.c (directory_file_name):
16195         (Fsubstitute_in_file_name):
16196         (Fsubstitute_insert_file_contents_internal):
16197         (Fwrite_region_internal):
16198         * emacs.c:
16199         * sysdep.c:
16200         * getloadavg.c:
16201         * systty.h:
16202         Remove vestigial APOLLO-conditional code.
16203
16204 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16205
16206         * getpagesize.h: Add guard macros.
16207         * libsst.h: Add guard macros.
16208         * libst.h: Add guard macros.
16209         * line-number.h: Add guard macros.
16210         * ndir.h: Add guard macros.
16211         * sysfloat.h: Add guard macros.
16212         * sysfile.h: Add guard macros.
16213         * sysproc.h: Add guard macros.
16214         * syswait.h: Add guard macros.
16215         * xintrinsic.h: Add guard macros.
16216         * xintrinsicp.h: Add guard macros.
16217         * xmmanager.h: Add guard macros.
16218         * xmmanagerp.h: Add guard macros.
16219         * xmprimitive.h: Add guard macros.
16220         * xmu.h: Add guard macros.
16221         * gpmevent.h: Add copyright statement. Add guard macros.
16222         * miscplay.h: Add guard macros.
16223         * *.h: Use consistent C-standards-approved guard macro names.
16224
16225         * opaque.c (make_opaque): Switch parameter order.
16226         * opaque.h (make_opaque): Switch parameter order.
16227         Update all callers.
16228         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16229
16230         * config.h.in (type_checking_assert): Added.
16231         (bufpos_checking_assert): Added.
16232
16233 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16234
16235         * alloc.c: Harmless pdump changes.
16236         - Use countof().
16237         - spell alignment correctly.
16238         * sysdep.c: Use countof()
16239
16240 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16241
16242         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16243         initially_selected_for_input() console method, default to 0.
16244         (semi_canonicalize_console_connection): Try to delegate to
16245         canonicalize_console_connection if no such console method.
16246         (canonicalize_console_connection): Vice versa.
16247         (print_console): Do not print nil connection.
16248
16249         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16250         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16251         (XDEVIMPF_FRAMELESS_OK): Added.
16252         (CONSOLE_INHERITS_METHOD): Added.
16253
16254         * console-msw.c (mswindows_canonicalize_console_connection):
16255         Added.
16256         (mswindows_canonicalize_device_connection): Added.
16257
16258         * console-msw.h (struct msprinter_device): Added this struct and
16259         accessor macros.
16260         (mswindows_device): Made fontlist a lisp object.
16261
16262         * device.c (semi_canonicalize_device_connection):  Try to delegate
16263         to canonicalize_device_connection if no such console method.
16264         (canonicalize_device_connection): Vice versa.
16265         (print_device): Do not print nil connection.
16266
16267         * device-msw.c (mswindows_init_device): Call InitCommonControls
16268         when have widgets.
16269         (mswindows_delete_device): Removed fontlist deallocation.
16270         (mswindows_mark_device): Added.
16271
16272         * events.c (event_equal): Added abort() at unreached code.
16273         (event_hash): Ditto.
16274
16275         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16276         fallback tags of Windows devices.
16277
16278         * general.c (syms_of_general): Initialized Qmsprinter.
16279
16280         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16281         of fallback tags of Windows devices.
16282
16283         * lisp.h: Declared Qmsprinter.
16284
16285         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16286         of strings.
16287         (mswindows_list_fonts): Ditto.
16288         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16289         that it can be used by both mswindows and msprinter devices.
16290         (initialize_font_instance): Added.
16291         (mswindows_initialize_font_instance): Use it.
16292         (msprinter_initialize_font_instance): Added.
16293
16294         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16295         and implementation flags check.
16296         (redisplay_without_hooks): Changed the call to the above.
16297         (Fredraw_device): Ditto.
16298         (Fredisplay_device): Ditto.
16299
16300         * redisplay-msw.c (get_frame_dc): Implemented.
16301         (get_frame_compdc): Implemented.
16302         (many functions): Use the two functions above to get device
16303         contexts, ether for a window or a printer.
16304
16305 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16306
16307         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16308         initialization here.
16309         (init_symbols_once_early): Call it.
16310         * emacs.c (main_1): Call it.
16311         * symsinit.h: Declare it.
16312
16313 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16314
16315         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16316         Lisp_Object.
16317         (pdump_backtrace): Ditto.
16318         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16319         (pdump_get_entry): Abort if trying to register a null pointer.
16320         (pdump_dump_data): Cleanup types when relocating.
16321         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16322         (pdump_dump_rtables): Remove bad casts.
16323         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16324         Lisp_Object instead of a EMACS_INT for the hashtable
16325         reorganization.
16326
16327 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16328
16329         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16330
16331         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16332
16333         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16334
16335         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16336
16337 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16338
16339         * faces.h (FACE_STRIKETHRU_P): Added.
16340
16341         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16342         of font variants.
16343
16344         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16345         (mswindows_set_dc_font): New function, aware of font variants,
16346         separated from mswindows_update_dc.
16347
16348         * objects-msw.h (struct mswindows_font_instance_data): Added
16349         definition.
16350
16351         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16352         cached fonts and the data structure.
16353         (mswindows_initialize_font_instance): Added creation of font data
16354         structure.
16355         (mswindows_print_font_instance): Print at least something.
16356         (mswindows_create_font_variant): Implemented.
16357         (mswindows_get_hfont): Implemented.
16358
16359 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16360
16361         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16362         prototyping problem with msvc.
16363
16364         * emacs.c (main_1): added syms_of_gui_mswindows() call
16365
16366         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16367         syms_of_gui_mswindows() function
16368
16369         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16370
16371 2000-01-18  Martin Buchholz <martin@xemacs.org>
16372
16373         * XEmacs 21.2.27 is released.
16374
16375 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16376
16377         * glyphs-eimage.c (struct tiff_error_struct):
16378         (tiff_error_func):
16379         (tiff_warning_func):
16380         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16381
16382         * unexmips.c:
16383         * unexhp9k3.c:
16384         * unexfreebsd.c:
16385         * unexec.c: Remove vestigial Lucid C code.
16386         * unexalpha.c:
16387         * unexaix.c:
16388         * termcap.c:
16389         * libsst.c: Ansify.
16390         Remove declarations of errno and strerror().
16391
16392         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16393
16394         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16395
16396 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16397
16398         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16399         Optimize.
16400
16401 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16402
16403         * md5.c:
16404         * file-coding.c:
16405         * file-coding.h:
16406         Change enum eol_type to eol_type_t.
16407
16408 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16409
16410         * gui.c (get_gui_callback): Check cons before accessing car.
16411
16412 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16413
16414         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16415         (XSETSPECIFIER_TYPE): Ditto.
16416
16417 2000-01-17  Didier Verna  <didier@xemacs.org>
16418
16419         * redisplay.c (generate_fstring_runes): compute string size in
16420         characters, not bytes.
16421
16422 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16423
16424         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16425
16426 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16427
16428         * print.c (print_error_message): Call print_prepare().
16429
16430 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16431
16432         * .dbxrc: Renamed from dbxrc.
16433
16434         * events.c (event_to_character):
16435         Use `assert (foo)' instead of `if (!foo) abort()'
16436
16437         * .gdbinit (xtype): Add documentation.
16438         * .gdbinit (check-temacs): New function.
16439         * .gdbinit (check-xemacs): New function.
16440         * dbxrc (check-xemacs): New function.
16441         * dbxrc (check-xemacs): New function.
16442
16443 2000-01-14  Andy Piper  <andy@xemacs.org>
16444
16445         * glyphs-widget.c (widget_query_geometry): Make sure that we
16446         calculate default dimensions correctly.
16447
16448 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16449
16450         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16451
16452         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16453         pdump_wire'd variable.
16454
16455         * emacs.c: (main_1): Conditionalized calls to
16456         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16457
16458 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16459
16460         * window.c (Fset_window_configuration):
16461         * sysdep.c (_start):
16462         * input-method-motif.c (res):
16463         * event-Xt.c (Xt_process_to_emacs_event):
16464         Simple compiler warning fixes.
16465
16466         * bytecode.c (funcall_compiled_function): Use the original
16467         function symbol on the backtrace list in preference to the
16468         compiled_function object in error messages.
16469
16470 2000-01-13  Andy Piper  <andy@xemacs.org>
16471
16472         * glyphs-x.c (update_widget_face): Make sure we update the widget
16473         background as well as foreground.
16474
16475 2000-01-13  Andy Piper  <andy@xemacs.org>
16476
16477         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16478         fields to subwindow.
16479         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16480         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16481         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16482         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16483
16484         * glyphs-widget.c (check_valid_tab_orientation): new function.
16485         (initialize_widget_image_instance): zero orientation and
16486         justification.
16487         (widget_instantiate): pick up orientation.
16488         (tab_control_query_geometry): return appropriate values for
16489         vertical tabs.
16490
16491         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16492         appropriate creation flags for left, right and bottom tabs.
16493
16494         * s/cygwin32.h: add tab definitions.
16495
16496 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16497
16498         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16499         frame upon hiding a subwindow.
16500         (mswindows_button_instantiate): Changed the push button style to
16501         BS_PUSHBUTTON.
16502         (mswindows_button_instantiate): Removed button BS_NOTIFY
16503         style.
16504         (mswindows_button_instantiate): Removed redundant check for
16505         a disabled gui item.
16506         (mswindows_button_instantiate): Made use of WS_TABSTOP
16507         consistent: "operable" controls (edit, button, tree, scroll) have
16508         this style, "display-only" ones (static, progress gauge) do
16509         not. This style is currently ignored by XEmacs though. Also,
16510         removed the WS_EX_CONTROLPARENT style - it is not for children,
16511         it is for their parents!
16512         (mswindows_edit_field_instantiate): Ditto.
16513         (mswindows_progress_gauge_instantiate): Ditto.
16514         (mswindows_tree_view_instantiate): Ditto.
16515         (mswindows_tab_control_instantiate): Ditto.
16516         (mswindows_scrollbar_instantiate): Ditto.
16517         (mswindows_combo_box_instantiate): Ditto.
16518         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16519         style to the "clip" window.
16520         (mswindows_button_instantiate): Removed compilation warning by
16521         equally typing terms of the ?: operator.
16522
16523 2000-01-12  Didier Verna  <didier@xemacs.org>
16524
16525         * redisplay.c (generate_fstring_runes): new parameter holding the
16526         last modeline-format extent.
16527         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16528         extent, fill the glyph block with it.
16529         (generate_fstring_runes): handle these parameters.
16530         (generate_formatted_string_db): ditto.
16531
16532         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16533         glyphs'extents in the modeline.
16534
16535 1999-01-11  Mike Woolley  <mike@bulsara.com>
16536
16537         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16538         256Mb, as a workaround for the non-starting problem many people
16539         have experienced.
16540
16541 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16542
16543         * console-tty.c (Fset_console_tty_output_coding_system):
16544         Force redrawing tty frame.
16545
16546 2000-01-10  Didier Verna  <didier@xemacs.org>
16547
16548         * redisplay.c (generate_fstring_runes): fix size computation bug.
16549
16550 2000-01-09  William M. Perry <wmperry@aventail.com>
16551
16552         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16553
16554 2000-01-09  Andy Piper  <andy@xemacs.org>
16555
16556         * glyphs-msw.c: index -> i to avoid shadows.
16557         (xbm_create_bitmap_from_data): make static.
16558         (check_valid_string_or_int): deleted.
16559         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16560
16561         * glyphs-x.c (x_update_subwindow): remove unused args.
16562
16563         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16564         back pointer - this is done in allocate_image_instance.
16565         (query_string_font): return Qnil to make the compiler happy.
16566         (unmap_subwindow): set to ~0 to make the compiler happy.
16567         (glyph_query_geometry): comment out until used.
16568         (glyph_layout): ditto.
16569
16570 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16571
16572         * insdel.c (signal_after_change): Remove extraneous unbind_to().