update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Qto_decomposition_at_compat): New variable.
4         (Q_compat_of): Renamed from `Q_compatibility_of'.
5         (put_char_composition): Rename `Q_compatibility_of' to
6         `Q_compat_of'; return `=>decomposition@compat' for compatibility
7         decomposition mapping.
8         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
9         `Q_compat_of'.
10         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
11         `<-compatibility' to `<-compat'.
12
13 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * chartab.c (Q_compatibility_of): New variable.
16         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
17         object is proved to be a cons cell; return `<-compatibility' if
18         the first element of argument `value' is `compat'.
19         (Fput_char_attribute): Eliminate the first value if
20         `put_char_composition' returns `<-compatibility'.
21         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
22         for `<-compatibility'.
23         (syms_of_chartab): Add new symbol `<-compatibility'.
24
25 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * chartab.c (Q_canonical): New variable.
28         (put_char_composition): Return a feature name: return
29         `->canonical' if argument `value' specifies single character.
30         (Fput_char_attribute): Use `put_char_composition' to determine
31         feature name for `=decomposition' or `->denotational'.
32         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
33         for `->canonical'.
34         (syms_of_chartab): Add new symbol `->canonical'.
35
36 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
37
38         * chartab.c (Qmap_decomposition): New variable.
39         (Fput_char_attribute): Convert `->decomposition' to
40         `=decomposition'.
41         (syms_of_chartab): Add new symbol `=decomposition'.
42
43 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * chartab.c (Fget_range_char_table): Fix serious problem when
46         `range' is nil.
47
48 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * chartab.c (char_table_get_db): Use `read_from_c_string'.
51
52 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * lread.c (read_from_c_string): New function.
55
56         * lisp.h (read_from_c_string): New prototype.
57
58 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * chartab.c (Fput_char_attribute): Convert char-specs in value of
61         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
62         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
63         for `{<-|->}Oracle-Bones[^*]*'.
64
65 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
68         (Kizu).
69
70 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * text-coding.c (Qccs_priority_list): New variable in XEmacs
73         CHISE.
74         (Fmake_coding_system): Support new property `ccs-priority-list' in
75         XEmacs CHISE.
76         (Fcoding_system_property): Likewise.
77         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
78         Vdefault_coded_charset_priority_list in XEmacs CHISE.
79         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
80         XEmacs CHISE.
81         (complex_vars_of_file_coding): Define new coding-system-property
82         `ccs-priority-list' in XEmacs CHISE.
83
84         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
85
86 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
89         changed to normal function.
90         (encode_char_2): Likewise.
91
92         * mule-charset.c (decoding_table_put_char): Copied from
93         char-ucs.h; changed to normal function.
94         (encode_char_2): Likewise.
95
96 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
99         New extern.
100         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
101         (encode_char_2_search_children): New inline function.
102         (encode_char_2): Refer
103         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
104         and use `encode_char_2_search_children'.
105
106 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * mule-charset.c
109         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
110         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
111         (vars_of_mule_charset): Add new variable
112         `display-coded-charset-priority-use-inheritance' and
113         `display-coded-charset-priority-use-hierarchy-order'.
114
115 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * char-ucs.h (Q_subsumptive): New extern.
118         (Q_denotational): Likewise.
119         (encode_char_2): Search children specified by `->subsumptive' and
120         `->denotational'.
121
122 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * mule-charset.c (complex_vars_of_mule_charset): Modify the
125         X-registry of `ucs-bmp'.
126
127 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (char-variants): Refer `->subsumptive',
130         `->denotational' and `->identical' as same as `->ucs-unified'.
131
132 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
133
134         * chartab.c (Fput_char_attribute): Convert char-specs in value of
135         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
136         links.
137
138 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * text-coding.c: Add EXFUN for `Fregexp_quote'.
141         (decode_add_er_char): Fix problem about infinite loop when a CCS
142         specified in `coded-charset-entity-reference-alist' is not
143         existed.
144
145 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * mule-charset.c (syms_of_mule_charset): Rename
148         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
149
150 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
151
152         * fns.c (simplify_char_spec): Don't allocate new character-object
153         if specified char_spec does not have any CCS-features.
154
155         * chartab.h: Add EXFUN for Fdefine_char.
156
157         * chartab.c: Delete EXFUN for Fdefine_char.
158
159 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * fns.c (simplify_char_spec): Use Fdefine_char instead of
162         Ffind_char for char-spec.
163
164 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * lisp-disunion.h (XCHARVAL): Fix condition about
167         SIZEOF_EMACS_INT.
168
169 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
172         <int> for `code'.
173         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
174         point; use <Emchar> instead of <int> for character-id.
175
176 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
179         (make_char): Likewise.
180         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
181         environment.
182         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
183         instead of <int> as the type of return value; use <Lisp_Object>
184         instead of <Emchar> as the type of argument.
185         (XCHARVAL[macro version]): Cast the result into <Emchar>.
186
187         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
188         syntaxcode> instead of <int>.
189
190 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
191
192         * chartab.c (put_char_composition): Use DECODE_CHAR to get
193         character corresponding with UCS code point.
194         (Fput_char_attribute): Likewise.
195
196         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
197         character in the UCS decoding-table if the char-id is not equal to
198         the UCS code point.
199
200 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
203         for aliases; write `description'; write
204         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
205         not 0.
206
207 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * chartab.c (Fsave_char_attribute_table): Don't use
210         `save_charset_properties'.
211
212         * mule-charset.c (Fsave_charset_properties): Renamed from
213         `save_charset_properties' and changed to Lisp function again;
214         write property `type' as `CCS'; write properties `final-byte' and
215         `mother' if they exists.
216         (syms_of_mule_charset): Revive builtin function
217         `save-charset-properties' when HAVE_LIBCHISE is defined.
218
219 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
222         instead of Vexec_directory.
223         (char_attribute_system_db_file): Likewise.
224
225 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
226
227         * chartab.c (Fsave_char_attribute_table): Use
228         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
229         defined.
230
231         * mule-charset.c (save_charset_properties): Renamed from
232         `Fsave_charset_properties'; changed to non-Lisp function.
233         (syms_of_mule_charset): Abolish builtin function
234         `save-charset-properties'.
235
236 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * mule-charset.c (Fsave_charset_properties): New function when
239         HAVE_LIBCHISE is defined.
240         (syms_of_mule_charset): Add new builtin function
241         `save-charset-properties' when HAVE_LIBCHISE is defined.
242
243 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * chartab.c (Fput_char_attribute): Convert char-specs in value of
246         `{<-|->}ancient[^*]*' to characters and put reverse links.
247         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
248         for `{<-|->}ancient[^*]*'.
249
250 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (Fput_char_attribute): Convert char-specs in value of
253         `{<-|->}original[^*]*' to characters and put reverse links.
254         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
255         for `{<-|->}original[^*]*'.
256
257 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
260
261 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * mule-charset.c (Qsystem_char_id): New variable.
264
265         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
266         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
267
268 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * chartab.c (Fput_char_attribute): When processing a reference of
271         a character, put into the end of the reversed reference of each
272         target character.
273
274 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Q_same): Deleted.
277         (Q_same_of): Deleted.
278         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
279         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
280         for `{<-|->}same'.
281         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
282
283 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * chartab.c (Q_vulgar): Deleted.
286         (Q_vulgar_of): Deleted.
287         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
288         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
289         for `{<-|->}vulgar'.
290         (syms_of_chartab): Don't define `{<-|->}vulgar'.
291
292 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (Fput_char_attribute): Convert char-specs in value of
295         `{<-|->}wrong[^*]*' to characters and put reverse links.
296         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
297         for `{<-|->}wrong[^*]*'.
298
299 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (Q_vulgar): New variable.
302         (Q_vulgar_of): New variable.
303         (Fput_char_attribute): Convert char-specs in value of
304         `{->|<-}vulgar' to characters and put reverse links.
305         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
306         for `{->|<-}vulgar'.
307         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
308
309 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * text-coding.c (decode_add_er_char): Must to quote prefix string
312         as regexp.
313
314 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * mule-charset.c (put_char_ccs_code_point): Store characters of
317         =ucs whose code_points >= 0xF0000.
318
319 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
322         CHISE.
323         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
324         CHISE.
325         (complex_vars_of_mule_charset): Add new coded-charset
326         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
327         builtin characters over 0xEFFFF.
328
329         * chartab.c (syms_of_chartab): Don't define symbol
330         `system-char-id' in every case.
331
332         * char-ucs.h (Qsystem_char_id): New extern variable.
333         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
334
335 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * text-coding.c (char_encode_utf8): Try to use entity-references
338         for U-000F0000 ...  U-0010FFFF.
339
340 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * text-coding.c (ER_BUF_SIZE): New macro.
343         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
344         `er_buf'.
345         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
346         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
347
348 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * chartab.c (find_char_feature_in_family): New function.
351         (Fchar_feature): Use `find_char_feature_in_family' with
352         `->identical', `<-subsumptive' and `<-denotational'.
353
354 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * text-coding.c (char_encode_as_entity_reference): Allow prefix
357         within 8 characters; fix infinite loop.
358
359 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * chartab.c (Q_same): New variable.
362         (Q_same_of): New variable.
363         (Fput_char_attribute): Convert char-specs in value of
364         `{->|<-}same' to characters and put reverse links.
365         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
366         for `{->|<-}same'.
367         (syms_of_chartab): Add new symbols `{->|<-}same'.
368
369 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * chartab.c (Q_component): New variable.
372         (Q_component_of): Likewise.
373         (Fput_char_attribute): Convert char-specs in value of
374         `{->|<-}ideographic-component-forms' to characters and put reverse
375         links.
376         (syms_of_chartab): Add new symbols
377         `{->|<-}ideographic-component-forms'.
378
379 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
380
381         * chartab.c (Q_identical): New variable.
382         (Q_identical_from): New variable.
383         (Fchar_feature): Regard `->identical' as a feature to find
384         ancestors.
385         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
386         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
387         for `{->|<-}identical'.
388         (syms_of_chartab): Add new symbols `{->|<-}identical'.
389
390 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * char-ucs.h (encode_char_2): New inline function.
393         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
394
395 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * chartab.c (Fput_char_attribute): Convert char-specs to
398         characters in value of `ideographic-structure'.
399         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
400         for `{<-|->}simplified(@...)'.
401         (Fdefine_char): Try to use predefined character's id.
402
403 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * fns.c (simplify_char_spec): Try to convert builtin chars to
406         defined chars.
407
408 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Fput_char_attribute): Convert char-specs in value of
411         `<-simplified[^*]*' to characters and put reverse links.
412
413 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c (Q_subsumptive): Renamed from Q_unified.
416         (Q_subsumptive_from): Renamed from Q_unified_from.
417         (Fchar_feature): Use `Q_subsumptive_from' instead of
418         `Q_unified_from'.
419         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
420         `Q_unified'.
421         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
422         `<-unified' to `<-subsumptive'.
423
424 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
427         inheritance itself; fix typo; stop recursive search if cyclic
428         inheritance is found.
429
430 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * chartab.c (Q_denotational): New variable.
433         (Q_denotational_from): New variable.
434         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
435         (put_char_attribute): New function.
436         (Fput_char_attribute): Use `put_char_attribute'; regard
437         `->denotational' and `<-denotational' as same as `->unified' and
438         `<-unified'.
439         (syms_of_chartab): Add new symbols `->denotational' and
440         `<-denotational'.
441
442 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
445         `Fget_char_attribute'.
446         (Fchar_variants): Likewise.
447         (get_char_table): Likewise.
448         (Fchar_feature): New function.
449         (put_char_composition): Use `Fchar_feature' instead of
450         `Fget_char_attribute'.
451         (Fput_char_attribute): Likewise; don't put the target character
452         into its `->unified' value.
453         (syms_of_chartab): Add new builtin function `char-feature'.
454
455 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
456
457         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
458         `Fget_char_attribute'.
459         (char_encode_utf8): Likewise.
460
461         * chartab.h: Add an EXFUN for `Fchar_feature'.
462
463 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * chartab.c (Vnext_defined_char_id): New variable.
466         (Fput_char_attribute): Accept characters in `->unified'.
467         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
468         new characters which are not related with builtin char-id ranges.
469         (vars_of_chartab): Add new variable `next-defined-char-id'.
470
471 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * chartab.c (Q_unified): New variable.
474         (Q_unified_from): New variable.
475         (Fput_char_attribute): Add code for `->unified'.
476         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
477         XEmacs CHISE.
478
479 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * mule-charset.c (decode_ccs_conversion): New function.
482         (decode_defined_char): Use `decode_ccs_conversion'.
483         (decode_builtin_char): Likewise.
484
485 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
486
487         * char-ucs.h: Change some charset-ids of private coded-charsets.
488
489 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
492         (char_encode_as_entity_reference): Likewise.
493         (decode_coding_big5): Modify for `decode_defined_char' and
494         `DECODE_CHAR'.
495         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
496         avoid compiler warning.
497         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
498
499         * mule-charset.c (decode_defined_char): Add new argument
500         `without_inheritance'.
501         (Fdecode_char): Add new optional argument `without_inheritance'.
502         (Fdecode_builtin_char): Modify for `Fdecode_char'.
503
504         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
505         (simplify_char_spec): Likewise.
506
507         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
508         setting.
509
510         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
511         (map_char_table): Likewise.
512         (Fdefine_char): Use `Fdecode_char' without inheritance.
513         (Ffind_char): Modify for `Fdecode_char'.
514
515         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
516
517         * char-ucs.h (decode_defined_char): Add new argument
518         `without_inheritance'.
519         (DECODE_CHAR): Likewise.
520         (MAKE_CHAR): Modify for `DECODE_CHAR'.
521
522 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * chartab.c (Vchise_system_db_directory): New variable.
525         (vars_of_chartab): Add new variable `chise-system-db-directory'.
526
527 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c: EXFUN `Fmount_char_attribute_table'.
530         (print_chartab_range): Don't define when `UTF2000' is defined.
531         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
532         `CHISE_DS_open'.
533
534 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
537         and optional argument `rehash' is specified, call
538         `open_chise_data_source_maybe' before
539         `chise_ds_foreach_char_feature_name' is called.
540
541 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * chartab.c (char_attribute_list_reset_map_func): New function
544         when HAVE_LIBCHISE is defined.
545         (Fchar_attribute_list): Add new optional argument `rehash' when
546         HAVE_LIBCHISE is defined.
547         (open_chise_data_source_maybe): Use "chise-db" instead of
548         "char-db".
549         (char_attribute_system_db_file): Likewise.
550         (Fload_char_attribute_table): Use
551         `chise_feature_foreach_char_with_value' instead of
552         `chise_char_feature_value_iterate'.
553
554 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * chartab.c (Vchise_db_directory): New variable.
557         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
558
559 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
562         instead of HAVE_CHISE to specify using with libchise.
563
564         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
565
566         * chartab.h: Don't use HAVE_CHISE_CLIENT.
567
568         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
569         defined or HAVE_LIBCHISE_LIBCHISE is defined.
570         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
571         is defined.
572         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
573         HAVE_CHISE to specify using with libchise.
574         (syms_of_chartab): Don't define symbol `system-char-id' when
575         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
576
577 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
580         specify CHISE DB support.
581         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
582         of `char_attribute_system_db_file' to check feature DB file.
583
584         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
585         HAVE_CHISE_CLIENT to specify CHISE DB support.
586
587         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
588         specify CHISE DB support.
589         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
590         not defined.
591         (Freset_char_attribute_table): Use `chise_feature_setup_db'
592         instead of `char_attribute_system_db_file' to check feature DB
593         file.
594
595 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
598         `HAVE_CHISE_CLIENT'.
599
600 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
603         (Fsave_charset_mapping_table): Don't use
604         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
605
606         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
607         (HAVE_LIBCHISE): New macro.
608
609         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
610
611         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
612         (Fsave_char_attribute_table): Don't use
613         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
614
615 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
618         defined.
619         (save_uint16_byte_table): Likewise.
620         (save_byte_table): Likewise.
621         (char_table_get_db): Use `chise_ds_load_char_feature_value'
622         instead of `chise_char_load_feature_value'.
623         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
624
625 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * chartab.h (struct Lisp_Char_Table): Delete member
628         `feature_table' if CHISE is defined.
629
630         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
631         (Fcopy_char_table): Likewise.
632         (char_table_open_db_maybe): Likewise.
633         (char_table_close_db_maybe): Likewise.
634         (char_table_get_db): Likewise.
635         (Fmount_char_attribute_table): Likewise.
636         (Fload_char_attribute_table): Likewise.
637
638 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (load_char_decoding_entry_maybe): Use
641         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
642         `chise_ccs_decode'.
643
644 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
645
646         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
647         instead of `chise_open_data_source'.
648         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
649         `chise_ds_close'.
650
651 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
654         instead of `chise_ds_open_feature_table'.
655         (char_table_close_db_maybe): Don't use `chise_ft_close'.
656
657 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * mule-charset.c (Fsave_charset_mapping_table): Use
660         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
661         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
662         `chise_ccs_sync' instead of `chise_ccst_close'.
663         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
664
665         * chartab.c (open_chise_data_source_maybe): Modify for
666         `chise_open_data_source'.
667         (char_table_open_db_maybe): Modify for
668         `chise_ds_open_feature_table'.
669
670 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
671
672         * mule-charset.c (load_char_decoding_entry_maybe): Use
673         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
674         `chise_ccst_close'.
675
676 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
677
678         * mule-charset.c (Fsave_charset_mapping_table): Use
679         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
680         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
681         `chise_dt_put_char' and `chise_dt_close'.
682         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
683         `chise_ccs_decode' and `chise_ccst_close' instead of
684         `chise_ds_open_decoding_table', `chise_dt_get_char' and
685         `chise_dt_close'.
686
687         * chartab.c (char_table_get_db): Use
688         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
689         (load_char_attribute_table_map_func): Modify for
690         `chise_char_feature_value_iterate'.
691         (Fload_char_attribute_table): Use
692         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
693
694 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
697
698 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * chartab.c (put_char_table): Modify for inherited coded-charsets
701         in XEmacs CHISE.
702
703 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
704
705         * chartab.c (Fput_char_table_map_function): Fixed.
706         (word_boundary_p): Don't check charset in XEmacs CHISE.
707
708 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
709
710         * mule-charset.c (Fsave_charset_mapping_table): Use
711         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
712         instead of `chise_open_decoding_table'; refer
713         `default_chise_data_source'; use `chise_dt_close' instead of
714         `chise_close_decoding_table'.
715         (load_char_decoding_entry_maybe): Likewise.
716
717         * chartab.c (default_chise_data_source): New variable when `CHISE'
718         is defined.
719         (Fcopy_char_table): `ct->ds' is deleted.
720         (open_chise_data_source_maybe): New function.
721         (Fclose_char_data_source): New function.
722         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
723         use `chise_ds_open_feature_table' instead of
724         `chise_open_feature_table'.
725         (char_table_close_db_maybe): Use `chise_ft_close' instead of
726         `chise_close_feature_table'; `cit->ds' is deleted.
727         (syms_of_chartab): Add new builtin function
728         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
729
730         * chartab.h (default_chise_data_source): New extern variable.
731         (open_chise_data_source_maybe): New prototype.
732         (struct Lisp_Char_Table): Delete `ds'.
733
734 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
735
736         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
737         `CHISE' is defined.
738
739 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
740
741         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
742         not defined; add code for non-libchise setting.
743         (char_table_close_db_maybe): Likewise.
744         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
745         defined.
746         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
747         even if `CHISE' is not defined.
748         (Freset_char_attribute_table): Likewise.
749         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
750         `char_table_close_db_maybe' even if `CHISE' is not defined; use
751         `char_table_get_db'.
752         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
753         `char_table_close_db_maybe' even if `CHISE' is not defined.
754
755 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
756
757         * chartab.c (char_table_open_db_maybe): New function.
758         (char_table_close_db_maybe): New function.
759         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
760         (Freset_char_attribute_table): Likewise.
761         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
762         `char_table_close_db_maybe'.
763         (Fload_char_attribute_table): Likewise.
764
765 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
766
767         * chartab.c: Don't include <chise.h> because it is included in
768         chartab.h.
769         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
770         defined.
771         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
772         `CHISE' is defined.
773         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
774         `CHISE' is defined.
775         (Fclose_char_attribute_table): Close `ct->feature_table' and
776         `ct->ds' when `CHISE' is defined.
777         (Freset_char_attribute_table): Likewise.
778         (load_char_attribute_maybe): Use `cit->ds' and
779         `cit->feature_table' when `CHISE' is defined.
780         (Fload_char_attribute_table): Likewise.
781
782         * chartab.h: Include <chise.h> when `CHISE' is defined.
783         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
784         when `CHISE' is defined.
785
786 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
787
788         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
789         is defined.
790         (char_table_description): Likewise.
791         (Fmake_char_table): Likewise.
792         (Fcopy_char_table): Likewise.
793         (Fmount_char_attribute_table): Likewise.
794         (Fclose_char_attribute_table): Likewise.
795         (Freset_char_attribute_table): Likewise.
796         (load_char_attribute_maybe): Likewise.
797         (Fload_char_attribute_table): Likewise.
798
799         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
800         defined.
801
802 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
803
804         * chartab.c (load_char_attribute_table_map_func): New function
805         when CHISE is defined.
806         (Qload_char_attribute_table_map_function): Don't define when CHISE
807         is defined.
808         (Fload_char_attribute_table_map_function): Likewise.
809         (Fload_char_attribute_table): Use libchise when `CHISE' is
810         defined.
811         (syms_of_chartab): Don't define
812         `load-char-attribute-table-map-function' when CHISE is defined.
813
814 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * chartab.c: Include <chise.h> when `CHISE' is defined.
817         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
818
819 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
820
821         * mule-charset.c (charset_code_point): Fix problem when searching
822         in mother CCS fails with `defined_only' mode.
823
824 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
825
826         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
827         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
828         (put_char_composition): Likewise.
829         (Fput_char_attribute): Likewise.
830         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
831
832 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * chartab.c (Q_ucs): Deleted.
835         (Fput_char_attribute): Don't refer `->ucs'.
836         (Fdefine_char): Likewise.
837         (Ffind_char): Likewise.
838         (syms_of_chartab): Delete `->ucs'.
839
840 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * mule-charset.c (Qmap_cns11643_2): Renamed from
843         `Qchinese_cns11643_2'.
844         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
845         `chinese-cns11643-2'.
846         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
847         `=cns11643-2'.
848
849 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
850
851         * mule-charset.c (Qmap_cns11643_1): Renamed from
852         `Qchinese_cns11643_1'.
853         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
854         `chinese-cns11643-1'.
855         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
856         `=cns11643-1'.
857
858 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
859
860         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
861         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
862         `chinese-gb12345'.
863         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
864         `=gb12345'.
865
866 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
867
868         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
869         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
870         `chinese-gb2312'.
871         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
872         `=gb2312'.
873
874 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
875
876         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
877         (syms_of_mule_charset): Add new symbol `=big5' instead of
878         `chinese-big5'.
879         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
880
881 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
884         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
885         `korean-ksc5601'.
886         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
887         `=ks-x1001'.
888
889 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * mule-charset.c (Qmap_jis_x0212): Renamed from
892         `Qjapanese_jisx0212'.
893         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
894         `japanese-jisx0212'.
895         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
896         `=jis-x0212'.
897
898 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
899
900         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
901         `Qjapanese_jisx0208'.
902         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
903         of `japanese-jisx0208'.
904         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
905         `=jis-x0208-1983'.
906
907 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
908
909         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
910         `Qjapanese_jisx0208_1978'.
911         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
912         of `japanese-jisx0208-1978'.
913         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
914         `=jis-x0208-1978'.
915
916 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
917
918         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
919         only for XEmacs CHISE.
920
921 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * char-ucs.h: Compact non-ISO-IR charset-ids.
924         (LEADING_BYTE_UCS): Changed to -177.
925         (LEADING_BYTE_CONTROL_1): Changed to -77.
926         (LEADING_BYTE_UCS_BMP): Changed to -176.
927         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
928
929 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
930
931         * mule-charset.c (Qiso_ir): New variable.
932         (Fmake_charset): Recognise new property `iso-ir'.
933         (syms_of_mule_charset): Add new symbol `iso-ir'.
934
935 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
936
937         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
938         n to -n; charset-id of non ISO-IR sets are changed to positive
939         numbers.
940
941 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
942
943         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
944         for &MCS-XXXXXXXX; values.
945
946 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
947
948         * mule.c (Vxemacs_chise_version): Renamed from
949         `Vutf_2000_version'.
950         (vars_of_mule): Add new variable `xemacs-chise-version'; define
951         `utf-2000-version' as an alias for `xemacs-chise-version'.
952
953 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
954
955         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
956         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
957         defined.
958
959         * config.h.in (CHISE): New macro.
960
961 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
962
963         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
964         of `ucs'.
965         (Qmap_ucs): New variable.
966         (syms_of_mule_charset): Add new symbol `=ucs'.
967         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
968
969         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
970         (simplify_char_spec): Likewise.
971
972         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
973
974         * char-ucs.h (Qmap_ucs): New extern variable.
975
976 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
979         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
980         don't define it when UTF2000 is not defined.
981         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
982         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
983         when UTF2000 is not defined.
984         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
985         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
986
987 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
988
989         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
990
991         * mule-charset.c (Vcharset_ucs_gb): Deleted.
992         (Qucs_gb): Deleted.
993         (syms_of_mule_charset): Delete `ucs-gb'.
994         (complex_vars_of_mule_charset): Likewise.
995
996 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
997
998         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
999
1000         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1001         (Qucs_cns): Deleted.
1002         (syms_of_mule_charset): Delete `ucs-cns'.
1003         (complex_vars_of_mule_charset): Likewise.
1004
1005 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1008
1009         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1010         (Qucs_jis): Deleted.
1011         (syms_of_mule_charset): Delete `ucs-jis'.
1012         (complex_vars_of_mule_charset): Likewise.
1013
1014 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1015
1016         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1017
1018         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1019         (Qucs_ks): Deleted.
1020         (syms_of_mule_charset): Delete `ucs-ks'.
1021         (complex_vars_of_mule_charset): Likewise.
1022
1023 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1024
1025         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1026         (Qideograph_daikanwa_2): Deleted.
1027         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1028         (complex_vars_of_mule_charset): Likewise.
1029
1030         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1031         (LEADING_BYTE_DAIKANWA_1): Deleted.
1032         (LEADING_BYTE_DAIKANWA_2): Deleted.
1033         (MIN_CHAR_DAIKANWA): Deleted.
1034         (MAX_CHAR_DAIKANWA): Deleted.
1035
1036 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1037
1038         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1039         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1040         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1041
1042         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1043         (Vcharset_ideograph_daikanwa): Deleted.
1044         (Qideograph_hanziku_{1..12}): Deleted.
1045         (Qideograph_daikanwa): Deleted.
1046         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1047         Vcharset_ideograph_daikanwa.
1048         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1049         `ideograph-hanziku-{1..12}'.
1050         (complex_vars_of_mule_charset): Likewise.
1051
1052 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1053
1054         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1055
1056         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1057         (Qideograph_gt_pj_{1..11}): Deleted.
1058         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1059         (complex_vars_of_mule_charset): Likewise.
1060
1061 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1062
1063         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1064         (Vcharset_ideograph_gt): Deleted.
1065         (Qucs_big5): Deleted.
1066         (Qideograph_gt): Deleted.
1067         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1068         `ideograph-gt'.
1069         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1070         and `ideograph-gt'.
1071
1072         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1073         (LEADING_BYTE_GT): Deleted.
1074         (MIN_CHAR_GT): Deleted.
1075         (MAX_CHAR_GT): Deleted.
1076
1077 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1078
1079         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1080
1081 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1084         (save_uint16_byte_table): Likewise.
1085         (save_byte_table): Likewise; convert values by it.
1086         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1087         for `ideographic-structure'.
1088         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1089         as the filter for `ideographic-structure'.
1090
1091 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1092
1093         * chartab.c (put_char_composition): New function.
1094         (Fput_char_attribute): Use `put_char_composition'; use
1095         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1096
1097         * fns.c (simplify_char_spec): New function.
1098         (char_ref_simplify_spec): New function.
1099         (Fchar_refs_simplify_char_specs): New function.
1100         (syms_of_fns): Add new builtin function
1101         `char-refs-simplify-char-specs'.
1102
1103 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1104
1105         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1106         (Qideograph_cbeta): Deleted.
1107         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1108         (complex_vars_of_mule_charset): Likewise.
1109
1110         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1111         (MIN_CHAR_CBETA): Comment out.
1112         (MAX_CHAR_CBETA): Likewise.
1113
1114 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1115
1116         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1117         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1118         CHISE client feature.
1119
1120 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1123
1124 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1125
1126         * mule-charset.c (charset_lookup_description_1): Use
1127         `NUM_LEADING_BYTES' in UTF-2000.
1128
1129 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * char-ucs.h (GC_CHARSETP): Deleted.
1132
1133 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134
1135         * char-ucs.h (MAX_CHAR_GT): Updated.
1136
1137 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * text-coding.c: Sync with XEmacs 21.4.10.
1140
1141 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1142
1143         * mule-charset.c (Vcharset_china3_jef): Deleted.
1144         (Qchina3_jef): Deleted.
1145         (syms_of_mule_charset): Don't define `china3-jef'.
1146         (complex_vars_of_mule_charset): Likewise.
1147
1148         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1149         (MIN_CHAR_CHINA3_JEF): Comment out.
1150         (MAX_CHAR_CHINA3_JEF): Comment out.
1151
1152 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (Vcharset_ucs_gb): New variable.
1155         (Qucs_gb): New variable.
1156         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1157         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1158
1159         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1160
1161 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1162
1163         * mule-charset.c (charset_code_point): if a coded-charset has a
1164         final-byte, don't inherit the builtin range of the mother CCS.
1165
1166 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * mule-charset.c (charset_code_point): Fix problem about
1169         inheritance.
1170
1171 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1172
1173         * mule-charset.c (decode_builtin_char): Reorganized.
1174
1175 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * text-coding.c (char_encode_as_entity_reference): Modify for
1178         `charset_code_point'.
1179         (char_encode_shift_jis): Likewise.
1180         (char_encode_big5): Likewise.
1181         (char_encode_utf8): Likewise.
1182         (char_encode_iso2022): Likewise.
1183
1184         * mule-charset.c (charset_code_point): Add new argument
1185         `defined_only'.
1186         (Fencode_char): Add new optional argument `defined_only'.
1187
1188         * chartab.c (put_char_table): Modify for `charset_code_point'.
1189
1190         * char-ucs.h (charset_code_point): Add new argument
1191         `defined_only'.
1192         (encode_char_1): Modify for `charset_code_point'.
1193
1194 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1197         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1198
1199 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200
1201         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1202         (Qjis_x0208): Likewise.
1203         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1204         XCHARSET_FINAL(charset).
1205         (charset_code_point): Modify condition for final-byte based
1206         builtin-chars.
1207         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1208         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1209         in UTF-2000; specify `=jis-x0208' as the mother of
1210         `japanese-jisx0208-1978', `japanese-jisx0208' and
1211         `japanese-jisx0208-1990' in UTF-2000.
1212
1213 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1214
1215         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1216
1217 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * text-coding.c (decode_coding_utf16): Support UTF-16.
1220         (char_encode_utf16): Fixed.
1221
1222 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * text-coding.c (Qutf16): New variable in MULE.
1225         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1226         (Fcoding_system_type): Add `utf-16' in MULE.
1227         (struct detection_state): Add a structure for utf16 in MULE.
1228         (detect_coding_type): Setup st->utf16.mask in MULE.
1229         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1230         MULE.
1231         (reset_encoding_stream): Use `char_encode_utf16' and
1232         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1233         (detect_coding_utf16): New function [incomplete].
1234         (decode_coding_utf16): New function [support only UCS-2].
1235         (char_encode_utf16): New function.
1236         (char_finish_utf16): New function.
1237         (syms_of_file_coding): Add new symbol `utf-16'; setup
1238         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1239
1240         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1241         UTF-2000.
1242         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1243         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1244
1245 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1246
1247         * chartab.c (put_char_table): When a charset is specified as a
1248         range in UTF-2000, don't support builtin characters.
1249
1250 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * mule-charset.c (decode_defined_char): Don't refer external
1253         database if Qunbound or Qnil are found.
1254         (Fsave_charset_mapping_table): Don't define it if
1255         HAVE_CHISE_CLIENT is not defined.
1256         (Freset_charset_mapping_table): New function.
1257         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1258         found in external database.
1259         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1260         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1261         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1262
1263 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1264
1265         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1266         not.
1267
1268 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1269
1270         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1271         Q_lowercase, Q_uppercase in UTF-2000.
1272
1273         * chartab.c (get_char_table): Add special code for the standard
1274         case table to use character attribute `->downcase' and
1275         `->uppercase' for case operations in UTF-2000.
1276
1277         * casetab.c (Qflippedcase): New variable in UTF-2000.
1278         (Q_lowercase): Likewise.
1279         (Q_uppercase): Likewise.
1280         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1281         and `->uppercase' in UTF-2000.
1282         (complex_vars_of_casetab): Assign attribute name `downcase' to
1283         downcase and CANON table of Vstandard_case_table in UTF-2000;
1284         assign attribute name `flippedcase' to upcase and EQV table of
1285         Vstandard_case_table in UTF-2000.
1286
1287 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1288
1289         * text-coding.c (decode_add_er_char): Support isolated-chars.
1290         (char_encode_as_entity_reference): Likewise.
1291
1292 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1293
1294         * emacs.c (Vutf_2000_lisp_directory): New variable.
1295         (Vconfigure_utf_2000_lisp_directory): Likewise.
1296         (complex_vars_of_emacs): Add new variable
1297         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1298
1299 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1300
1301         * char-ucs.h (DECODE_CHAR): Delete special code for
1302         `chinese-big5-1' and `chinese-big5-2'.
1303
1304         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1305         (Qbig5_2): Likewise.
1306         (decode_defined_char): Support CONVERSION_BIG5_1 and
1307         CONVERSION_BIG5_2.
1308         (decode_builtin_char): Likewise.
1309         (charset_code_point): Likewise.
1310         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1311         'conversion in UTF-2000.
1312         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1313         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1314         `chinese-big5-2' as children of `chinese-big5'.
1315
1316         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1317         (CONVERSION_BIG5_2): New macro.
1318
1319 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1320
1321         * text-coding.c (char_encode_big5): Support entity-reference.
1322
1323 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * text-coding.c (char_encode_as_entity_reference): New function.
1326         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1327
1328 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * text-coding.c (decode_coding_big5): Support entity-reference
1331         decoding feature.
1332
1333 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * text-coding.c (allocate_coding_system): Initialize initial
1336         charsets for CODESYS_UTF8.
1337         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1338         charset-g2 for CODESYS_UTF8.
1339         (decode_coding_utf8): Use charset-g0.
1340         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1341         to force variants to map to UCS.
1342
1343 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * text-coding.c (Qutf_8_mcs): New variable.
1346         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1347         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1348         instead of `utf-8' in UTF-2000.
1349
1350 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1351
1352         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1353         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1354         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1355         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1356         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1357         CONVERSION_96x96x96x96 are introduced.
1358         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1359         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1360         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1361
1362         * char-ucs.h (CONVERSION_94): New macro.
1363         (CONVERSION_96): New macro.
1364         (CONVERSION_94x94): New macro.
1365         (CONVERSION_96x96): New macro.
1366         (CONVERSION_94x94x94): New macro.
1367         (CONVERSION_96x96x96): New macro.
1368         (CONVERSION_94x94x94x60): New macro.
1369         (CONVERSION_94x94x94x94): New macro.
1370         (CONVERSION_96x96x96x96): New macro.
1371
1372 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1373
1374         * chartab.c (Vcharacter_variant_table): Deleted.
1375         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1376         of `Vcharacter_variant_table'.
1377         (Fput_char_attribute): Likewise.
1378         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1379         (complex_vars_of_chartab): Likewise.
1380
1381 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1382
1383         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1384
1385         * fns.c (Qideographic_structure): New variable.
1386         (Qkeyword_char): New variable.
1387         (ids_format_unit): New function.
1388         (Fideographic_structure_to_ids): New function.
1389         (syms_of_fns): Add new symbols `ideographic-structure' and
1390         `:char'; add new builtin function `ideographic-structure-to-ids'.
1391
1392         * data.c (Fchar_ref_p): New function.
1393         (syms_of_data): Add new builtin function `char-ref-p'.
1394
1395         * chartab.h: Add an EXFUN for `Ffind_char'.
1396
1397 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * text-coding.c (Vcharacter_composition_table): Deleted.
1400         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1401         in every UTF-2000.
1402
1403         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1404         UTF-2000.
1405         (Vcharacter_composition_table): Deleted.
1406         (Fget_composite_char): Use the implementation for external-DB
1407         support in every UTF-2000.
1408         (Fput_char_attribute): Likewise.
1409         (char_attribute_system_db_file): Don't define if external-DB
1410         feature is not available.
1411         (Fsave_char_attribute_table): Likewise.
1412         (Fmount_char_attribute_table): Likewise.
1413         (Fclose_char_attribute_table): Likewise.
1414         (Freset_char_attribute_table): Likewise.
1415         (Fload_char_attribute_table): Likewise.
1416         (syms_of_chartab): Don't define `save-char-attribute-table',
1417         `mount-char-attribute-table', `reset-char-attribute-table',
1418         `close-char-attribute-table' and `load-char-attribute-table' if
1419         external-DB feature is not available.
1420         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1421
1422 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1423
1424         * text-coding.c (Qcomposition): Add extern if external-DB feature
1425         is supported.
1426         (Vcharacter_composition_table): Don't add extern if external-DB
1427         feature is supported.
1428         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1429         character composition rule if external-DB feature is supported.
1430
1431         * chartab.c (Vcharacter_composition_table): Don't define if
1432         external-DB feature is supported.
1433         (Qcomposition): New variable.
1434         (Fget_composite_char): New implementation for external-DB support.
1435         (Fput_char_attribute): Use `composition' property of each
1436         character instead of `Vcharacter_composition_table' to store
1437         character-composition rules if external-DB feature is supported.
1438         (syms_of_chartab): Add new symbol `composition'.
1439         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1440         external-DB feature is supported.
1441
1442 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1443
1444         * chartab.c (Vchar_db_stingy_mode): New variable.
1445         (load_char_attribute_maybe): Close database if
1446         Vchar_db_stingy_mode is not NIL.
1447         (Fload_char_attribute_table_map_function): Use
1448         `get_char_id_table_0' instead of `get_char_id_table'.
1449         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1450
1451         * chartab.h (get_char_id_table_0): New inline function.
1452         (get_char_id_table): Use `get_char_id_table_0'.
1453
1454 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1455
1456         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1457         and `COMPOSE_ADD_CHAR'.
1458         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1459
1460 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1463         instead of `DECODE_ADD_UCS_CHAR'.
1464         (COMPOSE_ADD_CHAR): Likewise.
1465
1466 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1467
1468         * text-coding.c (decode_flush_er_chars): New inline function.
1469         (decode_add_er_char): New function.
1470         (decode_coding_utf8): Use `decode_flush_er_chars' and
1471         `decode_add_er_char'.
1472
1473 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1474
1475         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1476         done before `decode_output_utf8_partial_char'.
1477
1478         * mule-charset.c (complex_vars_of_mule_charset): Specify
1479         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1480         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1481
1482 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * mule-charset.c (decode_defined_char): New function; search
1485         mother.
1486         (decode_builtin_char): Don't search mother if
1487         XCHARSET_MAX_CODE(charset) == 0.
1488         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1489         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1490         (Fdecode_char): Use `decode_defined_char' instead of
1491         `DECODE_DEFINED_CHAR'.
1492         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1493         mother of `Vcharset_ucs_jis'.
1494
1495         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1496         instead of `DECODE_DEFINED_CHAR'.
1497
1498         * char-ucs.h (decode_defined_char): Renamed from
1499         `DECODE_DEFINED_CHAR'; changed to normal function.
1500         (DECODE_CHAR): Use `decode_defined_char' instead of
1501         `DECODE_DEFINED_CHAR'.
1502
1503         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1504
1505 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1508
1509         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1510         variable.
1511         (Quse_entity_reference): New variable.
1512         (Qd): New variable.
1513         (Qx): New variable.
1514         (QX): New variable.
1515         (coding_system_description): Add description for
1516         `ccs_priority_list'.
1517         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1518         (allocate_coding_system): Initialize `ccs_priority_list' in
1519         UTF-2000.
1520         (Fmake_coding_system): Add description about
1521         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1522         (codesys).
1523         (Fcoding_system_property): Accept `disable-composition' and
1524         `use-entity-reference' in UTF-2000.
1525         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1526         in UTF-2000.
1527         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1528         (decode_coding_utf8): Decode entity-reference if
1529         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1530         (char_encode_utf8): Encode non-Unicode characters as
1531         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1532         (str->codesys).
1533         (syms_of_file_coding): Add new symbols `use-entity-reference',
1534         `d', `x', `X'.
1535         (vars_of_file_coding): Add new variable
1536         `coded-charset-entity-reference-alist'.
1537         (complex_vars_of_file_coding): Declare `disable-composition' and
1538         `use-entity-reference' to be coding-system-properties in UTF-2000.
1539
1540         * file-coding.h (struct Lisp_Coding_System): Add new member
1541         `use_entity_reference' and `ccs_priority_list'.
1542         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1543         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1544         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1545
1546 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1547
1548         * chartab.c (save_uint8_byte_table): Don't clear the table.
1549         (save_uint16_byte_table): Likewise.
1550         (save_byte_table): Likewise.
1551         (Fmount_char_attribute_table): New function.
1552         (syms_of_chartab): Add new builtin function
1553         `mount-char-attribute-table'.
1554
1555 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1556
1557         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1558         "w+" mode.
1559         (load_char_decoding_entry_maybe): Open database as read-only mode.
1560
1561         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1562         open database as "w+" mode.
1563         (load_char_attribute_maybe): Open database as read-only mode.
1564         (Fload_char_attribute_table): Likewise.
1565
1566 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1567
1568         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1569         (char_table_description): Delete member `db_file'.
1570         (Fmake_char_table): Don't refer `ct->db_file'.
1571         (Fcopy_char_table): Likewise.
1572         (Fsave_char_attribute_table): Likewise.
1573         (Fclose_char_attribute_table): Likewise.
1574         (Freset_char_attribute_table): Likewise.
1575         (load_char_attribute_maybe): Likewise.
1576         (Fload_char_attribute_table): Likewise.
1577
1578         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1579
1580 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1583         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1584         `ct->db' is living.
1585         (load_char_attribute_maybe): Likewise.
1586         (Fload_char_attribute_table): Likewise.
1587
1588 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1589
1590         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1591         `ct->db_file' unconditionally.
1592
1593 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1594
1595         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1596         UTF-2000.
1597         (char_table_description): Add description for `db_file' and `db'
1598         in UTF-2000.
1599         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1600         UTF-2000.
1601         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1602         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1603         (Fclose_char_attribute_table): New function.
1604         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1605         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1606         and `cit->db'.
1607         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1608         (syms_of_chartab): Add new builtin function
1609         `Fclose_char_attribute_table'.
1610
1611 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1612
1613         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1614         `db' in UTF-2000.
1615         (load_char_attribute_maybe): Change interface.
1616         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1617
1618 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1619
1620         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1621
1622 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1623
1624         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1625         instead of `DECODE_CHAR' for mother; don't use special code for
1626         chinese-big5 to use code space of chinese-big5-1 and
1627         chinese-big5-2.
1628         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1629         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1630
1631         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1632         (MAX_CHAR_BIG5_CDP): Revival.
1633
1634 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1635
1636         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1637         the XLFD registry-encoding name of `chinese-big5'.
1638
1639 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1640
1641         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1642         (Qchinese_big5_cdp): Deleted.
1643         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1644         (complex_vars_of_mule_charset): Delete coded-charset
1645         `chinese-big5-cdp'.
1646
1647         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1648         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1649         `CHARSET_ID_OFFSET - n' for private CCS.
1650         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1651         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1652         of `MIN_LEADING_BYTE'.
1653         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1654         `(CHARSET_ID_OFFSET - 97)'.
1655         (MIN_CHAR_BIG5_CDP): Deleted.
1656         (MAX_CHAR_BIG5_CDP): Deleted.
1657
1658 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1659
1660         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1661
1662 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1665         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1666         chartab.c].
1667
1668         * chartab.c (Vutf_2000_version): Moved to mule.c.
1669         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1670
1671 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1672
1673         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1674         when HAVE_CHISE_CLIENT is not defined.
1675
1676         * mule.c (vars_of_mule): Provide feature `chise' when
1677         HAVE_CHISE_CLIENT is defined.
1678
1679 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1680
1681         * config.h.in (UTF2000): Add comment.
1682         (HAVE_CHISE_CLIENT): New macro.
1683
1684 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1685
1686         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1687         CONSP.
1688         (Fput_char_attribute): Likewise.
1689         (char_attribute_system_db_file): Encode file-name of attribute.
1690         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1691         the initial value.
1692
1693 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1694
1695         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1696         (Fsave_charset_mapping_table): Use
1697         `char_attribute_system_db_file'.
1698         (load_char_decoding_entry_maybe): Likewise.
1699
1700         * chartab.h (Qsystem_char_id): New external variable.
1701         (char_attribute_system_db_file): New prototype.
1702
1703         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1704         (char_attribute_system_db_file): New function.
1705         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1706         (Freset_char_attribute_table): Likewise.
1707         (load_char_attribute_maybe): Likewise.
1708         (Fload_char_attribute_table): Likewise.
1709         (syms_of_chartab): Add new symbol `system-char-id'.
1710
1711 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1712
1713         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1714         `XCHARSET_GRAPHIC(ccs)'.
1715
1716 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1719
1720 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1721
1722         * chartab.c (Q_ucs_variants): New variable.
1723         (syms_of_chartab): Add new symbol `->ucs-variants'.
1724         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1725         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1726         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1727
1728         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1729
1730         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1731         `HAVE_DATABASE' is defined.
1732         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1733         `HAVE_DATABASE' is defined.
1734
1735 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1736
1737         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1738         attribute-table.
1739         (Freset_char_attribute_table): New function.
1740         (syms_of_chartab): Add new builtin function
1741         `reset-char-attribute-table'.
1742
1743 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1744
1745         * chartab.c (load_char_attribute_maybe): Don't make directories.
1746
1747 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1748
1749         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1750
1751         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1752         for decoding-table.
1753
1754 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1755
1756         * mule-charset.c (Fsave_charset_mapping_table): Use
1757         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1758
1759         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1760         instead of `XCHARSET_CHARS'.
1761
1762 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1763
1764         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1765         (XCHARSET_BYTE_SIZE): Likewise.
1766
1767         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1768         mule-charset.c].
1769         (XCHARSET_BYTE_SIZE): Likewise.
1770
1771 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1772
1773         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1774         data-directory to store database.
1775         (Fsave_char_attribute_table): Likewise.
1776         (load_char_attribute_maybe): Likewise.
1777         (Fload_char_attribute_table): Likewise.
1778
1779 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1780
1781         * mule-charset.c (Fsave_charset_mapping_table): New function.
1782         (syms_of_mule_charset): Add new builtin function
1783         `save-charset-mapping-table'.
1784
1785 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786
1787         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1788         (get_ccs_octet_table): New inline function.
1789         (put_ccs_octet_table): Likewise.
1790         (decoding_table_put_char): Use `get_ccs_octet_table' and
1791         `put_ccs_octet_table'.
1792         (decoding_table_remove_char): Use `decoding_table_put_char'.
1793         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1794
1795         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1796         into encoding_table.
1797         (make_charset): Use Qunbound instead Qnil as initial value of
1798         decoding_table.
1799
1800 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1801
1802         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1803         element is Qunloaded.
1804         (map_over_uint16_byte_table): Likewise.
1805         (map_over_byte_table): Likewise.
1806         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1807         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1808         database support, load encoding-table of the specified
1809         coded-charset if it is not loaded yet.
1810         (save_uint8_byte_table): New function of UTF-2000 with external
1811         database support.
1812         (save_uint16_byte_table): Likewise.
1813         (save_byte_table): Likewise.
1814         (Fput_char_attribute): Don't store value into external database
1815         even if the external database feature is supported in UTF-2000;
1816         set `attribute' as name of char-table if the external database
1817         feature is supported.
1818         (Fsave_char_attribute_table): New function in UTF-2000.
1819         (syms_of_chartab): Add new builtin function
1820         `save-char-attribute-table' in UTF-2000.
1821
1822 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1823
1824         * chartab.c (char_attribute_table_to_put): New variable in
1825         UTF-2000.
1826         (Qput_char_table_map_function): Likewise.
1827         (value_to_put): Likewise.
1828         (Fput_char_table_map_function): New function in UTF-2000.
1829         (put_char_table): Use `Fmap_char_attribute' for
1830         CHARTAB_RANGE_CHARSET in UTF-2000.
1831         (Fput_char_attribute): Store symbol instead of string in
1832         `XCHAR_TABLE_NAME (table)'.
1833         (load_char_attribute_maybe): Likewise.
1834         (syms_of_chartab): Add new symbol/function
1835         `put-char-table-map-function'.
1836
1837 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * database.h: Add new EXFUN for `Fmap_database'.
1840
1841         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1842         (syms_of_database): Likewise.
1843
1844         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1845         UTF-2000.
1846         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1847         (XCHAR_TABLE_UNLOADED): Likewise.
1848
1849         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1850         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1851         HAVE_DATABASE is defined.
1852         (char_attribute_table_to_load): New variable of UTF-2000 with
1853         external database support.
1854         (Qload_char_attribute_table_map_function): Likewise.
1855         (Fload_char_attribute_table_map_function): New function of
1856         UTF-2000 with external database support.
1857         (Fload_char_attribute_table): New function of UTF-2000.
1858         (Fmap_char_attribute): Call Fload_char_attribute_table if
1859         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1860         (syms_of_chartab): Add new symbol and function
1861         `load-char-attribute-table-map-function' in UTF-2000 with external
1862         database support; add new function `load-char-attribute-table' in
1863         UTF-2000.
1864
1865 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1866
1867         * chartab.h (load_char_attribute_maybe): New prototype for
1868         UTF-2000 with DATABASE support.
1869         (get_char_id_table): Use `load_char_attribute_maybe' if
1870         HAVE_DATABASE is defined.
1871
1872         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1873         with DATABASE support.
1874
1875 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876
1877         * chartab.c (Fput_char_attribute): Use S-expression as key of
1878         external database.
1879
1880         * chartab.h (get_char_id_table): Use S-expression as key of
1881         external database.
1882
1883 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1884
1885         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1886         if an element is not loaded, load the corresponding attributes
1887         from an external database.
1888         (map_over_uint16_byte_table): Likewise.
1889         (map_over_byte_table): Likewise.
1890         (map_char_table): Modify for `map_over_uint8_byte_table',
1891         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1892         element is not loaded, load the corresponding attributes from an
1893         external database.
1894         (Fput_char_attribute): Change initial values to Qunloaded.
1895
1896         * chartab.h (get_char_id_table): If a character attribute is not
1897         loaded and the attribute value is not found in an external
1898         database, store Qunbound as the attribute value.
1899
1900 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1901
1902         * chartab.c (BT_UINT8_unloaded): New macro.
1903         (UINT8_VALUE_P): Accept Qunloaded.
1904         (UINT8_ENCODE): Likewise.
1905         (UINT8_DECODE): Likewise.
1906         (BT_UINT16_unloaded): New macro.
1907         (UINT16_VALUE_P): Accept Qunloaded.
1908         (UINT16_ENCODE): Likewise.
1909         (UINT16_DECODE): Likewise.
1910         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1911         BT_UINT16_unloaded.
1912         (mark_char_table): Mark `ct->name' in UTF-2000.
1913         (char_table_description): Add `name' in UTF-2000.
1914         (Fmake_char_table): Initialize `ct->name'.
1915         (Fcopy_char_table): Copy `ct->name'.
1916         (Fput_char_attribute): Store value into an external database if
1917         HAVE_DATABASE is defined.
1918
1919         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1920         UTF-2000.
1921         (CHAR_TABLE_NAME): New macro in UTF-2000.
1922         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1923         (get_char_id_table): Try to read an external database if Qunloaded
1924         is stored in a table.
1925
1926         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1927         Qunloaded.
1928
1929 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1930
1931         * database.h: Add EXFUN definitions for Fopen_database,
1932         Fput_database, Fget_database and Fclose_database.
1933
1934         * data.c (Qunloaded): New variable in UTF-2000.
1935
1936         * lisp.h (Qunloaded): New variable in UTF-2000.
1937
1938 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * mule-charset.c (put_char_ccs_code_point): Modify for
1941         `decoding_table_remove_char' and `decoding_table_put_char'.
1942         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1943
1944         * char-ucs.h (decoding_table_remove_char): Change arguments to
1945         hide decoding_table vector.
1946         (decoding_table_put_char): Likewise.
1947
1948 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949
1950         * mule-charset.c (decoding_table_remove_char): Moved to
1951         char-ucs.h.
1952         (decoding_table_put_char): Likewise.
1953
1954         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1955         from mule-charset.c].
1956         (decoding_table_remove_char): New inline function [moved from
1957         mule-charset.c].
1958         (decoding_table_put_char): Likewise.
1959
1960 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1961
1962         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1963         extension.
1964
1965 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1966
1967         * mule-charset.c (decode_builtin_char): Support mother charsets.
1968
1969 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1970
1971         * mule-charset.c (Q94x94x60): New variable.
1972         (charset_code_point): Support conversion `94x94x60'.
1973         (Fmake_charset): Likewise.
1974         (syms_of_mule_charset): Add new symbol `94x94x60'.
1975
1976         * char-ucs.h (CONVERSION_94x94x60): New macro.
1977
1978 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1979
1980         * mule-charset.c (charset_code_point): Unify code about
1981         `code-offset'.
1982
1983 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1984
1985         * mule-charset.c (charset_code_point): Merge code about builtin
1986         characters into code about mother charsets; don't use
1987         `range_charset_code_point'.
1988         (range_charset_code_point): Deleted.
1989
1990 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1991
1992         * mule-charset.c (Qcode_offset): New variable.
1993         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1994         `max-code'; accept new property `code-offset'.
1995         (syms_of_mule_charset): Add new symbol `code-offset'.
1996
1997 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1998
1999         * mule-charset.c (range_charset_code_point): Fixed.
2000
2001 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * mule-charset.c (decode_builtin_char): Change semantics of
2004         code-offset of coded-charset.
2005         (charset_code_point): Likewise.
2006         (range_charset_code_point): Likewise.
2007         (complex_vars_of_mule_charset): Modify for the change.
2008
2009 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * mule-charset.c (Fencode_char): Reverse arguments.
2012
2013         * mule-charset.c (charset_code_point): Fixed.
2014
2015 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * mule-charset.c (Vcharset_mojikyo): Deleted.
2018         (Vcharset_mojikyo_2022_1): Deleted.
2019         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2020         (Qmin_code): New variable in UTF-2000.
2021         (Qmax_code): Likewise.
2022         (Qmother): Likewise.
2023         (Qconversion): Likewise.
2024         (Q94x60): Likewise.
2025         (Qmojikyo): Deleted.
2026         (Qmojikyo_2022_1): Deleted.
2027         (Qmojikyo_pj_{1..22}): Deleted.
2028         (mark_charset): Mark `cs->mother'.
2029         (charset_description): Add description for `mother'.
2030         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2031         new arguments `mother' and `conversion'; use
2032         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2033         (charset_code_point): Moved from char-ucs.h; support `mother'
2034         charset feature.
2035         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2036         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2037         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2038         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2039         allow 2 as the value of `graphic' in UTF-2000; add new properties
2040         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2041         require `final' in UTF-2000; modify for `make_charset'.
2042         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2043         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2044         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2045         (Fencode_char): New function.
2046         (syms_of_mule_charset): Add new builtin function `encode-char' in
2047         UTF-2000; add new symbols `min-code', `max-code', `mother',
2048         `conversion' and `94x60'; delete symbols `mojikyo',
2049         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2050         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2051         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2052         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2053
2054         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2055         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2056
2057         * char-ucs.h (Vcharset_mojikyo): Deleted.
2058         (Vcharset_mojikyo_2022_1): Deleted.
2059         (LEADING_BYTE_MOJIKYO): Deleted.
2060         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2061         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2062         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2063         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2064         add new member `mother'; add new member `conversion'.
2065         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2066         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2067         (CHARSET_MOTHER): New macro.
2068         (CHARSET_CONVERSION): New macro.
2069         (CONVERSION_IDENTICAL): New macro.
2070         (CONVERSION_94x60): New macro.
2071         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2072         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2073         (XCHARSET_MOTHER): New macro.
2074         (XCHARSET_CONVERSION): New macro.
2075         (MIN_CHAR_MOJIKYO): Deleted.
2076         (MAX_CHAR_MOJIKYO): Deleted.
2077         (DECODE_MOJIKYO_2022): Deleted.
2078         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2079         (charset_code_point): Changed to non-inline function.
2080         (encode_char_1): Use `charset_code_point'.
2081         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2082
2083 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * lread.c (read_compiled_function): Fix prototype.
2086         (read_vector): Likewise.
2087
2088 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * lrecord.h (struct lrecord_header): Delete `older'.
2091         (set_lheader_implementation): Delete code for `older'.
2092         (set_lheader_older_implementation): Deleted.
2093         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2094         (OLDER_RECORD_P): Deleted.
2095         (OLDER_RECORD_HEADER_P): Deleted.
2096         (alloc_older_lcrecord): Deleted.
2097         (alloc_older_lcrecord_type): Deleted.
2098
2099         * alloc.c (all_older_lcrecords): Deleted.
2100         (alloc_older_lcrecord): Deleted.
2101         (disksave_object_finalization_1): Delete code for older objects.
2102         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2103         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2104
2105 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2106
2107         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2108         instead of `make_older_vector'.
2109         (put_char_ccs_code_point): Likewise.
2110         (mark_charset): Mark `cs->decoding_table'.
2111         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2112
2113         * lisp.h (make_older_vector): Deleted.
2114         (make_vector_newer): Deleted.
2115
2116         * config.h.in (HAVE_GGC): Deleted.
2117
2118         * alloc.c (make_older_vector): Deleted.
2119         (make_vector_newer_1): Deleted.
2120         (make_vector_newer): Deleted.
2121
2122 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2125         (Qideograph_daikanwa_2): New variable.
2126         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2127         (complex_vars_of_mule_charset): Add new coded-charset
2128         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2129         `LEADING_BYTE_DAIKANWA'.
2130
2131         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2132         (LEADING_BYTE_DAIKANWA_1): New macro.
2133         (LEADING_BYTE_DAIKANWA_2): New macro.
2134         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2135
2136 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * mule-charset.c (complex_vars_of_mule_charset): Change
2139         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2140         the second revised version.
2141
2142 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143
2144         * mule-charset.c (Vcharset_ucs_smp): New variable.
2145         (Vcharset_ucs_sip): New variable.
2146         (Qucs_smp): New variable.
2147         (Qucs_sip): New variable.
2148         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2149         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2150         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2151         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2152         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2153         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2154
2155         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2156         (LEADING_BYTE_UCS_SIP): New macro.
2157         (MIN_CHAR_SMP): New macro.
2158         (MAX_CHAR_SMP): New macro.
2159         (MIN_CHAR_SIP): New macro.
2160         (MAX_CHAR_SIP): New macro.
2161
2162 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2163
2164         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2165         utf-2000.
2166
2167 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2170         value; don't store value into `encoding_table' of `Lisp_Charset'.
2171         (mark_charset): `encoding_table' was deleted.
2172         (charset_description): Likewise.
2173         (make_charset): Likewise.
2174         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2175         `put_char_ccs_code_point'.
2176
2177         * chartab.h (Fput_char_attribute): New EXFUN.
2178
2179         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2180         is unified with normal symbol space.
2181         (Fget_char_attribute): Likewise.
2182         (Fput_char_attribute): Likewise; behavior of
2183         `put_char_ccs_code_point' is changed.
2184
2185         * char-ucs.h: Include "elhash.h".
2186         (Vchar_attribute_hash_table): New external variable.
2187         (struct Lisp_Charset): Delete `encoding_table'.
2188         (CHARSET_ENCODING_TABLE): New implementation; refer
2189         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2190         `Lisp_Charset'.
2191
2192 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2195         (cs) == 0.
2196
2197 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2198
2199         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2200         `chinese-big5'.
2201
2202 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2203
2204         * chartab.c (uint8_byte_table_description): New constant.
2205         (uint8-byte-table): Use `uint8_byte_table_description'.
2206         (uint16_byte_table_description): New constant.
2207         (uint16-byte-table): Use `uint16_byte_table_description'.
2208
2209 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2210
2211         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2212         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2213
2214 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2215
2216         * mule-charset.c (Vcharset_ucs_ks): New variable.
2217         (Qucs_ks): New variable.
2218         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2219         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2220
2221         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2222
2223 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224
2225         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2226         (Fdecode_char): Likewise.
2227
2228         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2229         chartab.h.
2230         (Fdefine_char): Modify for Fdecode_char.
2231         (Ffind_char): Likewise.
2232
2233         * mule-charset.c (Fdecode_char): Add new optional argument
2234         `defined-only'.
2235         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2236
2237 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2240         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2241         (allocate_coding_system): Initialize initial-charsets of
2242         CODESYS_BIG5 in XEmacs UTF-2000.
2243         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2244         CODESYS_BIG5 in XEmacs UTF-2000.
2245         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2246         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2247
2248         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2249         variables.
2250         (Qideograph_hanziku_{1 .. 12}): Likewise.
2251         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2252         .. 12}'.
2253         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2254         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2255         `ideograph-hanziku-{1 .. 12}'.
2256
2257         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2258         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2259         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2260         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2261         (DECODE_DEFINED_CHAR): New inline function.
2262         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2263
2264 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * mule-charset.c (Vcharset_china3_jef): Renamed from
2267         `Vcharset_japanese_jef_china3'.
2268         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2269         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2270         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2271         (syms_of_mule_charset): Rename `china3-jef' from
2272         `japanese-jef-china3'.
2273         (complex_vars_of_mule_charset): Likewise; rename
2274         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2275
2276         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2277         `LEADING_BYTE_JEF_CHINA3'.
2278         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2279         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2280
2281 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2282
2283         * mule-charset.c (encode_builtin_char_1): Comment out special code
2284         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2285
2286         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2287         (MAX_CHAR_MOJIKYO_0): Comment out.
2288         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2289         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2290         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2291         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2292
2293 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294
2295         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2296         (Qideograph_cbeta): New variable.
2297         (encode_builtin_char_1): Comment out special code for
2298         coded-charset `mojikyo' and `japanese-jef-china3'.
2299         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2300         (complex_vars_of_mule_charset): Add new coded-charset
2301         `ideograph-cbeta'.
2302
2303         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2304         (MIN_CHAR_CBETA): New macro.
2305         (MAX_CHAR_CBETA): New macro.
2306
2307 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2308
2309         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2310         (LEADING_BYTE_JEF_CHINA3): New macro.
2311         (MIN_CHAR_JEF_CHINA3): New macro.
2312         (MAX_CHAR_JEF_CHINA3): Likewise.
2313         (DECODE_CHAR): Fixed.
2314
2315 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2318         (Qjapanese_jef_china3): New variable.
2319         (encode_builtin_char_1): Support `japanese-jef-china3'.
2320         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2321         (complex_vars_of_mule_charset): Add new coded-charset
2322         `japanese-jef-china3'.
2323
2324 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2327         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2328         94^4, 96^3, 96^4, 128^n and 256^n set.
2329         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2330         (map_char_table): Likewise.
2331
2332 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2335         UTF-2000.
2336
2337 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2338
2339         * chartab.h (get_char_id_table): New inline function.
2340
2341         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2342         function.
2343
2344 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2345
2346         * chartab.h (decode_char_table_range): New prototype in XEmacs
2347         UTF-2000.
2348         (put_char_id_table): New inline function in XEmacs UTF-2000.
2349
2350         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2351         function.
2352         (decode_char_table_range): Delete static declaration in XEmacs
2353         UTF-2000.
2354
2355 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * chartab.c (put_char_id_table): Use `put_char_table'.
2358
2359 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2362         (map_over_uint16_byte_table): Likewise.
2363         (map_over_byte_table): Likewise.
2364         (map_char_table): Modify for `map_over_uint8_byte_table',
2365         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2366         UTF-2000.
2367
2368 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2369
2370         * chartab.c (struct map_char_table_for_charset_arg): New
2371         structure.
2372         (map_char_table_for_charset_fun): New function.
2373         (map_char_table): Use `map_char_table' for encoding_table of
2374         `range->charset'.
2375
2376 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2377
2378         * chartab.c (map_char_table): Check a character is found in
2379         range->charset instead of non default value is defined in
2380         char-table when range is CHARTAB_RANGE_ROW.
2381
2382 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2383
2384         * chartab.c (map_char_id_table): Deleted.
2385         (Fmap_char_attribute): Use `map_char_table' instead of
2386         `map_char_id_table'.
2387
2388 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2389
2390         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2391         UTF-2000.
2392         (update_syntax_table): Deleted in XEmacs UTF-2000.
2393
2394         * syntax.c (find_defun_start): Use `syntax_table' instead of
2395         `mirror_syntax_table' in XEmacs UTF-2000.
2396         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2397         UTF-2000.
2398         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2399         XEmacs UTF-2000.
2400         (Fmatching_paren): Likewise.
2401         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2402         in XEmacs UTF-2000.
2403         (find_start_of_comment): Likewise.
2404         (find_end_of_comment): Likewise.
2405         (Fforward_comment): Likewise.
2406         (scan_lists): Likewise.
2407         (char_quoted): Likewise.
2408         (Fbackward_prefix_chars): Likewise.
2409         (scan_sexps_forward): Likewise.
2410         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2411         (update_syntax_table): Likewise.
2412
2413         * search.c (skip_chars): Use `syntax_table' instead of
2414         `mirror_syntax_table' in XEmacs UTF-2000.
2415         (wordify): Likewise.
2416         (Freplace_match): Likewise.
2417
2418         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2419         `mirror_syntax_table' in XEmacs UTF-2000.
2420         (WORDCHAR_P_UNSAFE): Likewise.
2421         (re_match_2_internal): Likewise.
2422
2423         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2424         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2425
2426         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2427         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2428
2429         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2430         XEmacs UTF-2000.
2431
2432         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2433         UTF-2000.
2434         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2435         (char_table_description): Delete `mirror_table' in XEmacs
2436         UTF-2000.
2437         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2438         UTF-2000.
2439         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2440         (Fcopy_char_table): Likewise.
2441         (put_char_table): Don't call `update_syntax_table' in XEmacs
2442         UTF-2000.
2443
2444         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2445         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2446         (casify_region_internal): Likewise.
2447
2448         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2449
2450         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2451         `mirror_syntax_table' in XEmacs UTF-2000.
2452
2453         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2454         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2455         (Fexpand_abbrev): Likewise.
2456
2457 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458
2459         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2460
2461 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2462
2463         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2464         (map_over_uint16_byte_table): Likewise.
2465         (map_over_byte_table): Likewise.
2466         (get_char_id_table): Refer `cit->default_value'.
2467         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2468         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2469         of character-id ranges.
2470         (mark_char_table): Mark `ct->default_value'.
2471         (char_table_description): Add `default_value'.
2472         (fill_char_table): Use `default_value'.
2473         (decode_char_table_range): Decode `nil' as
2474         `CHARTAB_RANGE_DEFAULT'.
2475         (get_char_id_table): Refer `cit->default_value'.
2476         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2477         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2478         temporary hack; check value of char-table is bound or not.
2479         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2480
2481         * chartab.h (struct Lisp_Char_Table): Add new member
2482         `default_value' in XEmacs UTF-2000.
2483         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2484         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2485         UTF-2000.
2486
2487 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * chartab.h (Lisp_Char_ID_Table): Deleted.
2490
2491         * chartab.c (char_table_description): Fix typo.
2492         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2493         `Lisp_Char_ID_Table'.
2494
2495 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2496
2497         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2498         `CHAR_ID_TABLE_P'.
2499
2500         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2501         `CHAR_ID_TABLE_P'.
2502
2503         * chartab.h (XCHAR_ID_TABLE): Deleted.
2504         (XSETCHAR_ID_TABLE): Deleted.
2505         (CHAR_ID_TABLE_P): Deleted.
2506
2507         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2508         `CHAR_ID_TABLE_P'.
2509         (Fget_composite_char): Likewise.
2510         (put_char_table): Likewise.
2511         (add_char_attribute_alist_mapper): Fixed.
2512         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2513         `CHAR_ID_TABLE_P'.
2514         (Fget_char_attribute): Likewise.
2515         (Fget_char_attribute): Likewise.
2516         (Fmap_char_attribute): Likewise.
2517
2518         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2519         `CHAR_ID_TABLE_P'.
2520         (encode_char_1): Likewise.
2521
2522 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2523
2524         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2525         `XCHAR_ID_TABLE'.
2526
2527         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2528         instead of `XCHAR_ID_TABLE'.
2529         (remove_char_ccs): Likewise.
2530
2531         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2532         `XCHAR_ID_TABLE'.
2533         (Fget_composite_char): Likewise.
2534         (Fchar_variants): Likewise.
2535         (put_char_table): Likewise.
2536         (add_char_attribute_alist_mapper): Likewise.
2537         (Fchar_attribute_alist): Likewise.
2538         (Fget_char_attribute): Likewise.
2539         (Fput_char_attribute): Likewise.
2540         (Fmap_char_attribute): Likewise.
2541         (Fmap_char_attribute): Likewise.
2542
2543         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2544         `XCHAR_ID_TABLE'.
2545         (encode_char_1): Likewise.
2546
2547 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2548
2549         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2550         `Lisp_Char_ID_Table'.
2551         (mark_char_id_table): Deleted.
2552         (print_char_id_table): Likewise.
2553         (char_id_table_equal): Likewise.
2554         (char_id_table_hash): Likewise.
2555         (char_id_table_description): Likewise.
2556         (char_id_table): Likewise.
2557         (make_char_id_table): Use `Fmake_char_table' and
2558         `fill_char_table'.
2559         (get_char_id_table): Use `Lisp_Char_Table' instead of
2560         `Lisp_Char_ID_Table'.
2561         (put_char_id_table): Likewise.
2562         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2563         `XCHAR_ID_TABLE'.
2564         (Fremove_char_attribute): Likewise.
2565         (syms_of_chartab): Don't define type `char-id-table'.
2566
2567         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2568         (char_id_table): Likewise.
2569         (GC_CHAR_ID_TABLE_P): Likewise.
2570         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2571         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2572         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2573         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2574         (get_char_id_table): Use `Lisp_Char_Table' instead of
2575         `Lisp_Char_ID_Table'.
2576         (put_char_id_table_0): Likewise.
2577         (put_char_id_table): Likewise.
2578
2579 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2580
2581         * chartab.h: Lisp_Byte_Table related codes are moved from
2582         chartab.h.
2583
2584         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2585
2586 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2587
2588         * chartab.h: Don't include "chartab.h".
2589         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2590         (Lisp_Char_ID_Table): Likewise.
2591         (char_id_table): Likewise.
2592         (XCHAR_ID_TABLE): Likewise.
2593         (XSETCHAR_ID_TABLE): Likewise.
2594         (CHAR_ID_TABLE_P): Likewise.
2595         (GC_CHAR_ID_TABLE_P): Likewise.
2596         (get_char_id_table): Likewise.
2597
2598         * char-ucs.h: Include "chartab.h".
2599         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2600         (Lisp_Char_ID_Table): Likewise.
2601         (char_id_table): Likewise.
2602         (XCHAR_ID_TABLE): Likewise.
2603         (XSETCHAR_ID_TABLE): Likewise.
2604         (CHAR_ID_TABLE_P): Likewise.
2605         (GC_CHAR_ID_TABLE_P): Likewise.
2606         (get_char_id_table): Likewise.
2607
2608 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2609
2610         * chartab.c (copy_uint8_byte_table): New function.
2611         (copy_uint16_byte_table): New function.
2612         (copy_byte_table): New function.
2613         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2614         characters to call.
2615         (map_over_uint16_byte_table): Likewise.
2616         (map_over_byte_table): Likewise.
2617         (get_byte_table): Move prototype to chartab.h.
2618         (put_byte_table): Likewise.
2619         (put_char_id_table_0): Moved to chartab.h.
2620         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2621         (char_table_entry_equal): Likewise.
2622         (char_table_entry_hash): Likewise.
2623         (char_table_entry_description): Likewise.
2624         (char_table_entry): Likewise.
2625         (make_char_table_entry): Likewise.
2626         (copy_char_table_entry): Likewise.
2627         (get_non_ascii_char_table_value): Likewise.
2628         (map_over_charset_ascii): Likewise.
2629         (map_over_charset_control_1): Likewise.
2630         (map_over_charset_row): Likewise.
2631         (map_over_other_charset): Likewise.
2632         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2633         (print_char_table): Likewise.
2634         (char_table_equal): Likewise.
2635         (char_table_hash): Likewise.
2636         (char_table_description): Likewise.
2637         (fill_char_table): Likewise.
2638         (Fcopy_char_table): Likewise.
2639         (get_char_table): Likewise.
2640         (Fget_range_char_table): Likewise.
2641         (put_char_table): Likewise.
2642         (map_char_table): Likewise.
2643         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2644         UTF-2000.
2645
2646 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2647
2648         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2649         `Vauto_fill_chars' in XEmacs UTF-2000.
2650
2651         * chartab.h (get_byte_table): New prototype [moved from
2652         chartab.c].
2653         (put_byte_table): Likewise [moved from chartab.c].
2654         (put_char_id_table_0): New inline function [moved from chartab.c].
2655         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2656         (Lisp_Char_Table_Entry): Likewise.
2657         (char_table_entry): Likewise.
2658         (XCHAR_TABLE_ENTRY): Likewise.
2659         (XSETCHAR_TABLE_ENTRY): Likewise.
2660         (CHAR_TABLE_ENTRYP): Likewise.
2661         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2662         (NUM_ASCII_CHARS): Likewise.
2663         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2664         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2665
2666 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * chartab.c (get_char_id_table): Change interface.
2669         (put_char_id_table_0): New function.
2670         (put_char_id_table): Change interface; new implementation.
2671         (Fget_composite_char): Modify for interface change of
2672         `get_char_id_table'.
2673         (Fchar_variants): Likewise.
2674         (add_char_attribute_alist_mapper): Likewise.
2675         (Fchar_attribute_alist): Likewise.
2676         (Fget_char_attribute): Likewise.
2677         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2678         as same as character as the first argument like `put-char-table';
2679         modify for interface change of `put_char_id_table'.
2680         (Fremove_char_attribute): Modify for interface change of
2681         `put_char_id_table'.
2682
2683 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * text-coding.c: Sync up with XEmacs 21.2.41.
2686         (COMPOSE_ADD_CHAR): Modify for interface change of
2687         `get_char_id_table'.
2688
2689         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2690         change of `put_char_id_table'.
2691         (remove_char_ccs): Likewise.
2692
2693         * chartab.h (put_char_id_table): Change interface.
2694
2695         * char-ucs.h (get_char_id_table): Change interface.
2696         (charset_code_point): Modify for interface change of
2697         `get_char_id_table'.
2698         (encode_char_1): Likewise.
2699
2700 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2703         argument `ccs'.
2704         (map_over_uint16_byte_table): Likewise.
2705         (map_over_byte_table): Likewise.
2706         (map_char_id_table): Add new argument `range' like
2707         `map_char_table'.
2708         (Fmap_char_attribute): Add new argument `range' like
2709         `Fmap_char_table'.
2710
2711 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * chartab.c (map_over_uint8_byte_table): Change interface of
2714         mapping function to use struct chartab_range instead of Emchar.
2715         (map_over_uint16_byte_table): Likewise.
2716         (map_over_byte_table): Likewise.
2717         (map_char_id_table): Likewise.
2718         (struct slow_map_char_id_table_arg): Deleted.
2719         (slow_map_char_id_table_fun): Deleted.
2720         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2721         function `slow_map_char_table_fun' instead of struct
2722         `slow_map_char_id_table_arg' and function
2723         `slow_map_char_id_table_fun'.
2724
2725 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2726
2727         * mule-charset.c: Move char-it-table related codes to chartab.c.
2728         (Vutf_2000_version): Moved to chartab.c.
2729         (Fdefine_char): Likewise.
2730         (Ffind_char): Likewise.
2731         (syms_of_mule_charset): Move types `uint8-byte-table',
2732         `uint16-byte-table', `byte-table' and `char-id-table' to
2733         chartab.c; move functions `char_attribute_list,
2734         `find_char_attribute_table, `char_attribute_alist,
2735         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2736         `map_char_attribute, `define_char, `find_char, `char_variants and
2737         `get_composite_char to chartab.c; move symbols `=>ucs',
2738         `->decomposition', `compat', `isolated', `initial', `medial',
2739         `final', `vertical', `noBreak', `fraction', `super', `sub',
2740         `circle', `square', `wide', `narrow', `small' and `font' to
2741         chartab.c.
2742         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2743         setting codes for `Vcharacter_composition_table' and
2744         `Vcharacter_variant_table' to chartab.c.
2745         (complex_vars_of_mule_charset): Move setting code for
2746         `Vchar_attribute_hash_table' to chartab.c.
2747
2748         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2749         (make_char_id_table): New prototype.
2750         (put_char_id_table): Likewise.
2751         (Fget_char_attribute): Likewise.
2752
2753         * chartab.c: Move char-id-table related code from mule-charset.c.
2754         (Vutf_2000_version): Moved from mule-charset.c.
2755
2756         * char-ucs.h (Qucs): New external variable.
2757         (put_char_ccs_code_point): New prototype.
2758         (remove_char_ccs): Likewise.
2759
2760 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2761
2762         * mule-charset.c (Vcharset_ucs_jis): New variable.
2763         (Qucs_jis): Likewise.
2764         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2765         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2766
2767         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2768
2769 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2770
2771         * mule-charset.c (map_over_uint8_byte_table): New function.
2772         (map_over_uint16_byte_table): Likewise.
2773         (map_over_byte_table): Likewise.
2774         (map_char_id_table): Likewise.
2775         (slow_map_char_id_table_fun): Likewise.
2776         (Fmap_char_attribute): Likewise.
2777         (syms_of_mule_charset): Add new function `map-char-attribute'.
2778
2779 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780
2781         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2782         (syms_of_mule_charset): Add new function `find-char'.
2783
2784 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2785
2786         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2787         XEmacs UTF-2000.
2788         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2789         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2790         XEmacs UTF-2000.
2791         (complex_vars_of_mule_charset): Add new coded-charset
2792         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2793         `ideograph-gt-pj-*'.
2794
2795         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2796
2797 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * mule-charset.c (encode_builtin_char_1): Purge codes about
2800         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2801         {MIN|MAX}_CHAR_HEBREW.
2802         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2803         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2804
2805         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2806         (MAX_CHAR_GREEK): Purged.
2807         (MIN_CHAR_CYRILLIC): Purged.
2808         (MAX_CHAR_CYRILLIC): Purged.
2809         (MIN_CHAR_HEBREW): Commented out.
2810         (MAX_CHAR_HEBREW): Likewise.
2811
2812 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2813
2814         * mule-charset.c (Qto_ucs): New variable.
2815         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2816         (Fdefine_char): Likewise.
2817         (syms_of_mule_charset): Add new symbol `=>ucs'.
2818
2819 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * mule-charset.c (Fdecode_char): Fixed.
2822
2823 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2824
2825         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2826         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2827         "tcvn5712-1".
2828
2829 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * mule-charset.c (Vcharset_ucs_big5): New variable.
2832         (Qucs_big5): Likewise.
2833         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2834         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2835
2836         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2837
2838 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2839
2840         * mule-charset.c (decode_builtin_char): Check Big5 code range
2841         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2842
2843 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2844
2845         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2846         (Qchinese_gb12345): Likewise.
2847         (Fdecode_builtin_char): Fixed.
2848         (syms_of_mule_charset): Add `chinese-gb12345'.
2849         (complex_vars_of_mule_charset): Add coded-charset
2850         `chinese-gb12345'.
2851
2852         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2853         (LEADING_BYTE_CHINESE_GB12345): New macro.
2854
2855 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2856
2857         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2858         and `latin-viscii-upper' for `latin-viscii'.
2859
2860 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2861
2862         * mule-charset.c (Fdecode_builtin_char): Comment out
2863         regularization code for ISO-IR GR representation.
2864
2865 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2866
2867         * mule-charset.c (decode_builtin_char): New function; renamed from
2868         `make_builtin_char'; return -1 instead of signal.
2869         (Fdecode_builtin_char): Use `decode_builtin_char'.
2870
2871         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2872         `make_builtin_char'.
2873         (DECODE_CHAR): Use `decode_builtin_char' instead of
2874         `make_builtin_char'; use mapping table of `chinese-big5' for
2875         `chinese-big5-{1,2}'.
2876
2877 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * text-coding.c (char_encode_big5): New function.
2880         (char_finish_big5): Likewise.
2881         (reset_encoding_stream): Use `char_encode_big5' and
2882         `char_finish_big5' for CODESYS_BIG5.
2883         (mule_encode): Don't use `encode_coding_big5'.
2884         (encode_coding_big5): Deleted.
2885
2886 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2887
2888         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2889         0x81- in XEmacs UTF-2000.
2890         (detect_coding_big5): Likewise.
2891
2892 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2893
2894         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2895         generate character-id if the CCS property does not have
2896         corresponding predefined character.
2897         (make_builtin_char): Return -1 if corresponding predefined
2898         character is not found.
2899         (Fdecode_char): Return nil if corresponding character is not
2900         found.
2901         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2902         don't map to builtin ucs space.
2903
2904 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2905
2906         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2907         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2908
2909 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2910
2911         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2912         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2913         (Qideograph_gt): Likewise.
2914         (Qideograph_gt_pj_{1..11}): Likewise.
2915         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2916         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2917         `ideograph-gt-pj-11'.
2918         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2919         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2920         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2921
2922         * char-ucs.h (LEADING_BYTE_GT): New macro.
2923         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2924         (MIN_CHAR_GT): Likewise.
2925         (MAX_CHAR_GT): Likewise.
2926
2927 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2930         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2931
2932         * doprnt.c (unsigned_int_converters): Add `c'.
2933         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2934
2935         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2936         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2937         `MIN_CHAR_MOJIKYO'.
2938         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2939         (MAX_CHAR_MOJIKYO_0): New macro.
2940         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2941
2942 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943
2944         * mule-charset.c (Fdefine_char): Delete cemented out code.
2945         (encode_builtin_char_1): Modify for new allocation of builtin
2946         Mojikyo characters.
2947
2948         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2949
2950 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2951
2952         * mule-charset.c (Vcharset_ucs_cns): New variable.
2953         (Qucs_cns): New variable.
2954         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2955         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2956
2957 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2960
2961 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2962
2963         * search.c (search_buffer): Make `charset_base_code' as
2964         character-id >> 6 to eliminate the corresponding last byte in
2965         UTF-8 representation [I'm not sure it is right thing].
2966         (boyer_moore): Likewise.
2967
2968 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2969
2970         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2971         representation in MULE.
2972
2973 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2974
2975         * text-coding.c (Fmake_coding_system): Use
2976         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2977         `EXTERNAL_PROPERTY_LIST_LOOP'.
2978
2979 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2980
2981         * text-coding.c (decode_output_utf8_partial_char): New function.
2982         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2983
2984 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2985
2986         * text-coding.c (decode_coding_utf8): Output original byte
2987         sequence if it is broken; change order of conditions.
2988
2989         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2990         of conditions.
2991
2992         * mb-multibyte.h (BYTE_ASCII_P):
2993         Use bit ops for char-signedness safety.
2994         (BYTE_C0_P): Use bit ops for char-signedness safety.
2995         (BYTE_C1_P): Use bit ops for char-signedness safety.
2996
2997         * character.h: (XCHAR_OR_CHAR_INT):
2998         Always use inline function.
2999         Remove redundant type checking assert() - XINT will abort quite
3000         nicely.
3001
3002 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3003
3004         * text-coding.c: (Fencode_shift_jis_char):
3005         (Fencode_big5_char):
3006         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3007         Replace 0 with '\0' when working with bytes.
3008         Replace initial "(" with "\(" in docstrings.
3009
3010         (Fmake_coding_system):
3011         When type is ccl and value is vector, register it with a proper
3012         symbol.  And checks whether the given ccl program is valid.
3013         (mule_decode): When calling ccl_driver, if src indicates
3014         NULL pointer, set an empty string instead.
3015         (mule_encode): Likewise.
3016
3017         (detect_eol_type):
3018         (detect_coding_sjis):
3019         (decode_coding_sjis):
3020         (detect_coding_big5):
3021         (decode_coding_big5):
3022         (detect_coding_ucs4):
3023         (decode_coding_ucs4):
3024         (detect_coding_utf8):
3025         (decode_coding_utf8):
3026         (detect_coding_iso2022):
3027         (decode_coding_iso2022):
3028         (decode_coding_no_conversion):
3029         (mule_decode):
3030         Make all detecting and decoding functions take an Extbyte * arg.
3031         (text_encode_generic):
3032         (encode_coding_big5):
3033         (encode_coding_no_conversion):
3034         (mule_encode):
3035         Make all encoding functions take a Bufbyte * arg.
3036         Use size_t instead of unsigned int for memory sizes.
3037         Only cast to unsigned char whenever dereferencing Extbyte *.
3038
3039         (struct lrecord_description fcd_description_1): Use countof.
3040         (complex_vars_of_file_coding):
3041         Use countof instead of sizeof.
3042         Use CHECK_NATNUM instead of CHECK_INT.
3043
3044 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3045
3046         * mule-charset.c (Fget_char_attribute): Add new optional argument
3047         `default-value'.
3048         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3049         (remove_char_ccs): Likewise.
3050
3051 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3052
3053         * text-coding.c (char_encode_shift_jis): New implementation in
3054         UTF-2000.
3055         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3056         ...)'.
3057
3058         * mule-charset.c (Vcharset_chinese_big5): New variable in
3059         UTF-2000.
3060         (Qchinese_big5): New variable in UTF-2000.
3061         (BIG5_SAME_ROW): New macro in UTF-2000.
3062         (make_builtin_char): Use builtin characters of
3063         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3064         characters of `Vcharset_chinese_big5'.
3065         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3066         (complex_vars_of_mule_charset): Add new coded-charset
3067         `chinese-big5' in UTF-2000.
3068
3069         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3070         (Vcharset_chinese_big5): New external variable declaration.
3071         (Vcharset_japanese_jisx0208_1990): Likewise.
3072
3073 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3076         function.
3077         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3078
3079 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3080
3081         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3082         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3083         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3084         `mojikyo-pj-*'.
3085
3086 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3087
3088         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3089
3090 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3091
3092         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3093         to 0.17.
3094
3095 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3098         for `CHARSET_BY_ATTRIBUTES'.
3099         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3100         `CHARSET_BY_ATTRIBUTES'.
3101
3102         * text-coding.c (struct decoding_stream): Rename member `CH' to
3103         `CPOS'.
3104         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3105         (decode_coding_sjis): Likewise.
3106         (decode_coding_big5): Likewise.
3107         (decode_coding_ucs4): Likewise.
3108         (decode_coding_utf8): Likewise.
3109         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3110         `CHARSET_BY_ATTRIBUTES'.
3111         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3112         `str->counter'; decode 3, 4 bytes sets.
3113         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3114         sets.
3115         (decode_coding_no_conversion): Use `str->cpos' instead of
3116         `str->ch'.
3117
3118         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3119         (Qmojikyo_2022_1): New variable.
3120         (make_charset): Don't use `CHARSET_TYPE_*'.
3121         (range_charset_code_point): Support coded-charset
3122         `mojikyo-2022-1'.
3123         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3124         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3125         `CHARSET_BY_ATTRIBUTES'.
3126         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3127         `CHARSET_BY_ATTRIBUTES'.
3128         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3129         (complex_vars_of_mule_charset): Add new coded-charset
3130         `mojikyo-2022-1'.
3131
3132         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3133         interface; changed to inline function.
3134
3135         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3136         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3137         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3138         (CHARSET_TYPE_94): Deleted.
3139         (CHARSET_TYPE_94X94): Deleted.
3140         (CHARSET_TYPE_96): Deleted.
3141         (CHARSET_TYPE_96X96): Deleted.
3142         (CHARSET_TYPE_128): Deleted.
3143         (CHARSET_TYPE_128X128): Deleted.
3144         (CHARSET_TYPE_256): Deleted.
3145         (CHARSET_TYPE_256X256): Deleted.
3146         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3147         to inline function.
3148         (DECODE_MOJIKYO_2022): New inline function.
3149         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3150         `Vcharset_mojikyo_2022_1'.
3151
3152 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3153
3154         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3155         instead of `EQ'.
3156         (put_byte_table): Likewise.
3157         (char_id_table_equal): Use `get_byte_table' [new implementation].
3158
3159 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3160
3161         * mule-charset.c: Include <limits.h> in UTF-2000.
3162         (BT_UINT8_MIN): New macro in UTF-2000.
3163         (BT_UINT8_MAX): New macro in UTF-2000.
3164         (BT_UINT8_t): New macro in UTF-2000.
3165         (BT_UINT8_nil): New macro in UTF-2000.
3166         (BT_UINT8_unbound): New macro in UTF-2000.
3167         (INT_UINT8_P): New inline function in UTF-2000.
3168         (UINT8_VALUE_P): New inline function in UTF-2000.
3169         (UINT8_ENCODE): New inline function in UTF-2000.
3170         (UINT8_DECODE): New inline function in UTF-2000.
3171         (mark_uint8_byte_table): New function in UTF-2000.
3172         (print_uint8_byte_table): New function in UTF-2000.
3173         (uint8_byte_table_equal): New function in UTF-2000.
3174         (uint8_byte_table_hash): New function in UTF-2000.
3175         (make_uint8_byte_table): New function in UTF-2000.
3176         (uint8_byte_table_same_value_p): New function in UTF-2000.
3177         (BT_UINT16_MIN): New macro in UTF-2000.
3178         (BT_UINT16_MAX): New macro in UTF-2000.
3179         (BT_UINT16_t): New macro in UTF-2000.
3180         (BT_UINT16_nil): New macro in UTF-2000.
3181         (BT_UINT16_unbound): New macro in UTF-2000.
3182         (INT_UINT16_P): New inline function in UTF-2000.
3183         (UINT16_VALUE_P): New inline function in UTF-2000.
3184         (UINT16_ENCODE): New inline function in UTF-2000.
3185         (UINT16_DECODE): New inline function in UTF-2000.
3186         (UINT8_TO_UINT16): New inline function in UTF-2000.
3187         (mark_uint16_byte_table): New function in UTF-2000.
3188         (print_uint16_byte_table): New function in UTF-2000.
3189         (uint16_byte_table_equal): New function in UTF-2000.
3190         (uint16_byte_table_hash): New function in UTF-2000.
3191         (make_uint16_byte_table): New function in UTF-2000.
3192         (uint16_byte_table_same_value_p): New function in UTF-2000.
3193         (print_byte_table): New function in UTF-2000.
3194         (byte-table): Use `print_byte_table' as printer.
3195         (make_byte_table): Delete second argument `older'.
3196         (byte_table_same_value_p): New function in UTF-2000.
3197         (copy_byte_table): Deleted.
3198         (get_byte_table): New function in UTF-2000.
3199         (put_byte_table): New function in UTF-2000.
3200         (print_char_id_table): New function in UTF-2000.
3201         (char-id-table): Use `print_char_id_table' as printer.
3202         (make_char_id_table): Delete second argument `older'.
3203         (get_char_id_table): Use `get_byte_table [new implementation].
3204         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3205         implementation].
3206         (Ffind_char_attribute_table): New function in UTF-2000.
3207         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3208         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3209         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3210         (syms_of_mule_charset): Add new function
3211         `find-char-attribute-table' in UTF-2000.
3212
3213         * lrecord.h (enum lrecord_type): Add
3214         `lrecord_type_uint16_byte_table' and
3215         `lrecord_type_uint8_byte_table'.
3216
3217         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3218         (Lisp_Uint8_Byte_Table): New type.
3219         (XUINT8_BYTE_TABLE): New macro.
3220         (XSETUINT8_BYTE_TABLE): New macro.
3221         (UINT8_BYTE_TABLE_P): New macro.
3222         (GC_UINT8_BYTE_TABLE_P): New macro.
3223         (struct Lisp_Uint16_Byte_Table): New structure.
3224         (Lisp_Uint16_Byte_Table): New type.
3225         (XUINT16_BYTE_TABLE): New macro.
3226         (XSETUINT16_BYTE_TABLE): New macro.
3227         (UINT16_BYTE_TABLE_P): New macro.
3228         (GC_UINT16_BYTE_TABLE_P): New macro.
3229
3230 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3231
3232         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3233         (Vcharacter_ideographic_strokes_table): Deleted.
3234         (Vcharacter_total_strokes_table): Deleted.
3235         (Vcharacter_morohashi_daikanwa_table): Deleted.
3236         (Vcharacter_decomposition_table): Deleted.
3237         (Qname): Deleted because it is duplicated.
3238         (Qideographic_radical): Deleted.
3239         (Qideographic_strokes): Deleted.
3240         (Qtotal_strokes): Deleted.
3241         (Qmorohashi_daikanwa): Deleted.
3242         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3243         `ideographic-radical', `ideographic-strokes', `total-strokes',
3244         `morohashi-daikanwa' and `->decomposition'.
3245         (Fget_char_attribute): Likewise.
3246         (Fput_char_attribute): Likewise; use `make-vector' instead of
3247         `make_older_vector' for `->decomposition' value.
3248         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3249         `ideograph-daikanwa'.
3250         (syms_of_mule_charset): Delete builtin symbols `name',
3251         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3252         `morohashi-daikanwa'.
3253         (vars_of_mule_charset): Don't setup
3254         `Vcharacter_ideographic_radical_table',
3255         `Vcharacter_ideographic_strokes_table',
3256         `Vcharacter_total_strokes_table',
3257         `Vcharacter_morohashi_daikanwa_table' and
3258         `Vcharacter_decomposition_table'.
3259
3260 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3263         `make_older_vector', `make_vector_newer_1' and
3264         `make_vector_newer'.
3265
3266         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3267         `make_older_vector' and `make_vector_newer'.
3268
3269         * config.h.in (HAVE_GGC): New macro.
3270
3271 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3272
3273         * mule-charset.c (struct char_attribute_list_closure): New
3274         structure in UTF-2000.
3275         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3276         (Fchar_attribute_list): Likewise.
3277         (Fset_charset_mapping_table): Use `make_vector_newer'.
3278         (Fdecode_builtin_char): New function in UTF-2000.
3279         (syms_of_mule_charset): Add new function `char-attribute-list' and
3280         `decode-builtin-char' in UTF-2000.
3281
3282         * lisp.h (make_vector_newer): New prototype.
3283
3284         * alloc.c (make_vector_newer_1): New function.
3285         (make_vector_newer): New function.
3286
3287 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3288
3289         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3290         50100)'.
3291
3292 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3293
3294         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3295         (Vcharacter_attribute_table): Deleted.
3296         (Vcharacter_name_table): Deleted.
3297         (put_char_attribute): Deleted.
3298         (remove_char_attribute): Deleted.
3299         (struct char_attribute_alist_closure): New structure.
3300         (add_char_attribute_alist_mapper): New function.
3301         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3302         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3303         (Fget_char_attribute): Likewise.
3304         (Fput_char_attribute): Likewise.
3305         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3306         of `remove_char_attribute'.
3307         (Fdefine_char): Return character.
3308         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3309         and `Vcharacter_name_table'.
3310         (complex_vars_of_mule_charset): Likewise
3311         `Vchar_attribute_hash_table'.
3312
3313 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314
3315         * character.h (CHARC_CHARSET): New macro.
3316         (CHARC_CHARSET_ID): New macro.
3317         (CHARC_CODE_POINT): New macro.
3318         (CHARC_COLUMNS): New macro.
3319         (CHARC_TO_CHAR): New inline function.
3320         (CHARC_EQ): New inline function.
3321         (CHARC_ASCII_EQ): New inline function.
3322         (CHARC_IS_SPACE): New inline function.
3323         (ASCII_TO_CHARC): New inline function.
3324
3325         * char-ucs.h (encode_char_2): Deleted.
3326         (ENCODE_CHAR): Use `encode_char_1' again.
3327         (breakup_char_1): Likewise.
3328         (CHAR_TO_CHARC): New inline function.
3329
3330         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3331
3332 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3333
3334         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3335         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3336         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3337         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3338         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3339         `CHARC_IS_SPACE'.
3340         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3341
3342         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3343         `CHARC_CODE_POINT'.
3344         (x_output_display_block): Use `CHARC_CHARSET' and
3345         `CHARC_ASCII_EQ'.
3346
3347         * redisplay-tty.c (tty_output_display_block): Use
3348         `CHARC_ASCII_EQ'.
3349         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3350
3351         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3352
3353         * insdel.c (find_charsets_in_charc_string): Use
3354         `CHARC_CHARSET_ID'.
3355         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3356         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3357         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3358         (convert_charc_string_into_malloced_string): Likewise.
3359
3360 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361
3362         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3363         instead of <Emchar_dynarr *> for buf; use
3364         `convert_bufbyte_string_into_charc_dynarr' instead of
3365         `convert_bufbyte_string_into_emchar_dynarr'; use
3366         `find_charsets_in_charc_string' instead of
3367         `find_charsets_in_emchar_string'.
3368
3369         * redisplay.h:
3370         - Include "character.h".
3371         (struct rune): New member `cglyph'; delete member `chr'.
3372
3373         * redisplay.c (redisplay_text_width_charc_string): New function;
3374         delete `redisplay_text_width_emchar_string'.
3375         (rtw_charc_dynarr): New variable; renamed from
3376         `rtw_emchar_dynarr'.
3377         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3378         `rtw_emchar_dynarr'; use
3379         `convert_bufbyte_string_into_charc_dynarr' instead of
3380         `convert_bufbyte_string_into_emchar_dynarr'; use
3381         `redisplay_text_width_charc_string' instead of
3382         `redisplay_text_width_emchar_string'.
3383         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3384         instead of `rtw_emchar_dynarr'; use
3385         `convert_bufbyte_string_into_charc_dynarr' instead of
3386         `convert_bufbyte_string_into_emchar_dynarr'.
3387         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3388         `redisplay_text_width_charc_string' instead of
3389         `redisplay_text_width_emchar_string'.
3390         (create_text_block): Modify for <struct rune> change.
3391         (generate_formatted_string_db): Likewise.
3392         (create_string_text_block): Likewise.
3393         (pixel_to_glyph_translation): Likewise.
3394
3395         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3396         instead of <const Emchar *>.
3397         (x_text_width): Likewise.
3398         (x_output_display_block): Use <Charc_dynarr *> instead
3399         <Emchar_dynarr *>; modify for <structure rune> change.
3400         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3401         *>.
3402
3403         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3404         <const Emchar *>; use `charc_string_displayed_columns' instead of
3405         `emchar_string_displayed_columns'.
3406         (tty_output_display_block): Use <Charc_dynarr *> instead of
3407         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3408         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3409         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3410         `tty_output_emchar_dynarr_dynarr'.
3411         (tty_output_charc_dynarr): New function; delete
3412         `tty_output_charc_dynarr'.
3413
3414         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3415         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3416         <Emchar_dynarr *> for buf; use
3417         `convert_bufbyte_string_into_charc_dynarr' instead of
3418         `convert_bufbyte_string_into_emchar_dynarr'.
3419
3420         * frame.c (title_string_charc_dynarr): New variable; renamed from
3421         `title_string_emchar_dynarr'.
3422         (generate_title_string): Use `title_string_charc_dynarr' instead
3423         of `title_string_emchar_dynarr'; use
3424         `convert_charc_string_into_malloced_string' instead of
3425         `convert_emchar_string_into_malloced_string'.
3426         (init_frame): Use `title_string_charc_dynarr' instead of
3427         `title_string_emchar_dynarr'.
3428
3429         * console.h:
3430         - Include "character.h".
3431         (struct console_methods): Use <const Charc *> instead of <const
3432         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3433         <Emchar_dynarr *> in output_string_method.
3434
3435         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3436         <Emchar_dynarr *>.
3437
3438         * console-stream.c (stream_text_width): Use <const Charc *>
3439         instead of <const Emchar *>.
3440
3441         * character.h (Charc_dynarr): New type.
3442
3443         * char-ucs.h (structure Charc): New structure; define new type
3444         `Charc'.
3445
3446         * char-lb.h (DECODE_CHAR): New inline function.
3447         (encode_char_1): New inline function.
3448         (ENCODE_CHAR): New macro.
3449         (structure Charc): New structure; define new type `Charc'.
3450
3451         * char-1byte.h (Vcharset_control_1): New macro.
3452         (Vcharset_latin_iso8859_1): New macro.
3453         (DECODE_CHAR): New inline function.
3454         (encode_char_1): New inline function.
3455         (ENCODE_CHAR): New macro.
3456         (structure Charc): New structure; define new type `Charc'.
3457
3458         * insdel.c (find_charsets_in_charc_string): New function; delete
3459         `find_charsets_in_emchar_string'.
3460         (charc_string_displayed_columns): New function; delete
3461         `emchar_string_displayed_columns'.
3462         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3463         `convert_bufbyte_string_into_emchar_dynarr'.
3464         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3465         `convert_charc_string_into_bufbyte_dynarr'.
3466         (convert_charc_string_into_malloced_string): New function; delete
3467         `convert_charc_string_into_malloced_string'.
3468
3469         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3470         `find_charsets_in_emchar_string'.
3471         (charc_string_displayed_columns): New prototype; delete
3472         `emchar_string_displayed_columns'.
3473         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3474         `convert_charc_string_into_bufbyte_dynarr'.
3475         (convert_charc_string_into_malloced_string): New prototype; delete
3476         `convert_charc_string_into_malloced_string'.
3477
3478 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3481
3482 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3483
3484         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3485
3486         * char-ucs.h: Use <short> for <Charset_ID>.
3487
3488         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3489         <Charset_ID>.
3490
3491 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3492
3493         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3494         to 0.16.
3495
3496 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3497
3498         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3499         variable.
3500         (Qmorohashi_daikanwa): New variable.
3501         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3502         for `morohashi-daikanwa' attribute.
3503         (Fget_char_attribute): Likewise.
3504         (Fput_char_attribute): Likewise.
3505         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3506         has the same value of `ideograph-daikanwa'.
3507         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3508         (vars_of_mule_charset): Setup
3509         `Vcharacter_morohashi_daikanwa_table'.
3510
3511 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3514         attributes.
3515         (add_charset_to_list_mapper): Add `key' instead of
3516         `XCHARSET_NAME (value)' to return aliases.
3517
3518 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3519
3520         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3521         variable.
3522         (Vcharacter_ideographic_strokes_table): New variable.
3523         (Qideographic_radical): New variable.
3524         (Qideographic_strokes): New variable.
3525         (Fchar_attribute_alist): Use
3526         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3527         attribute; use `Vcharacter_ideographic_strokes_table' for
3528         `ideographic-strokes' attribute.
3529         (Fget_char_attribute): Likewise.
3530         (Fput_char_attribute): Likewise.
3531         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3532         `ideographic-strokes'.
3533         (vars_of_mule_charset): Setup
3534         `Vcharacter_ideographic_radical_table' and
3535         `Vcharacter_ideographic_strokes_table'.
3536
3537 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3538
3539         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3540         (Qtotal_strokes): New variable.
3541         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3542         `total-strokes' attribute.
3543         (Fget_char_attribute): Likewise.
3544         (Fput_char_attribute): Likewise.
3545         (syms_of_mule_charset): Add new symbol `total-strokes'.
3546         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3547
3548 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3549
3550         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3551         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3552         are found.
3553         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3554         `->decomposition' attribute.
3555         (Fput_char_attribute): Likewise.
3556         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3557
3558 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3559
3560         * mule-charset.c (decoding_table_check_elements): New function.
3561         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3562
3563 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3564
3565         * mule-charset.c (Fset_charset_mapping_table): Use
3566         `put_char_ccs_code_point'.
3567
3568 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3569
3570         * mule-charset.c (decoding_table_put_char): New inline function.
3571         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3572
3573 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3574
3575         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3576         (XCHARSET_BYTE_SIZE): New macro.
3577         (decoding_table_remove_char): New inline function.
3578         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3579         `decoding_table_remove_char'.
3580         (remove_char_ccs): Use `decoding_table_remove_char'.
3581         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3582
3583 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3584
3585         * mule-charset.c (Vcharacter_name_table): New variable.
3586         (Qname): New variable.
3587         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3588         attribute.
3589         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3590         `Vcharacter_name_table' for `name' attribute.
3591         (Fremove_char_attribute): Use function `remove_char_ccs'.
3592         (put_char_ccs_code_point): New function.
3593         (remove_char_ccs): New function.
3594         (syms_of_mule_charset): Add new symbol `name'.
3595         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3596
3597 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3598
3599         * mule-charset.c (make_byte_table): Add new argument `older'.
3600         (make_char_id_table): Likewise.
3601         (copy_char_id_table): Comment out because it is not used.
3602         (put_char_id_table): Modify for `make_byte_table'.
3603         (Fput_char_attribute): Make encoding_table as older object;
3604         inherit older bit of `Vcharacter_composition_table'.
3605         (mark_charset): Don't mark `cs->encoding_table'.
3606         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3607         normal object; make `Vcharacter_composition_table' as an older
3608         object; delete staticpro for `Vcharacter_composition_table'; make
3609         `Vcharacter_variant_table' as a normal object.
3610
3611         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3612         (mark_object): Don't check older object in UTF-2000.
3613
3614         * lrecord.h (struct lrecord_header): Add new member `older' in
3615         UTF-2000.
3616         (set_lheader_implementation): Setup `SLI_header->older' in
3617         UTF-2000.
3618         (set_lheader_older_implementation): New macro in UTF-2000.
3619         (OLDER_RECORD_P): New macro in UTF-2000.
3620         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3621         (alloc_older_lcrecord): New prototype in UTF-2000.
3622         (alloc_older_lcrecord_type): New macro in UTF-2000.
3623
3624 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3625
3626         * mule-charset.c (byte_table_description): Use
3627         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3628         (char_id_table_description): Delete bogus `, 1'.
3629         (Fget_char_attribute): Refer encoding_table of each coded-charset
3630         to get value of coded-charset attribute of a character.
3631         (Fput_char_attribute): Use `make_older_vector' instead of
3632         `make_vector'; use encoding_table of each coded-charset to store
3633         value of coded-charset attribute of a character.
3634         (Fremove_char_attribute): Use encoding_table of each coded-charset
3635         to store value of coded-charset attribute of a character.
3636         (mark_charset): Mark `cs->encoding_table'; don't mark
3637         `cs->decoding_table'.
3638         (charset_description): Add description of new member
3639         `encoding_table'.
3640         (make_charset): Initialize `encoding_table'.
3641
3642         * char-ucs.h (struct Lisp_Charset): Add new member
3643         `encoding_table'.
3644         (CHARSET_ENCODING_TABLE): New macro.
3645         (XCHARSET_ENCODING_TABLE): New macro.
3646         (charset_code_point): New implementation.
3647         (encode_char_1): Likewise.
3648
3649         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3650         (disksave_object_finalization_1): Call finalizers of
3651         `all_older_lcrecords' in UTF-2000.
3652         (make_older_vector): New function in UTF-2000.
3653         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3654         UTF-2000.
3655
3656         * lisp.h (make_older_vector): New prototype in UTF-2000.
3657
3658 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3659
3660         * lrecord.h (enum lrecord_type): Rename
3661         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3662
3663         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3664         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3665         `get_char_code_table'.
3666
3667         * mule-charset.c (mark_char_id_table): Renamed from
3668         `mark_char_code_table'.
3669         (char_id_table_equal): Renamed from `char_code_table_equal'.
3670         (char_id_table_hash): Renamed from `char_code_table_hash'.
3671         (make_char_id_table): Renamed from `make_char_code_table'.
3672         (copy_char_id_table): Renamed from `copy_char_code_table'.
3673         (get_char_id_table): Renamed from `get_char_code_table'.
3674         (put_char_id_table): Renamed from `put_char_code_table'.
3675         (to_char_id): Renamed from `to_char_code'.
3676
3677         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3678         `Lisp_Char_Code_Table'.
3679         (char_id_table): Renamed from `char_code_table'.
3680         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3681         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3682         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3683         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3684         (get_char_id_table): Renamed from `get_char_code_table'.
3685
3686 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3687
3688         * lrecord.h (enum lrecord_type): Rename
3689         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3690
3691         * mule-charset.c (mark_byte_table): Renamed from
3692         `mark_char_byte_table'.
3693         (byte_table_equal): Renamed from `char_byte_table_equal'.
3694         (byte_table_hash): Renamed from `byte_table_hash'.
3695         (make_byte_table): Renamed from `make_byte_table'.
3696         (copy_byte_table): Renamed from `copy_char_byte_table'.
3697
3698         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3699         `Lisp_Char_Byte_Table'.
3700         (byte_table): Renamed from `char_byte_table'.
3701         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3702         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3703         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3704         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3705
3706 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3707
3708         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3709         (dfc_convert_to_internal_format): Likewise.
3710         
3711         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3712         * text-coding.c (Fcoding_system_alias_p): New function.
3713         * text-coding.c (Fcoding_system_aliasee): New function.
3714         * text-coding.c (append_suffix_to_symbol): New function.
3715         * text-coding.c (dangling_coding_system_alias_p): New function.
3716         * text-coding.c (Ffind_coding_system):
3717         * text-coding.c (Fcopy_coding_system):
3718         * text-coding.c (encode_coding_no_conversion):
3719         * text-coding.c (syms_of_file_coding):
3720         * text-coding.c (vars_of_file_coding):
3721         Rewrite coding system alias code.
3722         Allow nested aliases, like symbolic links.
3723         Allow redefinition of coding system aliases.
3724         Prevent existence of dangling coding system aliases.
3725         Eliminate convert_to_external_format.
3726         Eliminate convert_to_internal_format.
3727         
3728         * text-coding.c: Change enum eol_type to eol_type_t.
3729
3730 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3731
3732         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3733         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3734
3735         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3736         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3737
3738 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3739
3740         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3741         `ideograph-daikanwa'.
3742
3743         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3744         (Vcharset_ucs_bmp): Likewise.
3745         (Vcharset_mojikyo): Add new extern variable definition.
3746         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3747         (Vcharset_latin_iso8859_3): Likewise.
3748         (Vcharset_latin_iso8859_4): Likewise.
3749         (Vcharset_latin_iso8859_9): Likewise.
3750         (Vcharset_latin_viscii_lower): Likewise.
3751         (Vcharset_latin_viscii_upper): Likewise.
3752         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3753         `mojikyo' code-point is used to decode.
3754         (encode_char_2): New function [to convert `mojikyo' code-point to
3755         Mojikyo font encoding].
3756         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3757         (breakup_char_1): Likewise.
3758         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3759
3760 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3761
3762         * text-coding.c (Fmake_coding_system): Add document about
3763         `disable-composition' property.
3764
3765 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3766
3767         * text-coding.c (Qdisable_composition): New variable; delete
3768         `Qcomposite'.
3769         (Fmake_coding_system): Add new property `disable-composite';
3770         delete property `composite'.
3771         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3772         instead of `!CODING_SYSTEM_COMPOSITE'.
3773         (syms_of_file_coding): Add new symbol `disable-composition';
3774         delete symbol `composite'.
3775
3776         * file-coding.h (struct Lisp_Coding_System): Add
3777         `disable_composition'; delete `enable_composition'.
3778         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3779         `CODING_SYSTEM_COMPOSITE'.
3780         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3781         `XCODING_SYSTEM_COMPOSITE'.
3782
3783 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3784
3785         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3786         to 0.15.
3787
3788 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3789
3790         * text-coding.c (Qcomposite): New variable.
3791         (Fmake_coding_system): Add new property `composite'.
3792         (struct decoding_stream): Add `combined_char_count',
3793         `combined_chars' and `combining_table' in UTF-2000.
3794         (COMPOSE_FLUSH_CHARS): New macro.
3795         (COMPOSE_ADD_CHAR): New macro.
3796         (reset_decoding_stream): Reset `str->combined_char_count' and
3797         `str->combining_table' in UTF-2000.
3798         (decode_coding_iso2022): Modify for character-decomposition.
3799         (syms_of_file_coding): Add new symbol `composite'.
3800
3801 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3802
3803         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3804         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3805         of `Vcharacter_composition_table' if `->decomposition' property
3806         has only 1 element.
3807         (Qlatin_tcvn5712): New variable.
3808         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3809         (complex_vars_of_mule_charset): Add new coded-charset
3810         `latin-tcvn5712'.
3811
3812         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3813
3814 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3815
3816         * file-coding.h (struct Lisp_Coding_System): Add
3817         `enable_composition'.
3818         (CODING_SYSTEM_COMPOSITE): New macro.
3819         (XCODING_SYSTEM_COMPOSITE): New macro.
3820
3821 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3822
3823         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3824
3825 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3826
3827         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3828         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3829
3830 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3831
3832         * mule-charset.c (Vcharset_mojikyo): New variable.
3833         (Fdefine_char): Don't use coded-charset which does not have
3834         non-builtin character range to allocate character-id.
3835         (Qmojikyo): New variable.
3836         (syms_of_mule_charset): Add new symbol `mojikyo'.
3837         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3838
3839         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3840         (LEADING_BYTE_MOJIKYO): New macro.
3841         (MIN_CHAR_MOJIKYO): New macro.
3842         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3843         (MAX_CHAR_MOJIKYO): New macro.
3844
3845 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3846
3847         * mule-charset.c (remove_char_attribute): Fixed.
3848
3849 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3850
3851         * mule-charset.c (remove_char_attribute): New function.
3852         (Fremove_char_attribute): New function.
3853         (encode_builtin_char_1): Comment out builtin-support for
3854         greek-iso8859-7 and cyrillic-iso8859-5.
3855         (Fdecode_char): Check `code' is an integer.
3856         (syms_of_mule_charset): Add `remove-char-attribute'.
3857         (MIN_CHAR_GREEK): Deleted.
3858         (MAX_CHAR_GREEK): Likewise.
3859         (MIN_CHAR_CYRILLIC): Likewise.
3860         (MAX_CHAR_CYRILLIC): Likewise.
3861         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3862         MAX_CHAR_GREEK for `greek-iso8859-7'.
3863
3864         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3865         (MAX_CHAR_GREEK): Likewise.
3866         (MIN_CHAR_CYRILLIC): Likewise.
3867         (MAX_CHAR_CYRILLIC): Likewise.
3868
3869 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3870
3871         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3872         format is used without `ucs' property.
3873         (Fdecode_char): Fix problem with GR representation.
3874         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3875         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3876
3877 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3878
3879         * mule-charset.c (make_builtin_char): New function.
3880         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3881         (Fset_charset_mapping_table): Modify for new representation of
3882         code-point.
3883         (Fdecode_char): New function.
3884         (syms_of_mule_charset): Add new builtin function `decode-char' in
3885         UTF-2000.
3886
3887         * char-ucs.h (make_builtin_char): New prototype.
3888         (DECODE_CHAR): New inline function.
3889         (MAKE_CHAR): Use `DECODE_CHAR'.
3890
3891 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3892
3893         * text-coding.c (parse_charset_conversion_specs): Use
3894         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3895         `XCHARSET_TYPE'.
3896         (iso2022_designate): Likewise.
3897
3898         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3899         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3900
3901         * mule-charset.c (Vcharset_ucs): New variable.
3902         (print_charset): Change design; use `CHARSET_CHARS' and
3903         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3904         (make_charset): Change signature to specify `chars' and
3905         `dimension' instead of `type'.
3906         (range_charset_code_point): Modify for 256^n-set.
3907         (encode_builtin_char_1): Encode as `ucs' in default.
3908         (Fmake_charset): Modify for `make_charset'.
3909         (Fmake_reverse_direction_charset): Likewise.
3910         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3911         UTF-2000.
3912         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3913         for `make_charset'.
3914
3915         * char-ucs.h (Vcharset_ucs): New variable.
3916         (LEADING_BYTE_UCS): New macro.
3917         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3918         and `chars' to `unsigned short' from `unsigned int'.
3919         (CHARSET_TYPE): Deleted.
3920         (XCHARSET_TYPE): Deleted.
3921
3922 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3923
3924         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3925
3926         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3927         (ENCODE_CHAR): New macro.
3928
3929 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3930
3931         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3932         to 0.14 (Kawachi-Katakami).
3933
3934 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3935
3936         * text-coding.c (char_encode_shift_jis): Modify for
3937         `charset_code_point'.
3938         (char_encode_iso2022): Likewise.
3939
3940         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3941         (integer) instead of list of <Lisp_Object>s (integers) as the
3942         format of code-point of a coded-charset.
3943         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3944         (encode_builtin_char_1): New function; delete
3945         `split_builtin_char'.
3946         (charset_code_point): Return <int> instead of <Lisp_Object>.
3947         (Fsplit_char): Don't use `SPLIT_CHAR'.
3948
3949         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3950         prototype for `split_builtin_char'.
3951         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3952         (charset_code_point): Likewise.
3953         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3954         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3955
3956 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3957
3958         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3959         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3960
3961 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3962
3963         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3964
3965         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3966         (MAX_CHAR_OBS_94x94): Deleted.
3967
3968 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3971
3972         * char-ucs.h (MAX_CHAR_BMP): New macro.
3973
3974 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3975
3976         * text-coding.c: Sync with r21-2-24.
3977
3978 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3979
3980         * file-coding.c: Modify for UTF-2000.
3981
3982 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3983
3984         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3985         to 0.13 (Takaida).
3986
3987 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3988
3989         * mule-charset.c (split_builtin_char): Delete builtin support for
3990         `katakana-jisx0201'.
3991         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3992         BMP area in builtin representation.
3993
3994         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3995         `Vcharset_katakana_jisx0201'.
3996
3997 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3998
3999         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4000         (Qisolated): New variable.
4001         (Qinitial): New variable.
4002         (Qmedial): New variable.
4003         (Qfinal): New variable.
4004         (Qvertical): New variable.
4005         (Qsmall): New variable.
4006         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4007         `Qvertical' and `Qsmall'.
4008         (Qmojikyo_pj_[1 .. 21]): New variable.
4009         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4010         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4011         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4012         .. 21]'.
4013
4014 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4015
4016         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4017         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4018         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4019
4020 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4021
4022         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4023         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4024         BMP.
4025         (Qjapanese_jisx0208_1990): New variable.
4026         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4027         (complex_vars_of_mule_charset): Add new coded-charset
4028         `japanese-jisx0208-1990'.
4029
4030         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4031         (MIN_CHAR_JIS_X0208_1990): New macro.
4032         (MAX_CHAR_JIS_X0208_1990): New macro.
4033
4034 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4035
4036         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4037         coded-charset is not found.
4038
4039 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4040
4041         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4042         (Fdefine_char): Use `Fmake_char'.
4043
4044 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4045
4046         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4047         (Vcharset_hiragana_jisx0208): Deleted.
4048         (Vcharset_katakana_jisx0208): Deleted.
4049         (Qideograph_daikanwa): New variable.
4050         (Qhiragana_jisx0208): Deleted.
4051         (Qkatakana_jisx0208): Deleted.
4052         (split_builtin_char): Split `ideograph-daikanwa'.
4053         (Fsplit_char): New implementation for UTF-2000.
4054         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4055         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4056         (complex_vars_of_mule_charset): Add new coded-charset
4057         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4058         `katakana-jisx0208'.
4059
4060         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4061         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4062         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4063         (MIN_CHAR_DAIKANWA): New macro.
4064         (MAX_CHAR_DAIKANWA): New macro.
4065
4066 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4067
4068         * data.c (Fstring_to_number): Don't recognize floating point if
4069         base is not 10.
4070
4071 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4072
4073         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4074
4075 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4076
4077         * mule-charset.c (Qsquare): New variable.
4078         (to_char_code): Add `Qsquare'.
4079         (syms_of_mule_charset): Add new symbol `square'.
4080
4081 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4082
4083         * mule-charset.c (Qcircle): New variable.
4084         (to_char_code): Add `Qcircle'.
4085         (syms_of_mule_charset): Add new symbol `circle'.
4086
4087 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4088
4089         * mule-charset.c (Qfont): New variable.
4090         (to_char_code): Add `Qfont'.
4091         (syms_of_mule_charset): Add new symbol `font'.
4092
4093 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4094
4095         * mule-charset.c (Qsub): New variable.
4096         (to_char_code): Add `Qsub'.
4097         (syms_of_mule_charset): Add new symbol `sub'.
4098
4099 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4100
4101         * mule-charset.c (Fput_char_attribute): Convert each element of
4102         VALUE to GL position if ATTRIBUTE is a GR-set,
4103
4104 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4105
4106         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4107         coded-charset is a GR-set.
4108
4109 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4110
4111         * mule-charset.c (Fput_char_attribute): Check each element of
4112         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4113
4114 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4115
4116         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4117         UTF-2000.
4118         (Qethiopic_ucs): New variable in UTF-2000.
4119         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4120         (complex_vars_of_mule_charset): Add new coded-charset
4121         `ethiopic-ucs' in UTF-2000.
4122
4123         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4124         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4125         9)'.
4126         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4127         10)'.
4128         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4129
4130 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4131
4132         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4133         `ascii'.
4134
4135 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4136
4137         * mule-charset.c (Vcharacter_variant_table): New variable.
4138         (Q_ucs): New variable.
4139         (Fchar_variants): New function.
4140         (Fput_char_attribute): Register `->ucs' value to
4141         `Vcharacter_variant_table'.
4142         (syms_of_mule_charset): Add new function `char-variants' and new
4143         symbol `->ucs'.
4144         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4145
4146 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4147
4148         * mule-charset.c (get_char_code_table): Allow negative character
4149         code.
4150         (put_char_code_table): Likewise.
4151         (Vcharacter_composition_table): New variable.
4152         (Q_decomposition): New variable.
4153         (Qwide): New variable.
4154         (Qnarrow): New variable.
4155         (Qcompat): New variable.
4156         (QnoBreak): New variable.
4157         (Qsuper): New variable.
4158         (Qfraction): New variable.
4159         (to_char_code): New function.
4160         (Fget_composite_char): New function.
4161         (Fput_char_attribute): Register `->decomposition' value to
4162         `Vcharacter_composition_table'.
4163         (syms_of_mule_charset): Add new function `get-composite-char', new
4164         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4165         `super' and `fraction'.
4166         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4167
4168 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4169
4170         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4171         character; copy the return value.
4172
4173 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4176
4177         * mule-charset.c (range_charset_code_point): Must use make_int.
4178         (split_builtin_char): New function.
4179
4180 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4181
4182         * mule-charset.c (char_byte_table): Change name from
4183         "char-code-table" to "char-byte-table".
4184         (mark_char_code_table): New function.
4185         (char_code_table_equal): New function.
4186         (char_code_table_hash): New function.
4187         (char_code_table_description): New constant.
4188         (char_code_table): New type.
4189         (make_char_code_table): New function.
4190         (copy_char_code_table): New function.
4191         (get_char_code_table): Modify for `char_code_table' type.
4192         (put_char_code_table): Likewise.
4193         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4194         (Kashiwara).
4195
4196         * char-ucs.h (char_code_table): New type.
4197         (XCHAR_CODE_TABLE): New macro.
4198         (XSETCHAR_CODE_TABLE): New macro.
4199         (CHAR_CODE_TABLE_P): New macro.
4200         (GC_CHAR_CODE_TABLE_P): New macro.
4201         (struct Lisp_Char_Code_Table): New structure.
4202
4203 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4204
4205         * mule-charset.c (Fmake_charset): Setup byte_offset for
4206         {94|96}^n-set.
4207
4208 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4209
4210         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4211         character.
4212
4213 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4214
4215         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4216         is found.
4217
4218 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4221         charset, it is regarded as a charset.
4222         (put_char_attribute): New function in UTF-2000.
4223         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4224         charset, mapping-table of the charset is modified.
4225         (Fdefine_char): New function in UTF-2000.
4226         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4227         `Fput_char_attribute'.
4228         (syms_of_mule_charset): Add new function `define-char' and new
4229         symbol `ucs' in UTF-2000.
4230         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4231
4232 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4233
4234         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4235         non-UTF-2000 configuration.
4236
4237 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4238
4239         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4240         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4241
4242         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4243         deleted.
4244         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4245         (Fset_charset_mapping_table): Likewise.
4246
4247         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4248         (CHARSET_ENCODING_TABLE): Delete.
4249         (XCHARSET_ENCODING_TABLE): Delete.
4250         (charset_code_point): New interface.
4251
4252 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4253
4254         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4255         instead of `charset_get_byte1' and `charset_get_byte2'.
4256
4257         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4258         (charset_get_byte2): Deleted.
4259
4260 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4261
4262         * char-ucs.h (SPLIT_CHAR): New inline function.
4263         (breakup_char_1): Use `SPLIT_CHAR'.
4264
4265         * mule-charset.c (range_charset_code_point): New function.
4266         (charset_code_point): New function.
4267
4268         * char-ucs.h (range_charset_code_point): New interface.
4269         (breakup_char_1): Use `range_charset_code_point'.
4270
4271 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4272
4273         * mule-charset.c (Fmake_charset): Delete unused local variable
4274         `code_offset'.
4275
4276         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4277         (breakup_char_1): Find a charset and code-point in
4278         `Vcharacter_attribute_table'.
4279
4280 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4281
4282         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4283         to 0.10 (Yao).
4284
4285 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4286
4287         * mule-charset.c (Vcharacter_attribute_table): New variable.
4288         (Fchar_attribute_alist): New function.
4289         (Fget_char_attribute): New function.
4290         (Fput_char_attribute): New function.
4291         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4292         too.
4293         (syms_of_mule_charset): Add new function `char-attribute-alist',
4294         `get-char-attribute' and `put-char-attribute'.
4295         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4296
4297 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4298
4299         * mule-charset.c (Fmake_charset): Just use
4300         `get_unallocated_leading_byte'.
4301
4302         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4303         sets; don't use final-byte based number for private sets.
4304
4305 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4306
4307         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4308         integer.
4309
4310 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4311
4312         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4313         to 0.9.
4314
4315 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4316
4317         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4318         of `CHAR_LEADING_BYTE' in UTF-2000.
4319
4320         * insdel.c (find_charsets_in_bufbyte_string): Use
4321         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4322         (find_charsets_in_emchar_string): Likewise.
4323
4324         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4325         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4326
4327         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4328         (CHAR_CHARSET_ID): New macro.
4329
4330 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4331
4332         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4333         charset-id - MIN_LEADING_BYTE.
4334         (put_char_table): Likewise.
4335
4336 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4337
4338         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4339         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4340         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4341         (CHARSET_ID_OFFSET): New macro.
4342         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4343         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4344         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4345         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4346         4).
4347         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4348         5).
4349         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4350         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4351         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4352         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4353         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4354
4355 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4356
4357         * mule-charset.c (next_allocated_leading_byte): New variable in
4358         UTF-2000.
4359         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4360         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4361         (get_unallocated_leading_byte): Simply use
4362         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4363         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4364         UTF-2000.
4365
4366         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4367         (MAX_LEADING_BYTE_PRIVATE): New macro.
4368         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4369         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4370
4371 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4372
4373         * mule-charset.c (Fmake_charset): Allocate final-byte based
4374         charset-id for 94-set, 96-set and 94x94-set.
4375
4376 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4377
4378         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4379         ambiguous `else'.
4380         (Fmake_charset): Likewise.
4381         (complex_vars_of_mule_charset): Modify the font registry of
4382         `ucs-bmp' not to match `Ethiopic-Unicode'.
4383
4384 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4385
4386         * mule-charset.c (complex_vars_of_mule_charset): Add font
4387         registory of `ucs-bmp'.
4388
4389 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4390
4391         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4392         coded-charsets in `default-coded-charset-priority-list' when
4393         breaking up a character.
4394
4395         * mule-charset.c (Vcharset_latin_viscii): New variable.
4396         (Qlatin_viscii): New variable.
4397         (make_charset): Don't use `decoding_table'.
4398         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4399         byte_offset.
4400         (Fset_charset_mapping_table): New implementation.
4401         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4402         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4403         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4404         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4405         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4406         charset `latin_viscii'.
4407
4408         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4409         (CHARSET_TYPE_94X94): Change to 1 from 2.
4410         (CHARSET_TYPE_96): Change to 2 from 1.
4411         (CHARSET_TYPE_128): New macro.
4412         (CHARSET_TYPE_128X128): Change to 5 from 4.
4413         (CHARSET_TYPE_256): New macro.
4414         (CHARSET_TYPE_256X256): Change to 7 from 5.
4415         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4416
4417 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * text-coding.c (char_encode_shift_jis): Refer
4420         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4421         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4422
4423         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4424         (char_byte_table_equal): New function in UTF-2000.
4425         (char_byte_table_hash): New function in UTF-2000.
4426         (char_byte_table_description): New constant in UTF-2000.
4427         (char_byte_table): New type in UTF-2000.
4428         (make_char_byte_table): New function in UTF-2000.
4429         (copy_char_byte_table): New function in UTF-2000.
4430         (make_char_code_table): New macro in UTF-2000.
4431         (get_char_code_table): New function in UTF-2000.
4432         (put_char_code_table): New function in UTF-2000.
4433         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4434         (charset_description): Add setting in UTF-2000.
4435         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4436         `CHARSET_TO_BYTE1_TABLE(cs)'.
4437         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4438         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4439         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4440         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4441         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4442         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4443         `CHARSET_TO_BYTE2_TABLE(cs)'.
4444
4445         * char-ucs.h (char_byte_table): New type.
4446         (XCHAR_BYTE_TABLE): New macro.
4447         (XSETCHAR_BYTE_TABLE): New macro.
4448         (CHAR_BYTE_TABLE_P): New macro.
4449         (GC_CHAR_BYTE_TABLE_P): New macro.
4450         (struct Lisp_Char_Byte_Table): New structure.
4451         (get_char_code_table): New interface.
4452         (Emchar_to_byte_table): Deleted.
4453         (get_byte_from_character_table): Deleted.
4454         (struct Lisp_Charset): Add `encoding_table'; delete
4455         `to_byte1_table' and `to_byte2_table'.
4456         (CHARSET_ENCODING_TABLE): New macro.
4457         (CHARSET_TO_BYTE1_TABLE): Deleted.
4458         (CHARSET_TO_BYTE2_TABLE): Deleted.
4459         (XCHARSET_ENCODING_TABLE): New macro.
4460         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4461         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4462
4463 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4464
4465         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4466         `vietnamese-viscii-*'.
4467
4468 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4469
4470         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4471         (Qvietnamese_viscii_upper): New variable.
4472         (Fdefine_charset_alias): New function.
4473         (syms_of_mule_charset): Add new function `define-charset-alias'.
4474         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4475         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4476         `latin-viscii-*'.
4477
4478 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4479
4480         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4481         (MAX_CHAR_OBS_94x94): New macro.
4482         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4483         for 94x94 sets.
4484
4485         * mule-charset.c (put_byte_from_character_table): Change unit size
4486         from 128 to 256.
4487         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4488         not defined.
4489         (Fmake_reverse_direction_charset): Modify dummy argument of
4490         `make_charset' for non-UTF-2000 environment.
4491
4492 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4493
4494         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4495
4496         * mule-charset.c (destroy_byte_from_character_table): New macro.
4497         (latin_jisx0201_to_ucs): Deleted.
4498         (latin_iso8859_2_to_ucs): Deleted.
4499         (latin_iso8859_3_to_ucs): Deleted.
4500         (latin_iso8859_4_to_ucs): Deleted.
4501         (latin_iso8859_9_to_ucs): Deleted.
4502         (latin_viscii_lower_to_ucs): Deleted.
4503         (latin_viscii_upper_to_ucs): Deleted.
4504         (mark_charset): Mark `cs->decoding_table'.
4505         (Fcharset_mapping_table): Fix DOC-string.
4506         (Fset_charset_mapping_table): New function.
4507         (syms_of_mule_charset): Add nwe function
4508         `set-charset-mapping-table'.
4509         (complex_vars_of_mule_charset): Don't setup and use
4510         `latin_*_to_ucs'.
4511
4512 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4513
4514         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4515         charset.
4516
4517 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4518
4519         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4520         (Vcharset_katakana_jisx0208): New variable.
4521         (Qhiragana_jisx0208): New variable.
4522         (Qkatakana_jisx0208): New variable.
4523         (make_charset): Add new argument `byte_offset'.
4524         (charset_get_byte1): Modify for new coded-charset definition; use
4525         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4526         `XCHARSET_BYTE_OFFSET'.
4527         (Fmake_charset): Modify for `make_charset'.
4528         (Fmake_reverse_direction_charset): Likewise.
4529         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4530         `katakana-jisx0208'.
4531         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4532         `.'  in font registry of charset `katakana-jisx0201',
4533         `latin-jisx0201', `vietnamese-viscii-lower' and
4534         `vietnamese-viscii-upper'; modify DOC-string of charset
4535         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4536         registry of charset `japanese-jisx0208' not to use font for JIS
4537         X0208:1990; add new charset `hiragana-jisx0208' and
4538         `katakana-jisx0208'.
4539
4540         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4541         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4542         (struct Lisp_Charset): Add `byte_offset'.
4543         (CHARSET_BYTE_OFFSET): New macro.
4544         (XCHARSET_UCS_MIN): New macro.
4545         (XCHARSET_UCS_MAX): New macro.
4546         (XCHARSET_CODE_OFFSET): New macro.
4547         (XCHARSET_BYTE_OFFSET): New macro.
4548         (MIN_CHAR_HIRAGANA): New macro.
4549         (MAX_CHAR_HIRAGANA): New macro.
4550         (MIN_CHAR_KATAKANA): New macro.
4551         (MAX_CHAR_KATAKANA): New macro.
4552         (MAKE_CHAR): Modify for new coded-charset definition; use
4553         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4554         `XCHARSET_BYTE_OFFSET'.
4555
4556 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * mule-charset.c (CHAR96): Deleted.
4559         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4560         <Lisp_Object>.
4561         (latin_iso8859_2_to_ucs): Likewise.
4562         (latin_iso8859_3_to_ucs): Likewise.
4563         (latin_iso8859_4_to_ucs): Likewise.
4564         (latin_iso8859_9_to_ucs): Likewise.
4565         (latin_viscii_lower_to_ucs): Likewise.
4566         (latin_viscii_upper_to_ucs): Likewise.
4567         (latin_tcvn5712_to_ucs): Commented out.
4568         (make_charset): Change type of argument `decoding_table' from
4569         <Emchar*> to <Lisp_Object> [vector of characters].
4570         (Fmake_charset): Modify for `make_charset'.
4571         (Fmake_reverse_direction_charset): Likewise.
4572         (Fcharset_mapping_table): New function in UTF-2000.
4573         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4574         UTF-2000.
4575         (complex_vars_of_mule_charset): Modify for type change of
4576         `*_to_ucs'; modify for `make_charset'.
4577
4578         * char-ucs.h (struct Lisp_Charset): Change type of
4579         `decoding_table' from <Emchar*> to <Lisp_Object>.
4580         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4581
4582 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4583
4584         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4585         error with non-UTF-2000-Mule.
4586
4587 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4588
4589         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4590         in lisp again].
4591         (Vcharset_chinese_cns11643_4): Likewise.
4592         (Vcharset_chinese_cns11643_5): Likewise.
4593         (Vcharset_chinese_cns11643_6): Likewise.
4594         (Vcharset_chinese_cns11643_7): Likewise.
4595         (Qchinese_cns11643_3): Likewise.
4596         (Qchinese_cns11643_4): Likewise.
4597         (Qchinese_cns11643_5): Likewise.
4598         (Qchinese_cns11643_6): Likewise.
4599         (Qchinese_cns11643_7): Likewise.
4600         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4601         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4602         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4603         (complex_vars_of_mule_charset): Likewise.
4604
4605 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4606
4607         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4608         96-set.
4609         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4610         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4611
4612 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4613
4614         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4615         0xFF60.
4616         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4617         (breakup_char_1): Likewise.
4618
4619         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4620         one of them includes the specified character.
4621
4622 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4623
4624         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4625
4626 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4629
4630 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4631
4632         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4633         definition for non-UTF-2000 Mule.
4634         (latin_iso8859_3_to_ucs): Likewise.
4635         (latin_iso8859_4_to_ucs): Likewise.
4636         (latin_iso8859_9_to_ucs): Likewise.
4637         (latin_jisx0201_to_ucs): Likewise.
4638         (MIN_CHAR_THAI): Likewise.
4639         (MAX_CHAR_THAI): Likewise.
4640         (MIN_CHAR_GREEK): Likewise.
4641         (MAX_CHAR_GREEK): Likewise.
4642         (MIN_CHAR_HEBREW): Likewise.
4643         (MAX_CHAR_HEBREW): Likewise.
4644         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4645         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4646         (MIN_CHAR_CYRILLIC): Likewise.
4647         (MAX_CHAR_CYRILLIC): Likewise.
4648
4649 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4650
4651         * char-ucs.h (breakup_char_1): Use
4652         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4653         thai-tis620 and katakana-jisx0201 area.
4654
4655 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4656
4657         * char-ucs.h (breakup_char_1): Use
4658         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4659         area.
4660
4661         * text-coding.c (reset_encoding_stream): Fixed.
4662         (char_encode_ucs4): Delete `& 255'.
4663
4664         * char-ucs.h (breakup_char_1): Use
4665         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4666
4667 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4668
4669         * file-coding.c (Fmake_coding_system): Don't set up
4670         `codesys->fixed.size'.
4671         (encode_coding_no_conversion): Don't refer
4672         `str->codesys->fixed.size'.
4673
4674 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4675
4676         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4677         (latin_a_char_to_byte1): Deleted.
4678         (latin_a_char_to_byte2): Deleted.
4679
4680 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4681
4682         * mule-charset.c (make_charset): Add new argument `ucs_min',
4683         `ucs_max' and `code_offset'.
4684         (charset_get_byte1): New implementation [delete specific charset
4685         depended implementations].
4686         (Fmake_charset): Modify for `make_charset'.
4687         (Fmake_reverse_direction_charset): Likewise.
4688         (complex_vars_of_mule_charset): Likewise.
4689
4690         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4691         `code_offset'.
4692         (CHARSET_UCS_MIN): New macro.
4693         (CHARSET_UCS_MAX): New macro.
4694         (CHARSET_CODE_OFFSET): New macro.
4695         (MAKE_CHAR): Delete charset depended definitions [except
4696         katakana-jisx0201].
4697
4698 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4699
4700         * char-ucs.h (breakup_char_1): Use
4701         `Vdefault_coded_charset_priority_list' for C0-Controls,
4702         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4703
4704 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4705
4706         * char-ucs.h (charset_get_byte1): New function.
4707         (XCHARSET_GET_BYTE1): Deleted.
4708         (charset_get_byte2): New function.
4709         (XCHARSET_GET_BYTE2): Deleted.
4710         (Vdefault_coded_charset_priority_list): New external variable.
4711         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4712         `Vdefault_preferred_coded_charset_list'.
4713
4714         * mule-charset.c (charset_get_byte1): New function.
4715         (charset_get_byte2): New function.
4716         (Vdefault_coded_charset_priority_list): New variable.
4717         (vars_of_mule_charset): Add new variable
4718         `default-coded-charset-priority-list'.
4719
4720 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4721
4722         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4723         (XCHARSET_GET_BYTE2): New inline function.
4724         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4725         `XCHARSET_GET_BYTE2'.
4726
4727 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4728
4729         * mule-charset.c (make_charset): Initialize
4730         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4731         NULL if table is not defined.
4732
4733 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4734
4735         * text-coding.c (char_encode_shift_jis): Use
4736         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4737         `ucs_to_latin_jisx0201'.
4738
4739         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4740         (ucs_to_latin_iso8859_2): Deleted.
4741         (ucs_to_latin_iso8859_3): Deleted.
4742         (ucs_to_latin_iso8859_4): Deleted.
4743         (ucs_to_latin_iso8859_9): Deleted.
4744         (ucs_to_latin_viscii_lower): Deleted.
4745         (ucs_to_latin_viscii_upper): Deleted.
4746         (ucs_to_latin_tcvn5712): Deleted.
4747         (make_charset): Add new argument `decoding_table'; set up
4748         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4749         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4750         `decoding_table' is defined in UTF-2000.
4751         (Fmake_charset): Modify for `make_charset'.
4752         (Fmake_reverse_direction_charset): Likewise.
4753         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4754         and `GENERATE_96_SET'.
4755
4756         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4757         (ucs_to_latin_jisx0201): Deleted.
4758         (latin_iso8859_2_to_ucs): Deleted.
4759         (ucs_to_latin_iso8859_2): Deleted.
4760         (latin_iso8859_3_to_ucs): Deleted.
4761         (ucs_to_latin_iso8859_3): Deleted.
4762         (latin_iso8859_4_to_ucs): Deleted.
4763         (ucs_to_latin_iso8859_4): Deleted.
4764         (latin_iso8859_9_to_ucs): Deleted.
4765         (ucs_to_latin_iso8859_9): Deleted.
4766         (latin_viscii_lower_to_ucs): Deleted.
4767         (ucs_to_latin_viscii_lower): Deleted.
4768         (latin_viscii_upper_to_ucs): Deleted.
4769         (ucs_to_latin_viscii_upper): Deleted.
4770         (struct Lisp_Charset): Renamed `encoding_table' to
4771         `to_byte1_table'; add `to_byte2_table'.
4772         (CHARSET_DECODING_TABLE): New macro.
4773         (CHARSET_TO_BYTE1_TABLE): New macro.
4774         (CHARSET_TO_BYTE2_TABLE): New macro.
4775         (XCHARSET_DECODING_TABLE): New macro.
4776         (XCHARSET_TO_BYTE1_TABLE): New macro.
4777         (XCHARSET_TO_BYTE2_TABLE): New macro.
4778         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4779         tables.
4780         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4781         don't use `ucs_to_*' tables.
4782
4783 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4784
4785         * text-coding.c (Fmake_coding_system): Don't set up
4786         `codesys->fixed.size'.
4787         (encode_coding_no_conversion): Use `if' instead of `switch'.
4788
4789         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4790
4791 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4792
4793         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4794         (Fmake_charset): Modify for `make_charset'.
4795         (Fmake_reverse_direction_charset): Likewise.
4796         (complex_vars_of_mule_charset): Likewise.
4797
4798 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4799
4800         * text-coding.c (char_encode_shift_jis): Use table
4801         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4802
4803 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4804
4805         * text-coding.c (text_encode_generic): Use `if' instead of
4806         `switch'.
4807         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4808         decode JIS-Latin.
4809
4810 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4811
4812         * text-coding.c (encode_coding_sjis): Deleted.
4813         (char_encode_shift_jis): New function.
4814         (char_finish_shift_jis): New function.
4815         (reset_encoding_stream): Set up `encode_char' and `finish' for
4816         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4817         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4818         (char_encode_utf8): Treat `eol_type'.
4819
4820 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4821
4822         * file-coding.c (decode_coding_iso2022): Use
4823         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4824
4825 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4826
4827         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4828         to 0.7 (Hirano).
4829
4830 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4831
4832         * char-lb.h (CHAR_COLUMNS): New macro.
4833
4834 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4835
4836         * text-coding.c (char_encode_ucs4): New function.
4837         (char_finish_ucs4): New function.
4838         (encode_coding_ucs4): Deleted.
4839         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4840         (text_encode_generic): Delete local variable `charset' and `half'.
4841         (ucs_to_mule_table): Deleted.
4842         (mule_to_ucs_table): Deleted.
4843         (Fset_ucs_char): Deleted.
4844         (ucs_to_char): Deleted.
4845         (Fucs_char): Deleted.
4846         (Fset_char_ucs): Deleted.
4847         (Fchar_ucs): Deleted.
4848         (decode_ucs4): Deleted.
4849         (mule_char_to_ucs4): Deleted.
4850         (encode_ucs4): Deleted.
4851         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4852         (decode_coding_utf8): Likewise.
4853         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4854         (char_encode_iso2022): Fixed.
4855         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4856         `Fset_char_ucs' and `Fchar_ucs'.
4857         (complex_vars_of_file_coding): Don't initialize
4858         `ucs_to_mule_table'.
4859
4860         * objects-tty.c (tty_initialize_font_instance): Don't use
4861         `XCHARSET_COLUMNS'.
4862
4863         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4864         UTF-2000.
4865
4866         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4867         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4868
4869         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4870         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4871         (emchar_string_displayed_columns): Likewise.
4872
4873         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4874         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4875         (string_column_at_point): Likewise.
4876         (Fmove_to_column): Likewise.
4877
4878         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4879         `encoding_table' and `decoding_table'.
4880         (CHARSET_REP_BYTES): Deleted.
4881         (XCHARSET_REP_BYTES): Deleted.
4882         (XCHARSET_COLUMNS): Deleted.
4883         (CHAR_COLUMNS): New macro.
4884         (lookup_composite_char): Deleted unconditionally.
4885         (composite_char_string): Likewise.
4886
4887 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4888
4889         * char-ucs.h (Emchar_to_byte_table): New type.
4890         (get_byte_from_character_table): New function interface.
4891         (Vcharset_latin_jisx0201): New variable.
4892         (latin_jisx0201_to_ucs): New variable.
4893         (ucs_to_latin_jisx0201): New variable.
4894         (Vcharset_latin_iso8859_2): New variable.
4895         (latin_iso8859_2_to_ucs): New variable.
4896         (ucs_to_latin_iso8859_2): New variable.
4897         (Vcharset_latin_iso8859_3): New variable.
4898         (latin_iso8859_3_to_ucs): New variable.
4899         (ucs_to_latin_iso8859_3): New variable.
4900         (Vcharset_latin_iso8859_4): New variable.
4901         (latin_iso8859_4_to_ucs): New variable.
4902         (ucs_to_latin_iso8859_4): New variable.
4903         (Vcharset_latin_iso8859_9): New variable.
4904         (latin_iso8859_9_to_ucs): New variable.
4905         (ucs_to_latin_iso8859_9): New variable.
4906         (Vcharset_latin_viscii_lower): New variable.
4907         (latin_viscii_lower_to_ucs): New variable.
4908         (ucs_to_latin_viscii_lower): New variable.
4909         (Vcharset_latin_viscii_upper): New variable.
4910         (latin_viscii_upper_to_ucs): New variable.
4911         (ucs_to_latin_viscii_upper): New variable.
4912         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4913         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4914         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4915         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4916         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4917         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4918         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4919         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4920         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4921         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4922
4923         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4924         (Vcharset_latin_viscii_upper): New variable.
4925         (make_byte_from_character_table): New function.
4926         (put_byte_from_character_table): New function.
4927         (get_byte_from_character_table): New function.
4928         (CHAR96): New macro.
4929         (ucs_to_latin_jisx0201): New variable.
4930         (latin_jisx0201_to_ucs): New variable.
4931         (ucs_to_latin_iso8859_2): New variable.
4932         (latin_iso8859_2_to_ucs): New variable.
4933         (ucs_to_latin_iso8859_3): New variable.
4934         (latin_iso8859_3_to_ucs): New variable.
4935         (ucs_to_latin_iso8859_4): New variable.
4936         (latin_iso8859_4_to_ucs): New variable.
4937         (ucs_to_latin_iso8859_9): New variable.
4938         (latin_iso8859_9_to_ucs): New variable.
4939         (ucs_to_latin_viscii_lower): New variable.
4940         (latin_viscii_lower_to_ucs): New variable.
4941         (ucs_to_latin_viscii_upper): New variable.
4942         (latin_viscii_upper_to_ucs): New variable.
4943         (ucs_to_latin_tcvn5712): New variable.
4944         (latin_tcvn5712_to_ucs): New variable.
4945         (Qlatin_viscii_lower): New variable.
4946         (Qlatin_viscii_upper): New variable.
4947         (syms_of_mule_charset): Set up new symbol
4948         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4949         (complex_vars_of_mule_charset): Set up new charset
4950         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4951         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4952         `ucs_to_<CHARSET>' tables.
4953
4954 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4955
4956         * text-coding.c: New file.
4957
4958 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4959
4960         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4961
4962         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4963         (MAKE_CHAR): Modify for `ucs-bmp'.
4964         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4965         non-MULE characters of BMP.
4966
4967 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4968
4969         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4970         to 0.6.
4971
4972 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4973
4974         * lstream.h:
4975         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4976         - Include character.h for `CHAR_ASCII_P'.
4977
4978         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4979
4980         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4981         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4982
4983         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4984         (BYTE_C0_P): Likewise.
4985         (BYTE_C1_P): Likewise.
4986         (Lstream_get_emchar_1): Likewise.
4987         (Lstream_fput_emchar): Likewise.
4988         (Lstream_funget_emchar): Likewise.
4989         (copy_internal_to_external): Likewise.
4990         (copy_external_to_internal): Likewise.
4991
4992         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4993         (BYTE_C0_P): Likewise.
4994         (BYTE_C1_P): Likewise.
4995         (Lstream_get_emchar_1): Likewise.
4996         (Lstream_fput_emchar): Likewise.
4997         (Lstream_funget_emchar): Likewise.
4998         (copy_internal_to_external): Likewise.
4999         (copy_external_to_internal): Likewise.
5000
5001         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5002         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5003
5004         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5005         (BYTE_ASCII_P): Moved to mb-1byte.h.
5006
5007 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5008
5009         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5010
5011         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5012         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5013         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5014         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5015         (VALIDATE_CHARPTR_FORWARD): Likewise.
5016         (simple_charptr_emchar): Moved to mb-multibyte.h.
5017         (simple_set_charptr_emchar): Likewise.
5018         (simple_charptr_copy_char): Likewise.
5019         (non_ascii_charptr_emchar): Likewise.
5020         (non_ascii_set_charptr_emchar): Likewise.
5021         (non_ascii_charptr_copy_char): Likewise.
5022         (charptr_emchar): Moved to mb-*byte.h.
5023         (set_charptr_emchar): Likewise.
5024         (charptr_copy_char): Likewise.
5025
5026         * mb-1byte.h, mb-multibyte.h: New files.
5027
5028 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5029
5030         * mb-utf-8.h (MULTIBYTE): New macro.
5031         (MAX_EMCHAR_LEN): Moved from buffer.h.
5032         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5033
5034         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5035
5036         * mb-lb.h, multibyte.h: New files.
5037
5038         * char-1byte.h (Charset_ID): Moved from buffer.h.
5039         (MIN_LEADING_BYTE): Likewise.
5040         (LEADING_BYTE_ASCII): Likewise.
5041         (NUM_LEADING_BYTES): Likewise.
5042         (CHARSETP): Likewise.
5043         (CHARSET_BY_LEADING_BYTE): Likewise.
5044         (XCHARSET_LEADING_BYTE): Likewise.
5045         (XCHARSET_GRAPHIC): Likewise.
5046         (XCHARSET_COLUMNS): Likewise.
5047         (XCHARSET_DIMENSION): Likewise.
5048         (CHAR_CHARSET): Likewise.
5049         (CHAR_LEADING_BYTE): Likewise.
5050         (BREAKUP_CHAR): Likewise.
5051         (Vcharset_ascii): Likewise.
5052
5053         * buffer.h: Include multibyte.h unconditionally.
5054         (VALID_CHARPTR_P): Moved to multibyte.h.
5055         (ASSERT_VALID_CHARPTR): Likewise.
5056         (REAL_INC_CHARPTR): Likewise.
5057         (REAL_INC_CHARBYTIND): Likewise.
5058         (REAL_DEC_CHARPTR): Likewise.
5059         (INC_CHARPTR): Likewise.
5060         (INC_CHARBYTIND): Likewise.
5061         (DEC_CHARPTR): Likewise.
5062         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5063         (VALIDATE_CHARPTR_FORWARD): Likewise.
5064         (charptr_n_addr): Likewise.
5065         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5066         (simple_charptr_emchar): Moved to multibyte.h.
5067         (simple_set_charptr_emchar): Likewise.
5068         (simple_charptr_copy_char): Likewise.
5069         (non_ascii_charptr_emchar): Likewise.
5070         (non_ascii_set_charptr_emchar): Likewise.
5071         (non_ascii_charptr_copy_char): Likewise.
5072         (charptr_emchar): Likewise.
5073         (set_charptr_emchar): Likewise.
5074         (charptr_copy_char): Likewise.
5075         (charptr_emchar_n): Likewise.
5076         (Charset_ID): Moved to char-1byte.h.
5077         (Vcharset_ascii): Likewise.
5078         (CHAR_CHARSET): Likewise.
5079         (CHAR_LEADING_BYTE): Likewise.
5080         (LEADING_BYTE_ASCII): Likewise.
5081         (NUM_LEADING_BYTES): Likewise.
5082         (MIN_LEADING_BYTE): Likewise.
5083         (CHARSETP): Likewise.
5084         (CHARSET_BY_LEADING_BYTE): Likewise.
5085         (XCHARSET_LEADING_BYTE): Likewise.
5086         (XCHARSET_GRAPHIC): Likewise.
5087         (XCHARSET_COLUMNS): Likewise.
5088         (XCHARSET_DIMENSION): Likewise.
5089         (BREAKUP_CHAR): Likewise.
5090
5091 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5092
5093         * character.h: Add document about interface for characters.
5094
5095         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5096         (MAKE_CHAR): Delete comment about
5097         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5098         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5099         (BREAKUP_CHAR): Modify name of arguments.
5100         (CHAR_CHARSET): Modify name of argument.
5101
5102         * buffer.h: Delete document about Emchar accessors.
5103
5104 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5105
5106         * character.h (CHAR_INTP): Moved from buffer.h
5107         (CHAR_OR_CHAR_INTP): Likewise.
5108         (XCHAR_OR_CHAR_INT): Likewise.
5109         (CHECK_CHAR_COERCE_INT): Likewise.
5110
5111         * buffer.h (CHAR_INTP): Moved to character.h
5112         (CHAR_OR_CHAR_INTP): Likewise.
5113         (XCHAR_OR_CHAR_INT): Likewise.
5114         (CHECK_CHAR_COERCE_INT): Likewise.
5115
5116 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5117
5118         * character.h:
5119         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5120         - Include char-1byte.h, char-lb.h or char-ucs.h.
5121
5122         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5123
5124         * buffer.h: Include character unconditionally.
5125         (valid_char_p): Moved to char-*.h.
5126         (non_ascii_valid_char_p): Moved to char-lb.h.
5127
5128         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5129
5130 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5131
5132         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5133         in UTF-2000 because it is not ported yet and not to use
5134         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5135         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5136         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5137
5138         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5139         (CHAR_ASCII_P): Moved from character.h.
5140
5141         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5142         (CHAR_ASCII_P): Likewise.
5143         (CHAR_FIELD1_MASK): Deleted.
5144         (CHAR_FIELD2_MASK): Deleted.
5145         (CHAR_FIELD3_MASK): Deleted.
5146         (MAX_CHAR_BASIC_LATIN): New macro.
5147         (CHAR_FIELD1): Deleted.
5148         (CHAR_FIELD2_INTERNAL): Deleted.
5149         (CHAR_FIELD3_INTERNAL): Deleted.
5150         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5151         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5152         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5153         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5154         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5155         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5156         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5157         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5158         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5159         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5160         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5161         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5162         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5163         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5164         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5165         (MIN_CHAR_COMPOSITION): Deleted.
5166         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5167         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5168
5169 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5170
5171         * buffer.h: Include mb-utf-8.h in UTF-2000.
5172
5173         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5174
5175         * mb-utf-8.h: New file.
5176
5177 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5178
5179         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5180         instead of `int'.
5181
5182         * mule-charset.h, buffer.h (Charset_ID): New type.
5183
5184 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5185
5186         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5187         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5188         instead of `MULE_CHAR_PRIVATE_OFFSET',
5189         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5190         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5191         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5192
5193         * character.h (Vcharset_japanese_jisx0212): New variable
5194         definition.
5195
5196 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5197
5198         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5199         (charset_by_attributes): Delete array about direction.
5200         (latin_a_char_to_charset): New variable in UTF-2000.
5201         (latin_a_char_to_byte1): New variable in UTF-2000.
5202         (latin_a_char_to_byte2): New variable in UTF-2000.
5203         (Qucs_bmp): New variable.
5204         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5205         `Bufbyte'.
5206         (next_allocated_2_byte_leading_byte): Likewise.
5207         (non_ascii_set_charptr_emchar): Likewise.
5208         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5209         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5210         `charset_by_attributes'.
5211         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5212         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5213         and `CHARSET_BY_LEADING_BYTE'.
5214         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5215         `utf-2000-version' to `vars_of_mule_charset'.
5216         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5217         define `leading-code-private-11' in UTF-2000; move setting of
5218         `utf-2000-version' from `syms_of_mule_charset'.
5219         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5220         UTF-2000.
5221
5222         * character.h (Charset_ID): New type.
5223         (LEADING_BYTE_UCS_BMP): New macro.
5224         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5225         (CHARSET_ID_OFFSET_94): New macro.
5226         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5227         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5228         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5229         final-byte.
5230         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5231         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5232         (CHARSET_ID_OFFSET_96): New macro.
5233         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5234         CHARSET_ID_OFFSET_96 and final-byte.
5235         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5236         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5237         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5238         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5239         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5240         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5241         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5242         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5243         (LEADING_BYTE_THAI_TIS620): Likewise.
5244         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5245         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5246         (CHARSET_ID_OFFSET_94x94): New macro.
5247         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5248         CHARSET_ID_OFFSET_94x94 and final-byte.
5249         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5250         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5251         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5252         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5253         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5254         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5255         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5256         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5257         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5258         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5259         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5260         (CHARSET_TYPE_128X128): New macro.
5261         (CHARSET_TYPE_256X256): New macro.
5262         (XCHARSET_PRIVATE_P): Delete unconditionally.
5263         (charset_by_attributes): Delete array about direction.
5264         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5265         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5266         (MIN_CHAR_94): New macro.
5267         (MAX_CHAR_94): New macro.
5268         (MIN_CHAR_96): New macro.
5269         (MAX_CHAR_96): New macro.
5270         (MIN_CHAR_94x94): New macro.
5271         (MAX_CHAR_94x94): New macro.
5272         (MIN_CHAR_96x96): New macro.
5273         (MAX_CHAR_96x96): New macro.
5274         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5275         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5276         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5277         - 32)'.
5278         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5279         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5280         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5281         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5282         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5283         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5284         `XCHARSET_LEADING_BYTE' to make code-point.
5285         (latin_a_char_to_charset): New variable.
5286         (latin_a_char_to_byte1): New variable.
5287         (latin_a_char_to_byte2): New variable.
5288         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5289         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5290         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5291
5292         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5293         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5294         (find_charsets_in_emchar_string): Likewise.
5295         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5296
5297         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5298         `int'.
5299         (decode_coding_iso2022): Likewise.
5300
5301         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5302         of `unsigned char'.
5303
5304         * redisplay.c (redisplay_text_width_emchar_string): Use
5305         `Charset_ID' instead of `unsigned char'.
5306         (redisplay_frame_text_width_string): Likewise.
5307
5308         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5309         `unsigned char'.
5310
5311         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5312         instead of `unsigned char'.
5313         (face_cachel_charset_font_metric_info): Likewise.
5314
5315         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5316         (get_non_ascii_char_table_value): Likewise.
5317         (get_char_table): Likewise.
5318         (put_char_table): Likewise.
5319         (map_over_other_charset): Likewise.
5320         (map_char_table): Likewise.
5321
5322         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5323         instead of `unsigned char'.
5324
5325 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5326
5327         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5328         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5329
5330         * mule-charset.c (leading_code_private_11): Don't define in
5331         UTF-2000.
5332
5333         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5334         in UTF-2000 because it is not ported yet and not to use
5335         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5336
5337 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5338
5339         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5340
5341 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5342
5343         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5344         in UTF-2000.
5345
5346         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5347         of unsigned char to store leading-byte.
5348
5349         * chartab.c (get_non_ascii_char_table_value): Don't use
5350         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5351
5352         * file-coding.c (encode_coding_big5): Delete bogus implementation
5353         in UTF2000.
5354
5355         * character.h (LEADING_BYTE_*): Delete definition for
5356         non-UTF-2000.
5357         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5358         (LEADING_BYTE_PREFIX_P): Deleted.
5359         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5360         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5361         (BUFBYTE_LEADING_BYTE_P): Deleted.
5362         (CHARSET_PRIVATE_P): Deleted unconditionally.
5363         (rep_bytes_by_first_byte): Deleted unconditionally.
5364         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5365         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5366         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5367         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5368         (CHAR_FIELD2): Deleted.
5369         (CHAR_FIELD3): Deleted.
5370         (MAKE_CHAR): Delete definition for non-UTF-2000.
5371         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5372         (breakup_char_1): New implementation.
5373         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5374         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5375
5376 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5377
5378         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5379         condition.
5380
5381 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5382
5383         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5384         (CHARSET_PRIVATE_P): Likewise.
5385         (XCHARSET_PRIVATE_P): Likewise.
5386         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5387
5388         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5389         UTF2000.
5390         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5391
5392 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5393
5394         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5395         (NUM_LEADING_BYTES): Changed from 128 to 256.
5396         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5397         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5398         UTF2000.
5399         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5400
5401         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5402         UTF2000.
5403         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5404         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5405         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5406         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5407         (Qchinese_cns11643_3): New variable in UTF2000.
5408         (Qchinese_cns11643_4): New variable in UTF2000.
5409         (Qchinese_cns11643_5): New variable in UTF2000.
5410         (Qchinese_cns11643_6): New variable in UTF2000.
5411         (Qchinese_cns11643_7): New variable in UTF2000.
5412         (syms_of_mule_charset): Define `chinese-cns11643-3',
5413         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5414         and `chinese-cns11643-7' in UTF2000.
5415         (vars_of_mule_charset): Initialize
5416         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5417         + 1 in UTF2000.
5418         (complex_vars_of_mule_charset): Setup charset
5419         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5420         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5421
5422 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5423
5424         * mule-charset.c: Move setting for `leading-code-private-11' from
5425         `syms_of_mule_charset' to `vars_of_mule_charset'.
5426
5427 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5428
5429         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5430         and `NUM_LEADING_BYTES' in assert.
5431
5432 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5435         instead of 128.
5436         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5437         `NUM_LEADING_BYTES' instead of 128.
5438
5439 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5440
5441         * mule-charset.h (charset_by_leading_byte): Use
5442         `NUM_LEADING_BYTES' instead of 128.
5443         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5444
5445         * mule-charset.c (charset_by_leading_byte): Use
5446         `NUM_LEADING_BYTES' instead of 128.
5447         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5448
5449         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5450         128.
5451
5452 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5453
5454         * mule-charset.c (syms_of_mule_charset): Update to
5455         0.4 (Shin-Imamiya).
5456
5457 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5458
5459         * file-coding.c (encode_coding_sjis): New implementation for
5460         UTF2000.  (decode_coding_sjis): Ditto.
5461
5462 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5463
5464         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5465         Don't define in UTF2000.
5466
5467         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5468         defined.
5469
5470         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5471         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5472         MULE.
5473
5474 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5475
5476         * config.h.in (CHAR_IS_UCS4): New macro.
5477
5478         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5479         conventional MULE representation.
5480         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5481
5482         * mule-charset.h: Reverted to original.
5483
5484         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5485         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5486         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5487
5488         * character.h: New file.
5489
5490         * file-coding.c (Fmake_coding_system): Set 1 to
5491         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5492         defined.
5493         (encode_coding_no_conversion): New implementation for UTF2000.
5494
5495         * file-coding.h (struct Lisp_Coding_System): Add new member
5496         `fixed.size'.
5497
5498 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5499
5500         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5501         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5502         (encode_coding_iso2022): New implementation for UTF2000.
5503
5504 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5505
5506         * mule-canna.c (c2mu): New implementation for UTF2000.
5507         (m2c): Likewise.
5508
5509 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5510
5511         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5512
5513 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5514
5515         * file-coding.c (reset_encoding_stream): Set 0 to
5516         `str->iso2022.current_char_boundary' in UTF2000.
5517         (encode_utf8): Don't define in UTF2000.
5518         (encode_coding_utf8): New implementation for UTF-8 representation
5519         of UTF2000.
5520         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5521
5522 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5523
5524         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5525
5526         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5527         UTF2000.
5528         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5529
5530         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5531
5532         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5533         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5534         as UTF-8 in UTF2000.
5535         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5536         (non_ascii_valid_char_p): Don't define in UTF2000.
5537         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5538         (Lstream_get_emchar_1): Likewise.
5539         (utf-2000-version): New variable in UTF2000.
5540
5541         * lread.c (read_escape): Add new reader `u'.
5542
5543         * insdel.c (three_to_one_table): Don't define in UTF2000.
5544         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5545         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5546         UTF2000.
5547         (bytind_to_bufpos_func): Likewise.
5548         (buffer_mule_signal_inserted_region): Likewise.
5549         (vars_of_insdel): Don't initialize `three_to_one_table'.
5550         (init_buffer_text): Use `buf->text->mule_size' instead of
5551         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5552         UTF2000.
5553
5554         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5555         UTF-8 representation in UTF2000.
5556         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5557         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5558         (decode_coding_iso2022): Don't define local variable `lb' in
5559         UTF2000; don't use LEADING_BYTE in UTF2000; use
5560         `DECODE_ADD_UCS_CHAR' in UTF2000.
5561         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5562
5563         * config.h.in (UTF2000): New macro.
5564
5565         * buffer.h (struct buffer_text): Add new member `mule_size' and
5566         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5567         (valid_char_p): Return always 1 in UTF2000.
5568         (MAX_EMCHAR_LEN): 6 in UTF2000.
5569         (three_to_one_table): Don't define in UTF2000.
5570         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5571         UTF2000.
5572         (real_bytind_to_bufpos): Likewise.
5573
5574         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5575
5576 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5577
5578         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5579         representation change.
5580         (Vutf_2000_version): New variable.
5581         (leading_code_private_11): New variable.
5582         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5583         `leading-code-private-11'.
5584
5585         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5586         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5587         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5588         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5589         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5590         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5591         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5592         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5593         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5594         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5595         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5596         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5597         (MIN_CHAR_GREEK): New macro.
5598         (MAX_CHAR_GREEK): New macro.
5599         (MIN_CHAR_CYRILLIC): New macro.
5600         (MAX_CHAR_CYRILLIC): New macro.
5601         (MIN_CHAR_HEBREW): New macro.
5602         (MAX_CHAR_HEBREW): New macro.
5603         (MIN_CHAR_THAI): New macro.
5604         (MAX_CHAR_THAI): New macro.
5605         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5606         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5607         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5608         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5609         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5610         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5611         (CHAR_FIELD2): New inline function.
5612         (CHAR_FIELD3): New inline function.
5613         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5614         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5615         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5616         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5617         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5618         (MIN_CHAR_COMPOSITION): Likewise.
5619         (CHAR_LEADING_BYTE): Modified for character representation change.
5620         (MAKE_CHAR): Likewise.
5621
5622         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5623         (Vcharset_greek_iso8859_7): Likewise.
5624         (Vcharset_cyrillic_iso8859_5): Likewise.
5625         (Vcharset_hebrew_iso8859_8): Likewise.
5626         (Vcharset_thai_tis620): Likewise.
5627         (Vcharset_katakana_jisx0201): Likewise.
5628
5629 2005-02-06  Vin Shelton <acs@xemacs.org>
5630
5631         * XEmacs 21.4.17 is released
5632
5633 2005-01-31  Ben Wing  <ben@xemacs.org>
5634
5635         * emacs.c:
5636         Define assert_failed() always.
5637         * lisp.h:
5638         Always define ABORT().
5639
5640 2005-01-25  Ben Wing  <ben@xemacs.org>
5641
5642         * Makefile.in.in:
5643         * Makefile.in.in (%.o):
5644         Don't compile executable as Windows (-mwindows) under Cygwin.
5645         Semi-recent changes to Cygwin's executable-startup handling make
5646         it impossible to access the TTY this way.
5647
5648         Don't use special linker file under Cygwin (cygwin.sc) except
5649         when non-PDUMP (even in this case it is highly questionable); you
5650         get errors like
5651
5652       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5653    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5654
5655 2005-01-29  Ben Wing  <ben@xemacs.org>
5656
5657         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5658
5659         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5660
5661 2005-01-29  Ben Wing  <ben@xemacs.org>
5662
5663         * bytecode.c (optimize_compiled_function):
5664         * print.c (FROB):
5665         * print.c (long_to_string):
5666         Add casts to avoid warning.
5667         
5668         * glyphs-eimage.c:
5669         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5670         #### The better solution is to move the TIFF and JPEG code to
5671         different files.
5672         
5673         * glyphs-msw.c (mswindows_xbm_instantiate):
5674         Define __STDC__ to avoid problems with compface.h.
5675         
5676         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5677         * EmacsShell-sub.c:
5678         * EmacsShell-sub.c (ABORT):
5679         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5680         * EmacsShell-sub.c (RootGeometryManager):
5681         * EmacsShell.c:
5682         * EmacsShell.c (ABORT):
5683         * EmacsShell.c (EmacsShellUpdateSizeHints):
5684         * alloc.c (free_lcrecord):
5685         * alloca.c (i00afunc):
5686         * buffer.c (delete_from_buffer_alist):
5687         * buffer.c (MARKED_SLOT):
5688         * bytecode.c (execute_rare_opcode):
5689         * bytecode.c (optimize_byte_code):
5690         * bytecode.c (Ffetch_bytecode):
5691         * chartab.c (char_table_type_to_symbol):
5692         * chartab.c (Freset_char_table):
5693         * chartab.c (decode_char_table_range):
5694         * chartab.c (Fget_range_char_table):
5695         * chartab.c (check_valid_char_table_value):
5696         * chartab.c (map_char_table):
5697         * chartab.c (slow_map_char_table_fun):
5698         * chartab.c (chartab_instantiate):
5699         * cm.c (cmcheckmagic):
5700         * console-msw.c (DHEADER):
5701         * console.c (MARKED_SLOT):
5702         * data.c (finish_marking_weak_lists):
5703         * data.c (encode_weak_list_type):
5704         * debug.h (DASSERT):
5705         * device-gtk.c (gtk_init_device):
5706         * device-msw.c (mswindows_get_default_margin):
5707         * device-tty.c (tty_init_device):
5708         * device-x.c (get_device_from_display):
5709         * device-x.c (x_get_visual_depth):
5710         * doprnt.c (parse_doprnt_spec):
5711         * doprnt.c (get_doprnt_args):
5712         * dumper.c (pdump_get_indirect_count):
5713         * dumper.c (pdump_register_sub):
5714         * dumper.c (pdump_register_object):
5715         * dumper.c (pdump_register_struct):
5716         * dumper.c (pdump_dump_data):
5717         * dumper.c (pdump_reloc_one):
5718         * elhash.c (print_hash_table):
5719         * elhash.c (make_standard_lisp_hash_table):
5720         * elhash.c (hash_table_instantiate):
5721         * emacs.c:
5722         * emacs.c (Fforce_debugging_signal):
5723         * emacs.c (sort_args):
5724         * emacs.c (main):
5725         * emacs.c (assert_failed):
5726         * eval.c (throw_or_bomb_out):
5727         * eval.c (signal_1):
5728         * eval.c (Fsignal):
5729         * event-Xt.c:
5730         * event-Xt.c (emacs_Xt_mapping_action):
5731         * event-Xt.c (Xt_process_to_emacs_event):
5732         * event-msw.c:
5733         * event-stream.c (check_event_stream_ok):
5734         * event-stream.c (Fadd_timeout):
5735         * event-stream.c (Fadd_async_timeout):
5736         * event-stream.c (Fdiscard_input):
5737         * event-stream.c (execute_internal_event):
5738         * event-stream.c (Frecent_keys):
5739         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5740         * event-stream.c (lookup_command_event):
5741         * event-unixoid.c (poll_fds_for_input):
5742         * events.c:
5743         * events.c (mark_event):
5744         * events.c (event_equal):
5745         * events.c (event_hash):
5746         * events.c (Fmake_event):
5747         * events.c (Fdeallocate_event):
5748         * events.c (event_chain_find_previous):
5749         * events.c (event_to_character):
5750         * events.c (format_event_object):
5751         * events.c (Fevent_type):
5752         * events.c (event_pixel_translation):
5753         * events.c (Fevent_properties):
5754         * extents.c (extent_in_region_p):
5755         * extents.c (print_extent):
5756         * extents.c (process_extents_for_insertion_mapper):
5757         * extents.c (report_extent_modification_mapper):
5758         * extents.c (glyph_layout_to_symbol):
5759         * faces.c (face_validate):
5760         * file-coding.c (eol_type_to_symbol):
5761         * file-coding.c (subsidiary_coding_system):
5762         * file-coding.c (Fcoding_system_type):
5763         * file-coding.c (Fcoding_system_property):
5764         * file-coding.c (mule_decode):
5765         * file-coding.c (mule_encode):
5766         * file-coding.c (encode_coding_ucs4):
5767         * file-coding.c (encode_coding_utf8):
5768         * file-coding.c (parse_iso2022_esc):
5769         * file-coding.c (encode_coding_iso2022):
5770         * fileio.c:
5771         * fns.c (concat):
5772         * fns.c (Fsubseq):
5773         * fns.c (mapcar1):
5774         * fns.c (Fbase64_encode_region):
5775         * fns.c (Fbase64_encode_string):
5776         * fns.c (Fbase64_decode_region):
5777         * fns.c (Fbase64_decode_string):
5778         * font-lock.c (find_context):
5779         * font-lock.c (context_to_symbol):
5780         * frame-gtk.c (gtk_set_frame_pointer):
5781         * frame-gtk.c (gtk_update_frame_external_traits):
5782         * frame-x.c (x_wm_mark_shell_size_user_specified):
5783         * frame-x.c (x_wm_mark_shell_position_user_specified):
5784         * frame-x.c (x_wm_set_shell_iconic_p):
5785         * frame-x.c (x_wm_set_cell_size):
5786         * frame-x.c (x_wm_set_variable_size):
5787         * frame-x.c (x_wm_store_class_hints):
5788         * frame-x.c (x_wm_maybe_store_wm_command):
5789         * frame-x.c (x_initialize_frame_size):
5790         * frame-x.c (x_update_frame_external_traits):
5791         * frame.c:
5792         * frame.c (delete_frame_internal):
5793         * frame.c (mouse_pixel_position_1):
5794         * frame.c (change_frame_size_1):
5795         * free-hook.c (check_free):
5796         * free-hook.c (check_realloc):
5797         * free-hook.c (note_block_input):
5798         * free-hook.c (log_gcpro):
5799         * gccache-gtk.c (gc_cache_lookup):
5800         * glyphs-eimage.c (tiff_memory_write):
5801         * glyphs-gtk.c (gtk_finalize_image_instance):
5802         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5803         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5804         * glyphs-gtk.c (gtk_xpm_instantiate):
5805         * glyphs-gtk.c (gtk_unmap_subwindow):
5806         * glyphs-gtk.c (gtk_map_subwindow):
5807         * glyphs-gtk.c (gtk_button_redisplay):
5808         * glyphs-msw.c:
5809         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5810         * glyphs-x.c (init_image_instance_from_xbm_inline):
5811         * glyphs-x.c (extract_xpm_color_names):
5812         * glyphs-x.c (x_xpm_instantiate):
5813         * glyphs.c (get_image_instantiator_governing_domain):
5814         * glyphs.c (print_image_instance):
5815         * glyphs.c (image_instance_equal):
5816         * glyphs.c (image_instance_hash):
5817         * glyphs.c (encode_image_instance_type):
5818         * glyphs.c (make_image_instance_1):
5819         * glyphs.c (inherit_instantiate):
5820         * glyphs.c (image_instantiate):
5821         * glyphs.c (allocate_glyph):
5822         * glyphs.c (Fglyph_type):
5823         * glyphs.c (redisplay_subwindow):
5824         * glyphs.c (display_table_entry):
5825         * gtk-glue.c (xemacs_list_to_gtklist):
5826         * gtk-glue.c (xemacs_gtklist_to_list):
5827         * gtk-glue.c (xemacs_list_to_array):
5828         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5829         * gutter.c (gutter_was_visible):
5830         * gutter.c (get_gutter_coords):
5831         * input-method-xlib.c (get_XIM_input):
5832         * insdel.c (bufpos_to_bytind_func):
5833         * insdel.c (bytind_to_bufpos_func):
5834         * insdel.c (move_gap):
5835         * intl.c (x_get_composed_input):
5836         * keymap.c (keymap_lookup_directly):
5837         * keymap.c (keymap_delete_inverse_internal):
5838         * keymap.c (ensure_meta_prefix_char_keymapp):
5839         * keymap.c (accessible_keymaps_mapper_1):
5840         * keymap.c (where_is_recursive_mapper):
5841         * lisp.h:
5842         * lisp.h (ABORT):
5843         * lread.c (read_atom):
5844         * lstream.c (Lstream_delete):
5845         * lstream.c (make_lisp_buffer_stream_1):
5846         * macros.c (pop_kbd_macro_event):
5847         * malloc.c (malloc):
5848         * malloc.c (free):
5849         * marker.c (bi_marker_position):
5850         * marker.c (set_bi_marker_position):
5851         * menubar-gtk.c (menu_descriptor_to_widget_1):
5852         * menubar-msw.c (prune_menubar):
5853         * menubar-x.c (set_frame_menubar):
5854         * mule-charset.c (get_unallocated_leading_byte):
5855         * mule-charset.h (CHAR_LEADING_BYTE):
5856         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5857         * nt.c (init_environment):
5858         * nt.c (generate_inode_val):
5859         * ntproc.c (delete_child):
5860         * ntproc.c (_sys_read_ahead):
5861         * ntproc.c (create_child):
5862         * objects.c (color_instantiate):
5863         * objects.c (font_instantiate):
5864         * objects.c (face_boolean_instantiate):
5865         * print.c (printing_major_badness):
5866         * process-nt.c (nt_send_process):
5867         * process-unix.c (unix_send_process):
5868         * process.c (get_process):
5869         * ralloc.c (obtain):
5870         * ralloc.c (relinquish):
5871         * ralloc.c (relocate_blocs):
5872         * ralloc.c (resize_bloc):
5873         * ralloc.c (r_alloc_free):
5874         * ralloc.c (r_re_alloc):
5875         * ralloc.c (r_alloc_thaw):
5876         * ralloc.c (init_ralloc):
5877         * ralloc.c (Free_Addr_Block):
5878         * ralloc.c (r_alloc):
5879         * redisplay-gtk.c (gtk_output_display_block):
5880         * redisplay-msw.c (mswindows_output_display_block):
5881         * redisplay-output.c (get_next_display_block):
5882         * redisplay-output.c (get_cursor_size_and_location):
5883         * redisplay-output.c (redisplay_output_layout):
5884         * redisplay-output.c (redisplay_clear_region):
5885         * redisplay-tty.c (tty_output_display_block):
5886         * redisplay-x.c (x_output_display_block):
5887         * redisplay.c (add_propagation_runes):
5888         * redisplay.c (add_glyph_rune):
5889         * redisplay.c (create_text_block):
5890         * redisplay.c (add_margin_runes):
5891         * redisplay.c (create_left_glyph_block):
5892         * redisplay.c (create_right_glyph_block):
5893         * redisplay.c (create_string_text_block):
5894         * redisplay.c (regenerate_window):
5895         * redisplay.c (REGEN_INC_FIND_START_END):
5896         * redisplay.c (redisplay_frame):
5897         * redisplay.c (point_in_line_start_cache):
5898         * regex.c:
5899         * regex.c (ABORT):
5900         * regex.c (re_compile_fastmap):
5901         * regex.c (re_match_2_internal):
5902         * regex.c (regerror):
5903         * scrollbar-gtk.c (gtk_scrollbar_loop):
5904         * scrollbar-gtk.c (scrollbar_cb):
5905         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
5906         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
5907         * scrollbar-x.c (x_update_scrollbar_instance_status):
5908         * scrollbar-x.c (x_scrollbar_loop):
5909         * scrollbar-x.c (x_update_frame_scrollbars):
5910         * search.c (search_command):
5911         * search.c (Fmatch_data):
5912         * select-x.c (motif_clipboard_cb):
5913         * signal.c (interrupt_signal):
5914         * specifier.c (specifier_add_spec):
5915         * specifier.c (specifier_instance_from_inst_list):
5916         * specifier.c (specifier_instance):
5917         * specifier.h:
5918         * specifier.h (struct specifier_methods):
5919         * strftime.c (add_num_time_t):
5920         * sunplay.c (init_device):
5921         * symbols.c (Fsetplist):
5922         * symbols.c (do_symval_forwarding):
5923         * symbols.c (store_symval_forwarding):
5924         * symbols.c (Fset):
5925         * symbols.c (Fbuilt_in_variable_type):
5926         * symbols.c (decode_magic_handler_type):
5927         * symbols.c (handler_type_from_function_symbol):
5928         * syntax.c (update_syntax_cache):
5929         * sysdep.c (init_baud_rate):
5930         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5931         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5932         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5933         * toolbar.c (get_toolbar_coords):
5934         * ui-gtk.c (build_gtk_boxed):
5935         * ui-gtk.c (describe_gtk_arg):
5936         * ui-gtk.c (gtk_type_to_lisp):
5937         * ui-gtk.c (lisp_to_gtk_type):
5938         * ui-gtk.c (lisp_to_gtk_ret_type):
5939         * ui-gtk.c (lisp_to_flag):
5940         * unexnt.c (read_in_bss):
5941         * unexnt.c (map_in_heap):
5942         * window.c (real_window):
5943         * window.c (window_display_lines):
5944         * window.c (window_display_buffer):
5945         * window.c (set_window_display_buffer):
5946         * window.c (window_modeline_height):
5947         * window.c (unshow_buffer):
5948         * window.c (window_loop):
5949         * window.c (Fget_lru_window):
5950         * window.c (Fsplit_window):
5951         * window.c (Fset_window_configuration):
5952         * window.c (saved_window_index):
5953         * xgccache.c (gc_cache_lookup):
5954         abort() -> ABORT().  Eliminate preprocessor games with abort()
5955         since it creates huge problems in VC7, solvable only by including
5956         massive amounts of files in every compile (and not worth it).
5957
5958         * sysdep.c:
5959         * sysproc.h:
5960         Inclusion of process.h does not need to be before lisp.h any more.
5961         Move later and remove comment about abort().
5962
5963 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
5964
5965         * regex.c (re_match_2_internal):
5966         Correctly initialize loop which clears uninitialized registers.
5967
5968 2005-01-28  Vin Shelton  <acs@xemacs.org>
5969
5970         * sheap.c (more_static_core): Applied Ben's version of the long
5971         string patch.
5972
5973 2005-01-24  Vin Shelton  <acs@xemacs.org>
5974
5975         * sheap.c (more_static_core): Reformatted printf string so
5976         gcc-3.3.3 will compile this on Cygwin.
5977
5978 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
5979
5980         * console.c (function_key_map): Reference `key-binding'.
5981
5982         * keymap.c (Vkey_translation_map): Improve docstring.
5983
5984 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
5985
5986         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
5987         * window.c (window_loop): [fix] Take into account
5988         `allow-deletion-of-last-visible-frame' variable.
5989         * window.c (replace-buffer-in-windows): Ditto.
5990
5991 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
5992
5993         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
5994
5995 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
5996
5997         * event-gtk.c: Recognise AltGr as a valid modifier.
5998
5999 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6000
6001         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6002
6003 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6004
6005         Fix backreference bug caught by test suite.
6006
6007         * regex.c (regex_compile):
6008         Make backref duplicate internal register.
6009
6010 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6011
6012         Documentation, code clarification, and warning suppression.
6013         
6014         * regex.c (regex_compile):
6015         Improve comments.
6016         (re_match_2_internal):
6017         Improve comments and avoid redundant braces.  [Most of the big hunk
6018         at l. 4710 is indentation; use diff -w to see the real changes.]
6019         (alt_match_null_string_p):
6020         (common_op_match_null_string_p):
6021         Avoid shadowing global on Mac OS X 10.4, at least.
6022
6023 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6024
6025         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6026         introduced with shy groups fix).  [Already applied, probably
6027         with the second "fix shy groups" patch of 2004-10-07.] 
6028
6029 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6030
6031         From Andrey Slusar <anrays@gmail.com>:
6032
6033         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6034
6035 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6036
6037         * Makefile (RECURSIVE_MAKE): Removed.
6038         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6039         handling parallel builds.
6040
6041 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6042
6043         * Makefile.in.in: Enable support for parallel builds.
6044
6045 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6046
6047         From Andrey Slusar <anrays@gmail.com>:
6048
6049         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6050         FreeBSD version is >= 199701 _and_ < 600006.
6051
6052 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6053
6054         * scrollbar.c (compute_scrollbar_instance_usage):
6055         Only call device method compute_scrollbar_instance_usage() if it
6056         is defined.
6057
6058 2004-12-05  Vin Shelton <acs@xemacs.org>
6059
6060         * XEmacs 21.4.16 is released
6061
6062 2004-12-04  Vin Shelton  <acs@xemacs.org>
6063
6064         * depend: Regenerated.
6065
6066 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6067
6068         * regex.c (re_match_2_internal): Map internal to external
6069         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6070         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6071
6072 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6073
6074         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6075         to fix a crash.  Also, check the buffer is live and it
6076         really exists in buffer_list.  If the buffer is not in the list,
6077         prepend it.
6078
6079 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6080
6081         Fix shy groups by implementing recording of all groups for
6082         repetition and backtracking.  Backport from 21.5.
6083         
6084         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6085         external_to_internal_register, external_to_internal_register_size,
6086         and update comments for re_nsub.
6087
6088         * regex.c (re_opcode_t): Update comments.
6089         (print_compiled_pattern): Ouput external_to_internal_register,
6090         external_to_internal_register_size, and re_ngroups for debugging.
6091         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6092         (regex_compile): Update header comment.
6093         Ensure that all groups are recorded so that repeat matches and
6094         backtracking work correctly.  Comment related warning for groups >
6095         255.
6096         (re_search_2): Construct map of API indexes (which count only
6097         nonshy groups) to internal register numbers, and keep it updated.
6098
6099 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6100
6101         * frame-gtk.c (gtk_make_frame_visible):
6102         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6103         show/hide.  This is what X uses and is prevents previously hidden
6104         widgets from suddenly reappearing.
6105         * gtk-xemacs.c (gtk_xemacs_paint):
6106         * gtk-xemacs.c (gtk_xemacs_draw):
6107         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6108         drawable.
6109         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6110         size and location changes so that they can be seen before the next
6111         idle event.  Without this rapid changes to scrollbar properties
6112         are not seen.
6113
6114 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6115
6116         * console-gtk.h:
6117         * console-gtk.h (struct gtk_frame):
6118         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6119           Add hash tables track tab_control callback data.
6120           Added #defines for GTK object data names.
6121           Declaration of gtk_widget_to_frame().
6122         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6123         * frame-gtk.c (gtk_widget_to_frame): New.
6124         * frame-gtk.c (gtk_create_widgets):
6125         * frame-gtk.c (allocate_gtk_frame_struct):
6126         * frame-gtk.c (gtk_mark_frame):
6127         Manage frame callbakc hash tables.
6128         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6129         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6130         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6131         of widget size.
6132         * glyphs-gtk.c (gtk_widget_query_geometry): New
6133         * glyphs-gtk.c (gtk_register_gui_item): New
6134         * glyphs-gtk.c (gtk_add_tab_item): New
6135         * glyphs-gtk.c (gtk_tab_control_callback): New
6136         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6137         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6138         Use correct list when loading item.
6139         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6140         Register new methods.
6141         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6142         default size, for widgets.
6143         * gui-x.c:  Improved comment.
6144         * menubar-gtk.c (__generic_button_callback): Use
6145         gtk_widget_to_frame instead of __get_channel.
6146         * scrollbar-gtk.c:
6147         * ui-gtk.c: Use symbolic names for GTK object data.
6148
6149 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6150
6151         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6152
6153 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6154
6155         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6156
6157 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6158
6159         * malloc.c (morecore): siz is a long because in some architectures
6160         (eg ia-64) an int cannot hold the address range.  Additional patch
6161         from the SuSe distribution.
6162
6163 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6164
6165         * emacs.c:
6166         * malloc.c: lim_data is a long because in some architectures
6167         (eg ia-64) an int cannot hold the address range.
6168         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6169         instead of ulimit() because ulimit() always returns -1.
6170
6171 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6172
6173         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6174
6175 2004-06-11  David Kastrup  <dak@gnu.org>
6176
6177         * search.c (match_limit): Don't flag an error if match-data
6178         exceeding the allocated search_regs.num_regs gets requested, just
6179         return Qnil.
6180
6181 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6182
6183         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6184         replace symbolic color entries with the real colors specified in
6185         xpm-color-symbols, before passing the XPM to gtk.
6186         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6187         instead of a GTK specific field, so that it is used in by generic
6188         code.
6189
6190 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6191
6192        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6193         coredump from deref of NULL ptr (ExtData)
6194
6195 2004-04-19  Jerry James  <james@xemacs.org>
6196
6197         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6198         VALBITS to compute the location of the sign bit.
6199         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6200         of VALBITS with EMACS_INT_MAX.
6201         * events.c (Fevent_timestamp): Ditto.
6202         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6203         compute the halfway point to timestamp wraparound.
6204         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6205         EMACS_INT_MIN instead of using VALBITS.
6206         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6207         incorrect number with VALBITS.
6208         * fns.c (Frandom): Correct number of integer bits in docstring.
6209         Use INT_VALBITS instead of VALBITS to compute the denominator.
6210         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6211         build random numbers.
6212
6213 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6214         * event-gtk.c:
6215         * event-gtk.c (gtk_event_to_emacs_event):
6216         * menubar-gtk.c:
6217         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6218         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6219         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6220         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6221         * menubar-gtk.c (__activate_menu):
6222         * menubar-gtk.c (convert_underscores):
6223         * menubar-gtk.c (remove_underscores):
6224         * menubar-gtk.c (menu_convert):
6225         * menubar-gtk.c (menu_descriptor_to_widget_1):
6226         * menubar-gtk.c (menu_descriptor_to_widget):
6227         * menubar-gtk.c (menu_can_reuse_widget):
6228         * menubar-gtk.c (menu_create_menubar):
6229         * menubar-gtk.c (gtk_popup_menu):
6230         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6231         Added support for Gtk menu bar and menu item mnemonics.
6232
6233 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6234
6235         * sysdll.c: (dll_function): Added support for finding symbols in
6236         Darwin shared libraries as well in Darwin bundles.
6237         * sysdll.c (image_for_address): New
6238         * sysdll.c (my_find_image): New
6239         * sysdll.c (search_linked_libs): New
6240
6241 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6242
6243         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6244         return to GTK requires a different API to marshalling data to use
6245         as GTK parameters.
6246         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6247
6248 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6249
6250         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6251
6252 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6253
6254         * glyphs.c (process_image_string_instantiator):
6255         (Fset_console_type_image_conversion_list):
6256         Stop GCC from warning about shadowing of `exp'.
6257
6258         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6259
6260 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6261
6262         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6263
6264 2004-02-03  Vin Shelton  <acs@xemacs.org>
6265
6266         * glyphs.c (image_instance_layout): Remove pointless assertion.
6267         * regex.c (regex_grow_registers): Return type is void.
6268
6269 2004-02-02  Vin Shelton <acs@xemacs.org>
6270
6271         * XEmacs 21.4.15 is released
6272
6273 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6274
6275         * device-x.c (x_error_handler): Don't call stderr_out
6276
6277 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6278
6279         * buffer.c (other-buffer): Clarify documentation of order of
6280         arguments for FSF Emacs.
6281
6282 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6283
6284         * window.c (Fdelete_window): Dirty the mirror structure _before_
6285         marking the window deleted.
6286
6287 2003-09-15  Jerry James  <james@xemacs.org>
6288
6289         * event-msw.c (debug_mswin_messages): Conditionally compile
6290         messages missing from the Cygwin headers.
6291
6292 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6293
6294         * data.c (eq_with_ebola_notice): Fix typo in comment.
6295         (Ftrue_list_p): Improve docstring.
6296
6297 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6298
6299         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6300
6301 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6302
6303         * search.c (trivial_regexp_p): Regexps containing "\{" are
6304         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6305         Stefan Monnier for suggesting a diagnosis.
6306
6307 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6308
6309         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6310
6311 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6312
6313         * search.c (Fsearch_forward):
6314         (Fsearch_backward):
6315         Document negative count.
6316
6317 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6318
6319         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6320
6321 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6322
6323         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6324
6325 2003-09-15  Vin Shelton  <acs@xemacs.org>
6326
6327         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6328         21.5.
6329
6330 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6331
6332         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6333         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6334         (re_match_2_internal): Use TRANSLATE instead of
6335         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6336         non-ASCII char case conversion.
6337
6338 2003-09-08  Mike Sperber  <mike@xemacs.org>
6339
6340         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6341         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6342
6343 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6344
6345        * .gdbinit (pobj): fix printing of symbol name.
6346
6347 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6348
6349         * frame-x.c (x_layout_widgets): When resizing is about to cause
6350         frame size slip, mark it for redisplay.
6351
6352 2003-08-18  Jerry James  <james@xemacs.org>
6353
6354         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6355
6356 2003-09-03  Vin Shelton <acs@xemacs.org>
6357
6358         * XEmacs 21.4.14 is released
6359
6360 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6361
6362         * config.h.in (REGEX_MALLOC): Make it configure'able.
6363
6364 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6365
6366         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6367         linking.
6368         * sysdll.c (dll_init):
6369         * sysdll.c (dll_open):
6370         * sysdll.c (dll_close):
6371         * sysdll.c (dll_function):
6372         * sysdll.c (dll_variable):
6373         * sysdll.c (dll_error):
6374         Add support for loading bundles using Darwin/MacOSX
6375         native API.
6376
6377 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6378
6379         * process.c (start-process-internal): Document coding systems.
6380
6381 2003-07-30  Jerry James  <james@xemacs.org>
6382
6383         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6384
6385 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6386
6387         * event-msw.c (mswindows_enqueue_mouse_button_event):
6388         * event-msw.c (mswindows_wnd_proc):
6389           enqueue button event when scrollwheel event isn't handled by 
6390           mswindows_handle_mousewheel_event, such as when the scrollbars
6391           are not showing.
6392
6393 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6394
6395         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6396
6397 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6398
6399         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6400
6401 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6402
6403         * regex.c (re_match_2_internal): Fix matching degenerate word
6404         boundaries.
6405
6406 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6407
6408         * XEmacs 21.4.13 is released
6409
6410 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6411
6412         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6413         * lisp.h (<inttypes.h>):
6414         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6415         the definition.
6416
6417 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6418
6419         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6420         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6421         Result: "temacs can only be run in -batch mode."
6422         Fix: Check xemacs executable candidate for directory-ness.
6423
6424 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6425
6426         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6427           they conflict with <sys/types.h>.
6428
6429 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6430
6431         * database.c: Berkeley DB wants __STDC__ to be defined.
6432
6433 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6434
6435         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6436
6437 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6438
6439         * process-unix.c (unix_send_process): Fix C++ compile error.
6440
6441 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6442
6443         * Added .dylib as an acceptable shared library file extension
6444         * to support MacOSX.
6445
6446 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6447
6448         * EmacsFrameP.h (EmacsFramePart):
6449         Kludge to allow compiling with Motif1, but linking with Motif2.
6450
6451 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6452
6453         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6454
6455
6456 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6457
6458         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6459
6460 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6461
6462         * sysdll.c: Included lisp.h to define needed alloca_array.
6463
6464 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6465
6466         Make XEmacs redisplay 10 times faster.
6467         If, that is, you're using a slow X connection and MoveOpaque.
6468         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6469         Use compress_motion = TRUE.
6470         * EmacsFrame.c (emacsFrameClassRec): 
6471         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6472         * EmacsManager.c (emacsManagerClassRec):
6473         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6474
6475 2003-01-30  Vin Shelton  <acs@xemacs.org>
6476
6477         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6478
6479 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6480
6481         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6482         Patch by Martin Buchholz.
6483
6484 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6485
6486         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6487         Thanks to icc for warning and Martin Buchholz for reporting.
6488
6489 2003-01-29  Vin Shelton <acs@xemacs.org>
6490
6491         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6492
6493         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6494         remember to multiply by the element size.
6495
6496 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6497
6498         * XEmacs 21.4.12 "Portable Code" is released.
6499
6500 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6501
6502         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6503         * s/cygwin.sc: new linker file.
6504
6505 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6506
6507         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6508
6509         * redisplay-x.c (x_output_string): Use X11-specified types.
6510         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6511         * emacs.c (__free_hook): Use typeof with Intel compiler.
6512         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6513
6514 2003-01-08  Andy Piper  <andy@xemacs.org>
6515
6516         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6517         reserve size during unexec().
6518
6519 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6520
6521         * process-unix.c (unix_create_process): Don't let outchannel block.
6522
6523 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6524
6525         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6526         Needed for IsBadReadPtr().
6527
6528 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6529
6530         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6531
6532 2002-12-14  Ben Wing  <ben@xemacs.org>
6533
6534         * callint.c: Declaration error.
6535         * dumper.c (pdump):
6536         * dumper.c (pdump_load): Warning fix.
6537         * process.c: GCPRO error.
6538         * glyphs.c (unmap_subwindow):
6539         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6540         * event-stream.c (maybe_kbd_translate): Wrong argument to
6541         character_to_event().
6542
6543         * alloc.c (garbage_collect_1):
6544         * emacs.c:
6545         * emacs.c (debug_can_access_memory):
6546         * emacs.c (fatal_error_signal):
6547         * emacs.c (mswindows_handle_hardware_exceptions):
6548         * emacs.c (main_1):
6549         * emacs.c (main):
6550         * emacs.c (assert_failed):
6551         * emacs.c (syms_of_emacs):
6552         * lisp.h:
6553         * print.c:
6554         * print.c (std_handle_out_va):
6555         * print.c (write_string_to_stdio_stream):
6556         * print.c (write_fmt_string):
6557         * print.c (printing_badness):
6558         * print.c (printing_major_badness):
6559         * print.c (print_internal):
6560         * print.c (debug_print_no_newline):
6561         * print.c (debug_backtrace):
6562         Be more defensive in handling bad values when printing.  Add code
6563         from trunk involving inhibit_non_essential_printing_operations.
6564         When going down or in debug_print(), don't do external conversion
6565         and such and try really, really hard when printing to avoid core
6566         dumping.  Add force-debugging-signal, debug_break().
6567
6568 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6569
6570         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6571         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6572
6573 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6574
6575         * database.c: Fix open_database. Berkeley DB API has changed in
6576         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6577
6578 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6579
6580         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6581
6582 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6583
6584         * event-Xt.c (Xt_timeout):
6585         (Xt_timeout_callback):
6586         (emacs_Xt_add_timeout):
6587         (emacs_Xt_remove_timeout):
6588         (Xt_timeout_to_emacs_event):
6589         Turn completed_timeouts from a stack into a queue.  Fixes
6590         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6591
6592 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6593
6594         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6595         * emacs.c (main): Assert that mmap'd allocation is disabled.
6596
6597 2002-10-14  Andy Piper  <andy@xemacs.org>
6598
6599         * glyphs-widget.c (layout_query_geometry): add in fiddle
6600         factor. Include border text in width layout calculation.
6601         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6602
6603 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6604
6605         * XEmacs 21.4.10 "Military Intelligence" is released.
6606
6607 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6608
6609         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6610         using the NAS private array SoundFileInfo that no longer exists in
6611         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6612         and earlier.  This is broken for some versions between 1.5a and
6613         1.5f.
6614
6615 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6616
6617         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6618
6619         * emacs.c (shut_down_emacs): Improve crash message.
6620
6621 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6622
6623         * file-coding.c (determine_real_coding_system): Check for coding
6624         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6625         shebangs and Python PEP 263.
6626
6627 2002-10-08  Andy Piper  <andy@xemacs.org>
6628
6629         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6630         if static sizes haven't been set.
6631
6632 2002-08-30  Mike Alexander  <mta@arbortext.com>
6633
6634         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6635         to close a socket.
6636
6637 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6638
6639         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6640
6641 2002-09-20  Mike Sperber <mike@xemacs.org>
6642
6643         (This partially gets back my patch from 2002-07-20 without the
6644         bug.)
6645         * callproc.c (child_setup): Remove Ben's comment noting confusion
6646         over the file descriptors >= 3: close_process_descs() doesn't
6647         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6648         * process-unix.c (unix_create_process): Call
6649         begin_dont_check_for_quit to inhibit unwanted interaction (and
6650         thus breaking of X event synchronicity) in the child.
6651
6652 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6653
6654         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6655         widget.
6656
6657 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6658
6659         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6660         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6661         the xemacs process did not exit, but looped infinitely here.  This
6662         fixes that problem.
6663
6664 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6665
6666         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6667         (find_context): Improve comments.
6668
6669         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6670         (re_match_2): An XCHAR_TABLE operation was missing.
6671
6672         Many of the following changes were inspired by Andy Piper's (now
6673         obsolete) patch to make syntax-table text property lookup optional.
6674
6675         [Documentation]
6676
6677         * syntax.h (top level): Document semantics of syntax flags.
6678         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6679         * syntax.c, syntax.h (top level): Document syntax cache better in
6680         comments.
6681
6682         [Instrument syntax caching (temporary change)]
6683
6684         * syntax.h (enum syntax_cache_statistics_functions, struct
6685         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6686         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6687         * syntax.c (scan_words, Fforward_comment, scan_lists,
6688         Fbackward_prefix_characters):
6689         * font-lock.c (find_context):
6690         Use them to instrument syntax caching. 
6691         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6692         syntax_cache_statistics_function_names): New type and variables.
6693         * syntax.c (update_syntax_cache): Update and report statistics.
6694
6695         [Major syntax cache optimizations]
6696
6697         syntax.c (lookup_syntax_properties): Default off.
6698
6699         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6700         * syntax.c (update_syntax_cache):
6701         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6702
6703         [Minor syntax cache optimizations and code clarifications]
6704
6705         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6706         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6707         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6708         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6709         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6710         (Code clarification.)
6711
6712         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6713         scan_lists): Compute code from syncode, use Boolean macros instead
6714         of redundant masking operations.  (Code clarification; any decent
6715         compiler can do this optimization.)
6716
6717         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6718         for clarity.
6719
6720         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6721         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6722         use F*_single_property_change instead of F*_extent_change.
6723         Currently F*_single_property_change is _much_ less efficient.
6724
6725         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6726         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6727         syntax_cache.object properly, don't leave Qt or Qnil.
6728         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6729         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6730         tests for Qt or Qnil.
6731
6732 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6733
6734         * redisplay.c (point_in_line_start_cache): 
6735         * extents.c (print_extent_1):
6736         Fix warnings.
6737
6738         * extents.c (Fset_extent_property): Document `syntax-table' property.
6739
6740         * extents.h (Fnext_single_property_change): EXFUN it.
6741
6742 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6743
6744         * search.c (clear_unused_search_regs): New static function.
6745         (search_buffer): 
6746         (simple_search): 
6747         (boyer_moore):
6748         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6749         Minor clarifications in comments.
6750
6751         * regex.c (re_match_2_internal): Ensure no stale submatches.
6752
6753 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6754
6755         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6756
6757 2002-08-29  Jerry James  <james@xemacs.org>
6758
6759         * lisp.h: structrures -> structures.
6760
6761 2002-06-03  Andy Piper  <andy@xemacs.org>
6762
6763         * frame.c (frame_conversion_internal): add conversion appropriate
6764         for setting frame dimensions in pixels.
6765
6766         * console.h (struct console_methods): add device-specific widget
6767         layout functions.
6768
6769         * emacs.c (main_1): initialize glyph vars.
6770
6771         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6772         (handle_focus_event_2): new function. Allow focus to
6773         be set to a particular window and widget.
6774         (enqueue_focus_event): new function. Create a
6775         synthetic focus event.
6776         (emacs_Xt_handle_magic_event): call
6777         handle_focus_event_2.
6778
6779         * frame.c (Fset_frame_pixel_height): new function. Allow
6780         pixel-based sizing. Does the right thing on character-oriented
6781         displays.
6782         (Fset_frame_pixel_width): ditto.
6783         (Fset_frame_pixel_size): ditto.
6784         (syms_of_frame): declare.
6785
6786         * general-slots.h: add :vertically-justify and
6787         :horizontally-justify.
6788
6789         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6790         (mswindows_widget_border_width): new function.
6791         (mswindows_combo_box_instantiate): set border widths.
6792         (console_type_create_glyphs_mswindows): declare.
6793
6794         * glyphs-widget.c:
6795         (check_valid_justification): allow vertical and horizontal
6796         justification.
6797         (widget_border_width): new function. Call device methods.
6798         (widget_instance_border_width): ditto.
6799         (logical_unit_height): new function. Determine the height of a
6800         logical-unit. Logical units are intended to provide grid-like
6801         layout for subcontrols in a layout. If the layout is
6802         :vertically-justify top then subcontrols will be positioned on
6803         logical-unit boundaries, thus allowing adjacent subcontrols to
6804         line up.
6805         (widget_logical_unit_height): ditto for widgets.
6806         (redisplay_widget): misc cleanup.
6807         (widget_spacing): new function. Call device specific
6808         methods. Intended to be the default gap between adjacent widgets.
6809         (widget_query_geometry): use new spacing functions to determine
6810         appropriate geometry.
6811         (initialize_widget_image_instance): initialize horizontal and
6812         vertical justification.
6813         (widget_instantiate): use logica-units where appropriate for
6814         sizing large widgets.
6815         (button_query_geometry): use widget_instance_border_width.
6816         (tree_view_query_geometry): ditto.
6817         (tab_control_query_geometry): ditto.
6818         (edit_field_query_geometry): new function.
6819         (layout_update): pick up :justify, :horizontally-justify and
6820         :vertically-justify none of which worked previously. :justify is
6821         used as a fallback for both horizontal and vertical justification.
6822         (layout_query_geometry): use logical units to size appropriately.
6823         (layout_layout): ditto.
6824         (Fwidget_logical_to_character_width): new function. Allow users to
6825         convert from logical units to characters so that frame sizes can
6826         be set appropriately.
6827         (Fwidget_logical_to_character_height): ditto.
6828         (syms_of_glyphs_widget): declare.
6829         (image_instantiator_edit_fields): add edit_field_query_geometry.
6830         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6831         :horizontally-justify.
6832         (specifier_vars_of_glyphs_widget): new function. Declare
6833         Vwidget_border_width which is not yet used.
6834
6835         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6836         (x_widget_border_width): new function.
6837         (x_widget_instantiate): create a sensible name for widgets.
6838         (console_type_create_glyphs_x): declare x_widget_border_width.
6839
6840         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6841         (struct Lisp_Image_Instance): add :vertically-justify and
6842         :horizontally-justify.
6843         (LAYOUT_JUSTIFY_TOP): new.
6844         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6845         (ROUND_UP): new macro. Round argument up to next integral
6846         interval.
6847
6848         * redisplay-output.c (redisplay_output_layout): misc formatting.
6849
6850         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6851
6852 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6853
6854         * XEmacs 21.4.9 "Informed Management" is released.
6855
6856 2002-08-19  Andy Piper  <andy@xemacs.org>
6857
6858         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6859         win32 format.
6860
6861         * realpath.c (xrealpath): normalize drive spec also so that dir
6862         sep chars are not mixed on cygwin.
6863
6864 2002-08-06  Jerry James  <james@xemacs.org>
6865
6866         * window.c (Fsplit_window): Count only half of the divider width
6867         against the left window when splitting horizontally. 
6868
6869 2002-06-24  Andy Piper  <andy@xemacs.org>
6870
6871         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6872         toolbar was cleared.
6873
6874         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6875         function. Split out from mswindows_output_frame_toolbars.
6876         (mswindows_output_frame_toolbars): move clear pieces to
6877         mswindows_output_frame_toolbars.
6878
6879         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6880         out from gtk_output_frame_toolbars.
6881         (gtk_output_frame_toolbars): move clear pieces to
6882         gtk_clear_frame_toolbars.
6883
6884         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6885         the frame is cleared. How this ever worked before is a mystery.
6886         (x_output_frame_toolbars): Only output toolbars.
6887         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6888
6889         * gutter.c (update_gutter_geometry):
6890         Mark frame layout changed.
6891         (update_frame_gutter_geometry, update_frame_gutters):
6892         Respect frame_layout_changed.
6893
6894         * console.h (struct console_methods): add
6895         clear_frame_toolbars_method.
6896
6897         * redisplay.c (redisplay_frame): call
6898         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6899
6900         * toolbar.h: declare update_frame_toolbars_geometry.
6901
6902         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6903         out from update_frame_toolbars.  Call clear_frame_toolbars.
6904         (update_frame_toolbars): only output, do not change geometry.
6905
6906         * redisplay.c: add frame_layout_changed.
6907
6908         * redisplay.h: add frame_layout_changed.
6909         (CLASS_RESET_CHANGED_FLAGS): set it.
6910         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6911         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6912         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6913
6914         * device.h (struct device): add frame_layout_changed.
6915         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6916
6917         * frame.h (struct frame): add frame_layout_changed.
6918         (MARK_FRAME_LAYOUT_CHANGED): new.
6919
6920 2002-06-30  Mike Alexander  <mta@arbortext.com>
6921
6922         * event-msw.c (mswindows_need_event): Don't wait for a new message
6923         if the queue is not empty.  Suggested by Paul Moore.
6924
6925 2002-06-12  Andy Piper  <andy@xemacs.org>
6926
6927         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6928         for printing on accurately.
6929
6930 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6931
6932         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6933         WM_ACTIVATE message. Make sure that the frame is visible if the
6934         window is visible. This seemss to fix the problem where XEmacs
6935         appears to freeze after switching desktops with certain virtual
6936         window managers.
6937         (debug_output_mswin_message): Added code to output message
6938         parameters for WM_WINDOWPOSCHANGED, 
6939         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6940
6941 2002-05-25  Andy Piper  <andy@xemacs.org>
6942
6943         * select-x.c (vars_of_select_x): Fix docstring of
6944         x-selection-strict-motif-ownership
6945
6946 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6947
6948         * keymap.c (get_keymap):
6949         Add comment about do_autoload GCPROs own args.
6950
6951 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6952
6953         * bytecode.c (execute_optimized_program): check_opcode ifdef
6954         ERROR_CHECK_BYTE_CODE.
6955
6956 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6957
6958         Thanks to Ben Wing and Michael Sperber.
6959
6960         * eval.c (Fcommand_execute):
6961         (Feval):
6962         (Ffuncall):
6963         (Fmacroexpand_internal):
6964         (function_argcount):
6965         callint.c (Fcall_interactively):
6966         Add comment about do_autoload GCPROs own args.
6967
6968         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6969
6970         * eval.c (Ffuncall): Extra braces to placate GCC.
6971
6972 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6973
6974         * backtrace.h (grow_specpdl):
6975         (SPECPDL_RESERVE):
6976         * EmacsFrame.c (EmacsFrameSetValues):
6977         * eval.c (grow_specpdl):
6978         * ExternalShell.c (hack_event_masks_1):
6979         * glyphs-x.c (convert_EImage_to_XImage): 
6980         (x_finalize_image_instance):
6981         * ralloc.c (page_size):
6982         (r_alloc_sbrk):
6983         * xgccache.c (gc_cache_hash):
6984         Fix unsigned comparison warnings.
6985
6986 2002-07-29  Jerry James  <james@xemacs.org>
6987
6988         * lread.c (locate_file): Any nonnegative return value indicates
6989         success if MODE is nonnegative.
6990
6991 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6992
6993         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6994         argument. 
6995
6996 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6997
6998         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6999
7000         * dumper.c (pdump_get_indirect_count):
7001         (pdump_scan_by_alignment):
7002         (pdump_dump_root_struct_ptrs):
7003         (pdump_dump_rtables):
7004         (pdump_dump_root_objects):
7005         (pdump):
7006         * nas.c (WaveOpenDataForReading):
7007         * fns.c (print_bit_vector):
7008         * font-lock.c (SINGLE_SYNTAX_STYLE):
7009         * glyphs.c (check_for_ignored_expose):
7010         (find_matching_subwindow):
7011         * glyphs-eimage.c:
7012         * imgproc.c (get_histogram):
7013         * redisplay.c (point_in_line_start_cache):
7014         * redisplay-output.c (redisplay_unmap_subwindows):
7015         * symbols.c (defsymbol_massage_name_1):
7016         (defkeyword_massage_name):
7017         (deferror_massage_name_and_message):
7018         * redisplay-x.c (x_output_string): 
7019         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7020         * frame.h (struct frame):
7021         * filelock.c (current_lock_owner):
7022         * doprnt.c (emacs_doprnt_1):
7023         * lisp.h (struct Lisp_Bit_Vector):
7024         (DO_REALLOC):
7025         Fix warnings.
7026
7027 2002-02-13  Ben Wing  <ben@xemacs.org>
7028
7029         * event-stream.c (reset_key_echo):
7030         * event-stream.c (reset_this_command_keys):
7031         * event-stream.c (execute_command_event):
7032         If console is dead as a result of C-x 5 0, then post-command stuff
7033         needs to be careful and do only non-console-specific stuff.
7034
7035 2002-07-01  Mike Sperber <mike@xemacs.org>
7036
7037         * process-unix.c (unix_send_process): Mark coding_outstream as
7038         non-open upon SIGPIPE.
7039
7040         * event-stream.c (Fnext_event): Reorder switch cases to something
7041         that makes sense.
7042
7043 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7044
7045         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7046         Don't bogusly reinitialize ascii_character property.
7047
7048 2002-07-08  Mike Sperber <mike@xemacs.org>
7049
7050         * process.c (Fstart_process_internal): Do error checking before we
7051         fork off the child, so the child can't muck with the state of the
7052         parent.
7053
7054 2002-07-08  Mike Sperber <mike@xemacs.org>
7055
7056         * ralloc.c (init_ralloc): Allocate properly for pdump.
7057
7058 2002-06-12  Andy Piper  <andy@xemacs.org>
7059
7060         * glyphs.c (query_string_geometry): check the string.
7061
7062         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7063         widget names.
7064
7065 2002-06-17  Jerry James  <james@xemacs.org>
7066
7067         * sysdll.c: Remove RTLD_GLOBAL initialization.
7068         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7069
7070 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7071
7072         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7073
7074 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7075
7076         * sysdep.c (sys_rename): Make sys_rename work for the case where
7077         Windows rename sets errno to EACCES if target file exists.
7078
7079 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7080
7081         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7082         Fix detection of metric units to work on Win95
7083
7084 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7085
7086         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7087
7088 2002-04-25  Andy Piper  <andy@xemacs.org>
7089
7090         * redisplay.c (create_text_block): Remove extra comment trailer.
7091
7092 2002-04-24  Andy Piper  <andy@xemacs.org>
7093
7094         * redisplay.c (create_text_block): Don't actually add propagation
7095         data if the line ends after we have added a glyph.
7096
7097 2002-04-22  Andy Piper  <andy@xemacs.org>
7098
7099         * extents.c (extent_fragment_update): check for glyphs we have
7100         previously displayed.
7101         * extents.c (print_extent_1): warning removal.
7102         * extents.h: change prototype.
7103         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7104         widths correctly for wide glyphs.
7105         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7106         * redisplay.c (prop_type): add PROP_GLYPH.
7107         * redisplay.c (struct prop_block): add glyph type
7108         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7109         to the propagation data.
7110         * redisplay.c (create_text_block): if there is a glyph in the
7111         propagation data use it to salt extent_fragment_update.
7112         * redisplay.c (create_string_text_block): ditto.
7113
7114 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7115
7116         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7117         * redisplay-output.c (compare_runes): Compare them.
7118         * redisplay.c: Update copyright date.
7119         * redisplay.c (pos_data): Add need_baseline_computation field.
7120         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7121         need_baseline_computation; zero yoffset. Set max_pixmap_height
7122         for all pixmaps, not just automatically positioned ones.
7123         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7124         * redisplay.c (calculate_baseline): New, compute textual baseline.
7125         * redisplay.c (add_glyph_rune): Call them.
7126         * redisplay.c (create_text_block): Likewise.
7127         * redisplay.c (create_overlay_glyph_block): Likewise.
7128         * redisplay.c (add_margin_runes): Likewise.
7129         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7130
7131         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7132         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7133         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7134         * redisplay-msw.c (mswindows_output_string): Likewise.
7135         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7136         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7137         * redisplay-x.c (x_output_display_block): Likewise.
7138
7139 2002-03-28  Ben Wing  <ben@xemacs.org>
7140
7141         * redisplay.c: Fixed bug in redisplay
7142         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7143         and down of the lines, since they're bigger than the line
7144         size. (It was seen most obviously when there's a horizontal scroll
7145         bar, e.g. do C-h a glyph or something like that.) The problem was
7146         that the glyph-contrib-p setting on glyphs was ignored even if it
7147         was set properly, which it wasn't until now.
7148
7149 2002-04-24  Andy Piper  <andy@xemacs.org>
7150
7151         * lisp.h (Dynarr_end): Fix definition.
7152
7153 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7154
7155         * redisplay.c (mark_redisplay): Remove call to
7156         update_frame_window_mirror.
7157
7158 2001-11-15  Andy Piper  <andy@xemacs.org>
7159
7160         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7161         cygwin (again).
7162
7163 2002-02-13  Andy Piper  <andy@xemacs.org>
7164
7165         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7166         we did in fact enqueue the XM_MAPFRAME event.
7167
7168 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7169
7170         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7171         to fix problem switching between virtual desktops under virtuawin
7172         virtual window manager.
7173
7174 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7175
7176         * event-msw.c: Typo fix.
7177         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7178         magic XM_MAPFRAME event has been sent.
7179
7180 2001-11-23  Andy Piper  <andy@xemacs.org>
7181
7182         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7183
7184 2001-11-21  Andy Piper  <andy@xemacs.org>
7185
7186         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7187         mouse events outside the frame.
7188
7189 2002-03-20  Andy Piper  <andy@xemacs.org>
7190
7191         * menubar-msw.c (mswindows_popup_menu): warning removal.
7192         * dialog-msw.c (dialog_popped_down): ditto.
7193
7194 2001-12-11  Andy Piper  <andy@xemacs.org>
7195
7196         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7197         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7198         popup_up_p.
7199         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7200         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7201         * menubar-msw.c (mswindows_popup_menu): ditto.
7202
7203 2001-10-29  Andy Piper  <andy@xemacs.org>
7204
7205         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7206         cancels.
7207
7208 2002-01-03  Andy Piper  <andy@xemacs.org>
7209
7210         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7211         letters.
7212         (xrealpath): ditto.
7213
7214 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7215
7216         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7217         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7218         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7219         Detect and handle case where machine is set up for metric units
7220
7221 2002-04-02  Andy Piper  <andy@xemacs.org>
7222
7223         * dired-msw.c (mswindows_get_files): 
7224         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7225         completely handled by XEmacs. Suggested by Thomas Vogler
7226         <mail@thomas-vogler.de>.
7227
7228 2001-11-14  Andy Piper  <andy@xemacs.org>
7229
7230         * nt.c (REG_ROOT): change registry key to XEmacs.
7231
7232 2002-04-27  Andy Piper  <andy@xemacs.org>
7233
7234         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7235
7236 2002-04-26  Andy Piper  <andy@xemacs.org>
7237
7238         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7239         behavior.
7240
7241 2002-03-14  Mike Alexander  <mta@arbortext.com>
7242
7243         * event-msw.c (mswindows_unwait_process): New, remove process from
7244         wait list
7245         * process-nt.c (nt_finalize_process_data): Call
7246         mswindows_unwait_process
7247         * console-msw.h: Declare mswindows_unwait_process
7248
7249 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * editfns.c (Fdecode_time):
7252         (Fformat_time_string):
7253         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7254         (make_time): Warning elimination (change arg name).
7255
7256 2001-11-24  Andy Piper  <andy@xemacs.org>
7257
7258         * window.c (Fsplit_window): Doc return type.
7259
7260 2002-04-01  Andy Piper  <andy@xemacs.org>
7261
7262         * emacs.c (Fkill_emacs): Only output message box in interactive
7263         mode.
7264
7265 2002-04-26  Andy Piper  <andy@xemacs.org>
7266  
7267         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7268         cygwin.
7269
7270 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7271
7272         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7273         bit platform.
7274
7275 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7276
7277         * XEmacs 21.4.8 "Honest Recruiter" is released.
7278
7279 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7280
7281         Supersedes 2002-04-17 patch.
7282
7283         * process.h (PROCESS_LIVE_P): Use the process status as
7284         evidence of health, not the state of the input stream.
7285         (PROCESS_READABLE_P): Say if the process is readable
7286         from. (It may be dead nonetheless.)
7287         (CHECK_READABLE_PROCESS): Test for that condition.
7288
7289         * process.c (create_process): Use PROCESS_READABLE_P.
7290         (read_process_output, set_process_filter): Likewise.
7291
7292         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7293         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7294
7295         This code is #if 0'd, this is not the time to add new functions:
7296
7297         * process.c (Fprocess_readable_p): Report readability status.
7298         * process.c (Qprocess_readable_p): New, associated symbol...
7299         * process.c (syms_of_process): ... initialize it.
7300
7301 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7302
7303         * XEmacs 21.4.7 "Economic Science" is released.
7304
7305 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7306
7307         * process.h (PROCESS_LIVE_P): Use the process status as
7308         evidence of health, not the state of the input stream.
7309
7310 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7311
7312         * sysdep.c (sys_siglist): change "signum" to "signal"
7313
7314 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7315
7316         * s/darwin.h: New file.
7317         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7318         
7319 2002-04-23  Andreas Jaeger  <aj@suse.de>
7320
7321         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7322         which use lib64 for 64-bit libs.
7323         (START_FILES): Likewise.
7324
7325 2002-02-11  Mike Sperber  <mike@xemacs.org>
7326
7327         * device-x.c: 
7328         (x_IO_error_handler):
7329         (x_init_device): Temporarily keep device in static variable
7330         `device_being_initialized' so we can recover gracefully from
7331         internal XOpenDevice failure.  (XOpenDevice is documented to
7332         return NULL on failure, but sometimes calls the IO error handler
7333         instead.)
7334
7335 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7336
7337         * dired.c (Ffile_name_all_completions): Change documentation --
7338         remove reference to completion-ignored-extensions.
7339         * dired.c (vars_of_dired): Change documentation for
7340         completion-ignored-extensions -- remove reference to
7341         file-name-all-completions.
7342
7343 2002-03-06  Jerry James  <james@xemacs.org>
7344
7345         * emodules.c (emodules_load): Fix multiple loading of same module.
7346
7347 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7348         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7349         RTLD_LAZY to avoid incorrect symbol binding when using nested
7350         shared libraries on Solaris.
7351
7352 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7353
7354         * fileio.c (Ffind_file_name_handler): Improve docstring.
7355
7356 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7357
7358         * fns.c (Fmapconcat): Improve docstring.
7359
7360 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7361
7362         * device-gtk.c: Add prototype for
7363         emacs_gtk_selection_clear_event_handle.
7364         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7365         selection.  Setup signal handler for "selection_clear_event"
7366         (emacs_gtk_selection_clear_event_handle).
7367
7368         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7369         other applications owning the clipboard (based on
7370         x_handle_selection_clear).
7371
7372 2001-12-23  William M. Perry  <wmperry@gnu.org>
7373
7374         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7375         
7376 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7377
7378         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7379
7380 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7381
7382         * XEmacs 21.4.6 "Common Lisp" is released.
7383
7384 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7385
7386         * search.c (Freplace_match): Add missing sub-expression functionality.
7387
7388         * buffer.c (decode_buffer): Add a check for pointer type to
7389         decode_buffer, before gcc's CSE optimization reorders a
7390         dereference in front of the allow_string test.
7391
7392 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7393
7394         * window.c (window_loop): Fix bug that sometimes prevented
7395         window_loop() from iterating across multiple devices.  Also, at
7396         Ben's request, changed infloop-detecting code to abort() instead
7397         of silently terminating window_loop().
7398
7399 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7400
7401         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7402         * editfns.c (make_time): New function.
7403         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7404         * lisp.h (make_time): Prototype and comment it.
7405         * dired.c (wasteful_word_to_lisp): Deprecate.
7406         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7407
7408 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7409
7410         * fileio.c (auto_save_1): Use current coding system, not
7411         escape-quoted.
7412
7413 2001-11-13  Ben Wing  <ben@xemacs.org>
7414
7415         * window.c:
7416         * window.c (window_truncation_on):
7417         * window.c (syms_of_window):
7418         truncate-partial-width-windows should respect the buffer being
7419         displayed, like other redisplay vars.
7420
7421 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7422
7423         * event-stream.c (Fread_key_sequence): save current buffer.
7424
7425 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7426
7427         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7428
7429 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7430
7431         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7432
7433 2001-10-26  Mike Alexander  <mta@arbortext.com>
7434
7435         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7436
7437 2001-10-25  Andy Piper  <andy@xemacs.org>
7438
7439         * ChangeLog:
7440         * dialog-msw.c (handle_directory_proc): new function.
7441          (handle_directory_dialog_box): new fucntion.
7442          (handle_file_dialog_box): use new directory dialog support.
7443          (mswindows_make_dialog_box_internal): ditto.
7444         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7445         handling.
7446         (mswindows_find_frame): make global.
7447         * fileio.c (Fexpand_file_name): build fix.
7448         * general-slots.h: add Qdirectory.
7449         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7450         handling.
7451         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7452         cygwin not leaving win32 paths unchanged.
7453         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7454         cygwin runtime to do path conversion.
7455         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7456         (syms_of_win32): add new function.
7457         * window.c (window_loop): build fix.
7458
7459 2001-10-15  Andy Piper  <andy@xemacs.org>
7460
7461         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7462
7463 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7464
7465         * XEmacs 21.4.5 "Civil Service" is released.
7466
7467 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7468
7469         * glyphs-x.c: Force buffer-tab highlight update when moving the
7470         buffer, avoiding an ugly black border, used for keyboard focus
7471         indication, on a widget that can never have keyboard focus, the
7472         buffer tab.
7473
7474 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7475
7476         * process-unix.c (unix_open_multicast_group): Remove too much
7477         conversion between host and network byte order.
7478
7479 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7480
7481         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7482         before replacing them.
7483
7484         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7485         operation.
7486
7487         * src/window.c (undedicate_windows): Use it.
7488         * src/window.h: Add prototype.
7489
7490 2001-09-17  Ben Wing  <ben@xemacs.org>
7491
7492         * fileio.c (normalize_filename):
7493         * fileio.c (Fexpand_file_name):
7494         Fix various C++ compile errors in Andy's recent code.
7495         
7496         * callint.c (Fcall_interactively):
7497         * editfns.c (Ftemp_directory):
7498         * editfns.c (Fuser_full_name):
7499         * emacs.c (argmatch):
7500         * lread.c (locate_file_map_suffixes):
7501         * redisplay-x.c (x_ring_bell):
7502         Fix sign-compare warnings.
7503         
7504 2001-09-08  Andy Piper  <andy@xemacs.org>
7505
7506         * fileio.c (normalize_filename): copied from nt.c
7507         * (Ffile_name_directory): enable win32 paths under cygwin.
7508         * (Ffile_name_nondirectory): ditto.
7509         * (directory_file_name): ditto.
7510         * (Fexpand_file_name): ditto.
7511         * (Ffile_truename): ditto.
7512         * (Fsubstitute_in_file_name): ditto.
7513         * (Ffile_name_absolute_p): ditto.
7514         * (Ffile_readable_p): ditto.
7515
7516 2001-09-08  Andy Piper  <andy@xemacs.org>
7517
7518         * device-msw.c (mswindows_finish_init_device): remove dde
7519         initialization.
7520         * device-msw.c (mswindows_init_dde): factor out from
7521         mswindows_finish_init_device()
7522         * device-msw.c (init_mswindows_very_early): new function
7523         initialize but don't enable dde.
7524         * emacs.c (main_1): call init_mswindows_very_early.
7525         * event-msw.c:
7526         * event-msw.c (mswindows_dde_callback): only execute when we are
7527         ready.
7528         * symsinit.h: declare init_mswindows_very_early.
7529
7530 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7531
7532         [sjt: This has been in 21.5 for months with no complaints.]
7533
7534         * console.h (struct console_methods): Added flags member.
7535         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7536         (CONMETH_IMPL_FLAG):
7537         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7538         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7539
7540         * device.c (window_system_pixelated_geometry): Use the above macros.
7541
7542         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7543         implememntation flag.
7544         * device.h (DEVICE_DISPLAY_P): Use it.
7545
7546         * frame.c (delete_frame_internal): Use the above macro.
7547
7548         * redisplay.c (redisplay_device): Use it.
7549         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7550         (redisplay_frame): Ditto.
7551
7552         * device-msw.c (mswindows_device_implementation_flags): Removed.
7553         (msprinter_device_implementation_flags): Removed.
7554         (console_type_create_device_mswindows): Removed references to
7555         implementation_flags methods, set implementation flags here.
7556         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7557
7558         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7559         (console_type_create_device_gtk): Removed method declaration.
7560         Added commented out statement which semantically matches the
7561         commented out statement in the above removed method.
7562
7563 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7564
7565         The attached patch fixes a few warnings. 
7566
7567         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7568         * src/frame-gtk.c: guard against GNOME calls in GTK only
7569         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7570         * src/select-gtk.c: prototype lisp_to_time
7571
7572 2001-06-08  Ben Wing  <ben@xemacs.org>
7573
7574         ------ gc-in-window-procedure fixes ------
7575         
7576         * alloc.c:
7577         * alloc.c (struct post_gc_action):
7578         * alloc.c (register_post_gc_action):
7579         * alloc.c (run_post_gc_actions):
7580         * alloc.c (garbage_collect_1):
7581         Create "post-gc actions", to avoid those dreaded "GC during window
7582         procedure" problems.
7583
7584         * event-msw.c:
7585         Abort, clean and simple, when GC in window procedure.  We want
7586         to flush these puppies out.
7587
7588         * glyphs-msw.c:
7589         * glyphs-msw.c (finalize_destroy_window):
7590         * glyphs-msw.c (mswindows_finalize_image_instance):
7591         Use a post-gc action when destroying subwindows.
7592
7593         * lisp.h:
7594         Declare register_post_gc_action().
7595
7596         * scrollbar-msw.c:
7597         * scrollbar-msw.c (unshow_that_mofo):
7598         Use a post-gc action when unshowing scrollbar windows, if in gc.
7599
7600         * redisplay.c (mark_redisplay):
7601         Add comment about the utter evilness of what's going down here.
7602
7603         ------ cygwin setitimer fixes ------
7604         
7605         * Makefile.in.in (sheap_objs):
7606         * Makefile.in.in (profile_objs):
7607         * Makefile.in.in (objs):
7608         Compile profile.c only when HAVE_SETITIMER.
7609         
7610         * nt.c (mswindows_sigset):
7611         * nt.c (mswindows_sighold):
7612         * nt.c (mswindows_sigrelse):
7613         * nt.c (mswindows_sigpause):
7614         * nt.c (mswindows_raise):
7615         * nt.c (close_file_data):
7616         Style fixes.
7617         
7618         * nt.c:
7619         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7620         
7621         * profile.c:
7622         * profile.c (Fstart_profiling):
7623         * profile.c (Fstop_profiling):
7624         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7625         instead of just plain setitimer().
7626         
7627         * signal.c:
7628         * signal.c (set_one_shot_timer):
7629         * signal.c (alarm):
7630         Define qxe_setitimer() as an encapsulation around setitimer() --
7631         call setitimer() directly unless Cygwin or MS Win, in which case
7632         we use our simulated version in win32.c.
7633         
7634         * systime.h:
7635         * systime.h (struct itimerval):
7636         * systime.h (ITIMER_REAL):
7637         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7638         comment about "qxe" and the policy regarding encapsulation.
7639
7640         * win32.c:
7641         * win32.c (setitimer_helper_proc):
7642         * win32.c (setitimer_helper_period):
7643         * win32.c (setitimer_helper):
7644         * win32.c (mswindows_setitimer):
7645         Move setitimer() emulation here, so Cygwin can use it.
7646         Rename a couple of functions and variables to be longer and more
7647         descriptive.  In setitimer_helper_proc(), send the signal
7648         using either mswindows_raise() or (on Cygwin) kill().  If for
7649         some reason we are still getting lockups, we'll change the kill()
7650         to directly invoke the signal handlers.
7651
7652         ------ windows shell fixes ------
7653         
7654         * callproc.c:
7655         * ntproc.c:
7656         Comments about how these two files must die.
7657
7658         * callproc.c (init_callproc):
7659         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7660         not just COMSPEC. (more correct and closer to FSF.) Don't
7661         force a value for SHELL into the environment. (Comments added
7662         to explain why not.)
7663         
7664         * nt.c (init_user_info):
7665         Don't shove a fabricated SHELL into the environment.  See above.
7666
7667 2001-06-01  Ben Wing  <ben@xemacs.org>
7668
7669         * Makefile.in.in (ldflags):
7670         eliminate that pesky "defaulting to 00401000" warning.
7671         * nt.h:
7672         eliminate warnings.
7673
7674 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7675
7676         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7677         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7678
7679 2001-04-24  Jerry James <james@xemacs.org>
7680
7681         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7682         correct order.
7683
7684 2001-06-01  Ben Wing  <ben@xemacs.org>
7685
7686         * event-msw.c (debug_mswin_messages):
7687         conditionalize the messages that were causing compile errors.
7688         (if only macros could generate #ifdef statements ...)
7689
7690 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7691
7692         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7693
7694 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7695
7696         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7697
7698 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7699
7700         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7701         * process-unix.c (unix_canonicalize_host_name):
7702         sysdep.c (init_system_name):
7703         Use it to conditionally support IPv6 canonicalization.
7704
7705 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7706
7707         * event-msw.c:
7708         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7709
7710 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7711
7712         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7713         attempt is made to scroll when no scroll bar is available.
7714
7715 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7716
7717         * input-method-motif.c (XIM_delete_frame): New callback.
7718         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7719         got deleted from 21.4.3.)
7720
7721 2001-06-01  Ben Wing  <ben@xemacs.org>
7722
7723         * nt.c (mswindows_utime):
7724         * nt.c (close_file_data):
7725         fix off-by-one-indirection error.
7726
7727 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7728
7729         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7730         because set_file_times() now takes Lisp_Object path, instead of
7731         char*.
7732         * nt.c: Include buffer.h.
7733         * nt.c (convert_from_time_t): New.
7734         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7735         not set mtime correctly.
7736         * nt.h: Declare mswindows_utime().
7737         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7738         path, instead of char*.
7739         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7740
7741 2001-05-30  Ben Wing  <ben@xemacs.org>
7742
7743         For 21.4:
7744
7745         (Stephen, just take all event-msw.c patches.  This includes
7746         the "iconify" fix below.)
7747
7748         * event-msw.c:
7749         * event-msw.c (mswindows_dequeue_dispatch_event):
7750         * event-msw.c (assert):
7751         * event-msw.c (emacs_mswindows_quit_p):
7752         * event-msw.c (debug_mswin_messages):
7753         * event-msw.c (debug_output_mswin_message):
7754         * event-msw.c (vars_of_event_mswindows):
7755         Fix yet more problems with C-g handling.
7756         Implement debug-mswindows-events.
7757         
7758 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7759
7760         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7761         
7762 2001-05-23  Ben Wing  <ben@xemacs.org>
7763
7764         * event-msw.c (winsock_writer):
7765         * event-msw.c (winsock_closer):
7766         prior kludgy code was clobbering the buffer, thinking it was
7767         "unused" space to store an unneeded return value; instead, use
7768         the variable we've already got staring us in the face.
7769
7770 2001-05-17  Andy Piper  <andy@xemacs.org>
7771
7772         * sysfile.h: don't assume that file attributes are boolean
7773
7774 2001-05-23  Ben Wing  <ben@xemacs.org>
7775
7776         * device-msw.c (msprinter_init_device):
7777         signal an error rather than crash with an unavailable network
7778         printer (from Mike Alexander).
7779         
7780         * event-msw.c:
7781         * event-msw.c (struct winsock_stream):
7782         * event-msw.c (winsock_writer):
7783         * event-msw.c (winsock_closer):
7784         * event-msw.c (make_winsock_stream_1):
7785         cleanup headers.  fix (hopefully) an error with data corruption
7786         when sending to a network connection.
7787
7788         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7789         to handle the ~user prefix by (a) always assuming we're referencing
7790         ourselves and not even verifying the user -- hence any file with
7791         a tilde as its first char is invalid! (b) if there wasn't a slash
7792         following the filename, the pointer was set *past* the end of
7793         file and we started reading from uninitialized memory.  Now we
7794         simply treat these as files, always.
7795
7796         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7797         
7798 2001-05-19  Ben Wing  <ben@xemacs.org>
7799
7800         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7801
7802         * process-nt.c:
7803         * process-nt.c (vars_of_process_nt):
7804         remove unused mswindows-quote-process-args.  rec for 21.4.
7805         
7806 2001-05-12  Ben Wing  <ben@xemacs.org>
7807
7808         * event-msw.c (mswindows_dde_callback):
7809         * event-msw.c (mswindows_wnd_proc):
7810         eliminate cygwin warnings.
7811
7812 2001-05-06  Ben Wing  <ben@xemacs.org>
7813
7814         * console-msw.h:
7815         * device-msw.c:
7816         * device-msw.c (print_dialog_worker):
7817         * device-msw.c (mswindows_handle_print_dialog_box):
7818         * device-msw.c (syms_of_device_mswindows):
7819         * dialog-msw.c (mswindows_make_dialog_box_internal):
7820         * general-slots.h:
7821         implement printing the selection when it's selected.
7822
7823 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7824
7825         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7826
7827 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7828
7829         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7830         EMACS_INT is signed.
7831
7832 2001-04-15  Michael Lausch  <mla@1012surf.net>
7833
7834         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7835         gtk_widget_request_size() to give scrollbar >0 width for
7836         GTK >1.2.8.
7837
7838 2001-05-30  William M. Perry  <wmperry@gnu.org>
7839
7840         * event-gtk.c: Check for buttons as modifier keys.
7841
7842 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7843
7844         * s\mingw32.h:
7845         Properly find MinGW's <process.h> inside Cygwin's restructured
7846         include directories.  Don't try to include <cygwin/version.h>
7847         since we are dropping support for MinGW in versions of Cygwin
7848         earlier than b21.
7849         * nt.c:
7850         Drop support for MinGW in versions of Cygwin before b21.
7851         * sysdep.c:
7852         Properly find MinGW's <process.h> inside Cygwin's restructured
7853         include directories.
7854         * syswindows.h:
7855         Drop support for MinGW in versions of Cygwin before b21.
7856         * unexcw.c:
7857         Even though a.out.h is no longer detected by configure, allow
7858         MinGW to use it until we figure out how to do the job with Win32.
7859
7860 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7861
7862         * syntax.c (find_start_of_comment):
7863         Fix `unbalanced parentheses' bug when dealing with mixed comment
7864         styles in c++/java/etc. mode
7865
7866 2001-05-29  Mike Alexander  <mta@arbortext.com>
7867
7868         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7869         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7870
7871 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7872
7873         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7874
7875 2001-03-31  Mike Sperber <mike@xemacs.org>
7876
7877         * search.c (Freplace_match): Support FSF-style specification of
7878         match subexpression when applied to a buffer.
7879
7880 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7881
7882         * event-stream.c (is_scrollbar_event): add missing semicolon
7883
7884 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7885
7886         * Makefile.in.in: Use TAR macro instead of hardcoding
7887           tar.  Allows use of GNU tar instead of system tar
7888
7889 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7890
7891         * event-stream.c (is_scrollbar_event): add missing semicolon
7892
7893 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7894
7895         * XEmacs 21.4.3 "Academic Rigor" is released.
7896
7897 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7898
7899         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7900
7901 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7902
7903         * buffer.c (Vcase_fold_search): Remove obsolete
7904           comment about non ASCII case-fold-search.  This
7905           bug has been fixed by case-table changes.
7906
7907 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7908
7909         * event-msw.c: Restore include of events-mod.h.
7910
7911 2001-04-22   zhaoway  <zw@debian.org>
7912
7913         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7914         !HAVE_SCROLLBARS.
7915
7916 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7917
7918         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7919
7920 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7921
7922         * mule-charset.c (Fmake_charset): Add missing else.
7923
7924 2001-04-23  Ben Wing  <ben@xemacs.org>
7925
7926         * event-msw.c (FAKE_MOD_QUIT):
7927         * event-msw.c (mswindows_dequeue_dispatch_event):
7928         * event-msw.c (mswindows_wnd_proc):
7929         * event-msw.c (emacs_mswindows_quit_p):
7930         Get critical quit working.
7931
7932 2001-05-05  Ben Wing  <ben@xemacs.org>
7933
7934         * console-msw.h:
7935         * device-msw.c:
7936         * device-msw.c (mswindows_get_default_margin):
7937         * frame-msw.c (mswindows_size_frame_internal):
7938         * frame-msw.c (msprinter_init_frame_1):
7939         * frame-msw.c (vars_of_frame_mswindows):
7940         Change top/bottom margin defaults to 0.5 inches.
7941
7942 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7943
7944         Fix link error with gcc 3.0 on Linux.
7945         * terminfo.c (UP): Remove.
7946         * terminfo.c (BC): Remove.
7947         * terminfo.c (PC): Remove.
7948         They weren't used, and in any case, these symbols should be
7949         defined in the *library*.
7950
7951 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7952
7953         * s/aix4.h: Fix crash with xlc -O3.
7954         Improve comment explaining how -O3 works.
7955
7956 2001-04-15  Ben Wing  <ben@xemacs.org>
7957
7958         * event-stream.c:
7959         * event-stream.c (Fnext_event):
7960         * event-stream.c (is_scrollbar_event):
7961         * event-stream.c (execute_command_event):
7962         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7963         crash' problem.  His fix introduces other problems.  We filter
7964         out scrollbar events specifically, making them somewhat invisible
7965         to command-building, and not appearing in `this-command-keys'.
7966         More work is still needed (see comments in event-stream.c), but
7967         this fixes all the major problems.
7968
7969 2001-04-20  Ben Wing  <ben@xemacs.org>
7970
7971         * .cvsignore: Added stuff for Windows.
7972
7973 2001-04-28  Ben Wing  <ben@xemacs.org>
7974
7975         * buffer.c (Ferase_buffer):
7976         * editfns.c (buffer_insert1):
7977         * editfns.c (Finsert_before_markers):
7978         * editfns.c (Finsert_string):
7979         * editfns.c (Finsert_char):
7980         * editfns.c (Fdelete_region):
7981         * editfns.c (Fwiden):
7982         * editfns.c (Fnarrow_to_region):
7983         remove bogus lines setting zmacs_region_stays to 0.
7984         
7985 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7986
7987         * process-unix.c (unix_open_network_stream): If connect() fails
7988         invalidate file descriptor after closing it.
7989
7990 2001-03-08  Mike Alexander  <mta@arbortext.com>
7991
7992         * event-msw.c (mswindows_need_event_in_modal_loop):
7993         Don't dispatch a message if we didn't get one.
7994         (mswindows_need_event):
7995         Terminate the correct process when one exits instead of the first
7996         one on Vprocess_list and look for process termination when in
7997         mswindows_protect_modal_loop.
7998
7999 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8000
8001         * XEmacs 21.4.1 "Copyleft" is released.
8002
8003 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8004
8005         * input-method-motif.c (XIM_delete_frame): New callback.
8006         (XIM_init_frame): Register it.
8007
8008 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8009
8010         * XEmacs 21.4.0 "Solid Vapor" is released.
8011
8012 2001-04-15  Ben Wing  <ben@xemacs.org>
8013
8014         * cmdloop.c (call_command_loop):
8015         Fix braino in bit-rotting code.
8016         
8017 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8018
8019         * extents.c (Fset_extent_endpoints): Force creation of extent info
8020         in buffer_or_string.
8021
8022         * extents.c (process_extents_for_insertion_mapper): Correctly
8023         check for open-open zero-length extents.
8024
8025 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8026
8027         * lisp.h: New typedefs Memory_count, Element_count.
8028         * regex.c:
8029         * regex.h:
8030         Sign-compare warning elimination: several unsigned -> signed.
8031         Based on work by Ben Wing <ben@xemacs.org>.
8032
8033 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8034
8035         * XEmacs 21.2.47 "Zephir" is released.
8036
8037 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8038
8039         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8040
8041 2001-04-03  Mike Sperber <mike@xemacs.org>
8042
8043         * search.c: Revert previous patch due because of release.
8044
8045 2001-03-30  Ben Wing  <ben@xemacs.org>
8046
8047         * s\cygwin32.h:
8048         Add missing killpg prototype.
8049
8050         * elhash.c:
8051         Add a comment about fixing problems when a new entry is added
8052         while mapping.
8053
8054         * frame-msw.c (mswindows_init_frame_1):
8055         Fix compile warnings.
8056
8057         * menubar.c (vars_of_menubar):
8058         Provide `menu-accelerator-support' to indicate that we properly
8059         support %_ in menu specifications, so that package code can
8060         conditionalize on this (and remove %_ from menu specifications
8061         on older versions).
8062
8063         * event-msw.c:
8064         * scrollbar-msw.c:
8065         * scrollbar-msw.c (can_scroll):
8066         * scrollbar-msw.h:
8067         Fix handling of mouse wheel under Windows to follow standards --
8068         now scrolls window under pointer, not selected window.
8069
8070 2001-03-31  Mike Sperber <mike@xemacs.org>
8071
8072         * search.c (Freplace_match): Support FSF-style specification of
8073         match subexpression when applied to a buffer.
8074
8075 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8076
8077         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8078         function to modify KEYMAP, so map over a copy of the hash table.
8079
8080 2001-03-21  Martin Buchholz <martin@xemacs.org>
8081
8082         * XEmacs 21.2.46 "Urania" is released.
8083
8084 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8085
8086         * realpath.c (xrealpath): Make file-truename work with symlinks to
8087         /cygdrive paths on cygwin. Always lowercase drive-letters on
8088         native windows.
8089         (cygwin_readlink): Don't try to find canonical filename unless
8090         file exists.
8091
8092 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8093
8094         * ChangeLog: Log GTK merge.
8095
8096         * dumper.c:
8097         * select-x.c:
8098         * specifier.c:
8099         * symeval.h:
8100         Revert gratuitous whitespace changes from GTK merge.
8101
8102         * emacs.c: Document end of complex #ifdef @ l. 1495.
8103
8104
8105 2001-03-12  Andy Piper  <andy@xemacs.org>
8106
8107         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8108         have to do likewise.
8109
8110 2001-03-12  Andy Piper  <andy@xemacs.org>
8111
8112         * sysdep.c: we only support mingw now.
8113
8114 2001-03-09  Andy Piper  <andy@xemacs.org>
8115
8116         * unexcw.c (copy_executable_and_dump_data_section): making approx
8117         overrun a warning only.
8118
8119 2001-03-10  William M. Perry  <wmperry@aventail.com>
8120
8121         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8122         satisfy Stephen's identical-after-cpp plea.
8123
8124 2001-03-02  Ben Wing  <ben@xemacs.org>
8125
8126         * cmds.c:
8127         * cmds.c (Fforward_char):
8128         * syntax.c:
8129         * window.c:
8130
8131         Augment documentation of the most common motion commands to make
8132         note of the shifted-motion support.
8133         
8134 2001-03-02  Ben Wing  <ben@xemacs.org>
8135
8136         * nt.c (mswindows_fstat):
8137         * nt.c (mswindows_stat):
8138         * search.c (boyer_moore):
8139         Fix compile warnings under Windows.
8140         
8141         * sysdep.c (sys_readdir):
8142         Fix buggy filename-conversion code under Mule.
8143
8144 2001-03-09  William M. Perry  <wmperry@aventail.com>
8145
8146         * Makefile.in.in:
8147         * config.h.in:
8148         * console.c:
8149         * console.h:
8150         * device.c:
8151         * device.h:
8152         * dragdrop.c:
8153         * emacs.c:
8154         * event-stream.c:
8155         * events.c:
8156         * events.h:
8157         * faces.c:
8158         * frame.h:
8159         * general-slots.h:
8160         * glyphs.c:
8161         * gutter.c:
8162         * inline.c:
8163         * lisp.h:
8164         * lrecord.h:
8165         * make-src-depend:
8166         * redisplay-output.c:
8167         * redisplay.c:
8168         * symsinit.h:
8169         * sysfile.h:
8170         * toolbar.c:
8171         * window.c:
8172         The Great GTK Merge.
8173
8174         * ChangeLog.GTK:
8175         * console-gtk.c:
8176         * console-gtk.h:
8177         * device-gtk.c:
8178         * emacs-marshals.c:
8179         * emacs-widget-accessors.c:
8180         * event-gtk.c:
8181         * frame-gtk.c:
8182         * gccache-gtk.c:
8183         * gccache-gtk.h:
8184         * glade.c:
8185         * glyphs-gtk.c:
8186         * glyphs-gtk.h:
8187         * gtk-glue.c:
8188         * gtk-xemacs.c:
8189         * gtk-xemacs.h:
8190         * gui-gtk.c:
8191         * gui-gtk.h:
8192         * menubar-gtk.c:
8193         * native-gtk-toolbar.c:
8194         * objects-gtk.c:
8195         * objects-gtk.h:
8196         * redisplay-gtk.c:
8197         * scrollbar-gtk.c:
8198         * scrollbar-gtk.h:
8199         * select-gtk.c:
8200         * toolbar-gtk.c:
8201         * ui-byhand.c:
8202         * ui-gtk.c:
8203         * ui-gtk.h:
8204         The Great GTK Merge: new files.
8205
8206 2001-02-26  Ben Wing  <ben@xemacs.org>
8207
8208         Reapplied Lstream change.
8209
8210 2001-02-26  Ben Wing  <ben@xemacs.org>
8211
8212         Undid the last change, since it is more controversial than I
8213         thought.  It should be back in at some point soon.
8214         
8215 2001-02-25  Ben Wing  <ben@xemacs.org>
8216
8217         * buffer.c:
8218         * callproc.c (Fold_call_process_internal):
8219         * event-msw.c (ntpipe_slurp_reader):
8220         * event-msw.c (ntpipe_shove_writer):
8221         * event-msw.c (winsock_reader):
8222         * event-msw.c (winsock_writer):
8223         * file-coding.c:
8224         * file-coding.c (detect_eol_type):
8225         * file-coding.c (detect_coding_type):
8226         * file-coding.c (determine_real_coding_system):
8227         * file-coding.c (Fdetect_coding_region):
8228         * file-coding.c (decoding_reader):
8229         * file-coding.c (decoding_writer):
8230         * file-coding.c (mule_decode):
8231         * file-coding.c (Fdecode_coding_region):
8232         * file-coding.c (encoding_reader):
8233         * file-coding.c (encoding_writer):
8234         * file-coding.c (mule_encode):
8235         * file-coding.c (Fencode_coding_region):
8236         * file-coding.c (detect_coding_sjis):
8237         * file-coding.c (decode_coding_sjis):
8238         * file-coding.c (encode_coding_sjis):
8239         * file-coding.c (detect_coding_big5):
8240         * file-coding.c (decode_coding_big5):
8241         * file-coding.c (encode_coding_big5):
8242         * file-coding.c (detect_coding_ucs4):
8243         * file-coding.c (decode_coding_ucs4):
8244         * file-coding.c (encode_coding_ucs4):
8245         * file-coding.c (detect_coding_utf8):
8246         * file-coding.c (decode_coding_utf8):
8247         * file-coding.c (encode_coding_utf8):
8248         * file-coding.c (detect_coding_iso2022):
8249         * file-coding.c (decode_coding_iso2022):
8250         * file-coding.c (encode_coding_iso2022):
8251         * file-coding.c (decode_coding_no_conversion):
8252         * file-coding.c (encode_coding_no_conversion):
8253         * glyphs-x.c (write_lisp_string_to_temp_file):
8254         * gpmevent.c (tty_get_foreign_selection):
8255         * lisp.h:
8256         * lstream.c:
8257         * lstream.c (Lstream_flush_out):
8258         * lstream.c (Lstream_adding):
8259         * lstream.c (Lstream_write_1):
8260         * lstream.c (Lstream_write):
8261         * lstream.c (Lstream_raw_read):
8262         * lstream.c (Lstream_read_more):
8263         * lstream.c (Lstream_read):
8264         * lstream.c (Lstream_unread):
8265         * lstream.c (Lstream_fputc):
8266         * lstream.c (stdio_reader):
8267         * lstream.c (stdio_writer):
8268         * lstream.c (filedesc_reader):
8269         * lstream.c (filedesc_writer):
8270         * lstream.c (lisp_string_reader):
8271         * lstream.c (struct fixed_buffer_stream):
8272         * lstream.c (make_fixed_buffer_input_stream):
8273         * lstream.c (make_fixed_buffer_output_stream):
8274         * lstream.c (fixed_buffer_reader):
8275         * lstream.c (fixed_buffer_writer):
8276         * lstream.c (struct resizing_buffer_stream):
8277         * lstream.c (resizing_buffer_writer):
8278         * lstream.c (dynarr_writer):
8279         * lstream.c (lisp_buffer_reader):
8280         * lstream.c (lisp_buffer_writer):
8281         * lstream.h:
8282         * lstream.h (lstream_implementation):
8283         * lstream.h (struct lstream):
8284         * md5.c (Fmd5):
8285         * process-nt.c (nt_send_process):
8286         * process-unix.c (unix_send_process):
8287         
8288         Correct Lstream lossage due to mixing of signed and unsigned
8289         quantities.  All Lstream uses of size_t and ssize_t are now a
8290         single signed data type Lstream_data_count.  This fixes problems
8291         under Windows with sending large quantities of data to a process,
8292         and may well fix other subtle bugs.
8293
8294 2001-02-23  Martin Buchholz <martin@xemacs.org>
8295
8296         * XEmacs 21.2.45 "Thelxepeia" is released.
8297
8298 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8299
8300         * lisp-union.h (XSETINT): 
8301         (XSETCHAR):
8302         (XSETOBJ): 
8303         Reverse previous change of 2001-02-06.
8304
8305 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8306
8307         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8308         buffers.
8309         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8310         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8311         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8312         * regex.c (POS_AS_IN_BUFFER): removed
8313         * regex.c (re_search_2):
8314         * regex.c (re_match_2):
8315         Don't use an offset of 1 when calculating buffer positions, since
8316         `BI_BUF_BEGV' does it already.
8317
8318 2001-02-18  Wim Dumon  <wim@easics.be>
8319
8320         * insdel.c (prepare_to_modify_buffer): Also check for
8321         supersession when clash-detection is enabled. 
8322
8323 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8324
8325         * regex.c (re_match_2_internal):
8326         Convert temp characters from 'const unsigned char' to 're_char'.
8327         Fix crashing bug with extended characters under mule.
8328         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8329         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8330         font-lock, pdump, and new syntax-table code.
8331         * syntax.c (find_start_of_comment):
8332         (find_end_of_comment):
8333         (forward-comment):
8334         Fix crashing bugs involving moving beyond end of buffer.
8335         * syntax.c (find_start_of_comment):
8336         Fixed logic to allow proper detection of cases where the same
8337         character is used to end both a two-char comment start and a
8338         two-char comment end sequence. Fixes `(forward-comment -1)'.
8339         * syntax.c (find_start_of_comment):
8340         Return position just past last comment-end character for all cases
8341         (previously was only done for two-char comment-end sequences).
8342         * syntax.c (forward-comment):
8343         Take value returned from `find_end_of_comment', rather than
8344         incrementing it.
8345         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8346         Properly deal with BUFFERP (syntax_cache.object)
8347
8348 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8349
8350         * alloc.c (Fgarbage_collect): 
8351         * alloc.c (make_bit_vector_from_byte_vector):
8352         -Wsign-compare-correctness.
8353
8354 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8355
8356         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8357         (XSETCHAR): Likewise.
8358         (XSETOBJ): Likewise.
8359
8360 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8361
8362         * mule-canna.c (canna-func-delete_previous): 
8363         Rename to canna-func-delete-previous.
8364
8365 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8366
8367         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8368
8369 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8370
8371         * font-lock.c (find_context): Fix C++ compile errors introduced by
8372         recent patch
8373
8374 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8375
8376         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8377         pragma, but earlier ones barf on the same pragma.
8378
8379 2001-02-06  Mike Sperber <mike@xemacs.org>
8380
8381         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8382         `configure-mule-lisp-directory'.
8383
8384 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8385
8386         Make sure dump-id.c is compiled in the same way as other .c's.
8387         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8388         * dump-id.h: Remove.
8389         * emacs.c: Move dump-id.h into dumper.h.
8390         * dumper.h: Move dump-id.h into dumper.h.
8391         * Makefile.in.in:
8392         Use standard .c.o rule for building dump-id.o.
8393         Remove preprocessor flags from link command.
8394         Add dump-id.o to ${otherobjs} if PDUMP.
8395
8396 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8397
8398         Port FSF 20.7 syntax table improvements.
8399         * syntax.c.
8400         * syntax.h.
8401
8402         Fixups for new syntax table stuff.
8403         * dired.c: Include syntax.c.
8404         (Fdirectory_files): Initialize regex_match_object and
8405         regex_emacs_buffer.
8406         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8407         and Fget_char_property.
8408
8409         Use ported FSF 20.7 syntax table improvements.
8410         * font-lock.c.
8411         * regex.c.
8412         * search.c.
8413         
8414 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8415
8416         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8417         Unixware's enum boolean from sys/types.h.
8418
8419 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8420
8421         Fix support for building with latest Purify.
8422         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8423         (PURIFY_FLAGS): Likewise.
8424
8425 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8426
8427         * fileio.c (lisp_string_set_file_times): New.
8428         * fileio.c (Fcopy_file): Use it.
8429         Fixes bug:
8430         (copy-file filename non-ascii-filename t t)
8431         ==> No such file or directory, non-ascii-filename
8432
8433 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8434
8435         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8436         USHRT_MAX seems clearer than ~0 anyways.
8437
8438 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8439
8440         dumper improvements.  Inspired by Olivier.
8441         * dumper.c (pdump_max_align): New.
8442         * dumper.c (pdump_add_entry): Use pdump_max_align.
8443         * dumper.c (pdump_get_entry_list): Likewise.
8444         * dumper.c (pdump_scan_by_alignment): Likewise.
8445         Don't iterate through unnecessary alignments.
8446         * dumper.c (pdump_file_get): No need to align result of malloc().
8447         * dumper.c (pdump_mallocadr): Remove.  
8448         The result of malloc() is guaranteed to be maximally aligned.
8449         * dumper.c: s/elmt/elt/g;
8450         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8451         * dumper.c (pdump_alert_undump_object): Likewise.
8452         * dumper.c (pdump_align_table): 
8453         Don't support alignments > 64.
8454         Store ALIGNOF's, not shift counts, in table.
8455
8456 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8457
8458         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8459         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8460         * systime.h: Use HAVE_UTIME.
8461         * sysdep.c (struct utimbuf): Remove.
8462         * sysdep.c (set_file_times): Prefer utime() to utimes().
8463         * config.h.in (HAVE_UTIME): New.
8464         * config.h.in (HAVE_UTIME_H): Remove.
8465         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8466
8467 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8468
8469         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8470
8471 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8472
8473         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8474
8475 2001-02-08  Martin Buchholz <martin@xemacs.org>
8476
8477         * XEmacs 21.2.44 "Thalia" is released.
8478
8479 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8480
8481         Fixes crashes in kill-emacs on some systems.
8482         * process-unix.c (unix_kill_child_process):
8483         It's OK for kill() to fail with ESRCH.
8484
8485 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8486
8487         Contortions to make .gdbinit tricks work on most systems.
8488         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8489         * alloc.c (dbg_valmask): Make non-const.
8490         * alloc.c (dbg_typemask): Make non-const.
8491         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8492         * alloc.c (dbg_valbits): Make non-const.
8493         * alloc.c (dbg_gctypebits): Make non-const.
8494         * .gdbinit (decode_object): Make it work with AIX cc.
8495
8496 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8497
8498         * elhash.c (make_general_lisp_hash_table):
8499         Use simpler and more efficient calloc to clear entries.
8500
8501 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8502
8503         * window.c (window_scroll): Work around an AIX C compiler bug.
8504         Fixes 'scroll-up' does nothing problem with xlC.
8505
8506 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8507
8508         * .gdbinit: Remove obsolete comment.
8509
8510 2001-01-31  Mike Alexander  <mta@arbortext.com>
8511
8512         * select.c (Fown_selection_internal): Set owned_p for device
8513         method correctly.
8514
8515 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8516
8517         Port to g++ 2.97.
8518         "not" cannot be used as a macro name as it is an operator in C++
8519         * config.h.in: Stop #defining `not'.
8520         * chartab.c (check_category_char): not ==> not_p
8521         * chartab.h: Likewise.
8522         * regex.c (re_match_2_internal): Likewise.
8523
8524 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8525
8526         * lisp-disunion.h: Fix up comments.
8527
8528 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8529
8530         * keymap.c (define_key_check_and_coerce_keysym):
8531         (syms_of_keymap):
8532         Support mouse-6 and mouse-7 bindings in the obvious way.
8533
8534 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8535
8536         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8537
8538 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8539
8540         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8541         Previous patch missed DEFVAR_INT_MAGIC.
8542         Make sure future DEFVAR_foo use correct types.
8543         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8544         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8545         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8546         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8547         * (DEFVAR_INT): Likewise.
8548         * redisplay.c (vertical_clip): Should be of type Fixnum.
8549         * redisplay.c (horizontal_clip): Likewise.
8550         * lisp.h (dump_add_opaque_int): New.
8551         (dump_add_opaque_fixnum): New.
8552
8553 2001-01-29  Andy Piper  <andy@xemacs.org>
8554
8555         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8556         since they can be eval'ed
8557
8558 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8559
8560         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8561         Oops, XEmacs redefines `class'.  Use `typename' instead.
8562
8563 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8564
8565         * dumper.c: Fix C++ compile errors.
8566
8567 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8568
8569         * tparam.c: Use correct prototypes.
8570
8571 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8572
8573         * sysproc.h: #include util.h for NetBSD's openpty.
8574
8575 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8576
8577         More 64-bit correctness.
8578         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8579         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8580         Fix up comments.
8581         This finally finishes the 64-bit SGI port.
8582         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8583         * symbols.c: Fix up comments and type casts.
8584         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8585         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8586         * symeval.h (Fixnum): New type.
8587         * symeval.h (symbol_value_type): Fix up comment.
8588
8589         * commands.h:
8590         * nt.c:
8591         * emacs.c:
8592         * data.c:
8593         * redisplay.c:
8594         * abbrev.c:
8595         * dired-msw.c:
8596         * event-Xt.c:
8597         * eldap.c:
8598         * window.c:
8599         * sound.c:
8600         * event-stream.c:
8601         * eval.c:
8602         * buffer.c:
8603         * mule-canna.c: A million DEFVAR_INTs here...
8604         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8605         * extents.c:
8606         * cmdloop.c:
8607         * lisp.h:
8608         * select-x.c:
8609         * console-x.h:
8610         * event-msw.c:
8611         * mule-wnnfns.c:
8612         * hpplay.c:
8613         * ralloc.c:
8614         * alloc.c:
8615         * keymap.c:
8616         * profile.c:
8617         s/int/Fixnum/g in DEFVAR_INT declarations.
8618
8619 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8620
8621         Port pdump to SGI alignment-sensitive environment.
8622         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8623         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8624         properly aligned.
8625         Define and use aligned reading and writing macros.
8626         Use buffered stdio instead of posix i/o for faster dumping.
8627         Eliminate kludgy 256 byte space for header.
8628         Read and write from dump file using structs for alignment safety.
8629         * dumper.c (pdump_align_stream): New.
8630         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8631         * dumper.c (PDUMP_READ_ALIGNED): New.
8632         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8633         * dumper.c (pdump_static_Lisp_Object): New struct.
8634         * dumper.c (pdump_static_pointer): New struct.
8635         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8636         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8637         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8638         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8639
8640         * dumper.c (pdump_backtrace):
8641         * dumper.c (pdump_get_indirect_count):
8642         * dumper.c (pdump_register_object):
8643         * dumper.c (pdump_register_struct):
8644         * dumper.c (pdump_reloc_one):
8645         * dumper.c (pdump_scan_by_alignment):
8646         * dumper.c (pdump_dump_from_root_struct_ptrs):
8647         * dumper.c (pdump_dump_opaques):
8648         * dumper.c (pdump_dump_rtables):
8649         * dumper.c (pdump_dump_from_root_objects):
8650         * dumper.c (pdump):
8651         * dumper.c (pdump_load_finish):
8652         Use aligned reading and writing.
8653
8654         * dumper.c (pdump_free): Make static.
8655         * dumper.c (pdump_hFile): Likewise.
8656         * dumper.c (pdump_hMap): Likewise.
8657
8658 2001-01-26  Martin Buchholz <martin@xemacs.org>
8659
8660         * XEmacs 21.2.43 "Terspichore" is released.
8661
8662 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8663
8664         Type fiddling for window_config.saved_windows_count
8665         * window.c (struct window_config): 
8666         Make saved_windows_count member unsigned.
8667         * window.c (sizeof_window_config_for_n_windows): 
8668         Make parameter unsigned.
8669         * window.c (mark_window_config):
8670         * window.c (window_config_equal):
8671         * window.c (free_window_configuration):
8672         * window.c (Fset_window_configuration):
8673         * window.c (count_windows):
8674         * window.c (Fcurrent_window_configuration):
8675         * window.c (reinit_vars_of_window):
8676         Update all callers and users.
8677
8678 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8679
8680         Alignment correctness for flexible arrays.
8681         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8682         Make alignment-correct. Add interesting comments.
8683         * alloc.c (size_vector):
8684         * alloc.c (make_vector_internal):
8685         * alloc.c (make_bit_vector_internal):
8686         * alloc.c (sweep_bit_vectors_1):
8687         * fns.c (size_bit_vector):
8688         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8689         * window.c (sizeof_window_config_for_n_windows): 
8690         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8691
8692 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8693
8694         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8695
8696 2001-01-23  Andy Piper  <andy@xemacs.org>
8697
8698         * select.c (Fown_selection_internal): pass owned_p
8699
8700         * select-msw.c (mswindows_own_selection): New Signature.
8701
8702         * console.h (struct console_methods): add owned_p to
8703         _own_selection.
8704
8705         * select-x.c (x_own_selection): pass owned_p
8706         (hack_motif_clipboard_selection): use owned_p
8707         (vars_of_select_x): new variable -
8708         x_selection_strict_motif_ownership.
8709
8710 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8711
8712         * specifier.h (specifier_data_offset): Remove pointless parens.
8713         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8714
8715 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8716
8717         Make Lisp_Object sizeof methods be alignment-correct.
8718         pdump must restore objects to the same alignment as the C compiler
8719         assumes.  It really matters on SGIs.
8720         * lstream.c (aligned_sizeof_lstream): New.
8721         (sizeof_lstream): Use aligned_sizeof_lstream.
8722         (Lstream_new): Likewise.
8723         * opaque.c (aligned_sizeof_opaque): New.
8724         (sizeof_opaque): Use aligned_sizeof_opaque.
8725         (make_opaque): Likewise.
8726         * specifier.c (aligned_sizeof_specifier): New.
8727         (sizeof_specifier): Use aligned_sizeof_specifier.
8728         (make_specifier_internal): Likewise.
8729
8730 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8731
8732         * lstream.h (struct lstream): Use max_align_t for trailing data.
8733         * specifier.h (struct Lisp_Specifier): Likewise.
8734
8735 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8736
8737         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8738         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8739         (CCL_SUSPEND): Likewise.
8740         (CCL_INVALID_CMD): Likewise.
8741         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8742         (ccl_driver): Likewise.
8743         (CCL_WRITE_CHAR): Macro hygiene.
8744         (CCL_WRITE_STRING): Macro hygiene.
8745
8746 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8747
8748         Port "portable" dumper to SunOS 4 and HP-UX.
8749         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8750         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8751         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8752
8753 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8754
8755         * lisp.h (ALIGNOF): A better definition for C++.
8756
8757 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8758
8759         Macro hygiene.
8760         Fix printf warnings: int format, long int arg.
8761         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8762         (PUSH_FAILURE_POINT): Use correct printf formats.
8763         (POP_FAILURE_POINT): Use correct printf formats.  
8764         Use do {...} while (0)
8765
8766 2001-01-20  Martin Buchholz <martin@xemacs.org>
8767
8768         * XEmacs 21.2.42 "Poseidon" is released.
8769
8770 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8771
8772         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8773
8774 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8775
8776         De-kludgify FIXED_TYPE free list frobbing.
8777         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8778         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8779         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8780         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8781         * alloc.c (LRECORD_FREE_P): New.
8782         * alloc.c (MARK_LRECORD_AS_FREE): New.
8783         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8784         * alloc.c (STRUCT_FREE_P): Deleted.
8785         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8786         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8787         * alloc.c (STRING_CHARS_FREE_P): New.
8788         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8789         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8790         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8791         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8792         * alloc.c (resize_string): Use new definitions.
8793         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8794         * alloc.c (verify_string_chars_integrity): Use new definitions.
8795         * alloc.c (compact_string_chars): Use new definitions.
8796         * alloc.c: Update monster comments.
8797         * lrecord.h (lrecord_type): Add some new lrecord types for
8798         alloc.c's use.
8799
8800 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8801
8802         Improve alignment hackery.
8803         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8804         (max_align_t): Moved from opaque.h - general purpose.
8805         (ALIGN_PTR): Use size_t, not long.
8806         * opaque.h (max_align_t): Move to lisp.h.
8807
8808 2001-01-18  Norbert Koch  <nk@LF.net>
8809
8810         * gui.h: Fix and add prototypes to fix build problems.
8811
8812 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8813
8814         temacs is going away, so `dump-temacs' is now a bad name.
8815         * .dbxrc (dump-temacs): Rename to `dmp'.
8816         * .gdbinit (dump-temacs): Rename to `dmp'.
8817
8818 2001-01-17  Andy Piper  <andy@xemacs.org>
8819
8820         * glyphs.c (print_image_instance): comment to make martin happy.
8821
8822         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8823         change.
8824
8825         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8826         activation.
8827         (mswindows_tab_control_redisplay): warning suppression.
8828
8829         * glyphs-widget.c (widget_update): re-write to cope with updated
8830         items.
8831         (widget_instantiate): use new gui_item functions.
8832         (tab_control_update): deleted.
8833         (progress_gauge_update): deleted.
8834         (image_instantiator_progress_guage): take out update reference.
8835         (image_instantiator_tree_view): ditto.
8836         (image_instantiator_tab_control): ditto.
8837
8838         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8839         Right the new way.
8840         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8841         return whether anything was changed.
8842         (update_gui_item_keywords): as it sounds.
8843
8844         * gui.h: declare widget_gui_parse_item_keywords.
8845
8846         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8847         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8848
8849 2001-01-17  Martin Buchholz <martin@xemacs.org>
8850
8851         * XEmacs 21.2.41 "Polyhymnia" is released.
8852
8853 2001-01-16  Didier Verna  <didier@xemacs.org>
8854
8855         * glyphs.c (image_instantiate): don't use fallbacks when
8856         instantiating a face's background pixmap by inheritance.
8857
8858 2001-01-14  Mike Sperber <mike@xemacs.org>
8859
8860         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8861         Conditionalize accordingly.
8862
8863 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8864
8865         * dumper.c (pdump_file_get): Fix a compiler warning.
8866
8867 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8868
8869         Make Purify happy when pdumping.
8870         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8871         iniitalizing all bits of new lisp object memory.
8872         * symbols.c (Fmake_local_variable): Likewise.
8873         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8874         * symbols.c (Fdefvaralias): Likewise.
8875         * mule-charset.c (vars_of_mule_charset): Likewise.
8876
8877 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8878         Add the `-nd' flag when running pre-dump operations under the debugger.
8879         * .dbxrc (run-temacs): Add `-nd'.
8880         * .dbxrc (update-elc): Likewise.
8881         * .dbxrc (dump-temacs): Likewise.
8882         * .gdbinit (run-temacs): Likewise.
8883         * .gdbinit (check-temacs): Likewise.
8884         * .gdbinit (update-elc): Likewise.
8885         * .gdbinit (dump-temacs): Likewise.
8886
8887 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8888
8889         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8890         export OBJECT_MODE=64
8891         configure --pdump --use-union-type=no
8892         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8893         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8894
8895         * miscplay.c (sndcnv8U_2mono):
8896         Avoid two uses of `++' in the same expression.
8897         Suppresses a GCC warning.
8898
8899 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8900
8901         Make sure future compilers don't miscompile alloc.c.
8902         * alloc.c:
8903         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8904         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8905
8906 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8907
8908         * dumper.c: A little post-pdump-rename comment fixup.
8909
8910 2001-01-09  Jerry James  <james@eecs.ku.edu>
8911
8912         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8913
8914 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8915
8916         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8917         script:
8918         #!/bin/sh
8919         replace_symbol () {
8920           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8921         }
8922
8923         replace_symbol pdump_wire_lists pdump_weak_object_chains
8924         replace_symbol pdump_wire_list dump_add_weak_object_chain
8925
8926         replace_symbol pdump_wires pdump_root_objects
8927         replace_symbol pdump_wire dump_add_root_object
8928
8929         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8930         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8931
8932         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8933         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8934         replace_symbol dumpstructinfo pdump_root_struct_ptr
8935         replace_symbol dumpstruct dump_add_root_struct_ptr
8936
8937         replace_symbol dumpopaque dump_add_opaque
8938         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8939         replace_symbol dumpopaqueinfos pdump_opaques
8940         replace_symbol dumpopaqueinfo pdump_opaque
8941
8942         replace_symbol nb_structdump nb_root_struct_ptrs
8943         replace_symbol nb_opaquedump nb_opaques
8944
8945         replace_symbol align_table pdump_align_table
8946         replace_symbol dump_header pdump_header
8947
8948         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8949         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8950
8951
8952 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8953
8954         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8955         optimizing bytecount_to_charcount().
8956
8957 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8958
8959         * config.h.in:
8960         (HAVE_DLFCN_H): Removed.
8961         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8962
8963 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8964
8965         Portable dumper maintainability improvements.
8966         * alloc.c (staticpro):
8967         * alloc.c (staticpro_nodump):
8968         * alloc.c (garbage_collect_1):
8969         * alloc.c (reinit_alloc_once_early):
8970         * alloc.c (init_alloc_once_early):
8971         * alloc.c: Move dumper functions to alloc.c.
8972         * dumper.c (pdump_backtrace):
8973         * dumper.c (pdump_dump_structs):
8974         * dumper.c (pdump_dump_opaques):
8975         * dumper.c (pdump_dump_rtables):
8976         * dumper.c (pdump_dump_wired):
8977         * dumper.c (pdump):
8978         * dumper.c (pdump_load_check):
8979         * dumper.c (pdump_load_finish):
8980         * dumper.c (pdump_file_unmap):
8981         * dumper.c (pdump_file_get):
8982         * dumper.c (pdump_resource_free):
8983         * dumper.c (pdump_resource_get):
8984         * dumper.c (pdump_file_free):
8985         * dumper.c (pdump_file_try):
8986         * dumper.c (pdump_load):
8987         Remove fixed size limits on staticpro(), staticpro_nodump(),
8988         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8989         Remove custom code for dumping lrecord_implementations_table - use
8990         dumpopaque instead.
8991         Remove (most of the) custom code for dumping staticpros - dump it
8992         like any other dynarr.
8993
8994         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8995         * dumper.c: Moved functions from alloc.c.
8996         * alloc.c (dumpstruct): Moved to dumper.c.
8997         * alloc.c (dumpopaque): Likewise.
8998         * alloc.c (pdump_wire): Likewise.
8999         * alloc.c (pdump_wire_list): Likewise.
9000
9001         * lisp.h (Dynarr_sizeof): New.
9002         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9003         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9004         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9005
9006         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9007         * lisp.h (dumpopaque): ditto.
9008         * lisp.h (pdump_wire): ditto.
9009         * lisp.h (pdump_wire_list): ditto.
9010
9011 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9012
9013         * make-src-depend (PrintPatternDeps):
9014         Use `sort' to make output independent of perl version.
9015
9016 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9017
9018         Port to Netbsd 1.5.
9019         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9020         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9021
9022 2001-01-03  Didier Verna  <didier@xemacs.org>
9023
9024         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9025         that `focus_frame' is alive before thinking of calling
9026         `redisplay_redraw_cursor' on it.
9027
9028 2001-01-08  Martin Buchholz <martin@xemacs.org>
9029
9030         * XEmacs 21.2.40 is released.
9031
9032 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9033
9034         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9035
9036 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9037
9038         * alloc.c (dbg_valmask): Make const.
9039         * alloc.c (dbg_typemask): Make const.
9040         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9041         * alloc.c (dbg_valbits): Make const.
9042         * alloc.c (dbg_gctypebits): Make const.
9043
9044 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9045
9046         * redisplay-x.c (x_bevel_area):
9047         redisplay.h (struct rune):
9048         Typo fixes in comments.
9049
9050 2001-01-05  Andy Piper  <andy@xemacs.org>
9051
9052         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9053         adjustment.
9054
9055         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9056
9057 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9058
9059         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9060
9061         * mule-ccl.c (stack_idx_of_map_multiple):
9062         Non const global data must not be initialized!
9063         Found by MIYASHITA Hisashi.
9064
9065 2001-01-02  Andy Piper  <andy@xemacs.org>
9066
9067         * frame.c (change_frame_size): make sure frame size is always
9068         marked as changed.
9069
9070         * glyphs.c (image_instance_layout): minor code reuse.
9071
9072         * window.c (Fcurrent_window_configuration): revert previous
9073         change.
9074
9075 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9076
9077         * glyphs.h:
9078         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9079
9080 2000-12-31  Andy Piper  <andy@xemacs.org>
9081
9082         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9083         when widget gets unmapped.
9084
9085         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9086         function. Make sure widgets losing focus don't just drop it.
9087         (handle_focus_event_1): record the widget with focus.
9088
9089 2000-12-31  Andy Piper  <andy@xemacs.org>
9090
9091         * window.c (allocate_window): use
9092         make_image_instance_cache_hash_table.
9093         (make_dummy_parent): ditto.
9094         (Fset_window_configuration): ditto.
9095
9096         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9097
9098         * glyphs.c (process_image_string_instantiator): use
9099         INSTANTIATOR_TYPE.
9100         (get_image_instantiator_governing_domain): ditto.
9101         (normalize_image_instantiator): ditto.
9102         (instantiate_image_instantiator): ditto.
9103         (make_image_instance_1): ditto.
9104         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9105         (instantiator_eq_equal): new function for use with instance hash
9106         tables.
9107         (instantiator_eq_hash): ditto.
9108         (make_image_instance_cache_hash_table): create a suitable hash
9109         table for storing image instances.
9110
9111         * elhash.h (hash_table_weakness): new internal weakness type
9112         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9113         declare new functions.
9114
9115         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9116         another weakness type for glyphs.
9117         (make_standard_lisp_hash_table): new function split out from
9118         make_general_lisp_hash_table.
9119         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9120         (hash_table_instantiate): ditto.
9121         (Fmake_hash_table): ditto.
9122
9123 2000-12-31  Martin Buchholz <martin@xemacs.org>
9124
9125         * XEmacs 21.2.39 is released.
9126
9127 2000-12-29  Andy Piper  <andy@xemacs.org>
9128
9129         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9130
9131         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9132         the frame has changed so that we pick up geometry changes such as
9133         menubar visibility.
9134
9135 2000-12-28  Andy Piper  <andy@xemacs.org>
9136
9137         * lastfile.c (my_ebss): make a char array so we can pad the
9138         bss. Fixes cygwin unexec.
9139
9140         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9141
9142 2000-12-26  Andy Piper  <andy@xemacs.org>
9143
9144         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9145         comments and try and be more precise about a non-/SIGIO world.
9146         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9147         SIGIO.
9148
9149         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9150         we don't normalize to zero width or height.
9151
9152 2000-12-24  Andy Piper  <andy@xemacs.org>
9153
9154         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9155
9156 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9157
9158         * s/sco5.h: SCO 5 has pty support.
9159
9160 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9161
9162         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9163         input-method-xlib.c contains whole contents of input-method-xfs.c,
9164         so we can use input-method-xlib.c's code for USE_XFONTSET
9165         using #ifdefs.
9166         * input-method-xfs.c: removed.
9167
9168 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9169
9170         * file-coding.h (enum coding_category_type): reorder enumerators to
9171         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9172         (now one greater than largest real coding_category_type enumerator).
9173         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9174         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9175         Fcoding_category_list, Fset_coding_priority_list,
9176         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9177         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9178
9179 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9180
9181         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9182         * redisplay-output.c (redisplay_output_window): Clear top of window
9183         when face is changed.
9184         * redisplay-x.c (x_redraw_exposed_window): Call
9185         redisplay_clear_top_of_window.
9186         * redisplay.h: Publish redisplay_clear_top_of_window.
9187
9188 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9189
9190         * buffer.c (Fkill_buffer): Map over all devices.
9191         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9192         (list_windows): New function.
9193         (list_all_windows): Ditto.
9194         (Freplace_buffer_in_windows): Use them.
9195
9196 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9197
9198         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9199         (Fopen_database): Use `db_create' instead of `db_open'.
9200         (syms_of_database): Initialize Qqueue.
9201
9202 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9203
9204         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9205         buffer_local_face_property.
9206         * buffer.h (struct buffer): New member buffer_local_face_property.
9207         * window.c (Fset_window_buffer):  Mark window's face as changed
9208         when buffer has buffer local face.
9209         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9210         * objects.c (color_after_change): Set buffer_local_face_property
9211         when locale of face specifier is buffer.
9212         * objects.c (font_after_change): Ditto.
9213         * objects.c (face_boolean_after_change): Ditto.
9214         * glyphs.c (image_after_change): Ditto.
9215
9216 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9217
9218         * nt.c (mswindows_fstat): Report file permissions, volume serial
9219         number, etc. Code adapted from FSF Emacs 20.7.
9220
9221 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9222
9223         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9224         of stat when we don't have symbolic links, to make sure
9225         mswindows_stat is called on mswindows.
9226
9227 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9228
9229         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9230
9231 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9232
9233         * doprnt.c (emacs_doprnt_1): More printing fixes.
9234         Make printing of numbers compatible with libc and FSF Emacs.
9235         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9236         Use the system printf to do most of the hard work of formatting,
9237         instead of doprnt_1().
9238         Calculate memory to allocate for format string.
9239         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9240         (doprnt_1): Cleaner code and documentation.
9241
9242 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9243
9244         * Makefile.in.in: Use the loop variable to install headers.
9245
9246 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9247
9248         * window.c (Fsplit_window): Don't invalidate face cache.
9249
9250 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9251
9252         * minibuf.c (Fall_completions): Undo the previous change
9253         which removed checking elements start with space.
9254
9255 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9256
9257         * mule-canna.c: Didier suppression.
9258
9259 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9260
9261         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9262         (warning suppression).  Add English comment translations.
9263
9264 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9265
9266         * unexelfsgi.c (unexec): Better test for mmap failure.
9267
9268 2000-12-05  Martin Buchholz <martin@xemacs.org>
9269
9270         * XEmacs 21.2.38 is released.
9271
9272 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9273
9274         * redisplay.c (bar-cursor): Make a user variable.
9275
9276         * symsinit.h: Add init_postgresql_from_environment.
9277
9278 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9279
9280         * regex.c: Convert to clean C.
9281
9282 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9283
9284         * realpath.c:
9285         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9286         initialization.
9287         (sys_readlink): renamed to system_readlink to avoid conflict with
9288         the other sys_readlink.
9289
9290 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9291
9292         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9293
9294 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9295
9296         * postgresql.c (init_postgresql_from_environment): new function.
9297         (vars_of_postgresql): Move code initializing Lisp variables out and
9298         into init_postgresql_from_environment.
9299         emacs.c (main_1): Call init_postgresql_from_environment if and only
9300         if running a dumped XEmacs.
9301
9302 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9303
9304         * buffer.c: Make find-file-compare-truenames default to true on
9305         windows.
9306
9307         * realpath.c (win32_abs_start):
9308         (cygwin_readlink):
9309         (win32_readlink): New functions.
9310         (xrealpath): Return really real filenames on windows.
9311
9312         * fileio.c (Ffile_truename): Make file-truename work on windows.
9313
9314 2000-11-29  Didier Verna  <didier@xemacs.org>
9315
9316         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9317         * faces.c (update_face_cachel_data): use it.
9318         * faces.c (add_face_cachel): use it. Complete background pixmap
9319         frobbing in face cache if `update_face_cachel_data' has not done so.
9320
9321 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9322
9323         * search.c (string_match_1): Don't set last_thing_searched
9324         when search failed.
9325
9326 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9327
9328         * buffer.c: Include casetab.h
9329         (common_init_complex_vars_of_buffer): Use new case-table object.
9330         * buffer.h: Include casetab.h
9331         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9332         (DOWNCASE_TABLE_OF): Ditto.
9333         * bufslots.h: Remove char-tables and add case-table.
9334         * casetab.c: Include casetab.h
9335         (CASE_TABLE_P): Removed.
9336         (mark_case_table): New function.
9337         (allocate_case_table): New function.
9338         (Fcase_table_p): Use new case-table.
9339         (case_table_char): New function.
9340         (Fget_case_table): Ditto.
9341         (Fput_case_table): Ditto.
9342         (Fput_case_table_pair): Ditto.
9343         (Fcopy_case_table): Ditto.
9344         (Fcurrent_case_table): Return case-table.
9345         (Fstandard_case_table): Return case-table.
9346         (Fset_case_table): Fix doc-string.
9347         (set_case_table): Use case-table
9348         (syms_of_casetab): DEFSUBR new functions.
9349         (complex_vars_of_casetab): Set up standard case-table.
9350         * casetab.h: New file.
9351         * editfns.c: Include casetab.h
9352         (Fcompare_buffer_substrings): Use case-table.
9353         * inline.c: Include casetab.h
9354         * lisp.h: Remove bogus extern.
9355         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9356         * search.c: Include casetab.h
9357         (TRANSLATE_ASCII): Removed.
9358         (TRANSLATE): Unconditionally translate character.
9359         (looking_at_1): Use case-table.
9360         (string_match_1): Ditto.
9361         (fast_string_match): Ditto.
9362         (search_command): Ditto.
9363         (search_buffer): Separate boyer_moore.  Check whether
9364         boyer_moore is possible.
9365         (simple_search): New function.
9366         (boyer_moore): Separated from search_buffer. Translate char.
9367
9368 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9369
9370         * regex.c (RE_TR_ASCII): Removed.
9371         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9372         (PATFETCH): Call PATFETCH_RAW.
9373         (PATFETCH_RAW): Fetch Emchar.
9374         (PATUNFETCH): Decrement charptr.
9375         (GET_BUFFER_SPACE): Rename b to buf_end.
9376         (BUF_PUSH): Ditto.
9377         (BUF_PUSH_2): Ditto.
9378         (BUF_PUSH_3): Ditto.
9379         (EXTEND_BUFFER): Ditto.
9380         (SET_LIST_BIT): Ditto.
9381         (regex_compile): Ditto.  Translate non ASCII char.
9382         (compile_range): Ditto.
9383         (re_search_2): Ditto.
9384         (re_match_2_internal): Compare Emchar.
9385         (bcmp_translate): Ditto.
9386
9387 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9388
9389         * lisp.h (basic char/int typedefs):  comment improvement.
9390
9391 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9392
9393         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9394         unstomp inhibit_site_lisp.  Improve comments.
9395
9396 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9397
9398         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9399
9400 2000-11-28  Andy Piper  <andy@xemacs.org>
9401
9402         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9403         clipped display for windows in the gutter also.
9404         (redisplay_display_boxes_in_window_p): change semantics of return
9405         codes to be more intuitive.
9406
9407         * gutter.h: declare display_boxes_in_gutter_p.
9408
9409         * gutter.c (display_boxes_in_gutter_p): new function for
9410         redisplay.
9411
9412 2000-11-22  Andy Piper  <andy@xemacs.org>
9413
9414         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9415         autodetect domain.
9416
9417 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9418
9419         * callproc.c (Fold_call_process_internal):
9420         * gpm.c (Freceive_gpm_event):
9421         (tty_get_foreign_selection): Might be just warning supression.
9422         * fileio.c (Fwrite_region_internal):
9423         (Fset_visited_file_modtime):
9424         * keymap.c (event_matches_key_specifier_p):
9425         Initialize GCPROed variable.
9426
9427         * menubar-x.c (command_builder_find_menu_accelerator):
9428         Initialize before use.
9429
9430 2000-11-23  Andy Piper  <andy@xemacs.org>
9431
9432         * unexcw.c (unexec): make the resulting executable executable.
9433
9434 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9435
9436         * doc.c (get_doc_string):
9437         Use size_t, not int, for result of XSTRING_LENGTH.
9438
9439         * cmds.c (Fdelete_char):
9440         * cmds.c (Fpoint_at_eol):
9441         * cmds.c (Fself_insert_command):
9442         Use EMACS_INT, not int, for result of XINT.
9443         Someday, someone will want to insert more than 2**31 identical characters.
9444
9445         * cmds.c (Fdelete_char):
9446         * cmds.c (Fdelete_backward_char):
9447         * syntax.c (Fforward_word):
9448         * syntax.c (Fforward_comment):
9449         Make COUNT argument optional, for consistency with forward-char et al.
9450
9451 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9452
9453         * lisp.h:
9454         * print.c (long_to_string):
9455         Return a useful value: the pointer at end of data written.
9456
9457         * doprnt.c:
9458         Use `static const char * const' for constant strings.
9459         (union printf_arg): Delete `i', `ui' members.
9460         (get_doprnt_args):
9461         (emacs_doprnt_1):
9462         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9463         Do all printf-ing via the `l' specifier.
9464         Use EMACS_INT instead of int.
9465         Optimize.
9466
9467 2000-11-20  Didier Verna  <didier@xemacs.org>
9468
9469         * faces.c (update_face_cachel_data): don't frob the background
9470         pixmap when the window is being created. The face is needed but
9471         does not exist yet.
9472
9473 2000-11-20  Andy Piper  <andy@xemacs.org>
9474
9475         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9476         messing with a debug environment.
9477
9478 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9479
9480         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9481
9482 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9483
9484         * casetab.c (Fcase_table_p): Fix compile error and crash.
9485
9486 2000-11-18  Philip Aston  <philipa@mail.com>
9487
9488         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9489
9490 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9491
9492         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9493         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9494
9495 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9496
9497         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9498         * unexelf.c: Use HAVE_ELF_H.
9499         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9500         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9501         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9502         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9503         for testing.
9504         So this is an unexelfsgi.c from a different line of development.
9505
9506 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9507
9508         * regex.c (RE_TR_ASCII): New function.
9509         (RE_TRANSLATE): Call it.
9510
9511 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9512
9513         * buffer.h (TRT_TABLE_OF): Remove assert.
9514         (IN_TRT_TABLE_DOMAIN): Removed.
9515
9516 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9517
9518         * free-hook.c (log_gcpro):
9519         (show_gcprohist): Add support for GCPRO5.
9520
9521 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9522
9523         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9524
9525 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9526
9527         * symeval.h: Declare flush_all_buffer_local_cache.
9528
9529         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9530         (flush_buffer_local_cache): Added.
9531         (flush_all_buffer_local_cache): Added.
9532
9533         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9534
9535         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9536         (pdump_dump_data): Ditto.
9537         (pdump_reloc_one): Ditto.
9538         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9539         before dumping.
9540
9541
9542 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9543
9544         * buffer.c: Remove if 0'ed entry.
9545         * buffer.h: Rewrite TRT to use char-table.
9546         * bufslots.h: Remove mirror tables.
9547         * casetab.c: Remove mirror tables.
9548         (CASE_TABLE_P): New macro.
9549         (Fcase_table_p): Element of a case table is string or char-table.
9550         (make_mirror_trt_table): Removed.
9551         (set_case_table): Setup char-table from strings for backward
9552         compatibility.
9553         * dired.c (Fdirectory_files):
9554         * dired-msw.c: (mswindows_get_files):
9555         * lisp.h: Change prototype of re_pattern_buffer.
9556         * regex.c: (RE_TRANSLATE): New macro.
9557         (TRANSLATE_P): Ditto.
9558         Change translate to type RE_TRANSLATE_TYPE.
9559         * regex.h: Define RE_TRANSLATE_TYPE
9560         * search.c (TRANSLATE): New macro.
9561         (TRANSLATE_ASCII): New macro.
9562         Translate table is changed to Lisp_Object.
9563         (signal_failure): Inhibit return.
9564
9565 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9566
9567         * device-msw.c:
9568         * eldap.c:
9569         * event-Xt.c:
9570         * event-stream.c:
9571         * print.c:
9572         Do UNGCPRO before return.
9573
9574 2000-11-14  Martin Buchholz <martin@xemacs.org>
9575
9576         * XEmacs 21.2.37 is released.
9577
9578 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9579
9580         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9581         Add comments about discarded return value.
9582
9583 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9584
9585         * callint.c:
9586         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9587
9588 2000-10-27  Andy Piper  <andy@xemacs.org>
9589
9590         * gutter.c (Fset_default_gutter_position): default left and right
9591         gutters to visible.
9592         (calculate_gutter_size): calculate resonable heuristic for left
9593         and right gutter sizes.
9594         (specifier_vars_of_gutter): change left and right gutter sizes to
9595         autodetect.
9596         (calculate_gutter_size_from_display_lines): new function.
9597         (output_gutter): check for resizing on left and right gutters.
9598         (clear_gutter): don't special case top and left gutters.
9599         (specifier_vars_of_gutter): use new signature for
9600         set_specifier_caching.
9601
9602         * glyphs-x.c (x_redisplay_widget): spelling fix.
9603         * glyphs.c (specifier_vars_of_glyphs):
9604         * menubar.c (specifier_vars_of_menubar):
9605         * redisplay.c (specifier_vars_of_redisplay):
9606         * toolbar.c (specifier_vars_of_toolbar):
9607         * window.c (specifier_vars_of_window):
9608         * scrollbar.c (specifier_vars_of_scrollbar):
9609         (complex_vars_of_scrollbar): use new signature for
9610         set_specifier_caching.
9611
9612         * specifier.c (set_specifier_caching): include recompute flag.
9613         (recompute_one_cached_specifier_in_window): always recompute if
9614         flag set.
9615         (recompute_one_cached_specifier_in_frame): ditto.
9616
9617         * specifier.h (struct specifier_caching): add recompute flag.
9618
9619 2000-10-24  Andy Piper  <andy@xemacs.org>
9620
9621         * unexcw.c (copy_executable_and_dump_data_section): add new
9622         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9623         5.0 happy.
9624
9625 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9626
9627         * console-x.h (x_device): New member modifier_release_time.
9628         * event-Xt.c (x_handle_sticky_modifiers):
9629         Bound interval modifier keys are sticky.
9630         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9631         * events.h: extern it.
9632
9633 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9634
9635         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9636
9637 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9638
9639         * event-stream.c (execute_command_event): Preserve current_events
9640         and the like when event is misc-user-event.
9641         Inhibit quit during the call to maybe_echo_keys.
9642
9643 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9644
9645         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9646         symlink when buffer is killed.
9647         (inhibit_clash_detection): New variable.
9648
9649 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9650
9651         * console.c (Fset_input_method): Trigger redisplay on tty.
9652
9653 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9654
9655         * process.c (Fprocess_status): Revert to previous behavior:
9656         (process-status "nosuchprocess") ==> nil
9657
9658 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9659
9660         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9661         Work around another GCC 2.95.2 optimizer bug.
9662
9663 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9664
9665         * process.c (Fget_process): Use LIST_LOOP_2.
9666         (kill_buffer_processes): Use LIST_LOOP_2.
9667
9668         * minibuf.c (Fall_completions):
9669         Delete old non-functional code for FSF fourth argument.
9670
9671         * frame.c (frame_matches_frame_spec):
9672         Renamed from `frame_matches_frametype'.  Update all callers.
9673         (device_matches_device_spec):
9674         Renamed from 'device_matches_console_spec'.  Update all callers.
9675
9676         * doc.c (Fsubstitute_command_keys):
9677         Remove buffer overflow crash.  Small code cleanups.
9678
9679         * casetab.c (check_case_table): Simpler code.
9680
9681         * window.c (Freplace_buffer_in_windows):
9682         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9683         (and similar implementation) as Fdelete_windows_on.
9684         Update all callers.
9685
9686         * alloc.c (Fmake_list):
9687         * alloc.c (make_vector):
9688         * alloc.c (Fmake_vector):
9689         * alloc.c (make_bit_vector):
9690         * alloc.c (Fmake_bit_vector):
9691         * alloc.c (Fbit_vector):
9692         * alloc.c (Fmake_string):
9693         * alloc.c (Fpurecopy):
9694         * alloc.c (Fmemory_limit):
9695         * buffer.c:
9696         * buffer.c (Fget_buffer):
9697         * buffer.c (Fkill_buffer):
9698         * buffer.c (complex_vars_of_buffer):
9699         * bytecode.c (Fcompiled_function_stack_depth):
9700         * callint.c (Fprefix_numeric_value):
9701         * event-stream.c:
9702         * event-stream.c (Fread_key_sequence):
9703         * casetab.c:
9704         * casetab.c (Fcase_table_p):
9705         * casetab.c (check_case_table):
9706         * casetab.c (Fset_case_table):
9707         * casetab.c (Fset_standard_case_table):
9708         * chartab.c:
9709         * chartab.c (Fchar_table_type):
9710         * chartab.c (Freset_char_table):
9711         * chartab.c (Fget_char_table):
9712         * chartab.c (Fget_range_char_table):
9713         * chartab.c (Fput_char_table):
9714         * chartab.c (Fmap_char_table):
9715         * chartab.c (Fcategory_table_p):
9716         * chartab.c (Fcheck_category_at):
9717         * chartab.c (Fchar_in_category_p):
9718         * chartab.c (Fcategory_table):
9719         * chartab.c (Fcopy_category_table):
9720         * chartab.c (Fset_category_table):
9721         * chartab.c (Fcategory_designator_p):
9722         * chartab.c (Fcategory_table_value_p):
9723         * cmds.c (Fdelete_char):
9724         * cmds.c (Fdelete_backward_char):
9725         * cmds.c (Fself_insert_command):
9726         * cmds.c (Fself_insert_internal):
9727         * console.c (Fvalid_console_type_p):
9728         * console.c (Fcdfw_console):
9729         * console.c (Fconsole_type):
9730         * console.c (Fconsole_name):
9731         * console.c (Fconsole_device_list):
9732         * console.c (Fconsole_on_window_system_p):
9733         * data.c:
9734         * data.c (Feq):
9735         * data.c (Fold_eq):
9736         * data.c (Fsubr_interactive):
9737         * data.c (Fchar_to_int):
9738         * data.c (Fint_to_char):
9739         * data.c (Fsetcar):
9740         * data.c (Fsetcdr):
9741         * data.c (Fnumber_to_string):
9742         * data.c (Fstring_to_number):
9743         * data.c (Frem):
9744         * database.c (mark_database):
9745         * database.c (finalize_database):
9746         * database.c (Fdatabase_live_p):
9747         * database.c (Fdatabasep):
9748         * device-x.c (Fx_get_resource):
9749         * device.c (Fdfw_device):
9750         * dired.c:
9751         * dired.c (Ffile_name_completion):
9752         * dired.c (Ffile_name_all_completions):
9753         * dired.c (Fuser_name_completion):
9754         * dired.c (Fuser_name_completion_1):
9755         * dired.c (Fuser_name_all_completions):
9756         * doc.c (Fdocumentation):
9757         * doc.c (Fdocumentation_property):
9758         * doc.c (Fsubstitute_command_keys):
9759         * editfns.c:
9760         * editfns.c (Fchar_to_string):
9761         * editfns.c (Fstring_to_char):
9762         * editfns.c (Ftemp_directory):
9763         * editfns.c (Finsert_char):
9764         * editfns.c (Fbuffer_substring_no_properties):
9765         * editfns.c (Fnarrow_to_region):
9766         * editfns.c (Fchar_equal):
9767         * editfns.c (Fchar_Equal):
9768         * editfns.c (Ftranspose_regions):
9769         * emacs.c (Fdump_emacs):
9770         * eval.c (Fthrow):
9771         * eval.c (Fcommand_execute):
9772         * eval.c (Fautoload):
9773         * eval.c (Fbacktrace):
9774         * eval.c (Fbacktrace_frame):
9775         * events.c:
9776         * events.c (Fcopy_event):
9777         * events.c (Fcharacter_to_event):
9778         * events.c (Fevent_button):
9779         * events.c (Fevent_process):
9780         * extents.c:
9781         * extents.c (Fnext_extent_change):
9782         * extents.c (Fextent_property):
9783         * faces.c (Ffacep):
9784         * faces.c (Fmake_face):
9785         * file-coding.c:
9786         * file-coding.c (Fencode_shift_jis_char):
9787         * file-coding.c (Fencode_big5_char):
9788         * fileio.c (Ffile_name_directory):
9789         * fileio.c (Ffile_name_nondirectory):
9790         * fileio.c (Ffile_name_as_directory):
9791         * fileio.c (Fdirectory_file_name):
9792         * fileio.c (Ffile_truename):
9793         * fileio.c (Fsubstitute_in_file_name):
9794         * fileio.c (Ffile_modes):
9795         * fileio.c (Fset_file_modes):
9796         * fileio.c (Fset_default_file_modes):
9797         * fileio.c (Fverify_visited_file_modtime):
9798         * floatfns.c (Facos):
9799         * floatfns.c (Fasin):
9800         * floatfns.c (Fatan):
9801         * floatfns.c (Fcos):
9802         * floatfns.c (Fsin):
9803         * floatfns.c (Ftan):
9804         * floatfns.c (Fbessel_j0):
9805         * floatfns.c (Fbessel_j1):
9806         * floatfns.c (Fbessel_jn):
9807         * floatfns.c (Fbessel_y0):
9808         * floatfns.c (Fbessel_y1):
9809         * floatfns.c (Fbessel_yn):
9810         * floatfns.c (Ferf):
9811         * floatfns.c (Ferfc):
9812         * floatfns.c (Flog_gamma):
9813         * floatfns.c (Fexp):
9814         * floatfns.c (Fexpt):
9815         * floatfns.c (Flog):
9816         * floatfns.c (Flog10):
9817         * floatfns.c (Fsqrt):
9818         * floatfns.c (Fcube_root):
9819         * floatfns.c (Facosh):
9820         * floatfns.c (Fasinh):
9821         * floatfns.c (Fatanh):
9822         * floatfns.c (Fcosh):
9823         * floatfns.c (Fsinh):
9824         * floatfns.c (Ftanh):
9825         * floatfns.c (Fabs):
9826         * floatfns.c (Ffloat):
9827         * floatfns.c (Flogb):
9828         * floatfns.c (Fceiling):
9829         * floatfns.c (Ffloor):
9830         * floatfns.c (Fround):
9831         * floatfns.c (Ftruncate):
9832         * floatfns.c (Ffceiling):
9833         * floatfns.c (Fffloor):
9834         * floatfns.c (Ffround):
9835         * floatfns.c (Fftruncate):
9836         * fns.c (Fstring_equal):
9837         * fns.c (Fstring_lessp):
9838         * fns.c (concat2):
9839         * fns.c (concat3):
9840         * fns.c (vconcat2):
9841         * fns.c (vconcat3):
9842         * fns.c (Fsubstring):
9843         * fns.c (Fassoc):
9844         * fns.c (Fold_assoc):
9845         * fns.c (assoc_no_quit):
9846         * fns.c (Fassq):
9847         * fns.c (Fold_assq):
9848         * fns.c (assq_no_quit):
9849         * fns.c (Frassoc):
9850         * fns.c (Fold_rassoc):
9851         * fns.c (Frassq):
9852         * fns.c (Fold_rassq):
9853         * fns.c (rassq_no_quit):
9854         * fns.c (Fremassoc):
9855         * fns.c (remassoc_no_quit):
9856         * fns.c (Fremassq):
9857         * fns.c (remassq_no_quit):
9858         * fns.c (Fremrassoc):
9859         * fns.c (Fremrassq):
9860         * fns.c (remrassq_no_quit):
9861         * fns.c (Fsort):
9862         * fns.c (Fplist_get):
9863         * fns.c (Fplist_put):
9864         * fns.c (Fplist_remprop):
9865         * fns.c (Fplist_member):
9866         * fns.c (Flax_plist_get):
9867         * fns.c (Flax_plist_put):
9868         * fns.c (Flax_plist_remprop):
9869         * fns.c (Flax_plist_member):
9870         * fns.c (Fequal):
9871         * fns.c (Fold_equal):
9872         * fns.c (Frequire):
9873         * fns.c (Fbase64_encode_region):
9874         * fns.c (Fbase64_encode_string):
9875         * fns.c (Fbase64_decode_region):
9876         * frame.c:
9877         * frame.c (frame_matches_frame_spec):
9878         * frame.c (device_matches_device_spec):
9879         * frame.c (next_frame):
9880         * frame.c (previous_frame):
9881         * frame.c (Fnext_frame):
9882         * frame.c (Fprevious_frame):
9883         * frame.c (Fframe_property):
9884         * frame.c (Fset_frame_height):
9885         * frame.c (Fset_frame_size):
9886         * frame.h:
9887         * glyphs.c:
9888         * glyphs.c (if):
9889         * glyphs.c (decode_error_behavior_flag):
9890         * glyphs.c (Fmake_image_instance):
9891         * indent.c (Findent_to):
9892         * intl.c (Fignore_defer_gettext):
9893         * keymap.c (Fkeymapp):
9894         * keymap.c (Flookup_key):
9895         * lread.c:
9896         * lread.c (Fload_internal):
9897         * lread.c (Feval_buffer):
9898         * lread.c (Feval_region):
9899         * macros.c (Fexecute_kbd_macro):
9900         * marker.c (set_marker_internal):
9901         * marker.c (Fset_marker):
9902         * marker.c (set_marker_restricted):
9903         * marker.c (Fcopy_marker):
9904         * marker.c (noseeum_copy_marker):
9905         * menubar.c:
9906         * menubar.c (Fpopup_menu):
9907         * minibuf.c:
9908         * mule-charset.c (Fcharset_name):
9909         * mule-charset.c (Fchar_charset):
9910         * mule-charset.c (Fchar_octet):
9911         * mule-charset.c (Fsplit_char):
9912         * mule-wnnfns.c (Fwnn_open):
9913         * mule-wnnfns.c (Fwnn_dict_comment):
9914         * mule-wnnfns.c (Fwnn_quit_henkan):
9915         * mule-wnnfns.c (Fwnn_word_toroku):
9916         * mule-wnnfns.c (Fwnn_word_sakujo):
9917         * mule-wnnfns.c (Fwnn_word_use):
9918         * mule-wnnfns.c (Fwnn_hindo_set):
9919         * objects.c:
9920         * objects.c (Fmake_color_instance):
9921         * objects.c (Fmake_font_instance):
9922         * print.c (Fwrite_char):
9923         * process.c:
9924         * process.c (mark_process):
9925         * process.c (print_process):
9926         * process.c (get_process_from_usid):
9927         * process.c (Fprocessp):
9928         * process.c (Fprocess_live_p):
9929         * process.c (Fget_process):
9930         * process.c (Fget_buffer_process):
9931         * process.c (get_process):
9932         * process.c (Fprocess_id):
9933         * process.c (Fprocess_name):
9934         * process.c (Fprocess_command):
9935         * process.c (init_process_io_handles):
9936         * process.c (start_process_unwind):
9937         * process.c (Fstart_process_internal):
9938         * process.c (Fopen_multicast_group_internal):
9939         * process.c (Fset_process_window_size):
9940         * process.c (read_process_output):
9941         * process.c (send_process):
9942         * process.c (Fprocess_tty_name):
9943         * process.c (Fset_process_buffer):
9944         * process.c (Fprocess_buffer):
9945         * process.c (Fprocess_mark):
9946         * process.c (set_process_filter):
9947         * process.c (Fset_process_filter):
9948         * process.c (Fprocess_filter):
9949         * process.c (Fprocess_send_region):
9950         * process.c (Fprocess_send_string):
9951         * process.c (exec_sentinel):
9952         * process.c (Fset_process_sentinel):
9953         * process.c (Fprocess_sentinel):
9954         * process.c (status_notify):
9955         * process.c (Fprocess_status):
9956         * process.c (Fprocess_exit_status):
9957         * process.c (process_send_signal):
9958         * process.c (Fprocess_send_eof):
9959         * process.c (deactivate_process):
9960         * process.c (remove_process):
9961         * process.c (Fdelete_process):
9962         * process.c (kill_buffer_processes):
9963         * process.c (Fprocess_kill_without_query):
9964         * process.c (Fprocess_kill_without_query_p):
9965         * rangetab.c:
9966         * rangetab.c (Fget_range_table):
9967         * rangetab.c (Fput_range_table):
9968         * rangetab.c (Fremove_range_table):
9969         * rangetab.c (Fclear_range_table):
9970         * search.c:
9971         * search.c (Fskip_chars_forward):
9972         * search.c (Fskip_chars_backward):
9973         * search.c (Fskip_syntax_forward):
9974         * search.c (Fskip_syntax_backward):
9975         * search.c (search_command):
9976         * search.c (Freplace_match):
9977         * search.c (Fregexp_quote):
9978         * select.c (Fown_selection_internal):
9979         * select.c (Fselection_owner_p):
9980         * select.c (Fselection_exists_p):
9981         * select.c (Fget_selection_internal):
9982         * specifier.c:
9983         * symbols.c:
9984         * symbols.c (Fintern):
9985         * symbols.c (Fintern_soft):
9986         * symbols.c (Funintern):
9987         * symbols.c (Fapropos_internal):
9988         * symbols.c (Fset_default):
9989         * syntax.c:
9990         * syntax.c (Fsyntax_table_p):
9991         * syntax.c (Fcopy_syntax_table):
9992         * syntax.c (Fset_syntax_table):
9993         * syntax.c (Fchar_syntax):
9994         * syntax.c (syntax_match):
9995         * syntax.c (Fmatching_paren):
9996         * syntax.c (Fforward_word):
9997         * syntax.c (scan_lists):
9998         * syntax.c (Fscan_lists):
9999         * syntax.c (Fscan_sexps):
10000         * syntax.c (Fparse_partial_sexp):
10001         * toolbar.c (Fcheck_toolbar_button_syntax):
10002         * tooltalk.doc:
10003         * window.c:
10004         * window.c (Fwindowp):
10005         * window.c (Fwindow_live_p):
10006         * window.c (Fwindow_point):
10007         * window.c (Fdelete_window):
10008         * window.c (Fnext_window):
10009         * window.c (Fprevious_window):
10010         * window.c (Fother_window):
10011         * window.c (window_loop):
10012         * window.c (Fget_lru_window):
10013         * window.c (Fsplit_window):
10014         * window.c (Fenlarge_window):
10015         * window.c (Fenlarge_window_pixels):
10016         * window.c (Fshrink_window):
10017         * window.c (Fshrink_window_pixels):
10018         * window.c (change_window_height):
10019         * window.c (Fwindow_configuration_p):
10020         * window.c (Fcurrent_window_configuration):
10021         * window.h:
10022         * casefiddle.c (casify_object):
10023         * casefiddle.c (Fupcase):
10024         * casefiddle.c (Fdowncase):
10025         * casefiddle.c (Fcapitalize):
10026         * casefiddle.c (Fupcase_initials):
10027         * casefiddle.c (casify_region_internal):
10028         * casefiddle.c (casify_region):
10029         * casefiddle.c (Fupcase_region):
10030         * casefiddle.c (Fdowncase_region):
10031         * casefiddle.c (Fcapitalize_region):
10032         * casefiddle.c (Fupcase_initials_region):
10033         * casefiddle.c (Fupcase_word):
10034         * casefiddle.c (Fdowncase_word):
10035         * casefiddle.c (Fcapitalize_word):
10036         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10037         Replace 0 with '\0' when working with bytes.
10038         Replace initial "(" with "\(" in docstrings.
10039
10040 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10041
10042         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10043
10044         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10045
10046 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10047
10048         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10049
10050 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10051
10052         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10053         correctly.
10054
10055 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10056
10057         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10058         (inhibit_auto_save_session): New variable.
10059         (vars_of_fileio): Declare and initialize them.
10060         * fileio.c (Fdo_auto_save): Don't create session file if
10061         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10062
10063 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10064
10065         * sgiplay.c (play_internal): C++ compilability.
10066         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10067         * callproc.c (Fold_call_process_internal):
10068         Remove unused vars `env', `first'.
10069         * scrollbar.c (update_scrollbar_instance):
10070         #### unused var `current_window'.
10071         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10072         etc. within #ifdef NOT_YET.
10073         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10074         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10075         * specifier.c (specifier_instance):
10076         #### unused var `tag'.
10077         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10078
10079 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10080
10081         * fns.c (Fbutlast):
10082         * fns.c (list_sort):
10083         * fns.c (Ffillarray):
10084         * fns.c (bytecode_nconc2):
10085         * fns.c (Fnconc):
10086         * fns.c (mapcar1):
10087         * fns.c (Fmapconcat):
10088         Be pedantically 64-bit correct.  For the time when someone will
10089         want to have a list with length > 2**32.
10090
10091         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10092         Work around MIPSpro compiler bug.
10093
10094         * process-unix.c (unix_kill_child_process): Add snarky comment.
10095         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10096
10097         * config.h.in: Oops, _getpt ==> _getpty
10098
10099 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10100
10101         * config.h.in:
10102         * regex.c:
10103         Use void*, not char*, as return type of alloca().
10104
10105         * alloc.c (free_marker): Side effect inside assert expression!
10106
10107 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10108
10109         * mule-charset.c (Fset_charset_ccl_program): To check
10110         if the given ccl program is valid, use setup_ccl_program()
10111         instead of CHECK_VECTOR().
10112         (Fmake_charset): Likewise.
10113
10114 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10115
10116         * faces.c (get_extent_fragment_face_cache_index):
10117         Fix cachel.merged_faces memory leak.
10118
10119 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10120
10121         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10122         Reset MSB of octets obtained by DECODE_SJIS
10123         because of the incompatibility with Emacs.
10124         (ccl_driver)<CCL_ENCODE_SJIS>:
10125         Set MSB of octets before passing them to
10126         ENCODE_SJIS because of the incompatibility
10127         with Emacs.
10128
10129 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10130
10131         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10132         (DECLARE_LRECORD): Undo the last change.
10133         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10134
10135 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10136
10137         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10138         the implementation to lrecord_implementations_table.
10139
10140 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10141
10142         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10143         initial value of `lrecord_type_##c_name' and
10144         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10145         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10146         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10147         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10148         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10149
10150 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10151
10152         * miscplay.c (sndcnv8S_2mono):
10153         (sndcnv2monounsigned):
10154         (sndcnvULaw_2linear):
10155         (sndcnv16swap):
10156         Remove implementation-defined behavior.
10157
10158 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10159
10160         * input-method-xlib.c: Warning suppression.
10161
10162 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10163
10164         * mule-ccl.c: Sync up with Emacs 21.0.90.
10165         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10166         Do nothing.
10167         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10168         Likewise.
10169         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10170         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10171         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10172         leading char belongs to official 2-dimensional charset.
10173         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10174         write the given character as is.  Otherwise,
10175         if it is a multibyte char, convert it by
10176         non_ascii_set_charptr_emchar, then write it.
10177         (CCL_WRITE_STRING): Likewise.
10178         (ccl_get_compiled_code): New function.
10179         (setup_ccl_program): When ccl_prog is invalid,
10180         return -1.
10181         (Fregister_code_conversion_map): New function.
10182         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10183
10184         * mule-ccl.h: Sync up with Emacs 21.0.90.
10185         (Fregister_ccl_program): export it.
10186
10187         * redisplay-msw.c (separate_textual_runs):
10188         If ccl program is not valid, don't do ccl conversion.
10189
10190         * redisplay-x.c (separate_textual_runs): Ditto.
10191
10192         * file-coding.c (Fmake_coding_system):
10193         When type is ccl and value is vector, register it
10194         with a proper symbol.  And checks whether the
10195         given ccl program is valid.
10196         (mule_decode): When calling ccl_driver, if src indicates
10197         NULL pointer, set an empty string instead.
10198         (mule_encode): Likewise.
10199
10200 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10201
10202         The following large batch of changes gets us back to a state of
10203         C++ compilability.  Extbyte is now a char, which means that
10204         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10205
10206         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10207
10208         * sound.c (Fplay_sound): Type correctness.
10209
10210         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10211         (x_get_window_property): Type correctness.
10212         (receive_incremental_selection): unsigned char ==> Extbyte
10213         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10214         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10215         (Fx_store_cutbuffer_internal): Type correctness.
10216
10217         * process-unix.c (try_to_initialize_subtty): Type correctness.
10218
10219         * objects-x.c (x_print_color_instance): Type correctness.
10220         (x_print_font_instance): Type correctness.
10221         (x_list_fonts): SExtbyte ==> Extbyte.
10222         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10223         (x_find_charset_font): SExtbyte ==> Extbyte.
10224         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10225         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10226         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10227         Use bufbyte_strcmp.
10228
10229         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10230         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10231         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10232         (BYTE_C0_P): Use bit ops for char-signedness safety.
10233         (BYTE_C1_P): Use bit ops for char-signedness safety.
10234         (CHARSET_BY_LEADING_BYTE):
10235         (CHARSET_BY_ATTRIBUTES):
10236         Always use inline function.
10237         Use type_checking_assert.
10238         Hide chlook.
10239
10240         * mule-charset.c (non_ascii_charptr_copy_char):
10241         Modify to work with both ASCII and non-ASCII characters.
10242         Improve docs and variable names.
10243         Replace over-clever fall-through switch with a simple loop.
10244         (Lstream_get_emchar_1):
10245         Replace over-clever fall-through switch with a simple loop.
10246
10247         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10248         Warning suppression.
10249
10250         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10251         the return value of Lstream_getc, which could be EOF as well.
10252
10253         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10254
10255         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10256         APIs can be used on Extbytes without casts.  Risky!
10257         (SExtbyte): Remove.
10258         (UExtbyte): Remove.
10259
10260         * input-method-xlib.c (XIM_init_device):
10261         Use Xlib.h instead of IntrinsicP.h.
10262         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10263         which will break in X11R7.
10264         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10265         to call XRegisterIMInstantiateCallback with correct types.
10266
10267         * gui-x.c (button_item_to_widget_value): Type correctness.
10268
10269         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10270
10271         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10272         (xbm_instantiate_1): Type correctness.
10273         (BUILD_GLYPH_INST):  Type correctness.
10274
10275         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10276
10277         * file-coding.c:
10278         (decode_coding_sjis):
10279         (decode_coding_big5):
10280         (decode_coding_ucs4):
10281         (decode_coding_utf8):
10282         (decode_coding_iso2022):
10283         (decode_coding_no_conversion):
10284         Make all decoding functions take an Extbyte * arg.
10285         (encode_coding_sjis):
10286         (encode_coding_big5):
10287         (encode_coding_ucs4):
10288         (encode_coding_utf8):
10289         (encode_coding_iso2022):
10290         (encode_coding_no_conversion):
10291         Make all encoding functions take a Bufbyte * arg.
10292         Use size_t instead of unsigned int for memory sizes.
10293         Only cast to unsigned char whenever dereferencing Extbyte *.
10294
10295         * doc.c (unparesseuxify_doc_string): Type correctness.
10296
10297         * console-x.c (split_up_display_spec):
10298         Rewrite without using details of internal string representation.
10299         (x_semi_canonicalize_device_connection): Type correctness.
10300
10301         * config.h.in:
10302         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10303         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10304         (HAVE_XFREE386): Removed.
10305
10306         * buffer.h (DEC_CHARPTR): `const' correctness.
10307         (bufbyte_strcmp): New.
10308         (bufbyte_memcmp): New.
10309
10310         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10311
10312         * buffer.h (XCHAR_OR_CHAR_INT):
10313         Always use inline function.
10314         Remove redundant type checking assert() - XINT will abort quite nicely.
10315
10316 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10317
10318         * search.c (Freplace_match): Set newtext to an empty string.
10319
10320 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10321
10322         * s/decosf1-3.h: Remove #include of stropts.h
10323         * s/ptx.h: Remove #include of stropts.h
10324         * s/usg5-4.h: Remove #include of stropts.h
10325         * sysproc.h:
10326         * config.h.in:
10327         Use stropts.h, not sys/stropts.h.
10328         Use strtio.h, not sys/strtio.h.
10329
10330 2000-10-04  Martin Buchholz <martin@xemacs.org>
10331
10332         * XEmacs 21.2.36 is released.
10333
10334 2000-09-21  Andy Piper  <andy@xemacs.org>
10335
10336         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10337         changes still involve copying the widget tree.
10338         (update_widget_face): make sure a change is register in the widget
10339         tree. Call update_tab_widget_face appropriately.
10340         (update_tab_widget_face): ditto.
10341         (x_tab_control_redisplay): make sure non-structural changes still
10342         involve copying the widget tree.
10343
10344 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10345
10346         * lread.c (locate_file): Check the path element is non-nil.
10347
10348 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10349
10350         * lisp.h: Warning suppression for SCO compilers.
10351
10352         * redisplay-tty.c (reset_tty_modes): Fix crash.
10353         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10354
10355 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10356
10357         Big signal/process handling overhaul.  Bugs fixed:
10358         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10359         M-x comint-kill-subjob should work for both values nil and t of
10360         process-connection-type. It was broken on most platforms.
10361         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10362         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10363         * process-unix.c: Signal/Process handling overhaul.
10364         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10365         (allocate_pty): Use all available modern methods of allocating
10366         ptys, falling back to old style BSD allocation as a last resort.
10367         Use allegedly more secure Unix98 pty allocation by default.
10368         (allocate_pty_the_old_fashioned_way): New. the last resort.
10369         (unix_create_process): Push ptem, ldterm, ttcompat where
10370         available.  Autoconfiscate.
10371         (try_to_initialize_subtty): New.
10372         (unix_kill_child_process): Proper signal handling for ptys on most
10373         platforms, using special knowledge of AIX, BSD, etc...
10374         (unix_create_process): Always disconnect_controlling_terminal() for
10375         subprocesses, whether using ptys or not.
10376         * process.h: Remove old getpt-dependent PTY code.
10377         * process.c (Fprocess_send_signal): New, obvious generic function.
10378         (decode_signal): New.
10379         (Finterrupt_process):
10380         (Fkill_process):
10381         (Fquit_process):
10382         (Fstop_process):
10383         (Fcontinue_process):
10384         (Fsignal_process): Use decode_signal.
10385         (process_send_signal):
10386         Many docstring corrections.
10387         Allow any signal to be sent to a process object.
10388         * config.h.in: Add symbols for big signal/process overhaul.
10389         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10390         * sysproc.h: Include process-related headers, where available:
10391         sys/stropts.h sys/strtio.h pty.h libutil.h
10392         * s/irix4-0.h:
10393         * s/irix5-0.h:
10394         * s/cygwin32.h:
10395         * s/gnu.h:
10396         * s/linux.h:
10397         * s/hpux.h:
10398         * s/aix3-1.h:
10399         Remove old S&M pty stuff.
10400         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10401         * systty.h: Simplify cpp hackery, improve comments.
10402         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10403
10404         * editfns.c (Fformat_time_string):
10405         Be a little more paranoid with the return value of ctime.
10406
10407         * fileio.c (check_executable):
10408         (check_writable):
10409         Use symbolic constants X_OK, W_OK.
10410
10411         * console-x.c (split_up_display_spec): Fix a warning.
10412
10413 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10414
10415         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10416         * ntproc.c (sys_spawnve): make_string ==> build_string
10417         Small clarity improvements.
10418
10419 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10420
10421         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10422
10423         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10424
10425         * config.h.in (HAVE_STRCASECMP): Remove.
10426
10427 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10428
10429         * redisplay-output.c (redisplay_output_pixmap):
10430         Cleaner and possibly more 64-bit correct code.
10431
10432 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10433
10434         * dumper.c (pdump_load_finish): move restoration of
10435         `noninteractive1' to emacs.c (main_1).
10436         * emacs.c (main_1): protect LISP-visible command-line flags
10437         from pdump_load().
10438
10439 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10440
10441         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10442         DUMP_TARGET instead of literal program names.
10443
10444 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10445
10446         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10447
10448 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10449
10450         * *: Spelling mega-patch
10451
10452 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10453
10454         * fns.c (bad_bad_turtle):
10455         Delete "Eek!" comment, since we fixed the bug to which it refers.
10456
10457 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10458
10459         * alloca.c: Replace REGISTER with register.
10460
10461 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10462
10463         * file-coding.c (ucs_to_char): Use countof.
10464
10465 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10466
10467         * file-coding.c: (ucs_to_char):
10468         (complex_vars_of_file_coding):
10469         Use countof instead of sizeof.
10470         Use CHECK_NATNUM instead of CHECK_INT.
10471
10472         * sysdep.c (strcasecmp): Remove.
10473         * device-x.c (ascii_strcasecmp): New.
10474         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10475         Avoid using non-standard non-portable strcasecmp.
10476
10477 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10478
10479         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10480         * font-lock.c: remove reference to emacsfns.h.
10481         * search.c: small doc improvement.
10482         * event-Xt.c: correct file names in comments.
10483         * console-x.h Correct file names in comments.
10484         * frame.c: Correct file names in comments.
10485         * event-stream.c: remove Energize from comments.
10486
10487 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10488
10489         * symeval.h (DEFERROR_STANDARD):
10490         (DEFERROR):
10491         (DEFSYMBOL):
10492         (DEFSYMBOL_NO_DUMP):
10493         (DEFSYMBOL_MULTIWORD_PREDICATE):
10494         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10495         (DEFKEYWORD):
10496         The construct &##name is not sensible C.
10497         Fixes compilation errors with Unixware native compiler.
10498
10499 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10500
10501         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10502         (next_frame_internal): Removed.  We now just have next_frame.
10503         (next_frame):
10504         Write a simpler and cleaner one-pass algorithm.
10505         Remove called_from_delete_device arg and #ifdefed-out code.
10506         (previous_frame):
10507         Renamed from prev_frame.  Update callers.
10508         Cleaned up to have an analogous implementation to next_frame.
10509         (other_visible_frames_internal): Remove the
10510         called_from_delete_device bogus arg, and hence, remove this
10511         function.  Just use other_visible_frames().
10512
10513         * window.c (Fnext_window):
10514         Prettify docstring.
10515         Since next_frame() is guaranteed to return a frame, remove check
10516         for nil inserted in previous patch.
10517         (Fprevious_window):
10518         Prettify docstring.
10519         Make code look more like Fnext_window.
10520         (window_loop):
10521         Respect the `console' arg when iterating through windows.
10522         Fixes bug: (get-buffer-window buffer t device) not respecting
10523         the `device' arg.
10524         This function needs more work, as others have pointed out.
10525
10526         * frame.h: Rename prev_frame to previous_frame.
10527         device_matches_console_spec no longer takes a `frame' arg.
10528
10529         * s/gnu.h:
10530         * s/linux.h:
10531         * s/hpux.h:
10532         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10533         From "Golubev I. N." <gin@mo.msk.ru>.
10534
10535         * make-src-depend: Fix typo.
10536
10537 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10538
10539         * window.c (Fnext_window):
10540         next_frame() might return nil, not a frame.
10541         Fixes this crash:
10542         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10543
10544         * frame.c (next_frame_internal):
10545         We've passed a frame if we've passed its device.
10546         Fixes this crash:
10547         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10548 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10549
10550 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10551
10552         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10553         Allow option to suppress accelerators in menu/dialog items.
10554         (populate_or_checksum_helper): Pass dialog title through above.
10555
10556 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10557
10558         * event-msw.c (mswindows_key_to_emacs_keysym):
10559         Add "pause" key, fix "menu" key.
10560
10561 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10562
10563         * eval.c (reinit_vars_of_eval):
10564         Increase max_lisp_eval_depth to 1000,
10565         required for thai-xtis.el to byte-compile under some circumstances.
10566
10567 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10568
10569         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10570         From Kenichi Handa.
10571
10572 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10573
10574         * make-src-depend: Make the generated Makefiles smaller.
10575
10576         * s/hpux.h (SETUP_SLAVE_PTY):
10577         Provide a %d in the format string for the errno argument.
10578
10579         * editfns.c (Ftemp_directory):
10580         Warning fix.
10581         Avoid buffer overrun on very long file name.
10582
10583         * input-method-xlib.c (XIM_init_device):
10584         6th parameter of XRegisterIMInstantiateCallback has different
10585         pointer types on different OSes, so simply cast to (void *).
10586
10587         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10588
10589         * sysdll.c (dll_open):
10590         shl_load will hang hard if passed a NULL filename.
10591         Simply return NULL for compatibility with dlopen.
10592         * sysdll.c: Conform to XEmacs coding standards.
10593
10594         * sysdep.c (get_pty_max_bytes):
10595         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10596
10597 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10598
10599         * tooltalk.c: Add #include <syssignal.h>
10600
10601 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10602
10603         * s/hpux.h: Don't use undefined function sigunblock().
10604
10605 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10606
10607         * config.h.in: Add HAVE_BALLOON_HELP.
10608         * emacs.c: Use HAVE_BALLOON_HELP.
10609         * Makefile.in.in (x_objs):
10610         Make Balloon Help conditional on finding shape.h.
10611
10612 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10613
10614         * syntax.c (regex_emacs_buffer_p): New variable.
10615         * syntax.h (regex_emacs_buffer_p): extern.
10616         * search.c (looking_at_1):
10617         (string_match_1):
10618         (fast_string_match):
10619         (search_buffer): Set regex_emacs_buffer_p.
10620         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10621         when before_dot, at_dot, after_dot.
10622
10623 2000-08-23  Andy Piper  <andy@xemacs.org>
10624
10625         * gui-x.c (popup_selection_callback): Only set action_occurred
10626         when we really have an image instance.
10627         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10628
10629 2000-08-23  Andy Piper  <andy@xemacs.org>
10630
10631         * gui-msw.c (mswindows_handle_gui_wm_command): set
10632         action_occurred.
10633         * gui-x.c (popup_selection_callback): ditto.
10634
10635         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10636         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10637         (struct Lisp_Image_Instance): add action_occurred flag.
10638
10639         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10640         (image_instance_changed): ditto.
10641         (reset_frame_subwindow_instance_cache): only unmap windows - do
10642         not remove them from the cache also.
10643
10644         * glyphs-widget.c (tab_control_update): better debug.
10645         (progress_gauge_update): ditto.
10646         (layout_update): ditto.
10647         (layout_instantiate): ditto.
10648         (tab_control_order_only_changed): cope with null pending items.
10649
10650         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10651         debug. Force selection of an item when an action occurred. Cope
10652         with null pending_items.
10653         (mswindows_progress_gauge_redisplay): better debug.
10654         * glyphs-x.c (x_tab_control_redisplay): ditto.
10655
10656         * redisplay.c (redisplay_frame): reset the frame cache if the
10657         frame is garbaged.
10658
10659         * window.c (Fset_window_configuration): potentially re-enable
10660         frame cache reset.
10661         (window_unmap_subwindows): need to finalize instances here since
10662         it is only used in mark_window_as_deleted.
10663
10664 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10665
10666         * nas.c (SndOpenDataForReading):
10667         nas.c (WaveOpenDataForReading):
10668         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10669         Somehow escaped from the 2000-08-14 patch.
10670
10671 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10672
10673         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10674         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10675
10676 2000-08-21  Andy Piper  <andy@xemacs.org>
10677
10678         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10679         window if it is not already displayed.
10680
10681         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10682         it is not already displayed.
10683
10684         * window.c (Fset_window_configuration): don't reset the frame
10685         cache.
10686
10687         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10688         instances from the frame cache if we are actually finalizing them.
10689         (reset_frame_subwindow_instance_cache): reset frame cache only
10690         after unmapping everything.
10691         (map_subwindow): set displayed flag after mapping.
10692
10693 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10694
10695         * data.c (indirect_function):
10696         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10697
10698         * eval.c (function_argcount):
10699         Use original function when signaling errors.
10700
10701 2000-08-18  Andy Piper  <andy@xemacs.org>
10702
10703         * frame.c (delete_frame_internal): use new
10704         free_frame_subwindow_instances name.
10705
10706         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10707         (add_tab_item): make return type correct.
10708         (mswindows_tab_control_instantiate): assert index of tab.
10709         (mswindows_tab_control_redisplay): Re-code to use
10710         gui_item_equal_sans_selected and gui_item_list_find_selected.
10711
10712         * glyphs-widget.c (tab_control_update): Correct comment.
10713
10714         * window.c (window_unmap_subwindows): use new
10715         unmap_subwindow_instance_cache_mapper.
10716         (window_unmap_subwindows_cache_mapper): deleted.
10717         (Fset_window_configuration): comparisons should now be with
10718         EQ. Preserve the subwindow instance cache across configuration
10719         changes.
10720         (allocate_window): ditto.
10721         (make_dummy_parent): ditto.
10722
10723         * glyphs.c (free_frame_subwindow_instances): rename from
10724         free_frame_subwindow_instance_cache. finalize all instances rather
10725         than just those in the display cache.
10726         (finalize_all_subwindow_instances): walk windows unmapping and
10727         finalizing subwindows.
10728         (unmap_subwindow_instance_cache_mapper): moved from
10729         window.c. Allow finalization as well as unmapping.
10730
10731         * gui.c (gui_item_list_find_selected): new function.
10732
10733         * gui.h (gui_item_list_find_selected): declare.
10734
10735         * glyphs-x.c (x_tab_control_redisplay): pick tab
10736         explicitly. Re-code to use gui_item_equal_sans_selected and
10737         gui_item_list_find_selected.
10738
10739         * glyphs-x.h: add lwlib-utils.h
10740
10741         * buffer.c (Frecord_buffer): undo previous change.
10742
10743 2000-08-09  Vin Shelton  <acs@xemacs.org>
10744
10745         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10746         possible.  Create temporary files more securely.  The patch was
10747         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10748         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10749         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10750         for details.
10751
10752 2000-08-07  Ben Wing  <ben@xemacs.org>
10753
10754         * getloadavg.c: remove duplicate (and windows-breaking)
10755         includes of fcntl.h and sys/file.h.
10756
10757         * nt.c: remove duplicate getloadavg() definition.
10758
10759         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10760         encodings.
10761
10762 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10763
10764         * eval.c (function_argcount): If function needs to be autoloaded
10765         actually use the loaded definition.
10766         GCPRO function.
10767
10768 2000-08-05  Ben Wing  <ben@xemacs.org>
10769
10770         * getloadavg.c: add prototype for getloadavg().  remove
10771         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10772         of the code).  remove duplicate header includes.
10773
10774         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10775
10776         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10777         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10778         useful load average.
10779
10780         * alloc.c (reinit_alloc_once_early): removed references to
10781         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10782         the lisp vars are the only things referencing the malloc_sbrk_*
10783         vars, and they were already if 0'd out.  these vars only exist
10784         in the older malloc.c, which is basically unused, and they're
10785         only for informational purposes.
10786
10787         * m\*.h: removed useless VIRT_ADDR_VARIES.
10788
10789         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10790
10791 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10792
10793         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10794         color if the image is a mono pixmap.
10795
10796 2000-07-30  Ben Wing  <ben@xemacs.org>
10797
10798         * Makefile.in.in (release):
10799         Remove stray @.
10800
10801         * buffer.c (directory_is_current_directory):
10802         * dired-msw.c (mswindows_get_files):
10803         * dired.c:
10804         * dired.c (Fdirectory_files):
10805         * dired.c (file_name_completion_stat):
10806         * dired.c (Ffile_attributes):
10807         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10808         preprocessor tricks, to avoid problems on some machines
10809         (e.g. SCO).
10810
10811         * callproc.c (egetenv): GC docs.
10812
10813         * console-msw.h:
10814         * console-msw.h (struct mswindows_dialog_id):
10815         * lrecord.h (lrecord_type):
10816         New object for use with MSW dialogs.
10817
10818         * console.h (struct console_methods):
10819         New enable/disable frame methods, for proper modal dialogs.
10820
10821         * device-msw.c (msprinter_default_printer): Fix to follow
10822         proper Mule conventions.
10823
10824         * device-msw.c:
10825         * device-msw.c (signal_open_printer_error):
10826         * device-msw.c (msprinter_init_device):
10827         * device-msw.c (ensure_not_printing):
10828         * device-msw.c (plist_get_margin):
10829         * device-msw.c (Fmsprinter_select_settings):
10830         * device-msw.c (finalize_devmode):
10831         * device-msw.c (Fmsprinter_settings_despecialize):
10832         * device-msw.c (signal_enum_priner_error):
10833         * extents.c (decode_extent):
10834         * extents.c (decode_map_extents_flags):
10835         * extents.c (decode_extent_at_flag):
10836         * extents.c (Fextent_at):
10837         * extents.c (Fextents_at):
10838         * extents.c (symbol_to_glyph_layout):
10839         [[[[2]]]] Use structured errors.
10840
10841         * dialog-msw.c:
10842         * dialog-msw.c (mswindows_is_dialog_msg):
10843         * dialog-msw.c (mark_mswindows_dialog_id):
10844         * dialog-msw.c (dialog_proc):
10845         * dialog-msw.c (handle_question_dialog_box):
10846         * dialog-msw.c (syms_of_dialog_mswindows):
10847         Define new object to clean up marking; use it as a dialog identifier.
10848         Call new delete-dialog-box-hook.
10849
10850         * dialog-x.c (dbox_selection_callback):
10851         * dialog-x.c (dbox_descriptor_to_widget_value):
10852         * dialog-x.c (x_make_dialog_box_internal):
10853         Call new delete-dialog-box-hook.
10854         Return an id.
10855
10856         * dialog.c:
10857         * dialog.c (syms_of_dialog):
10858         * dialog.c (vars_of_dialog):
10859         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10860
10861         * eval.c:
10862         * eval.c (signal_call_debugger):
10863         when noninteractive, output stack traces on the console instead
10864         of in a (never-seen) buffer.
10865
10866         * eval.c (signal_type_error):
10867         * eval.c (invalid_argument_2):
10868         * lisp.h:
10869         new funs for use w/structured errors.
10870
10871         * event-Xt.c:
10872         * event-Xt.c (x_to_emacs_keysym):
10873         * event-Xt.c (describe_event):
10874         * event-Xt.c (emacs_Xt_event_handler):
10875         * event-Xt.c (vars_of_event_Xt):
10876         * event-msw.c:
10877         * event-msw.c (mswindows_wnd_proc):
10878         * event-msw.c (vars_of_event_mswindows):
10879         rename {x,mswindows}-debug-events to debug-{}-events for
10880         consistency with other debug-foo variables.
10881
10882         * event-stream.c:
10883         document next-event more clearly.
10884
10885         * fileio.c (Ffile_name_directory):
10886         * fileio.c (Ffile_name_nondirectory):
10887         * fileio.c (Funhandled_file_name_directory):
10888         * fileio.c (file_name_as_directory):
10889         * fileio.c (Ffile_name_as_directory):
10890         * fileio.c (directory_file_name):
10891         * fileio.c (Fdirectory_file_name):
10892         * fileio.c (Fmake_temp_name):
10893         * fileio.c (Ffile_truename):
10894         * fileio.c (Fsubstitute_in_file_name):
10895         * fileio.c (expand_and_dir_to_file):
10896         * fileio.c (barf_or_query_if_file_exists):
10897         * fileio.c (check_executable):
10898         * fileio.c (Ffile_exists_p):
10899         * fileio.c (Ffile_writable_p):
10900         * fileio.c (Ffile_directory_p):
10901         * fileio.c (Ffile_regular_p):
10902         * fileio.c (Ffile_modes):
10903         * fileio.c (Ffile_newer_than_file_p):
10904         * fileio.c (Fverify_visited_file_modtime):
10905         * fileio.c (Fset_visited_file_modtime):
10906         * fileio.c (auto_save_1):
10907         (1). (2).
10908         fix up gcpro's.
10909
10910         * frame-msw.c:
10911         * frame-msw.c (mswindows_init_frame_1):
10912         * frame-msw.c (mswindows_enable_frame):
10913         * frame-msw.c (error_frame_unsizable):
10914         * frame-msw.c (msprinter_init_frame_1):
10915         * frame-msw.c (msprinter_init_frame_3):
10916         * frame-msw.c (console_type_create_frame_mswindows):
10917         (2).
10918         implement new enable/disable frame methods.
10919
10920         * frame-x.c:
10921         * frame-x.c (x_enable_frame):
10922         * frame-x.c (console_type_create_frame_x):
10923         implement new enable/disable frame methods.
10924
10925         * frame.c:
10926         * frame.c (Fdisable_frame):
10927         * frame.c (syms_of_frame):
10928         * frame.h (struct frame):
10929         implement new enable/disable frame methods/functions.
10930
10931         * general-slots.h:
10932         add initial-focus.
10933
10934         * glyphs-msw.c (mswindows_widget_instantiate):
10935         comment that initial-focus should be implemented.
10936
10937         * glyphs-widget.c:
10938         * glyphs-widget.c (check_valid_instantiator):
10939         * glyphs-widget.c (check_valid_orientation):
10940         * glyphs-widget.c (check_valid_tab_orientation):
10941         * glyphs-widget.c (check_valid_justification):
10942         * glyphs-widget.c (check_valid_border):
10943         * glyphs-widget.c (check_valid_callback):
10944         * glyphs-widget.c (check_valid_int_or_function):
10945         * glyphs-widget.c (check_valid_string_or_vector):
10946         * glyphs-widget.c (check_valid_item_list_1):
10947         * glyphs-widget.c (widget_validate):
10948         * glyphs-widget.c (combo_box_validate):
10949         * glyphs-widget.c (widget_instantiate):
10950         * glyphs-widget.c (syms_of_glyphs_widget):
10951         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10952         * glyphs-widget.c (image_instantiator_combo_box):
10953         * glyphs-widget.c (image_instantiator_scrollbar):
10954         * glyphs-widget.c (image_instantiator_tab_control):
10955         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10956         (2).
10957         support (unimplemented) keyword initial-focus.
10958         reindent long macros.
10959
10960         * glyphs-x.c (x_redisplay_widget):
10961         * glyphs-x.c (x_button_instantiate):
10962         * glyphs-x.c (x_button_redisplay):
10963         * glyphs-x.c (x_progress_gauge_instantiate):
10964         * glyphs-x.c (x_edit_field_instantiate):
10965         * glyphs-x.c (x_combo_box_instantiate):
10966         * glyphs-x.c (x_tab_control_instantiate):
10967         * glyphs-x.c (x_label_instantiate):
10968         * gui-x.c:
10969         * gui-x.c (button_item_to_widget_value):
10970         * gui-x.c (gui_items_to_widget_values_1):
10971         * gui-x.c (gui_item_children_to_widget_values):
10972         * gui-x.c (gui_items_to_widget_values):
10973         * gui-x.h:
10974         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10975         add new flag to gui-parsing routines to indicate whether
10976         accelerator specs should be supported.
10977
10978         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10979
10980         * glyphs.h (struct Lisp_Image_Instance):
10981         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10982         add initial-focus flag.
10983
10984         * gui.c:
10985         * gui.c (syms_of_gui):
10986         * gui.c (vars_of_gui):
10987         clean up menu-no-selection-hook.
10988
10989         * gui.h:
10990         support delete-dialog-box-hook.
10991
10992         * lread.c (Fload_internal):
10993         * lread.c (locate_file_in_directory_mapper):
10994         (1).
10995
10996         * lrecord.h:
10997         * lrecord.h (struct toolbar_button):
10998         * lrecord.h (syms_of_toolbar):
10999         document how to create a new object.
11000
11001         * menubar-msw.c (mswindows_char_is_accelerator):
11002         may be called on frames w/o menus.
11003
11004         * menubar.c (vars_of_menubar):
11005         clean up :filter docs.
11006
11007         * nt.c (readdir):
11008         * ntproc.c:
11009         (1).
11010
11011         * process-nt.c:
11012         * process-nt.c (validate_signal_number):
11013         * process-nt.c (signal_cannot_launch):
11014         * process-nt.c (nt_create_process):
11015         * process-nt.c (nt_send_process):
11016         * process-nt.c (nt_kill_child_process):
11017         * process-nt.c (nt_open_network_stream):
11018         * process-nt.c (syms_of_process_nt):
11019         (2).
11020         delete quote-handling.  call new lisp code that does it better.
11021
11022         * process-unix.c (connect_to_file_descriptor):
11023         * process-unix.c (allocate_pty):
11024         * process-unix.c (unix_send_process):
11025         * process-unix.c (unix_kill_child_process):
11026         * process-unix.c (unix_open_network_stream):
11027         * process-unix.c (unix_open_multicast_group):
11028         (1). (2).
11029
11030         * process.c:
11031         * process.c (Fstart_process_internal):
11032         (2).  need to canonicalize process path even if absolute.
11033
11034         * select-msw.c (symbol_to_ms_cf):
11035         * select-msw.c (ms_cf_to_symbol):
11036         * select-msw.c (cf_is_autofreed):
11037         * select-msw.c (mswindows_destroy_selection):
11038         * select.c:
11039         * select.c (syms_of_select):
11040         * select.h:
11041         support dibv5, fix bugs. (from Mike Alexander)
11042
11043         * select.c (Fget_selection_internal):
11044         * select.c (select_convert_out):
11045
11046         * sysdep.c:
11047         * sysdep.c (xemacs_stat):
11048         renamed.
11049
11050         * sysdep.c (mkdir):
11051         * sysdep.c (rmdir):
11052         but keep original stat() here because we provide encapsulation
11053         around these funs.
11054
11055         * sysfile.h:
11056         * sysfile.h (fstat):
11057         remove stat garbage.
11058
11059         * syswindows.h:
11060         fix X/MSW conflict.
11061         don't include tchar.h.  it's inappropriate because it makes
11062         compile-time distinctions when we want runtime distinctions.
11063         (we provide our own tchar replacements)
11064
11065         * toolbar.c:
11066         use default object printer for toolbar-button.
11067
11068         * unexcw.c:
11069         make sure we don't encapsulate.
11070
11071         * window.c (vars_of_window):
11072         emphasize that temp-buffer-show-hook is obsolete.
11073
11074 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11075
11076         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11077         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11078
11079         * events.c (Fevent_timestamp_lessp):
11080         Not 64-bit clean.  Use EMACS_INT, not int.
11081
11082 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11083
11084         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11085         unsigned int and changed the last enum to
11086         lrecord_type_last_built_in_type.
11087         (lrecord_implementations_table): changed prototype to know how
11088         long the array is supposed to be.
11089         (lrecord_type_count): new unsigned int to keep track of the
11090         current number of lisp lrecord types.
11091         (DEFINE_EXTERNAL_LRECORD):
11092         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11093         dynamic-modules to declare new lisp types. They are the same
11094         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11095         int for each new type, and increment lrecord_type_count by 1.
11096
11097         * alloc.c (lrecord_implementations_table): Changed to reference
11098         lrecord_type_last_built_in_type for the size of the array.
11099         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11100
11101 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11102
11103         * glyphs.h (check_valid_item_list): Renamed from
11104         check_valid_item_list_1.
11105
11106 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11107
11108         * select.c (Qselect_coerce): New.
11109         * select.c (Vselection_coercion_alist): New.
11110         * select.c (syms_of_select): Declare.
11111         * select.c (get-selection-internal): Use it.
11112         Use the new select-coerce functionality.
11113
11114         * select.c (select_coerce): New.
11115         * select.h (select_coerce): Declare.
11116         New function to coerce one type of data into another.
11117
11118 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11119
11120         * callproc.c (Fcall_process_internal):
11121         (Fcall_process_internal):
11122         * process-unix.c (unix_create_process):
11123         Save and restore the value of errno, so that error messages are accurate.
11124
11125 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11126
11127         * elhash.c (print_hash_table):
11128         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11129         Prettify docstrings and indentation.
11130
11131 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11132
11133         * window.c (Fwindow_pixel_edges): Subtract frame border and
11134         gutter size.
11135
11136 2000-07-31  Andy Piper  <andy@xemacs.org>
11137
11138         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11139         will acknowledge the change.
11140
11141         * glyphs.h: declare tab_control_order_only_changed.
11142
11143         * glyphs-x.c (x_tab_control_redisplay): use
11144         tab_control_order_only_changed.
11145
11146         * glyphs-widget.c (tab_control_order_only_changed): new function.
11147
11148         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11149         tab_control_order_only_changed.
11150
11151         * gui.c (gui_item_equal_sans_selected): new function.
11152         (gui_item_equal): use it.
11153
11154         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11155         :properties in favor of :items..
11156
11157         * glyphs-widget.c (check_valid_item_list): rename from
11158         check_valid_item_list_1.
11159         (check_valid_item_list_1): renamed.
11160         (combo_box_validate): deprecate :properties in favor of :items.
11161         (widget_instantiate): ditto.
11162         (tab_control_update): ditto.
11163         (image_instantiator_combo_box): ditto.
11164         (image_instantiator_tree_view): ditto.
11165         (image_instantiator_tab_control): ditto.
11166         (layout_post_instantiate): remove dead code.
11167
11168         * print.c (debug_print_no_newline): only write to debugger if in
11169         WIN32_NATIVE.
11170
11171         * elhash.c (Fmake_hash_table): update doc string.
11172
11173         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11174         messages whilst in GC. This at least stops XEmacs crashing but has
11175         the potential for wierd behaviour.
11176
11177 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11178
11179         * config.h.in:
11180         Make existence of s&m files optional.
11181
11182         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11183         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11184         * s/gnu.h: Remove HAVE_GETLOADAVG.
11185         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11186         * s/sol2.h: Remove HAVE_GETLOADAVG.
11187         * lisp.h: Remove getloadavg() declaration.
11188         * fns.c:
11189         Include <sys/loadavg.h> if available.
11190         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11191         * config.h.in:  Group together getloadavg()-related macros.
11192         Use only configure-time tests to detect getloadavg().
11193
11194 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11195
11196         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11197
11198 2000-07-25  Andy Piper  <andy@xemacs.org>
11199
11200         * syswindows.h: add tchar.h for native builds.
11201
11202         * frame.c (syms_of_frame): remove set-glyph-image.
11203
11204         * general-slots.h: add Qset_glyph_image.
11205
11206         * glyphs-widget.c (layout_update): add domain arg to
11207         set-glyph-image.
11208         (syms_of_glyphs_widget): remove set-glyph-image.
11209
11210 2000-07-23  Ben Wing  <ben@xemacs.org>
11211
11212         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11213         Vpopup_frame_list.
11214
11215 2000-07-22  Andy Piper  <andy@xemacs.org>
11216
11217         * symsinit.h: add syms_of_win32().
11218
11219         * gui-msw.c (syms_of_gui_mswindows): remove
11220         Fmswindows_shell_execute.
11221         (Fmswindows_shell_execute): moved to win32.c.
11222
11223         * emacs.c (main_1): add syms_of_win32 ().
11224
11225         * win32.c (init_potentially_nonexistent_functions): rewrite in
11226         compiler-friendly terms.
11227         (Fmswindows_shell_execute): move here from gui-msw.c.
11228         (syms_of_win32): new.
11229
11230         * device-msw.c (Fmswindows_printer_list): clean up args to
11231         EnumPrinters.
11232         Don't include tchar under cygwin or mingw.
11233         (msprinter_default_printer): make cygwin-friendly.
11234
11235 2000-07-21  Andy Piper  <andy@xemacs.org>
11236
11237         * glyphs-widget.c (image_instantiator_tree_view): use tab
11238         control's update function.
11239         (layout_property): new function. Retrieve items.
11240
11241         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11242         function. Re-populate the tree view from the pending items.
11243
11244         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11245         is designated the parent if the domain is an image instance. This
11246         is needed so that dirtiness can be cascade up the hierarchy and
11247         thus for layout children to be redisplayed correctly.
11248         (allocate_image_instance): rename glyph -> parent.
11249
11250         * redisplay.h: change redisplay_output_layout signature.
11251
11252         * redisplay-msw.c (mswindows_output_display_block): use domain
11253         arg.
11254
11255         * redisplay-x.c (x_output_display_block): use domain arg.
11256
11257 2000-07-10  Andy Piper  <andy@xemacs.org>
11258
11259         * window.c (Fset_window_configuration): add comment.
11260
11261         * redisplay-output.c (compare_runes):
11262         (redisplay_output_subwindow): redisplay rather than update subwindow.
11263         (redisplay_output_layout): ditto.
11264
11265         * redisplay-msw.c (mswindows_frame_output_end):
11266         (mswindows_frame_output_end): make defer window pos optional.
11267
11268         * lisp.h: add Flast.
11269
11270         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11271         normalize method. Change update method to be for changed
11272         instantiators. Add redisplay method. Change signature of layout
11273         method.
11274         (struct Lisp_Image_Instance): add instantiator.
11275         (IMAGE_INSTANCE_INSTANTIATOR): new.
11276         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11277         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11278         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11279
11280         * glyphs.c:
11281         (find_instantiator_differences): new function.
11282         (Fset_instantiator_property): new convenience function.
11283         (check_image_instance_structure): strictly check for vector
11284         instantiators.
11285         (normalize_image_instantiator): make non-static.
11286         (instantiate_image_instantiator): pass on dest_mask and use new
11287         signatures for image_instance_layout and friends.
11288         (mark_image_instance): mark the instantiator. Mark the subwindow
11289         face not the widget face.
11290         (image_instance_equal): add instantiator.
11291         (image_instance_hash): ditto.
11292         (allocate_image_instance): ditto.
11293         (Fset_image_instance_property): removed.
11294         (Fimage_instance_file_name): ditto.
11295         (Fcolorize_image_instance): ditto.
11296         (image_instance_layout): add offsets to be set.
11297         (update_image_instance): new function. update an image instance
11298         from its changed instantiator.
11299         (inherit_normalize): add dest_mask.
11300         (xbm_normalize): ditto.
11301         (xface_normalize): ditto.
11302         (xpm_normalize): ditto.
11303         (text_update): set_property -> update.
11304         (image_instantiate): use the glyph identity as a hash key, not the
11305         instantiator.
11306         (glyph_width): use new image_instance_layout signature.
11307         (glyph_ascent): ditto.
11308         (glyph_descent): ditto.
11309         (glyph_height): ditto.
11310         (glyph_query_geometry): ressurrect.
11311         (glyph_layout): ditto.
11312         (redisplay_subwindow): update -> redisplay.
11313         (syms_of_glyphs): add Fset_instantiator_property.
11314         (image_instantiator_format_create): set_property -> update.
11315
11316         * glyphs-x.c:
11317         (autodetect_normalize): add dest_maks to signature.
11318         (x_redisplay_subwindow): update -> redisplay.
11319         (x_redisplay_widget): ditto.
11320         (x_button_redisplay): ditto.
11321         (x_progress_gauge_redisplay): ditto.
11322         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11323         stacking order.
11324         (console_type_create_glyphs_x): update -> redisplay.
11325         (image_instantiator_format_create_glyphs_x): ditto.
11326
11327         * glyphs-widget.c:
11328         (check_valid_instantiator): disallow glyphs in the instantiator,
11329         they must now be vectors.
11330         (check_valid_instantiator_list): ditto.
11331         (glyph_instantiator_to_glyph): use internal symbol rather than
11332         intern.
11333         (widget_update): renamed from widget_set_property. Call cascaded
11334         update methods.
11335         (redisplay_widget): renamed from update_widget.
11336         (widget_layout): image_instance_layout now takes position as well
11337         as size.
11338         (widget_normalize): ditto.
11339         (widget_instantiate): ditto.
11340         (tab_control_query_geometry) ditto.:
11341         (tab_control_update): renamed from tab_control_set_property.
11342         (progress_gauge_update): set_property -> update.
11343         (layout_normalize): rewrite so that child instantiators are
11344         normalized also.
11345         (layout_update): new function. Create glyphs from the normalized
11346         children and cope with any other layout keywords. We do not
11347         instantiate children here that will be take care of by
11348         redisplay_output_layout.
11349         (layout_instantiate): call layout_update and not much else.
11350         (layout_post_instantiate): not sure whether this is needed
11351         anymore.
11352         (layout_query_geometry): query glyph geometry rather than
11353         image_instance geometry.
11354         (layout_layout): set offsets from pass in parameters. Use glyph
11355         geometry and layout functions rather than image instance ones.
11356         (native_layout_layout): ditto.
11357         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11358         (image_instantiator_widget): set_property -> update.
11359         (image_instantiator_buttons): ditto.
11360         (image_instantiator_progress_guage): ditto.
11361         (image_instantiator_tab_control): ditto.
11362         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11363         (image_instantiator_layout): add update method.
11364
11365         * glyphs-msw.c (bmp_normalize):
11366         (mswindows_resource_normalize): add dest_mask so that it can be
11367         proprogated by layout_normalize.
11368         (begin_defer_window_pos): make optional because it may not be the
11369         right thing to do and it introduces differences with X.
11370         (mswindows_unmap_subwindow): ditto.
11371         (mswindows_map_subwindow): ditto.
11372         (mswindows_redisplay_subwindow): renamed from
11373         mswindows_update_subwindow.
11374         (mswindows_redisplay_widget): ditto.
11375         (mswindows_button_redisplay): renamed from
11376         mswindows_button_update. Update is now what the instantiation
11377         function does for a changed instantiator.
11378         (mswindows_progress_gauge_instantiate): set the progress value
11379         here if appropriate.
11380         (mswindows_tab_control_redisplay): cope with re-ordering of the
11381         members of the tab widget by simply selecting the new top
11382         widget. This makes things appear ok if you click on a tab.
11383         (mswindows_combo_box_instantiate): image_instance_layout now takes
11384         position as well as size.
11385         (mswindows_progress_gauge_redisplay): renamed from
11386         mswindows_progress_gauge_update.
11387         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11388         (image_instantiator_format_create_glyphs_mswindows): ditto.
11389
11390         * glyphs-eimage.c (jpeg_normalize):
11391         (gif_normalize):
11392         (png_normalize):
11393         (tiff_normalize): add dest_mask so that it can be proprogated by
11394         layout_normalize.
11395
11396         * elhash.c:
11397         (print_hash_table):
11398         (hash_table_weakness_validate):
11399         (decode_hash_table_weakness):
11400         (Fhash_table_weakness):
11401         (Fhash_table_type):
11402         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11403
11404         * console.h (struct console_methods): move update_* to
11405         redisplay_*.
11406
11407 2000-07-20  Ben Wing  <ben@xemacs.org>
11408
11409         * *.[ch] (XSETOBJ): remove unused middle argument.
11410         lisp-disunion.h: correct wrap_object() to one argument.
11411
11412 2000-07-15  Ben Wing  <ben@xemacs.org>
11413
11414         * s/cygwin32.h:
11415         * s/cygwin32.h (CYGWIN_CONV_PATH):
11416         Add missing logb prototype for v1.1.
11417         Use post-b20 names and alias to pre-b20 names when pre-b20.
11418
11419         * s/windowsnt.h: [5].
11420
11421 2000-07-15  Ben Wing  <ben@xemacs.org>
11422
11423         * Makefile.in.in (x_objs):
11424         * Makefile.in.in (sheap_objs):
11425         * Makefile.in.in (objs):
11426         added win32.o, cosmetic cleanups.
11427
11428         * alloc.c (Fmake_byte_code):
11429         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11430         etc. macros which declare their own args now.
11431
11432         * alloc.c (syms_of_alloc):
11433         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11434
11435         * buffer.c:
11436         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11437
11438         * buffer.c (Fget_file_buffer):
11439         Fixed GCPRO problem.
11440
11441         * buffer.c (get_truename_buffer):
11442         Fixed comment about GC checking.
11443
11444         * buffer.c (syms_of_buffer):
11445         Undeclared those dedicated frame funs.
11446         [2].
11447
11448         * buffer.h:
11449         Define convenience macros for internal/external conversions.
11450         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11451         and Qenvironment_variable_encoding for cleaner code.
11452
11453         * bufslots.h:
11454         Remove dedicated-frame; in lisp.
11455
11456         * bytecode.c (funcall_compiled_function):
11457         [1].
11458
11459         * bytecode.c (syms_of_bytecode):
11460         [2].
11461
11462         * console-msw.c:
11463         * console-msw.c (mswindows_show_console): Rewrote.
11464
11465         * console-msw.c (Fmswindows_debugging_output): New.
11466         Sends to OutputDebugString (special MSWin debugger interface).
11467
11468         * console-msw.c (Fmswindows_message_box):
11469         Fixed stupid bugs so it works when called from kill-emacs.
11470
11471         * console-msw.c (syms_of_console_mswindows):
11472         Declare Fmswindows_debugging_output.
11473
11474         * console-msw.h:
11475         New MSWin prototypes.
11476
11477         * console-msw.h (struct mswindows_frame):
11478         New entry last-click-mods for improved button-modifier support.
11479
11480         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11481         New struct entry `popup' with corresponding accessor.
11482
11483         * console-x.c:
11484         * console-x.c (split_up_display_spec):
11485         * console-x.c (get_display_arg_connection):
11486         * console-x.c (x_semi_canonicalize_console_connection):
11487         * console-x.c (x_canonicalize_device_connection):
11488         [[[6]]]: Change char to more specific type.
11489         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11490
11491         * console-x.c (x_semi_canonicalize_console_connection):
11492         * console-x.c (x_canonicalize_device_connection):
11493         [[[9]]]: Fix up error signalling to use new structured error system.
11494
11495         * console-x.h:
11496         [[[4]]]: Define codesys aliases:
11497         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11498         Qx_color_name_encoding, Qx_display_name_encoding.
11499
11500         * console.h (struct console_methods):
11501         New method make_dialog_box_internal supersedes older
11502         popup_dialog_box method.
11503
11504         * data.c:
11505         Define many new errors, part of new structured errors.
11506
11507         * data.c (init_errors_once_early):
11508         * data.c (syms_of_data):
11509         [2].
11510
11511         * device-msw.c (mswindows_init_device):
11512         [[[5]]]: Cleanup to support NT 3.51.
11513
11514         * device-msw.c (decode_devmode): Cleanup.
11515
11516         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11517         * device-msw.c (mswindows_handle_print_dialog_box):
11518         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11519         * device-msw.c (syms_of_device_mswindows):
11520         Delete the dialog box primitives recently introduced by Kirill and
11521         instead interface to general dialog box interface.
11522
11523         * device-x.c:
11524         * device-x.c (compute_x_app_name):
11525         * device-x.c (x_init_device):
11526         * device-x.c (Fx_valid_keysym_name_p):
11527         * device-x.c (Fx_set_font_path):
11528         [6].
11529         [7].
11530
11531         * device.h (wrap_device): New.
11532         First of its kind; meant to replace XSETDEVICE.
11533
11534         * dialog-msw.c: Many file-dialog symbols.
11535
11536         * dialog-msw.c (mswindows_register_popup_frame): New.
11537         * dialog-msw.c (mswindows_is_dialog_msg): New.
11538         For supporting kbd traversal in dialog boxes.
11539
11540         * dialog-msw.c (dialog_proc):
11541         Support hitting ESC in dialogs.
11542
11543         * dialog-msw.c (struct):
11544         Common dialog box errors.
11545
11546         * dialog-msw.c (handle_file_dialog_box): New.
11547         Add file dialog code.
11548
11549         * dialog-msw.c (handle_question_dialog_box):
11550         Redo existing code to support new question dialog syntax.
11551
11552         * dialog-msw.c (console_type_create_dialog_mswindows):
11553         We support new dialog console method.
11554
11555         * dialog-msw.c (syms_of_dialog_mswindows):
11556         * dialog-msw.c (vars_of_dialog_mswindows):
11557         New file dialog symbols, vars.
11558
11559         * dialog-x.c:
11560         * dialog-x.c (maybe_run_dbox_text_callback):
11561         * dialog-x.c (dbox_descriptor_to_widget_value):
11562         * dialog-x.c (x_make_dialog_box_internal):
11563         * dialog-x.c (console_type_create_dialog_x):
11564         Mule-ize entire file.
11565         Redo to support question dialog syntax.
11566         [6].
11567
11568         * dialog.c:
11569         * dialog.c (Fmake_dialog_box_internal):
11570         * dialog.c (syms_of_dialog):
11571         Kill old popup-dialog-box, replace with new primitive.
11572         Just call device method or signal error.
11573
11574         * eldap.c (Fldap_open):
11575         * eldap.c (Fldap_search_basic):
11576         * eldap.c (Fldap_add):
11577         * eldap.c (Fldap_modify):
11578         [1].
11579         [7].
11580
11581         * emacs.c:
11582         * emacs.c (make_arg_list_1):
11583         * emacs.c (make_arg_list):
11584         Mule-ize call to dll_init().
11585         [6].
11586         [8].
11587
11588         * emacs.c (make_argc_argv):
11589         * emacs.c (free_argc_argv):
11590         * emacs.c (init_cmdargs):
11591         * emacs.c (main_1):
11592         * emacs.c (Fkill_emacs):
11593         * emacs.c (Fdump_emacs):
11594         Update comments about what can be used in syms_* etc.
11595         Call init_win32() when necessary.
11596         Fix up MS Win dialog box in kill-buffer to actually work right.
11597         [7].
11598
11599         * eval.c:
11600         * eval.c (For):
11601         * eval.c (Fand):
11602         * eval.c (Fprogn):
11603         * eval.c (Fprog1):
11604         * eval.c (Fprog2):
11605         * eval.c (FletX):
11606         * eval.c (Flet):
11607         * eval.c (condition_case_3):
11608         * eval.c (Feval):
11609         * eval.c (function_argcount):
11610         * eval.c (funcall_lambda):
11611         [1].
11612
11613         * eval.c (type_error): New.
11614         * eval.c (maybe_type_error): New.
11615         * eval.c (continuable_type_error): New.
11616         * eval.c (maybe_continuable_type_error): New.
11617         * eval.c (type_error_with_frob): New.
11618         * eval.c (maybe_type_error_with_frob): New.
11619         * eval.c (continuable_type_error_with_frob): New.
11620         * eval.c (maybe_continuable_type_error_with_frob): New.
11621         New functions for use with structured errors.
11622
11623         * event-Xt.c:
11624         * event-Xt.c (x_event_to_emacs_event):
11625         Buttons are now modifiers too.
11626
11627         * event-Xt.c (emacs_Xt_current_event_timestamp):
11628         Implement new event method.
11629         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11630
11631         * event-msw.c:
11632         * event-msw.c (ntpipe_shove_writer): [5].
11633         * event-msw.c (mswindows_enqueue_mouse_button_event):
11634         * event-msw.c (mswindows_drain_windows_queue):
11635         * event-msw.c (mswindows_wnd_proc): [7].
11636         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11637         * event-msw.c (mswindows_modifier_state):
11638         Throughout: support new button modifiers.
11639
11640         * event-msw.c (emacs_mswindows_current_event_timestamp):
11641         Implement new event method.
11642         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11643
11644         * event-stream.c:
11645         * event-stream.c (event_stream_current_event_timestamp): New.
11646         * event-stream.c (maybe_kbd_translate): New functionality.
11647         * event-stream.c (vars_of_event_stream):
11648         Document new kbd-translate-table functionality.
11649
11650         * event-stream.c (Fcurrent_event_timestamp): New.
11651         New primitive for use in fabricated events.
11652         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11653
11654         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11655
11656         * events.c:
11657         * events.c (Fmake_event):
11658         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11659         [1].
11660         [9].
11661
11662         * events.c (format_event_object): fix gcc warnings.
11663
11664         * events.c (Fevent_timestamp): Document new primitives.
11665
11666         * events.c (TIMESTAMP_HALFSPACE): New.
11667
11668         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11669         comparing timestamps correctly (half-space algorithm).
11670
11671         * events.c (Fevent_modifier_bits): Doc fix.
11672
11673         * events.c (Fevent_modifiers): Major doc addition.
11674         * events.c (event_x_y_pixel_internal): Typo fix.
11675         * events.c (syms_of_events): Declare new primitives.
11676
11677         * events.h:
11678         Update long comment for button modifiers, timestamps.
11679
11680         * events.h (struct event_stream):
11681         New current_event_timestamp method.
11682
11683         * extents.c:
11684         * extents.c (extent_in_region_p):
11685         * extents.c (decode_extent):
11686         * extents.c (Fset_extent_parent):
11687         * extents.c (decode_map_extents_flags):
11688         Fix gcc warnings.
11689         [9].
11690
11691         * extents.c (struct extent_at_arg):
11692         * extents.c (decode_extent_at_flag):
11693         * extents.c (extent_at_mapper):
11694         * extents.c (extent_at_bytind):
11695         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11696         * extents.c (Fextents_at): New primitive. [9].
11697         * extents.c (symbol_to_glyph_layout): [9].
11698         Support new primitive `extents-at'.
11699
11700
11701         * extents.c (get_text_property_bytind):
11702         extent_at_bytind has another arg.
11703         [9].
11704
11705         * extents.c (syms_of_extents): New primitive.
11706
11707         * file-coding.c (Fmake_coding_system): [1].
11708         * file-coding.c (subsidiary_coding_system): fix gcc warning
11709         * file-coding.c (syms_of_file_coding): [2].
11710
11711         * fileio.c (Fexpand_file_name):
11712         * fileio.c (Fsysnetunam):
11713         * fileio.c (Ffile_exists_p):
11714         * fileio.c (Ffile_executable_p):
11715         * fileio.c (Fverify_visited_file_modtime):
11716         Clean up GCPROing.
11717
11718         * fileio.c (syms_of_fileio): [2].
11719
11720         * filelock.c (lock_file_1):
11721         * filelock.c (current_lock_owner):
11722         * filelock.c (lock_if_free):
11723         * filelock.c (lock_file):
11724         * filelock.c (unlock_file):
11725         Clean up GCPROing.
11726
11727         * fns.c (concat): Fix gcc warning.
11728
11729         * fns.c (Fmember):
11730         * fns.c (Fold_member):
11731         * fns.c (Fmemq):
11732         * fns.c (Fold_memq):
11733         * fns.c (memq_no_quit):
11734         * fns.c (Fassoc):
11735         * fns.c (Fold_assoc):
11736         * fns.c (Fassq):
11737         * fns.c (Fold_assq):
11738         * fns.c (assq_no_quit):
11739         * fns.c (Frassoc):
11740         * fns.c (Fold_rassoc):
11741         * fns.c (Frassq):
11742         * fns.c (Fold_rassq):
11743         * fns.c (rassq_no_quit):
11744         * fns.c (Fdelete):
11745         * fns.c (Fold_delete):
11746         * fns.c (Fdelq):
11747         * fns.c (Fold_delq):
11748         * fns.c (delq_no_quit):
11749         * fns.c (Fremassoc):
11750         * fns.c (Fremassq):
11751         * fns.c (remassq_no_quit):
11752         * fns.c (Fremrassoc):
11753         * fns.c (Fremrassq):
11754         * fns.c (remrassq_no_quit):
11755         * fns.c (Freverse):
11756         * fns.c (mapcar1):
11757         [1].
11758
11759         * frame-msw.c (mswindows_init_frame_1):
11760         * frame-msw.c (mswindows_delete_frame):
11761         Register popups with dialog code so keyboard traversing works.
11762
11763         * frame-tty.c (tty_raise_frame_no_select): [1].
11764
11765         * frame-x.c:
11766         * frame-x.c (x_set_frame_text_value):
11767         * frame-x.c (x_set_frame_properties):
11768         * frame-x.c (x_create_widgets):
11769         [7].
11770
11771         * frame.c:
11772         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11773
11774         * frame.h (wrap_frame): New.
11775         Macro like wrap_device.
11776
11777         * general.c:
11778         * general.c (SYMBOL):
11779         * general.c (syms_of_general):
11780         Major reorg.  This is now just a wrapper and symbols themselves
11781         are listed in general-slots.h.
11782
11783         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11784         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11785
11786         * glyphs-msw.c (mswindows_native_layout_instantiate):
11787         Add DS_CONTROL so keyboard traversal will work.
11788
11789         * glyphs-widget.c:
11790         * glyphs-widget.c (syms_of_glyphs_widget):
11791         Move some symbols to general-slots.h.
11792
11793         * glyphs-x.c:
11794         * glyphs-x.c (xbm_instantiate_1):
11795         * glyphs-x.c (x_xbm_instantiate):
11796         * glyphs-x.c (x_xface_instantiate):
11797         * glyphs-x.c (autodetect_instantiate):
11798         * glyphs-x.c (cursor_font_instantiate):
11799         * glyphs-x.c (x_update_widget):
11800         * glyphs-x.c (x_widget_instantiate):
11801         * glyphs.c (bitmap_to_lisp_data):
11802         * glyphs.c (pixmap_to_lisp_data):
11803         [7].
11804
11805         * glyphs.c (syms_of_glyphs):
11806         [2].
11807
11808         * gui-x.c:
11809         * gui-x.c (print_widget_value):
11810         * gui-x.c (menu_separator_style_and_to_external):
11811         * gui-x.c (add_accel_and_to_external):
11812         * gui-x.c (button_item_to_widget_value):
11813         * gui-x.c (gui_items_to_widget_values_1):
11814         * gui-x.c (gui_items_to_widget_values):
11815         * gui-x.c (syms_of_gui_x):
11816         * gui-x.c (vars_of_gui_x):
11817         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11818         [9].
11819
11820         * gui-x.h:
11821         Muleize, prototype changes matching gui-x.c.
11822
11823         * gui.c:
11824         * gui.c (separator_string_p):
11825         * gui.c (gui_item_add_keyval_pair):
11826         * gui.c (make_gui_item_from_keywords_internal):
11827         * gui.c (signal_too_long_error):
11828         * gui.c (parse_gui_item_tree_item):
11829         * gui.c (syms_of_gui):
11830         * gui.c (vars_of_gui):
11831         * gui.h:
11832         menu-no-selection-hook moved here (used by MSWin).
11833         Move some symbols to general-slots.h.
11834         [6].
11835         [9].
11836
11837         * insdel.c (get_buffer_pos_char):
11838         * insdel.c (get_buffer_range_char):
11839         Add GC comments.
11840
11841         * keymap.c (keymap_lookup_directly):
11842         * keymap.c (keymap_store):
11843         * keymap.c (ensure_meta_prefix_char_keymapp):
11844         * keymap.c (describe_map):
11845         * keymap.h:
11846         Support new button modifiers.
11847
11848         * lisp-disunion.h (wrap_object):
11849         * lisp-disunion.h (XSETOBJ):
11850         Rename make_obj to wrap_object.
11851
11852         * lisp-union.h:
11853         * lisp-union.h (make_int):
11854         * lisp-union.h (make_char):
11855         Support wrap_object.
11856
11857         * lisp.h:
11858         * lisp.h (LIST_LOOP):
11859         * lisp.h (EXTERNAL_LIST_LOOP):
11860         * lisp.h (LIST_LOOP_2):
11861         * lisp.h (EXTERNAL_LIST_LOOP_1):
11862         * lisp.h (EXTERNAL_LIST_LOOP_2):
11863         * lisp.h (EXTERNAL_LIST_LOOP_3):
11864         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11865         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11866         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11867         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11868         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11869         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11870         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11871         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11872         * lisp.h (struct Lisp_Symbol):
11873         * lisp.h (maybe_continuable_error_with_frob):
11874         Fix up section comments.
11875         Add new types for char to indicate usage.
11876         Delete symbols auto-generated from general-slots.h.
11877         Add prototypes for structured error functions.
11878         Add long comments describing looping macros and change interface
11879         so that lvalues are automatically declared.
11880         Add NO_DECLARE macro in case callers want to declare lvalues
11881         themselves.
11882
11883         * lread.c (read_syntax_error):
11884         * lread.c (continuable_read_syntax_error):
11885         * lread.c (read_structure):
11886         * lread.c (sequence_reader):
11887         * lread.c (read_list_conser):
11888         * lread.c (read_compiled_function):
11889         Rename syntax_error and continuable_syntax_error to avoid clash
11890         with same-named structured error functions.
11891
11892         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11893         * menubar-msw.c (populate_menu_add_item):
11894         * menubar-msw.c (populate_or_checksum_helper):
11895         [5].
11896         [9].
11897
11898         * menubar-x.c:
11899         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11900         Mule-ize whole file.
11901
11902         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11903
11904         * mule-charset.c (Fmake_charset):
11905         * mule-wnnfns.c (Fwnn_set_param):
11906         [1].
11907
11908         * ntproc.c (create_child):
11909         * ntproc.c (Fwin32_set_current_locale):
11910         Add comments portending doom.
11911
11912         * objects-msw.c:
11913         * objects-msw.c (old_font_enum_callback_2):
11914         * objects-msw.c (font_enum_callback_1):
11915         * objects-msw.c (mswindows_enumerate_fonts):
11916         [5].
11917
11918         * objects-x.c:
11919         * objects-x.c (allocate_nearest_color):
11920         * objects-x.c (x_parse_nearest_color):
11921         * objects-x.c (x_initialize_color_instance):
11922         * objects-x.c (x_print_color_instance):
11923         * objects-x.c (x_finalize_color_instance):
11924         * objects-x.c (x_valid_color_name_p):
11925         * objects-x.c (x_initialize_font_instance):
11926         * objects-x.c (x_print_font_instance):
11927         * objects-x.c (valid_x_font_name_p):
11928         * objects-x.c (truename_via_FONT_prop):
11929         * objects-x.c (truename_via_random_props):
11930         * objects-x.c (truename_via_XListFonts):
11931         * objects-x.c (x_font_truename):
11932         * objects-x.c (x_font_instance_truename):
11933         * objects-x.c (x_font_instance_properties):
11934         * objects-x.c (x_list_fonts):
11935         * objects-x.c (x_find_charset_font):
11936         Mule-ize entire file.
11937         [7].
11938
11939         * objects-x.h:
11940         Mule-verify.
11941
11942         * print.c:
11943         * print.c (std_handle_out_external):
11944         * print.c (debug_print_no_newline):
11945         * print.c (syms_of_print):
11946         Output to all debugger kinds in debug-print.
11947         Fix console-output code under MSWin to actually work.
11948
11949         * process-nt.c (send_signal):
11950         * process-nt.c (nt_create_process):
11951         Use newer Unicode macros.
11952
11953         * process-unix.c (unix_create_process):
11954         * process-unix.c (unix_canonicalize_host_name):
11955         * process-unix.c (unix_open_network_stream):
11956         [7].
11957
11958         * scrollbar-x.c:
11959         Mule-verify.
11960
11961         * search.c (syms_of_search):
11962         [2].
11963
11964         * select-msw.c (mswindows_destroy_selection):
11965         Use LIST_LOOP_2.
11966
11967         * select-x.c (symbol_to_x_atom):
11968         [7].
11969
11970         * select.c (syms_of_select):
11971         [2].
11972
11973         * sound.c (Fplay_sound_file):
11974         [7].
11975
11976         * specifier.c:
11977         * specifier.c (decode_specifier_type):
11978         * specifier.c (Fvalid_specifier_locale_type_p):
11979         * specifier.c (check_valid_locale_or_locale_type):
11980         * specifier.c (decode_locale):
11981         * specifier.c (decode_locale_type):
11982         * specifier.c (decode_locale_list):
11983         * specifier.c (check_valid_domain):
11984         * specifier.c (decode_specifier_tag_set):
11985         * specifier.c (Fcanonicalize_tag_set):
11986         * specifier.c (Fdefine_specifier_tag):
11987         * specifier.c (Fspecifier_tag_predicate):
11988         * specifier.c (check_valid_inst_list):
11989         * specifier.c (check_valid_spec_list):
11990         * specifier.c (decode_how_to_add_specification):
11991         * specifier.c (check_modifiable_specifier):
11992         * specifier.c (specifier_add_spec):
11993         * specifier.c (boolean_validate):
11994         * specifier.c (display_table_validate):
11995         [9].
11996
11997         * specifier.c (syms_of_specifier):
11998         Move some symbols to general-slots.h.
11999         [2].
12000
12001         * symbols.c:
12002         * symbols.c (Fmapatoms):
12003         * symbols.c (Fapropos_internal):
12004         Add GCPROs.
12005
12006         * symbols.c (set_default_buffer_slot_variable):
12007         * symbols.c (set_default_console_slot_variable):
12008         [1].
12009
12010         * symbols.c (defsymbol_massage_name_1):
12011         * symbols.c (defkeyword_massage_name):
12012         * symbols.c (deferror_1):
12013         * symbols.c (deferror):
12014         * symbols.c (deferror_massage_name_and_message):
12015         * symeval.h:
12016         * symeval.h (DEFSYMBOL):
12017         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12018
12019         * symbols.c (syms_of_symbols):
12020         [2].
12021
12022         * symsinit.h:
12023         * symsinit.h (init_win32): New.
12024         Also new is syms_of_dialog_mswindows.
12025
12026         * syswindows.h:
12027         Add new Unicode macros, missing Cygwin wide-char functions,
12028         convenience conversion macros for Qmswindows_tstr, macros for
12029         encapsulating required MSWin <-> Cygwin filename conversions,
12030         prototype for dynamically-extracted (not in NT 3.51) functions.
12031
12032         * toolbar-x.c:
12033         Mule-verify.
12034
12035         * tooltalk.c (Fadd_tooltalk_message_arg):
12036         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12037         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12038         [7].
12039
12040         * tooltalk.c (syms_of_tooltalk):
12041         [2].
12042
12043         * unexnt.c:
12044         * unexnt.c (unexec):
12045         Fix up headers, declaration of unexec() to be more standard.
12046
12047 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12048
12049         * offix.h: Revert change to guard macros - they're used in offix.c!
12050
12051 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12052
12053         * lisp.h: Defsubred Fdelete.
12054
12055         * console-msw.h:  (msprinter_default_printer): Added.
12056
12057         * console-msw.c (msprinter_canonicalize_console_connection):
12058         (msprinter_canonicalize_device_connection): Added.
12059
12060         * device-msw.c (msprinter_default_printer):
12061         (Fmswingows_get_default_printer):
12062         (signal_enum_priner_error):
12063         (Fmswingows_printer_list): Added.
12064
12065 2000-07-19  Martin Buchholz <martin@xemacs.org>
12066
12067         * XEmacs 21.2.35 is released.
12068
12069 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12070
12071         * select-x.c (x_handle_selection_request):
12072         Text selected in xemacs and pasted into xterm failed to appear.
12073         Spelling fixes and cosmetic changes.
12074
12075 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12076
12077         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12078         XEmacs frame (fix for doubling chars in dialog boxes).
12079
12080 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12081
12082         * select.c (select_convert_in, select_convert_out):
12083         Don't call intern() every time.
12084
12085         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12086         * select.c (vars_of_select): Initialise them.
12087
12088 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12089
12090         * select.c (selection-coercible-types): New.
12091
12092         * select.c (own-selection-internal):
12093         * select.c (get-selection-internal):
12094         MULE bug fix - these should default to COMPOUND_TEXT and not
12095         STRING for MULE. I think.
12096
12097         * select.c (select_convert_out): Use selection-coercible-types
12098         to find types that we can attempt to perform coercions on.
12099
12100 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12101
12102         * mule-wnnfns.c:
12103         * mule-canna.c:
12104         Add coding: cookie to identify encoding.
12105
12106         * mule-canna.c (CANNA_mode_keys): make static.
12107         Use proper prototypes, even for functions of no arguments.
12108         Remove external prototype for Fding().
12109
12110         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12111
12112         * select.c (syms_of_select): Add missing DEFSUBR.
12113
12114 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12115
12116         * select.c (get_selection_internal, own_selection_internal):
12117         Make the type default to STRING, rather than placing a nil type
12118         into Vselection_alist.
12119
12120 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12121
12122         * gpmevent.c (tty_selection_exists_p):
12123         * gpmevent.c (tty_own_selection):
12124         Updated parameter lists.
12125
12126 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12127
12128         * select.h (selection-alist): Removed declaration.
12129
12130         * select.h (get_local_selection):
12131         * select.c (get_local_selection):
12132         Made static.
12133
12134         * select.h (convert_selection): Removed declaration.
12135         * select.c (convert_selection): Removed.
12136         This function belongs in Lisp.
12137
12138         * select.h (select_convert_in): Declare.
12139         * select.h (select_convert_out): Declare.
12140         * select.c (select_convert_in): New.
12141         * select.c (select_convert_out): New.
12142         New conversion functions for other files to call.
12143
12144         * select.h (select_notify_buffer_kill): Declare.
12145         * select.c (select_notify_buffer_kill): New.
12146         New functions that get called from kill-buffer.
12147
12148         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12149         X-specific lisp code.
12150
12151         * select.h: Declare some of the lisp-visible functions for
12152         external use.
12153
12154         * select.c (clean_local_selection_data): Removed. This was
12155         a disgusting function, and previously should have been in
12156         select-x.c in any case. The functionality is now provided
12157         in select-convert-from-integer (select.el).
12158
12159         * select.c (available-selection-types): Fixed stupidity where
12160         INTEGER and ATOM got added twice. Also add STRING when we see an
12161         extent.
12162
12163         * select.c (get-selection-internal): Removed symbol stripping. No
12164         longer causes conversion when data comes from the internal cache.
12165
12166         * select.c (syms_of_select): Added new functions.
12167
12168         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12169         error checking - previously this called abort!
12170
12171         * select-x.c (x_own_selection): Changed comment.
12172
12173         * select-x.c (x_handle_selection_request): Use select_convert_out.
12174         Don't mess with selection-alist; it's an internal variable of select.c.
12175
12176         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12177
12178         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12179         rather than messing with selection-alist.
12180
12181         * select-msw.c (mswindows_get_foreign_selection):
12182         Use TO_INTERNAL_FORMAT rather than hacking.
12183
12184 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12185
12186         * process-unix.c (unix_open_multicast_group):
12187         (unix_open_multicast_group): Remove useless casts.
12188
12189 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12190
12191         * sound.c (Fplay_sound): Fix `unused variable' warning.
12192
12193         * emacs.c (main): Use correct type for _environ on SCO5.
12194
12195 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12196
12197         * console.h (own_selection_method):
12198         * console.h (selection_exists_p_method):
12199         * console.h (available_selection_types_method): New.
12200         * console.h (register_selection_data_type_method): New.
12201         * console.h (selection_data_type_name): New.
12202
12203         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12204         function & alist to track GlobalAlloc()'d handles that need
12205         releasing when the clipboard data gets replaced or emptied.
12206
12207         * event-msw.c (mswindows_wnd_proc): Call it.
12208
12209         * lisp.h, general.c (Qappend): New symbol representing a
12210         `how-to-add' mode.
12211
12212         * select.c (own-selection-internal):
12213         * select.c (selection-exists-p):
12214         * select.c (available-selection-types): New.
12215         * select.c (register-selection-data-type): New.
12216         * select.c (selection-data-type-name): New.  New functions to deal
12217         with device-specific selection data formats.
12218         * select.c (selection-converter-out-alist): Renamed.
12219         * select.c (selection-converter-in-alist): New.
12220         * select.c (selection-appender-alist): New.  Added new alists.
12221         * select.c (syms_of_select, vars_of_select): Added new symbols &
12222         variables.
12223         * select.c (get_local_selection): Split.
12224         * select.c: Removed spurious type checking - selections may now be
12225         of any type, not just strings.
12226         * select.c (own-selection-internal):
12227
12228         * select.h, select.c (convert_selection): New. Created
12229         convert_selection() function based on get_local_selection().
12230         * select.h, select.c (QCF_*): New symbols representing mswindows
12231         clipboard formats.
12232         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12233         symbols representing `how-to-add' modes.
12234
12235         * select-msw.c (x_sym_p): New.
12236         * select-msw.c (symbol_to_ms_cf): New.
12237         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12238         symbols & clipboard formats. Can also handle string names.
12239         * select-msw.c (mswindows_own_selection):
12240         * select-msw.c (mswindows_selection_exists_p):
12241         Added `data-type' parameter. Use it.
12242         * select-msw.c (mswindows_available_selection_types): New.
12243         * select-msw.c (mswindows_register_selection_data_type): New.
12244         * select-msw.c (mswindows_selection_data_type_name): New.
12245         * select-msw.c (mswindows_own_selection):
12246         * select-msw.c (mswindows_get_foreign_selection):
12247         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12248         * select-msw.c (console_create_select_mswindows): Added new methods.
12249         * select-msw.c (mswindows_destroy_selection): New.
12250         * select-msw.c (Vhandle_alist): New list.
12251         * select-msw.c (mswindows_own_selection):
12252
12253         * select-x.c (x_own_selection):
12254         * select-x.c (x_selection_exists_p):
12255         * select-x.c: Added some comments about maybe using new
12256         functionality.
12257         * select-x.c (x_own_selection):
12258
12259         * specifier.c: Remove definition of Qappend (now in general.c)
12260         * specifier.c (syms_of_specifier): Remove Qappend.
12261
12262 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12263
12264         * config.h.in: Add socklen_t.
12265
12266         * s/decosf4-0.h: No special compiler flags needed or desired.
12267         In particular, undefine _BSD for DEC OSF 4.0.
12268
12269 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12270
12271         * redisplay-msw.c (msprinter_frame_output_end): Added.
12272         (console_type_create_redisplay_mswindows): Referred the above.
12273
12274         * frame.c (setup_frame_without_minibuffer): Do not create a
12275         default minibuffer frame on a printer device.
12276
12277         * frame-msw.c (apply_dc_geometry): Added.
12278         (msprinter_start_page):
12279         (msprinter_init_frame_3):
12280         (msprinter_eject_page): Use it.
12281
12282         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12283         and removed residual duplex and orientation properties.
12284
12285 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12286
12287         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12288
12289         * unexalpha.c: Remove system prototypes from C sources!
12290
12291 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12292
12293         * eval.c: Remove references to M-x edit-options in DEFUNs for
12294         `defvar' and `defconst'.
12295
12296 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12297
12298         * config.h.in: Remove SMART_INCLUDE hackery.
12299
12300         PostgreSQL hacking:
12301         * config.h.in: Don't use SMART_INCLUDE.
12302
12303         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12304         * inline.c: Simply #include "postgresql.h"
12305         * postgresql.c:
12306         - Don't use SMART_INCLUDE
12307         - Use simply "const".
12308         - Use standard doc string conventions.
12309         - Use correct type for result of PQstatus.
12310
12311 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12312
12313         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12314
12315         C++ compilation changes.
12316         * config.h.in (EXTERN_C): Define.
12317         * config.h.in (not): This is also a C++ keyword.
12318         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12319         * cm.c: Use EXTERN_C.
12320         * redisplay-tty.c: Use EXTERN_C.
12321         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12322
12323 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12324
12325         * general.c: Remove duplicate definition for Qfunction.
12326
12327 2000-07-08  Ben Wing  <ben@xemacs.org>
12328
12329         * device-msw.c (msprinter_init_device):
12330         * device-msw.c (sync_printer_with_devmode):
12331         * device-msw.c (handle_devmode_changes):
12332         * device-msw.c (print_dialog_worker):
12333         * device-msw.c (Fmsprinter_apply_settings):
12334         * device-msw.c (hash_devmode):
12335         * device-msw.c (Fmsprinter_settings_despecialize):
12336         use Qmswindows_tstr, not Qctext.
12337
12338         * vm-limit.c (check_memory_limits):
12339         avoid infinite loop printing warning messages.
12340
12341 2000-07-05  Craig Lanning  <lanning@scra.org>
12342
12343         * Makefile.in.in: Add support for including the Windows resources
12344         when building with the cygwin and mingw targets.
12345
12346         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12347         not set or not correct.
12348         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12349         (init_initial_directory): Don't try to use $PWD on the
12350         WIN32_NATIVE target.
12351
12352         * s\cygwin32.h:
12353         [[Add -mwindows to eliminate console window.]] not required --ben
12354         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12355         (MAIL_USE_POP): removed; now handled by configure.
12356
12357         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12358         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12359         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12360         (MAIL_USE_POP): removed; now handled by configure.
12361         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12362         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12363         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12364         constant string.
12365         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12366         up from <winsock.h> via systime.h.
12367         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12368         (getpagesize): from Dan Holmsand, added.
12369         Added #endif which was left dangling by Ben's mega patch; added
12370         comment to help prevent this in the future.
12371
12372         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12373
12374 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12375
12376         * console-msw.h (struct mswindows_device): Removed unnecessary
12377         cached device geometry values.
12378         Added update_tick and an accessor macro.
12379         (Lisp_Devmode): Added lrecord declaration.
12380         (struct msprinter_device): Contain devmode as a Lisp object.
12381         Added mswindows_get_selected_frame_hwnd();
12382
12383         * console.h (struct console_methods): Indentation nitpicking.
12384
12385         * device-msw.c (mswindows_init_device): Do not initialize geometry
12386         cache. Initialize update tick.
12387         (mswindows_device_system_metrics): Ask the device for its geometry.
12388         (global_free_2_maybe):
12389         (devmode_to_hglobal):
12390         (handle_printer_changes):
12391         (ensure_not_printing):
12392         (print_dialog_worker):
12393         (Fmsprinter_print_setup_dialog):
12394         (Fmsprinter_print_dialog):
12395         (plist_get_margin):
12396         (plist_set_margin):
12397         (Fmsprinter_page_setup_dialog): Added functions.
12398         (sync_printer_with_devmode):
12399         (handle_devmode_changes):
12400         (Fmsprinter_get_settings):
12401         (Fmsprinter_select_settings):
12402         (Fmsprinter_apply_settings):
12403         (allocate_devmode):
12404         (Fmsprinter_settings_copy):
12405         (Fmsprinter_settings_despecialize):
12406         (print_devmode):
12407         (finalize_devmode):
12408         (equal_devmode):
12409         (hash_devmode): Added functions
12410         (syms_of_device_mswindows): Init devmode lrecord class.
12411
12412         * device.h: Added an exfun for find-device.
12413
12414         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12415         geometry; although, recreate the device compatible DC.
12416
12417         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12418         (msprinter_init_frame_3):
12419         (msprinter_frame_property):
12420         (msprinter_internal_frame_property_p):
12421         (msprinter_frame_properties):
12422         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12423         print job properties (will move to device settings).
12424
12425         * lisp.h: Added symbols.
12426
12427         * general.c (syms_of_general): Declared them.
12428
12429         * hash.c (string_hash): Added.
12430
12431         * lrecord.h (lrecord_type): Added devmode lrecord type.
12432
12433 2000-07-02  Mike Sperber <mike@xemacs.org>
12434
12435         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12436         FreeBSD 4.0.
12437
12438 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12439
12440         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12441         integer.
12442
12443 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12444
12445         * data.c (Fstring_to_number): Don't recognize floating point if
12446         base is not 10.
12447
12448 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12449
12450         * glyphs-widget.c (tab_control_query_geometry):
12451         (widget_query_geometry):
12452         (button_query_geometry):
12453         * glyphs.c (text_query_geometry):
12454         Enforce type correctness.
12455
12456 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12457
12458         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12459         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12460
12461 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12462
12463         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12464         conflicts with gcc's fixincluded version of FOO.h.
12465
12466         * glyphs.h (image_instance_geometry): Remove trailing `,'
12467
12468 2000-06-08  Mike Alexander  <mta@arbortext.com>
12469
12470         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12471         (shove_thread): Don't write the same output twice
12472         (make_ntpipe_output_stream): Increase priority of shove thread
12473         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12474         chance to run
12475         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12476         it.
12477
12478 2000-06-12  Ben Wing  <ben@xemacs.org>
12479
12480         * s\mingw32.h (sigset):
12481         * s\windowsnt.h (sigset):
12482         rename msw_ to mswindows_ for consistency with general convention.
12483
12484 2000-06-12  Ben Wing  <ben@xemacs.org>
12485
12486         * console-msw.c:
12487         * console-msw.c (mswindows_get_console_hwnd):
12488         * console-msw.c (mswindows_ensure_console_allocated):
12489         * console-msw.c (mswindows_hide_console):
12490         * console-msw.c (mswindows_show_console):
12491         * console-msw.c (mswindows_ensure_console_buffered):
12492         * console-msw.c (mswindows_output_console_string):
12493         * console-msw.c (mswindows_windows9x_p):
12494         * console-msw.h:
12495         * device-msw.c (mswindows_get_workspace_coords):
12496         * device-msw.c (mswindows_device_system_metrics):
12497         * dialog-msw.c (mswindows_popup_dialog_box):
12498         * event-msw.c (mswindows_wnd_proc):
12499         * frame-msw.c (mswindows_size_frame_internal):
12500         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12501         * menubar-msw.c (displayable_menu_item):
12502         * menubar-msw.c (mswindows_char_is_accelerator):
12503         * nt.c:
12504         * nt.c (mswindows_sigset):
12505         * nt.c (mswindows_sigrelse):
12506         * nt.c (mswindows_sigpause):
12507         * nt.c (mswindows_raise):
12508         * nt.c (timer_proc):
12509         * ntproc.c:
12510         * ntproc.c (find_child_console):
12511         * ntproc.c (sys_kill):
12512         * print.c:
12513         * print.c (std_handle_out_external):
12514         * process-nt.c (find_child_console):
12515         * process-nt.c (send_signal_the_95_way):
12516         * process-nt.c (ensure_console_window_exists):
12517         * process-nt.c (nt_create_process):
12518         * syssignal.h:
12519         rename msw_ to mswindows_ for consistency with general convention.
12520
12521         * emacs.c:
12522         * dumper.c:
12523         include nt.h, not syswindows.h.
12524
12525         * nt.c (mswindows_fstat):
12526         * nt.c (mswindows_stat):
12527         prefix mswindows_ instead of attempting to directly override the
12528         library functions.  fix declarations.
12529
12530         * nt.h:
12531         include syswindows.h.  move some sysdep.h stuff here.
12532
12533         * ntheap.h:
12534         include syswindows.h, not <windows.h>.
12535
12536         * ntplay.c:
12537         clean up headers.
12538
12539         * sysdep.c:
12540         clean up headers.
12541
12542         * sysdep.c (sys_fstat):
12543         * sysdep.c (sys_stat):
12544         call mswindows versions when appropriate.
12545
12546         * sysdep.h:
12547         move mswin decls to nt.h.
12548
12549         * syswindows.h:
12550         add long comment describing appropriate use of the various windows
12551         headers.
12552
12553 2000-06-11  Ben Wing  <ben@xemacs.org>
12554
12555         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12556
12557 2000-06-10  Ben Wing  <ben@xemacs.org>
12558
12559         * Makefile.in.in (release):
12560         Correction to make sure xemacs.exe always dumped when correct.
12561
12562         * alloca.c:
12563         * balloon_help.c:
12564         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12565
12566         * buffer.c (set_buffer_internal):
12567         [[[[2]]]]: Remove HAVE_FEP code.
12568
12569         * buffer.c (init_initial_directory):
12570         [3].
12571
12572         * bytecode.c:
12573         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12574         individual files.
12575
12576         * callproc.c:
12577         * callproc.c (call_process_cleanup):
12578         * callproc.c (Fold_call_process_internal):
12579         * callproc.c (child_setup):
12580         * callproc.c (getenv_internal):
12581         * callproc.c (init_callproc):
12582         * callproc.c (vars_of_callproc):
12583         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12584         __CYGWIN32__ -> CYGWIN.
12585         DOS_NT -> WIN32_NATIVE.
12586         Remove MSDOS support/references, converting to WIN32_NATIVE
12587           where correct.
12588         __MINGW32__ -> MINGW.
12589         Fix windows.h includes.
12590         Remove bogus HAVE_NTGUI.
12591
12592         * config.h.in:
12593         [2].
12594
12595         * console-msw.c:
12596         mswindows_message_outputted added for use in allowing startup
12597         errors on the console to be seen.
12598
12599         * console-msw.c (msw_ensure_console_allocated):
12600         * console-msw.c (msw_output_console_string):
12601         * console-msw.c (DHEADER):
12602         * console-msw.c (DOPAQUE_DATA):
12603         * console-msw.c (DEVENT):
12604         * console-msw.c (DCONS):
12605         * console-msw.c (DCONSCDR):
12606         * console-msw.c (DSTRING):
12607         * console-msw.c (DVECTOR):
12608         * console-msw.c (DSYMBOL):
12609         * console-msw.c (DSYMNAME):
12610         Fix warnings.
12611
12612         * console-stream.c (stream_init_console):
12613         Fix text/binary problems.
12614
12615         * device-msw.c:
12616         * device-msw.c (mswindows_finish_init_device):
12617         * device-msw.c (mswindows_delete_device):
12618         [1].
12619
12620         * device.c (handle_asynch_device_change):
12621         [3].
12622
12623         * dgif_lib.c:
12624         * dgif_lib.c (DGifOpenFileName):
12625         * dgif_lib.c (DGifOpenFileHandle):
12626         * dgif_lib.c (DGifGetLine):
12627         * dgif_lib.c (DGifGetPixel):
12628         Added config.h/lisp.h, fix up includes.
12629         [1].
12630
12631         * dired-msw.c:
12632         [4].
12633
12634         * dired.c:
12635         * dired.c (file_name_completion):
12636         * dired.c (Ffile_attributes):
12637         * dired.c (syms_of_dired):
12638         [1].
12639
12640         * dumper.c:
12641         * dumper.c (pdump_file_unmap):
12642         * dumper.c (pdump_load):
12643         [1].
12644
12645         * editfns.c:
12646         * editfns.c (Ftemp_directory):
12647         * editfns.c (user_login_name):
12648         * editfns.c (Fuser_real_login_name):
12649         * editfns.c (get_home_directory):
12650         [1].
12651
12652         * elhash.c (finish_marking_weak_hash_tables):
12653         [[[[5]]]]: Fix GCC warnings.
12654
12655         * emacs.c:
12656         * emacs.c (mswindows_handle_hardware_exceptions):
12657         * emacs.c (make_arg_list_1):
12658         * emacs.c (main_1):
12659         * emacs.c (Fkill_emacs):
12660         * emacs.c (Fdump_emacs):
12661         [1].
12662         Fix problems with nested crashes, add long comment.
12663
12664         * event-Xt.c (init_event_Xt_late):
12665         [1].
12666
12667         * event-msw.c:
12668         * event-msw.c (mswindows_dde_callback):
12669         * event-msw.c (mswindows_handle_sticky_modifiers):
12670         * event-msw.c (mswindows_wnd_proc):
12671         [1].
12672         [5].
12673
12674         * events.c (character_to_event):
12675         [1].
12676
12677         * fileio.c:
12678         * fileio.c (Ffile_name_directory):
12679         * fileio.c (Ffile_name_nondirectory):
12680         * fileio.c (directory_file_name):
12681         * fileio.c (Fexpand_file_name):
12682         * fileio.c (Fsubstitute_in_file_name):
12683         * fileio.c (Ffile_name_absolute_p):
12684         * fileio.c (check_executable):
12685         * fileio.c (Ffile_readable_p):
12686         * fileio.c (Ffile_accessible_directory_p):
12687         * fileio.c (Ffile_modes):
12688         * fileio.c (Funix_sync):
12689         * fileio.c (vars_of_fileio):
12690         [1]. [4].
12691
12692         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12693
12694         Expand getdefdir defn.
12695         Fix bogus rename() comment.
12696
12697         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12698         to use standard XEmacs include files, e.g. sysfile.h, rather
12699         than system-specific includes.
12700
12701         * fns.c:
12702         * fns.c (Fsubseq):
12703         [5]. [6].
12704
12705         * frame.c (vars_of_frame):
12706         [1].
12707
12708         * getloadavg.c:
12709         * getloadavg.c (getloadavg):
12710         [1]. [6].
12711         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12712         (We don't use it elsewhere in the code; just add a comment.)
12713
12714         * gif_io.c:
12715         [6].
12716         Add config.h.
12717
12718         * glyphs-msw.c:
12719         * glyphs-msw.c (mswindows_resource_instantiate):
12720         [1].
12721
12722         * glyphs-x.c (x_native_layout_instantiate):
12723         [5].
12724
12725         * gui-msw.c (Fmswindows_shell_execute):
12726         [1].
12727
12728         * insdel.c:
12729         [4].
12730
12731         * lisp.h:
12732         [4]. [5].
12733
12734         * lread.c (locate_file_in_directory_mapper):
12735         [1].
12736
12737         * lstream.c:
12738         [4].
12739
12740         * mem-limits.h:
12741         * mem-limits.h (get_lim_data):
12742         [1].
12743
12744         * menubar-msw.c:
12745         [4].
12746
12747         * ndir.h:
12748         [1].
12749
12750         * nt.c:
12751         * nt.c (getwd):
12752         * nt.c (closedir):
12753         * nt.c (rva_to_section):
12754         * nt.c (mswindows_executable_type):
12755         [1]. [6].
12756         Fix closedir() defn.
12757
12758         * nt.h:
12759         [[[[8]]]]: *_OK defs moved to sysfile.h.
12760
12761         * ntproc.c:
12762         [6]. [7].
12763
12764         * objects-x.c:
12765         [4].
12766
12767         * print.c:
12768         * print.c (std_handle_out_external):
12769         [1]. [4].
12770
12771         * process-nt.c:
12772         * process-nt.c (nt_create_process):
12773         [6].
12774         try to fix process quoting somewhat.
12775
12776         * process-unix.c (unix_create_process):
12777         [1].
12778
12779         * process.c:
12780         * process.c (vars_of_process):
12781         Add Vnull_device.
12782
12783         * process.h:
12784         [1].
12785
12786         * realpath.c:
12787         * realpath.c (xrealpath):
12788         [1].
12789
12790         * redisplay-tty.c (init_tty_for_redisplay):
12791         [3].
12792
12793         * redisplay.c:
12794         [4]. [6].
12795
12796         * scrollbar-msw.c:
12797         [4].
12798
12799         * sheap.c:
12800         * sheap.c (more_static_core):
12801         * sheap.c (report_sheap_usage):
12802         [5]. [6].
12803
12804         * signal.c:
12805         * signal.c (alarm_signal):
12806         [1]. [6].
12807
12808         * sound.c:
12809         [6].
12810
12811         * strftime.c:
12812         * strftime.c (zone_name):
12813         [1]. [5].
12814
12815         * symsinit.h (init_sunpro):
12816         [1].
12817
12818         * syscommctrl.h:
12819         commctrl.h not in Cygwin b20.1.
12820
12821         * sysdep.c:
12822         * sysdep.c (endif):
12823         * sysdep.c (sys_subshell):
12824         * sysdep.c (init_baud_rate):
12825         * sysdep.c (emacs_get_tty):
12826         * sysdep.c (emacs_set_tty):
12827         * sysdep.c (tty_init_sys_modes_on_device):
12828         * sysdep.c (init_system_name):
12829         * sysdep.c (sys_open):
12830         * sysdep.c (interruptible_open):
12831         * sysdep.c (sys_fopen):
12832         * sysdep.c (sys_mkdir):
12833         * sysdep.c (sys_rename):
12834         * sysdep.c (get_process_times_1):
12835         [1]. [6].
12836
12837         * sysdep.h:
12838         [1].
12839
12840         * sysdir.h:
12841         * sysdir.h (DIRENTRY_NONEMPTY):
12842         [1]. [6].
12843
12844         * sysdll.c (dll_init):
12845         * sysdll.h:
12846         [1].
12847
12848         * sysfile.h:
12849         [1]. [6]. [8].
12850         added text/binary defs.
12851
12852         * sysfloat.h:
12853         [1].
12854
12855         * sysproc.h:
12856         * sysproc.h (EDESTADDRREQ):
12857         * sysproc.h (poll_fds_for_input):
12858         [1]. [6].
12859
12860         * syspwd.h:
12861         [6].
12862
12863         * syssignal.h:
12864         [1].
12865
12866         * systime.h:
12867         [1]. [6].
12868
12869         * systty.h:
12870         [1].
12871
12872         * syswindows.h:
12873         [1].
12874         Always define WIN32_LEAN_AND_MEAN.
12875
12876         * unexcw.c (unexec):
12877         [5].
12878
12879         * unexec.c:
12880         * unexec.c (copy_text_and_data):
12881         * unexec.c (adjust_lnnoptrs):
12882         [1].
12883
12884         * unexnt.c:
12885         * unexnt.c (_start):
12886         [1].
12887
12888 2000-06-07  Ben Wing  <ben@xemacs.org>
12889
12890         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12891         was used only as a model.  We've long since extracted any useful
12892         logic or code out of this. (I just did an exhaustive search.)
12893
12894         * s\msdos.h: Removed.
12895
12896         * s\windows95.h: Removed.
12897
12898 2000-06-10  Ben Wing  <ben@xemacs.org>
12899
12900         * s\cygwin32.h:
12901         [1]. [5].
12902         Don't use extern with fun defs.
12903
12904         * s\mingw32.h:
12905         [1]. [7].
12906         Remove nt\inc include.
12907         Remove getdisk, getdefdir. (The former is unused, the latter
12908         expanded in fileio.h.)
12909
12910         * s\windowsnt.h:
12911         * s\windowsnt.h (WIN32_NATIVE):
12912         * s\windowsnt.h (HAVE_STRCASECMP):
12913         [1]. [7].
12914         Add long comment about preprocessor changes.
12915         Remove getdisk, getdefdir. (The former is unused, the latter
12916         expanded in fileio.h.)
12917
12918 2000-06-10  Ben Wing  <ben@xemacs.org>
12919
12920         * m\arm.h:
12921         * m\delta.h:
12922         * m\intel386.h:
12923         * m\sequent.h:
12924         * m\template.h:
12925         * m\windowsnt.h:
12926         [1].
12927         Remove bogus/unused NO_SOCK_SIGIO.
12928
12929 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12930
12931         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12932         not an Emchar.
12933
12934 2000-06-04  Mike Sperber <mike@xemacs.org>
12935
12936         * casetab.c (set_case_table): For `set-standard-case-table',
12937         actually deposit the new case tables where the rest of XEmacs can
12938         see them.
12939
12940 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12941
12942         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12943
12944 2000-06-05  Ben Wing  <ben@xemacs.org>
12945
12946         * callproc.c (child_setup): Don't do close_load_descs() under
12947         MS Windows.  Put in a comment explaining why.
12948
12949 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12950
12951         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12952         Toolkit shell" which breaks `kill-compilation' on Windows NT
12953         native, retaining STDERR handling improvements.
12954
12955 2000-06-01  Andreas Jaeger  <aj@suse.de>
12956
12957         * s/s390.h: Support for S390, based on a patch by Martin
12958         Schwidefsky <schwidefsky@de.ibm.com>.
12959
12960 2000-05-30  Andy Piper  <andy@xemacs.org>
12961
12962         * window.c (allocate_window):
12963         (make_dummy_parent):
12964         (Fset_window_configuration): use new hashtable type.
12965
12966         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12967         (struct image_instantiator_methods):
12968         (struct Lisp_Image_Instance): make instance geometry signed.
12969
12970         * glyphs.c (instantiate_image_instantiator):
12971         (image_instance_query_geometry):
12972         (image_instance_layout):
12973         (image_instance_layout):
12974         (query_string_geometry):
12975         (text_query_geometry):
12976         (image_instantiate):
12977         (image_instantiate):
12978         (cache_subwindow_instance_in_frame_maybe):
12979         (subwindow_query_geometry): make instance geometry signed.
12980
12981         * glyphs-widget.c (widget_query_geometry):
12982         (widget_layout):
12983         (button_query_geometry):
12984         (tree_view_query_geometry):
12985         (tab_control_query_geometry):
12986         (layout_query_geometry):
12987         (layout_layout):
12988         (native_layout_layout): make instance geometry signed.
12989
12990 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12991
12992         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12993         constant.
12994
12995         * general.c (syms_of_general): Add Qfull_assoc symbol.
12996
12997         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12998         correctly.
12999         (decode_weak_list_type): Decode full-assoc type.
13000         (encode_weak_list_type): Encode full-assoc type.
13001         (Fmake_weak_list): Update doc string.
13002
13003 2000-05-30  Andy Piper  <andy@xemacs.org>
13004
13005         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13006
13007         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13008         (decode_hash_table_weakness): ditto.
13009         (Fhash_table_weakness): ditto.
13010         (Fhash_table_type): ditto.
13011         (finish_marking_weak_hash_tables): ditto.
13012         (hash_table_weakness_validate): ditto.
13013         (syms_of_elhash): ditto.
13014
13015 2000-05-28  Martin Buchholz <martin@xemacs.org>
13016
13017         * XEmacs 21.2.34 is released.
13018
13019 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13020
13021         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13022         start cache.
13023         (updating_line_start_cache): Gone.
13024         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13025         generic code to force a minimum of 1 line laid out in the
13026         CMOTION_DISP case.
13027
13028 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13029
13030         * glyphs.c (instantiate_image_instantiator): Check for initialized
13031         height & width no longer special cases IMAGE_NOTHING.
13032         (nothing_instantiate): Set height and width of instance.
13033
13034 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13035
13036         * unexelf.c (unexec): Search for ".data" section.
13037         Initialize new_data2_offset from old_data_index.
13038         Remove redundant check for ElfW.
13039
13040 2000-05-23  Andy Piper  <andy@xemacs.org>
13041
13042         * glyphs.c (get_image_instantiator_governing_domain): allow more
13043         specific domains as the governing domain rather than expecting an
13044         exact match. This fixes problems with layouts.
13045
13046 2000-05-22  Andy Piper  <andy@xemacs.org>
13047
13048         * redisplay-output.c (compare_runes): check for non-images
13049
13050         * glyphs.c (set_glyph_dirty_p): ditto.
13051         (update_glyph_cachel_data): ditto.
13052
13053         * glyphs-widget.c (layout_post_instantiate): ditto.
13054         (layout_post_instantiate): ditto.
13055
13056         * event-msw.c (mswindows_wnd_proc): warning removal.
13057
13058 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13059
13060         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13061
13062         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13063
13064         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13065
13066         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13067         (mswindows_executable_type): mingw32 now has enough headers for
13068         this to work.
13069
13070 2000-05-20  Andy Piper  <andy@xemacs.org>
13071
13072         * console-msw.c (mswindows_output_last_error): ; -> ,
13073
13074 2000-05-12  Andy Piper  <andy@xemacs.org>
13075
13076         * console-msw.c (FROB): compare ints with ints.
13077
13078 2000-05-11  Andy Piper  <andy@xemacs.org>
13079
13080         * glyphs-x.c (x_finalize_image_instance): make minimal build
13081         happy.
13082
13083 2000-05-20  Ben Wing  <ben@xemacs.org>
13084
13085         * event-Xt.c:
13086         * event-Xt.c (vars_of_event_Xt):
13087         move modifier-keys-are-sticky to event-stream.c.
13088
13089         * event-msw.c:
13090         * event-msw.c (mswindows_enqueue_mouse_button_event):
13091         * event-msw.c (key_needs_default_processing_p):
13092         * event-msw.c (XEMSW_LCONTROL):
13093         * event-msw.c (mswindows_handle_sticky_modifiers):
13094         * event-msw.c (FROB):
13095         * event-msw.c (clear_sticky_modifiers):
13096         * event-msw.c (output_modifier_keyboard_state):
13097         * event-msw.c (output_alt_keyboard_state):
13098         * event-msw.c (mswindows_wnd_proc):
13099         * event-msw.c (mswindows_modifier_state):
13100         * event-msw.c (emacs_mswindows_handle_magic_event):
13101         implement sticky modifiers.
13102
13103         * event-stream.c:
13104         * event-stream.c (vars_of_event_stream):
13105         move modifier-keys-are-sticky here.
13106
13107         * lisp.h:
13108         add CHECK_FUNCTION.
13109
13110         * rangetab.c:
13111         implement map-range-table.
13112
13113
13114 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13115
13116         * redisplay-tty.c (reset_tty_modes):
13117         (tty_redisplay_shutdown): Adjust argument type to
13118         tty_frame_output_end.
13119
13120 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13121
13122         * eval.c (Fbacktrace): Don't output a line with only right
13123         parenthesis.
13124
13125 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13126
13127         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13128         (Fpq_reset_poll): Ditto.
13129
13130 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13131
13132         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13133
13134 2000-05-16  Ben Wing  <ben@xemacs.org>
13135
13136         * buffer.c:
13137         * buffer.c (dfc_convert_to/from_internal_format):
13138         * buffer.c (reinit_vars_of_buffer):
13139         Fix conversion functions to allow reentrancy.
13140
13141         * console-msw.c:
13142         * console-msw.c (mswindows_output_last_error):
13143         New fun, generally useful -- output a human-readable
13144         version of GetLastError() on the console.
13145
13146         * console-msw.h:
13147         * console-msw.h (struct mswindows_frame):
13148         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13149
13150         * console-stream.c (stream_output_begin):
13151         * console-stream.c (stream_output_end):
13152         * console-stream.c (stream_output_vertical_divider):
13153         * console-stream.c (stream_clear_region):
13154         * console-stream.c (stream_flash):
13155         * console-stream.c (console_type_create_stream):
13156         Delete blank stream methods, not needed.
13157
13158         * console.h (struct console_methods):
13159         Split begin/end methods into window and frame.
13160
13161         * event-msw.c:
13162         * event-msw.c (mswindows_handle_paint):
13163         * event-msw.c (output_alt_keyboard_state):
13164         * event-msw.c (mswindows_wnd_proc):
13165         * event-msw.c (vars_of_event_mswindows):
13166         Comment about problems with ignored-expose.
13167         Define mswindows-debug-events; not really implemented.
13168
13169         * frame-msw.c (mswindows_init_frame_1):
13170         random cleanups.
13171
13172         * glyphs-msw.c:
13173         * glyphs-msw.c (begin_defer_window_pos):
13174         * glyphs-msw.c (mswindows_unmap_subwindow):
13175         * glyphs-msw.c (mswindows_map_subwindow):
13176         * glyphs-msw.c (mswindows_resize_subwindow):
13177         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13178
13179         * glyphs.c (make_image_instance_1):
13180         Fix crash.
13181
13182         * gutter.c (Fredisplay_gutter_area):
13183         Use new begin/end methods.
13184
13185         * lisp.h (Dynarr_new2):
13186         New creation fun.
13187
13188         * redisplay-msw.c:
13189         * redisplay-msw.c (mswindows_frame_output_begin):
13190         * redisplay-msw.c (mswindows_frame_output_end):
13191         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13192         New begin/end methods -- handle DeferWindowPos.
13193
13194         * redisplay-output.c (redisplay_move_cursor):
13195         * redisplay-output.c (redraw_cursor_in_window):
13196         * redisplay-output.c (redisplay_update_line):
13197         * redisplay-output.c (redisplay_output_window):
13198         New begin/end methods.
13199
13200         * redisplay-tty.c:
13201         * redisplay-tty.c (tty_frame_output_begin):
13202         * redisplay-tty.c (tty_frame_output_end):
13203         * redisplay-tty.c (console_type_create_redisplay_tty):
13204         New begin/end methods.
13205
13206         * redisplay-x.c:
13207         * redisplay-x.c (x_window_output_begin):
13208         * redisplay-x.c (x_window_output_end):
13209         * redisplay-x.c (console_type_create_redisplay_x):
13210         New begin/end methods.
13211
13212         * redisplay.c (redisplay_frame):
13213         * redisplay.c (Fredisplay_echo_area):
13214         New begin/end methods.
13215         use MAYBE_DEVMETH for clear_frame; it may not exist.
13216
13217         * window.h (WINDOW_XFRAME):
13218         WINDOW_XFOO macros -- get locale and decode struct pointer.
13219
13220
13221 2000-05-12  Ben Wing  <ben@xemacs.org>
13222
13223         * emacs.c:
13224         * emacs.c (ensure_no_quitting_from_now_on):
13225         * emacs.c (fatal_error_signal):
13226         * emacs.c (mswindows_handle_hardware_exceptions):
13227         * emacs.c (main):
13228         * emacs.c (Fkill_emacs):
13229         * emacs.c (shut_down_emacs):
13230         * emacs.c (assert_failed):
13231         various improvements in fatal error handling.
13232
13233         * eval.c:
13234         move preparing_for_armageddon to emacs.c.
13235
13236         * lisp.h:
13237         declare fatal_error_in_progress.
13238
13239         * print.c:
13240         * print.c (std_handle_out_external):
13241         * print.c (std_handle_out_va):
13242         * print.c (stderr_out):
13243         * print.c (stdout_out):
13244         use console under mswin when no standard output.
13245         don't do code conversion during fatal error.
13246
13247         * scrollbar.c (Fscrollbar_page_up):
13248         * scrollbar.c (Fscrollbar_page_down):
13249         fix missing else.  reindent.
13250
13251 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13252
13253         Emergency fix.
13254
13255         * glyphs.h (GLYPH_CACHEL_DESCENT):
13256         (GLYPH_CACHEL_DESCENT):
13257         (GLYPH_CACHEL_DESCENT):
13258         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13259         used in case these are inline functions.
13260         Use more absurd values to error check.
13261
13262         include window.h for error check functions.
13263
13264 2000-05-11  Ben Wing  <ben@xemacs.org>
13265
13266         * cmdloop.c (Freally_early_error_handler):
13267         Display message box under windows; otherwise, message will disappear
13268         before it can be viewed.
13269
13270         * console-msw.c:
13271         * console-msw.c (Fmswindows_message_box):
13272         * console-msw.c (FROB):
13273         * console-msw.c (syms_of_console_mswindows):
13274         Define new fun `mswindows-message-box'.
13275         #### I will merge this into `popup-dialog-box'; just give me
13276         a bit of time.
13277
13278         * general.c:
13279         * general.c (syms_of_general):
13280         Some new symbols used in `mswindows-message-box'.
13281
13282         * glyphs.c:
13283         * glyphs.c (Fset_image_instance_property):
13284         put warning in this fun.
13285
13286         * glyphs.h:
13287         * glyphs.h (GLYPH_CACHEL_WIDTH):
13288         * glyphs.h (GLYPH_CACHEL_ASCENT):
13289         * glyphs.h (GLYPH_CACHEL):
13290         * glyphs.h (GLYPH_CACHEL_GLYPH):
13291         define error-checking versions to try to catch a bug i've seen --
13292         redisplay gets in an infinite loop because the glyph width of the
13293         continuation glyph is 65535.
13294
13295         * lisp.h:
13296         Extern message-box stuff.
13297
13298         * window.c (allocate_window):
13299         * window.c (make_dummy_parent):
13300         * window.c (Fset_window_configuration):
13301         Use EQUAL not EQ for subwindow caches to make them work a bit
13302         better. (Something is still very broken.)
13303
13304
13305 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13306
13307         * glyphs.c (image_instantiate): Suppress gcc warnings.
13308         (Fmake_image_instance): Fix doc string.
13309         * specifier.c (Fmake_specifier): Ditto.
13310
13311 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13312
13313         * paths.h.in (PATH_LOCK): Removed.
13314         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13315         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13316
13317 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13318
13319         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13320         Document (featurep '(and xemacs 21.02)).
13321
13322 2000-05-09  Ben Wing  <ben@xemacs.org>
13323
13324         * buffer.c (complex_vars_of_buffer):
13325         update modeline-format doc.
13326
13327         * device.h:
13328         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13329
13330         * emacs.c:
13331         timeline of all released versions of Emacs, for use in creating
13332         authorship comments and in synching up.
13333
13334         * glyphs-widget.c (image_instantiator_buttons):
13335         * glyphs-widget.c (image_instantiator_edit_fields):
13336         * glyphs-widget.c (image_instantiator_combo_box):
13337         * glyphs-widget.c (image_instantiator_scrollbar):
13338         * glyphs-widget.c (image_instantiator_progress_guage):
13339         * glyphs-widget.c (image_instantiator_tree_view):
13340         * glyphs-widget.c (image_instantiator_tab_control):
13341         * glyphs-widget.c (image_instantiator_labels):
13342         * glyphs-widget.c (image_instantiator_layout):
13343         * glyphs-widget.c (image_instantiator_native_layout):
13344         rename decode_domain method to governing_domain.
13345
13346         * glyphs.c:
13347         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13348         * glyphs.c (add_entry_to_device_ii_format_list):
13349         make sure we don't put an entry more than once into the list.
13350         * glyphs.c (check_instance_cache_mapper):
13351         *************************************************************
13352         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13353         HAVE BEEN GETTING.
13354         *************************************************************
13355         * glyphs.c (get_image_instantiator_governing_domain):
13356         clean up, expand on new concept of governing domain.
13357         * glyphs.c (instantiate_image_instantiator):
13358         * glyphs.c (allocate_image_instance):
13359         use governing_domain instead of cache_domain in naming.
13360         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13361         * glyphs.c (make_image_instance_1):
13362         * glyphs.c (Fmake_image_instance):
13363         allow for any domain (not just device), and process the
13364         governing domain correctly.  very big doc fix.
13365         * glyphs.c (Fimage_instance_domain):
13366         new primitive, to retrieve the governing domain of an image instance.
13367         * glyphs.c (image_instantiate):
13368         use new governing_domain stuff.  this fixes a crash you could get
13369         by instantiating certain widget glyphs in frame locales. (should
13370         signal an error instead of crashing.)
13371         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13372         * glyphs.c (Fglyphp): clean up doc.
13373         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13374         * glyphs.c (syms_of_glyphs):
13375         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13376         * glyphs.c (image_instantiator_format_create): add some comments about
13377         bogus code.
13378         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13379         for current-display-table. (Apparently Hrjove implemented in 1998 a
13380         design I wrote up in 1996, but didn't update the doc string.)
13381
13382         * glyphs.h: clean up a doc string.
13383         * glyphs.h (governing_domain):
13384         * glyphs.h (struct image_instantiator_methods):
13385         changes for governing_domain stuff.
13386
13387         * gutter.c:
13388         * gutter.c (Fgutter_specifier_p):
13389         * gutter.c (Fgutter_size_specifier_p):
13390         * gutter.c (Fgutter_visible_specifier_p):
13391         * objects.c:
13392         * objects.c (Fcolor_specifier_p):
13393         * objects.c (Ffont_specifier_p):
13394         * objects.c (Fface_boolean_specifier_p):
13395         doc strings moved to make-*-specifier.
13396
13397         * redisplay.c (add_disp_table_entry_runes_1):
13398         * redisplay.c (generate_fstring_runes):
13399         * redisplay.c (screen):
13400         add random comments and doc strings.
13401
13402         * specifier.c:
13403         * specifier.c (Fmake_specifier):
13404         major overhaul of this doc string.
13405
13406         * specifier.c (Fvalid_specifier_domain_p):
13407         comment about the bogosity of image instances being domains.
13408         * specifier.c (decode_domain):
13409         now non-static, used in glyphs.c.
13410         * specifier.c (specifier_instance):
13411         comment about the bogosity of image instances being domains.
13412         * specifier.c (Fgeneric_specifier_p):
13413         move doc string to make-generic-specifier.
13414         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13415         rebackslashify.
13416
13417         * specifier.h:
13418         * specifier.h (DOMAIN_FRAME):
13419         * specifier.h (DOMAIN_LIVE_P):
13420         * specifier.h (DOMAIN_XDEVICE):
13421         rebackslashify.
13422         add comments about problems with these macros.
13423         prototype for decode_domain.
13424
13425         * toolbar.c:
13426         * toolbar.c (Ftoolbar_specifier_p):
13427         move doc string to `make-toolbar-specifier'.
13428
13429         * window.c (window_unmap_subwindows_cache_mapper):
13430         *************************************************************
13431         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13432         HAVE BEEN GETTING.
13433         *************************************************************
13434
13435 2000-05-09  Andy Piper  <andy@xemacs.org>
13436
13437         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13438
13439         * window.c (Fset_window_configuration): reset the frame subwindow
13440         cache and re-initialize the window subwindow caches.
13441
13442         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13443
13444 2000-05-09  Ben Wing  <ben@xemacs.org>
13445
13446         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13447         DWORD.
13448
13449 2000-04-26  Mike Woolley  <mike@bulsara.com>
13450
13451         * ntheap.c: Changed recreate_heap to limit the amount reserved
13452         for the heap to that which is actually available. Also now
13453         displays a message box (with some dignostics) in the event that
13454         it still can't start.
13455
13456 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13457
13458         * callproc.c (Fold_call_process_internal): GCPRO path
13459
13460 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13461
13462         Patch by Bill Perry.
13463
13464         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13465         back data instead of #ifdef.
13466         (Fscrollbar_page_down): ditto.
13467
13468 2000-05-07  Ben Wing  <ben@xemacs.org>
13469
13470         * buffer.h:
13471         Kludge for defining Qmswindows_tstr.
13472
13473         * nt.c:
13474         * nt.c (open_input_file):
13475         * nt.c (open_output_file):
13476         * nt.c (rva_to_section):
13477         * nt.c (mswindows_executable_type):
13478         Move all memory-mapped-file routines here (some were in unexnt.c,
13479         which is bad because they are used by process-nt.c, and unexnt
13480         won't be around when portable dumping).  Synched the above routines
13481         with FSF 20.6.
13482
13483         * nt.h:
13484         Removed ifdef'd out bogus code.
13485         Fixed some prototypes.
13486
13487         * nt.h (file_data):
13488         * nt.h (OFFSET_TO_RVA):
13489         * nt.h (RVA_TO_OFFSET):
13490         * nt.h (RVA_TO_PTR):
13491         Moved the memory-mapped-file structures, macros and prototypes
13492         here, to parallel nt.c.  ntheap.h should really be removed
13493         entirely, and it's a non-portable-dumper specific file.
13494
13495         * ntheap.h (round_to_next):
13496         Moved the memory-mapped-file structures, macros and prototypes
13497         to nt.h.
13498
13499         * ntproc.c (compare_env):
13500         Moved rva_to_section and mswindows_executable_type to nt.c.
13501         Moved compare_env to process-nt.c.
13502         ntproc.c will die, one day.
13503
13504         * ntproc.c (sys_spawnve):
13505         Account for win32_ -> mswindows_.
13506
13507         * process-nt.c:
13508         * process-nt.c (struct nt_process_data):
13509         * process-nt.c (ensure_console_window_exists):
13510         * process-nt.c (compare_env):
13511         * process-nt.c (nt_create_process):
13512         * process-nt.c (nt_kill_process_by_pid):
13513         * process-nt.c (syms_of_process_nt):
13514         * process-nt.c (vars_of_process_nt):
13515         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13516         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13517         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13518         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13519         Move compare_env here from ntproc.c.
13520
13521         * process.c (Fprocess_send_region):
13522         Takes an optional fourth argument, BUFFER, which should fix some
13523         problems with call-process.
13524
13525         * syscommctrl.h:
13526         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13527
13528         * syswindows.h:
13529         Move ICC_BAR_CLASSES to syscommctrl.h.
13530         Add preliminary macros for MSWindows/Mule.  More to come.
13531
13532         * unexnt.c:
13533         * unexnt.c (unexec):
13534         open_output_file moved to nt.c.
13535
13536
13537 2000-05-05  Andy Piper  <andy@xemacs.org>
13538
13539         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13540         instance from the frame cache also since GC may catch up too late
13541         to make frame deletion sane.
13542
13543 2000-05-04  Andy Piper  <andy@xemacs.org>
13544
13545         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13546         (x_finalize_image_instance): ungcpro on deletion.
13547
13548         * glyphs.c (image_instantiator_format_create): give pointers a
13549         query geometry method so that the geometry is at least set.
13550
13551         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13552         initialize layouts if using widgets.
13553
13554 2000-05-03  Andy Piper  <andy@xemacs.org>
13555
13556         * nt.c: remove bogus reference to sysmmsystem.h
13557
13558         * gui-x.c (popup_selection_callback): fix no selection abort.
13559
13560 2000-05-02  Andy Piper  <andy@xemacs.org>
13561
13562         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13563         (mswindows_widget_instantiate): ditto.
13564
13565         * glyphs-widget.c (initialize_widget_image_instance): initialize
13566         children correctly.
13567         (widget_instantiate): cope with children and items in the same
13568         instance.
13569
13570         * glyphs.c (mark_image_instance): cope with children as a first
13571         class member.
13572         (image_instance_equal): ditto.
13573         (image_instance_hash): ditto.
13574         (image_instance_changed): ditto.
13575
13576 2000-04-30  Andy Piper  <andy@xemacs.org>
13577
13578         * glyphs.c (subwindow_query_geometry): new function. Return some
13579         defaults.
13580         (subwindow_instantiate): don't assign dimensions if none have been
13581         given.
13582         (image_instantiator_format_create): add subwindow_query_geometry.
13583         (print_image_instance): cope with layouts as widgets.
13584
13585 2000-04-29  Andy Piper  <andy@xemacs.org>
13586
13587         * frame.c (delete_frame_internal): call
13588         free_frame_subwindow_instance_cache so that all subwindows are
13589         finalized before their parent.
13590         (mark_frame): remove subwindow_cachels.
13591         (Fmake_frame): remove subwindow_cachel manipulation.
13592         (allocate_frame_core): subwindow_instance_cache is a weak list.
13593         (delete_frame_internal): set subwindow_instance_cache to nil.
13594
13595         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13596         finalization safe.
13597         (mswindows_finalize_image_instance): use the device
13598         not the domain as the domain may have died already.
13599
13600         * glyphs-x.c (x_finalize_image_instance): ditto.
13601         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13602         HEIGHT.
13603
13604         * redisplay-output.c (redisplay_unmap_subwindows): update for
13605         subwindow instance cache as a weak list.
13606         (redisplay_unmap_subwindows_maybe): ditto.
13607         (redisplay_unmap_subwindows_except_us): ditto.
13608
13609         * glyphs.c (unmap_subwindow): error checking will check the domain
13610         so don't deal with it here. Don't use cachels anymore.
13611         (map_subwindow): ditto.
13612         (update_subwindow_cachel_data): remove old accessor names.
13613         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13614         (Fresize_subwindow): don't update cachel.
13615         (mark_subwindow_cachels):
13616         (update_subwindow_cachel_data):
13617         (add_subwindow_cachel):
13618         (get_subwindow_cachel_index):
13619         (update_subwindow_cachel):
13620         (reset_subwindow_cachels):
13621         (mark_subwindow_cachels_as_not_updated): deleted.
13622         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13623         subwindow instance to the frame cache.
13624         (find_matching_subwindow): update for subwindow instance cache as
13625         a weak list.
13626         (update_widget_instances): ditto.
13627         (image_instance_type_to_mask):inlined.
13628         (free_frame_subwindow_instance_cache): new function. finalize all
13629         subwindows that are instantiated.
13630
13631         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13632         of cachel information.
13633         (IMAGE_INSTANCE_DISPLAY_X):
13634         (IMAGE_INSTANCE_DISPLAY_Y):
13635         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13636         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13637         (XIMAGE_INSTANCE_DISPLAY_X):
13638         (XIMAGE_INSTANCE_DISPLAY_Y):
13639         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13640         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13641         remove subwindow_cachel structure and function references.
13642         (image_instance_type_to_mask): inline from glyphs.c
13643
13644         * redisplay.c (redisplay_frame): remove subwindow_cachel
13645         references.
13646
13647         * frame.h (struct frame): remove subwindow_cachels.
13648         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13649
13650         * frameslots.h: add subwindow_instance_cache.
13651
13652         * window.c (replace_window): check subwindow cache of replacement.
13653         (window_unmap_subwindows_cache_mapper):
13654         (window_unmap_subwindows): new functions. Unmap all subwindows
13655         cached on this window.
13656         (mark_window_as_deleted): unmap all subwindows.
13657
13658 2000-04-27  Andy Piper  <andy@xemacs.org>
13659
13660         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13661
13662         * glyphs-widget.c (widget_layout): return something.
13663         (layout_layout): return something. Fail if not initialized.
13664         (layout_query_geometry): ditto.
13665         (image_instantiator_native_layout): new function. Initialized the
13666         native layout type.
13667         (widget_instantiate): don't do layout stuff here.
13668
13669         * glyphs.c (instantiate_image_instantiator): reorded calling or
13670         instantiate and post_instantiate with layout in between.
13671         (image_instance_layout): be more selective about deciding whether
13672         the layout has been done or not.
13673
13674         * glyphs.h (struct image_instantiator_methods): return a value
13675         from layout_method.
13676
13677 2000-04-26  Andy Piper  <andy@xemacs.org>
13678
13679         * glyphs.c (allocate_image_instance): make initial width and
13680         height unspecified. Set initialized to 0.
13681
13682         * syscommctrl.h new file. Encapsulates commctrl.h.
13683
13684         * syswindows.h new file. Encapsulates windows.h.
13685
13686         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13687         * nt.c: ditto.
13688         * console-msw.h: ditto.
13689
13690         * redisplay-tty.c (tty_output_display_block): remove layout references.
13691
13692         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13693         window handle rather than just the frame.
13694
13695         * glyphs.c (mark_image_instance): remove layout references.
13696         (print_image_instance): ditto.
13697         (image_instance_equal): ditto.
13698         (image_instance_hash): ditto.
13699         (decode_image_instance_type): ditto.
13700         (encode_image_instance_type): ditto.
13701         (image_instantiate): ditto.
13702         (allocate_glyph): ditto.
13703         (Fimage_instance_height): ditto.
13704         (Fimage_instance_width): ditto.
13705         (update_subwindow): ditto.
13706
13707         * redisplay-x.c (x_output_display_block): recode for layouts as
13708         widgets.
13709
13710         * redisplay-output.c (redisplay_output_layout): recode for layouts
13711         as widgets.
13712         (compare_runes): remove layout references.
13713
13714         * redisplay-msw.c (mswindows_output_display_block): recode for
13715         layouts as widgets.
13716
13717         * glyphs-widget.c (image_instantiator_layout): remove
13718         layout_possible_dest_types.
13719         (layout_possible_dest_types): deleted.
13720
13721         * glyphs.h (image_instance_type): remove layout references.
13722         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13723         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13724         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13725
13726 2000-04-25  Andy Piper  <andy@xemacs.org>
13727
13728         * glyphs-widget.c (image_instantiator_buttons):
13729         (image_instantiator_edit_fields):
13730         (image_instantiator_combo_box):
13731         (image_instantiator_scrollbar):
13732         (image_instantiator_progress_guage):
13733         (image_instantiator_tree_view):
13734         (image_instantiator_tab_control):
13735         (image_instantiator_labels):
13736         (image_instantiator_layout): call default post_instantiate method.
13737         (widget_post_instantiate): new function. Simply lays out the
13738         widgets.
13739
13740         * glyphs.h (struct image_instantiator_methods): add
13741         post_instantiate method.
13742
13743         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13744         method calls.
13745
13746 2000-04-23  Andy Piper  <andy@xemacs.org>
13747
13748         * glyphs.h (struct image_instantiator_methods): add
13749         decode_domain_method.
13750         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13751         derived from the domain.
13752         (IMAGE_INSTANCE_FRAME): new accessor.
13753         (XIMAGE_INSTANCE_FRAME): ditto.
13754
13755         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13756         instead of _SUBWINDOW_FRAME.
13757         (finalize_image_instance): ditto.
13758         (Fimage_instance_foreground): ditto.
13759         (Fimage_instance_background): ditto.
13760         (image_instantiate): ditto.
13761         (update_subwindow_cachel): ditto.
13762         (update_subwindow): ditto.
13763         (unmap_subwindow): ditto.
13764         (map_subwindow): ditto
13765         (subwindow_instantiate): ditto.
13766         * glyphs-msw.c (mswindows_update_widget): ditto.
13767         (mswindows_progress_gauge_instantiate): ditto.
13768         (mswindows_tab_control_update): ditto.
13769         * glyphs-x.c (x_update_widget): ditto.
13770         (x_widget_instantiate): ditto.
13771         (x_tab_control_instantiate): ditto.
13772         (x_tab_control_update): ditto.
13773         * event-msw.c (mswindows_wnd_proc): ditto
13774
13775         * glyphs-widget.c (image_instantiator_layout): use
13776         subwindow_decode_domain.
13777         (image_instantiator_buttons): ditto.
13778         (image_instantiator_edit_fields): ditto.
13779         (image_instantiator_combo_box): ditto.
13780         (image_instantiator_scrollbar): ditto.
13781         (image_instantiator_progress_guage): ditto.
13782         (image_instantiator_tree_view): ditto.
13783         (image_instantiator_tab_control): ditto.
13784         (image_instantiator_labels): ditto.
13785         (image_instantiator_layout): ditto.
13786
13787         * glyphs.c: add instance error checking to many functions.
13788         (instantiate_image_instantiator): decode device from cache_domain.
13789         (image_instantiate): partially rewrite by using
13790         decode_image_instantiator_domain to determine what domain the
13791         instance needs to be cached in.
13792         (decode_image_instantiator_domain): new function. Determine what
13793         domain the image needs to be cached in.
13794         (check_window_subwindow_cache): new error checking function.
13795         (check_instance_cache_mapper): ditto.
13796         (check_image_instance_structure): ditto.
13797         (subwindow_decode_domain): new function. Encodes a window as a
13798         subwindow's cache domain.
13799         (image_instantiator_format_create): use it for text and
13800         subwindows.
13801
13802 2000-04-21  Andy Piper  <andy@xemacs.org>
13803
13804         * glyphs.c (image_instance_device): new function.
13805         (image_instance_frame): new function.
13806         (image_instance_window): new function.
13807         (image_instance_live_p): new function.
13808
13809         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13810         cache to nil.
13811
13812         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13813         (IMAGE_INSTANCE_DOMAIN): new accessor.
13814         (XIMAGE_INSTANCE_DOMAIN): ditto.
13815
13816         * glyphs-x.c (x_finalize_image_instance): device->domain.
13817
13818         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13819         (mswindows_finalize_image_instance): ditto.
13820
13821         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13822         (gif_instantiate): ditto.
13823         (png_instantiate): ditto.
13824         (tiff_instantiate): ditto.
13825
13826         * glyphs.c (instantiate_image_instantiator): use domain rather
13827         than device.
13828         (mark_image_instance): device -> domain.
13829         (print_image_instance): ditto.
13830         (finalize_image_instance): ditto.
13831         (image_instance_equal): ditto.
13832         (allocate_image_instance): ditto.
13833         (Fcolorize_image_instance): ditto.
13834         (query_string_geometry): ditto.
13835         (image_instantiate): ditto
13836         (query_string_font): ditto.
13837         (image_instantiate): ditto.
13838         (update_subwindow): ditto.
13839         (unmap_subwindow): ditto.
13840         (map_subwindow): ditto.
13841         (subwindow_instantiate): ditto.
13842
13843         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13844         (DOMAIN_FRAME): ditto.
13845         (DOMAIN_WINDOW): ditto.
13846         (DOMAIN_LIVE_P): ditto.
13847         (XDOMAIN_DEVICE): ditto.
13848         (XDOMAIN_FRAME): ditto.
13849         (XDOMAIN_WINDOW): ditto.
13850
13851         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13852         a valid specifier domain.
13853
13854 2000-04-19  Andy Piper  <andy@xemacs.org>
13855
13856         * glyphs-widget.c (syms_of_glyphs_widget): remove
13857         widget-callback-current-channel.
13858         (vars_of_glyphs_widget): ditto.
13859         * glyphs.h: ditto
13860
13861         * gui.c (get_gui_callback): revert to previous behaviour.
13862
13863 2000-04-18  Andy Piper  <andy@xemacs.org>
13864
13865         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13866         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13867         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13868
13869         * glyphs.c (image_instance_equal): add margin_width.
13870         (image_instance_hash): ditto.
13871
13872         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13873         (layout_query_geometry): ditto.
13874         (layout_layout): ditto.
13875         (syms_of_glyphs_widget): add margin-width.
13876         (image_instantiator_layout): allow margin-width.
13877
13878         * glyphs.c (update_widget_instances): make a normal function.
13879         (syms_of_glyphs): remove Qupdate_widget_instances.
13880         * glyphs.h: ditto.
13881
13882         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13883         so that we don't corrupt ideas about the last event or
13884         command. Remove widget-callback-current-channel fiddling.
13885         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13886
13887 2000-05-01  Martin Buchholz <martin@xemacs.org>
13888
13889         * XEmacs 21.2.33 is released.
13890
13891 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13892
13893         * make-src-depend: Allow dots in header file name.
13894
13895 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13896
13897         * mule-charset.h (struct charset_lookup): Add
13898         next_allocated_1_byte_leading_byte and
13899         next_allocated_2_byte_leading_byte.
13900         * mule-charset.c: Move above two variables so that those values
13901         will be dumped.
13902
13903 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13904
13905         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13906         when string length is zero.
13907         (find_charsets_in_emchar_string): Ditto.
13908
13909 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13910
13911         * lisp.h: extern Qdialog and Qmenubar.
13912
13913         * gui-x.c: added events.h.
13914                 also fixed typo which made the file uncompilable.
13915
13916         * general.c: Added Qmenubar and Qdialog
13917
13918 2000-04-28  Ben Wing  <ben@xemacs.org>
13919
13920         * frame-msw.c (mswindows_init_frame_1):
13921         * frame-msw.c (mswindows_mark_frame):
13922         * event-msw.c (mswindows_enqueue_dispatch_event):
13923         * console-msw.h:
13924         * console-msw.h (struct mswindows_frame):
13925         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13926         there are now three hash tables for callbacks.
13927         mswindows_enqueue_dispatch_event is no longer static.
13928
13929         * dialog-x.c (maybe_run_dbox_text_callback):
13930         * dialog-x.c (dbox_descriptor_to_widget_value):
13931         switch to new cons3 form for callbacks.
13932
13933         * glyphs-msw.c (mswindows_register_gui_item):
13934         * glyphs-msw.c (mswindows_widget_instantiate):
13935         * glyphs-msw.c (add_tree_item):
13936         * glyphs-msw.c (add_tab_item):
13937         new image instance parameter, so it can be passed to callback-ex.
13938         respect :callback-ex as well as :callback.
13939
13940         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13941         add :callback-ex.
13942
13943         * glyphs.c (print_image_instance):
13944         prettify, e.g. now prints widget type.
13945
13946         * gui-x.h:
13947         certain funs have new image instance parameter.
13948
13949         * gui.c:
13950         * gui.c (get_gui_callback):
13951         * gui.c (gui_item_add_keyval_pair):
13952         * gui.c (gui_item_init):
13953         * gui.c (gui_add_item_keywords_to_plist):
13954         * gui.c (mark_gui_item):
13955         * gui.c (gui_item_hash):
13956         * gui.c (gui_item_equal):
13957         * gui.c (copy_gui_item):
13958         * gui.c (syms_of_gui):
13959         recognize callback-ex in a number of places.
13960         also, fix the annoying "can't get out of yes-no dialog" bug.
13961
13962         * gui.h:
13963         * gui.h (struct Lisp_Gui_Item):
13964         recognize callback-ex in a number of places.
13965
13966         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13967         new parameter in button_item_to_widget_value.
13968
13969         * glyphs-x.c (x_update_widget):
13970         * glyphs-x.c (x_button_instantiate):
13971         * glyphs-x.c (x_button_update):
13972         * glyphs-x.c (x_progress_gauge_instantiate):
13973         * glyphs-x.c (x_edit_field_instantiate):
13974         * glyphs-x.c (x_combo_box_instantiate):
13975         * glyphs-x.c (x_tab_control_instantiate):
13976         * glyphs-x.c (x_label_instantiate):
13977         new image instance parameter in various places.
13978
13979         * event-Xt.c:
13980         * event-Xt.c (enqueue_Xt_dispatch_event):
13981         this fun gets exported.
13982
13983         * gui-msw.c:
13984         * gui-msw.c (mswindows_handle_gui_wm_command):
13985         handle both :callback and :callback-ex, and generate our own
13986         event because it's one of the callback-ex arguments.
13987
13988         * gui-x.c:
13989         * gui-x.c (popup_selection_callback):
13990         handle both :callback and :callback-ex, and generate our own
13991         event because it's one of the callback-ex arguments.
13992         * gui-x.c (button_item_to_widget_value):
13993         * gui-x.c (gui_items_to_widget_values_1):
13994         * gui-x.c (gui_item_children_to_widget_values):
13995         * gui-x.c (gui_items_to_widget_values):
13996         new image instance parameter in various places.
13997
13998         * fns.c (Freplace_list):
13999         fix small typo in doc string.
14000
14001         * lisp.h:
14002         declare enqueue_Xt_dispatch_event.
14003
14004 2000-04-28  Ben Wing  <ben@xemacs.org>
14005
14006         * buffer.c:
14007         * buffer.c (Frecord_buffer):
14008         * buffer.c (syms_of_buffer):
14009         delete record-buffer-hook.
14010
14011         * fns.c:
14012         * fns.c (Freplace_list):
14013         * fns.c (syms_of_fns):
14014         new primitive replace-list.
14015
14016         * frameslots.h:
14017         slot for old buffer-alist.
14018
14019         * lisp.h:
14020         exfun replace-list.
14021
14022         * redisplay.c:
14023         * redisplay.c (redisplay_frame):
14024         * redisplay.c (syms_of_redisplay):
14025         * redisplay.c (vars_of_redisplay):
14026         new hook buffer-list-changed-hook.
14027         call it.
14028
14029 2000-04-27  Ben Wing  <ben@xemacs.org>
14030
14031         * extents.h: extern in_modeline_generation.
14032
14033         * redisplay.c (generate_formatted_string_db): set
14034         in_modeline_generation.
14035
14036         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14037         flags if in modeline generation.  otherwise frame-modified-tick
14038         is ticked far too often.
14039         Declare in_modeline_generation.
14040
14041 2000-04-26  Ben Wing  <ben@xemacs.org>
14042
14043         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14044         option.
14045         (vars_of_emacs): add quick-build as an error-checking option.
14046         A bit kludgy, but there doesn't seem much point in creating
14047         a real var for this.
14048
14049         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14050
14051 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14052
14053         * redisplay.h (struct display_line): Add a new variable,
14054         line_continuation.
14055
14056         * redisplay.c (create_text_block): Set dl->line_continuation if
14057         the line continues.
14058         (create_string_text_block): Ditto.
14059         (regenerate_window_incrementally): Use line_continuation instead
14060         of searching continuation glyph.
14061         (add_margin_runes): Call add_glyph_rune.
14062         (add_glyph_rune): Handle margin glyph.
14063
14064 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14065
14066         * filelock.c (fill_in_lock_file_name):
14067         ANSIfy.
14068         Check for IS_ANY_SEP instead of '/'.
14069         (lock_file_1):
14070         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14071         Never check errno without first seeing that system call failed.
14072         (unlock_file): Add GCPRO.
14073         (Flock_buffer): Fix docstring.
14074         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14075
14076 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14077
14078         * sysdep.c (get_pty_max_bytes):
14079         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14080         strings longer than 252 bytes.
14081
14082         * md5.c: Unconditionally include ANSI header <limits.h>
14083
14084         * glyphs-x.c (convert_EImage_to_XImage):
14085         * lisp-union.h (union Lisp_Object):
14086         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14087
14088 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14089
14090         * filelock.c (current_lock_owner): Remove unused variable o, p.
14091
14092 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14093
14094         * callint.c: Remove multiply defined symbol Qlet
14095         (syms_of_callint): ditto.
14096
14097 2000-04-14  Andy Piper  <andy@xemacs.org>
14098
14099         * general.c (syms_of_general): add last-command, this-command, let
14100         and funcall.
14101
14102         * lisp.h: declare various symbols.
14103
14104         * glyphs.h: declare Qwidget_callback_current_channel;
14105
14106         * glyphs-widget.c (syms_of_glyphs_widget): add
14107         Qgui_callback_current_channel.
14108         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14109
14110         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14111         widget-callback-current-channel when invoking the interactive
14112         arg. Also bind last-command and next-command when invoking the
14113         widget updates.
14114         * gui-x.c (popup_selection_callback): ditto.
14115
14116         * gui.c (get_gui_callback): massage args so that we are always
14117         calling eval. This allows us to add our own variable bindings
14118         outside.
14119
14120         * glyphs-x.c (x_button_instantiate): use
14121         gui_items_to_widget_values since this is GC safe.
14122         (x_progress_gauge_instantiate): ditto.
14123         (x_edit_field_instantiate): ditto.
14124         (x_label_instantiate): ditto.
14125
14126         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14127         (emacs_Xt_event_widget_focus_out): new function
14128         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14129         focus.
14130         (emacs_Xt_event_add_widget_actions): new function. add focus
14131         functions as actions.
14132         (init_event_Xt_late): use it.
14133
14134 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14135
14136         * event-stream.c (Fdispatch_event): Doc fix.
14137
14138 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14139
14140         * postgresql.c: Remove all references to PQsetenv*.
14141
14142         * postgresql.h: Remove references to PGsetenvHandler object.
14143         * lrecord.h (lrecord_type): Ditto.
14144
14145 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14146
14147         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14148         real_heigh and real_width members, and accessor macros for these.
14149
14150         * glyphs-msw.c (init_image_instance_geometry): New function.
14151         (init_image_instance_from_dibitmap): Use it.
14152         (mswindows_resource_instantiate): Use it.
14153         (init_image_instance_from_xbm_inline): Use it.
14154         (mswindows_initialize_image_instance_mask): Use real bitmap
14155         geometry.
14156         (mswindows_create_resized_bitmap): Ditto.
14157         (mswindows_create_resized_mask): Ditto.
14158
14159         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14160         and bitmap to their surface size.
14161
14162 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14163
14164         * process-unix.c (unix_send_process): Guard against process MIA
14165         after Faccept_process_output.
14166
14167 2000-04-11  Ben Wing  <ben@xemacs.org>
14168
14169         * eval.c (unbind_to_hairy): fix brokenness introduced by
14170         nanosecond speed improvements.
14171
14172 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14173
14174         * sunplay.c (init_device): To play sounds correctly, the device
14175         apparently needs to be initialized at least once by XEmacs.  Make
14176         it so.
14177
14178 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14179
14180         * redisplay.c (add_margin_runes): Add text image glyph
14181           handling.
14182
14183 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14184
14185         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14186         gcc is newer than 2.5.
14187
14188 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14189
14190         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14191
14192         * fns.c (size_bit_vector):
14193         * alloc.c (size_vector):
14194         (make_vector_internal):
14195         (make_bit_vector_internal):
14196         (sweep_bit_vectors_1):
14197         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14198
14199 2000-04-06  Andy Piper  <andy@xemacs.org>
14200
14201         * gmalloc.c (malloc): undo previous change.
14202         (malloc): ditto.
14203         (free): ditto.
14204         (realloc): ditto.
14205
14206 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14207
14208         * line-number.c (buffer_line_number): Revert to former version.
14209
14210 2000-04-06  Andy Piper  <andy@xemacs.org>
14211
14212         * gmalloc.c (malloc): add error checking.
14213         (malloc): ditto.
14214         (free): ditto.
14215         (realloc): ditto.
14216
14217         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14218         button_item_to_widget_value arg.
14219
14220         * glyphs-x.c (x_button_instantiate): add extra
14221         button_item_to_widget_value arg.
14222         (x_progress_gauge_instantiate): ditto.
14223         (x_edit_field_instantiate): ditto.
14224         (x_label_instantiate): ditto.
14225
14226         * gui-x.c (gui_items_to_widget_values_1): add extra
14227         button_item_to_widget_value arg.
14228         (button_item_to_widget_value): add extra menu_item_p arg.
14229
14230         * gui-x.h: change signature of button_item_to_widget_value.
14231
14232         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14233         button_item_to_widget_value arg.
14234
14235 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14236
14237         * buffer.h (struct buffer): auto_save_modified should be long.
14238
14239 2000-04-05  Andy Piper  <andy@xemacs.org>
14240
14241         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14242         type.
14243         (button_query_geometry): give a little more room so that athena
14244         buttons fit.
14245
14246 2000-04-05  Andy Piper  <andy@xemacs.org>
14247
14248         * faces.c (complex_vars_of_faces): The widget face should inherit
14249         the font of the gui-element face.
14250
14251 2000-04-04  Andy Piper  <andy@xemacs.org>
14252
14253         * glyphs-x.c (x_button_update): new function. unconditionally
14254         update a button's state when the instance is dirty.
14255         (image_instantiator_format_create_glyphs_x): add x_button_update.
14256         (x_widget_instantiate): remove old resize cruft.
14257
14258 2000-04-02  Andy Piper  <andy@xemacs.org>
14259
14260         * frame.c (change_frame_size_1): The introduction of gutters means
14261         that we need to allow 0 as a potential frame dimension.
14262
14263 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14264
14265         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14266         image glyph if allow_cursor.
14267         (add_hscroll_rune): Don't allow cursor to border glyph.
14268         (create_text_block): Ditto.
14269
14270         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14271         text not in buffer.
14272         (redisplay_output_layout): Call ensure_face_cachel_complete for
14273         text image glyph.
14274
14275
14276 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14277
14278         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14279
14280         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14281         not in buffer
14282
14283         * redisplay-tty.c (tty_output_display_block): Delete the routine
14284         for text image glyph
14285         * redisplay-x.c (x_output_display_block): ditto
14286         * redisplay-msw.c (mswindows_output_display_block): ditto
14287
14288 2000-02-02  Mike Alexander  <mta@arbortext.com>
14289
14290         Note: Some of these were committed by accident as part of other
14291         patches.
14292
14293         * regex.c (regex_compile): Avoid compiler warnings.
14294
14295         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14296
14297         * nt.h: Declare term_ntproc correctly.
14298
14299         * nt.c: Remove incorrect declaration of get_home_directory which
14300         is declared correctly in lisp.h.
14301
14302         * keymap.c (get_keyelt): Avoid compiler warnings.
14303         (raw_lookup_key_mapper): Avoid compiler warnings.
14304
14305         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14306
14307         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14308
14309         * filemode.c (mode_string): Avoid compiler warnings.
14310
14311         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14312         avoid warning.
14313
14314         * events-mod.h: Undef some things that winuser.h defines differently.
14315
14316         * data.c (Faset): Avoid compiler warnings.
14317
14318         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14319
14320 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14321
14322         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14323         Fall through to simple beep on error.
14324         Replace "extern" by real header file.
14325
14326         * linuxplay.c: Use nativesound.h
14327         (play_sound_data): Return error code. Be less verbose on error.
14328
14329         * sunplay.c: Use nativesound.h
14330         (play_sound_data): Return error code. Be less verbose on error.
14331
14332         * ntplay.c: Use nativesound.h
14333         (play_sound_data): Return fake error code
14334
14335         * sgiplay.c: Use nativesound.h
14336         (play_sound_data): Return error code
14337
14338         * hpplay.c: Use nativesound.h, partially implement
14339         new error code. Break compilation until finished.
14340         (play_sound_data): error code.
14341
14342         * nativesound.h (play_sound_file):
14343           (play_sound_data): Prototype in new header.
14344
14345 2000-03-31  Andy Piper  <andy@xemacs.org>
14346
14347         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14348         for toggle and radio buttons.
14349         (image_instantiator_buttons): use it.
14350
14351 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14352
14353         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14354         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14355         found. Scrollbar event probably belonged to some old config.
14356
14357 2000-03-31  Andy Piper  <andy@xemacs.org>
14358
14359         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14360         than 1.
14361         (initialize_widget_image_instance): default layout to
14362         LAYOUT_HORIZONTAL rather than 0.
14363         (widget_instantiate): reverse the item list at the end rather than
14364         every iteration.
14365         (layout_layout): re-code for the border text at the front of the
14366         item list rather than at the end.
14367         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14368         provided by the user.
14369         (widget_query_geometry): comment.
14370
14371 2000-03-30  Andy Piper  <andy@xemacs.org>
14372
14373         * glyphs-widget.c (image_instantiator_layout): allow standard
14374         widget keywords in layouts.
14375
14376         * gutter.c (output_gutter): cope with nil gutter contents.
14377
14378         * frame.c (Fset_frame_properties): add gutter docs.
14379
14380 2000-03-29  Andy Piper  <andy@xemacs.org>
14381
14382         * toolbar-msw.c (TBSTYLE_FLAT): add.
14383         (mswindows_output_toolbar): minor fiddling.
14384
14385 2000-03-29  Andy Piper  <andy@xemacs.org>
14386
14387         * gutter.c (output_gutter): force gutter size recalculation if
14388         what we are trying to display won't fit.
14389         (update_gutter_geometry): new function. A per-gutter version of
14390         update_frame_gutter_geometry.
14391         (update_frame_gutter_geometry): use it.
14392         (redraw_exposed_gutter): add extra debugging output.
14393
14394 2000-03-28  Mike Alexander  <mta@arbortext.com>
14395
14396         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14397         (pdump_file_unmap): Implement it on Windows
14398         (pdump_file_get): Save alocated handles for pdump_file_unmap
14399
14400 2000-03-28  Andy Piper  <andy@xemacs.org>
14401
14402         * gui.c (get_gui_callback): treat Quit specially.
14403
14404 2000-03-27  Andy Piper  <andy@xemacs.org>
14405
14406         * glyphs.c (image_instantiate): be careful to check in the same
14407         way we assigned.
14408
14409 2000-03-27  Didier Verna  <didier@xemacs.org>
14410
14411         * config.h.in: define the proper SMART_INCLUDE macro.
14412         handle renaming of `foo_h_path' to `foo_h_file'.
14413
14414         * database.c: ditto.
14415
14416         * emacs.c: ditto.
14417
14418         * linuxplay.c: ditto.
14419
14420         * terminfo.c: ditto.
14421
14422         * tooltalk.h: ditto.
14423
14424 2000-03-27  Andy Piper  <andy@xemacs.org>
14425
14426         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14427         gets updated whenever the face might have changed.
14428
14429 2000-03-26  Mike Alexander  <mta@arbortext.com>
14430
14431         * dumper.c (pdump_resource_free): Fix the comment.
14432
14433 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14434
14435         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14436
14437 2000-03-22  Mike Alexander  <mta@arbortext.com>
14438
14439         * dumper.c: Include Windows headers on Windows
14440         (pdump_resource_free): Add a body to the function
14441         (pdump_load): exe_name -> exe_path and add some comments.
14442
14443 2000-03-25  Mike Alexander  <mta@arbortext.com>
14444
14445         * gui.c (copy_gui_item_tree): Return a value in all cases
14446
14447 2000-03-21  Didier Verna  <didier@xemacs.org>
14448
14449         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14450         lwlib/config.h.in.
14451         (SMART_INCLUDE): new macro.
14452         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14453         the proper location.
14454
14455         * postgresql.c: use it.
14456
14457         * inline.c: ditto.
14458
14459 2000-03-24  Andy Piper  <andy@xemacs.org>
14460
14461         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14462         do this.
14463
14464 2000-03-24  Andy Piper  <andy@xemacs.org>
14465
14466         * redisplay-output.c (compare_runes): use image_instance_changed
14467         to detect changes. Do not depend on glyphs_changed, only depend on
14468         dirtiness.
14469          (redisplay_output_layout): add debug messages.
14470         (compare_runes): ditto.
14471
14472         * glyphs.h: declare new functions.
14473         (struct Lisp_Image_Instance): remove percent and associated
14474         accessors.
14475
14476         * gui.h: declare new copying functions.
14477
14478         * gui.c (copy_gui_item_tree): new function.
14479         (copy_gui_item): new function.
14480         (gui_item_id_hash): revert to standard hash.
14481         (gui_item_hash): ditto.
14482         (gui_item_hash_internal): deleted.
14483         (mark_gui_item): mark value.
14484         (gui_item_add_keyval_pair): add value.
14485         (gui_item_init): ditto.
14486         (gui_add_item_keywords_to_plist): ditto.
14487         (gui_item_equal): ditto.
14488         (syms_of_gui): add Q_value.
14489
14490         * glyphs-x.c (x_progress_gauge_update): use pending items and
14491         value for setting the state.
14492         (x_update_widget): don't set items from pending here.
14493
14494         * glyphs-widget.c (update_widget): update items here.
14495         (progress_gauge_set_property): use items for storing value. Put
14496         new value in pending items.
14497
14498         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14499         items for new value. Convert percent -> value.
14500         (mswindows_tab_control_update): don't update items here.
14501
14502         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14503         (update_subwindow): ditto.
14504         (image_instance_changed): new function. Compare hash values and
14505         past and present widget items.
14506         (image_instantiate): We more careful about where we instantiate
14507         things.
14508         (image_instantiate): add error checking.
14509
14510         * gutter.c (syms_of_gutter): use -hook.
14511
14512 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14513
14514         * console-tty.c (Fset_console_tty_input_coding_system): Use
14515         Qkeyboard.
14516         (Fset_console_tty_output_coding_system): Use Qterminal.
14517         (tty_init_console): Use Qkeyboard and Qterminal.
14518
14519 2000-03-21  Ben Wing  <ben@xemacs.org>
14520
14521         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14522         From Mike Alexander <mta@arbortext.com>.
14523
14524 2000-03-21  Ben Wing  <ben@xemacs.org>
14525
14526         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14527         process brokenness.  Proper implementation to come.
14528         * callproc.c:
14529         Rename call-process-internal to old-call-process-internal.
14530         New impl. in process.el.
14531
14532 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14533
14534         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14535
14536 2000-03-20  Andy Piper  <andy@xemacs.org>
14537
14538         * glyphs.c (full_list_hash): make hashes of the same elements in
14539         different orders return different values.
14540
14541 2000-03-20  Martin Buchholz <martin@xemacs.org>
14542
14543         * XEmacs 21.2.32 is released.
14544
14545 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14546
14547         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14548         (DFC_MALLOC_USE_CONVERTED_DATA):
14549         Add aliasing-safe casts to allow use with char* or unsigned char*
14550         lvalues.
14551
14552         * eldap.c (Fldap_open):
14553         (Fldap_search_basic):
14554         (Fldap_add):
14555         (Fldap_modify):
14556         Make C++-compilable.
14557         Make sure GCPRO'ed variables are initialized.
14558         Use temp variables to avoid repeated calls to Flength.
14559
14560 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14561
14562         * sysfile.h:
14563         Make sure PATH_MAX is always defined.
14564         Include limits.h for PATH_MAX.
14565         Deprecate use of MAXPATHLEN.
14566
14567 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14568
14569         * emacs.c: Add reinit_vars_of_fileio.
14570         * symsinit.h: Add reinit_vars_of_fileio.
14571         * fileio.c (reinit_vars_of_fileio): New.
14572         * fileio.c (Fmake_temp_name):
14573         Initialize temp_name random number from microseconds to make
14574         collisions even less likely.  Initialize always at process startup
14575         time.  (make-temp-name) used to return the same file name twice in
14576         a row when PDUMP.
14577         Random stylistic fiddling.
14578         Comment fixes.
14579
14580 2000-03-20  Andy Piper  <andy@xemacs.org>
14581
14582         * glyphs.c (image_instantiate): allow text glyphs to be
14583         instantiated in the minibuffer window.
14584
14585 2000-03-19  Andy Piper  <andy@xemacs.org>
14586
14587         * glyphs.c (image_instance_hash): be careful about which items we
14588         hash on.
14589
14590         * glyphs-widget.c (tab_control_set_property): record into pending
14591         items rather than the actual items.
14592
14593         * glyphs-x.c (x_update_widget): use pending items to update with.
14594
14595         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14596         to update with.
14597
14598         * glyphs.c (mark_image_instance): mark pending items.
14599
14600         * window.c (Fset_window_configuration): record the buffer.
14601         (Fselect_window): totally revert previous change which breaks many
14602         things.
14603
14604 2000-03-18  Andy Piper  <andy@xemacs.org>
14605
14606         * glyphs-msw.c (mswindows_tab_control_update): force selected
14607         item.
14608
14609         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14610         window domain cache, otherwise we get inconsistencies at
14611         startup. There is something fishy at startup which can lead to the
14612         minibuffer being the selected window when the gutter content is
14613         instantiated.
14614
14615         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14616         gcpros.
14617         (parse_gui_item_tree_children): ditto.
14618         (parse_gui_item_tree_item): ditto.
14619
14620         * glyphs.c (Fupdate_widget_instances): return something.
14621
14622 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14623
14624         * window.c (Fselect_window): Undo 2000-03-17 change.
14625
14626 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14627
14628         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14629         against v7.0 libraries.  Insta-coredump city until the postgres
14630         folks fix it.
14631
14632 2000-03-17  Andy Piper  <andy@xemacs.org>
14633
14634         * faces.c (complex_vars_of_faces): don't give the widget face an
14635         inherited background pixmap.
14636
14637         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14638         selected item.
14639
14640         * event-stream.c (Fdispatch_non_command_events): return something.
14641
14642         * gutter.c (output_gutter): use widget face.
14643         (clear_gutter): ditto.
14644
14645         * NEWS: adjust again.
14646
14647         * window.c (Fselect_window): make sure this runs to completion to
14648         avoid oddities with Fset_window_configuration.
14649         (Fcurrent_window_configuration): in general do not save the
14650         minibuffer as the selected window.
14651
14652         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14653
14654 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14655
14656         * emacs.c (Frunning_temacs_p): Revert previous patch.
14657         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14658
14659 2000-03-16  Andy Piper  <andy@xemacs.org>
14660
14661         * glyphs-x.c (x_tab_control_update): if no widget values then
14662         return.
14663
14664         * NEWS: update for new features.
14665
14666         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14667         synthetic event to the native system.
14668         (reinit_vars_of_event_Xt): set force_event_pending to
14669         emacs_Xt_force_event_pending.
14670
14671         * events.h (struct event_stream): add force_event_pending.
14672
14673         * specifier.c (recompute_one_cached_specifier_in_window): add
14674         comment.
14675
14676         * redisplay.c (redisplay_frame): don't call
14677         update_frame_subwindows. Reset subwindow cachels when
14678         subwindows_changed, removing this was an optimization too far.
14679
14680         * redisplay-output.c (compare_runes): reorganize so that we catch
14681         glyph changes when we want them. Set optimize_output when this
14682         would help layouts.
14683         (redisplay_output_layout): remove frame_really_changed, use
14684         optimize_output instead.
14685
14686         * redisplay-msw.c (mswindows_output_display_block): reset
14687         optimize_output after outputting a glyph.
14688         * redisplay-x.c (x_output_display_block): ditto.
14689         * redisplay-tty.c (tty_output_display_block): ditto.
14690
14691         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14692         functions.
14693         (gutter_specs_changed): do specific gutter positions.
14694         (top_gutter_specs_changed): new function. Only update the
14695         specified gutter specs.
14696         (bottom_gutter_specs_changed): ditto.
14697         (left_gutter_specs_changed): ditto.
14698         (right_gutter_specs_changed): ditto.
14699
14700         * gui.c (gui_item_hash_internal): new function, does a real hash.
14701         (gui_item_id_hash): use it.
14702         (gui_item_hash): hash the eval'ed gui_item.
14703
14704         * gui-x.c (popup_selection_callback): send an eval event to call
14705         Fupdate_widget_instances.
14706
14707         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14708         to call Fupdate_widget_instances.
14709
14710         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14711         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14712
14713         * glyphs.c: (update_frame_subwindows): deleted.
14714         (Fupdate_widget_instances): new function for updating the dirty
14715         state of widgets that might have changed.
14716         (syms_of_glyphs): add Qupdate_widget_instances.
14717         (full_list_hash): hash a list completely.
14718         (image_instance_hash): use it for items and properties.
14719
14720         * frame-msw.c (mswindows_size_frame_internal): remove unused
14721         variable.
14722
14723         * faces.h (struct face_cachel): fix comment.
14724
14725         * event-stream.c (Fdispatch_non_command_events): new
14726         function. Process non-command events, forcing an event cycle
14727         beforehand.
14728         (syms_of_event_stream): declare.
14729         (event_stream_force_event_pending): new function. Force an event
14730         on the native event queue so that an event cycle will occur next
14731         time we check.
14732
14733         * event-msw.c:
14734         (struct ntpipe_shove_stream):
14735         (mswindows_enqueue_dispatch_event):
14736         (mswindows_dequeue_dispatch_event):
14737         (mswindows_cancel_dispatch_event):
14738         (mswindows_pump_outstanding_events):
14739         (mswindows_drain_windows_queue):
14740         (mswindows_handle_paint):
14741         (mswindows_wnd_proc):
14742         (mswindows_key_to_emacs_keysym):
14743         (get_process_input_waitable):
14744         (emacs_mswindows_delete_stream_pair): re-indent file.
14745         (mswindows_need_event): do not process further fds if the windows
14746         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14747         fixes the 100% cpu problem.
14748         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14749
14750 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14751
14752         * alloc.h: New.
14753         * dumper.h: New.
14754         * dumper.c: New.
14755
14756         * emacs.c: Moved dump file searching to dumper.c.
14757         (Frunning_temacs_p): Fixed.
14758
14759         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14760         last_lrecord_type_index_assigned.
14761
14762 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14763
14764         * symsinit.h: Added reinit parameter to init_console_stream
14765         declaration.
14766
14767         * lisp.h: Added file parameter to pdump_load declaration.
14768
14769         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14770         support.  Added dump file searching.
14771
14772         * config.h.in: Added EMACS_PROGNAME.
14773
14774         * console-stream.c (init_console_stream): Fix reinitialisation
14775         when running from temacs.
14776
14777         * alloc.c (pdump): Add id support.
14778         (pdump_load): Add file parameter and signature/id support.
14779
14780         * Makefile.in.in: Add full pdump support.
14781
14782 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14783
14784         * postgresql.c: Update documentation to reflect latest code
14785         status.
14786         (print_result): Show tuple counts in printed representation when
14787         appropriate.
14788         (Fpq_put_nbytes): MULE-ize.
14789         (Fpq_get_line_async): Ditto.
14790
14791 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14792
14793         * postgresql.c (Fpq_lo_import): Fix return value.
14794         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14795
14796 2000-03-13  Ben Wing  <ben@xemacs.org>
14797
14798         * alloc.c (pdump_load):
14799         Fix compile warning under mswin.
14800
14801 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14802
14803         * postgresql.c: Mule-ization, bug fixes.
14804         Use PG_CODING to encapsulate coding system name changes.
14805         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14806         (pg-coding-system): Create.
14807
14808         (Fpq_conn_defaults): Mule-ize.
14809         (Fpq_connectdb): Mule-ize & bug fix.
14810         (Fpq_connect_start): Mule-ize.
14811         (Fpq_set_client_encoding): Mule-ize.
14812         (Fpq_finish): Document `DEAD' connection status.
14813         (Fpq_clear): Ditto.
14814         (Fpq_pgconn): Mule-ize.
14815         (Fpq_exec): Mule-ize & bug fix.
14816         (Fpq_send_query): Ditto.
14817         (Fpq_get_result): Ditto.
14818         (Fpq_res_status): Mule-ize.
14819         (Fpq_result_error_message): Mule-ize.
14820         (Fpq_ntuples): fix comments.
14821         (Fpq_fname): Mule-ize.
14822         (Fpq_fnumber): Mule-ize.
14823         (Fpq_ftype): fix comments.
14824         (Fpq_get_value): Mule-ize.
14825         (Fpq_cmd_status): Ditto.
14826         (Fpq_cmd_tuples): Ditto.
14827         (Fpq_oid_value): Ditto.
14828         (Fpq_notifies): Ditto.
14829         (Fpq_lo_import): Ditto.
14830         (Fpq_lo_export): Ditto.
14831         (Fpq_get_line): Ditto.
14832         (Fpq_put_line): Mule-ize and bug fix.
14833         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14834
14835 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14836
14837         * postgresql.c (vars_of_postgresql): Mule-ize.
14838         (Fpq_conn_defaults): Ditto.
14839
14840 2000-03-12  Ben Wing  <ben@xemacs.org>
14841
14842         * alloc.c (Fmake_byte_code):
14843         * alloc.c (debug_string_purity_print):
14844         * alloc.c (pdump_backtrace):
14845         * alloc.c (pdump_get_indirect_count):
14846         * alloc.c (pdump_register_sub):
14847         * alloc.c (pdump_register_object):
14848         * alloc.c (pdump_register_struct):
14849         * alloc.c (pdump_dump_data):
14850         * alloc.c (pdump_reloc_one):
14851         Minor cleanups.
14852
14853         * console-msw.c:
14854         * console-msw.c (GetConsoleHwnd):
14855         * console-msw.c (msw_hide_console):
14856         * console-msw.c (msw_show_console):
14857         * console-msw.c (msw_ensure_console_buffered):
14858         * console-msw.c (msw_output_console_string):
14859         * console-msw.c (console_type_create_mswindows):
14860
14861         a) Added functions to manipulate the console window for use with
14862         shell support.
14863
14864         b) Added support for writing text to the console, which is now
14865         used under Windows when xemacs is not being run non-interactively,
14866         to write text that would otherwise be destined for stdout because
14867         under these circumstances, text written to stdout tends to
14868         disappear and not be seen.
14869
14870         * console-msw.h:
14871         * event-Xt.c:
14872         * event-Xt.c (x_event_to_emacs_event):
14873         * event-Xt.c (describe_event_window):
14874         * events-mod.h (XEMACS_MOD_CONTROL):
14875         * events.c:
14876         * events.c (Fmake_event):
14877         * events.c (character_to_event):
14878         * events.c (event_to_character):
14879         * events.c (format_event_object):
14880         * events.c (Fevent_modifiers):
14881         * events.h:
14882         * events.h (struct key_data):
14883         * events.h (struct button_data):
14884         * events.h (struct misc_user_data):
14885         * frame-x.c (Fcde_start_drag_internal):
14886         * frame-x.c (Foffix_start_drag_internal):
14887         * gpmevent.c (Freceive_gpm_event):
14888         * keymap.c:
14889         * keymap.c (bucky_sym_to_bucky_bit):
14890         * keymap.c (control_meta_superify):
14891         * keymap.c (make_key_description):
14892         * keymap.c (keymap_lookup_directly):
14893         * keymap.c (create_bucky_submap):
14894         * keymap.c (keymap_store):
14895         * keymap.c (define_key_check_and_coerce_keysym):
14896         * keymap.c (define_key_parser):
14897         * keymap.c (define_key_alternate_name):
14898         * keymap.c (Fdefine_key):
14899         * keymap.c (raw_lookup_key_mapper):
14900         * keymap.c (struct map_keymap_unsorted_closure):
14901         * keymap.c (map_keymap_unsorted_mapper):
14902         * keymap.c (map_keymap_sort_predicate):
14903         * keymap.c (map_keymap_sorted):
14904         * keymap.c (accessible_keymaps_mapper_1):
14905         * keymap.c (where_is_recursive_mapper):
14906         * keymap.c (describe_map_mapper):
14907         * keymap.c (describe_map_sort_predicate):
14908         * keymap.c (describe_map):
14909         * keymap.c (complex_vars_of_keymap):
14910         And a number of other files, the key modifier preprocessor
14911         constants that xemacs uses have names that conflict with constants
14912         defined under MS Windows for other purposes, so they were renamed
14913         to begin with the prefix XEMACS_. The variables that hold such
14914         modifiers were changed to consistently be of type int to fix
14915         various compile warnings.
14916
14917         * console.c (complex_vars_of_console):
14918         * device.c:
14919         * device-msw.c:
14920         * device-msw.c (mswindows_finish_init_device):
14921         * device-msw.c (msw_get_workspace_coords):
14922         * device-msw.c (mswindows_device_system_metrics):
14923         and various other files, added support for a new
14924         device property called offset-workspace which returns the position
14925         of the upper left corner of the workspace area and goes along with
14926         the existing size-workspace property.
14927
14928         * dialog-msw.c:
14929         * dialog-msw.c (push_bufbyte_string_as_unicode):
14930         * dialog-msw.c (mswindows_popup_dialog_box):
14931         Added support for XEmacs-style accelerator specifications in
14932         button text.  Note: I didn't add support for this under X Windows,
14933         and somebody needs to do this.
14934
14935         * dialog.c:
14936         * dialog.c (Fpopup_dialog_box):
14937         Documented the support for accelerators that was just mentioned.
14938
14939         editfns.c (get_home_directory): Changed behavior under Windows
14940         when HOME not defined; former behavior was irretrievably broken.
14941
14942         * emacs.c:
14943         * emacs.c (main_1):
14944         * emacs.c (main):
14945         * minibuf.c (clear_echo_area_internal):
14946         * minibuf.c (echo_area_append):
14947         * print.c:
14948         * print.c (std_handle_out_external):
14949         * print.c (std_handle_out_va):
14950         * print.c (fatal):
14951         * print.c (write_string_to_stdio_stream):
14952         * print.c (output_string):
14953         * print.c (debug_print):
14954         * print.c (debug_backtrace):
14955         * print.c (debug_short_backtrace):
14956         Cleaned up the code that prints text to stdout so that this can be
14957         changed to output into a console window instead under MS Windows,
14958         as described above.
14959
14960         * eval.c:
14961         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14962         * eval.c (internal_catch):
14963         * eval.c (unwind_to_catch):
14964         * eval.c (throw_or_bomb_out):
14965         * eval.c (condition_case_1):
14966         * eval.c (signal_1):
14967         * eval.c (check_error_state_sanity):
14968         * eval.c (call_with_suspended_errors_1):
14969         * eval.c (call_with_suspended_errors):
14970         * eval.c (reinit_vars_of_eval):
14971         Added code to catch throw loops and check for a pesky bug that may
14972         be gone now.
14973
14974         * event-msw.c:
14975         * event-msw.c (key_needs_default_processing_p):
14976         * event-msw.c (mswindows_wnd_proc):
14977         * event-msw.c (mswindows_modifier_state):
14978         * event-msw.c (emacs_mswindows_quit_p):
14979         * event-msw.c (vars_of_event_mswindows):
14980         a) Added support for using the alt key to select menu items as is
14981         standard under MS Windows.  This is controlled using the variable
14982         menu-accelerator-enabled, just like under X Windows.  There is an
14983         option on the options menu to turn this support on.  I really
14984         think that it should be on by default under Windows, but I'm not
14985         going to make this change yet.
14986
14987         b)  Added support for dynamic display size changes under Windows.
14988
14989         * event-stream.c:
14990         * event-stream.c (maybe_echo_keys):
14991         * event-stream.c (Fnext_event):
14992         * event-stream.c (command_builder_find_leaf):
14993         * event-stream.c (lookup_command_event):
14994         * event-stream.c (execute_command_event):
14995         * event-stream.c (pre_command_hook):
14996         * event-stream.c (post_command_hook):
14997         * event-stream.c (syms_of_event_stream):
14998         * event-stream.c (vars_of_event_stream):
14999         * event-stream.c (complex_vars_of_event_stream):
15000         * events.h (struct command_builder):
15001
15002         a) Tried to clean up a little bit the horribly written x-specific
15003         accelerator code that crept into this file.  I moved this code
15004         into menubar-x.c where it belongs. I also needed to move the
15005         command builder structure into the file events.h because it is
15006         accessed directly by this accelerator code.  What I didn't do, but
15007         which should be done at some point, is to properly abstract this
15008         code using device methods instead of the kludgy way that it
15009         currently hooks into the event code.
15010
15011         b) Added the lisp variables this-command-properties and
15012         last-command- properties, which should be used to synchronize two
15013         adjacent commands in preference to playing games with the variable
15014         this-command, which is typically what happens.
15015
15016         c) Added some slightly nasty code to hook into the lisp support
15017         for shifted- motion-key selection.  This is actually necessary for
15018         somewhat complicated reasons, which are described in
15019         simple.el. (NB: I think the proper thing would be to have the code
15020         that calls the pre and post command hooks also call out to generic
15021         lisp functions in simple.el, where all built-in stuff could be
15022         added.  I will think about this more.)
15023
15024         * event-unixoid.c (poll_fds_for_input):
15025         * lread.c (readchar):
15026         * redisplay-tty.c (tty_clear_frame):
15027         * redisplay-x.c (x_get_gc):
15028         * signal.c (interrupt_signal):
15029         And a whole bunch of other files: fixed up places that printed
15030         directly to stderr to instead call the function stderr_out so that
15031         the changes I made under Windows work correctly.
15032
15033         * filemode.c (mode_string):
15034         Warning fixes.
15035
15036         * frame-msw.c:
15037         * frame-msw.c (mswindows_size_frame_internal):
15038         Fixed the computation of frame size and position to keep the frame
15039         within the workspace area, rather than within the physical
15040         dimensions of the screen, so that the frame doesn't overlap window
15041         manager decorations, such as the start menu and toolbar, typically
15042         at the bottom of the screen.
15043
15044         * frame.c (vars_of_frame):
15045         Changed the default frame title format under MS Windows to consist
15046         of buffername-XEmacs, which is standard under MS Windows.  I think
15047         it might be a good idea to change this everywhere because I think
15048         it is superior to the current frame title format, but this is the
15049         kind of change that is likely to cause some people to get annoyed,
15050         so I'm not making it.
15051
15052         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15053
15054         * gui-msw.c (mswindows_handle_gui_wm_command):
15055         Fixed compile warnings.
15056
15057         * gui-x.c:
15058         * gui-x.c (strdup_and_add_accel):
15059         * gui-x.c (button_item_to_widget_value):
15060         * gui-x.h:
15061         Added code to automatically put an accelerator onto the beginning
15062         of menu items that don't have one as is now the standard, and is
15063         described more later.  Also fixed things so that the menu item
15064         name can be an evaluated expression, again a new standard.
15065
15066         * gui.c:
15067         * gui.c (gui_item_add_keyval_pair):
15068         * gui.c (make_gui_item_from_keywords_internal):
15069         * gui.c (gui_add_item_keywords_to_plist):
15070         * gui.c (gui_item_accelerator):
15071         * gui.c (gui_name_accelerator):
15072         * gui.c (gui_item_included_p):
15073         * gui.c (gui_item_display_flush_left):
15074         * gui.c (gui_item_display_flush_right):
15075         * gui.c (parse_gui_item_tree_item):
15076         * gui.c (parse_gui_item_tree_children):
15077         * gui.c (parse_gui_item_tree_list):
15078         Mule-ized.  Cleanup.  GCPRO addition.
15079
15080         * line-number.c (buffer_line_number):
15081         * lisp.h:
15082         * lisp.h (EMACS_INT_MAX):
15083         Added the manifest constant EMACS_INT_MIN corresponding to the
15084         existing constant EMACS_INT_MAX.  This is partially to fix compile
15085         warnings under Windows, and partly for cleanliness.
15086
15087         * menubar-msw.c:
15088         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15089         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15090         * menubar-msw.c (displayable_menu_item):
15091         * menubar-msw.c (populate_menu_add_item):
15092         * menubar-msw.c (populate_or_checksum_helper):
15093         * menubar-msw.c (populate_menu):
15094         * menubar-msw.c (update_frame_menubar_maybe):
15095         * menubar-msw.c (prune_menubar):
15096         * menubar-msw.c (msw_char_is_accelerator):
15097         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15098         * menubar-msw.c (mswindows_handle_wm_command):
15099         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15100         * menubar-msw.c (mswindows_handle_wm_initmenu):
15101         * menubar-msw.c (mswindows_update_frame_menubars):
15102         * menubar-msw.c (mswindows_free_frame_menubars):
15103         * menubar-msw.c (mswindows_popup_menu):
15104         Fixed a bug in handling accelerators where an extra character
15105         would be displayed in the menu item.  Also generalized the
15106         function displayable_menu_item because it is now used by the
15107         dialog box code as well.  And finally, added code in the functions
15108         that create the menubar to extract a list of accelerators for the
15109         top level menubar, which is used in the event code to determine
15110         whether a particular alt-key combination should be used to invoke
15111         a menu item, or should be passed through to access the standard
15112         XEmacs keymap binding for this key combination.
15113
15114         Much needed GCPROing.
15115
15116         * menubar-x.c:
15117         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15118         * menubar-x.c (menu_item_descriptor_to_widget_value):
15119         * menubar-x.c (restore_in_menu_callback):
15120         * menubar-x.c (x_popup_menu):
15121         * menubar-x.c (menu_move_up):
15122         * menubar-x.c (menu_move_down):
15123         * menubar-x.c (menu_move_left):
15124         * menubar-x.c (menu_move_right):
15125         * menubar-x.c (menu_select_item):
15126         * menubar-x.c (command_builder_operate_menu_accelerator):
15127         * menubar-x.c (menu_accelerator_junk_on_error):
15128         * menubar-x.c (command_builder_find_menu_accelerator):
15129         * menubar-x.c (Faccelerate_menu):
15130         * menubar.h:
15131         Moved a whole bunch of code here that was previously in
15132         event-stream.c as described above.  There is also code connected
15133         to the new standard of adding an accelerator to the beginning of
15134         menu items that don't have one as described above and below.
15135
15136         * menubar.c:
15137         * menubar.c (menu_parse_submenu_keywords):
15138         * menubar.c (Fmenu_find_real_submenu):
15139         * menubar.c (Fnormalize_menu_item_name):
15140         * menubar.c (syms_of_menubar):
15141         * menubar.c (vars_of_menubar):
15142         * menubar.c (complex_vars_of_menubar):
15143
15144         a) Cleaned up a bunch of documentation and improved it.
15145
15146         b) XEmacs now automatically adds an accelerator onto the beginning
15147         of any menu items that don't have one.  I did this because there
15148         will inevitably be some menu items on the main menubar that don't
15149         have accelerators on them because the package that adds that
15150         particular menu item hasn't yet been fixed up to have accelerators
15151         in them and it looked rather strange to have some items with and
15152         some items without accelerators, especially since even in items
15153         without accelerators, you can, at least under windows, still
15154         access the item through an accelerator corresponding to the first
15155         character in the item's name.  If people don't like this behavior,
15156         I can add a variable to turn it off optionally, but I'm not sure
15157         this is a good idea because we really do need to have accelerators
15158         on all of the menu items, and if a package doesn't like the
15159         accelerators being put on the first character, then it should put
15160         the accelerators where they belong.
15161
15162         c) I made a behavior change, which is that the descriptor that
15163         specifies the text of the menu item, which formerly was just a
15164         string, can now also be an evaluated expression.  This makes this
15165         descriptor parallel with all of the others, which could also be
15166         evaluated expressions.  This also obviates the need for the
15167         keyword :label, which was previously listed in the documentation
15168         as unimplemented, and which was for the same purpose.
15169
15170         d) GCPROing.
15171
15172         * ntproc.c:
15173         * ntproc.c (new_child):
15174         * ntproc.c (sys_spawnve):
15175         * ntproc.c (find_child_console):
15176         * ntproc.c (sys_kill):
15177         Fixed compile warnings.  By the way, this file should really go
15178         away entirely, and this will happen as soon as Kirill makes his
15179         final round of process cleanups, which affect the function
15180         call-process.
15181
15182         * process-nt.c:
15183         * process-nt.c (struct nt_process_data):
15184         * process-nt.c (find_process_from_pid):
15185         * process-nt.c (send_signal_the_nt_way):
15186         * process-nt.c (enable_child_signals):
15187         * process-nt.c (find_child_console):
15188         * process-nt.c (send_signal_the_95_way):
15189         * process-nt.c (nt_finalize_process_data):
15190         * process-nt.c (ensure_console_window_exists):
15191         * process-nt.c (nt_create_process):
15192         * process-nt.c (nt_kill_child_process):
15193         * process-nt.c (nt_kill_process_by_pid):
15194         * process-nt.c (nt_open_network_stream):
15195         * process-nt.c (vars_of_process_nt):
15196         Copied over code from Emacs 20.5 to correctly send signals to sub-
15197         processes under Windows 95.  Also added code to automatically
15198         create and hide console window when a sub-process is created under
15199         Windows 95, which obviates the need for the separate runemacs.exe
15200         executable, and finally implemented some variables that were
15201         implemented in Emacs 20.5, but previously not in XEmacs.  These
15202         include mswindows- start-process-share-console and
15203         mswindows-start-process-inherit-error-mode. (Both of these only
15204         apply to Windows 95.)
15205
15206         * regex.c (regex_compile): Fixed a compile warning.
15207
15208         * select-msw.c:
15209         * select-msw.c (mswindows_own_selection):
15210         * select-msw.c (mswindows_get_foreign_selection):
15211         * select-msw.c (mswindows_disown_selection):
15212         * select-msw.c (console_type_create_select_mswindows):
15213         * select-msw.c (syms_of_select_mswindows):
15214         Cleaned up the file and implemented the device method
15215         selection_exists_p, which had accidentally been left out.  Also
15216         removed four lisp functions that were remnants from before the
15217         time when the selection code was properly device abstracted.
15218         These functions are no longer needed because there are generic
15219         equivalents, and because they were added recently and don't exist
15220         in FSF Emacs, I don't think there's any problem with just deleting
15221         them.
15222
15223         * sysdep.c:
15224         * sysdep.c (sys_subshell):
15225         Fixed a compile warning, although in this case there's probably
15226         something wrong with this code, and it ought to be looked into
15227         more thoroughly by somebody who understands it.
15228
15229         * window.c:
15230         * window.c (Fwindow_text_area_height):
15231         * window.c (Fwindow_width):
15232         * window.c (Fwindow_full_width):
15233         * window.c (Fwindow_pixel_width):
15234         * window.c (debug_print_window):
15235         * window.c (syms_of_window):
15236         Added functions window-text-area-height and window-full-width,
15237         which are functions for returning various width and height
15238         characteristics of a window. (One of these functions is necessary
15239         for making the file dialog box work correctly, and the other one
15240         was added for completeness.)  Also added a table to the
15241         documentation for window-height which describes the entire scheme
15242         for accessing width and height characteristics of a window.
15243
15244 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15245
15246         * nt.c (fstat): Added a comment for another problem with
15247         non-encapsulated [f]stat(), reported by Adrian Aichner
15248         <aichner@ecf.teradyne.com>.
15249
15250 2000-03-11  Andy Piper  <andy@xemacs.org>
15251
15252         * window.c (make_dummy_parent): initialize subwindow instance
15253         cache.
15254         (Fset_window_configuration): zero extent_modiff.
15255
15256 2000-03-10  Andy Piper  <andy@xemacs.org>
15257
15258         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15259         more changes can be triggered.
15260         (Fredisplay_frame): ditto.
15261         (Fredraw_device): ditto.
15262         (Fredisplay_device): ditto.
15263         (redisplay_frame): make non-static.
15264         (redisplay_frame): call update_frame_gutter_geometry outside of
15265         display proper.
15266
15267         * gutter.h: declare update_frame_gutter_geometry.
15268
15269         * redisplay.h: declare redisplay_frame.
15270
15271         * gutter.c (update_frame_gutter_geometry): move geometry changes
15272         in update_frame_gutters here. Geometry changes can only occur
15273         outside of redisplay.
15274         (update_frame_gutters): remove geometry change code.
15275         (Fredisplay_gutter_area): make sure that we are in display when we
15276         update and that we have flushed any size changes.
15277
15278 2000-03-11  Andy Piper  <andy@xemacs.org>
15279
15280         * alloc.c (pdump_dump_data): remove i & count shadows.
15281
15282 2000-02-27  Mike Alexander  <mta@arbortext.com>
15283
15284         * sysdep.h: Declare pdump_read_file
15285
15286         * sysdep.c (pdump_read_file): New function
15287
15288         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15289         dump data
15290
15291 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15292
15293         * lrecord.h: add `lrecord_type_pgsetenv'.
15294
15295 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15296
15297         * symsinit.h: declare (vars|syms)_of* functions.
15298         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15299
15300 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15301
15302         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15303
15304         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15305         GCCs.
15306
15307         * emacs.c (main_1): Call postgres initialization code.
15308
15309         * postgresql.h: New file.  PostgreSQL RDBMS support.
15310         * postgresql.c: New file.
15311
15312 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15313
15314         * redisplay-output.c (redisplay_output_display_block): Disable
15315         redundant code.
15316
15317 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15318
15319         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15320         (Fcanna_henkan_next): Ditto.
15321         (Fcanna_bunsetu_henkou): Ditto.
15322         (Fcanna_henkan_kakutei): Ditto.
15323         (Fcanna_henkan_end): Ditto.
15324         (Fcanna_henkan_quit): Ditto.
15325         (Fcanna_henkan_next): Set retun value correctly.
15326         (c2mu): Use unsigned char instead of signed char.
15327
15328 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15329
15330         * emacs.c (main_1): Always call syms_of_gui.
15331         * inline.c: include gui.h
15332
15333 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15334
15335         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15336         converted to Lisp_Object.
15337         (Qtop_bottom): New variable.
15338         (syms_of_redisplay): Initialize it.
15339         * redisplay.h (Vvisible_bell): Ditto.
15340         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15341         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15342         only flash top and bottom.
15343
15344 2000-03-08  Andy Piper  <andy@xemacs.org>
15345
15346         * buffer.c (Frename_buffer): record new buffer name the right way.
15347
15348 2000-03-08  Andy Piper  <andy@xemacs.org>
15349
15350         * glyphs.c (update_subwindow): increase hash depth so that widget
15351         items get picked up properly.
15352
15353         * redisplay-output.c (compare_runes): increase hash depth so that
15354         widget items get picked up properly.
15355
15356 2000-03-08  Andy Piper  <andy@xemacs.org>
15357
15358         * gutter.c (output_gutter): add some debug.
15359
15360         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15361         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15362         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15363
15364         * redisplay-output.c (compare_runes): use display_hash to
15365         determine if glyphs really are not the same.
15366
15367         * glyphs.c (update_subwindow): check display_hash to see if
15368         anything really needs to be updated. If not then do
15369         nothing. Record the display_hash after updating.
15370         (image_instance_equal): compare the image_instance face also.
15371
15372 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15373
15374         * redisplay.h: Fix comment style.
15375
15376 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15377
15378         * consle-msw.h (struct mswindows_frame):
15379         Added new member paint_pending to indicate whether a WM_PAINT
15380         magic event has been queued for this frame.
15381
15382         * event-msw.c (mswindows_drain_windows_queue):
15383         Don't queue a WM_PAINT magic event if one is already queued.
15384         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15385
15386         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15387
15388 2000-03-07  Didier Verna  <didier@xemacs.org>
15389
15390         * dired.c: #include `regex.h' after `sysfile.h'.
15391
15392 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15393
15394         * sound.c (init_nas_sound): Fix compiler warning.
15395
15396         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15397         (FREE_STRUCT_P):
15398         (MARK_STRUCT_AS_FREE):
15399         (MARK_STRUCT_AS_NOT_FREE):
15400         Make `gcc -fstrict-aliasing' work properly.
15401
15402 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15403
15404         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15405         (mswindows_delete_device): Call CoUnnitialize().
15406
15407         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15408
15409 2000-02-25    <CraigL@DyCon.com>
15410
15411         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15412         <errno.h>.
15413
15414         * sysdep.c: This extern declaration for environ prevents MinGW
15415         from finding the variable in CRTDLL.DLL.
15416
15417         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15418         windows headers.
15419         (SHGFI_EXETYPE): ..
15420         (WM_MOUSEWHEEL): ..
15421         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15422         definitions.
15423         (MMRESULT): Removed, now defined in cygwin's windows headers.
15424         (TIMECAPS): ..
15425         (uid_t,gid_t,pid_t,ssize_t): ..
15426         (_timeb): Removed, MinGW defines both _timeb and timeb.
15427         (HAVE_H_ERRNO): Added.
15428         (HAVE_TZNAME): Added, configure is not detecting this.
15429
15430 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15431
15432         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15433         * syntax.c (syntax_match): Use it.
15434
15435         * cmds.c: Import auto-fill-chars from FSF Emacs.
15436         (Vauto_fill_chars): New variables.
15437         (internal_self_insert): Check Vauto_fill_chars.
15438         (vars_of_cmds):
15439         Declare auto-fill-chars as a Lisp variable and initialize it.
15440
15441 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15442
15443         * fileio.c (Fmake_symbolic_link):
15444         (Ffile_symlink_p):
15445         Run handlers even if local machine doesn't have symlinks.
15446
15447 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15448
15449         * event-msw.c (mswindows_drain_windows_queue):
15450         Don't generate paint magic events for non-XEmacs frames.
15451
15452 2000-03-05  Andy Piper  <andy@xemacs.org>
15453
15454         * redisplay.c (redisplay_frame): generate_displayable_area and
15455         friends assumes that we are not in GC, we therefore have to make
15456         sure that this doesn't happen.
15457
15458         * gutter.c (calculate_gutter_size): generate_displayable_area
15459         assumes that we are not in GC, we therefore have to make sure that
15460         this doesn't happen.
15461
15462 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15463
15464         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15465
15466 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15467
15468         * redisplay.c (regenerate_window): Make sure we set a sane value
15469         for end_pos even if we jump out of the loop.
15470         (regenerate_window): Answer Ben's question :-).
15471         (start_end_of_last_line): Add may_error argument.
15472         (start_of_last_line):
15473         (end_of_last_line): Pass may_error = 0.
15474         (end_of_last_line_may_error): New function.
15475         (pixel_to_glyph_translation): Use it, so we don't crash in
15476         event_to_glyph.
15477
15478 2000-03-04  Andy Piper  <andy@xemacs.org>
15479
15480         * window.h (struct window): add gutter_extent_modiff.
15481
15482         * window.c (allocate_window): zero out gutter_extent_modiff.
15483
15484         * redisplay.h: declare sync_display_line_structs.
15485
15486         * redisplay.c (add_glyph_rune): add a better comment.
15487
15488         * redisplay-output.c (sync_display_line_structs): made non-static.
15489         (compare_runes): remove unneccesary glyph cachel access.
15490
15491         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15492
15493         * gutter.c (output_gutter): don't output the gutter if extent
15494         changes only involve extents in buffers. use 4 sets of display
15495         lines.
15496         (gutter_extent_signal_changed_region_maybe): new function. Mark
15497         extents in gutters as changed.
15498         (update_frame_gutters): use 4 sets of display lines.
15499         (reset_gutter_display_lines): ditto.
15500         (free_frame_gutters): ditto.
15501         (redraw_exposed_gutter): force output of gutters.
15502
15503         * frame.h (struct frame): add 4 sets of gutter display lines.
15504
15505         * extents.c: (extent_changed_for_redisplay): signal changes to
15506         extents in strings in the gutter as well as extents in buffers.
15507
15508 2000-03-02  Andy Piper  <andy@xemacs.org>
15509
15510         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15511
15512         * frame.c (Fmake_frame): make sure the gutters get initialized
15513         after the frame is visible.
15514         (set_frame_selected_window): re-arrange compilation macros a
15515         little.
15516         (change_frame_size_1): mark gutters changed.
15517
15518         * device.c (Fset_device_class): mark gutters changed.
15519
15520 2000-03-01  Andy Piper  <andy@xemacs.org>
15521
15522         * window.c (window_top_frame_gutter_height): deleted.
15523         (window_bottom_frame_gutter_height): ditto.
15524         (window_left_frame_gutter_height): ditto.
15525         (window_right_frame_gutter_height): ditto.
15526         (window_top_gutter_height): don't use them.
15527         (window_bottom_gutter_height): ditto.
15528         (window_left_gutter_width): ditto.
15529         (window_right_gutter_width): ditto.
15530         (Fsplit_window): ditto.
15531         (Fwindow_pixel_edges): don't use border dimensions here.
15532
15533         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15534         (update_scrollbar_instance): ditto.
15535
15536         * redisplay.c (generate_modeline): don't take gutters into account.
15537         (generate_modeline): ditto.
15538         (redisplay_frame): small gutter display optimization.
15539
15540         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15541
15542         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15543         gutters into account.
15544
15545         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15546         for window position and type.
15547
15548         * gutter.c (get_gutter_coords): fix for frame gutters.
15549         (update_frame_gutters): update frame geometry if the gutters have
15550         changed.
15551         (init_frame_gutters): record current gutter geometries.
15552
15553         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15554         var.
15555         (mswindows_widget_instantiate): ditto.
15556
15557         * frame.h (struct frame): add current_gutter_bounds.
15558
15559         * frame.c (change_frame_size_1): position window and minibuffer
15560         appropriately taking into account the frame gutters.
15561
15562         * frame-x.c: (x_initialize_frame_size): take into account the
15563         frame gutters.
15564
15565 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15566
15567         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15568
15569 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15570
15571         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15572
15573 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15574
15575         * file-coding.c (reset_decoding_stream): Clear previous
15576         detection state when autodetect.
15577
15578 2000-02-29  Didier Verna  <didier@xemacs.org>
15579
15580         * extents.c (set_extent_glyph_1): don't require extents to be
15581         attached.
15582
15583 2000-02-27  Andy Piper  <andy@xemacs.org>
15584
15585         * gutter.c (Fset_default_gutter_position): don't default left and
15586         right gutter visibility to t.
15587         (Fset_default_gutter_position): run
15588         default-gutter-position-changed-hook.
15589         (syms_of_gutter): add default-gutter-position-changed-hook.
15590
15591 2000-02-26  Andy Piper  <andy@xemacs.org>
15592
15593         * specifier.c (Fmake_specifier): add gutter references.
15594
15595         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15596
15597         * lisp.h: declare Fvalid_plist_p.
15598
15599         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15600         as changed.
15601         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15602         well as its visibility so that it gets reconstructed.
15603         (construct_window_gutter_spec): new function. Construct a string
15604         to be displayed in the gutter from a plist of strings. Take care
15605         to only use elements that are declared as visible.
15606         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15607         WINDOW_GUTTER.
15608         (gutter_validate): allow plists of strings in the specifier.
15609         (gutter_specs_changed): construct the real_gutter from the gutter
15610         specs using construct_window_gutter_spec.
15611         (gutter_visible_validate): gutter-visible is a new specifier type.
15612         (Fgutter_visible_specifier_p): new function for the new specifier.
15613         (syms_of_gutter): declare gutter-visible and
15614         Fgutter_visible_specifier_p.
15615         (specifier_type_create_gutter): intitalize new gutter-visible
15616         specifier.
15617         (reinit_specifier_type_create_gutter): ditto.
15618         (specifier_vars_of_gutter): use new specifier type for gutter
15619         visibility.
15620         (init_frame_gutters): construct real_gutter correctly.
15621         (Fgutter_specifier_p): beef up documentation.
15622         (Fgutter_size_specifier_p): ditto.
15623
15624         * winslots.h: add real_gutter slots.
15625
15626 2000-02-25  Andy Piper  <andy@xemacs.org>
15627
15628         * device-msw.c: Be kind to older cygwin versions. From Raymond
15629         Toy <toy@rtp.ericsson.se>.
15630
15631         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15632         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15633
15634 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15635
15636         * elhash.c (MARK_OBJ): Practice macro hygiene.
15637
15638 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15639
15640         * miscplay.c: s/__inline__/inline/g;
15641         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15642         (get_device_compdc): INLINE ==> static inline
15643         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15644         find -name '*.h' | \
15645         xargs global-replace \
15646         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15647
15648 2000-02-25  Andy Piper  <andy@xemacs.org>
15649
15650         * window.c (window_top_frame_gutter_height): new function.
15651         (window_top_window_gutter_height): ditto.
15652         (window_top_gutter_height): use them.
15653         (window_bottom_frame_gutter_height): new function.
15654         (window_bottom_window_gutter_height): ditto.
15655         (window_bottom_gutter_height): use them.
15656         (window_left_window_gutter_width): new function.
15657         (window_left_frame_gutter_width): ditto.
15658         (window_left_gutter_width): use them.
15659         (window_right_window_gutter_width): new function.
15660         (window_right_frame_gutter_width): ditto.
15661         (window_right_gutter_width): use them.
15662         (window_pixel_height): new function. calulate window pixel height
15663         with frame gutter involvement.
15664         (Fsplit_window): calculate new sizes taking frame gutters into
15665         account.
15666         (window_char_height_to_pixel_height): don't include frame gutters.
15667         (window_char_height): use window_pixel_height.
15668         (window_pixheight): rename from window_pixel_height.
15669         (change_window_height): use it.
15670         (window_pixel_height_to_char_height): don't include frame gutters.
15671         (window_char_width_to_pixel_width): ditto.
15672
15673 2000-02-25  Andy Piper  <andy@xemacs.org>
15674
15675         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15676         if it is.
15677
15678 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15679
15680         * alloc.c (staticpro):
15681         (staticpro_nodump):
15682         (dumpstruct):
15683         (dumpopaque):
15684         (pdump_wire):
15685         (pdump_wire_list):
15686         (compact_string_chars):
15687         (pdump_dump_wired):
15688         Convert:  if (foo) abort();  ==>  assert (! foo);
15689
15690         * eldap.c (Fldap_search_basic):
15691         (Fldap_add):
15692         (Fldap_modify):
15693         (Fldap_delete):
15694         Fix compiler warnings, and possible crashes if (random) return
15695         value were to be used.
15696
15697 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15698
15699         * device-msw.c: Workaround ResetDC failure.
15700
15701         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15702         applying a devmode.
15703
15704         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15705         (mswindows_text_width): Do not start printer page.
15706
15707         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15708
15709         * glyphs-msw.c: Added image methods to msprinter console and
15710         msprinter-specific image instantiation.
15711
15712 2000-02-20  Mike Alexander  <mta@arbortext.com>
15713
15714         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15715         to avoid crashes when selection-sets-clipboard is on
15716         (mswindows_own_selection): ditto
15717
15718 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15719
15720         * glyphs-msw.c:
15721         * redisplay-msw.c (get_frame_dc):
15722         (get_frame_compdc):
15723         * console-msw.h:
15724         * device-msw.c (mswindows_init_device):
15725         (mswindows_delete_device):
15726         (msprinter_init_device):
15727         (msprinter_delete_device):
15728         * frame-msw.c (mswindows_init_frame_1):
15729         (mswindows_delete_frame):
15730         (msprinter_init_frame_3):
15731         (msprinter_delete_frame): Move compatible DC to device object from
15732         frame object, for both mswindows and msprinter. Only one at a time
15733         is needed, it is a real waste to have one per frame!
15734
15735 2000-02-23  Andy Piper  <andy@xemacs.org>
15736
15737         * glyphs.c: add dynamic width and height elements.
15738         (image_instance_equal): ditto.
15739
15740         * glyphs-widget.c (widget_query_geometry): calculate width and
15741         height dynamically if required.
15742         (initialize_widget_image_instance): initialize dynamic dimensions.
15743         (widget_instantiate): pick-up dynamic dimensions.
15744
15745         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15746         dynamic determination. Add appropriate macros.
15747
15748         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15749         dimensions safe.
15750         (WINDOW_GUTTER_SIZE): ditto.
15751         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15752
15753         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15754         inline.
15755         (get_frame_dc): ditto.
15756
15757         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15758         here.
15759
15760 2000-02-23  Martin Buchholz <martin@xemacs.org>
15761
15762         * XEmacs 21.2.31 is released.
15763
15764 2000-02-22  Ben Wing <ben@xemacs.org>
15765
15766         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15767
15768 2000-02-22  Andy Piper  <andy@xemacs.org>
15769
15770         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15771
15772 2000-02-21  Mike Sperber <mike@xemacs.org>
15773
15774         * .dbxrc:
15775         * .gdbinit:
15776         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15777         variables.
15778
15779 2000-02-21  Mike Sperber <mike@xemacs.org>
15780
15781         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15782
15783 2000-02-21  Martin Buchholz <martin@xemacs.org>
15784
15785         * XEmacs 21.2.30 is released.
15786
15787 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15788
15789         Performance hacking.
15790         * *.c (syms_of_*):
15791         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15792         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15793         * emacs.c (main_1):
15794         * lisp.h (DEFUN):
15795         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15796         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15797         * symeval.h (DEFVAR_SYMVAL_FWD):
15798         * symbols.c (guts_of_unbound_marker):
15799         Make all c_readonly objects also lisp_readonly and marked for life.
15800         * lrecord.h (struct lrecord_implementation):
15801         Document flags better.
15802         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15803         * lrecord.h (DECLARE_LRECORD):
15804         * lrecord.h (XSETRECORD):
15805         * lrecord.h (RECORDP):
15806         * lrecord.h (RECORD_TYPEP):
15807         * lrecord.h (RECORD_MARKER): New.
15808         * lrecord.h (error_check_*):
15809         * lrecord.h (CONCHECK_NONRECORD):
15810         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15811         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15812         * lrecord.h (set_lheader_implementation):
15813         * lrecord.h (enum lrecord_type): New.
15814         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15815         * alloc.c (disksave_object_finalization_1):
15816         * alloc.c (mark_object):
15817         * alloc.c (lrecord_type_index):
15818         * alloc.c (tick_lcrecord_stats):
15819         * alloc.c (Fgarbage_collect):
15820         * alloc.c (init_alloc_once_early):
15821         * alloc.c (pdump_load):
15822         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15823         * alloc.c (lrecord_type_index): Delete.
15824         Make lisp object type indexes be constant.
15825           Makes (byte-compile) 5% faster.
15826         Put all marker functions into their own array.
15827           Makes (garbage-collect) 5% faster.
15828         Optimize SYMBOL_VALUE_MAGIC_P.
15829           Makes (byte-compile) 2-3% faster.
15830         * config.h.in (gc_checking_assert): New.
15831         * alloc.c: Use gc_checking_assert().
15832         * .dbxrc: Make compatible with new object type implementation.
15833         * .gdbinit: Make compatible with new object type implementation.
15834         * alloc.c: Delete all symbols defined only for debugging, such as
15835         Lisp_Type_Vector and lrecord_charset.
15836
15837 2000-02-21  Andy Piper  <andy@xemacs.org>
15838
15839         * gui-msw.c (Fmswindows_shell_execute): fix file location
15840         problems.
15841
15842         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15843         unshowing so that set_window_buffer doesn't undo
15844         kill_buffer_hook's hard work.
15845
15846         * glyphs-widget.c (tab_control_query_geometry): don't count the
15847         first item when calculating geometry.
15848
15849         * glyphs.c (map_subwindow): remove redundant code.
15850         (update_frame_subwindows): be more circumspect about when to
15851         update subwindows.
15852
15853         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15854         when items haven't changed. Update faces if faces have changed as
15855         well as just the widget face.
15856         (x_tab_control_update): Update faces if faces have changed as well
15857         as just the widget face.
15858
15859 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15860
15861         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15862         registration.
15863         (build_syscolor_string): Use mswindows_color_to_string to try to
15864         get a named color.
15865         (mswindows_device_system_metrics): Reverse the foreground and
15866         background colors so that they match the documentation.
15867
15868         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15869         they match the default Windows palette.
15870         (mswindows_color_to_string): New function.
15871
15872 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15873
15874         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15875
15876 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15877
15878         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15879         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15880
15881         * symbols.c (init_symbols_once_early): Removed obsolete
15882         DATA_SEG_BITS related kludge.
15883         (defvar_magic): Ditto.
15884
15885         * malloc.c: Removed obsolete DATA_SEG_BITS
15886         * ralloc.c: Ditto.
15887         * mem-limits.h: Ditto.
15888
15889         * Makefile.in.in: Removed obsolete HAVE_SHM
15890         * emacs.c: Ditto.
15891
15892 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15893
15894         *  device-msw.c (mswindows_delete_device): Free DDE string
15895         handles.
15896
15897 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15898
15899         * keymap.c (get_keyelt):
15900         * unexnt.c (unexec):
15901         * vm-limit.c (memory_warnings):
15902         * ntheap.c (recreate_heap):
15903         * ntheap.h (UNINIT_PTR):
15904         * select-msw.c (Fmswindows_get_clipboard):
15905         (Fmswindows_set_clipboard):
15906         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15907         * objects-msw.c:
15908         * menubar-msw.c (displayable_menu_item):
15909         * glyphs-msw.c:
15910         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15911         * sysdep.c (sys_subshell):
15912         * process-nt.c (nt_create_process):
15913         * nt.c (normalize_filename):
15914         (dostounix_filename):
15915         (unixtodos_filename):
15916         * ntproc.c (win32_executable_type):
15917         * ntplay.c (play_sound_data_1):
15918         (play_sound_file):
15919         * editfns.c (get_home_directory):
15920         * event-msw.c (struct winsock_stream):
15921         (mswindows_dde_callback):
15922         * device-msw.c (msprinter_init_device):
15923         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15924
15925         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15926         mswindows_clear_toolbar were swapped!
15927
15928         * objects-msw.c:(colormap_t):
15929         (fontmap_t):
15930         * emacs.c (struct standard_args): Fixed const jumble.
15931
15932         * glyphs-widget.c (update_widget): Fixed comparison notation.
15933
15934         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15935
15936         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15937         __declspec(noreturn) syntax.
15938
15939 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15940
15941         * eldap.c (Fldap_open):
15942         (Fldap_search_basic):
15943         (Fldap_add):
15944         (Fldap_modify):
15945         Use new coding system conversion macros.
15946
15947 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15948
15949         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15950
15951 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15952
15953         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15954         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15955
15956         * eldap.c (Qadd, Qreplace): New constant symbols
15957         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15958         interruptions by XEmacs signals
15959         Remove unnecessary calls to slow_down_interrupts and
15960         speed_up_interrupts
15961         (Fldap_search_basic): Renamed from Fldap_search_internal
15962         Added new optional parameter VERBOSE that triggers the
15963         display of progress messages
15964         Remove unnecessary calls to slow_down_interrupts and
15965         speed_up_interrupts
15966         LDAP result code analysis rewritten
15967         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15968         (syms_of_eldap): Define the new symbols and functions
15969
15970
15971 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15972
15973         * realpath.c: Determine PATH_MAX maximally portably.
15974
15975         * insdel.c (bytecount_to_charcount): Optimize.
15976         The function used to be optimized for entirely ASCII sequences.
15977         Now it is optimized for successive characters from the same
15978         charset.  This also wins big for _mostly_ ASCII sequences.
15979
15980         * fileio.c (Ffile_truename): convert return from realpath() using
15981         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15982         - Rewrite GCPROing slightly.
15983
15984         * sysdep.c (sys_open): Do filename conversion, like all other
15985         sys_* functions.  Fixes bug:
15986         (let ((file-name-coding-system 'iso-8859-2))
15987            (write-region x y latin2-name))
15988         ==> writes filename using internal encoding.
15989
15990 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15991
15992         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15993         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15994         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15995         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15996         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15997         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15998         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15999         (CONST_IF_NOT_DEBUG): Delete.
16000         * alloc.c (this_one_is_unmarkable): Delete.
16001         (mark_object): Don't check for this_one_is_unmarkable. Use the
16002         c_readonly flag instead.
16003         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16004
16005 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16006
16007         * event-msw.c (mswindows_drain_windows_queue):
16008         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16009         away redundant repaint events.
16010
16011 2000-02-17  Andy Piper  <andy@xemacs.org>
16012
16013         * redisplay.h: declare mark_redisplay_structs.
16014
16015         * redisplay.c (redisplay_window):
16016         (redisplay_frame): don't check subwindows_state_changed.
16017         (mark_redisplay): mark gutters here.
16018
16019         * glyphs.c: (instantiate_image_instantiator): always layout if we
16020         haven't done so already.
16021         (allocate_image_instance): don't mark as dirty.
16022         (update_subwindow): bind inhibit_quit.
16023
16024         * gutter.c (mark_gutters): new function.
16025
16026         * glyphs-x.c (x_update_widget): Always resize to get round a
16027         widget bug.
16028
16029         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16030         breaking absolutely everything.
16031
16032         * gutter.h: declare mark_gutters.
16033
16034 2000-02-16  Martin Buchholz <martin@xemacs.org>
16035
16036         * XEmacs 21.2.29 is released.
16037
16038 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16039
16040         * fns.c (size_bit_vector): Fix computation of the size.
16041
16042 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16043
16044         * *.[ch]: Change CONST to const globally.
16045         find -name '*.[ch]' | \
16046         xargs global-replace \
16047         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16048         - Remove vestigial references to CONST_IS_LOSING
16049
16050 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16051
16052         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16053         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16054         events instead of dispatching them directly.
16055         (mswindows_handle_paint): New function to do repainting.
16056         (mswindows_wnd_proc):
16057         (emacs_mswindows_handle_magic_event): Call above function.
16058
16059 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16060
16061         * objects-msw.c (mswindows_create_font_variant): Return the new
16062         font handle.
16063         (initialize_font_instance): Get font metrics from the underlined
16064         variant of the font to cope with the case where the underlined
16065         font has a bigger descent.
16066
16067 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16068
16069         * gui.c (gui_item_accelerator): Return the first underlined
16070         character in item name.
16071
16072 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16073
16074         * lisp.h: Added Qprinter.
16075
16076         * general.c (syms_of_general): Initialized it.
16077
16078         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16079         (get_frame_dc):
16080         (get_frame_compdc): Made inline.
16081
16082         * console.h (struct console_methods): Added eject_page method.
16083
16084         * frame.h: Added FRAME_DISPLAY_P and friends.
16085         Aligned backslahes in many macros in more readable fashion.
16086         Added page_number to struct frame, and an accessor macro
16087         for it.
16088
16089         * defice.h: Added DEVICE_DISPLAY_P and friends.
16090
16091         * device.c (Fdevice_printer_p): Used these.
16092
16093         * frame.c (allocate_frame_core): Initialize page number.
16094         (Fprint_job_page_number):
16095         (Fprint_job_eject_page): Implemented.
16096
16097         * frame-msw.c (msprinter_eject_page): Added method.
16098         (msprinter_start_page): Added.
16099
16100         * window.c (Fwindow_truncated_p): Fixed docstring.
16101         (Fwindow_last_line_visible_height): Implemented.
16102
16103 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16104
16105         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16106
16107 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16108
16109         * syntax.c (scan_words): Always advance at least one character.
16110
16111 2000-02-13  Andy Piper  <andy@xemacs.org>
16112
16113         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16114         to make sure the glyph is in the cachels.
16115
16116         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16117         global image instance flag.
16118         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16119         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16120
16121         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16122         (Fset_image_instance_property): mark layout as changed.
16123         (invalidate_glyph_geometry_maybe): mark layout as changed.
16124         (glyph_width): use new NEEDS_LAYOUT macro.
16125         (glyph_ascent): ditto.
16126         (glyph_descent): ditto.
16127         (glyph_height): ditto.
16128         (image_instance_layout): mark layout as clean after laying out.
16129         (update_subwindow): don't mark layout as clean here.
16130
16131         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16132         should no longer be needed.
16133
16134         * glyphs-x.c (x_update_widget): sanitize asserts.
16135         (x_finalize_image_instance): sanitize assignment to widgets.
16136
16137         * glyphs-widget.c (widget_instantiate): don't need to clear the
16138         layout flag here.
16139
16140 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16141
16142         * sysdep.c (getcwd): Use standard prototype.
16143         * sysdep.h (getcwd): Use standard prototype.
16144
16145         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16146         (sequence, start, end).
16147         Remove redundant type checking.
16148         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16149         view of `caller-protects') to avoid a crash where the real fix was
16150         found elsewhere.
16151
16152 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16153
16154         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16155
16156         * s/sol2.h: Remove feature macro initialization.
16157
16158         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16159         (vector_hash): New.  Code from internal_hash.
16160         * lrecord.h:
16161         Fix up allocation subsystem comments.
16162
16163         * config.h.in: Add __EXTENSIONS__ for Solaris.
16164
16165         * systime.h (EMACS_GETTIMEOFDAY): New.
16166         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16167         Remove Solaris-specific code.
16168         Use void* for the (ignored) second arg for gettimeofday().
16169
16170         * elhash.c (hash_table_hash): Implement it, finally.
16171         * elhash.c:  Use hashcode_t.
16172
16173         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16174         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16175
16176         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16177         * fns.c (size_bit_vector):
16178         * alloc.c (size_vector):
16179         (make_vector_internal):
16180         (make_bit_vector_internal):
16181         (sweep_bit_vectors_1):
16182         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16183
16184 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16185
16186         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16187         Include strings.h to avoid warnings for bzero and strcasecmp.
16188
16189 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16190
16191         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16192         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16193
16194         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16195         sequence.
16196
16197 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16198
16199         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16200         use a value field instead.
16201         (symbol_value_forward_forward): Use value field.
16202         (DEFVAR_SYMVAL_FWD): Use value field.
16203         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16204         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16205         (DEFVAR_CONST_INT): Ditto.
16206         (DEFVAR_BOOL): Ditto.
16207         (DEFVAR_CONST_BOOL): Ditto.
16208         (DEFVAR_INT_MAGIC): Ditto.
16209         (DEFVAR_BOOL_MAGIC): Ditto.
16210
16211         * symbols.c (guts_of_unbound_marker): Use value field.
16212         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16213         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16214
16215         * lisp.h: Declare dumpopaque and noninteractive1.
16216
16217         * alloc.c (dumpopaque): Added.
16218         (pdump_dump_opaquevec): Added.
16219         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16220         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16221         noninteractive.
16222
16223 2000-02-10  Andy Piper  <andy@xemacs.org>
16224
16225         * glyphs.c (image_instance_layout): if the size changes, mark it
16226         as such.
16227
16228         * redisplay-output.c (redisplay_output_layout): Update the
16229         subwindow here.
16230         (redisplay_output_subwindow): ditto.
16231
16232         * glyphs.c (update_subwindow): make sure we reset flags for
16233         layouts as well as everything else.
16234
16235         * glyphs-widget.c (layout_layout): don't need to set the instances
16236         dimensions here.
16237
16238 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16239
16240         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16241         not HAVE_DLOPEN, which is a lower-level thing.
16242
16243         * .cvsignore: Ignore gmon.out
16244
16245 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16246
16247         * .cvsignore: Ignore portable dumper xemacs.dmp file
16248
16249 2000-02-09  Andy Piper  <andy@xemacs.org>
16250
16251         * redisplay-output.c (redisplay_output_layout): be more clever
16252         about when we output based on the changed flags.
16253
16254         * glyphs.h (struct image_instantiator_methods): add update_method.
16255         (struct Lisp_Image_Instance): add changed flags. Declare new
16256         macros for manipulating them.
16257
16258         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16259         (image_instance_parent_glyph): find an image_instance's parent
16260         glyph or image_instance.
16261         (image_instance_layout): mark the size as changed.
16262         (set_image_instance_dirty_p): new function. mark an image
16263         instance, plus all of its parents, as dirty.
16264         (Fset_image_instance_property): use it.
16265         (Fglyph_animated_timeout_handler): use it.
16266         (update_subwindow): call update_widget and device methods for
16267         update_subwindow. Mark all changed flags as clean.
16268         (Fresize_subwindow): mark size as changed.
16269
16270         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16271         failures.
16272         (x_update_subwindow): only resize subwindows here.
16273         (x_update_widget): new function. Update all changed properties of
16274         a widget.
16275         (x_resize_subwindow): deleted.
16276         (x_widget_set_property): deleted.
16277         (x_progress_gauge_set_property): deleted.
16278         (x_progress_gauge_update): new function. Implement recorded
16279         changes.
16280         (x_tab_control_update): ditto.
16281         (x_tab_control_set_property): deleted.
16282         (console_type_create_glyphs_x): declare new functions.
16283         (image_instantiator_format_create_glyphs_x): ditto.
16284
16285         * glyphs-widget.c (widget_set_property): mark text changed.
16286         (update_widget): new function. Update properties of a widget.
16287         (widget_instantiate): for layouts make sure we set their
16288         children's parent correctly.
16289         (tab_control_set_property): new function. Record changes that will
16290         take place under redisplay's control.
16291         (progress_gauge_set_property): ditto.
16292         (image_instantiator_progress_guage): declare new functions.
16293         (image_instantiator_tab_control): ditto.
16294
16295         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16296         now.
16297         (mswindows_update_widget): new function. Update all properties on
16298         a widget that have changed.
16299         (mswindows_button_update): new function. Update a button's set
16300         state.
16301         (mswindows_tab_control_update): new function. Update the items in
16302         a tab.
16303         (mswindows_tab_control_set_property): deleted.
16304         (mswindows_progress_gauge_update): new function. Update the
16305         progress gauge's progress.
16306         (mswindows_widget_set_property): deleted. This is all done
16307         asynchronously now.
16308         (mswindows_progress_gauge_set_property): ditto.
16309         (console_type_create_glyphs_mswindows): declare new methods.
16310         (image_instantiator_format_create_glyphs_mswindows): ditto.
16311
16312         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16313         (msprinter_set_frame_properties): ditto.
16314
16315         * console.h (struct console_methods): Add update_widget_method.
16316
16317 2000-02-09  Andy Piper  <andy@xemacs.org>
16318
16319         * gui-msw.c (Fmswindows_shell_execute): Make
16320         mswindows-shell-execute industrial strength.
16321
16322 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16323
16324         * lrecord.h: Make macro argument `props' match member function `plist'.
16325         * fns.c (Fget):
16326         * fns.c (Fput):
16327         * fns.c (Fremprop):
16328         * fns.c (Fobject_plist):
16329         * alloc.c:
16330         * symbols.c:
16331         Object property list frobbing cleanup.
16332         - Allow any lisp object (compared with `eq'), not just symbols, as
16333           keys in object plists.
16334         - Move symbol plist frobbing into symbols.c, where it belongs.
16335         - Move string plist frobbing into alloc.c, where it belongs.
16336         - Everything's an lrecord now, so no need to test for symbolp, etc.
16337         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16338
16339         * extents.c: Reorder code to remove declarations.
16340
16341         * frame.h (store_in_alist): Remove useless declaration.
16342
16343 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16344
16345         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16346         * config.h.in: Add HAVE_XCONVERTCASE.
16347
16348 2000-02-07  Andy Piper  <andy@xemacs.org>
16349
16350         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16351         it breaks many things.
16352
16353 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16354
16355         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16356         actually can start a common comment type.
16357         * src/syntax.h (SYNTAX_END_P): ditto for end.
16358
16359 2000-02-07  Martin Buchholz <martin@xemacs.org>
16360
16361         * XEmacs 21.2.28 is released.
16362
16363 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16364
16365         * event-Xt.c (x_keysym_to_character): New.
16366         (maybe_define_x_key_as_self_inserting_character): New.
16367         (x_has_keysym): New.
16368         Auto-define all keys on the keyboard as self-insert-key.
16369
16370 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16371
16372         * menubar.c (vars_of_menubar): A small code simplification.
16373
16374         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16375
16376         * ExternalShell.c:
16377         * ExternalClient.c:
16378         * EmacsShell-sub.c:
16379         * EmacsManager.c:
16380         * EmacsFrame.c:
16381         Use consistent style for specifying X resources.
16382
16383         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16384         This makes (dontusethis-set-symbol-value-handler) actually usable.
16385
16386         * lrecord.h (lrecord_decription_type):
16387         * alloc.c (pdump_register_sub):
16388         (pdump_dump_data):
16389         (pdump_reloc_one):
16390         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16391         Comply with XEmacs coding style.
16392         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16393         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16394
16395         * keymap.c (Faccessible_keymaps):
16396         Make (accessible-keymaps map "\C-h") do the Right Thing.
16397         Make (accessible-keymaps map []) do the Right Thing.
16398         Make (accessible-keymaps map "") do the Right Thing.
16399         (check_keymap_definition_loop): New function.
16400         (keymap_store_internal): Keep luser from shooting self in foot,
16401           via (define-key ctl-x-4-map "p" global-map).
16402         Remove fullness slot from struct Lisp_Keymap, since hash tables
16403         are now reliable.
16404         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16405
16406 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16407
16408         * redisplay.c (init_redisplay): Fix small memory leak.
16409         * elhash.h:
16410         * elhash.c (pdump_reorganize_hash_table):
16411         Rename from reorganize_hash_table. Change prototype.
16412         Reuse the original memory for hentries.  Save 100k.
16413         * alloc.c (PDUMP_READ): new macro.
16414         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16415         * alloc.c: No need to #ifndef before #undef.
16416
16417         * print.c: Allow debug_print() to print readably by modifying
16418         debug_print_readably.  Use consistent variable names.
16419
16420         * .dbxrc: Try to get things to work even if stopped in a function
16421         without source available by explicitly specifying source files.
16422 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16423
16424         * unexnt.c (_start): Removed bogus code which caused loading heap
16425         from differrent executable file.
16426         Removed bogus assignment to _fmode, which caused inconsistencies.
16427
16428 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16429
16430         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16431         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16432         Do not preliminary `#define signal sigset'.
16433
16434         * systime.h: Do not prototype environ on windows nt and cygwin,
16435         this conflicts with system header.
16436
16437         * syssignal.h: Use correct define for WINDOWSNT
16438
16439         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16440         with system header.
16441
16442         * sysdep.c (near start of file): Fixed commentary and rearranged
16443         ifdefs in readable order.
16444         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16445         (start_of_text):
16446         (end_of_text):
16447         (end_of_data): Do not compile in if using PDUMP.
16448
16449         * symsinit.h: Prototyped vars_of_nt().
16450
16451         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16452         (find_child_console): Use it.
16453         (sys_kill): Use it.
16454
16455         * ntheap.h: Do not extern os_subtype.
16456
16457         * ntheap.c (cache_system_info): Do not cache unneeded:
16458         nt_major_version, nt_minor_version and os_subtype.
16459         (recreate_heap): Do not compile in when PDUMPing.
16460
16461         * nt.c (geteuid and friends): Use the new varibale
16462         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16463         (init_user_info): Removed the above mentioned hackery.
16464         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16465         stat has been fixed in the C runtime.
16466         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16467
16468         * file-coding.c (struct file_coding_dump): Do not define
16469         ucs_to_mule_table in the struct if not MULE.
16470         (struct struct lrecord_description fcd_description_1): Do not dump
16471         the above.
16472
16473         * emacs.c (main_1): Call vars_of_nt().
16474         (right before Fdump_emacs_data): Don't need lastfile if using both
16475         portabe dumper and system malloc.
16476
16477         * alloc.c (Fmemory_limit): Conditionalized out.
16478         (pdump): Use OPEN_BINARY for the portable dump file.
16479         (pdump_load): Ditto.
16480
16481 2000-02-02  Mike Alexander  <mta@arbortext.com>
16482
16483         * nt.c (convert_time): Set tm_isdst before calling mktime and
16484         avoid calling it at all if the compiler supports 64 bit integers.
16485         Also initialize utc_base_ft before using it.
16486
16487 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16488
16489         * frame.c (change_frame_size_1): Take f->internal_border_width
16490         into consideration when calculating the width of the frame.
16491
16492 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16493
16494         * window.c (frame_min_height):
16495         (frame_size_valid_p):
16496         (frame_pixsize_valid_p): Added.
16497         (check_frame_size): Generalized.
16498
16499         * window.h: Prototyped the above.
16500
16501         * lisp.h:
16502         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16503         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16504         Deleted Vwin32_* and Vbinary_process_* unused variables.
16505
16506         * device-msw.c (msprinter_init_device): Do not get printer font
16507         list; Added DEVMODE functions.
16508
16509         * frame-msw.c: Added lots of printer code.
16510
16511         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16512         general.c.
16513
16514         * console-msw.h: Added more msprinter device private slots.
16515
16516 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16517
16518         * event-msw.c (key_needs_default_processing_p): Added.
16519         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16520
16521 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16522
16523         * glyphs.c (image_instance_layout): Mark image instance as clean
16524         after layout.
16525         (glyph_dirty_p): Removed redundant function.
16526         (invalidate_glyph_geometry_maybe): Added.
16527         (update_glyph_cachel_data): Call it.
16528
16529         * glyphs.h: Prototyped it.
16530
16531         * redisplay.c (add_glyph_rune): Call it.
16532         (redisplay_window): Reset glyphs cachels when frame faces have
16533         changed, thus forcing recomputation of built-in border glyphs.
16534
16535 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16536
16537         * Makefile.in.in: Make portable dumper and purify play well together.
16538         Add imperfect, but better than nothing, support for pdump.
16539         Remove xemacs.dmp when temacs is re-generated.
16540         Don't ignore errors when dumping xemacs.
16541
16542         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16543
16544 2000-01-28  Andy Piper  <andy@xemacs.org>
16545
16546         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16547         (setup_normal_frame): ditto.
16548         (setup_frame_without_minibuffer): ditto.
16549         (setup_minibuffer_frame): ditto.
16550         (delete_frame_internal): ditto.
16551         (Fmake_frame_invisible): ditto.
16552         (Ficonify_frame): ditto.
16553
16554         * window.h: change Fset_window_buffer signature.
16555
16556         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16557         (Fset_window_buffer): allow recording of buffer if the window is
16558         the selected window.
16559         (window_loop): Use new Fset_window signature.
16560
16561 2000-01-23  Daniel Pittman  <daniel@danann.net>
16562
16563         * config.h.in: Added template for `HAVE_ATHENA_3D'
16564
16565 2000-01-29  Andy Piper  <andy@xemacs.org>
16566
16567         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16568
16569         * gutter.c (output_gutter): Don't output if the window isn't live.
16570
16571 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16572
16573         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16574         of 01/12/00: Moved SetFocus back here where it belongs.
16575
16576 2000-01-23  Andy Piper  <andy@xemacs.org>
16577
16578         * s/cygwin32.h: declare printer things.
16579
16580 2000-01-26  Andy Piper  <andy@xemacs.org>
16581
16582         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16583         Alexander.
16584
16585 2000-01-24  Andy Piper  <andy@xemacs.org>
16586
16587         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16588         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16589
16590         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16591
16592         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16593
16594         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16595
16596         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16597         (mswindows_output_display_block): Avoid local shadows.
16598
16599         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16600         (mswindows_enqueue_mouse_button_event): ditto.
16601         (mswindows_handle_gui_wm_command): remove declaration.
16602
16603         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16604         warnings.
16605
16606         * console-msw.h: Avoid shadows.
16607         (mswindows_get_toolbar_button_text):
16608         (emacs_mswindows_create_stream_pair):
16609         (emacs_mswindows_delete_stream_pair):
16610         (mswindows_handle_toolbar_wm_command): declare.
16611
16612         * device-msw.c (build_syscolor_string): Avoid shadows.
16613
16614 2000-01-23  Andy Piper  <andy@xemacs.org>
16615
16616         * glyphs-widget.c (widget_instantiate): reverse the items for
16617         layouts so that children are in the expected order.
16618
16619 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16620
16621         * ralloc.c: safe_bcopy ==> memmove
16622         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16623         * s/msdos.h: Remove BCOPY macros.
16624         * insdel.c (gap_right): Remove BCOPY conditional code.
16625         * insdel.c (gap_left): Remove BCOPY conditional code.
16626         XEmacs demands a working ANSI C compiler - hence memmove.
16627
16628         * regex.c (regex_compile): Remove accidental use of trigraphs.
16629
16630 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16631
16632         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16633         event timestamp.
16634
16635 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16636
16637         * event-msw.c (mswindows_drain_windows_queue): Added the
16638         parameter.
16639         (mswindows_need_event): Commented the call to
16640         mswindows_drain_windows_queue().
16641         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16642         only.
16643
16644         * console-msw.h: Moved a few function prototypes here from
16645         event-msw.c.
16646
16647         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16648         parameter from unsigned short to unsigned long.
16649         (Fmswindows_shell_execute): Added return value.
16650
16651 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16652
16653         * sysdep.c (init_system_name):
16654           process-unix.c (unix_canonicalized_host_name):
16655         Don't call freeaddrinfo() if getaddrinfo() fails.
16656
16657         * process-unix.c (unix_open_unix_network_stream):
16658         Moved the code to get a port # into address loop.
16659
16660 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16661
16662         * buffer.c (reinit_vars_of_buffer):
16663         The right place to initialize conversion_in_dynarr and
16664         conversion_out_dynarr.
16665
16666         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16667
16668         * process-unix.c (unix_canonicalize_host_name): Muleize.
16669         (unix_open_network_stream): Muleize.
16670
16671         * buffer.h: Fix up prototypes for ralloc.c functions.
16672
16673 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16674         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16675         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16676                 instead of gethostbyname()
16677         * process-unix.c: In unix_canonicalize_host_name() and
16678                 unix_open_network_stream(), add code to use getaddrinfo()
16679                 instead of gethostbyname().
16680
16681 2000-01-27  Daniel Pittman <daniel@danann.net>
16682
16683         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16684         libs when built with flat Athena.
16685
16686 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16687
16688         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16689         Use coding standards for function prototypes.
16690
16691 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16692
16693         * dialog-msw.c (push_lisp_string_as_unicode):
16694         * doc.c (unparesseuxify_doc_string):
16695         * dired.c (Fuser_name_completion_1):
16696         * dired.c (Fuser_name_all_completions):
16697         * dired.c (free_user_cache):
16698         * dired.c (user_name_completion):
16699         * console-x.c (get_display_arg_connection):
16700         * minibuf.c (clear_echo_area_internal):
16701         * minibuf.c (echo_area_append):
16702         * eldap.c (Fldap_open):
16703         * eldap.c (Fldap_search_internal):
16704         * frame-x.c (x_set_frame_text_value):
16705         * frame-x.c (x_set_frame_properties):
16706         * frame-x.c (x_create_widgets):
16707         * redisplay-tty.c (term_get_fkeys_1):
16708         * objects-x.c (x_parse_nearest_color):
16709         * objects-x.c (x_valid_color_name_p):
16710         * objects-x.c (x_initialize_font_instance):
16711         * objects-x.c (x_list_fonts):
16712         * objects-x.c (x_find_charset_font):
16713         * tooltalk.c (Fadd_tooltalk_message_arg):
16714         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16715         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16716         * process-unix.c (unix_create_process):
16717         * ntproc.c (sys_spawnve):
16718         * sound.c (Fplay_sound_file):
16719         * sound.c (Fplay_sound):
16720         * buffer.c (init_initial_directory):
16721         * buffer.c (init_buffer):
16722         * editfns.c (init_editfns):
16723         * editfns.c (Ftemp_directory):
16724         * editfns.c (Fuser_full_name):
16725         * editfns.c (uncache_home_directory):
16726         * editfns.c (get_home_directory):
16727         * editfns.c (Fuser_home_directory):
16728         * editfns.c (Fformat_time_string):
16729         * editfns.c (Fcurrent_time_string):
16730         * gui-x.c (button_item_to_widget_value):
16731         * database.c (Fopen_database):
16732         * event-Xt.c (x_to_emacs_keysym):
16733         * event-Xt.c (x_event_to_emacs_event):
16734         * event-Xt.c (describe_event_window):
16735         * event-msw.c (mswindows_wnd_proc):
16736         * glyphs-eimage.c (jpeg_instantiate):
16737         * glyphs-eimage.c (gif_instantiate):
16738         * glyphs-eimage.c (png_instantiate):
16739         * glyphs-eimage.c (tiff_instantiate):
16740         * glyphs-x.c (xbm_instantiate_1):
16741         * glyphs-x.c (x_xbm_instantiate):
16742         * glyphs-x.c (x_xface_instantiate):
16743         * glyphs-x.c (autodetect_instantiate):
16744         * glyphs-x.c (cursor_font_instantiate):
16745         * glyphs-x.c (x_widget_instantiate):
16746         * glyphs-x.c (x_widget_set_property):
16747         * glyphs-x.c (x_widget_property):
16748         * glyphs-x.c (BUILD_GLYPH_INST):
16749         * print.c (write_string_to_stdio_stream):
16750         * print.c (output_string):
16751         * print.c (Falternate_debugging_output):
16752         * print.c (Fexternal_debugging_output):
16753         * glyphs-msw.c (extract_xpm_color_names):
16754         * glyphs-msw.c (mswindows_xpm_instantiate):
16755         * glyphs-msw.c (bmp_instantiate):
16756         * glyphs-msw.c (resource_name_to_resource):
16757         * glyphs-msw.c (mswindows_resource_instantiate):
16758         * glyphs-msw.c (xbm_instantiate_1):
16759         * glyphs-msw.c (mswindows_xbm_instantiate):
16760         * glyphs-msw.c (mswindows_xface_instantiate):
16761         * glyphs-msw.c (mswindows_widget_instantiate):
16762         * glyphs-msw.c (add_tree_item):
16763         * glyphs-msw.c (add_tab_item):
16764         * glyphs-msw.c (mswindows_combo_box_instantiate):
16765         * glyphs-msw.c (mswindows_widget_property):
16766         * glyphs-msw.c (mswindows_combo_box_property):
16767         * glyphs-msw.c (mswindows_widget_set_property):
16768         * console.c (stuff_buffered_input):
16769         * objects-msw.c (mswindows_initialize_color_instance):
16770         * objects-msw.c (mswindows_valid_color_name_p):
16771         * objects-msw.c (mswindows_list_fonts):
16772         * objects-msw.c (mswindows_font_instance_truename):
16773         * bytecode.c (optimize_compiled_function):
16774         * select-x.c (symbol_to_x_atom):
16775         * select-x.c (x_atom_to_symbol):
16776         * select-x.c (hack_motif_clipboard_selection):
16777         * select-x.c (selection_data_to_lisp_data):
16778         * select-x.c (lisp_data_to_selection_data):
16779         * select-x.c (Fx_get_cutbuffer_internal):
16780         * select-x.c (Fx_store_cutbuffer_internal):
16781         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16782         * buffer.h (TO_INTERNAL_FORMAT): New function.
16783         * emacs.c (make_arg_list_1):
16784         * emacs.c (make_argc_argv):
16785         * emacs.c (main_1):
16786         * emacs.c (Fdump_emacs):
16787         * emacs.c (split_string_by_emchar_1):
16788         * file-coding.h:
16789         * lisp.h:
16790         * lstream.h:
16791         * symsinit.h:
16792         * device-x.c (x_init_device):
16793         * device-x.c (Fx_valid_keysym_name_p):
16794         * device-x.c (Fx_get_font_path):
16795         * device-x.c (Fx_set_font_path):
16796         * glyphs.c (bitmap_to_lisp_data):
16797         * glyphs.c (pixmap_to_lisp_data):
16798         * alloc.c (make_ext_string): Use coding system arguments.  Update
16799         all callers.
16800         * alloc.c (build_string):
16801         * callproc.c (child_setup):
16802         * callproc.c (init_callproc):
16803         * fileio.c (lisp_strerror):
16804         * fileio.c (directory_file_name):
16805         * fileio.c (Fexpand_file_name):
16806         * fileio.c (Ffile_truename):
16807         * fileio.c (Fsysnetunam):
16808         * fileio.c (Fdo_auto_save):
16809         * sysdep.c (sys_readdir):
16810         * tests.c: New file.  Allow adding C tests.
16811         Replace GET_* macros with a more comprehensible and flexible
16812         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16813         Modify all calls.
16814         Any coding system can be used to do format conversion.
16815         Eliminate enum external_data_format.
16816         Eliminate convert_to_external_format.
16817         Eliminate convert_to_internal_format.
16818         Make sure file-name, keyboard, terminal, and ctext are always
16819         defined as coding systems or aliases.  Make
16820         file-name-coding-system, terminal-coding-system, and
16821         keyboard-coding-system magical variables that are equivalent to
16822         defining the corresponding coding system aliases.
16823
16824         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16825         * file-coding.c (Fcoding_system_alias_p): New function.
16826         * file-coding.c (Fcoding_system_aliasee): New function.
16827         * file-coding.c (append_suffix_to_symbol): New function.
16828         * file-coding.c (dangling_coding_system_alias_p): New function.
16829         * file-coding.c (Ffind_coding_system):
16830         * file-coding.c (Fcopy_coding_system):
16831         * file-coding.c (encode_coding_no_conversion):
16832         * file-coding.c (syms_of_file_coding):
16833         * file-coding.c (vars_of_file_coding):
16834         Rewrite coding system alias code.
16835         Allow nested aliases, like symbolic links.
16836         Allow redefinition of coding system aliases.
16837         Prevent existence of dangling coding system aliases.
16838
16839         * dired.c (Fuser_name_completion_1):
16840         * dired.c (Fuser_name_all_completions):
16841         A crash would happen if user did QUIT in the middle of building
16842         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16843
16844         * lisp.h:
16845         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16846
16847         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16848         an unsigned char *.  Update all callers.
16849
16850 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16851
16852         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16853
16854 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16855
16856         * elhash.c (hentry_description): Use more portable definition.
16857         (resize_hash_table): Initialize new hentries using
16858         xnew_array_and_zero, thereby simplifying the code.
16859
16860         * mule-charset.c (make_charset): Make sure entire object is
16861         initialized, to avoid Purify warnings.
16862
16863         * alloc.c (resize_string): Fix unlikely crash with big strings.
16864
16865 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16866
16867         * realpath.c (xrealpath):
16868         Don't call getwd().
16869
16870 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16871
16872         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16873
16874 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16875
16876         * unexelfsgi.c (unexec): Change the way we decide which segment
16877         should be extended.
16878
16879         Assumption that .bss section should be outside the PT_LOADable
16880         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16881         it's present) is inside the 'data' segment. This would fail the
16882         test which was used to find a segment to grow and cover new
16883         heap. Instead of this assumption, I created another one - on IRIX
16884         the segment to grow should start below .bss and it's address
16885         should extent above the end of .bss. Once this segment is
16886         identified, it's grown to accommodate the new heap and new
16887         zero-length .bss section is added at the end of .data2.
16888
16889 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16890
16891         * eval.c (Feval): Wrong number of arguments should use original
16892         function, not the indirect_function version of it.
16893
16894 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16895
16896         * glyphs-x.c (x_button_instantiate): Don't add image if
16897         it is not a pixmap.
16898         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16899         is relative.
16900
16901 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16902
16903         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16904         declaration.
16905         (DEFVAR_INT_MAGIC): Ditto.
16906         (DEFVAR_BOOL_MAGIC): Ditto.
16907         * glyphs.h: Reindent backslash.
16908
16909 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16910
16911         * glyphs-widget.c (layout_query_geometry):
16912         (layout_layout): Use correct types for gheight, gwidth.
16913
16914 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16915
16916         * EmacsManager.c (QueryGeometry): Purified.
16917
16918 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16919
16920         * alloc.c (make_float): Make sure entire object is initialized, to
16921         avoid Purify warnings.
16922         (pdump_register_sub): Remove useless assignment.
16923         (pdump): Use xmalloc, not malloc.
16924         (pdump_load): Use xmalloc, not malloc.
16925
16926 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16927
16928         * callproc.c:
16929         * dired-msw.c:
16930         * fileio.c:
16931         * process-nt.c:
16932         * redisplay-msw.c:
16933         * sysdep.c: Removed redundant #include <windows.h>
16934
16935 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16936
16937         * frame.c (delete_frame_internal): Do not delete device when its
16938         implementation so declares.
16939         (delete_frame_internal): Set device selected frame to nil when
16940         last frame goes away.
16941
16942         * device-msw.c (msprinter_device_system_metrics): Implemented.
16943         (mswindows_device_system_metrics): Added 'device-dpi property.
16944
16945         * device.c: (Fdevice_printer_p): Added.
16946         Added 'offset-workspace device metric.
16947
16948         * console.h (device_metrics): Declared DM_offset_workspace.
16949
16950 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16951
16952         * fileio.c (Ffile_truename): Remove pointless and confusing
16953         initialization of elen.
16954
16955         * glyphs-widget.c: Compiler warning fixes.
16956
16957 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16958
16959         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16960         instead of a Lisp_Object as argument to make it consistent with
16961         the other LIVE_P macros.
16962         (CHECK_LIVE_PROCESS): New macro.
16963
16964         * process.c: Declare Qprocess_live_p.
16965         (Fprocess_live_p): New function.
16966         (create_process): Use PROCESS_LIVE_P.
16967         (read_process_output): Ditto.
16968         (set_process_filter): Ditto.
16969         (Fdelete_process): Ditto.
16970         (kill_buffer_processes): Ditto
16971         (process_send_signal): Use CHECK_LIVE_PROCESS.
16972         (Fprocess_input_coding_system): Check whether process is still
16973         alive (fix PR#1061).
16974         (Fprocess_output_coding_system): Ditto.
16975         (Fprocess_coding_system): Ditto.
16976         (Fset_process_input_coding_system): Ditto.
16977         (Fset_process_output_coding_system): Ditto.
16978
16979 2000-01-23  Andy Piper  <andy@xemacs.org>
16980
16981         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16982         layout and widget.
16983
16984         * glyphs.c (mark_image_instance): take into account changed
16985         image_instance format.
16986         (image_instance_equal): ditto.
16987         (image_instance_hash): ditto.
16988
16989         * glyphs-widget.c (widget_instantiate): Incorporate layout
16990         instantiation here. Delay layout of the layout until later.
16991         (layout_instantiate): deleted.
16992         (layout_query_geometry): new function. get the geometry of a
16993         layout.
16994         (layout_layout): layout a layout dynamically.
16995         (image_instantiator_widget): New function - splitting up
16996         image_instantiator_format_create_glyphs_widget for netwinder
16997         compilation.
16998         (image_instantiator_buttons):
16999         (image_instantiator_edit_fields):
17000         (image_instantiator_combo_box):
17001         (image_instantiator_scrollbar):
17002         (image_instantiator_progress_guage):
17003         (image_instantiator_tree_view):
17004         (image_instantiator_tab_control):
17005         (image_instantiator_labels):
17006         (image_instantiator_layout): ditto.
17007         (image_instantiator_format_create_glyphs_widget): Call preceding
17008         functions.
17009
17010 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17011
17012         * process.c (Fset_process_coding_system):
17013         * device-x.c (Fx_keysym_hash_table):
17014         Docstring fixes.
17015
17016         * lstream.c (Lstream_write): Return documented value, not 0.
17017
17018         * fileio.c (directory_file_name):
17019         (Fsubstitute_in_file_name):
17020         (Fsubstitute_insert_file_contents_internal):
17021         (Fwrite_region_internal):
17022         * emacs.c:
17023         * sysdep.c:
17024         * getloadavg.c:
17025         * systty.h:
17026         Remove vestigial APOLLO-conditional code.
17027
17028 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17029
17030         * getpagesize.h: Add guard macros.
17031         * libsst.h: Add guard macros.
17032         * libst.h: Add guard macros.
17033         * line-number.h: Add guard macros.
17034         * ndir.h: Add guard macros.
17035         * sysfloat.h: Add guard macros.
17036         * sysfile.h: Add guard macros.
17037         * sysproc.h: Add guard macros.
17038         * syswait.h: Add guard macros.
17039         * xintrinsic.h: Add guard macros.
17040         * xintrinsicp.h: Add guard macros.
17041         * xmmanager.h: Add guard macros.
17042         * xmmanagerp.h: Add guard macros.
17043         * xmprimitive.h: Add guard macros.
17044         * xmu.h: Add guard macros.
17045         * gpmevent.h: Add copyright statement. Add guard macros.
17046         * miscplay.h: Add guard macros.
17047         * *.h: Use consistent C-standards-approved guard macro names.
17048
17049         * opaque.c (make_opaque): Switch parameter order.
17050         * opaque.h (make_opaque): Switch parameter order.
17051         Update all callers.
17052         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17053
17054         * config.h.in (type_checking_assert): Added.
17055         (bufpos_checking_assert): Added.
17056
17057 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17058
17059         * alloc.c: Harmless pdump changes.
17060         - Use countof().
17061         - spell alignment correctly.
17062         * sysdep.c: Use countof()
17063
17064 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17065
17066         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17067         initially_selected_for_input() console method, default to 0.
17068         (semi_canonicalize_console_connection): Try to delegate to
17069         canonicalize_console_connection if no such console method.
17070         (canonicalize_console_connection): Vice versa.
17071         (print_console): Do not print nil connection.
17072
17073         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17074         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17075         (XDEVIMPF_FRAMELESS_OK): Added.
17076         (CONSOLE_INHERITS_METHOD): Added.
17077
17078         * console-msw.c (mswindows_canonicalize_console_connection):
17079         Added.
17080         (mswindows_canonicalize_device_connection): Added.
17081
17082         * console-msw.h (struct msprinter_device): Added this struct and
17083         accessor macros.
17084         (mswindows_device): Made fontlist a lisp object.
17085
17086         * device.c (semi_canonicalize_device_connection):  Try to delegate
17087         to canonicalize_device_connection if no such console method.
17088         (canonicalize_device_connection): Vice versa.
17089         (print_device): Do not print nil connection.
17090
17091         * device-msw.c (mswindows_init_device): Call InitCommonControls
17092         when have widgets.
17093         (mswindows_delete_device): Removed fontlist deallocation.
17094         (mswindows_mark_device): Added.
17095
17096         * events.c (event_equal): Added abort() at unreached code.
17097         (event_hash): Ditto.
17098
17099         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17100         fallback tags of Windows devices.
17101
17102         * general.c (syms_of_general): Initialized Qmsprinter.
17103
17104         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17105         of fallback tags of Windows devices.
17106
17107         * lisp.h: Declared Qmsprinter.
17108
17109         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17110         of strings.
17111         (mswindows_list_fonts): Ditto.
17112         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17113         that it can be used by both mswindows and msprinter devices.
17114         (initialize_font_instance): Added.
17115         (mswindows_initialize_font_instance): Use it.
17116         (msprinter_initialize_font_instance): Added.
17117
17118         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17119         and implementation flags check.
17120         (redisplay_without_hooks): Changed the call to the above.
17121         (Fredraw_device): Ditto.
17122         (Fredisplay_device): Ditto.
17123
17124         * redisplay-msw.c (get_frame_dc): Implemented.
17125         (get_frame_compdc): Implemented.
17126         (many functions): Use the two functions above to get device
17127         contexts, ether for a window or a printer.
17128
17129 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17130
17131         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17132         initialization here.
17133         (init_symbols_once_early): Call it.
17134         * emacs.c (main_1): Call it.
17135         * symsinit.h: Declare it.
17136
17137 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17138
17139         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17140         Lisp_Object.
17141         (pdump_backtrace): Ditto.
17142         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17143         (pdump_get_entry): Abort if trying to register a null pointer.
17144         (pdump_dump_data): Cleanup types when relocating.
17145         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17146         (pdump_dump_rtables): Remove bad casts.
17147         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17148         Lisp_Object instead of a EMACS_INT for the hashtable
17149         reorganization.
17150
17151 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17152
17153         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17154
17155         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17156
17157         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17158
17159         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17160
17161 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17162
17163         * faces.h (FACE_STRIKETHRU_P): Added.
17164
17165         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17166         of font variants.
17167
17168         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17169         (mswindows_set_dc_font): New function, aware of font variants,
17170         separated from mswindows_update_dc.
17171
17172         * objects-msw.h (struct mswindows_font_instance_data): Added
17173         definition.
17174
17175         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17176         cached fonts and the data structure.
17177         (mswindows_initialize_font_instance): Added creation of font data
17178         structure.
17179         (mswindows_print_font_instance): Print at least something.
17180         (mswindows_create_font_variant): Implemented.
17181         (mswindows_get_hfont): Implemented.
17182
17183 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17184
17185         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17186         prototyping problem with msvc.
17187
17188         * emacs.c (main_1): added syms_of_gui_mswindows() call
17189
17190         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17191         syms_of_gui_mswindows() function
17192
17193         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17194
17195 2000-01-18  Martin Buchholz <martin@xemacs.org>
17196
17197         * XEmacs 21.2.27 is released.
17198
17199 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17200
17201         * glyphs-eimage.c (struct tiff_error_struct):
17202         (tiff_error_func):
17203         (tiff_warning_func):
17204         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17205
17206         * unexmips.c:
17207         * unexhp9k3.c:
17208         * unexfreebsd.c:
17209         * unexec.c: Remove vestigial Lucid C code.
17210         * unexalpha.c:
17211         * unexaix.c:
17212         * termcap.c:
17213         * libsst.c: Ansify.
17214         Remove declarations of errno and strerror().
17215
17216         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17217
17218         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17219
17220 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17221
17222         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17223         Optimize.
17224
17225 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17226
17227         * md5.c:
17228         * file-coding.c:
17229         * file-coding.h:
17230         Change enum eol_type to eol_type_t.
17231
17232 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17233
17234         * gui.c (get_gui_callback): Check cons before accessing car.
17235
17236 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17237
17238         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17239         (XSETSPECIFIER_TYPE): Ditto.
17240
17241 2000-01-17  Didier Verna  <didier@xemacs.org>
17242
17243         * redisplay.c (generate_fstring_runes): compute string size in
17244         characters, not bytes.
17245
17246 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17247
17248         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17249
17250 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17251
17252         * print.c (print_error_message): Call print_prepare().
17253
17254 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17255
17256         * .dbxrc: Renamed from dbxrc.
17257
17258         * events.c (event_to_character):
17259         Use `assert (foo)' instead of `if (!foo) abort()'
17260
17261         * .gdbinit (xtype): Add documentation.
17262         * .gdbinit (check-temacs): New function.
17263         * .gdbinit (check-xemacs): New function.
17264         * dbxrc (check-xemacs): New function.
17265         * dbxrc (check-xemacs): New function.
17266
17267 2000-01-14  Andy Piper  <andy@xemacs.org>
17268
17269         * glyphs-widget.c (widget_query_geometry): Make sure that we
17270         calculate default dimensions correctly.
17271
17272 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17273
17274         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17275
17276         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17277         pdump_wire'd variable.
17278
17279         * emacs.c: (main_1): Conditionalized calls to
17280         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17281
17282 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17283
17284         * window.c (Fset_window_configuration):
17285         * sysdep.c (_start):
17286         * input-method-motif.c (res):
17287         * event-Xt.c (Xt_process_to_emacs_event):
17288         Simple compiler warning fixes.
17289
17290         * bytecode.c (funcall_compiled_function): Use the original
17291         function symbol on the backtrace list in preference to the
17292         compiled_function object in error messages.
17293
17294 2000-01-13  Andy Piper  <andy@xemacs.org>
17295
17296         * glyphs-x.c (update_widget_face): Make sure we update the widget
17297         background as well as foreground.
17298
17299 2000-01-13  Andy Piper  <andy@xemacs.org>
17300
17301         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17302         fields to subwindow.
17303         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17304         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17305         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17306         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17307
17308         * glyphs-widget.c (check_valid_tab_orientation): new function.
17309         (initialize_widget_image_instance): zero orientation and
17310         justification.
17311         (widget_instantiate): pick up orientation.
17312         (tab_control_query_geometry): return appropriate values for
17313         vertical tabs.
17314
17315         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17316         appropriate creation flags for left, right and bottom tabs.
17317
17318         * s/cygwin32.h: add tab definitions.
17319
17320 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17321
17322         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17323         frame upon hiding a subwindow.
17324         (mswindows_button_instantiate): Changed the push button style to
17325         BS_PUSHBUTTON.
17326         (mswindows_button_instantiate): Removed button BS_NOTIFY
17327         style.
17328         (mswindows_button_instantiate): Removed redundant check for
17329         a disabled gui item.
17330         (mswindows_button_instantiate): Made use of WS_TABSTOP
17331         consistent: "operable" controls (edit, button, tree, scroll) have
17332         this style, "display-only" ones (static, progress gauge) do
17333         not. This style is currently ignored by XEmacs though. Also,
17334         removed the WS_EX_CONTROLPARENT style - it is not for children,
17335         it is for their parents!
17336         (mswindows_edit_field_instantiate): Ditto.
17337         (mswindows_progress_gauge_instantiate): Ditto.
17338         (mswindows_tree_view_instantiate): Ditto.
17339         (mswindows_tab_control_instantiate): Ditto.
17340         (mswindows_scrollbar_instantiate): Ditto.
17341         (mswindows_combo_box_instantiate): Ditto.
17342         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17343         style to the "clip" window.
17344         (mswindows_button_instantiate): Removed compilation warning by
17345         equally typing terms of the ?: operator.
17346
17347 2000-01-12  Didier Verna  <didier@xemacs.org>
17348
17349         * redisplay.c (generate_fstring_runes): new parameter holding the
17350         last modeline-format extent.
17351         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17352         extent, fill the glyph block with it.
17353         (generate_fstring_runes): handle these parameters.
17354         (generate_formatted_string_db): ditto.
17355
17356         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17357         glyphs'extents in the modeline.
17358
17359 1999-01-11  Mike Woolley  <mike@bulsara.com>
17360
17361         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17362         256Mb, as a workaround for the non-starting problem many people
17363         have experienced.
17364
17365 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17366
17367         * console-tty.c (Fset_console_tty_output_coding_system):
17368         Force redrawing tty frame.
17369
17370 2000-01-10  Didier Verna  <didier@xemacs.org>
17371
17372         * redisplay.c (generate_fstring_runes): fix size computation bug.
17373
17374 2000-01-09  William M. Perry <wmperry@aventail.com>
17375
17376         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17377
17378 2000-01-09  Andy Piper  <andy@xemacs.org>
17379
17380         * glyphs-msw.c: index -> i to avoid shadows.
17381         (xbm_create_bitmap_from_data): make static.
17382         (check_valid_string_or_int): deleted.
17383         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17384
17385         * glyphs-x.c (x_update_subwindow): remove unused args.
17386
17387         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17388         back pointer - this is done in allocate_image_instance.
17389         (query_string_font): return Qnil to make the compiler happy.
17390         (unmap_subwindow): set to ~0 to make the compiler happy.
17391         (glyph_query_geometry): comment out until used.
17392         (glyph_layout): ditto.
17393
17394 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17395
17396         * insdel.c (signal_after_change): Remove extraneous unbind_to().