fixed.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Q_superscript_of): New variable.
4         (put_char_composition): Return `<-superscript' instead of
5         `=decomposition' for compatibility mapping to single character
6         tagged `super'.
7         (Fput_char_attribute): Convert char-specs in value of
8         `{<-|->}superscript[^*]*' to characters and put reverse links.
9         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
10         for `<-superscript'.
11         (syms_of_chartab): Add new symbol `<-superscript'.
12
13 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * chartab.c (Qto_decomposition_at_compat): Deleted.
16         (Qto_decomposition_at_superscript): New variable.
17         (put_char_composition): Use `=>decomposition@superscript' instead
18         of `=decomposition' for compatibility decomposition mapping tagged
19         `super'.
20         (Fput_char_attribute): Fix condition about `put_char_composition'.
21         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
22         add news symbol `=>decomposition@superscript'.
23
24 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
27         for compatibility decomposition mapping tagged FOO.
28         (Fput_char_attribute): Modify for `put_char_composition'.
29
30 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * chartab.c (Qto_decomposition_at_compat): New variable.
33         (Q_compat_of): Renamed from `Q_compatibility_of'.
34         (put_char_composition): Rename `Q_compatibility_of' to
35         `Q_compat_of'; return `=>decomposition@compat' for compatibility
36         decomposition mapping.
37         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
38         `Q_compat_of'.
39         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
40         `<-compatibility' to `<-compat'.
41
42 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * chartab.c (Q_compatibility_of): New variable.
45         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
46         object is proved to be a cons cell; return `<-compatibility' if
47         the first element of argument `value' is `compat'.
48         (Fput_char_attribute): Eliminate the first value if
49         `put_char_composition' returns `<-compatibility'.
50         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
51         for `<-compatibility'.
52         (syms_of_chartab): Add new symbol `<-compatibility'.
53
54 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * chartab.c (Q_canonical): New variable.
57         (put_char_composition): Return a feature name: return
58         `->canonical' if argument `value' specifies single character.
59         (Fput_char_attribute): Use `put_char_composition' to determine
60         feature name for `=decomposition' or `->denotational'.
61         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
62         for `->canonical'.
63         (syms_of_chartab): Add new symbol `->canonical'.
64
65 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * chartab.c (Qmap_decomposition): New variable.
68         (Fput_char_attribute): Convert `->decomposition' to
69         `=decomposition'.
70         (syms_of_chartab): Add new symbol `=decomposition'.
71
72 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
73
74         * chartab.c (Fget_range_char_table): Fix serious problem when
75         `range' is nil.
76
77 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * chartab.c (char_table_get_db): Use `read_from_c_string'.
80
81 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * lread.c (read_from_c_string): New function.
84
85         * lisp.h (read_from_c_string): New prototype.
86
87 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * chartab.c (Fput_char_attribute): Convert char-specs in value of
90         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
91         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
92         for `{<-|->}Oracle-Bones[^*]*'.
93
94 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
97         (Kizu).
98
99 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * text-coding.c (Qccs_priority_list): New variable in XEmacs
102         CHISE.
103         (Fmake_coding_system): Support new property `ccs-priority-list' in
104         XEmacs CHISE.
105         (Fcoding_system_property): Likewise.
106         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
107         Vdefault_coded_charset_priority_list in XEmacs CHISE.
108         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
109         XEmacs CHISE.
110         (complex_vars_of_file_coding): Define new coding-system-property
111         `ccs-priority-list' in XEmacs CHISE.
112
113         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
114
115 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
118         changed to normal function.
119         (encode_char_2): Likewise.
120
121         * mule-charset.c (decoding_table_put_char): Copied from
122         char-ucs.h; changed to normal function.
123         (encode_char_2): Likewise.
124
125 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
128         New extern.
129         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
130         (encode_char_2_search_children): New inline function.
131         (encode_char_2): Refer
132         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
133         and use `encode_char_2_search_children'.
134
135 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * mule-charset.c
138         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
139         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
140         (vars_of_mule_charset): Add new variable
141         `display-coded-charset-priority-use-inheritance' and
142         `display-coded-charset-priority-use-hierarchy-order'.
143
144 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
145
146         * char-ucs.h (Q_subsumptive): New extern.
147         (Q_denotational): Likewise.
148         (encode_char_2): Search children specified by `->subsumptive' and
149         `->denotational'.
150
151 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * mule-charset.c (complex_vars_of_mule_charset): Modify the
154         X-registry of `ucs-bmp'.
155
156 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * chartab.c (char-variants): Refer `->subsumptive',
159         `->denotational' and `->identical' as same as `->ucs-unified'.
160
161 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * chartab.c (Fput_char_attribute): Convert char-specs in value of
164         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
165         links.
166
167 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * text-coding.c: Add EXFUN for `Fregexp_quote'.
170         (decode_add_er_char): Fix problem about infinite loop when a CCS
171         specified in `coded-charset-entity-reference-alist' is not
172         existed.
173
174 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * mule-charset.c (syms_of_mule_charset): Rename
177         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
178
179 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * fns.c (simplify_char_spec): Don't allocate new character-object
182         if specified char_spec does not have any CCS-features.
183
184         * chartab.h: Add EXFUN for Fdefine_char.
185
186         * chartab.c: Delete EXFUN for Fdefine_char.
187
188 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * fns.c (simplify_char_spec): Use Fdefine_char instead of
191         Ffind_char for char-spec.
192
193 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * lisp-disunion.h (XCHARVAL): Fix condition about
196         SIZEOF_EMACS_INT.
197
198 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
201         <int> for `code'.
202         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
203         point; use <Emchar> instead of <int> for character-id.
204
205 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
208         (make_char): Likewise.
209         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
210         environment.
211         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
212         instead of <int> as the type of return value; use <Lisp_Object>
213         instead of <Emchar> as the type of argument.
214         (XCHARVAL[macro version]): Cast the result into <Emchar>.
215
216         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
217         syntaxcode> instead of <int>.
218
219 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * chartab.c (put_char_composition): Use DECODE_CHAR to get
222         character corresponding with UCS code point.
223         (Fput_char_attribute): Likewise.
224
225         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
226         character in the UCS decoding-table if the char-id is not equal to
227         the UCS code point.
228
229 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
232         for aliases; write `description'; write
233         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
234         not 0.
235
236 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * chartab.c (Fsave_char_attribute_table): Don't use
239         `save_charset_properties'.
240
241         * mule-charset.c (Fsave_charset_properties): Renamed from
242         `save_charset_properties' and changed to Lisp function again;
243         write property `type' as `CCS'; write properties `final-byte' and
244         `mother' if they exists.
245         (syms_of_mule_charset): Revive builtin function
246         `save-charset-properties' when HAVE_LIBCHISE is defined.
247
248 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
251         instead of Vexec_directory.
252         (char_attribute_system_db_file): Likewise.
253
254 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * chartab.c (Fsave_char_attribute_table): Use
257         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
258         defined.
259
260         * mule-charset.c (save_charset_properties): Renamed from
261         `Fsave_charset_properties'; changed to non-Lisp function.
262         (syms_of_mule_charset): Abolish builtin function
263         `save-charset-properties'.
264
265 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * mule-charset.c (Fsave_charset_properties): New function when
268         HAVE_LIBCHISE is defined.
269         (syms_of_mule_charset): Add new builtin function
270         `save-charset-properties' when HAVE_LIBCHISE is defined.
271
272 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * chartab.c (Fput_char_attribute): Convert char-specs in value of
275         `{<-|->}ancient[^*]*' to characters and put reverse links.
276         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
277         for `{<-|->}ancient[^*]*'.
278
279 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * chartab.c (Fput_char_attribute): Convert char-specs in value of
282         `{<-|->}original[^*]*' to characters and put reverse links.
283         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
284         for `{<-|->}original[^*]*'.
285
286 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
289
290 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
291
292         * mule-charset.c (Qsystem_char_id): New variable.
293
294         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
295         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
296
297 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * chartab.c (Fput_char_attribute): When processing a reference of
300         a character, put into the end of the reversed reference of each
301         target character.
302
303 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * chartab.c (Q_same): Deleted.
306         (Q_same_of): Deleted.
307         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
308         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
309         for `{<-|->}same'.
310         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
311
312 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * chartab.c (Q_vulgar): Deleted.
315         (Q_vulgar_of): Deleted.
316         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
317         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
318         for `{<-|->}vulgar'.
319         (syms_of_chartab): Don't define `{<-|->}vulgar'.
320
321 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * chartab.c (Fput_char_attribute): Convert char-specs in value of
324         `{<-|->}wrong[^*]*' to characters and put reverse links.
325         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
326         for `{<-|->}wrong[^*]*'.
327
328 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * chartab.c (Q_vulgar): New variable.
331         (Q_vulgar_of): New variable.
332         (Fput_char_attribute): Convert char-specs in value of
333         `{->|<-}vulgar' to characters and put reverse links.
334         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
335         for `{->|<-}vulgar'.
336         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
337
338 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * text-coding.c (decode_add_er_char): Must to quote prefix string
341         as regexp.
342
343 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * mule-charset.c (put_char_ccs_code_point): Store characters of
346         =ucs whose code_points >= 0xF0000.
347
348 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
351         CHISE.
352         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
353         CHISE.
354         (complex_vars_of_mule_charset): Add new coded-charset
355         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
356         builtin characters over 0xEFFFF.
357
358         * chartab.c (syms_of_chartab): Don't define symbol
359         `system-char-id' in every case.
360
361         * char-ucs.h (Qsystem_char_id): New extern variable.
362         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
363
364 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
365
366         * text-coding.c (char_encode_utf8): Try to use entity-references
367         for U-000F0000 ...  U-0010FFFF.
368
369 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * text-coding.c (ER_BUF_SIZE): New macro.
372         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
373         `er_buf'.
374         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
375         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
376
377 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * chartab.c (find_char_feature_in_family): New function.
380         (Fchar_feature): Use `find_char_feature_in_family' with
381         `->identical', `<-subsumptive' and `<-denotational'.
382
383 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * text-coding.c (char_encode_as_entity_reference): Allow prefix
386         within 8 characters; fix infinite loop.
387
388 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * chartab.c (Q_same): New variable.
391         (Q_same_of): New variable.
392         (Fput_char_attribute): Convert char-specs in value of
393         `{->|<-}same' to characters and put reverse links.
394         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
395         for `{->|<-}same'.
396         (syms_of_chartab): Add new symbols `{->|<-}same'.
397
398 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * chartab.c (Q_component): New variable.
401         (Q_component_of): Likewise.
402         (Fput_char_attribute): Convert char-specs in value of
403         `{->|<-}ideographic-component-forms' to characters and put reverse
404         links.
405         (syms_of_chartab): Add new symbols
406         `{->|<-}ideographic-component-forms'.
407
408 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
409
410         * chartab.c (Q_identical): New variable.
411         (Q_identical_from): New variable.
412         (Fchar_feature): Regard `->identical' as a feature to find
413         ancestors.
414         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
415         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
416         for `{->|<-}identical'.
417         (syms_of_chartab): Add new symbols `{->|<-}identical'.
418
419 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * char-ucs.h (encode_char_2): New inline function.
422         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
423
424 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * chartab.c (Fput_char_attribute): Convert char-specs to
427         characters in value of `ideographic-structure'.
428         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
429         for `{<-|->}simplified(@...)'.
430         (Fdefine_char): Try to use predefined character's id.
431
432 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * fns.c (simplify_char_spec): Try to convert builtin chars to
435         defined chars.
436
437 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * chartab.c (Fput_char_attribute): Convert char-specs in value of
440         `<-simplified[^*]*' to characters and put reverse links.
441
442 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * chartab.c (Q_subsumptive): Renamed from Q_unified.
445         (Q_subsumptive_from): Renamed from Q_unified_from.
446         (Fchar_feature): Use `Q_subsumptive_from' instead of
447         `Q_unified_from'.
448         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
449         `Q_unified'.
450         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
451         `<-unified' to `<-subsumptive'.
452
453 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
454
455         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
456         inheritance itself; fix typo; stop recursive search if cyclic
457         inheritance is found.
458
459 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * chartab.c (Q_denotational): New variable.
462         (Q_denotational_from): New variable.
463         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
464         (put_char_attribute): New function.
465         (Fput_char_attribute): Use `put_char_attribute'; regard
466         `->denotational' and `<-denotational' as same as `->unified' and
467         `<-unified'.
468         (syms_of_chartab): Add new symbols `->denotational' and
469         `<-denotational'.
470
471 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
474         `Fget_char_attribute'.
475         (Fchar_variants): Likewise.
476         (get_char_table): Likewise.
477         (Fchar_feature): New function.
478         (put_char_composition): Use `Fchar_feature' instead of
479         `Fget_char_attribute'.
480         (Fput_char_attribute): Likewise; don't put the target character
481         into its `->unified' value.
482         (syms_of_chartab): Add new builtin function `char-feature'.
483
484 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
487         `Fget_char_attribute'.
488         (char_encode_utf8): Likewise.
489
490         * chartab.h: Add an EXFUN for `Fchar_feature'.
491
492 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * chartab.c (Vnext_defined_char_id): New variable.
495         (Fput_char_attribute): Accept characters in `->unified'.
496         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
497         new characters which are not related with builtin char-id ranges.
498         (vars_of_chartab): Add new variable `next-defined-char-id'.
499
500 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
501
502         * chartab.c (Q_unified): New variable.
503         (Q_unified_from): New variable.
504         (Fput_char_attribute): Add code for `->unified'.
505         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
506         XEmacs CHISE.
507
508 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * mule-charset.c (decode_ccs_conversion): New function.
511         (decode_defined_char): Use `decode_ccs_conversion'.
512         (decode_builtin_char): Likewise.
513
514 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
515
516         * char-ucs.h: Change some charset-ids of private coded-charsets.
517
518 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
521         (char_encode_as_entity_reference): Likewise.
522         (decode_coding_big5): Modify for `decode_defined_char' and
523         `DECODE_CHAR'.
524         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
525         avoid compiler warning.
526         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
527
528         * mule-charset.c (decode_defined_char): Add new argument
529         `without_inheritance'.
530         (Fdecode_char): Add new optional argument `without_inheritance'.
531         (Fdecode_builtin_char): Modify for `Fdecode_char'.
532
533         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
534         (simplify_char_spec): Likewise.
535
536         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
537         setting.
538
539         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
540         (map_char_table): Likewise.
541         (Fdefine_char): Use `Fdecode_char' without inheritance.
542         (Ffind_char): Modify for `Fdecode_char'.
543
544         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
545
546         * char-ucs.h (decode_defined_char): Add new argument
547         `without_inheritance'.
548         (DECODE_CHAR): Likewise.
549         (MAKE_CHAR): Modify for `DECODE_CHAR'.
550
551 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * chartab.c (Vchise_system_db_directory): New variable.
554         (vars_of_chartab): Add new variable `chise-system-db-directory'.
555
556 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * chartab.c: EXFUN `Fmount_char_attribute_table'.
559         (print_chartab_range): Don't define when `UTF2000' is defined.
560         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
561         `CHISE_DS_open'.
562
563 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
566         and optional argument `rehash' is specified, call
567         `open_chise_data_source_maybe' before
568         `chise_ds_foreach_char_feature_name' is called.
569
570 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * chartab.c (char_attribute_list_reset_map_func): New function
573         when HAVE_LIBCHISE is defined.
574         (Fchar_attribute_list): Add new optional argument `rehash' when
575         HAVE_LIBCHISE is defined.
576         (open_chise_data_source_maybe): Use "chise-db" instead of
577         "char-db".
578         (char_attribute_system_db_file): Likewise.
579         (Fload_char_attribute_table): Use
580         `chise_feature_foreach_char_with_value' instead of
581         `chise_char_feature_value_iterate'.
582
583 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * chartab.c (Vchise_db_directory): New variable.
586         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
587
588 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
591         instead of HAVE_CHISE to specify using with libchise.
592
593         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
594
595         * chartab.h: Don't use HAVE_CHISE_CLIENT.
596
597         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
598         defined or HAVE_LIBCHISE_LIBCHISE is defined.
599         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
600         is defined.
601         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
602         HAVE_CHISE to specify using with libchise.
603         (syms_of_chartab): Don't define symbol `system-char-id' when
604         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
605
606 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
609         specify CHISE DB support.
610         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
611         of `char_attribute_system_db_file' to check feature DB file.
612
613         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
614         HAVE_CHISE_CLIENT to specify CHISE DB support.
615
616         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
617         specify CHISE DB support.
618         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
619         not defined.
620         (Freset_char_attribute_table): Use `chise_feature_setup_db'
621         instead of `char_attribute_system_db_file' to check feature DB
622         file.
623
624 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
627         `HAVE_CHISE_CLIENT'.
628
629 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
632         (Fsave_charset_mapping_table): Don't use
633         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
634
635         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
636         (HAVE_LIBCHISE): New macro.
637
638         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
639
640         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
641         (Fsave_char_attribute_table): Don't use
642         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
643
644 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
645
646         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
647         defined.
648         (save_uint16_byte_table): Likewise.
649         (save_byte_table): Likewise.
650         (char_table_get_db): Use `chise_ds_load_char_feature_value'
651         instead of `chise_char_load_feature_value'.
652         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
653
654 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * chartab.h (struct Lisp_Char_Table): Delete member
657         `feature_table' if CHISE is defined.
658
659         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
660         (Fcopy_char_table): Likewise.
661         (char_table_open_db_maybe): Likewise.
662         (char_table_close_db_maybe): Likewise.
663         (char_table_get_db): Likewise.
664         (Fmount_char_attribute_table): Likewise.
665         (Fload_char_attribute_table): Likewise.
666
667 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
668
669         * mule-charset.c (load_char_decoding_entry_maybe): Use
670         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
671         `chise_ccs_decode'.
672
673 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
676         instead of `chise_open_data_source'.
677         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
678         `chise_ds_close'.
679
680 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
683         instead of `chise_ds_open_feature_table'.
684         (char_table_close_db_maybe): Don't use `chise_ft_close'.
685
686 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * mule-charset.c (Fsave_charset_mapping_table): Use
689         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
690         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
691         `chise_ccs_sync' instead of `chise_ccst_close'.
692         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
693
694         * chartab.c (open_chise_data_source_maybe): Modify for
695         `chise_open_data_source'.
696         (char_table_open_db_maybe): Modify for
697         `chise_ds_open_feature_table'.
698
699 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
700
701         * mule-charset.c (load_char_decoding_entry_maybe): Use
702         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
703         `chise_ccst_close'.
704
705 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
706
707         * mule-charset.c (Fsave_charset_mapping_table): Use
708         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
709         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
710         `chise_dt_put_char' and `chise_dt_close'.
711         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
712         `chise_ccs_decode' and `chise_ccst_close' instead of
713         `chise_ds_open_decoding_table', `chise_dt_get_char' and
714         `chise_dt_close'.
715
716         * chartab.c (char_table_get_db): Use
717         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
718         (load_char_attribute_table_map_func): Modify for
719         `chise_char_feature_value_iterate'.
720         (Fload_char_attribute_table): Use
721         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
722
723 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
726
727 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
728
729         * chartab.c (put_char_table): Modify for inherited coded-charsets
730         in XEmacs CHISE.
731
732 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * chartab.c (Fput_char_table_map_function): Fixed.
735         (word_boundary_p): Don't check charset in XEmacs CHISE.
736
737 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * mule-charset.c (Fsave_charset_mapping_table): Use
740         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
741         instead of `chise_open_decoding_table'; refer
742         `default_chise_data_source'; use `chise_dt_close' instead of
743         `chise_close_decoding_table'.
744         (load_char_decoding_entry_maybe): Likewise.
745
746         * chartab.c (default_chise_data_source): New variable when `CHISE'
747         is defined.
748         (Fcopy_char_table): `ct->ds' is deleted.
749         (open_chise_data_source_maybe): New function.
750         (Fclose_char_data_source): New function.
751         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
752         use `chise_ds_open_feature_table' instead of
753         `chise_open_feature_table'.
754         (char_table_close_db_maybe): Use `chise_ft_close' instead of
755         `chise_close_feature_table'; `cit->ds' is deleted.
756         (syms_of_chartab): Add new builtin function
757         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
758
759         * chartab.h (default_chise_data_source): New extern variable.
760         (open_chise_data_source_maybe): New prototype.
761         (struct Lisp_Char_Table): Delete `ds'.
762
763 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
764
765         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
766         `CHISE' is defined.
767
768 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
769
770         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
771         not defined; add code for non-libchise setting.
772         (char_table_close_db_maybe): Likewise.
773         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
774         defined.
775         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
776         even if `CHISE' is not defined.
777         (Freset_char_attribute_table): Likewise.
778         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
779         `char_table_close_db_maybe' even if `CHISE' is not defined; use
780         `char_table_get_db'.
781         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
782         `char_table_close_db_maybe' even if `CHISE' is not defined.
783
784 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
785
786         * chartab.c (char_table_open_db_maybe): New function.
787         (char_table_close_db_maybe): New function.
788         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
789         (Freset_char_attribute_table): Likewise.
790         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
791         `char_table_close_db_maybe'.
792         (Fload_char_attribute_table): Likewise.
793
794 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
795
796         * chartab.c: Don't include <chise.h> because it is included in
797         chartab.h.
798         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
799         defined.
800         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
801         `CHISE' is defined.
802         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
803         `CHISE' is defined.
804         (Fclose_char_attribute_table): Close `ct->feature_table' and
805         `ct->ds' when `CHISE' is defined.
806         (Freset_char_attribute_table): Likewise.
807         (load_char_attribute_maybe): Use `cit->ds' and
808         `cit->feature_table' when `CHISE' is defined.
809         (Fload_char_attribute_table): Likewise.
810
811         * chartab.h: Include <chise.h> when `CHISE' is defined.
812         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
813         when `CHISE' is defined.
814
815 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
818         is defined.
819         (char_table_description): Likewise.
820         (Fmake_char_table): Likewise.
821         (Fcopy_char_table): Likewise.
822         (Fmount_char_attribute_table): Likewise.
823         (Fclose_char_attribute_table): Likewise.
824         (Freset_char_attribute_table): Likewise.
825         (load_char_attribute_maybe): Likewise.
826         (Fload_char_attribute_table): Likewise.
827
828         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
829         defined.
830
831 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * chartab.c (load_char_attribute_table_map_func): New function
834         when CHISE is defined.
835         (Qload_char_attribute_table_map_function): Don't define when CHISE
836         is defined.
837         (Fload_char_attribute_table_map_function): Likewise.
838         (Fload_char_attribute_table): Use libchise when `CHISE' is
839         defined.
840         (syms_of_chartab): Don't define
841         `load-char-attribute-table-map-function' when CHISE is defined.
842
843 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
844
845         * chartab.c: Include <chise.h> when `CHISE' is defined.
846         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
847
848 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * mule-charset.c (charset_code_point): Fix problem when searching
851         in mother CCS fails with `defined_only' mode.
852
853 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
854
855         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
856         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
857         (put_char_composition): Likewise.
858         (Fput_char_attribute): Likewise.
859         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
860
861 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
862
863         * chartab.c (Q_ucs): Deleted.
864         (Fput_char_attribute): Don't refer `->ucs'.
865         (Fdefine_char): Likewise.
866         (Ffind_char): Likewise.
867         (syms_of_chartab): Delete `->ucs'.
868
869 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
870
871         * mule-charset.c (Qmap_cns11643_2): Renamed from
872         `Qchinese_cns11643_2'.
873         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
874         `chinese-cns11643-2'.
875         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
876         `=cns11643-2'.
877
878 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
879
880         * mule-charset.c (Qmap_cns11643_1): Renamed from
881         `Qchinese_cns11643_1'.
882         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
883         `chinese-cns11643-1'.
884         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
885         `=cns11643-1'.
886
887 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
888
889         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
890         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
891         `chinese-gb12345'.
892         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
893         `=gb12345'.
894
895 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
896
897         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
898         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
899         `chinese-gb2312'.
900         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
901         `=gb2312'.
902
903 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
904
905         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
906         (syms_of_mule_charset): Add new symbol `=big5' instead of
907         `chinese-big5'.
908         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
909
910 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
913         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
914         `korean-ksc5601'.
915         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
916         `=ks-x1001'.
917
918 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
919
920         * mule-charset.c (Qmap_jis_x0212): Renamed from
921         `Qjapanese_jisx0212'.
922         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
923         `japanese-jisx0212'.
924         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
925         `=jis-x0212'.
926
927 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
928
929         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
930         `Qjapanese_jisx0208'.
931         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
932         of `japanese-jisx0208'.
933         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
934         `=jis-x0208-1983'.
935
936 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
937
938         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
939         `Qjapanese_jisx0208_1978'.
940         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
941         of `japanese-jisx0208-1978'.
942         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
943         `=jis-x0208-1978'.
944
945 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
946
947         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
948         only for XEmacs CHISE.
949
950 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
951
952         * char-ucs.h: Compact non-ISO-IR charset-ids.
953         (LEADING_BYTE_UCS): Changed to -177.
954         (LEADING_BYTE_CONTROL_1): Changed to -77.
955         (LEADING_BYTE_UCS_BMP): Changed to -176.
956         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
957
958 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
959
960         * mule-charset.c (Qiso_ir): New variable.
961         (Fmake_charset): Recognise new property `iso-ir'.
962         (syms_of_mule_charset): Add new symbol `iso-ir'.
963
964 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
965
966         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
967         n to -n; charset-id of non ISO-IR sets are changed to positive
968         numbers.
969
970 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
973         for &MCS-XXXXXXXX; values.
974
975 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
976
977         * mule.c (Vxemacs_chise_version): Renamed from
978         `Vutf_2000_version'.
979         (vars_of_mule): Add new variable `xemacs-chise-version'; define
980         `utf-2000-version' as an alias for `xemacs-chise-version'.
981
982 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
983
984         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
985         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
986         defined.
987
988         * config.h.in (CHISE): New macro.
989
990 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
991
992         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
993         of `ucs'.
994         (Qmap_ucs): New variable.
995         (syms_of_mule_charset): Add new symbol `=ucs'.
996         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
997
998         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
999         (simplify_char_spec): Likewise.
1000
1001         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1002
1003         * char-ucs.h (Qmap_ucs): New extern variable.
1004
1005 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006
1007         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1008         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1009         don't define it when UTF2000 is not defined.
1010         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1011         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1012         when UTF2000 is not defined.
1013         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1014         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1015
1016 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1019
1020         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1021         (Qucs_gb): Deleted.
1022         (syms_of_mule_charset): Delete `ucs-gb'.
1023         (complex_vars_of_mule_charset): Likewise.
1024
1025 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1026
1027         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1028
1029         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1030         (Qucs_cns): Deleted.
1031         (syms_of_mule_charset): Delete `ucs-cns'.
1032         (complex_vars_of_mule_charset): Likewise.
1033
1034 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1037
1038         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1039         (Qucs_jis): Deleted.
1040         (syms_of_mule_charset): Delete `ucs-jis'.
1041         (complex_vars_of_mule_charset): Likewise.
1042
1043 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1046
1047         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1048         (Qucs_ks): Deleted.
1049         (syms_of_mule_charset): Delete `ucs-ks'.
1050         (complex_vars_of_mule_charset): Likewise.
1051
1052 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1053
1054         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1055         (Qideograph_daikanwa_2): Deleted.
1056         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1057         (complex_vars_of_mule_charset): Likewise.
1058
1059         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1060         (LEADING_BYTE_DAIKANWA_1): Deleted.
1061         (LEADING_BYTE_DAIKANWA_2): Deleted.
1062         (MIN_CHAR_DAIKANWA): Deleted.
1063         (MAX_CHAR_DAIKANWA): Deleted.
1064
1065 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1066
1067         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1068         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1069         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1070
1071         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1072         (Vcharset_ideograph_daikanwa): Deleted.
1073         (Qideograph_hanziku_{1..12}): Deleted.
1074         (Qideograph_daikanwa): Deleted.
1075         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1076         Vcharset_ideograph_daikanwa.
1077         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1078         `ideograph-hanziku-{1..12}'.
1079         (complex_vars_of_mule_charset): Likewise.
1080
1081 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1082
1083         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1084
1085         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1086         (Qideograph_gt_pj_{1..11}): Deleted.
1087         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1088         (complex_vars_of_mule_charset): Likewise.
1089
1090 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091
1092         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1093         (Vcharset_ideograph_gt): Deleted.
1094         (Qucs_big5): Deleted.
1095         (Qideograph_gt): Deleted.
1096         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1097         `ideograph-gt'.
1098         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1099         and `ideograph-gt'.
1100
1101         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1102         (LEADING_BYTE_GT): Deleted.
1103         (MIN_CHAR_GT): Deleted.
1104         (MAX_CHAR_GT): Deleted.
1105
1106 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1107
1108         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1109
1110 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1113         (save_uint16_byte_table): Likewise.
1114         (save_byte_table): Likewise; convert values by it.
1115         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1116         for `ideographic-structure'.
1117         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1118         as the filter for `ideographic-structure'.
1119
1120 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * chartab.c (put_char_composition): New function.
1123         (Fput_char_attribute): Use `put_char_composition'; use
1124         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1125
1126         * fns.c (simplify_char_spec): New function.
1127         (char_ref_simplify_spec): New function.
1128         (Fchar_refs_simplify_char_specs): New function.
1129         (syms_of_fns): Add new builtin function
1130         `char-refs-simplify-char-specs'.
1131
1132 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1135         (Qideograph_cbeta): Deleted.
1136         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1137         (complex_vars_of_mule_charset): Likewise.
1138
1139         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1140         (MIN_CHAR_CBETA): Comment out.
1141         (MAX_CHAR_CBETA): Likewise.
1142
1143 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1144
1145         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1146         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1147         CHISE client feature.
1148
1149 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1150
1151         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1152
1153 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1154
1155         * mule-charset.c (charset_lookup_description_1): Use
1156         `NUM_LEADING_BYTES' in UTF-2000.
1157
1158 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1159
1160         * char-ucs.h (GC_CHARSETP): Deleted.
1161
1162 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1163
1164         * char-ucs.h (MAX_CHAR_GT): Updated.
1165
1166 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1167
1168         * text-coding.c: Sync with XEmacs 21.4.10.
1169
1170 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1171
1172         * mule-charset.c (Vcharset_china3_jef): Deleted.
1173         (Qchina3_jef): Deleted.
1174         (syms_of_mule_charset): Don't define `china3-jef'.
1175         (complex_vars_of_mule_charset): Likewise.
1176
1177         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1178         (MIN_CHAR_CHINA3_JEF): Comment out.
1179         (MAX_CHAR_CHINA3_JEF): Comment out.
1180
1181 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182
1183         * mule-charset.c (Vcharset_ucs_gb): New variable.
1184         (Qucs_gb): New variable.
1185         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1186         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1187
1188         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1189
1190 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * mule-charset.c (charset_code_point): if a coded-charset has a
1193         final-byte, don't inherit the builtin range of the mother CCS.
1194
1195 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196
1197         * mule-charset.c (charset_code_point): Fix problem about
1198         inheritance.
1199
1200 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * mule-charset.c (decode_builtin_char): Reorganized.
1203
1204 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * text-coding.c (char_encode_as_entity_reference): Modify for
1207         `charset_code_point'.
1208         (char_encode_shift_jis): Likewise.
1209         (char_encode_big5): Likewise.
1210         (char_encode_utf8): Likewise.
1211         (char_encode_iso2022): Likewise.
1212
1213         * mule-charset.c (charset_code_point): Add new argument
1214         `defined_only'.
1215         (Fencode_char): Add new optional argument `defined_only'.
1216
1217         * chartab.c (put_char_table): Modify for `charset_code_point'.
1218
1219         * char-ucs.h (charset_code_point): Add new argument
1220         `defined_only'.
1221         (encode_char_1): Modify for `charset_code_point'.
1222
1223 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1226         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1227
1228 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1231         (Qjis_x0208): Likewise.
1232         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1233         XCHARSET_FINAL(charset).
1234         (charset_code_point): Modify condition for final-byte based
1235         builtin-chars.
1236         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1237         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1238         in UTF-2000; specify `=jis-x0208' as the mother of
1239         `japanese-jisx0208-1978', `japanese-jisx0208' and
1240         `japanese-jisx0208-1990' in UTF-2000.
1241
1242 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1243
1244         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1245
1246 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247
1248         * text-coding.c (decode_coding_utf16): Support UTF-16.
1249         (char_encode_utf16): Fixed.
1250
1251 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1252
1253         * text-coding.c (Qutf16): New variable in MULE.
1254         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1255         (Fcoding_system_type): Add `utf-16' in MULE.
1256         (struct detection_state): Add a structure for utf16 in MULE.
1257         (detect_coding_type): Setup st->utf16.mask in MULE.
1258         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1259         MULE.
1260         (reset_encoding_stream): Use `char_encode_utf16' and
1261         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1262         (detect_coding_utf16): New function [incomplete].
1263         (decode_coding_utf16): New function [support only UCS-2].
1264         (char_encode_utf16): New function.
1265         (char_finish_utf16): New function.
1266         (syms_of_file_coding): Add new symbol `utf-16'; setup
1267         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1268
1269         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1270         UTF-2000.
1271         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1272         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1273
1274 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1275
1276         * chartab.c (put_char_table): When a charset is specified as a
1277         range in UTF-2000, don't support builtin characters.
1278
1279 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1280
1281         * mule-charset.c (decode_defined_char): Don't refer external
1282         database if Qunbound or Qnil are found.
1283         (Fsave_charset_mapping_table): Don't define it if
1284         HAVE_CHISE_CLIENT is not defined.
1285         (Freset_charset_mapping_table): New function.
1286         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1287         found in external database.
1288         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1289         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1290         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1291
1292 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1293
1294         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1295         not.
1296
1297 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1298
1299         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1300         Q_lowercase, Q_uppercase in UTF-2000.
1301
1302         * chartab.c (get_char_table): Add special code for the standard
1303         case table to use character attribute `->downcase' and
1304         `->uppercase' for case operations in UTF-2000.
1305
1306         * casetab.c (Qflippedcase): New variable in UTF-2000.
1307         (Q_lowercase): Likewise.
1308         (Q_uppercase): Likewise.
1309         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1310         and `->uppercase' in UTF-2000.
1311         (complex_vars_of_casetab): Assign attribute name `downcase' to
1312         downcase and CANON table of Vstandard_case_table in UTF-2000;
1313         assign attribute name `flippedcase' to upcase and EQV table of
1314         Vstandard_case_table in UTF-2000.
1315
1316 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317
1318         * text-coding.c (decode_add_er_char): Support isolated-chars.
1319         (char_encode_as_entity_reference): Likewise.
1320
1321 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1322
1323         * emacs.c (Vutf_2000_lisp_directory): New variable.
1324         (Vconfigure_utf_2000_lisp_directory): Likewise.
1325         (complex_vars_of_emacs): Add new variable
1326         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1327
1328 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * char-ucs.h (DECODE_CHAR): Delete special code for
1331         `chinese-big5-1' and `chinese-big5-2'.
1332
1333         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1334         (Qbig5_2): Likewise.
1335         (decode_defined_char): Support CONVERSION_BIG5_1 and
1336         CONVERSION_BIG5_2.
1337         (decode_builtin_char): Likewise.
1338         (charset_code_point): Likewise.
1339         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1340         'conversion in UTF-2000.
1341         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1342         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1343         `chinese-big5-2' as children of `chinese-big5'.
1344
1345         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1346         (CONVERSION_BIG5_2): New macro.
1347
1348 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1349
1350         * text-coding.c (char_encode_big5): Support entity-reference.
1351
1352 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1353
1354         * text-coding.c (char_encode_as_entity_reference): New function.
1355         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1356
1357 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1358
1359         * text-coding.c (decode_coding_big5): Support entity-reference
1360         decoding feature.
1361
1362 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * text-coding.c (allocate_coding_system): Initialize initial
1365         charsets for CODESYS_UTF8.
1366         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1367         charset-g2 for CODESYS_UTF8.
1368         (decode_coding_utf8): Use charset-g0.
1369         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1370         to force variants to map to UCS.
1371
1372 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1373
1374         * text-coding.c (Qutf_8_mcs): New variable.
1375         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1376         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1377         instead of `utf-8' in UTF-2000.
1378
1379 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1382         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1383         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1384         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1385         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1386         CONVERSION_96x96x96x96 are introduced.
1387         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1388         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1389         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1390
1391         * char-ucs.h (CONVERSION_94): New macro.
1392         (CONVERSION_96): New macro.
1393         (CONVERSION_94x94): New macro.
1394         (CONVERSION_96x96): New macro.
1395         (CONVERSION_94x94x94): New macro.
1396         (CONVERSION_96x96x96): New macro.
1397         (CONVERSION_94x94x94x60): New macro.
1398         (CONVERSION_94x94x94x94): New macro.
1399         (CONVERSION_96x96x96x96): New macro.
1400
1401 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1402
1403         * chartab.c (Vcharacter_variant_table): Deleted.
1404         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1405         of `Vcharacter_variant_table'.
1406         (Fput_char_attribute): Likewise.
1407         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1408         (complex_vars_of_chartab): Likewise.
1409
1410 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1411
1412         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1413
1414         * fns.c (Qideographic_structure): New variable.
1415         (Qkeyword_char): New variable.
1416         (ids_format_unit): New function.
1417         (Fideographic_structure_to_ids): New function.
1418         (syms_of_fns): Add new symbols `ideographic-structure' and
1419         `:char'; add new builtin function `ideographic-structure-to-ids'.
1420
1421         * data.c (Fchar_ref_p): New function.
1422         (syms_of_data): Add new builtin function `char-ref-p'.
1423
1424         * chartab.h: Add an EXFUN for `Ffind_char'.
1425
1426 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1427
1428         * text-coding.c (Vcharacter_composition_table): Deleted.
1429         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1430         in every UTF-2000.
1431
1432         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1433         UTF-2000.
1434         (Vcharacter_composition_table): Deleted.
1435         (Fget_composite_char): Use the implementation for external-DB
1436         support in every UTF-2000.
1437         (Fput_char_attribute): Likewise.
1438         (char_attribute_system_db_file): Don't define if external-DB
1439         feature is not available.
1440         (Fsave_char_attribute_table): Likewise.
1441         (Fmount_char_attribute_table): Likewise.
1442         (Fclose_char_attribute_table): Likewise.
1443         (Freset_char_attribute_table): Likewise.
1444         (Fload_char_attribute_table): Likewise.
1445         (syms_of_chartab): Don't define `save-char-attribute-table',
1446         `mount-char-attribute-table', `reset-char-attribute-table',
1447         `close-char-attribute-table' and `load-char-attribute-table' if
1448         external-DB feature is not available.
1449         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1450
1451 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1452
1453         * text-coding.c (Qcomposition): Add extern if external-DB feature
1454         is supported.
1455         (Vcharacter_composition_table): Don't add extern if external-DB
1456         feature is supported.
1457         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1458         character composition rule if external-DB feature is supported.
1459
1460         * chartab.c (Vcharacter_composition_table): Don't define if
1461         external-DB feature is supported.
1462         (Qcomposition): New variable.
1463         (Fget_composite_char): New implementation for external-DB support.
1464         (Fput_char_attribute): Use `composition' property of each
1465         character instead of `Vcharacter_composition_table' to store
1466         character-composition rules if external-DB feature is supported.
1467         (syms_of_chartab): Add new symbol `composition'.
1468         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1469         external-DB feature is supported.
1470
1471 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1472
1473         * chartab.c (Vchar_db_stingy_mode): New variable.
1474         (load_char_attribute_maybe): Close database if
1475         Vchar_db_stingy_mode is not NIL.
1476         (Fload_char_attribute_table_map_function): Use
1477         `get_char_id_table_0' instead of `get_char_id_table'.
1478         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1479
1480         * chartab.h (get_char_id_table_0): New inline function.
1481         (get_char_id_table): Use `get_char_id_table_0'.
1482
1483 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1486         and `COMPOSE_ADD_CHAR'.
1487         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1488
1489 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1492         instead of `DECODE_ADD_UCS_CHAR'.
1493         (COMPOSE_ADD_CHAR): Likewise.
1494
1495 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * text-coding.c (decode_flush_er_chars): New inline function.
1498         (decode_add_er_char): New function.
1499         (decode_coding_utf8): Use `decode_flush_er_chars' and
1500         `decode_add_er_char'.
1501
1502 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1503
1504         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1505         done before `decode_output_utf8_partial_char'.
1506
1507         * mule-charset.c (complex_vars_of_mule_charset): Specify
1508         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1509         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1510
1511 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * mule-charset.c (decode_defined_char): New function; search
1514         mother.
1515         (decode_builtin_char): Don't search mother if
1516         XCHARSET_MAX_CODE(charset) == 0.
1517         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1518         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1519         (Fdecode_char): Use `decode_defined_char' instead of
1520         `DECODE_DEFINED_CHAR'.
1521         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1522         mother of `Vcharset_ucs_jis'.
1523
1524         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1525         instead of `DECODE_DEFINED_CHAR'.
1526
1527         * char-ucs.h (decode_defined_char): Renamed from
1528         `DECODE_DEFINED_CHAR'; changed to normal function.
1529         (DECODE_CHAR): Use `decode_defined_char' instead of
1530         `DECODE_DEFINED_CHAR'.
1531
1532         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1533
1534 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535
1536         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1537
1538         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1539         variable.
1540         (Quse_entity_reference): New variable.
1541         (Qd): New variable.
1542         (Qx): New variable.
1543         (QX): New variable.
1544         (coding_system_description): Add description for
1545         `ccs_priority_list'.
1546         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1547         (allocate_coding_system): Initialize `ccs_priority_list' in
1548         UTF-2000.
1549         (Fmake_coding_system): Add description about
1550         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1551         (codesys).
1552         (Fcoding_system_property): Accept `disable-composition' and
1553         `use-entity-reference' in UTF-2000.
1554         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1555         in UTF-2000.
1556         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1557         (decode_coding_utf8): Decode entity-reference if
1558         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1559         (char_encode_utf8): Encode non-Unicode characters as
1560         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1561         (str->codesys).
1562         (syms_of_file_coding): Add new symbols `use-entity-reference',
1563         `d', `x', `X'.
1564         (vars_of_file_coding): Add new variable
1565         `coded-charset-entity-reference-alist'.
1566         (complex_vars_of_file_coding): Declare `disable-composition' and
1567         `use-entity-reference' to be coding-system-properties in UTF-2000.
1568
1569         * file-coding.h (struct Lisp_Coding_System): Add new member
1570         `use_entity_reference' and `ccs_priority_list'.
1571         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1572         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1573         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1574
1575 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1576
1577         * chartab.c (save_uint8_byte_table): Don't clear the table.
1578         (save_uint16_byte_table): Likewise.
1579         (save_byte_table): Likewise.
1580         (Fmount_char_attribute_table): New function.
1581         (syms_of_chartab): Add new builtin function
1582         `mount-char-attribute-table'.
1583
1584 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1587         "w+" mode.
1588         (load_char_decoding_entry_maybe): Open database as read-only mode.
1589
1590         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1591         open database as "w+" mode.
1592         (load_char_attribute_maybe): Open database as read-only mode.
1593         (Fload_char_attribute_table): Likewise.
1594
1595 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1598         (char_table_description): Delete member `db_file'.
1599         (Fmake_char_table): Don't refer `ct->db_file'.
1600         (Fcopy_char_table): Likewise.
1601         (Fsave_char_attribute_table): Likewise.
1602         (Fclose_char_attribute_table): Likewise.
1603         (Freset_char_attribute_table): Likewise.
1604         (load_char_attribute_maybe): Likewise.
1605         (Fload_char_attribute_table): Likewise.
1606
1607         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1608
1609 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1612         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1613         `ct->db' is living.
1614         (load_char_attribute_maybe): Likewise.
1615         (Fload_char_attribute_table): Likewise.
1616
1617 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1618
1619         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1620         `ct->db_file' unconditionally.
1621
1622 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1625         UTF-2000.
1626         (char_table_description): Add description for `db_file' and `db'
1627         in UTF-2000.
1628         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1629         UTF-2000.
1630         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1631         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1632         (Fclose_char_attribute_table): New function.
1633         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1634         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1635         and `cit->db'.
1636         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1637         (syms_of_chartab): Add new builtin function
1638         `Fclose_char_attribute_table'.
1639
1640 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1643         `db' in UTF-2000.
1644         (load_char_attribute_maybe): Change interface.
1645         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1646
1647 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1648
1649         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1650
1651 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1654         instead of `DECODE_CHAR' for mother; don't use special code for
1655         chinese-big5 to use code space of chinese-big5-1 and
1656         chinese-big5-2.
1657         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1658         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1659
1660         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1661         (MAX_CHAR_BIG5_CDP): Revival.
1662
1663 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1664
1665         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1666         the XLFD registry-encoding name of `chinese-big5'.
1667
1668 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1669
1670         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1671         (Qchinese_big5_cdp): Deleted.
1672         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1673         (complex_vars_of_mule_charset): Delete coded-charset
1674         `chinese-big5-cdp'.
1675
1676         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1677         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1678         `CHARSET_ID_OFFSET - n' for private CCS.
1679         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1680         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1681         of `MIN_LEADING_BYTE'.
1682         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1683         `(CHARSET_ID_OFFSET - 97)'.
1684         (MIN_CHAR_BIG5_CDP): Deleted.
1685         (MAX_CHAR_BIG5_CDP): Deleted.
1686
1687 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1688
1689         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1690
1691 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1692
1693         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1694         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1695         chartab.c].
1696
1697         * chartab.c (Vutf_2000_version): Moved to mule.c.
1698         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1699
1700 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1703         when HAVE_CHISE_CLIENT is not defined.
1704
1705         * mule.c (vars_of_mule): Provide feature `chise' when
1706         HAVE_CHISE_CLIENT is defined.
1707
1708 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1709
1710         * config.h.in (UTF2000): Add comment.
1711         (HAVE_CHISE_CLIENT): New macro.
1712
1713 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1714
1715         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1716         CONSP.
1717         (Fput_char_attribute): Likewise.
1718         (char_attribute_system_db_file): Encode file-name of attribute.
1719         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1720         the initial value.
1721
1722 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1723
1724         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1725         (Fsave_charset_mapping_table): Use
1726         `char_attribute_system_db_file'.
1727         (load_char_decoding_entry_maybe): Likewise.
1728
1729         * chartab.h (Qsystem_char_id): New external variable.
1730         (char_attribute_system_db_file): New prototype.
1731
1732         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1733         (char_attribute_system_db_file): New function.
1734         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1735         (Freset_char_attribute_table): Likewise.
1736         (load_char_attribute_maybe): Likewise.
1737         (Fload_char_attribute_table): Likewise.
1738         (syms_of_chartab): Add new symbol `system-char-id'.
1739
1740 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1741
1742         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1743         `XCHARSET_GRAPHIC(ccs)'.
1744
1745 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746
1747         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1748
1749 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1750
1751         * chartab.c (Q_ucs_variants): New variable.
1752         (syms_of_chartab): Add new symbol `->ucs-variants'.
1753         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1754         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1755         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1756
1757         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1758
1759         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1760         `HAVE_DATABASE' is defined.
1761         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1762         `HAVE_DATABASE' is defined.
1763
1764 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1765
1766         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1767         attribute-table.
1768         (Freset_char_attribute_table): New function.
1769         (syms_of_chartab): Add new builtin function
1770         `reset-char-attribute-table'.
1771
1772 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1773
1774         * chartab.c (load_char_attribute_maybe): Don't make directories.
1775
1776 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1777
1778         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1779
1780         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1781         for decoding-table.
1782
1783 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1784
1785         * mule-charset.c (Fsave_charset_mapping_table): Use
1786         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1787
1788         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1789         instead of `XCHARSET_CHARS'.
1790
1791 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1792
1793         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1794         (XCHARSET_BYTE_SIZE): Likewise.
1795
1796         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1797         mule-charset.c].
1798         (XCHARSET_BYTE_SIZE): Likewise.
1799
1800 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1801
1802         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1803         data-directory to store database.
1804         (Fsave_char_attribute_table): Likewise.
1805         (load_char_attribute_maybe): Likewise.
1806         (Fload_char_attribute_table): Likewise.
1807
1808 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1809
1810         * mule-charset.c (Fsave_charset_mapping_table): New function.
1811         (syms_of_mule_charset): Add new builtin function
1812         `save-charset-mapping-table'.
1813
1814 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1817         (get_ccs_octet_table): New inline function.
1818         (put_ccs_octet_table): Likewise.
1819         (decoding_table_put_char): Use `get_ccs_octet_table' and
1820         `put_ccs_octet_table'.
1821         (decoding_table_remove_char): Use `decoding_table_put_char'.
1822         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1823
1824         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1825         into encoding_table.
1826         (make_charset): Use Qunbound instead Qnil as initial value of
1827         decoding_table.
1828
1829 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1830
1831         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1832         element is Qunloaded.
1833         (map_over_uint16_byte_table): Likewise.
1834         (map_over_byte_table): Likewise.
1835         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1836         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1837         database support, load encoding-table of the specified
1838         coded-charset if it is not loaded yet.
1839         (save_uint8_byte_table): New function of UTF-2000 with external
1840         database support.
1841         (save_uint16_byte_table): Likewise.
1842         (save_byte_table): Likewise.
1843         (Fput_char_attribute): Don't store value into external database
1844         even if the external database feature is supported in UTF-2000;
1845         set `attribute' as name of char-table if the external database
1846         feature is supported.
1847         (Fsave_char_attribute_table): New function in UTF-2000.
1848         (syms_of_chartab): Add new builtin function
1849         `save-char-attribute-table' in UTF-2000.
1850
1851 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1852
1853         * chartab.c (char_attribute_table_to_put): New variable in
1854         UTF-2000.
1855         (Qput_char_table_map_function): Likewise.
1856         (value_to_put): Likewise.
1857         (Fput_char_table_map_function): New function in UTF-2000.
1858         (put_char_table): Use `Fmap_char_attribute' for
1859         CHARTAB_RANGE_CHARSET in UTF-2000.
1860         (Fput_char_attribute): Store symbol instead of string in
1861         `XCHAR_TABLE_NAME (table)'.
1862         (load_char_attribute_maybe): Likewise.
1863         (syms_of_chartab): Add new symbol/function
1864         `put-char-table-map-function'.
1865
1866 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1867
1868         * database.h: Add new EXFUN for `Fmap_database'.
1869
1870         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1871         (syms_of_database): Likewise.
1872
1873         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1874         UTF-2000.
1875         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1876         (XCHAR_TABLE_UNLOADED): Likewise.
1877
1878         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1879         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1880         HAVE_DATABASE is defined.
1881         (char_attribute_table_to_load): New variable of UTF-2000 with
1882         external database support.
1883         (Qload_char_attribute_table_map_function): Likewise.
1884         (Fload_char_attribute_table_map_function): New function of
1885         UTF-2000 with external database support.
1886         (Fload_char_attribute_table): New function of UTF-2000.
1887         (Fmap_char_attribute): Call Fload_char_attribute_table if
1888         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1889         (syms_of_chartab): Add new symbol and function
1890         `load-char-attribute-table-map-function' in UTF-2000 with external
1891         database support; add new function `load-char-attribute-table' in
1892         UTF-2000.
1893
1894 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1895
1896         * chartab.h (load_char_attribute_maybe): New prototype for
1897         UTF-2000 with DATABASE support.
1898         (get_char_id_table): Use `load_char_attribute_maybe' if
1899         HAVE_DATABASE is defined.
1900
1901         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1902         with DATABASE support.
1903
1904 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * chartab.c (Fput_char_attribute): Use S-expression as key of
1907         external database.
1908
1909         * chartab.h (get_char_id_table): Use S-expression as key of
1910         external database.
1911
1912 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1915         if an element is not loaded, load the corresponding attributes
1916         from an external database.
1917         (map_over_uint16_byte_table): Likewise.
1918         (map_over_byte_table): Likewise.
1919         (map_char_table): Modify for `map_over_uint8_byte_table',
1920         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1921         element is not loaded, load the corresponding attributes from an
1922         external database.
1923         (Fput_char_attribute): Change initial values to Qunloaded.
1924
1925         * chartab.h (get_char_id_table): If a character attribute is not
1926         loaded and the attribute value is not found in an external
1927         database, store Qunbound as the attribute value.
1928
1929 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1930
1931         * chartab.c (BT_UINT8_unloaded): New macro.
1932         (UINT8_VALUE_P): Accept Qunloaded.
1933         (UINT8_ENCODE): Likewise.
1934         (UINT8_DECODE): Likewise.
1935         (BT_UINT16_unloaded): New macro.
1936         (UINT16_VALUE_P): Accept Qunloaded.
1937         (UINT16_ENCODE): Likewise.
1938         (UINT16_DECODE): Likewise.
1939         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1940         BT_UINT16_unloaded.
1941         (mark_char_table): Mark `ct->name' in UTF-2000.
1942         (char_table_description): Add `name' in UTF-2000.
1943         (Fmake_char_table): Initialize `ct->name'.
1944         (Fcopy_char_table): Copy `ct->name'.
1945         (Fput_char_attribute): Store value into an external database if
1946         HAVE_DATABASE is defined.
1947
1948         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1949         UTF-2000.
1950         (CHAR_TABLE_NAME): New macro in UTF-2000.
1951         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1952         (get_char_id_table): Try to read an external database if Qunloaded
1953         is stored in a table.
1954
1955         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1956         Qunloaded.
1957
1958 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1959
1960         * database.h: Add EXFUN definitions for Fopen_database,
1961         Fput_database, Fget_database and Fclose_database.
1962
1963         * data.c (Qunloaded): New variable in UTF-2000.
1964
1965         * lisp.h (Qunloaded): New variable in UTF-2000.
1966
1967 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * mule-charset.c (put_char_ccs_code_point): Modify for
1970         `decoding_table_remove_char' and `decoding_table_put_char'.
1971         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1972
1973         * char-ucs.h (decoding_table_remove_char): Change arguments to
1974         hide decoding_table vector.
1975         (decoding_table_put_char): Likewise.
1976
1977 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * mule-charset.c (decoding_table_remove_char): Moved to
1980         char-ucs.h.
1981         (decoding_table_put_char): Likewise.
1982
1983         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1984         from mule-charset.c].
1985         (decoding_table_remove_char): New inline function [moved from
1986         mule-charset.c].
1987         (decoding_table_put_char): Likewise.
1988
1989 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1990
1991         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1992         extension.
1993
1994 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1995
1996         * mule-charset.c (decode_builtin_char): Support mother charsets.
1997
1998 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1999
2000         * mule-charset.c (Q94x94x60): New variable.
2001         (charset_code_point): Support conversion `94x94x60'.
2002         (Fmake_charset): Likewise.
2003         (syms_of_mule_charset): Add new symbol `94x94x60'.
2004
2005         * char-ucs.h (CONVERSION_94x94x60): New macro.
2006
2007 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2008
2009         * mule-charset.c (charset_code_point): Unify code about
2010         `code-offset'.
2011
2012 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2013
2014         * mule-charset.c (charset_code_point): Merge code about builtin
2015         characters into code about mother charsets; don't use
2016         `range_charset_code_point'.
2017         (range_charset_code_point): Deleted.
2018
2019 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * mule-charset.c (Qcode_offset): New variable.
2022         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2023         `max-code'; accept new property `code-offset'.
2024         (syms_of_mule_charset): Add new symbol `code-offset'.
2025
2026 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * mule-charset.c (range_charset_code_point): Fixed.
2029
2030 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031
2032         * mule-charset.c (decode_builtin_char): Change semantics of
2033         code-offset of coded-charset.
2034         (charset_code_point): Likewise.
2035         (range_charset_code_point): Likewise.
2036         (complex_vars_of_mule_charset): Modify for the change.
2037
2038 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039
2040         * mule-charset.c (Fencode_char): Reverse arguments.
2041
2042         * mule-charset.c (charset_code_point): Fixed.
2043
2044 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2045
2046         * mule-charset.c (Vcharset_mojikyo): Deleted.
2047         (Vcharset_mojikyo_2022_1): Deleted.
2048         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2049         (Qmin_code): New variable in UTF-2000.
2050         (Qmax_code): Likewise.
2051         (Qmother): Likewise.
2052         (Qconversion): Likewise.
2053         (Q94x60): Likewise.
2054         (Qmojikyo): Deleted.
2055         (Qmojikyo_2022_1): Deleted.
2056         (Qmojikyo_pj_{1..22}): Deleted.
2057         (mark_charset): Mark `cs->mother'.
2058         (charset_description): Add description for `mother'.
2059         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2060         new arguments `mother' and `conversion'; use
2061         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2062         (charset_code_point): Moved from char-ucs.h; support `mother'
2063         charset feature.
2064         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2065         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2066         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2067         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2068         allow 2 as the value of `graphic' in UTF-2000; add new properties
2069         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2070         require `final' in UTF-2000; modify for `make_charset'.
2071         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2072         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2073         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2074         (Fencode_char): New function.
2075         (syms_of_mule_charset): Add new builtin function `encode-char' in
2076         UTF-2000; add new symbols `min-code', `max-code', `mother',
2077         `conversion' and `94x60'; delete symbols `mojikyo',
2078         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2079         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2080         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2081         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2082
2083         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2084         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2085
2086         * char-ucs.h (Vcharset_mojikyo): Deleted.
2087         (Vcharset_mojikyo_2022_1): Deleted.
2088         (LEADING_BYTE_MOJIKYO): Deleted.
2089         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2090         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2091         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2092         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2093         add new member `mother'; add new member `conversion'.
2094         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2095         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2096         (CHARSET_MOTHER): New macro.
2097         (CHARSET_CONVERSION): New macro.
2098         (CONVERSION_IDENTICAL): New macro.
2099         (CONVERSION_94x60): New macro.
2100         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2101         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2102         (XCHARSET_MOTHER): New macro.
2103         (XCHARSET_CONVERSION): New macro.
2104         (MIN_CHAR_MOJIKYO): Deleted.
2105         (MAX_CHAR_MOJIKYO): Deleted.
2106         (DECODE_MOJIKYO_2022): Deleted.
2107         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2108         (charset_code_point): Changed to non-inline function.
2109         (encode_char_1): Use `charset_code_point'.
2110         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2111
2112 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113
2114         * lread.c (read_compiled_function): Fix prototype.
2115         (read_vector): Likewise.
2116
2117 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * lrecord.h (struct lrecord_header): Delete `older'.
2120         (set_lheader_implementation): Delete code for `older'.
2121         (set_lheader_older_implementation): Deleted.
2122         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2123         (OLDER_RECORD_P): Deleted.
2124         (OLDER_RECORD_HEADER_P): Deleted.
2125         (alloc_older_lcrecord): Deleted.
2126         (alloc_older_lcrecord_type): Deleted.
2127
2128         * alloc.c (all_older_lcrecords): Deleted.
2129         (alloc_older_lcrecord): Deleted.
2130         (disksave_object_finalization_1): Delete code for older objects.
2131         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2132         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2133
2134 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135
2136         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2137         instead of `make_older_vector'.
2138         (put_char_ccs_code_point): Likewise.
2139         (mark_charset): Mark `cs->decoding_table'.
2140         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2141
2142         * lisp.h (make_older_vector): Deleted.
2143         (make_vector_newer): Deleted.
2144
2145         * config.h.in (HAVE_GGC): Deleted.
2146
2147         * alloc.c (make_older_vector): Deleted.
2148         (make_vector_newer_1): Deleted.
2149         (make_vector_newer): Deleted.
2150
2151 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2154         (Qideograph_daikanwa_2): New variable.
2155         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2156         (complex_vars_of_mule_charset): Add new coded-charset
2157         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2158         `LEADING_BYTE_DAIKANWA'.
2159
2160         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2161         (LEADING_BYTE_DAIKANWA_1): New macro.
2162         (LEADING_BYTE_DAIKANWA_2): New macro.
2163         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2164
2165 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2166
2167         * mule-charset.c (complex_vars_of_mule_charset): Change
2168         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2169         the second revised version.
2170
2171 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2172
2173         * mule-charset.c (Vcharset_ucs_smp): New variable.
2174         (Vcharset_ucs_sip): New variable.
2175         (Qucs_smp): New variable.
2176         (Qucs_sip): New variable.
2177         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2178         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2179         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2180         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2181         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2182         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2183
2184         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2185         (LEADING_BYTE_UCS_SIP): New macro.
2186         (MIN_CHAR_SMP): New macro.
2187         (MAX_CHAR_SMP): New macro.
2188         (MIN_CHAR_SIP): New macro.
2189         (MAX_CHAR_SIP): New macro.
2190
2191 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2192
2193         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2194         utf-2000.
2195
2196 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2199         value; don't store value into `encoding_table' of `Lisp_Charset'.
2200         (mark_charset): `encoding_table' was deleted.
2201         (charset_description): Likewise.
2202         (make_charset): Likewise.
2203         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2204         `put_char_ccs_code_point'.
2205
2206         * chartab.h (Fput_char_attribute): New EXFUN.
2207
2208         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2209         is unified with normal symbol space.
2210         (Fget_char_attribute): Likewise.
2211         (Fput_char_attribute): Likewise; behavior of
2212         `put_char_ccs_code_point' is changed.
2213
2214         * char-ucs.h: Include "elhash.h".
2215         (Vchar_attribute_hash_table): New external variable.
2216         (struct Lisp_Charset): Delete `encoding_table'.
2217         (CHARSET_ENCODING_TABLE): New implementation; refer
2218         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2219         `Lisp_Charset'.
2220
2221 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2222
2223         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2224         (cs) == 0.
2225
2226 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227
2228         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2229         `chinese-big5'.
2230
2231 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * chartab.c (uint8_byte_table_description): New constant.
2234         (uint8-byte-table): Use `uint8_byte_table_description'.
2235         (uint16_byte_table_description): New constant.
2236         (uint16-byte-table): Use `uint16_byte_table_description'.
2237
2238 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2239
2240         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2241         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2242
2243 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2244
2245         * mule-charset.c (Vcharset_ucs_ks): New variable.
2246         (Qucs_ks): New variable.
2247         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2248         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2249
2250         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2251
2252 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2253
2254         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2255         (Fdecode_char): Likewise.
2256
2257         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2258         chartab.h.
2259         (Fdefine_char): Modify for Fdecode_char.
2260         (Ffind_char): Likewise.
2261
2262         * mule-charset.c (Fdecode_char): Add new optional argument
2263         `defined-only'.
2264         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2265
2266 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2267
2268         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2269         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2270         (allocate_coding_system): Initialize initial-charsets of
2271         CODESYS_BIG5 in XEmacs UTF-2000.
2272         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2273         CODESYS_BIG5 in XEmacs UTF-2000.
2274         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2275         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2276
2277         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2278         variables.
2279         (Qideograph_hanziku_{1 .. 12}): Likewise.
2280         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2281         .. 12}'.
2282         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2283         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2284         `ideograph-hanziku-{1 .. 12}'.
2285
2286         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2287         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2288         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2289         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2290         (DECODE_DEFINED_CHAR): New inline function.
2291         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2292
2293 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294
2295         * mule-charset.c (Vcharset_china3_jef): Renamed from
2296         `Vcharset_japanese_jef_china3'.
2297         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2298         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2299         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2300         (syms_of_mule_charset): Rename `china3-jef' from
2301         `japanese-jef-china3'.
2302         (complex_vars_of_mule_charset): Likewise; rename
2303         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2304
2305         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2306         `LEADING_BYTE_JEF_CHINA3'.
2307         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2308         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2309
2310 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (encode_builtin_char_1): Comment out special code
2313         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2314
2315         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2316         (MAX_CHAR_MOJIKYO_0): Comment out.
2317         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2318         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2319         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2320         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2321
2322 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2323
2324         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2325         (Qideograph_cbeta): New variable.
2326         (encode_builtin_char_1): Comment out special code for
2327         coded-charset `mojikyo' and `japanese-jef-china3'.
2328         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2329         (complex_vars_of_mule_charset): Add new coded-charset
2330         `ideograph-cbeta'.
2331
2332         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2333         (MIN_CHAR_CBETA): New macro.
2334         (MAX_CHAR_CBETA): New macro.
2335
2336 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2337
2338         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2339         (LEADING_BYTE_JEF_CHINA3): New macro.
2340         (MIN_CHAR_JEF_CHINA3): New macro.
2341         (MAX_CHAR_JEF_CHINA3): Likewise.
2342         (DECODE_CHAR): Fixed.
2343
2344 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2345
2346         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2347         (Qjapanese_jef_china3): New variable.
2348         (encode_builtin_char_1): Support `japanese-jef-china3'.
2349         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2350         (complex_vars_of_mule_charset): Add new coded-charset
2351         `japanese-jef-china3'.
2352
2353 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354
2355         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2356         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2357         94^4, 96^3, 96^4, 128^n and 256^n set.
2358         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2359         (map_char_table): Likewise.
2360
2361 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2364         UTF-2000.
2365
2366 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * chartab.h (get_char_id_table): New inline function.
2369
2370         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2371         function.
2372
2373 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * chartab.h (decode_char_table_range): New prototype in XEmacs
2376         UTF-2000.
2377         (put_char_id_table): New inline function in XEmacs UTF-2000.
2378
2379         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2380         function.
2381         (decode_char_table_range): Delete static declaration in XEmacs
2382         UTF-2000.
2383
2384 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * chartab.c (put_char_id_table): Use `put_char_table'.
2387
2388 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2389
2390         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2391         (map_over_uint16_byte_table): Likewise.
2392         (map_over_byte_table): Likewise.
2393         (map_char_table): Modify for `map_over_uint8_byte_table',
2394         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2395         UTF-2000.
2396
2397 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * chartab.c (struct map_char_table_for_charset_arg): New
2400         structure.
2401         (map_char_table_for_charset_fun): New function.
2402         (map_char_table): Use `map_char_table' for encoding_table of
2403         `range->charset'.
2404
2405 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2406
2407         * chartab.c (map_char_table): Check a character is found in
2408         range->charset instead of non default value is defined in
2409         char-table when range is CHARTAB_RANGE_ROW.
2410
2411 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2412
2413         * chartab.c (map_char_id_table): Deleted.
2414         (Fmap_char_attribute): Use `map_char_table' instead of
2415         `map_char_id_table'.
2416
2417 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2420         UTF-2000.
2421         (update_syntax_table): Deleted in XEmacs UTF-2000.
2422
2423         * syntax.c (find_defun_start): Use `syntax_table' instead of
2424         `mirror_syntax_table' in XEmacs UTF-2000.
2425         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2426         UTF-2000.
2427         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2428         XEmacs UTF-2000.
2429         (Fmatching_paren): Likewise.
2430         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2431         in XEmacs UTF-2000.
2432         (find_start_of_comment): Likewise.
2433         (find_end_of_comment): Likewise.
2434         (Fforward_comment): Likewise.
2435         (scan_lists): Likewise.
2436         (char_quoted): Likewise.
2437         (Fbackward_prefix_chars): Likewise.
2438         (scan_sexps_forward): Likewise.
2439         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2440         (update_syntax_table): Likewise.
2441
2442         * search.c (skip_chars): Use `syntax_table' instead of
2443         `mirror_syntax_table' in XEmacs UTF-2000.
2444         (wordify): Likewise.
2445         (Freplace_match): Likewise.
2446
2447         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2448         `mirror_syntax_table' in XEmacs UTF-2000.
2449         (WORDCHAR_P_UNSAFE): Likewise.
2450         (re_match_2_internal): Likewise.
2451
2452         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2453         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2454
2455         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2456         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2457
2458         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2459         XEmacs UTF-2000.
2460
2461         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2462         UTF-2000.
2463         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2464         (char_table_description): Delete `mirror_table' in XEmacs
2465         UTF-2000.
2466         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2467         UTF-2000.
2468         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2469         (Fcopy_char_table): Likewise.
2470         (put_char_table): Don't call `update_syntax_table' in XEmacs
2471         UTF-2000.
2472
2473         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2474         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2475         (casify_region_internal): Likewise.
2476
2477         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2478
2479         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2480         `mirror_syntax_table' in XEmacs UTF-2000.
2481
2482         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2483         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2484         (Fexpand_abbrev): Likewise.
2485
2486 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2487
2488         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2489
2490 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491
2492         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2493         (map_over_uint16_byte_table): Likewise.
2494         (map_over_byte_table): Likewise.
2495         (get_char_id_table): Refer `cit->default_value'.
2496         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2497         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2498         of character-id ranges.
2499         (mark_char_table): Mark `ct->default_value'.
2500         (char_table_description): Add `default_value'.
2501         (fill_char_table): Use `default_value'.
2502         (decode_char_table_range): Decode `nil' as
2503         `CHARTAB_RANGE_DEFAULT'.
2504         (get_char_id_table): Refer `cit->default_value'.
2505         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2506         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2507         temporary hack; check value of char-table is bound or not.
2508         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2509
2510         * chartab.h (struct Lisp_Char_Table): Add new member
2511         `default_value' in XEmacs UTF-2000.
2512         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2513         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2514         UTF-2000.
2515
2516 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2517
2518         * chartab.h (Lisp_Char_ID_Table): Deleted.
2519
2520         * chartab.c (char_table_description): Fix typo.
2521         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2522         `Lisp_Char_ID_Table'.
2523
2524 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2527         `CHAR_ID_TABLE_P'.
2528
2529         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2530         `CHAR_ID_TABLE_P'.
2531
2532         * chartab.h (XCHAR_ID_TABLE): Deleted.
2533         (XSETCHAR_ID_TABLE): Deleted.
2534         (CHAR_ID_TABLE_P): Deleted.
2535
2536         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2537         `CHAR_ID_TABLE_P'.
2538         (Fget_composite_char): Likewise.
2539         (put_char_table): Likewise.
2540         (add_char_attribute_alist_mapper): Fixed.
2541         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2542         `CHAR_ID_TABLE_P'.
2543         (Fget_char_attribute): Likewise.
2544         (Fget_char_attribute): Likewise.
2545         (Fmap_char_attribute): Likewise.
2546
2547         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2548         `CHAR_ID_TABLE_P'.
2549         (encode_char_1): Likewise.
2550
2551 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2554         `XCHAR_ID_TABLE'.
2555
2556         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2557         instead of `XCHAR_ID_TABLE'.
2558         (remove_char_ccs): Likewise.
2559
2560         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2561         `XCHAR_ID_TABLE'.
2562         (Fget_composite_char): Likewise.
2563         (Fchar_variants): Likewise.
2564         (put_char_table): Likewise.
2565         (add_char_attribute_alist_mapper): Likewise.
2566         (Fchar_attribute_alist): Likewise.
2567         (Fget_char_attribute): Likewise.
2568         (Fput_char_attribute): Likewise.
2569         (Fmap_char_attribute): Likewise.
2570         (Fmap_char_attribute): Likewise.
2571
2572         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2573         `XCHAR_ID_TABLE'.
2574         (encode_char_1): Likewise.
2575
2576 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2579         `Lisp_Char_ID_Table'.
2580         (mark_char_id_table): Deleted.
2581         (print_char_id_table): Likewise.
2582         (char_id_table_equal): Likewise.
2583         (char_id_table_hash): Likewise.
2584         (char_id_table_description): Likewise.
2585         (char_id_table): Likewise.
2586         (make_char_id_table): Use `Fmake_char_table' and
2587         `fill_char_table'.
2588         (get_char_id_table): Use `Lisp_Char_Table' instead of
2589         `Lisp_Char_ID_Table'.
2590         (put_char_id_table): Likewise.
2591         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2592         `XCHAR_ID_TABLE'.
2593         (Fremove_char_attribute): Likewise.
2594         (syms_of_chartab): Don't define type `char-id-table'.
2595
2596         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2597         (char_id_table): Likewise.
2598         (GC_CHAR_ID_TABLE_P): Likewise.
2599         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2600         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2601         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2602         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2603         (get_char_id_table): Use `Lisp_Char_Table' instead of
2604         `Lisp_Char_ID_Table'.
2605         (put_char_id_table_0): Likewise.
2606         (put_char_id_table): Likewise.
2607
2608 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2609
2610         * chartab.h: Lisp_Byte_Table related codes are moved from
2611         chartab.h.
2612
2613         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2614
2615 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2616
2617         * chartab.h: Don't include "chartab.h".
2618         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2619         (Lisp_Char_ID_Table): Likewise.
2620         (char_id_table): Likewise.
2621         (XCHAR_ID_TABLE): Likewise.
2622         (XSETCHAR_ID_TABLE): Likewise.
2623         (CHAR_ID_TABLE_P): Likewise.
2624         (GC_CHAR_ID_TABLE_P): Likewise.
2625         (get_char_id_table): Likewise.
2626
2627         * char-ucs.h: Include "chartab.h".
2628         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2629         (Lisp_Char_ID_Table): Likewise.
2630         (char_id_table): Likewise.
2631         (XCHAR_ID_TABLE): Likewise.
2632         (XSETCHAR_ID_TABLE): Likewise.
2633         (CHAR_ID_TABLE_P): Likewise.
2634         (GC_CHAR_ID_TABLE_P): Likewise.
2635         (get_char_id_table): Likewise.
2636
2637 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2638
2639         * chartab.c (copy_uint8_byte_table): New function.
2640         (copy_uint16_byte_table): New function.
2641         (copy_byte_table): New function.
2642         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2643         characters to call.
2644         (map_over_uint16_byte_table): Likewise.
2645         (map_over_byte_table): Likewise.
2646         (get_byte_table): Move prototype to chartab.h.
2647         (put_byte_table): Likewise.
2648         (put_char_id_table_0): Moved to chartab.h.
2649         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2650         (char_table_entry_equal): Likewise.
2651         (char_table_entry_hash): Likewise.
2652         (char_table_entry_description): Likewise.
2653         (char_table_entry): Likewise.
2654         (make_char_table_entry): Likewise.
2655         (copy_char_table_entry): Likewise.
2656         (get_non_ascii_char_table_value): Likewise.
2657         (map_over_charset_ascii): Likewise.
2658         (map_over_charset_control_1): Likewise.
2659         (map_over_charset_row): Likewise.
2660         (map_over_other_charset): Likewise.
2661         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2662         (print_char_table): Likewise.
2663         (char_table_equal): Likewise.
2664         (char_table_hash): Likewise.
2665         (char_table_description): Likewise.
2666         (fill_char_table): Likewise.
2667         (Fcopy_char_table): Likewise.
2668         (get_char_table): Likewise.
2669         (Fget_range_char_table): Likewise.
2670         (put_char_table): Likewise.
2671         (map_char_table): Likewise.
2672         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2673         UTF-2000.
2674
2675 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2676
2677         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2678         `Vauto_fill_chars' in XEmacs UTF-2000.
2679
2680         * chartab.h (get_byte_table): New prototype [moved from
2681         chartab.c].
2682         (put_byte_table): Likewise [moved from chartab.c].
2683         (put_char_id_table_0): New inline function [moved from chartab.c].
2684         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2685         (Lisp_Char_Table_Entry): Likewise.
2686         (char_table_entry): Likewise.
2687         (XCHAR_TABLE_ENTRY): Likewise.
2688         (XSETCHAR_TABLE_ENTRY): Likewise.
2689         (CHAR_TABLE_ENTRYP): Likewise.
2690         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2691         (NUM_ASCII_CHARS): Likewise.
2692         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2693         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2694
2695 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2696
2697         * chartab.c (get_char_id_table): Change interface.
2698         (put_char_id_table_0): New function.
2699         (put_char_id_table): Change interface; new implementation.
2700         (Fget_composite_char): Modify for interface change of
2701         `get_char_id_table'.
2702         (Fchar_variants): Likewise.
2703         (add_char_attribute_alist_mapper): Likewise.
2704         (Fchar_attribute_alist): Likewise.
2705         (Fget_char_attribute): Likewise.
2706         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2707         as same as character as the first argument like `put-char-table';
2708         modify for interface change of `put_char_id_table'.
2709         (Fremove_char_attribute): Modify for interface change of
2710         `put_char_id_table'.
2711
2712 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * text-coding.c: Sync up with XEmacs 21.2.41.
2715         (COMPOSE_ADD_CHAR): Modify for interface change of
2716         `get_char_id_table'.
2717
2718         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2719         change of `put_char_id_table'.
2720         (remove_char_ccs): Likewise.
2721
2722         * chartab.h (put_char_id_table): Change interface.
2723
2724         * char-ucs.h (get_char_id_table): Change interface.
2725         (charset_code_point): Modify for interface change of
2726         `get_char_id_table'.
2727         (encode_char_1): Likewise.
2728
2729 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730
2731         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2732         argument `ccs'.
2733         (map_over_uint16_byte_table): Likewise.
2734         (map_over_byte_table): Likewise.
2735         (map_char_id_table): Add new argument `range' like
2736         `map_char_table'.
2737         (Fmap_char_attribute): Add new argument `range' like
2738         `Fmap_char_table'.
2739
2740 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2741
2742         * chartab.c (map_over_uint8_byte_table): Change interface of
2743         mapping function to use struct chartab_range instead of Emchar.
2744         (map_over_uint16_byte_table): Likewise.
2745         (map_over_byte_table): Likewise.
2746         (map_char_id_table): Likewise.
2747         (struct slow_map_char_id_table_arg): Deleted.
2748         (slow_map_char_id_table_fun): Deleted.
2749         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2750         function `slow_map_char_table_fun' instead of struct
2751         `slow_map_char_id_table_arg' and function
2752         `slow_map_char_id_table_fun'.
2753
2754 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2755
2756         * mule-charset.c: Move char-it-table related codes to chartab.c.
2757         (Vutf_2000_version): Moved to chartab.c.
2758         (Fdefine_char): Likewise.
2759         (Ffind_char): Likewise.
2760         (syms_of_mule_charset): Move types `uint8-byte-table',
2761         `uint16-byte-table', `byte-table' and `char-id-table' to
2762         chartab.c; move functions `char_attribute_list,
2763         `find_char_attribute_table, `char_attribute_alist,
2764         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2765         `map_char_attribute, `define_char, `find_char, `char_variants and
2766         `get_composite_char to chartab.c; move symbols `=>ucs',
2767         `->decomposition', `compat', `isolated', `initial', `medial',
2768         `final', `vertical', `noBreak', `fraction', `super', `sub',
2769         `circle', `square', `wide', `narrow', `small' and `font' to
2770         chartab.c.
2771         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2772         setting codes for `Vcharacter_composition_table' and
2773         `Vcharacter_variant_table' to chartab.c.
2774         (complex_vars_of_mule_charset): Move setting code for
2775         `Vchar_attribute_hash_table' to chartab.c.
2776
2777         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2778         (make_char_id_table): New prototype.
2779         (put_char_id_table): Likewise.
2780         (Fget_char_attribute): Likewise.
2781
2782         * chartab.c: Move char-id-table related code from mule-charset.c.
2783         (Vutf_2000_version): Moved from mule-charset.c.
2784
2785         * char-ucs.h (Qucs): New external variable.
2786         (put_char_ccs_code_point): New prototype.
2787         (remove_char_ccs): Likewise.
2788
2789 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2790
2791         * mule-charset.c (Vcharset_ucs_jis): New variable.
2792         (Qucs_jis): Likewise.
2793         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2794         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2795
2796         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2797
2798 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2799
2800         * mule-charset.c (map_over_uint8_byte_table): New function.
2801         (map_over_uint16_byte_table): Likewise.
2802         (map_over_byte_table): Likewise.
2803         (map_char_id_table): Likewise.
2804         (slow_map_char_id_table_fun): Likewise.
2805         (Fmap_char_attribute): Likewise.
2806         (syms_of_mule_charset): Add new function `map-char-attribute'.
2807
2808 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2811         (syms_of_mule_charset): Add new function `find-char'.
2812
2813 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2816         XEmacs UTF-2000.
2817         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2818         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2819         XEmacs UTF-2000.
2820         (complex_vars_of_mule_charset): Add new coded-charset
2821         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2822         `ideograph-gt-pj-*'.
2823
2824         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2825
2826 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * mule-charset.c (encode_builtin_char_1): Purge codes about
2829         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2830         {MIN|MAX}_CHAR_HEBREW.
2831         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2832         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2833
2834         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2835         (MAX_CHAR_GREEK): Purged.
2836         (MIN_CHAR_CYRILLIC): Purged.
2837         (MAX_CHAR_CYRILLIC): Purged.
2838         (MIN_CHAR_HEBREW): Commented out.
2839         (MAX_CHAR_HEBREW): Likewise.
2840
2841 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2842
2843         * mule-charset.c (Qto_ucs): New variable.
2844         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2845         (Fdefine_char): Likewise.
2846         (syms_of_mule_charset): Add new symbol `=>ucs'.
2847
2848 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2849
2850         * mule-charset.c (Fdecode_char): Fixed.
2851
2852 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2853
2854         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2855         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2856         "tcvn5712-1".
2857
2858 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * mule-charset.c (Vcharset_ucs_big5): New variable.
2861         (Qucs_big5): Likewise.
2862         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2863         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2864
2865         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2866
2867 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * mule-charset.c (decode_builtin_char): Check Big5 code range
2870         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2871
2872 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2875         (Qchinese_gb12345): Likewise.
2876         (Fdecode_builtin_char): Fixed.
2877         (syms_of_mule_charset): Add `chinese-gb12345'.
2878         (complex_vars_of_mule_charset): Add coded-charset
2879         `chinese-gb12345'.
2880
2881         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2882         (LEADING_BYTE_CHINESE_GB12345): New macro.
2883
2884 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2885
2886         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2887         and `latin-viscii-upper' for `latin-viscii'.
2888
2889 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2890
2891         * mule-charset.c (Fdecode_builtin_char): Comment out
2892         regularization code for ISO-IR GR representation.
2893
2894 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2895
2896         * mule-charset.c (decode_builtin_char): New function; renamed from
2897         `make_builtin_char'; return -1 instead of signal.
2898         (Fdecode_builtin_char): Use `decode_builtin_char'.
2899
2900         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2901         `make_builtin_char'.
2902         (DECODE_CHAR): Use `decode_builtin_char' instead of
2903         `make_builtin_char'; use mapping table of `chinese-big5' for
2904         `chinese-big5-{1,2}'.
2905
2906 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2907
2908         * text-coding.c (char_encode_big5): New function.
2909         (char_finish_big5): Likewise.
2910         (reset_encoding_stream): Use `char_encode_big5' and
2911         `char_finish_big5' for CODESYS_BIG5.
2912         (mule_encode): Don't use `encode_coding_big5'.
2913         (encode_coding_big5): Deleted.
2914
2915 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2916
2917         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2918         0x81- in XEmacs UTF-2000.
2919         (detect_coding_big5): Likewise.
2920
2921 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2924         generate character-id if the CCS property does not have
2925         corresponding predefined character.
2926         (make_builtin_char): Return -1 if corresponding predefined
2927         character is not found.
2928         (Fdecode_char): Return nil if corresponding character is not
2929         found.
2930         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2931         don't map to builtin ucs space.
2932
2933 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2934
2935         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2936         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2937
2938 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2939
2940         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2941         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2942         (Qideograph_gt): Likewise.
2943         (Qideograph_gt_pj_{1..11}): Likewise.
2944         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2945         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2946         `ideograph-gt-pj-11'.
2947         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2948         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2949         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2950
2951         * char-ucs.h (LEADING_BYTE_GT): New macro.
2952         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2953         (MIN_CHAR_GT): Likewise.
2954         (MAX_CHAR_GT): Likewise.
2955
2956 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2959         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2960
2961         * doprnt.c (unsigned_int_converters): Add `c'.
2962         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2963
2964         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2965         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2966         `MIN_CHAR_MOJIKYO'.
2967         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2968         (MAX_CHAR_MOJIKYO_0): New macro.
2969         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2970
2971 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * mule-charset.c (Fdefine_char): Delete cemented out code.
2974         (encode_builtin_char_1): Modify for new allocation of builtin
2975         Mojikyo characters.
2976
2977         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2978
2979 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2980
2981         * mule-charset.c (Vcharset_ucs_cns): New variable.
2982         (Qucs_cns): New variable.
2983         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2984         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2985
2986 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2987
2988         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2989
2990 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2991
2992         * search.c (search_buffer): Make `charset_base_code' as
2993         character-id >> 6 to eliminate the corresponding last byte in
2994         UTF-8 representation [I'm not sure it is right thing].
2995         (boyer_moore): Likewise.
2996
2997 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2998
2999         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3000         representation in MULE.
3001
3002 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3003
3004         * text-coding.c (Fmake_coding_system): Use
3005         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3006         `EXTERNAL_PROPERTY_LIST_LOOP'.
3007
3008 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3009
3010         * text-coding.c (decode_output_utf8_partial_char): New function.
3011         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3012
3013 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3014
3015         * text-coding.c (decode_coding_utf8): Output original byte
3016         sequence if it is broken; change order of conditions.
3017
3018         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3019         of conditions.
3020
3021         * mb-multibyte.h (BYTE_ASCII_P):
3022         Use bit ops for char-signedness safety.
3023         (BYTE_C0_P): Use bit ops for char-signedness safety.
3024         (BYTE_C1_P): Use bit ops for char-signedness safety.
3025
3026         * character.h: (XCHAR_OR_CHAR_INT):
3027         Always use inline function.
3028         Remove redundant type checking assert() - XINT will abort quite
3029         nicely.
3030
3031 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * text-coding.c: (Fencode_shift_jis_char):
3034         (Fencode_big5_char):
3035         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3036         Replace 0 with '\0' when working with bytes.
3037         Replace initial "(" with "\(" in docstrings.
3038
3039         (Fmake_coding_system):
3040         When type is ccl and value is vector, register it with a proper
3041         symbol.  And checks whether the given ccl program is valid.
3042         (mule_decode): When calling ccl_driver, if src indicates
3043         NULL pointer, set an empty string instead.
3044         (mule_encode): Likewise.
3045
3046         (detect_eol_type):
3047         (detect_coding_sjis):
3048         (decode_coding_sjis):
3049         (detect_coding_big5):
3050         (decode_coding_big5):
3051         (detect_coding_ucs4):
3052         (decode_coding_ucs4):
3053         (detect_coding_utf8):
3054         (decode_coding_utf8):
3055         (detect_coding_iso2022):
3056         (decode_coding_iso2022):
3057         (decode_coding_no_conversion):
3058         (mule_decode):
3059         Make all detecting and decoding functions take an Extbyte * arg.
3060         (text_encode_generic):
3061         (encode_coding_big5):
3062         (encode_coding_no_conversion):
3063         (mule_encode):
3064         Make all encoding functions take a Bufbyte * arg.
3065         Use size_t instead of unsigned int for memory sizes.
3066         Only cast to unsigned char whenever dereferencing Extbyte *.
3067
3068         (struct lrecord_description fcd_description_1): Use countof.
3069         (complex_vars_of_file_coding):
3070         Use countof instead of sizeof.
3071         Use CHECK_NATNUM instead of CHECK_INT.
3072
3073 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (Fget_char_attribute): Add new optional argument
3076         `default-value'.
3077         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3078         (remove_char_ccs): Likewise.
3079
3080 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3081
3082         * text-coding.c (char_encode_shift_jis): New implementation in
3083         UTF-2000.
3084         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3085         ...)'.
3086
3087         * mule-charset.c (Vcharset_chinese_big5): New variable in
3088         UTF-2000.
3089         (Qchinese_big5): New variable in UTF-2000.
3090         (BIG5_SAME_ROW): New macro in UTF-2000.
3091         (make_builtin_char): Use builtin characters of
3092         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3093         characters of `Vcharset_chinese_big5'.
3094         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3095         (complex_vars_of_mule_charset): Add new coded-charset
3096         `chinese-big5' in UTF-2000.
3097
3098         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3099         (Vcharset_chinese_big5): New external variable declaration.
3100         (Vcharset_japanese_jisx0208_1990): Likewise.
3101
3102 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3103
3104         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3105         function.
3106         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3107
3108 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3109
3110         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3111         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3112         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3113         `mojikyo-pj-*'.
3114
3115 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3118
3119 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3120
3121         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3122         to 0.17.
3123
3124 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3125
3126         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3127         for `CHARSET_BY_ATTRIBUTES'.
3128         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3129         `CHARSET_BY_ATTRIBUTES'.
3130
3131         * text-coding.c (struct decoding_stream): Rename member `CH' to
3132         `CPOS'.
3133         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3134         (decode_coding_sjis): Likewise.
3135         (decode_coding_big5): Likewise.
3136         (decode_coding_ucs4): Likewise.
3137         (decode_coding_utf8): Likewise.
3138         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3139         `CHARSET_BY_ATTRIBUTES'.
3140         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3141         `str->counter'; decode 3, 4 bytes sets.
3142         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3143         sets.
3144         (decode_coding_no_conversion): Use `str->cpos' instead of
3145         `str->ch'.
3146
3147         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3148         (Qmojikyo_2022_1): New variable.
3149         (make_charset): Don't use `CHARSET_TYPE_*'.
3150         (range_charset_code_point): Support coded-charset
3151         `mojikyo-2022-1'.
3152         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3153         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3154         `CHARSET_BY_ATTRIBUTES'.
3155         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3156         `CHARSET_BY_ATTRIBUTES'.
3157         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3158         (complex_vars_of_mule_charset): Add new coded-charset
3159         `mojikyo-2022-1'.
3160
3161         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3162         interface; changed to inline function.
3163
3164         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3165         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3166         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3167         (CHARSET_TYPE_94): Deleted.
3168         (CHARSET_TYPE_94X94): Deleted.
3169         (CHARSET_TYPE_96): Deleted.
3170         (CHARSET_TYPE_96X96): Deleted.
3171         (CHARSET_TYPE_128): Deleted.
3172         (CHARSET_TYPE_128X128): Deleted.
3173         (CHARSET_TYPE_256): Deleted.
3174         (CHARSET_TYPE_256X256): Deleted.
3175         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3176         to inline function.
3177         (DECODE_MOJIKYO_2022): New inline function.
3178         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3179         `Vcharset_mojikyo_2022_1'.
3180
3181 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3182
3183         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3184         instead of `EQ'.
3185         (put_byte_table): Likewise.
3186         (char_id_table_equal): Use `get_byte_table' [new implementation].
3187
3188 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3189
3190         * mule-charset.c: Include <limits.h> in UTF-2000.
3191         (BT_UINT8_MIN): New macro in UTF-2000.
3192         (BT_UINT8_MAX): New macro in UTF-2000.
3193         (BT_UINT8_t): New macro in UTF-2000.
3194         (BT_UINT8_nil): New macro in UTF-2000.
3195         (BT_UINT8_unbound): New macro in UTF-2000.
3196         (INT_UINT8_P): New inline function in UTF-2000.
3197         (UINT8_VALUE_P): New inline function in UTF-2000.
3198         (UINT8_ENCODE): New inline function in UTF-2000.
3199         (UINT8_DECODE): New inline function in UTF-2000.
3200         (mark_uint8_byte_table): New function in UTF-2000.
3201         (print_uint8_byte_table): New function in UTF-2000.
3202         (uint8_byte_table_equal): New function in UTF-2000.
3203         (uint8_byte_table_hash): New function in UTF-2000.
3204         (make_uint8_byte_table): New function in UTF-2000.
3205         (uint8_byte_table_same_value_p): New function in UTF-2000.
3206         (BT_UINT16_MIN): New macro in UTF-2000.
3207         (BT_UINT16_MAX): New macro in UTF-2000.
3208         (BT_UINT16_t): New macro in UTF-2000.
3209         (BT_UINT16_nil): New macro in UTF-2000.
3210         (BT_UINT16_unbound): New macro in UTF-2000.
3211         (INT_UINT16_P): New inline function in UTF-2000.
3212         (UINT16_VALUE_P): New inline function in UTF-2000.
3213         (UINT16_ENCODE): New inline function in UTF-2000.
3214         (UINT16_DECODE): New inline function in UTF-2000.
3215         (UINT8_TO_UINT16): New inline function in UTF-2000.
3216         (mark_uint16_byte_table): New function in UTF-2000.
3217         (print_uint16_byte_table): New function in UTF-2000.
3218         (uint16_byte_table_equal): New function in UTF-2000.
3219         (uint16_byte_table_hash): New function in UTF-2000.
3220         (make_uint16_byte_table): New function in UTF-2000.
3221         (uint16_byte_table_same_value_p): New function in UTF-2000.
3222         (print_byte_table): New function in UTF-2000.
3223         (byte-table): Use `print_byte_table' as printer.
3224         (make_byte_table): Delete second argument `older'.
3225         (byte_table_same_value_p): New function in UTF-2000.
3226         (copy_byte_table): Deleted.
3227         (get_byte_table): New function in UTF-2000.
3228         (put_byte_table): New function in UTF-2000.
3229         (print_char_id_table): New function in UTF-2000.
3230         (char-id-table): Use `print_char_id_table' as printer.
3231         (make_char_id_table): Delete second argument `older'.
3232         (get_char_id_table): Use `get_byte_table [new implementation].
3233         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3234         implementation].
3235         (Ffind_char_attribute_table): New function in UTF-2000.
3236         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3237         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3238         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3239         (syms_of_mule_charset): Add new function
3240         `find-char-attribute-table' in UTF-2000.
3241
3242         * lrecord.h (enum lrecord_type): Add
3243         `lrecord_type_uint16_byte_table' and
3244         `lrecord_type_uint8_byte_table'.
3245
3246         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3247         (Lisp_Uint8_Byte_Table): New type.
3248         (XUINT8_BYTE_TABLE): New macro.
3249         (XSETUINT8_BYTE_TABLE): New macro.
3250         (UINT8_BYTE_TABLE_P): New macro.
3251         (GC_UINT8_BYTE_TABLE_P): New macro.
3252         (struct Lisp_Uint16_Byte_Table): New structure.
3253         (Lisp_Uint16_Byte_Table): New type.
3254         (XUINT16_BYTE_TABLE): New macro.
3255         (XSETUINT16_BYTE_TABLE): New macro.
3256         (UINT16_BYTE_TABLE_P): New macro.
3257         (GC_UINT16_BYTE_TABLE_P): New macro.
3258
3259 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3260
3261         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3262         (Vcharacter_ideographic_strokes_table): Deleted.
3263         (Vcharacter_total_strokes_table): Deleted.
3264         (Vcharacter_morohashi_daikanwa_table): Deleted.
3265         (Vcharacter_decomposition_table): Deleted.
3266         (Qname): Deleted because it is duplicated.
3267         (Qideographic_radical): Deleted.
3268         (Qideographic_strokes): Deleted.
3269         (Qtotal_strokes): Deleted.
3270         (Qmorohashi_daikanwa): Deleted.
3271         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3272         `ideographic-radical', `ideographic-strokes', `total-strokes',
3273         `morohashi-daikanwa' and `->decomposition'.
3274         (Fget_char_attribute): Likewise.
3275         (Fput_char_attribute): Likewise; use `make-vector' instead of
3276         `make_older_vector' for `->decomposition' value.
3277         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3278         `ideograph-daikanwa'.
3279         (syms_of_mule_charset): Delete builtin symbols `name',
3280         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3281         `morohashi-daikanwa'.
3282         (vars_of_mule_charset): Don't setup
3283         `Vcharacter_ideographic_radical_table',
3284         `Vcharacter_ideographic_strokes_table',
3285         `Vcharacter_total_strokes_table',
3286         `Vcharacter_morohashi_daikanwa_table' and
3287         `Vcharacter_decomposition_table'.
3288
3289 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3290
3291         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3292         `make_older_vector', `make_vector_newer_1' and
3293         `make_vector_newer'.
3294
3295         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3296         `make_older_vector' and `make_vector_newer'.
3297
3298         * config.h.in (HAVE_GGC): New macro.
3299
3300 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3301
3302         * mule-charset.c (struct char_attribute_list_closure): New
3303         structure in UTF-2000.
3304         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3305         (Fchar_attribute_list): Likewise.
3306         (Fset_charset_mapping_table): Use `make_vector_newer'.
3307         (Fdecode_builtin_char): New function in UTF-2000.
3308         (syms_of_mule_charset): Add new function `char-attribute-list' and
3309         `decode-builtin-char' in UTF-2000.
3310
3311         * lisp.h (make_vector_newer): New prototype.
3312
3313         * alloc.c (make_vector_newer_1): New function.
3314         (make_vector_newer): New function.
3315
3316 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3317
3318         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3319         50100)'.
3320
3321 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3322
3323         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3324         (Vcharacter_attribute_table): Deleted.
3325         (Vcharacter_name_table): Deleted.
3326         (put_char_attribute): Deleted.
3327         (remove_char_attribute): Deleted.
3328         (struct char_attribute_alist_closure): New structure.
3329         (add_char_attribute_alist_mapper): New function.
3330         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3331         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3332         (Fget_char_attribute): Likewise.
3333         (Fput_char_attribute): Likewise.
3334         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3335         of `remove_char_attribute'.
3336         (Fdefine_char): Return character.
3337         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3338         and `Vcharacter_name_table'.
3339         (complex_vars_of_mule_charset): Likewise
3340         `Vchar_attribute_hash_table'.
3341
3342 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3343
3344         * character.h (CHARC_CHARSET): New macro.
3345         (CHARC_CHARSET_ID): New macro.
3346         (CHARC_CODE_POINT): New macro.
3347         (CHARC_COLUMNS): New macro.
3348         (CHARC_TO_CHAR): New inline function.
3349         (CHARC_EQ): New inline function.
3350         (CHARC_ASCII_EQ): New inline function.
3351         (CHARC_IS_SPACE): New inline function.
3352         (ASCII_TO_CHARC): New inline function.
3353
3354         * char-ucs.h (encode_char_2): Deleted.
3355         (ENCODE_CHAR): Use `encode_char_1' again.
3356         (breakup_char_1): Likewise.
3357         (CHAR_TO_CHARC): New inline function.
3358
3359         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3360
3361 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3362
3363         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3364         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3365         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3366         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3367         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3368         `CHARC_IS_SPACE'.
3369         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3370
3371         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3372         `CHARC_CODE_POINT'.
3373         (x_output_display_block): Use `CHARC_CHARSET' and
3374         `CHARC_ASCII_EQ'.
3375
3376         * redisplay-tty.c (tty_output_display_block): Use
3377         `CHARC_ASCII_EQ'.
3378         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3379
3380         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3381
3382         * insdel.c (find_charsets_in_charc_string): Use
3383         `CHARC_CHARSET_ID'.
3384         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3385         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3386         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3387         (convert_charc_string_into_malloced_string): Likewise.
3388
3389 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3390
3391         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3392         instead of <Emchar_dynarr *> for buf; use
3393         `convert_bufbyte_string_into_charc_dynarr' instead of
3394         `convert_bufbyte_string_into_emchar_dynarr'; use
3395         `find_charsets_in_charc_string' instead of
3396         `find_charsets_in_emchar_string'.
3397
3398         * redisplay.h:
3399         - Include "character.h".
3400         (struct rune): New member `cglyph'; delete member `chr'.
3401
3402         * redisplay.c (redisplay_text_width_charc_string): New function;
3403         delete `redisplay_text_width_emchar_string'.
3404         (rtw_charc_dynarr): New variable; renamed from
3405         `rtw_emchar_dynarr'.
3406         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3407         `rtw_emchar_dynarr'; use
3408         `convert_bufbyte_string_into_charc_dynarr' instead of
3409         `convert_bufbyte_string_into_emchar_dynarr'; use
3410         `redisplay_text_width_charc_string' instead of
3411         `redisplay_text_width_emchar_string'.
3412         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3413         instead of `rtw_emchar_dynarr'; use
3414         `convert_bufbyte_string_into_charc_dynarr' instead of
3415         `convert_bufbyte_string_into_emchar_dynarr'.
3416         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3417         `redisplay_text_width_charc_string' instead of
3418         `redisplay_text_width_emchar_string'.
3419         (create_text_block): Modify for <struct rune> change.
3420         (generate_formatted_string_db): Likewise.
3421         (create_string_text_block): Likewise.
3422         (pixel_to_glyph_translation): Likewise.
3423
3424         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3425         instead of <const Emchar *>.
3426         (x_text_width): Likewise.
3427         (x_output_display_block): Use <Charc_dynarr *> instead
3428         <Emchar_dynarr *>; modify for <structure rune> change.
3429         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3430         *>.
3431
3432         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3433         <const Emchar *>; use `charc_string_displayed_columns' instead of
3434         `emchar_string_displayed_columns'.
3435         (tty_output_display_block): Use <Charc_dynarr *> instead of
3436         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3437         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3438         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3439         `tty_output_emchar_dynarr_dynarr'.
3440         (tty_output_charc_dynarr): New function; delete
3441         `tty_output_charc_dynarr'.
3442
3443         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3444         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3445         <Emchar_dynarr *> for buf; use
3446         `convert_bufbyte_string_into_charc_dynarr' instead of
3447         `convert_bufbyte_string_into_emchar_dynarr'.
3448
3449         * frame.c (title_string_charc_dynarr): New variable; renamed from
3450         `title_string_emchar_dynarr'.
3451         (generate_title_string): Use `title_string_charc_dynarr' instead
3452         of `title_string_emchar_dynarr'; use
3453         `convert_charc_string_into_malloced_string' instead of
3454         `convert_emchar_string_into_malloced_string'.
3455         (init_frame): Use `title_string_charc_dynarr' instead of
3456         `title_string_emchar_dynarr'.
3457
3458         * console.h:
3459         - Include "character.h".
3460         (struct console_methods): Use <const Charc *> instead of <const
3461         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3462         <Emchar_dynarr *> in output_string_method.
3463
3464         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3465         <Emchar_dynarr *>.
3466
3467         * console-stream.c (stream_text_width): Use <const Charc *>
3468         instead of <const Emchar *>.
3469
3470         * character.h (Charc_dynarr): New type.
3471
3472         * char-ucs.h (structure Charc): New structure; define new type
3473         `Charc'.
3474
3475         * char-lb.h (DECODE_CHAR): New inline function.
3476         (encode_char_1): New inline function.
3477         (ENCODE_CHAR): New macro.
3478         (structure Charc): New structure; define new type `Charc'.
3479
3480         * char-1byte.h (Vcharset_control_1): New macro.
3481         (Vcharset_latin_iso8859_1): New macro.
3482         (DECODE_CHAR): New inline function.
3483         (encode_char_1): New inline function.
3484         (ENCODE_CHAR): New macro.
3485         (structure Charc): New structure; define new type `Charc'.
3486
3487         * insdel.c (find_charsets_in_charc_string): New function; delete
3488         `find_charsets_in_emchar_string'.
3489         (charc_string_displayed_columns): New function; delete
3490         `emchar_string_displayed_columns'.
3491         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3492         `convert_bufbyte_string_into_emchar_dynarr'.
3493         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3494         `convert_charc_string_into_bufbyte_dynarr'.
3495         (convert_charc_string_into_malloced_string): New function; delete
3496         `convert_charc_string_into_malloced_string'.
3497
3498         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3499         `find_charsets_in_emchar_string'.
3500         (charc_string_displayed_columns): New prototype; delete
3501         `emchar_string_displayed_columns'.
3502         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3503         `convert_charc_string_into_bufbyte_dynarr'.
3504         (convert_charc_string_into_malloced_string): New prototype; delete
3505         `convert_charc_string_into_malloced_string'.
3506
3507 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3508
3509         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3510
3511 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3514
3515         * char-ucs.h: Use <short> for <Charset_ID>.
3516
3517         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3518         <Charset_ID>.
3519
3520 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3521
3522         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3523         to 0.16.
3524
3525 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3526
3527         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3528         variable.
3529         (Qmorohashi_daikanwa): New variable.
3530         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3531         for `morohashi-daikanwa' attribute.
3532         (Fget_char_attribute): Likewise.
3533         (Fput_char_attribute): Likewise.
3534         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3535         has the same value of `ideograph-daikanwa'.
3536         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3537         (vars_of_mule_charset): Setup
3538         `Vcharacter_morohashi_daikanwa_table'.
3539
3540 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3541
3542         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3543         attributes.
3544         (add_charset_to_list_mapper): Add `key' instead of
3545         `XCHARSET_NAME (value)' to return aliases.
3546
3547 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3548
3549         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3550         variable.
3551         (Vcharacter_ideographic_strokes_table): New variable.
3552         (Qideographic_radical): New variable.
3553         (Qideographic_strokes): New variable.
3554         (Fchar_attribute_alist): Use
3555         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3556         attribute; use `Vcharacter_ideographic_strokes_table' for
3557         `ideographic-strokes' attribute.
3558         (Fget_char_attribute): Likewise.
3559         (Fput_char_attribute): Likewise.
3560         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3561         `ideographic-strokes'.
3562         (vars_of_mule_charset): Setup
3563         `Vcharacter_ideographic_radical_table' and
3564         `Vcharacter_ideographic_strokes_table'.
3565
3566 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3567
3568         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3569         (Qtotal_strokes): New variable.
3570         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3571         `total-strokes' attribute.
3572         (Fget_char_attribute): Likewise.
3573         (Fput_char_attribute): Likewise.
3574         (syms_of_mule_charset): Add new symbol `total-strokes'.
3575         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3576
3577 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3578
3579         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3580         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3581         are found.
3582         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3583         `->decomposition' attribute.
3584         (Fput_char_attribute): Likewise.
3585         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3586
3587 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3588
3589         * mule-charset.c (decoding_table_check_elements): New function.
3590         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3591
3592 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3593
3594         * mule-charset.c (Fset_charset_mapping_table): Use
3595         `put_char_ccs_code_point'.
3596
3597 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3598
3599         * mule-charset.c (decoding_table_put_char): New inline function.
3600         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3601
3602 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3603
3604         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3605         (XCHARSET_BYTE_SIZE): New macro.
3606         (decoding_table_remove_char): New inline function.
3607         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3608         `decoding_table_remove_char'.
3609         (remove_char_ccs): Use `decoding_table_remove_char'.
3610         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3611
3612 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3613
3614         * mule-charset.c (Vcharacter_name_table): New variable.
3615         (Qname): New variable.
3616         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3617         attribute.
3618         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3619         `Vcharacter_name_table' for `name' attribute.
3620         (Fremove_char_attribute): Use function `remove_char_ccs'.
3621         (put_char_ccs_code_point): New function.
3622         (remove_char_ccs): New function.
3623         (syms_of_mule_charset): Add new symbol `name'.
3624         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3625
3626 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3627
3628         * mule-charset.c (make_byte_table): Add new argument `older'.
3629         (make_char_id_table): Likewise.
3630         (copy_char_id_table): Comment out because it is not used.
3631         (put_char_id_table): Modify for `make_byte_table'.
3632         (Fput_char_attribute): Make encoding_table as older object;
3633         inherit older bit of `Vcharacter_composition_table'.
3634         (mark_charset): Don't mark `cs->encoding_table'.
3635         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3636         normal object; make `Vcharacter_composition_table' as an older
3637         object; delete staticpro for `Vcharacter_composition_table'; make
3638         `Vcharacter_variant_table' as a normal object.
3639
3640         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3641         (mark_object): Don't check older object in UTF-2000.
3642
3643         * lrecord.h (struct lrecord_header): Add new member `older' in
3644         UTF-2000.
3645         (set_lheader_implementation): Setup `SLI_header->older' in
3646         UTF-2000.
3647         (set_lheader_older_implementation): New macro in UTF-2000.
3648         (OLDER_RECORD_P): New macro in UTF-2000.
3649         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3650         (alloc_older_lcrecord): New prototype in UTF-2000.
3651         (alloc_older_lcrecord_type): New macro in UTF-2000.
3652
3653 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3654
3655         * mule-charset.c (byte_table_description): Use
3656         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3657         (char_id_table_description): Delete bogus `, 1'.
3658         (Fget_char_attribute): Refer encoding_table of each coded-charset
3659         to get value of coded-charset attribute of a character.
3660         (Fput_char_attribute): Use `make_older_vector' instead of
3661         `make_vector'; use encoding_table of each coded-charset to store
3662         value of coded-charset attribute of a character.
3663         (Fremove_char_attribute): Use encoding_table of each coded-charset
3664         to store value of coded-charset attribute of a character.
3665         (mark_charset): Mark `cs->encoding_table'; don't mark
3666         `cs->decoding_table'.
3667         (charset_description): Add description of new member
3668         `encoding_table'.
3669         (make_charset): Initialize `encoding_table'.
3670
3671         * char-ucs.h (struct Lisp_Charset): Add new member
3672         `encoding_table'.
3673         (CHARSET_ENCODING_TABLE): New macro.
3674         (XCHARSET_ENCODING_TABLE): New macro.
3675         (charset_code_point): New implementation.
3676         (encode_char_1): Likewise.
3677
3678         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3679         (disksave_object_finalization_1): Call finalizers of
3680         `all_older_lcrecords' in UTF-2000.
3681         (make_older_vector): New function in UTF-2000.
3682         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3683         UTF-2000.
3684
3685         * lisp.h (make_older_vector): New prototype in UTF-2000.
3686
3687 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3688
3689         * lrecord.h (enum lrecord_type): Rename
3690         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3691
3692         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3693         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3694         `get_char_code_table'.
3695
3696         * mule-charset.c (mark_char_id_table): Renamed from
3697         `mark_char_code_table'.
3698         (char_id_table_equal): Renamed from `char_code_table_equal'.
3699         (char_id_table_hash): Renamed from `char_code_table_hash'.
3700         (make_char_id_table): Renamed from `make_char_code_table'.
3701         (copy_char_id_table): Renamed from `copy_char_code_table'.
3702         (get_char_id_table): Renamed from `get_char_code_table'.
3703         (put_char_id_table): Renamed from `put_char_code_table'.
3704         (to_char_id): Renamed from `to_char_code'.
3705
3706         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3707         `Lisp_Char_Code_Table'.
3708         (char_id_table): Renamed from `char_code_table'.
3709         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3710         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3711         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3712         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3713         (get_char_id_table): Renamed from `get_char_code_table'.
3714
3715 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3716
3717         * lrecord.h (enum lrecord_type): Rename
3718         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3719
3720         * mule-charset.c (mark_byte_table): Renamed from
3721         `mark_char_byte_table'.
3722         (byte_table_equal): Renamed from `char_byte_table_equal'.
3723         (byte_table_hash): Renamed from `byte_table_hash'.
3724         (make_byte_table): Renamed from `make_byte_table'.
3725         (copy_byte_table): Renamed from `copy_char_byte_table'.
3726
3727         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3728         `Lisp_Char_Byte_Table'.
3729         (byte_table): Renamed from `char_byte_table'.
3730         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3731         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3732         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3733         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3734
3735 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736
3737         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3738         (dfc_convert_to_internal_format): Likewise.
3739         
3740         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3741         * text-coding.c (Fcoding_system_alias_p): New function.
3742         * text-coding.c (Fcoding_system_aliasee): New function.
3743         * text-coding.c (append_suffix_to_symbol): New function.
3744         * text-coding.c (dangling_coding_system_alias_p): New function.
3745         * text-coding.c (Ffind_coding_system):
3746         * text-coding.c (Fcopy_coding_system):
3747         * text-coding.c (encode_coding_no_conversion):
3748         * text-coding.c (syms_of_file_coding):
3749         * text-coding.c (vars_of_file_coding):
3750         Rewrite coding system alias code.
3751         Allow nested aliases, like symbolic links.
3752         Allow redefinition of coding system aliases.
3753         Prevent existence of dangling coding system aliases.
3754         Eliminate convert_to_external_format.
3755         Eliminate convert_to_internal_format.
3756         
3757         * text-coding.c: Change enum eol_type to eol_type_t.
3758
3759 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3760
3761         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3762         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3763
3764         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3765         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3766
3767 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3768
3769         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3770         `ideograph-daikanwa'.
3771
3772         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3773         (Vcharset_ucs_bmp): Likewise.
3774         (Vcharset_mojikyo): Add new extern variable definition.
3775         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3776         (Vcharset_latin_iso8859_3): Likewise.
3777         (Vcharset_latin_iso8859_4): Likewise.
3778         (Vcharset_latin_iso8859_9): Likewise.
3779         (Vcharset_latin_viscii_lower): Likewise.
3780         (Vcharset_latin_viscii_upper): Likewise.
3781         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3782         `mojikyo' code-point is used to decode.
3783         (encode_char_2): New function [to convert `mojikyo' code-point to
3784         Mojikyo font encoding].
3785         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3786         (breakup_char_1): Likewise.
3787         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3788
3789 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3790
3791         * text-coding.c (Fmake_coding_system): Add document about
3792         `disable-composition' property.
3793
3794 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3795
3796         * text-coding.c (Qdisable_composition): New variable; delete
3797         `Qcomposite'.
3798         (Fmake_coding_system): Add new property `disable-composite';
3799         delete property `composite'.
3800         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3801         instead of `!CODING_SYSTEM_COMPOSITE'.
3802         (syms_of_file_coding): Add new symbol `disable-composition';
3803         delete symbol `composite'.
3804
3805         * file-coding.h (struct Lisp_Coding_System): Add
3806         `disable_composition'; delete `enable_composition'.
3807         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3808         `CODING_SYSTEM_COMPOSITE'.
3809         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3810         `XCODING_SYSTEM_COMPOSITE'.
3811
3812 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3813
3814         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3815         to 0.15.
3816
3817 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3818
3819         * text-coding.c (Qcomposite): New variable.
3820         (Fmake_coding_system): Add new property `composite'.
3821         (struct decoding_stream): Add `combined_char_count',
3822         `combined_chars' and `combining_table' in UTF-2000.
3823         (COMPOSE_FLUSH_CHARS): New macro.
3824         (COMPOSE_ADD_CHAR): New macro.
3825         (reset_decoding_stream): Reset `str->combined_char_count' and
3826         `str->combining_table' in UTF-2000.
3827         (decode_coding_iso2022): Modify for character-decomposition.
3828         (syms_of_file_coding): Add new symbol `composite'.
3829
3830 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3831
3832         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3833         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3834         of `Vcharacter_composition_table' if `->decomposition' property
3835         has only 1 element.
3836         (Qlatin_tcvn5712): New variable.
3837         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3838         (complex_vars_of_mule_charset): Add new coded-charset
3839         `latin-tcvn5712'.
3840
3841         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3842
3843 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3844
3845         * file-coding.h (struct Lisp_Coding_System): Add
3846         `enable_composition'.
3847         (CODING_SYSTEM_COMPOSITE): New macro.
3848         (XCODING_SYSTEM_COMPOSITE): New macro.
3849
3850 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3851
3852         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3853
3854 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3855
3856         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3857         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3858
3859 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3860
3861         * mule-charset.c (Vcharset_mojikyo): New variable.
3862         (Fdefine_char): Don't use coded-charset which does not have
3863         non-builtin character range to allocate character-id.
3864         (Qmojikyo): New variable.
3865         (syms_of_mule_charset): Add new symbol `mojikyo'.
3866         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3867
3868         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3869         (LEADING_BYTE_MOJIKYO): New macro.
3870         (MIN_CHAR_MOJIKYO): New macro.
3871         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3872         (MAX_CHAR_MOJIKYO): New macro.
3873
3874 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3875
3876         * mule-charset.c (remove_char_attribute): Fixed.
3877
3878 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3879
3880         * mule-charset.c (remove_char_attribute): New function.
3881         (Fremove_char_attribute): New function.
3882         (encode_builtin_char_1): Comment out builtin-support for
3883         greek-iso8859-7 and cyrillic-iso8859-5.
3884         (Fdecode_char): Check `code' is an integer.
3885         (syms_of_mule_charset): Add `remove-char-attribute'.
3886         (MIN_CHAR_GREEK): Deleted.
3887         (MAX_CHAR_GREEK): Likewise.
3888         (MIN_CHAR_CYRILLIC): Likewise.
3889         (MAX_CHAR_CYRILLIC): Likewise.
3890         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3891         MAX_CHAR_GREEK for `greek-iso8859-7'.
3892
3893         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3894         (MAX_CHAR_GREEK): Likewise.
3895         (MIN_CHAR_CYRILLIC): Likewise.
3896         (MAX_CHAR_CYRILLIC): Likewise.
3897
3898 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3899
3900         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3901         format is used without `ucs' property.
3902         (Fdecode_char): Fix problem with GR representation.
3903         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3904         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3905
3906 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3907
3908         * mule-charset.c (make_builtin_char): New function.
3909         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3910         (Fset_charset_mapping_table): Modify for new representation of
3911         code-point.
3912         (Fdecode_char): New function.
3913         (syms_of_mule_charset): Add new builtin function `decode-char' in
3914         UTF-2000.
3915
3916         * char-ucs.h (make_builtin_char): New prototype.
3917         (DECODE_CHAR): New inline function.
3918         (MAKE_CHAR): Use `DECODE_CHAR'.
3919
3920 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3921
3922         * text-coding.c (parse_charset_conversion_specs): Use
3923         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3924         `XCHARSET_TYPE'.
3925         (iso2022_designate): Likewise.
3926
3927         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3928         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3929
3930         * mule-charset.c (Vcharset_ucs): New variable.
3931         (print_charset): Change design; use `CHARSET_CHARS' and
3932         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3933         (make_charset): Change signature to specify `chars' and
3934         `dimension' instead of `type'.
3935         (range_charset_code_point): Modify for 256^n-set.
3936         (encode_builtin_char_1): Encode as `ucs' in default.
3937         (Fmake_charset): Modify for `make_charset'.
3938         (Fmake_reverse_direction_charset): Likewise.
3939         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3940         UTF-2000.
3941         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3942         for `make_charset'.
3943
3944         * char-ucs.h (Vcharset_ucs): New variable.
3945         (LEADING_BYTE_UCS): New macro.
3946         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3947         and `chars' to `unsigned short' from `unsigned int'.
3948         (CHARSET_TYPE): Deleted.
3949         (XCHARSET_TYPE): Deleted.
3950
3951 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3952
3953         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3954
3955         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3956         (ENCODE_CHAR): New macro.
3957
3958 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3959
3960         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3961         to 0.14 (Kawachi-Katakami).
3962
3963 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * text-coding.c (char_encode_shift_jis): Modify for
3966         `charset_code_point'.
3967         (char_encode_iso2022): Likewise.
3968
3969         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3970         (integer) instead of list of <Lisp_Object>s (integers) as the
3971         format of code-point of a coded-charset.
3972         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3973         (encode_builtin_char_1): New function; delete
3974         `split_builtin_char'.
3975         (charset_code_point): Return <int> instead of <Lisp_Object>.
3976         (Fsplit_char): Don't use `SPLIT_CHAR'.
3977
3978         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3979         prototype for `split_builtin_char'.
3980         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3981         (charset_code_point): Likewise.
3982         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3983         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3984
3985 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3986
3987         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3988         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3989
3990 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3991
3992         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3993
3994         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3995         (MAX_CHAR_OBS_94x94): Deleted.
3996
3997 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3998
3999         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4000
4001         * char-ucs.h (MAX_CHAR_BMP): New macro.
4002
4003 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4004
4005         * text-coding.c: Sync with r21-2-24.
4006
4007 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4008
4009         * file-coding.c: Modify for UTF-2000.
4010
4011 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4012
4013         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4014         to 0.13 (Takaida).
4015
4016 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4017
4018         * mule-charset.c (split_builtin_char): Delete builtin support for
4019         `katakana-jisx0201'.
4020         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4021         BMP area in builtin representation.
4022
4023         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4024         `Vcharset_katakana_jisx0201'.
4025
4026 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4027
4028         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4029         (Qisolated): New variable.
4030         (Qinitial): New variable.
4031         (Qmedial): New variable.
4032         (Qfinal): New variable.
4033         (Qvertical): New variable.
4034         (Qsmall): New variable.
4035         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4036         `Qvertical' and `Qsmall'.
4037         (Qmojikyo_pj_[1 .. 21]): New variable.
4038         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4039         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4040         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4041         .. 21]'.
4042
4043 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4044
4045         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4046         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4047         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4048
4049 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4050
4051         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4052         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4053         BMP.
4054         (Qjapanese_jisx0208_1990): New variable.
4055         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4056         (complex_vars_of_mule_charset): Add new coded-charset
4057         `japanese-jisx0208-1990'.
4058
4059         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4060         (MIN_CHAR_JIS_X0208_1990): New macro.
4061         (MAX_CHAR_JIS_X0208_1990): New macro.
4062
4063 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4064
4065         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4066         coded-charset is not found.
4067
4068 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4069
4070         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4071         (Fdefine_char): Use `Fmake_char'.
4072
4073 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4076         (Vcharset_hiragana_jisx0208): Deleted.
4077         (Vcharset_katakana_jisx0208): Deleted.
4078         (Qideograph_daikanwa): New variable.
4079         (Qhiragana_jisx0208): Deleted.
4080         (Qkatakana_jisx0208): Deleted.
4081         (split_builtin_char): Split `ideograph-daikanwa'.
4082         (Fsplit_char): New implementation for UTF-2000.
4083         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4084         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4085         (complex_vars_of_mule_charset): Add new coded-charset
4086         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4087         `katakana-jisx0208'.
4088
4089         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4090         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4091         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4092         (MIN_CHAR_DAIKANWA): New macro.
4093         (MAX_CHAR_DAIKANWA): New macro.
4094
4095 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4096
4097         * data.c (Fstring_to_number): Don't recognize floating point if
4098         base is not 10.
4099
4100 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4101
4102         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4103
4104 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4105
4106         * mule-charset.c (Qsquare): New variable.
4107         (to_char_code): Add `Qsquare'.
4108         (syms_of_mule_charset): Add new symbol `square'.
4109
4110 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4111
4112         * mule-charset.c (Qcircle): New variable.
4113         (to_char_code): Add `Qcircle'.
4114         (syms_of_mule_charset): Add new symbol `circle'.
4115
4116 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4117
4118         * mule-charset.c (Qfont): New variable.
4119         (to_char_code): Add `Qfont'.
4120         (syms_of_mule_charset): Add new symbol `font'.
4121
4122 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4123
4124         * mule-charset.c (Qsub): New variable.
4125         (to_char_code): Add `Qsub'.
4126         (syms_of_mule_charset): Add new symbol `sub'.
4127
4128 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4129
4130         * mule-charset.c (Fput_char_attribute): Convert each element of
4131         VALUE to GL position if ATTRIBUTE is a GR-set,
4132
4133 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4134
4135         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4136         coded-charset is a GR-set.
4137
4138 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4139
4140         * mule-charset.c (Fput_char_attribute): Check each element of
4141         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4142
4143 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4144
4145         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4146         UTF-2000.
4147         (Qethiopic_ucs): New variable in UTF-2000.
4148         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4149         (complex_vars_of_mule_charset): Add new coded-charset
4150         `ethiopic-ucs' in UTF-2000.
4151
4152         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4153         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4154         9)'.
4155         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4156         10)'.
4157         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4158
4159 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4160
4161         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4162         `ascii'.
4163
4164 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4165
4166         * mule-charset.c (Vcharacter_variant_table): New variable.
4167         (Q_ucs): New variable.
4168         (Fchar_variants): New function.
4169         (Fput_char_attribute): Register `->ucs' value to
4170         `Vcharacter_variant_table'.
4171         (syms_of_mule_charset): Add new function `char-variants' and new
4172         symbol `->ucs'.
4173         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4174
4175 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4176
4177         * mule-charset.c (get_char_code_table): Allow negative character
4178         code.
4179         (put_char_code_table): Likewise.
4180         (Vcharacter_composition_table): New variable.
4181         (Q_decomposition): New variable.
4182         (Qwide): New variable.
4183         (Qnarrow): New variable.
4184         (Qcompat): New variable.
4185         (QnoBreak): New variable.
4186         (Qsuper): New variable.
4187         (Qfraction): New variable.
4188         (to_char_code): New function.
4189         (Fget_composite_char): New function.
4190         (Fput_char_attribute): Register `->decomposition' value to
4191         `Vcharacter_composition_table'.
4192         (syms_of_mule_charset): Add new function `get-composite-char', new
4193         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4194         `super' and `fraction'.
4195         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4196
4197 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4198
4199         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4200         character; copy the return value.
4201
4202 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4203
4204         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4205
4206         * mule-charset.c (range_charset_code_point): Must use make_int.
4207         (split_builtin_char): New function.
4208
4209 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4210
4211         * mule-charset.c (char_byte_table): Change name from
4212         "char-code-table" to "char-byte-table".
4213         (mark_char_code_table): New function.
4214         (char_code_table_equal): New function.
4215         (char_code_table_hash): New function.
4216         (char_code_table_description): New constant.
4217         (char_code_table): New type.
4218         (make_char_code_table): New function.
4219         (copy_char_code_table): New function.
4220         (get_char_code_table): Modify for `char_code_table' type.
4221         (put_char_code_table): Likewise.
4222         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4223         (Kashiwara).
4224
4225         * char-ucs.h (char_code_table): New type.
4226         (XCHAR_CODE_TABLE): New macro.
4227         (XSETCHAR_CODE_TABLE): New macro.
4228         (CHAR_CODE_TABLE_P): New macro.
4229         (GC_CHAR_CODE_TABLE_P): New macro.
4230         (struct Lisp_Char_Code_Table): New structure.
4231
4232 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4233
4234         * mule-charset.c (Fmake_charset): Setup byte_offset for
4235         {94|96}^n-set.
4236
4237 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4238
4239         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4240         character.
4241
4242 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4243
4244         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4245         is found.
4246
4247 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4248
4249         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4250         charset, it is regarded as a charset.
4251         (put_char_attribute): New function in UTF-2000.
4252         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4253         charset, mapping-table of the charset is modified.
4254         (Fdefine_char): New function in UTF-2000.
4255         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4256         `Fput_char_attribute'.
4257         (syms_of_mule_charset): Add new function `define-char' and new
4258         symbol `ucs' in UTF-2000.
4259         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4260
4261 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4262
4263         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4264         non-UTF-2000 configuration.
4265
4266 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4267
4268         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4269         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4270
4271         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4272         deleted.
4273         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4274         (Fset_charset_mapping_table): Likewise.
4275
4276         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4277         (CHARSET_ENCODING_TABLE): Delete.
4278         (XCHARSET_ENCODING_TABLE): Delete.
4279         (charset_code_point): New interface.
4280
4281 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4282
4283         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4284         instead of `charset_get_byte1' and `charset_get_byte2'.
4285
4286         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4287         (charset_get_byte2): Deleted.
4288
4289 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4290
4291         * char-ucs.h (SPLIT_CHAR): New inline function.
4292         (breakup_char_1): Use `SPLIT_CHAR'.
4293
4294         * mule-charset.c (range_charset_code_point): New function.
4295         (charset_code_point): New function.
4296
4297         * char-ucs.h (range_charset_code_point): New interface.
4298         (breakup_char_1): Use `range_charset_code_point'.
4299
4300 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4301
4302         * mule-charset.c (Fmake_charset): Delete unused local variable
4303         `code_offset'.
4304
4305         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4306         (breakup_char_1): Find a charset and code-point in
4307         `Vcharacter_attribute_table'.
4308
4309 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4312         to 0.10 (Yao).
4313
4314 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.c (Vcharacter_attribute_table): New variable.
4317         (Fchar_attribute_alist): New function.
4318         (Fget_char_attribute): New function.
4319         (Fput_char_attribute): New function.
4320         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4321         too.
4322         (syms_of_mule_charset): Add new function `char-attribute-alist',
4323         `get-char-attribute' and `put-char-attribute'.
4324         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4325
4326 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4327
4328         * mule-charset.c (Fmake_charset): Just use
4329         `get_unallocated_leading_byte'.
4330
4331         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4332         sets; don't use final-byte based number for private sets.
4333
4334 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4335
4336         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4337         integer.
4338
4339 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4342         to 0.9.
4343
4344 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4345
4346         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4347         of `CHAR_LEADING_BYTE' in UTF-2000.
4348
4349         * insdel.c (find_charsets_in_bufbyte_string): Use
4350         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4351         (find_charsets_in_emchar_string): Likewise.
4352
4353         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4354         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4355
4356         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4357         (CHAR_CHARSET_ID): New macro.
4358
4359 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4360
4361         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4362         charset-id - MIN_LEADING_BYTE.
4363         (put_char_table): Likewise.
4364
4365 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4366
4367         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4368         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4369         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4370         (CHARSET_ID_OFFSET): New macro.
4371         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4372         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4373         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4374         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4375         4).
4376         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4377         5).
4378         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4379         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4380         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4381         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4382         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4383
4384 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4385
4386         * mule-charset.c (next_allocated_leading_byte): New variable in
4387         UTF-2000.
4388         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4389         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4390         (get_unallocated_leading_byte): Simply use
4391         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4392         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4393         UTF-2000.
4394
4395         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4396         (MAX_LEADING_BYTE_PRIVATE): New macro.
4397         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4398         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4399
4400 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4401
4402         * mule-charset.c (Fmake_charset): Allocate final-byte based
4403         charset-id for 94-set, 96-set and 94x94-set.
4404
4405 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4406
4407         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4408         ambiguous `else'.
4409         (Fmake_charset): Likewise.
4410         (complex_vars_of_mule_charset): Modify the font registry of
4411         `ucs-bmp' not to match `Ethiopic-Unicode'.
4412
4413 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4414
4415         * mule-charset.c (complex_vars_of_mule_charset): Add font
4416         registory of `ucs-bmp'.
4417
4418 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4419
4420         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4421         coded-charsets in `default-coded-charset-priority-list' when
4422         breaking up a character.
4423
4424         * mule-charset.c (Vcharset_latin_viscii): New variable.
4425         (Qlatin_viscii): New variable.
4426         (make_charset): Don't use `decoding_table'.
4427         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4428         byte_offset.
4429         (Fset_charset_mapping_table): New implementation.
4430         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4431         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4432         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4433         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4434         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4435         charset `latin_viscii'.
4436
4437         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4438         (CHARSET_TYPE_94X94): Change to 1 from 2.
4439         (CHARSET_TYPE_96): Change to 2 from 1.
4440         (CHARSET_TYPE_128): New macro.
4441         (CHARSET_TYPE_128X128): Change to 5 from 4.
4442         (CHARSET_TYPE_256): New macro.
4443         (CHARSET_TYPE_256X256): Change to 7 from 5.
4444         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4445
4446 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4447
4448         * text-coding.c (char_encode_shift_jis): Refer
4449         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4450         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4451
4452         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4453         (char_byte_table_equal): New function in UTF-2000.
4454         (char_byte_table_hash): New function in UTF-2000.
4455         (char_byte_table_description): New constant in UTF-2000.
4456         (char_byte_table): New type in UTF-2000.
4457         (make_char_byte_table): New function in UTF-2000.
4458         (copy_char_byte_table): New function in UTF-2000.
4459         (make_char_code_table): New macro in UTF-2000.
4460         (get_char_code_table): New function in UTF-2000.
4461         (put_char_code_table): New function in UTF-2000.
4462         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4463         (charset_description): Add setting in UTF-2000.
4464         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4465         `CHARSET_TO_BYTE1_TABLE(cs)'.
4466         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4467         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4468         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4469         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4470         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4471         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4472         `CHARSET_TO_BYTE2_TABLE(cs)'.
4473
4474         * char-ucs.h (char_byte_table): New type.
4475         (XCHAR_BYTE_TABLE): New macro.
4476         (XSETCHAR_BYTE_TABLE): New macro.
4477         (CHAR_BYTE_TABLE_P): New macro.
4478         (GC_CHAR_BYTE_TABLE_P): New macro.
4479         (struct Lisp_Char_Byte_Table): New structure.
4480         (get_char_code_table): New interface.
4481         (Emchar_to_byte_table): Deleted.
4482         (get_byte_from_character_table): Deleted.
4483         (struct Lisp_Charset): Add `encoding_table'; delete
4484         `to_byte1_table' and `to_byte2_table'.
4485         (CHARSET_ENCODING_TABLE): New macro.
4486         (CHARSET_TO_BYTE1_TABLE): Deleted.
4487         (CHARSET_TO_BYTE2_TABLE): Deleted.
4488         (XCHARSET_ENCODING_TABLE): New macro.
4489         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4490         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4491
4492 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4493
4494         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4495         `vietnamese-viscii-*'.
4496
4497 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4498
4499         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4500         (Qvietnamese_viscii_upper): New variable.
4501         (Fdefine_charset_alias): New function.
4502         (syms_of_mule_charset): Add new function `define-charset-alias'.
4503         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4504         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4505         `latin-viscii-*'.
4506
4507 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4510         (MAX_CHAR_OBS_94x94): New macro.
4511         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4512         for 94x94 sets.
4513
4514         * mule-charset.c (put_byte_from_character_table): Change unit size
4515         from 128 to 256.
4516         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4517         not defined.
4518         (Fmake_reverse_direction_charset): Modify dummy argument of
4519         `make_charset' for non-UTF-2000 environment.
4520
4521 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4522
4523         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4524
4525         * mule-charset.c (destroy_byte_from_character_table): New macro.
4526         (latin_jisx0201_to_ucs): Deleted.
4527         (latin_iso8859_2_to_ucs): Deleted.
4528         (latin_iso8859_3_to_ucs): Deleted.
4529         (latin_iso8859_4_to_ucs): Deleted.
4530         (latin_iso8859_9_to_ucs): Deleted.
4531         (latin_viscii_lower_to_ucs): Deleted.
4532         (latin_viscii_upper_to_ucs): Deleted.
4533         (mark_charset): Mark `cs->decoding_table'.
4534         (Fcharset_mapping_table): Fix DOC-string.
4535         (Fset_charset_mapping_table): New function.
4536         (syms_of_mule_charset): Add nwe function
4537         `set-charset-mapping-table'.
4538         (complex_vars_of_mule_charset): Don't setup and use
4539         `latin_*_to_ucs'.
4540
4541 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4542
4543         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4544         charset.
4545
4546 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4547
4548         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4549         (Vcharset_katakana_jisx0208): New variable.
4550         (Qhiragana_jisx0208): New variable.
4551         (Qkatakana_jisx0208): New variable.
4552         (make_charset): Add new argument `byte_offset'.
4553         (charset_get_byte1): Modify for new coded-charset definition; use
4554         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4555         `XCHARSET_BYTE_OFFSET'.
4556         (Fmake_charset): Modify for `make_charset'.
4557         (Fmake_reverse_direction_charset): Likewise.
4558         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4559         `katakana-jisx0208'.
4560         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4561         `.'  in font registry of charset `katakana-jisx0201',
4562         `latin-jisx0201', `vietnamese-viscii-lower' and
4563         `vietnamese-viscii-upper'; modify DOC-string of charset
4564         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4565         registry of charset `japanese-jisx0208' not to use font for JIS
4566         X0208:1990; add new charset `hiragana-jisx0208' and
4567         `katakana-jisx0208'.
4568
4569         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4570         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4571         (struct Lisp_Charset): Add `byte_offset'.
4572         (CHARSET_BYTE_OFFSET): New macro.
4573         (XCHARSET_UCS_MIN): New macro.
4574         (XCHARSET_UCS_MAX): New macro.
4575         (XCHARSET_CODE_OFFSET): New macro.
4576         (XCHARSET_BYTE_OFFSET): New macro.
4577         (MIN_CHAR_HIRAGANA): New macro.
4578         (MAX_CHAR_HIRAGANA): New macro.
4579         (MIN_CHAR_KATAKANA): New macro.
4580         (MAX_CHAR_KATAKANA): New macro.
4581         (MAKE_CHAR): Modify for new coded-charset definition; use
4582         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4583         `XCHARSET_BYTE_OFFSET'.
4584
4585 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4586
4587         * mule-charset.c (CHAR96): Deleted.
4588         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4589         <Lisp_Object>.
4590         (latin_iso8859_2_to_ucs): Likewise.
4591         (latin_iso8859_3_to_ucs): Likewise.
4592         (latin_iso8859_4_to_ucs): Likewise.
4593         (latin_iso8859_9_to_ucs): Likewise.
4594         (latin_viscii_lower_to_ucs): Likewise.
4595         (latin_viscii_upper_to_ucs): Likewise.
4596         (latin_tcvn5712_to_ucs): Commented out.
4597         (make_charset): Change type of argument `decoding_table' from
4598         <Emchar*> to <Lisp_Object> [vector of characters].
4599         (Fmake_charset): Modify for `make_charset'.
4600         (Fmake_reverse_direction_charset): Likewise.
4601         (Fcharset_mapping_table): New function in UTF-2000.
4602         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4603         UTF-2000.
4604         (complex_vars_of_mule_charset): Modify for type change of
4605         `*_to_ucs'; modify for `make_charset'.
4606
4607         * char-ucs.h (struct Lisp_Charset): Change type of
4608         `decoding_table' from <Emchar*> to <Lisp_Object>.
4609         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4610
4611 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4612
4613         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4614         error with non-UTF-2000-Mule.
4615
4616 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4617
4618         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4619         in lisp again].
4620         (Vcharset_chinese_cns11643_4): Likewise.
4621         (Vcharset_chinese_cns11643_5): Likewise.
4622         (Vcharset_chinese_cns11643_6): Likewise.
4623         (Vcharset_chinese_cns11643_7): Likewise.
4624         (Qchinese_cns11643_3): Likewise.
4625         (Qchinese_cns11643_4): Likewise.
4626         (Qchinese_cns11643_5): Likewise.
4627         (Qchinese_cns11643_6): Likewise.
4628         (Qchinese_cns11643_7): Likewise.
4629         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4630         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4631         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4632         (complex_vars_of_mule_charset): Likewise.
4633
4634 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4635
4636         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4637         96-set.
4638         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4639         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4640
4641 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4642
4643         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4644         0xFF60.
4645         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4646         (breakup_char_1): Likewise.
4647
4648         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4649         one of them includes the specified character.
4650
4651 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4652
4653         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4654
4655 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4656
4657         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4658
4659 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4660
4661         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4662         definition for non-UTF-2000 Mule.
4663         (latin_iso8859_3_to_ucs): Likewise.
4664         (latin_iso8859_4_to_ucs): Likewise.
4665         (latin_iso8859_9_to_ucs): Likewise.
4666         (latin_jisx0201_to_ucs): Likewise.
4667         (MIN_CHAR_THAI): Likewise.
4668         (MAX_CHAR_THAI): Likewise.
4669         (MIN_CHAR_GREEK): Likewise.
4670         (MAX_CHAR_GREEK): Likewise.
4671         (MIN_CHAR_HEBREW): Likewise.
4672         (MAX_CHAR_HEBREW): Likewise.
4673         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4674         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4675         (MIN_CHAR_CYRILLIC): Likewise.
4676         (MAX_CHAR_CYRILLIC): Likewise.
4677
4678 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4679
4680         * char-ucs.h (breakup_char_1): Use
4681         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4682         thai-tis620 and katakana-jisx0201 area.
4683
4684 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4685
4686         * char-ucs.h (breakup_char_1): Use
4687         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4688         area.
4689
4690         * text-coding.c (reset_encoding_stream): Fixed.
4691         (char_encode_ucs4): Delete `& 255'.
4692
4693         * char-ucs.h (breakup_char_1): Use
4694         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4695
4696 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4697
4698         * file-coding.c (Fmake_coding_system): Don't set up
4699         `codesys->fixed.size'.
4700         (encode_coding_no_conversion): Don't refer
4701         `str->codesys->fixed.size'.
4702
4703 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4704
4705         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4706         (latin_a_char_to_byte1): Deleted.
4707         (latin_a_char_to_byte2): Deleted.
4708
4709 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4710
4711         * mule-charset.c (make_charset): Add new argument `ucs_min',
4712         `ucs_max' and `code_offset'.
4713         (charset_get_byte1): New implementation [delete specific charset
4714         depended implementations].
4715         (Fmake_charset): Modify for `make_charset'.
4716         (Fmake_reverse_direction_charset): Likewise.
4717         (complex_vars_of_mule_charset): Likewise.
4718
4719         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4720         `code_offset'.
4721         (CHARSET_UCS_MIN): New macro.
4722         (CHARSET_UCS_MAX): New macro.
4723         (CHARSET_CODE_OFFSET): New macro.
4724         (MAKE_CHAR): Delete charset depended definitions [except
4725         katakana-jisx0201].
4726
4727 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4728
4729         * char-ucs.h (breakup_char_1): Use
4730         `Vdefault_coded_charset_priority_list' for C0-Controls,
4731         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4732
4733 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4734
4735         * char-ucs.h (charset_get_byte1): New function.
4736         (XCHARSET_GET_BYTE1): Deleted.
4737         (charset_get_byte2): New function.
4738         (XCHARSET_GET_BYTE2): Deleted.
4739         (Vdefault_coded_charset_priority_list): New external variable.
4740         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4741         `Vdefault_preferred_coded_charset_list'.
4742
4743         * mule-charset.c (charset_get_byte1): New function.
4744         (charset_get_byte2): New function.
4745         (Vdefault_coded_charset_priority_list): New variable.
4746         (vars_of_mule_charset): Add new variable
4747         `default-coded-charset-priority-list'.
4748
4749 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4750
4751         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4752         (XCHARSET_GET_BYTE2): New inline function.
4753         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4754         `XCHARSET_GET_BYTE2'.
4755
4756 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4757
4758         * mule-charset.c (make_charset): Initialize
4759         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4760         NULL if table is not defined.
4761
4762 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4763
4764         * text-coding.c (char_encode_shift_jis): Use
4765         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4766         `ucs_to_latin_jisx0201'.
4767
4768         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4769         (ucs_to_latin_iso8859_2): Deleted.
4770         (ucs_to_latin_iso8859_3): Deleted.
4771         (ucs_to_latin_iso8859_4): Deleted.
4772         (ucs_to_latin_iso8859_9): Deleted.
4773         (ucs_to_latin_viscii_lower): Deleted.
4774         (ucs_to_latin_viscii_upper): Deleted.
4775         (ucs_to_latin_tcvn5712): Deleted.
4776         (make_charset): Add new argument `decoding_table'; set up
4777         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4778         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4779         `decoding_table' is defined in UTF-2000.
4780         (Fmake_charset): Modify for `make_charset'.
4781         (Fmake_reverse_direction_charset): Likewise.
4782         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4783         and `GENERATE_96_SET'.
4784
4785         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4786         (ucs_to_latin_jisx0201): Deleted.
4787         (latin_iso8859_2_to_ucs): Deleted.
4788         (ucs_to_latin_iso8859_2): Deleted.
4789         (latin_iso8859_3_to_ucs): Deleted.
4790         (ucs_to_latin_iso8859_3): Deleted.
4791         (latin_iso8859_4_to_ucs): Deleted.
4792         (ucs_to_latin_iso8859_4): Deleted.
4793         (latin_iso8859_9_to_ucs): Deleted.
4794         (ucs_to_latin_iso8859_9): Deleted.
4795         (latin_viscii_lower_to_ucs): Deleted.
4796         (ucs_to_latin_viscii_lower): Deleted.
4797         (latin_viscii_upper_to_ucs): Deleted.
4798         (ucs_to_latin_viscii_upper): Deleted.
4799         (struct Lisp_Charset): Renamed `encoding_table' to
4800         `to_byte1_table'; add `to_byte2_table'.
4801         (CHARSET_DECODING_TABLE): New macro.
4802         (CHARSET_TO_BYTE1_TABLE): New macro.
4803         (CHARSET_TO_BYTE2_TABLE): New macro.
4804         (XCHARSET_DECODING_TABLE): New macro.
4805         (XCHARSET_TO_BYTE1_TABLE): New macro.
4806         (XCHARSET_TO_BYTE2_TABLE): New macro.
4807         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4808         tables.
4809         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4810         don't use `ucs_to_*' tables.
4811
4812 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4813
4814         * text-coding.c (Fmake_coding_system): Don't set up
4815         `codesys->fixed.size'.
4816         (encode_coding_no_conversion): Use `if' instead of `switch'.
4817
4818         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4819
4820 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4821
4822         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4823         (Fmake_charset): Modify for `make_charset'.
4824         (Fmake_reverse_direction_charset): Likewise.
4825         (complex_vars_of_mule_charset): Likewise.
4826
4827 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4828
4829         * text-coding.c (char_encode_shift_jis): Use table
4830         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4831
4832 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4833
4834         * text-coding.c (text_encode_generic): Use `if' instead of
4835         `switch'.
4836         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4837         decode JIS-Latin.
4838
4839 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4840
4841         * text-coding.c (encode_coding_sjis): Deleted.
4842         (char_encode_shift_jis): New function.
4843         (char_finish_shift_jis): New function.
4844         (reset_encoding_stream): Set up `encode_char' and `finish' for
4845         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4846         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4847         (char_encode_utf8): Treat `eol_type'.
4848
4849 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * file-coding.c (decode_coding_iso2022): Use
4852         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4853
4854 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4855
4856         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4857         to 0.7 (Hirano).
4858
4859 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * char-lb.h (CHAR_COLUMNS): New macro.
4862
4863 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4864
4865         * text-coding.c (char_encode_ucs4): New function.
4866         (char_finish_ucs4): New function.
4867         (encode_coding_ucs4): Deleted.
4868         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4869         (text_encode_generic): Delete local variable `charset' and `half'.
4870         (ucs_to_mule_table): Deleted.
4871         (mule_to_ucs_table): Deleted.
4872         (Fset_ucs_char): Deleted.
4873         (ucs_to_char): Deleted.
4874         (Fucs_char): Deleted.
4875         (Fset_char_ucs): Deleted.
4876         (Fchar_ucs): Deleted.
4877         (decode_ucs4): Deleted.
4878         (mule_char_to_ucs4): Deleted.
4879         (encode_ucs4): Deleted.
4880         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4881         (decode_coding_utf8): Likewise.
4882         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4883         (char_encode_iso2022): Fixed.
4884         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4885         `Fset_char_ucs' and `Fchar_ucs'.
4886         (complex_vars_of_file_coding): Don't initialize
4887         `ucs_to_mule_table'.
4888
4889         * objects-tty.c (tty_initialize_font_instance): Don't use
4890         `XCHARSET_COLUMNS'.
4891
4892         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4893         UTF-2000.
4894
4895         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4896         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4897
4898         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4899         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4900         (emchar_string_displayed_columns): Likewise.
4901
4902         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4903         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4904         (string_column_at_point): Likewise.
4905         (Fmove_to_column): Likewise.
4906
4907         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4908         `encoding_table' and `decoding_table'.
4909         (CHARSET_REP_BYTES): Deleted.
4910         (XCHARSET_REP_BYTES): Deleted.
4911         (XCHARSET_COLUMNS): Deleted.
4912         (CHAR_COLUMNS): New macro.
4913         (lookup_composite_char): Deleted unconditionally.
4914         (composite_char_string): Likewise.
4915
4916 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4917
4918         * char-ucs.h (Emchar_to_byte_table): New type.
4919         (get_byte_from_character_table): New function interface.
4920         (Vcharset_latin_jisx0201): New variable.
4921         (latin_jisx0201_to_ucs): New variable.
4922         (ucs_to_latin_jisx0201): New variable.
4923         (Vcharset_latin_iso8859_2): New variable.
4924         (latin_iso8859_2_to_ucs): New variable.
4925         (ucs_to_latin_iso8859_2): New variable.
4926         (Vcharset_latin_iso8859_3): New variable.
4927         (latin_iso8859_3_to_ucs): New variable.
4928         (ucs_to_latin_iso8859_3): New variable.
4929         (Vcharset_latin_iso8859_4): New variable.
4930         (latin_iso8859_4_to_ucs): New variable.
4931         (ucs_to_latin_iso8859_4): New variable.
4932         (Vcharset_latin_iso8859_9): New variable.
4933         (latin_iso8859_9_to_ucs): New variable.
4934         (ucs_to_latin_iso8859_9): New variable.
4935         (Vcharset_latin_viscii_lower): New variable.
4936         (latin_viscii_lower_to_ucs): New variable.
4937         (ucs_to_latin_viscii_lower): New variable.
4938         (Vcharset_latin_viscii_upper): New variable.
4939         (latin_viscii_upper_to_ucs): New variable.
4940         (ucs_to_latin_viscii_upper): New variable.
4941         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4942         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4943         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4944         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4945         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4946         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4947         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4948         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4949         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4950         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4951
4952         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4953         (Vcharset_latin_viscii_upper): New variable.
4954         (make_byte_from_character_table): New function.
4955         (put_byte_from_character_table): New function.
4956         (get_byte_from_character_table): New function.
4957         (CHAR96): New macro.
4958         (ucs_to_latin_jisx0201): New variable.
4959         (latin_jisx0201_to_ucs): New variable.
4960         (ucs_to_latin_iso8859_2): New variable.
4961         (latin_iso8859_2_to_ucs): New variable.
4962         (ucs_to_latin_iso8859_3): New variable.
4963         (latin_iso8859_3_to_ucs): New variable.
4964         (ucs_to_latin_iso8859_4): New variable.
4965         (latin_iso8859_4_to_ucs): New variable.
4966         (ucs_to_latin_iso8859_9): New variable.
4967         (latin_iso8859_9_to_ucs): New variable.
4968         (ucs_to_latin_viscii_lower): New variable.
4969         (latin_viscii_lower_to_ucs): New variable.
4970         (ucs_to_latin_viscii_upper): New variable.
4971         (latin_viscii_upper_to_ucs): New variable.
4972         (ucs_to_latin_tcvn5712): New variable.
4973         (latin_tcvn5712_to_ucs): New variable.
4974         (Qlatin_viscii_lower): New variable.
4975         (Qlatin_viscii_upper): New variable.
4976         (syms_of_mule_charset): Set up new symbol
4977         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4978         (complex_vars_of_mule_charset): Set up new charset
4979         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4980         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4981         `ucs_to_<CHARSET>' tables.
4982
4983 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4984
4985         * text-coding.c: New file.
4986
4987 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4988
4989         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4990
4991         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4992         (MAKE_CHAR): Modify for `ucs-bmp'.
4993         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4994         non-MULE characters of BMP.
4995
4996 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4997
4998         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4999         to 0.6.
5000
5001 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5002
5003         * lstream.h:
5004         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5005         - Include character.h for `CHAR_ASCII_P'.
5006
5007         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5008
5009         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5010         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5011
5012         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5013         (BYTE_C0_P): Likewise.
5014         (BYTE_C1_P): Likewise.
5015         (Lstream_get_emchar_1): Likewise.
5016         (Lstream_fput_emchar): Likewise.
5017         (Lstream_funget_emchar): Likewise.
5018         (copy_internal_to_external): Likewise.
5019         (copy_external_to_internal): Likewise.
5020
5021         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5022         (BYTE_C0_P): Likewise.
5023         (BYTE_C1_P): Likewise.
5024         (Lstream_get_emchar_1): Likewise.
5025         (Lstream_fput_emchar): Likewise.
5026         (Lstream_funget_emchar): Likewise.
5027         (copy_internal_to_external): Likewise.
5028         (copy_external_to_internal): Likewise.
5029
5030         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5031         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5032
5033         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5034         (BYTE_ASCII_P): Moved to mb-1byte.h.
5035
5036 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5037
5038         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5039
5040         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5041         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5042         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5043         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5044         (VALIDATE_CHARPTR_FORWARD): Likewise.
5045         (simple_charptr_emchar): Moved to mb-multibyte.h.
5046         (simple_set_charptr_emchar): Likewise.
5047         (simple_charptr_copy_char): Likewise.
5048         (non_ascii_charptr_emchar): Likewise.
5049         (non_ascii_set_charptr_emchar): Likewise.
5050         (non_ascii_charptr_copy_char): Likewise.
5051         (charptr_emchar): Moved to mb-*byte.h.
5052         (set_charptr_emchar): Likewise.
5053         (charptr_copy_char): Likewise.
5054
5055         * mb-1byte.h, mb-multibyte.h: New files.
5056
5057 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5058
5059         * mb-utf-8.h (MULTIBYTE): New macro.
5060         (MAX_EMCHAR_LEN): Moved from buffer.h.
5061         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5062
5063         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5064
5065         * mb-lb.h, multibyte.h: New files.
5066
5067         * char-1byte.h (Charset_ID): Moved from buffer.h.
5068         (MIN_LEADING_BYTE): Likewise.
5069         (LEADING_BYTE_ASCII): Likewise.
5070         (NUM_LEADING_BYTES): Likewise.
5071         (CHARSETP): Likewise.
5072         (CHARSET_BY_LEADING_BYTE): Likewise.
5073         (XCHARSET_LEADING_BYTE): Likewise.
5074         (XCHARSET_GRAPHIC): Likewise.
5075         (XCHARSET_COLUMNS): Likewise.
5076         (XCHARSET_DIMENSION): Likewise.
5077         (CHAR_CHARSET): Likewise.
5078         (CHAR_LEADING_BYTE): Likewise.
5079         (BREAKUP_CHAR): Likewise.
5080         (Vcharset_ascii): Likewise.
5081
5082         * buffer.h: Include multibyte.h unconditionally.
5083         (VALID_CHARPTR_P): Moved to multibyte.h.
5084         (ASSERT_VALID_CHARPTR): Likewise.
5085         (REAL_INC_CHARPTR): Likewise.
5086         (REAL_INC_CHARBYTIND): Likewise.
5087         (REAL_DEC_CHARPTR): Likewise.
5088         (INC_CHARPTR): Likewise.
5089         (INC_CHARBYTIND): Likewise.
5090         (DEC_CHARPTR): Likewise.
5091         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5092         (VALIDATE_CHARPTR_FORWARD): Likewise.
5093         (charptr_n_addr): Likewise.
5094         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5095         (simple_charptr_emchar): Moved to multibyte.h.
5096         (simple_set_charptr_emchar): Likewise.
5097         (simple_charptr_copy_char): Likewise.
5098         (non_ascii_charptr_emchar): Likewise.
5099         (non_ascii_set_charptr_emchar): Likewise.
5100         (non_ascii_charptr_copy_char): Likewise.
5101         (charptr_emchar): Likewise.
5102         (set_charptr_emchar): Likewise.
5103         (charptr_copy_char): Likewise.
5104         (charptr_emchar_n): Likewise.
5105         (Charset_ID): Moved to char-1byte.h.
5106         (Vcharset_ascii): Likewise.
5107         (CHAR_CHARSET): Likewise.
5108         (CHAR_LEADING_BYTE): Likewise.
5109         (LEADING_BYTE_ASCII): Likewise.
5110         (NUM_LEADING_BYTES): Likewise.
5111         (MIN_LEADING_BYTE): Likewise.
5112         (CHARSETP): Likewise.
5113         (CHARSET_BY_LEADING_BYTE): Likewise.
5114         (XCHARSET_LEADING_BYTE): Likewise.
5115         (XCHARSET_GRAPHIC): Likewise.
5116         (XCHARSET_COLUMNS): Likewise.
5117         (XCHARSET_DIMENSION): Likewise.
5118         (BREAKUP_CHAR): Likewise.
5119
5120 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5121
5122         * character.h: Add document about interface for characters.
5123
5124         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5125         (MAKE_CHAR): Delete comment about
5126         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5127         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5128         (BREAKUP_CHAR): Modify name of arguments.
5129         (CHAR_CHARSET): Modify name of argument.
5130
5131         * buffer.h: Delete document about Emchar accessors.
5132
5133 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5134
5135         * character.h (CHAR_INTP): Moved from buffer.h
5136         (CHAR_OR_CHAR_INTP): Likewise.
5137         (XCHAR_OR_CHAR_INT): Likewise.
5138         (CHECK_CHAR_COERCE_INT): Likewise.
5139
5140         * buffer.h (CHAR_INTP): Moved to character.h
5141         (CHAR_OR_CHAR_INTP): Likewise.
5142         (XCHAR_OR_CHAR_INT): Likewise.
5143         (CHECK_CHAR_COERCE_INT): Likewise.
5144
5145 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5146
5147         * character.h:
5148         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5149         - Include char-1byte.h, char-lb.h or char-ucs.h.
5150
5151         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5152
5153         * buffer.h: Include character unconditionally.
5154         (valid_char_p): Moved to char-*.h.
5155         (non_ascii_valid_char_p): Moved to char-lb.h.
5156
5157         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5158
5159 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5160
5161         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5162         in UTF-2000 because it is not ported yet and not to use
5163         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5164         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5165         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5166
5167         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5168         (CHAR_ASCII_P): Moved from character.h.
5169
5170         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5171         (CHAR_ASCII_P): Likewise.
5172         (CHAR_FIELD1_MASK): Deleted.
5173         (CHAR_FIELD2_MASK): Deleted.
5174         (CHAR_FIELD3_MASK): Deleted.
5175         (MAX_CHAR_BASIC_LATIN): New macro.
5176         (CHAR_FIELD1): Deleted.
5177         (CHAR_FIELD2_INTERNAL): Deleted.
5178         (CHAR_FIELD3_INTERNAL): Deleted.
5179         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5180         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5181         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5182         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5183         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5184         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5185         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5186         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5187         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5188         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5189         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5190         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5191         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5192         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5193         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5194         (MIN_CHAR_COMPOSITION): Deleted.
5195         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5196         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5197
5198 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5199
5200         * buffer.h: Include mb-utf-8.h in UTF-2000.
5201
5202         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5203
5204         * mb-utf-8.h: New file.
5205
5206 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5207
5208         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5209         instead of `int'.
5210
5211         * mule-charset.h, buffer.h (Charset_ID): New type.
5212
5213 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5214
5215         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5216         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5217         instead of `MULE_CHAR_PRIVATE_OFFSET',
5218         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5219         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5220         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5221
5222         * character.h (Vcharset_japanese_jisx0212): New variable
5223         definition.
5224
5225 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5226
5227         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5228         (charset_by_attributes): Delete array about direction.
5229         (latin_a_char_to_charset): New variable in UTF-2000.
5230         (latin_a_char_to_byte1): New variable in UTF-2000.
5231         (latin_a_char_to_byte2): New variable in UTF-2000.
5232         (Qucs_bmp): New variable.
5233         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5234         `Bufbyte'.
5235         (next_allocated_2_byte_leading_byte): Likewise.
5236         (non_ascii_set_charptr_emchar): Likewise.
5237         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5238         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5239         `charset_by_attributes'.
5240         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5241         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5242         and `CHARSET_BY_LEADING_BYTE'.
5243         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5244         `utf-2000-version' to `vars_of_mule_charset'.
5245         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5246         define `leading-code-private-11' in UTF-2000; move setting of
5247         `utf-2000-version' from `syms_of_mule_charset'.
5248         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5249         UTF-2000.
5250
5251         * character.h (Charset_ID): New type.
5252         (LEADING_BYTE_UCS_BMP): New macro.
5253         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5254         (CHARSET_ID_OFFSET_94): New macro.
5255         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5256         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5257         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5258         final-byte.
5259         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5260         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5261         (CHARSET_ID_OFFSET_96): New macro.
5262         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5263         CHARSET_ID_OFFSET_96 and final-byte.
5264         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5265         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5266         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5267         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5268         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5269         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5270         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5271         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5272         (LEADING_BYTE_THAI_TIS620): Likewise.
5273         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5274         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5275         (CHARSET_ID_OFFSET_94x94): New macro.
5276         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5277         CHARSET_ID_OFFSET_94x94 and final-byte.
5278         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5279         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5280         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5281         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5282         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5283         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5284         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5285         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5286         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5287         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5288         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5289         (CHARSET_TYPE_128X128): New macro.
5290         (CHARSET_TYPE_256X256): New macro.
5291         (XCHARSET_PRIVATE_P): Delete unconditionally.
5292         (charset_by_attributes): Delete array about direction.
5293         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5294         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5295         (MIN_CHAR_94): New macro.
5296         (MAX_CHAR_94): New macro.
5297         (MIN_CHAR_96): New macro.
5298         (MAX_CHAR_96): New macro.
5299         (MIN_CHAR_94x94): New macro.
5300         (MAX_CHAR_94x94): New macro.
5301         (MIN_CHAR_96x96): New macro.
5302         (MAX_CHAR_96x96): New macro.
5303         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5304         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5305         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5306         - 32)'.
5307         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5308         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5309         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5310         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5311         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5312         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5313         `XCHARSET_LEADING_BYTE' to make code-point.
5314         (latin_a_char_to_charset): New variable.
5315         (latin_a_char_to_byte1): New variable.
5316         (latin_a_char_to_byte2): New variable.
5317         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5318         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5319         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5320
5321         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5322         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5323         (find_charsets_in_emchar_string): Likewise.
5324         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5325
5326         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5327         `int'.
5328         (decode_coding_iso2022): Likewise.
5329
5330         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5331         of `unsigned char'.
5332
5333         * redisplay.c (redisplay_text_width_emchar_string): Use
5334         `Charset_ID' instead of `unsigned char'.
5335         (redisplay_frame_text_width_string): Likewise.
5336
5337         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5338         `unsigned char'.
5339
5340         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5341         instead of `unsigned char'.
5342         (face_cachel_charset_font_metric_info): Likewise.
5343
5344         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5345         (get_non_ascii_char_table_value): Likewise.
5346         (get_char_table): Likewise.
5347         (put_char_table): Likewise.
5348         (map_over_other_charset): Likewise.
5349         (map_char_table): Likewise.
5350
5351         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5352         instead of `unsigned char'.
5353
5354 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5355
5356         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5357         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5358
5359         * mule-charset.c (leading_code_private_11): Don't define in
5360         UTF-2000.
5361
5362         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5363         in UTF-2000 because it is not ported yet and not to use
5364         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5365
5366 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5367
5368         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5369
5370 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5371
5372         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5373         in UTF-2000.
5374
5375         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5376         of unsigned char to store leading-byte.
5377
5378         * chartab.c (get_non_ascii_char_table_value): Don't use
5379         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5380
5381         * file-coding.c (encode_coding_big5): Delete bogus implementation
5382         in UTF2000.
5383
5384         * character.h (LEADING_BYTE_*): Delete definition for
5385         non-UTF-2000.
5386         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5387         (LEADING_BYTE_PREFIX_P): Deleted.
5388         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5389         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5390         (BUFBYTE_LEADING_BYTE_P): Deleted.
5391         (CHARSET_PRIVATE_P): Deleted unconditionally.
5392         (rep_bytes_by_first_byte): Deleted unconditionally.
5393         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5394         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5395         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5396         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5397         (CHAR_FIELD2): Deleted.
5398         (CHAR_FIELD3): Deleted.
5399         (MAKE_CHAR): Delete definition for non-UTF-2000.
5400         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5401         (breakup_char_1): New implementation.
5402         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5403         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5404
5405 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5406
5407         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5408         condition.
5409
5410 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5411
5412         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5413         (CHARSET_PRIVATE_P): Likewise.
5414         (XCHARSET_PRIVATE_P): Likewise.
5415         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5416
5417         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5418         UTF2000.
5419         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5420
5421 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5422
5423         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5424         (NUM_LEADING_BYTES): Changed from 128 to 256.
5425         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5426         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5427         UTF2000.
5428         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5429
5430         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5431         UTF2000.
5432         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5433         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5434         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5435         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5436         (Qchinese_cns11643_3): New variable in UTF2000.
5437         (Qchinese_cns11643_4): New variable in UTF2000.
5438         (Qchinese_cns11643_5): New variable in UTF2000.
5439         (Qchinese_cns11643_6): New variable in UTF2000.
5440         (Qchinese_cns11643_7): New variable in UTF2000.
5441         (syms_of_mule_charset): Define `chinese-cns11643-3',
5442         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5443         and `chinese-cns11643-7' in UTF2000.
5444         (vars_of_mule_charset): Initialize
5445         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5446         + 1 in UTF2000.
5447         (complex_vars_of_mule_charset): Setup charset
5448         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5449         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5450
5451 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5452
5453         * mule-charset.c: Move setting for `leading-code-private-11' from
5454         `syms_of_mule_charset' to `vars_of_mule_charset'.
5455
5456 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5459         and `NUM_LEADING_BYTES' in assert.
5460
5461 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5462
5463         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5464         instead of 128.
5465         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5466         `NUM_LEADING_BYTES' instead of 128.
5467
5468 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5469
5470         * mule-charset.h (charset_by_leading_byte): Use
5471         `NUM_LEADING_BYTES' instead of 128.
5472         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5473
5474         * mule-charset.c (charset_by_leading_byte): Use
5475         `NUM_LEADING_BYTES' instead of 128.
5476         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5477
5478         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5479         128.
5480
5481 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5482
5483         * mule-charset.c (syms_of_mule_charset): Update to
5484         0.4 (Shin-Imamiya).
5485
5486 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5487
5488         * file-coding.c (encode_coding_sjis): New implementation for
5489         UTF2000.  (decode_coding_sjis): Ditto.
5490
5491 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5492
5493         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5494         Don't define in UTF2000.
5495
5496         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5497         defined.
5498
5499         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5500         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5501         MULE.
5502
5503 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5504
5505         * config.h.in (CHAR_IS_UCS4): New macro.
5506
5507         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5508         conventional MULE representation.
5509         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5510
5511         * mule-charset.h: Reverted to original.
5512
5513         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5514         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5515         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5516
5517         * character.h: New file.
5518
5519         * file-coding.c (Fmake_coding_system): Set 1 to
5520         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5521         defined.
5522         (encode_coding_no_conversion): New implementation for UTF2000.
5523
5524         * file-coding.h (struct Lisp_Coding_System): Add new member
5525         `fixed.size'.
5526
5527 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5528
5529         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5530         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5531         (encode_coding_iso2022): New implementation for UTF2000.
5532
5533 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5534
5535         * mule-canna.c (c2mu): New implementation for UTF2000.
5536         (m2c): Likewise.
5537
5538 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5539
5540         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5541
5542 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5543
5544         * file-coding.c (reset_encoding_stream): Set 0 to
5545         `str->iso2022.current_char_boundary' in UTF2000.
5546         (encode_utf8): Don't define in UTF2000.
5547         (encode_coding_utf8): New implementation for UTF-8 representation
5548         of UTF2000.
5549         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5550
5551 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5552
5553         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5554
5555         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5556         UTF2000.
5557         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5558
5559         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5560
5561         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5562         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5563         as UTF-8 in UTF2000.
5564         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5565         (non_ascii_valid_char_p): Don't define in UTF2000.
5566         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5567         (Lstream_get_emchar_1): Likewise.
5568         (utf-2000-version): New variable in UTF2000.
5569
5570         * lread.c (read_escape): Add new reader `u'.
5571
5572         * insdel.c (three_to_one_table): Don't define in UTF2000.
5573         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5574         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5575         UTF2000.
5576         (bytind_to_bufpos_func): Likewise.
5577         (buffer_mule_signal_inserted_region): Likewise.
5578         (vars_of_insdel): Don't initialize `three_to_one_table'.
5579         (init_buffer_text): Use `buf->text->mule_size' instead of
5580         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5581         UTF2000.
5582
5583         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5584         UTF-8 representation in UTF2000.
5585         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5586         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5587         (decode_coding_iso2022): Don't define local variable `lb' in
5588         UTF2000; don't use LEADING_BYTE in UTF2000; use
5589         `DECODE_ADD_UCS_CHAR' in UTF2000.
5590         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5591
5592         * config.h.in (UTF2000): New macro.
5593
5594         * buffer.h (struct buffer_text): Add new member `mule_size' and
5595         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5596         (valid_char_p): Return always 1 in UTF2000.
5597         (MAX_EMCHAR_LEN): 6 in UTF2000.
5598         (three_to_one_table): Don't define in UTF2000.
5599         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5600         UTF2000.
5601         (real_bytind_to_bufpos): Likewise.
5602
5603         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5604
5605 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5606
5607         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5608         representation change.
5609         (Vutf_2000_version): New variable.
5610         (leading_code_private_11): New variable.
5611         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5612         `leading-code-private-11'.
5613
5614         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5615         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5616         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5617         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5618         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5619         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5620         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5621         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5622         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5623         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5624         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5625         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5626         (MIN_CHAR_GREEK): New macro.
5627         (MAX_CHAR_GREEK): New macro.
5628         (MIN_CHAR_CYRILLIC): New macro.
5629         (MAX_CHAR_CYRILLIC): New macro.
5630         (MIN_CHAR_HEBREW): New macro.
5631         (MAX_CHAR_HEBREW): New macro.
5632         (MIN_CHAR_THAI): New macro.
5633         (MAX_CHAR_THAI): New macro.
5634         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5635         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5636         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5637         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5638         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5639         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5640         (CHAR_FIELD2): New inline function.
5641         (CHAR_FIELD3): New inline function.
5642         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5643         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5644         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5645         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5646         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5647         (MIN_CHAR_COMPOSITION): Likewise.
5648         (CHAR_LEADING_BYTE): Modified for character representation change.
5649         (MAKE_CHAR): Likewise.
5650
5651         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5652         (Vcharset_greek_iso8859_7): Likewise.
5653         (Vcharset_cyrillic_iso8859_5): Likewise.
5654         (Vcharset_hebrew_iso8859_8): Likewise.
5655         (Vcharset_thai_tis620): Likewise.
5656         (Vcharset_katakana_jisx0201): Likewise.
5657
5658 2005-02-06  Vin Shelton <acs@xemacs.org>
5659
5660         * XEmacs 21.4.17 is released
5661
5662 2005-01-31  Ben Wing  <ben@xemacs.org>
5663
5664         * emacs.c:
5665         Define assert_failed() always.
5666         * lisp.h:
5667         Always define ABORT().
5668
5669 2005-01-25  Ben Wing  <ben@xemacs.org>
5670
5671         * Makefile.in.in:
5672         * Makefile.in.in (%.o):
5673         Don't compile executable as Windows (-mwindows) under Cygwin.
5674         Semi-recent changes to Cygwin's executable-startup handling make
5675         it impossible to access the TTY this way.
5676
5677         Don't use special linker file under Cygwin (cygwin.sc) except
5678         when non-PDUMP (even in this case it is highly questionable); you
5679         get errors like
5680
5681       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5682    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5683
5684 2005-01-29  Ben Wing  <ben@xemacs.org>
5685
5686         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5687
5688         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5689
5690 2005-01-29  Ben Wing  <ben@xemacs.org>
5691
5692         * bytecode.c (optimize_compiled_function):
5693         * print.c (FROB):
5694         * print.c (long_to_string):
5695         Add casts to avoid warning.
5696         
5697         * glyphs-eimage.c:
5698         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5699         #### The better solution is to move the TIFF and JPEG code to
5700         different files.
5701         
5702         * glyphs-msw.c (mswindows_xbm_instantiate):
5703         Define __STDC__ to avoid problems with compface.h.
5704         
5705         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5706         * EmacsShell-sub.c:
5707         * EmacsShell-sub.c (ABORT):
5708         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5709         * EmacsShell-sub.c (RootGeometryManager):
5710         * EmacsShell.c:
5711         * EmacsShell.c (ABORT):
5712         * EmacsShell.c (EmacsShellUpdateSizeHints):
5713         * alloc.c (free_lcrecord):
5714         * alloca.c (i00afunc):
5715         * buffer.c (delete_from_buffer_alist):
5716         * buffer.c (MARKED_SLOT):
5717         * bytecode.c (execute_rare_opcode):
5718         * bytecode.c (optimize_byte_code):
5719         * bytecode.c (Ffetch_bytecode):
5720         * chartab.c (char_table_type_to_symbol):
5721         * chartab.c (Freset_char_table):
5722         * chartab.c (decode_char_table_range):
5723         * chartab.c (Fget_range_char_table):
5724         * chartab.c (check_valid_char_table_value):
5725         * chartab.c (map_char_table):
5726         * chartab.c (slow_map_char_table_fun):
5727         * chartab.c (chartab_instantiate):
5728         * cm.c (cmcheckmagic):
5729         * console-msw.c (DHEADER):
5730         * console.c (MARKED_SLOT):
5731         * data.c (finish_marking_weak_lists):
5732         * data.c (encode_weak_list_type):
5733         * debug.h (DASSERT):
5734         * device-gtk.c (gtk_init_device):
5735         * device-msw.c (mswindows_get_default_margin):
5736         * device-tty.c (tty_init_device):
5737         * device-x.c (get_device_from_display):
5738         * device-x.c (x_get_visual_depth):
5739         * doprnt.c (parse_doprnt_spec):
5740         * doprnt.c (get_doprnt_args):
5741         * dumper.c (pdump_get_indirect_count):
5742         * dumper.c (pdump_register_sub):
5743         * dumper.c (pdump_register_object):
5744         * dumper.c (pdump_register_struct):
5745         * dumper.c (pdump_dump_data):
5746         * dumper.c (pdump_reloc_one):
5747         * elhash.c (print_hash_table):
5748         * elhash.c (make_standard_lisp_hash_table):
5749         * elhash.c (hash_table_instantiate):
5750         * emacs.c:
5751         * emacs.c (Fforce_debugging_signal):
5752         * emacs.c (sort_args):
5753         * emacs.c (main):
5754         * emacs.c (assert_failed):
5755         * eval.c (throw_or_bomb_out):
5756         * eval.c (signal_1):
5757         * eval.c (Fsignal):
5758         * event-Xt.c:
5759         * event-Xt.c (emacs_Xt_mapping_action):
5760         * event-Xt.c (Xt_process_to_emacs_event):
5761         * event-msw.c:
5762         * event-stream.c (check_event_stream_ok):
5763         * event-stream.c (Fadd_timeout):
5764         * event-stream.c (Fadd_async_timeout):
5765         * event-stream.c (Fdiscard_input):
5766         * event-stream.c (execute_internal_event):
5767         * event-stream.c (Frecent_keys):
5768         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5769         * event-stream.c (lookup_command_event):
5770         * event-unixoid.c (poll_fds_for_input):
5771         * events.c:
5772         * events.c (mark_event):
5773         * events.c (event_equal):
5774         * events.c (event_hash):
5775         * events.c (Fmake_event):
5776         * events.c (Fdeallocate_event):
5777         * events.c (event_chain_find_previous):
5778         * events.c (event_to_character):
5779         * events.c (format_event_object):
5780         * events.c (Fevent_type):
5781         * events.c (event_pixel_translation):
5782         * events.c (Fevent_properties):
5783         * extents.c (extent_in_region_p):
5784         * extents.c (print_extent):
5785         * extents.c (process_extents_for_insertion_mapper):
5786         * extents.c (report_extent_modification_mapper):
5787         * extents.c (glyph_layout_to_symbol):
5788         * faces.c (face_validate):
5789         * file-coding.c (eol_type_to_symbol):
5790         * file-coding.c (subsidiary_coding_system):
5791         * file-coding.c (Fcoding_system_type):
5792         * file-coding.c (Fcoding_system_property):
5793         * file-coding.c (mule_decode):
5794         * file-coding.c (mule_encode):
5795         * file-coding.c (encode_coding_ucs4):
5796         * file-coding.c (encode_coding_utf8):
5797         * file-coding.c (parse_iso2022_esc):
5798         * file-coding.c (encode_coding_iso2022):
5799         * fileio.c:
5800         * fns.c (concat):
5801         * fns.c (Fsubseq):
5802         * fns.c (mapcar1):
5803         * fns.c (Fbase64_encode_region):
5804         * fns.c (Fbase64_encode_string):
5805         * fns.c (Fbase64_decode_region):
5806         * fns.c (Fbase64_decode_string):
5807         * font-lock.c (find_context):
5808         * font-lock.c (context_to_symbol):
5809         * frame-gtk.c (gtk_set_frame_pointer):
5810         * frame-gtk.c (gtk_update_frame_external_traits):
5811         * frame-x.c (x_wm_mark_shell_size_user_specified):
5812         * frame-x.c (x_wm_mark_shell_position_user_specified):
5813         * frame-x.c (x_wm_set_shell_iconic_p):
5814         * frame-x.c (x_wm_set_cell_size):
5815         * frame-x.c (x_wm_set_variable_size):
5816         * frame-x.c (x_wm_store_class_hints):
5817         * frame-x.c (x_wm_maybe_store_wm_command):
5818         * frame-x.c (x_initialize_frame_size):
5819         * frame-x.c (x_update_frame_external_traits):
5820         * frame.c:
5821         * frame.c (delete_frame_internal):
5822         * frame.c (mouse_pixel_position_1):
5823         * frame.c (change_frame_size_1):
5824         * free-hook.c (check_free):
5825         * free-hook.c (check_realloc):
5826         * free-hook.c (note_block_input):
5827         * free-hook.c (log_gcpro):
5828         * gccache-gtk.c (gc_cache_lookup):
5829         * glyphs-eimage.c (tiff_memory_write):
5830         * glyphs-gtk.c (gtk_finalize_image_instance):
5831         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5832         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5833         * glyphs-gtk.c (gtk_xpm_instantiate):
5834         * glyphs-gtk.c (gtk_unmap_subwindow):
5835         * glyphs-gtk.c (gtk_map_subwindow):
5836         * glyphs-gtk.c (gtk_button_redisplay):
5837         * glyphs-msw.c:
5838         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5839         * glyphs-x.c (init_image_instance_from_xbm_inline):
5840         * glyphs-x.c (extract_xpm_color_names):
5841         * glyphs-x.c (x_xpm_instantiate):
5842         * glyphs.c (get_image_instantiator_governing_domain):
5843         * glyphs.c (print_image_instance):
5844         * glyphs.c (image_instance_equal):
5845         * glyphs.c (image_instance_hash):
5846         * glyphs.c (encode_image_instance_type):
5847         * glyphs.c (make_image_instance_1):
5848         * glyphs.c (inherit_instantiate):
5849         * glyphs.c (image_instantiate):
5850         * glyphs.c (allocate_glyph):
5851         * glyphs.c (Fglyph_type):
5852         * glyphs.c (redisplay_subwindow):
5853         * glyphs.c (display_table_entry):
5854         * gtk-glue.c (xemacs_list_to_gtklist):
5855         * gtk-glue.c (xemacs_gtklist_to_list):
5856         * gtk-glue.c (xemacs_list_to_array):
5857         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5858         * gutter.c (gutter_was_visible):
5859         * gutter.c (get_gutter_coords):
5860         * input-method-xlib.c (get_XIM_input):
5861         * insdel.c (bufpos_to_bytind_func):
5862         * insdel.c (bytind_to_bufpos_func):
5863         * insdel.c (move_gap):
5864         * intl.c (x_get_composed_input):
5865         * keymap.c (keymap_lookup_directly):
5866         * keymap.c (keymap_delete_inverse_internal):
5867         * keymap.c (ensure_meta_prefix_char_keymapp):
5868         * keymap.c (accessible_keymaps_mapper_1):
5869         * keymap.c (where_is_recursive_mapper):
5870         * lisp.h:
5871         * lisp.h (ABORT):
5872         * lread.c (read_atom):
5873         * lstream.c (Lstream_delete):
5874         * lstream.c (make_lisp_buffer_stream_1):
5875         * macros.c (pop_kbd_macro_event):
5876         * malloc.c (malloc):
5877         * malloc.c (free):
5878         * marker.c (bi_marker_position):
5879         * marker.c (set_bi_marker_position):
5880         * menubar-gtk.c (menu_descriptor_to_widget_1):
5881         * menubar-msw.c (prune_menubar):
5882         * menubar-x.c (set_frame_menubar):
5883         * mule-charset.c (get_unallocated_leading_byte):
5884         * mule-charset.h (CHAR_LEADING_BYTE):
5885         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5886         * nt.c (init_environment):
5887         * nt.c (generate_inode_val):
5888         * ntproc.c (delete_child):
5889         * ntproc.c (_sys_read_ahead):
5890         * ntproc.c (create_child):
5891         * objects.c (color_instantiate):
5892         * objects.c (font_instantiate):
5893         * objects.c (face_boolean_instantiate):
5894         * print.c (printing_major_badness):
5895         * process-nt.c (nt_send_process):
5896         * process-unix.c (unix_send_process):
5897         * process.c (get_process):
5898         * ralloc.c (obtain):
5899         * ralloc.c (relinquish):
5900         * ralloc.c (relocate_blocs):
5901         * ralloc.c (resize_bloc):
5902         * ralloc.c (r_alloc_free):
5903         * ralloc.c (r_re_alloc):
5904         * ralloc.c (r_alloc_thaw):
5905         * ralloc.c (init_ralloc):
5906         * ralloc.c (Free_Addr_Block):
5907         * ralloc.c (r_alloc):
5908         * redisplay-gtk.c (gtk_output_display_block):
5909         * redisplay-msw.c (mswindows_output_display_block):
5910         * redisplay-output.c (get_next_display_block):
5911         * redisplay-output.c (get_cursor_size_and_location):
5912         * redisplay-output.c (redisplay_output_layout):
5913         * redisplay-output.c (redisplay_clear_region):
5914         * redisplay-tty.c (tty_output_display_block):
5915         * redisplay-x.c (x_output_display_block):
5916         * redisplay.c (add_propagation_runes):
5917         * redisplay.c (add_glyph_rune):
5918         * redisplay.c (create_text_block):
5919         * redisplay.c (add_margin_runes):
5920         * redisplay.c (create_left_glyph_block):
5921         * redisplay.c (create_right_glyph_block):
5922         * redisplay.c (create_string_text_block):
5923         * redisplay.c (regenerate_window):
5924         * redisplay.c (REGEN_INC_FIND_START_END):
5925         * redisplay.c (redisplay_frame):
5926         * redisplay.c (point_in_line_start_cache):
5927         * regex.c:
5928         * regex.c (ABORT):
5929         * regex.c (re_compile_fastmap):
5930         * regex.c (re_match_2_internal):
5931         * regex.c (regerror):
5932         * scrollbar-gtk.c (gtk_scrollbar_loop):
5933         * scrollbar-gtk.c (scrollbar_cb):
5934         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
5935         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
5936         * scrollbar-x.c (x_update_scrollbar_instance_status):
5937         * scrollbar-x.c (x_scrollbar_loop):
5938         * scrollbar-x.c (x_update_frame_scrollbars):
5939         * search.c (search_command):
5940         * search.c (Fmatch_data):
5941         * select-x.c (motif_clipboard_cb):
5942         * signal.c (interrupt_signal):
5943         * specifier.c (specifier_add_spec):
5944         * specifier.c (specifier_instance_from_inst_list):
5945         * specifier.c (specifier_instance):
5946         * specifier.h:
5947         * specifier.h (struct specifier_methods):
5948         * strftime.c (add_num_time_t):
5949         * sunplay.c (init_device):
5950         * symbols.c (Fsetplist):
5951         * symbols.c (do_symval_forwarding):
5952         * symbols.c (store_symval_forwarding):
5953         * symbols.c (Fset):
5954         * symbols.c (Fbuilt_in_variable_type):
5955         * symbols.c (decode_magic_handler_type):
5956         * symbols.c (handler_type_from_function_symbol):
5957         * syntax.c (update_syntax_cache):
5958         * sysdep.c (init_baud_rate):
5959         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5960         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5961         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5962         * toolbar.c (get_toolbar_coords):
5963         * ui-gtk.c (build_gtk_boxed):
5964         * ui-gtk.c (describe_gtk_arg):
5965         * ui-gtk.c (gtk_type_to_lisp):
5966         * ui-gtk.c (lisp_to_gtk_type):
5967         * ui-gtk.c (lisp_to_gtk_ret_type):
5968         * ui-gtk.c (lisp_to_flag):
5969         * unexnt.c (read_in_bss):
5970         * unexnt.c (map_in_heap):
5971         * window.c (real_window):
5972         * window.c (window_display_lines):
5973         * window.c (window_display_buffer):
5974         * window.c (set_window_display_buffer):
5975         * window.c (window_modeline_height):
5976         * window.c (unshow_buffer):
5977         * window.c (window_loop):
5978         * window.c (Fget_lru_window):
5979         * window.c (Fsplit_window):
5980         * window.c (Fset_window_configuration):
5981         * window.c (saved_window_index):
5982         * xgccache.c (gc_cache_lookup):
5983         abort() -> ABORT().  Eliminate preprocessor games with abort()
5984         since it creates huge problems in VC7, solvable only by including
5985         massive amounts of files in every compile (and not worth it).
5986
5987         * sysdep.c:
5988         * sysproc.h:
5989         Inclusion of process.h does not need to be before lisp.h any more.
5990         Move later and remove comment about abort().
5991
5992 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
5993
5994         * regex.c (re_match_2_internal):
5995         Correctly initialize loop which clears uninitialized registers.
5996
5997 2005-01-28  Vin Shelton  <acs@xemacs.org>
5998
5999         * sheap.c (more_static_core): Applied Ben's version of the long
6000         string patch.
6001
6002 2005-01-24  Vin Shelton  <acs@xemacs.org>
6003
6004         * sheap.c (more_static_core): Reformatted printf string so
6005         gcc-3.3.3 will compile this on Cygwin.
6006
6007 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6008
6009         * console.c (function_key_map): Reference `key-binding'.
6010
6011         * keymap.c (Vkey_translation_map): Improve docstring.
6012
6013 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6014
6015         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6016         * window.c (window_loop): [fix] Take into account
6017         `allow-deletion-of-last-visible-frame' variable.
6018         * window.c (replace-buffer-in-windows): Ditto.
6019
6020 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6021
6022         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6023
6024 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6025
6026         * event-gtk.c: Recognise AltGr as a valid modifier.
6027
6028 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6029
6030         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6031
6032 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6033
6034         Fix backreference bug caught by test suite.
6035
6036         * regex.c (regex_compile):
6037         Make backref duplicate internal register.
6038
6039 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6040
6041         Documentation, code clarification, and warning suppression.
6042         
6043         * regex.c (regex_compile):
6044         Improve comments.
6045         (re_match_2_internal):
6046         Improve comments and avoid redundant braces.  [Most of the big hunk
6047         at l. 4710 is indentation; use diff -w to see the real changes.]
6048         (alt_match_null_string_p):
6049         (common_op_match_null_string_p):
6050         Avoid shadowing global on Mac OS X 10.4, at least.
6051
6052 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6053
6054         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6055         introduced with shy groups fix).  [Already applied, probably
6056         with the second "fix shy groups" patch of 2004-10-07.] 
6057
6058 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6059
6060         From Andrey Slusar <anrays@gmail.com>:
6061
6062         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6063
6064 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6065
6066         * Makefile (RECURSIVE_MAKE): Removed.
6067         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6068         handling parallel builds.
6069
6070 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6071
6072         * Makefile.in.in: Enable support for parallel builds.
6073
6074 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6075
6076         From Andrey Slusar <anrays@gmail.com>:
6077
6078         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6079         FreeBSD version is >= 199701 _and_ < 600006.
6080
6081 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6082
6083         * scrollbar.c (compute_scrollbar_instance_usage):
6084         Only call device method compute_scrollbar_instance_usage() if it
6085         is defined.
6086
6087 2004-12-05  Vin Shelton <acs@xemacs.org>
6088
6089         * XEmacs 21.4.16 is released
6090
6091 2004-12-04  Vin Shelton  <acs@xemacs.org>
6092
6093         * depend: Regenerated.
6094
6095 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6096
6097         * regex.c (re_match_2_internal): Map internal to external
6098         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6099         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6100
6101 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6102
6103         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6104         to fix a crash.  Also, check the buffer is live and it
6105         really exists in buffer_list.  If the buffer is not in the list,
6106         prepend it.
6107
6108 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6109
6110         Fix shy groups by implementing recording of all groups for
6111         repetition and backtracking.  Backport from 21.5.
6112         
6113         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6114         external_to_internal_register, external_to_internal_register_size,
6115         and update comments for re_nsub.
6116
6117         * regex.c (re_opcode_t): Update comments.
6118         (print_compiled_pattern): Ouput external_to_internal_register,
6119         external_to_internal_register_size, and re_ngroups for debugging.
6120         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6121         (regex_compile): Update header comment.
6122         Ensure that all groups are recorded so that repeat matches and
6123         backtracking work correctly.  Comment related warning for groups >
6124         255.
6125         (re_search_2): Construct map of API indexes (which count only
6126         nonshy groups) to internal register numbers, and keep it updated.
6127
6128 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6129
6130         * frame-gtk.c (gtk_make_frame_visible):
6131         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6132         show/hide.  This is what X uses and is prevents previously hidden
6133         widgets from suddenly reappearing.
6134         * gtk-xemacs.c (gtk_xemacs_paint):
6135         * gtk-xemacs.c (gtk_xemacs_draw):
6136         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6137         drawable.
6138         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6139         size and location changes so that they can be seen before the next
6140         idle event.  Without this rapid changes to scrollbar properties
6141         are not seen.
6142
6143 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6144
6145         * console-gtk.h:
6146         * console-gtk.h (struct gtk_frame):
6147         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6148           Add hash tables track tab_control callback data.
6149           Added #defines for GTK object data names.
6150           Declaration of gtk_widget_to_frame().
6151         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6152         * frame-gtk.c (gtk_widget_to_frame): New.
6153         * frame-gtk.c (gtk_create_widgets):
6154         * frame-gtk.c (allocate_gtk_frame_struct):
6155         * frame-gtk.c (gtk_mark_frame):
6156         Manage frame callbakc hash tables.
6157         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6158         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6159         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6160         of widget size.
6161         * glyphs-gtk.c (gtk_widget_query_geometry): New
6162         * glyphs-gtk.c (gtk_register_gui_item): New
6163         * glyphs-gtk.c (gtk_add_tab_item): New
6164         * glyphs-gtk.c (gtk_tab_control_callback): New
6165         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6166         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6167         Use correct list when loading item.
6168         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6169         Register new methods.
6170         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6171         default size, for widgets.
6172         * gui-x.c:  Improved comment.
6173         * menubar-gtk.c (__generic_button_callback): Use
6174         gtk_widget_to_frame instead of __get_channel.
6175         * scrollbar-gtk.c:
6176         * ui-gtk.c: Use symbolic names for GTK object data.
6177
6178 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6179
6180         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6181
6182 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6183
6184         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6185
6186 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6187
6188         * malloc.c (morecore): siz is a long because in some architectures
6189         (eg ia-64) an int cannot hold the address range.  Additional patch
6190         from the SuSe distribution.
6191
6192 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6193
6194         * emacs.c:
6195         * malloc.c: lim_data is a long because in some architectures
6196         (eg ia-64) an int cannot hold the address range.
6197         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6198         instead of ulimit() because ulimit() always returns -1.
6199
6200 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6201
6202         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6203
6204 2004-06-11  David Kastrup  <dak@gnu.org>
6205
6206         * search.c (match_limit): Don't flag an error if match-data
6207         exceeding the allocated search_regs.num_regs gets requested, just
6208         return Qnil.
6209
6210 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6211
6212         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6213         replace symbolic color entries with the real colors specified in
6214         xpm-color-symbols, before passing the XPM to gtk.
6215         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6216         instead of a GTK specific field, so that it is used in by generic
6217         code.
6218
6219 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6220
6221        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6222         coredump from deref of NULL ptr (ExtData)
6223
6224 2004-04-19  Jerry James  <james@xemacs.org>
6225
6226         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6227         VALBITS to compute the location of the sign bit.
6228         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6229         of VALBITS with EMACS_INT_MAX.
6230         * events.c (Fevent_timestamp): Ditto.
6231         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6232         compute the halfway point to timestamp wraparound.
6233         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6234         EMACS_INT_MIN instead of using VALBITS.
6235         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6236         incorrect number with VALBITS.
6237         * fns.c (Frandom): Correct number of integer bits in docstring.
6238         Use INT_VALBITS instead of VALBITS to compute the denominator.
6239         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6240         build random numbers.
6241
6242 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6243         * event-gtk.c:
6244         * event-gtk.c (gtk_event_to_emacs_event):
6245         * menubar-gtk.c:
6246         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6247         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6248         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6249         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6250         * menubar-gtk.c (__activate_menu):
6251         * menubar-gtk.c (convert_underscores):
6252         * menubar-gtk.c (remove_underscores):
6253         * menubar-gtk.c (menu_convert):
6254         * menubar-gtk.c (menu_descriptor_to_widget_1):
6255         * menubar-gtk.c (menu_descriptor_to_widget):
6256         * menubar-gtk.c (menu_can_reuse_widget):
6257         * menubar-gtk.c (menu_create_menubar):
6258         * menubar-gtk.c (gtk_popup_menu):
6259         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6260         Added support for Gtk menu bar and menu item mnemonics.
6261
6262 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6263
6264         * sysdll.c: (dll_function): Added support for finding symbols in
6265         Darwin shared libraries as well in Darwin bundles.
6266         * sysdll.c (image_for_address): New
6267         * sysdll.c (my_find_image): New
6268         * sysdll.c (search_linked_libs): New
6269
6270 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6271
6272         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6273         return to GTK requires a different API to marshalling data to use
6274         as GTK parameters.
6275         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6276
6277 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6278
6279         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6280
6281 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6282
6283         * glyphs.c (process_image_string_instantiator):
6284         (Fset_console_type_image_conversion_list):
6285         Stop GCC from warning about shadowing of `exp'.
6286
6287         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6288
6289 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6290
6291         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6292
6293 2004-02-03  Vin Shelton  <acs@xemacs.org>
6294
6295         * glyphs.c (image_instance_layout): Remove pointless assertion.
6296         * regex.c (regex_grow_registers): Return type is void.
6297
6298 2004-02-02  Vin Shelton <acs@xemacs.org>
6299
6300         * XEmacs 21.4.15 is released
6301
6302 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6303
6304         * device-x.c (x_error_handler): Don't call stderr_out
6305
6306 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6307
6308         * buffer.c (other-buffer): Clarify documentation of order of
6309         arguments for FSF Emacs.
6310
6311 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6312
6313         * window.c (Fdelete_window): Dirty the mirror structure _before_
6314         marking the window deleted.
6315
6316 2003-09-15  Jerry James  <james@xemacs.org>
6317
6318         * event-msw.c (debug_mswin_messages): Conditionally compile
6319         messages missing from the Cygwin headers.
6320
6321 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6322
6323         * data.c (eq_with_ebola_notice): Fix typo in comment.
6324         (Ftrue_list_p): Improve docstring.
6325
6326 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6327
6328         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6329
6330 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6331
6332         * search.c (trivial_regexp_p): Regexps containing "\{" are
6333         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6334         Stefan Monnier for suggesting a diagnosis.
6335
6336 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6337
6338         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6339
6340 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6341
6342         * search.c (Fsearch_forward):
6343         (Fsearch_backward):
6344         Document negative count.
6345
6346 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6347
6348         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6349
6350 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6351
6352         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6353
6354 2003-09-15  Vin Shelton  <acs@xemacs.org>
6355
6356         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6357         21.5.
6358
6359 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6360
6361         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6362         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6363         (re_match_2_internal): Use TRANSLATE instead of
6364         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6365         non-ASCII char case conversion.
6366
6367 2003-09-08  Mike Sperber  <mike@xemacs.org>
6368
6369         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6370         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6371
6372 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6373
6374        * .gdbinit (pobj): fix printing of symbol name.
6375
6376 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6377
6378         * frame-x.c (x_layout_widgets): When resizing is about to cause
6379         frame size slip, mark it for redisplay.
6380
6381 2003-08-18  Jerry James  <james@xemacs.org>
6382
6383         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6384
6385 2003-09-03  Vin Shelton <acs@xemacs.org>
6386
6387         * XEmacs 21.4.14 is released
6388
6389 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6390
6391         * config.h.in (REGEX_MALLOC): Make it configure'able.
6392
6393 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6394
6395         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6396         linking.
6397         * sysdll.c (dll_init):
6398         * sysdll.c (dll_open):
6399         * sysdll.c (dll_close):
6400         * sysdll.c (dll_function):
6401         * sysdll.c (dll_variable):
6402         * sysdll.c (dll_error):
6403         Add support for loading bundles using Darwin/MacOSX
6404         native API.
6405
6406 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6407
6408         * process.c (start-process-internal): Document coding systems.
6409
6410 2003-07-30  Jerry James  <james@xemacs.org>
6411
6412         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6413
6414 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6415
6416         * event-msw.c (mswindows_enqueue_mouse_button_event):
6417         * event-msw.c (mswindows_wnd_proc):
6418           enqueue button event when scrollwheel event isn't handled by 
6419           mswindows_handle_mousewheel_event, such as when the scrollbars
6420           are not showing.
6421
6422 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6423
6424         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6425
6426 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6427
6428         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6429
6430 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6431
6432         * regex.c (re_match_2_internal): Fix matching degenerate word
6433         boundaries.
6434
6435 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6436
6437         * XEmacs 21.4.13 is released
6438
6439 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6440
6441         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6442         * lisp.h (<inttypes.h>):
6443         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6444         the definition.
6445
6446 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6447
6448         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6449         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6450         Result: "temacs can only be run in -batch mode."
6451         Fix: Check xemacs executable candidate for directory-ness.
6452
6453 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6454
6455         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6456           they conflict with <sys/types.h>.
6457
6458 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6459
6460         * database.c: Berkeley DB wants __STDC__ to be defined.
6461
6462 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6463
6464         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6465
6466 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6467
6468         * process-unix.c (unix_send_process): Fix C++ compile error.
6469
6470 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6471
6472         * Added .dylib as an acceptable shared library file extension
6473         * to support MacOSX.
6474
6475 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6476
6477         * EmacsFrameP.h (EmacsFramePart):
6478         Kludge to allow compiling with Motif1, but linking with Motif2.
6479
6480 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6481
6482         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6483
6484
6485 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6486
6487         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6488
6489 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6490
6491         * sysdll.c: Included lisp.h to define needed alloca_array.
6492
6493 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6494
6495         Make XEmacs redisplay 10 times faster.
6496         If, that is, you're using a slow X connection and MoveOpaque.
6497         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6498         Use compress_motion = TRUE.
6499         * EmacsFrame.c (emacsFrameClassRec): 
6500         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6501         * EmacsManager.c (emacsManagerClassRec):
6502         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6503
6504 2003-01-30  Vin Shelton  <acs@xemacs.org>
6505
6506         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6507
6508 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6509
6510         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6511         Patch by Martin Buchholz.
6512
6513 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6514
6515         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6516         Thanks to icc for warning and Martin Buchholz for reporting.
6517
6518 2003-01-29  Vin Shelton <acs@xemacs.org>
6519
6520         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6521
6522         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6523         remember to multiply by the element size.
6524
6525 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6526
6527         * XEmacs 21.4.12 "Portable Code" is released.
6528
6529 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6530
6531         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6532         * s/cygwin.sc: new linker file.
6533
6534 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6535
6536         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6537
6538         * redisplay-x.c (x_output_string): Use X11-specified types.
6539         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6540         * emacs.c (__free_hook): Use typeof with Intel compiler.
6541         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6542
6543 2003-01-08  Andy Piper  <andy@xemacs.org>
6544
6545         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6546         reserve size during unexec().
6547
6548 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6549
6550         * process-unix.c (unix_create_process): Don't let outchannel block.
6551
6552 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6553
6554         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6555         Needed for IsBadReadPtr().
6556
6557 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6558
6559         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6560
6561 2002-12-14  Ben Wing  <ben@xemacs.org>
6562
6563         * callint.c: Declaration error.
6564         * dumper.c (pdump):
6565         * dumper.c (pdump_load): Warning fix.
6566         * process.c: GCPRO error.
6567         * glyphs.c (unmap_subwindow):
6568         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6569         * event-stream.c (maybe_kbd_translate): Wrong argument to
6570         character_to_event().
6571
6572         * alloc.c (garbage_collect_1):
6573         * emacs.c:
6574         * emacs.c (debug_can_access_memory):
6575         * emacs.c (fatal_error_signal):
6576         * emacs.c (mswindows_handle_hardware_exceptions):
6577         * emacs.c (main_1):
6578         * emacs.c (main):
6579         * emacs.c (assert_failed):
6580         * emacs.c (syms_of_emacs):
6581         * lisp.h:
6582         * print.c:
6583         * print.c (std_handle_out_va):
6584         * print.c (write_string_to_stdio_stream):
6585         * print.c (write_fmt_string):
6586         * print.c (printing_badness):
6587         * print.c (printing_major_badness):
6588         * print.c (print_internal):
6589         * print.c (debug_print_no_newline):
6590         * print.c (debug_backtrace):
6591         Be more defensive in handling bad values when printing.  Add code
6592         from trunk involving inhibit_non_essential_printing_operations.
6593         When going down or in debug_print(), don't do external conversion
6594         and such and try really, really hard when printing to avoid core
6595         dumping.  Add force-debugging-signal, debug_break().
6596
6597 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6598
6599         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6600         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6601
6602 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6603
6604         * database.c: Fix open_database. Berkeley DB API has changed in
6605         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6606
6607 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6608
6609         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6610
6611 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6612
6613         * event-Xt.c (Xt_timeout):
6614         (Xt_timeout_callback):
6615         (emacs_Xt_add_timeout):
6616         (emacs_Xt_remove_timeout):
6617         (Xt_timeout_to_emacs_event):
6618         Turn completed_timeouts from a stack into a queue.  Fixes
6619         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6620
6621 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6622
6623         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6624         * emacs.c (main): Assert that mmap'd allocation is disabled.
6625
6626 2002-10-14  Andy Piper  <andy@xemacs.org>
6627
6628         * glyphs-widget.c (layout_query_geometry): add in fiddle
6629         factor. Include border text in width layout calculation.
6630         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6631
6632 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6633
6634         * XEmacs 21.4.10 "Military Intelligence" is released.
6635
6636 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6637
6638         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6639         using the NAS private array SoundFileInfo that no longer exists in
6640         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6641         and earlier.  This is broken for some versions between 1.5a and
6642         1.5f.
6643
6644 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6645
6646         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6647
6648         * emacs.c (shut_down_emacs): Improve crash message.
6649
6650 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6651
6652         * file-coding.c (determine_real_coding_system): Check for coding
6653         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6654         shebangs and Python PEP 263.
6655
6656 2002-10-08  Andy Piper  <andy@xemacs.org>
6657
6658         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6659         if static sizes haven't been set.
6660
6661 2002-08-30  Mike Alexander  <mta@arbortext.com>
6662
6663         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6664         to close a socket.
6665
6666 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6667
6668         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6669
6670 2002-09-20  Mike Sperber <mike@xemacs.org>
6671
6672         (This partially gets back my patch from 2002-07-20 without the
6673         bug.)
6674         * callproc.c (child_setup): Remove Ben's comment noting confusion
6675         over the file descriptors >= 3: close_process_descs() doesn't
6676         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6677         * process-unix.c (unix_create_process): Call
6678         begin_dont_check_for_quit to inhibit unwanted interaction (and
6679         thus breaking of X event synchronicity) in the child.
6680
6681 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6682
6683         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6684         widget.
6685
6686 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6687
6688         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6689         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6690         the xemacs process did not exit, but looped infinitely here.  This
6691         fixes that problem.
6692
6693 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6694
6695         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6696         (find_context): Improve comments.
6697
6698         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6699         (re_match_2): An XCHAR_TABLE operation was missing.
6700
6701         Many of the following changes were inspired by Andy Piper's (now
6702         obsolete) patch to make syntax-table text property lookup optional.
6703
6704         [Documentation]
6705
6706         * syntax.h (top level): Document semantics of syntax flags.
6707         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6708         * syntax.c, syntax.h (top level): Document syntax cache better in
6709         comments.
6710
6711         [Instrument syntax caching (temporary change)]
6712
6713         * syntax.h (enum syntax_cache_statistics_functions, struct
6714         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6715         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6716         * syntax.c (scan_words, Fforward_comment, scan_lists,
6717         Fbackward_prefix_characters):
6718         * font-lock.c (find_context):
6719         Use them to instrument syntax caching. 
6720         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6721         syntax_cache_statistics_function_names): New type and variables.
6722         * syntax.c (update_syntax_cache): Update and report statistics.
6723
6724         [Major syntax cache optimizations]
6725
6726         syntax.c (lookup_syntax_properties): Default off.
6727
6728         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6729         * syntax.c (update_syntax_cache):
6730         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6731
6732         [Minor syntax cache optimizations and code clarifications]
6733
6734         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6735         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6736         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6737         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6738         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6739         (Code clarification.)
6740
6741         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6742         scan_lists): Compute code from syncode, use Boolean macros instead
6743         of redundant masking operations.  (Code clarification; any decent
6744         compiler can do this optimization.)
6745
6746         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6747         for clarity.
6748
6749         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6750         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6751         use F*_single_property_change instead of F*_extent_change.
6752         Currently F*_single_property_change is _much_ less efficient.
6753
6754         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6755         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6756         syntax_cache.object properly, don't leave Qt or Qnil.
6757         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6758         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6759         tests for Qt or Qnil.
6760
6761 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6762
6763         * redisplay.c (point_in_line_start_cache): 
6764         * extents.c (print_extent_1):
6765         Fix warnings.
6766
6767         * extents.c (Fset_extent_property): Document `syntax-table' property.
6768
6769         * extents.h (Fnext_single_property_change): EXFUN it.
6770
6771 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6772
6773         * search.c (clear_unused_search_regs): New static function.
6774         (search_buffer): 
6775         (simple_search): 
6776         (boyer_moore):
6777         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6778         Minor clarifications in comments.
6779
6780         * regex.c (re_match_2_internal): Ensure no stale submatches.
6781
6782 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6783
6784         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6785
6786 2002-08-29  Jerry James  <james@xemacs.org>
6787
6788         * lisp.h: structrures -> structures.
6789
6790 2002-06-03  Andy Piper  <andy@xemacs.org>
6791
6792         * frame.c (frame_conversion_internal): add conversion appropriate
6793         for setting frame dimensions in pixels.
6794
6795         * console.h (struct console_methods): add device-specific widget
6796         layout functions.
6797
6798         * emacs.c (main_1): initialize glyph vars.
6799
6800         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6801         (handle_focus_event_2): new function. Allow focus to
6802         be set to a particular window and widget.
6803         (enqueue_focus_event): new function. Create a
6804         synthetic focus event.
6805         (emacs_Xt_handle_magic_event): call
6806         handle_focus_event_2.
6807
6808         * frame.c (Fset_frame_pixel_height): new function. Allow
6809         pixel-based sizing. Does the right thing on character-oriented
6810         displays.
6811         (Fset_frame_pixel_width): ditto.
6812         (Fset_frame_pixel_size): ditto.
6813         (syms_of_frame): declare.
6814
6815         * general-slots.h: add :vertically-justify and
6816         :horizontally-justify.
6817
6818         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6819         (mswindows_widget_border_width): new function.
6820         (mswindows_combo_box_instantiate): set border widths.
6821         (console_type_create_glyphs_mswindows): declare.
6822
6823         * glyphs-widget.c:
6824         (check_valid_justification): allow vertical and horizontal
6825         justification.
6826         (widget_border_width): new function. Call device methods.
6827         (widget_instance_border_width): ditto.
6828         (logical_unit_height): new function. Determine the height of a
6829         logical-unit. Logical units are intended to provide grid-like
6830         layout for subcontrols in a layout. If the layout is
6831         :vertically-justify top then subcontrols will be positioned on
6832         logical-unit boundaries, thus allowing adjacent subcontrols to
6833         line up.
6834         (widget_logical_unit_height): ditto for widgets.
6835         (redisplay_widget): misc cleanup.
6836         (widget_spacing): new function. Call device specific
6837         methods. Intended to be the default gap between adjacent widgets.
6838         (widget_query_geometry): use new spacing functions to determine
6839         appropriate geometry.
6840         (initialize_widget_image_instance): initialize horizontal and
6841         vertical justification.
6842         (widget_instantiate): use logica-units where appropriate for
6843         sizing large widgets.
6844         (button_query_geometry): use widget_instance_border_width.
6845         (tree_view_query_geometry): ditto.
6846         (tab_control_query_geometry): ditto.
6847         (edit_field_query_geometry): new function.
6848         (layout_update): pick up :justify, :horizontally-justify and
6849         :vertically-justify none of which worked previously. :justify is
6850         used as a fallback for both horizontal and vertical justification.
6851         (layout_query_geometry): use logical units to size appropriately.
6852         (layout_layout): ditto.
6853         (Fwidget_logical_to_character_width): new function. Allow users to
6854         convert from logical units to characters so that frame sizes can
6855         be set appropriately.
6856         (Fwidget_logical_to_character_height): ditto.
6857         (syms_of_glyphs_widget): declare.
6858         (image_instantiator_edit_fields): add edit_field_query_geometry.
6859         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6860         :horizontally-justify.
6861         (specifier_vars_of_glyphs_widget): new function. Declare
6862         Vwidget_border_width which is not yet used.
6863
6864         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6865         (x_widget_border_width): new function.
6866         (x_widget_instantiate): create a sensible name for widgets.
6867         (console_type_create_glyphs_x): declare x_widget_border_width.
6868
6869         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6870         (struct Lisp_Image_Instance): add :vertically-justify and
6871         :horizontally-justify.
6872         (LAYOUT_JUSTIFY_TOP): new.
6873         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6874         (ROUND_UP): new macro. Round argument up to next integral
6875         interval.
6876
6877         * redisplay-output.c (redisplay_output_layout): misc formatting.
6878
6879         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6880
6881 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         * XEmacs 21.4.9 "Informed Management" is released.
6884
6885 2002-08-19  Andy Piper  <andy@xemacs.org>
6886
6887         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6888         win32 format.
6889
6890         * realpath.c (xrealpath): normalize drive spec also so that dir
6891         sep chars are not mixed on cygwin.
6892
6893 2002-08-06  Jerry James  <james@xemacs.org>
6894
6895         * window.c (Fsplit_window): Count only half of the divider width
6896         against the left window when splitting horizontally. 
6897
6898 2002-06-24  Andy Piper  <andy@xemacs.org>
6899
6900         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6901         toolbar was cleared.
6902
6903         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6904         function. Split out from mswindows_output_frame_toolbars.
6905         (mswindows_output_frame_toolbars): move clear pieces to
6906         mswindows_output_frame_toolbars.
6907
6908         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6909         out from gtk_output_frame_toolbars.
6910         (gtk_output_frame_toolbars): move clear pieces to
6911         gtk_clear_frame_toolbars.
6912
6913         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6914         the frame is cleared. How this ever worked before is a mystery.
6915         (x_output_frame_toolbars): Only output toolbars.
6916         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6917
6918         * gutter.c (update_gutter_geometry):
6919         Mark frame layout changed.
6920         (update_frame_gutter_geometry, update_frame_gutters):
6921         Respect frame_layout_changed.
6922
6923         * console.h (struct console_methods): add
6924         clear_frame_toolbars_method.
6925
6926         * redisplay.c (redisplay_frame): call
6927         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6928
6929         * toolbar.h: declare update_frame_toolbars_geometry.
6930
6931         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6932         out from update_frame_toolbars.  Call clear_frame_toolbars.
6933         (update_frame_toolbars): only output, do not change geometry.
6934
6935         * redisplay.c: add frame_layout_changed.
6936
6937         * redisplay.h: add frame_layout_changed.
6938         (CLASS_RESET_CHANGED_FLAGS): set it.
6939         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6940         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6941         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6942
6943         * device.h (struct device): add frame_layout_changed.
6944         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6945
6946         * frame.h (struct frame): add frame_layout_changed.
6947         (MARK_FRAME_LAYOUT_CHANGED): new.
6948
6949 2002-06-30  Mike Alexander  <mta@arbortext.com>
6950
6951         * event-msw.c (mswindows_need_event): Don't wait for a new message
6952         if the queue is not empty.  Suggested by Paul Moore.
6953
6954 2002-06-12  Andy Piper  <andy@xemacs.org>
6955
6956         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6957         for printing on accurately.
6958
6959 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6960
6961         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6962         WM_ACTIVATE message. Make sure that the frame is visible if the
6963         window is visible. This seemss to fix the problem where XEmacs
6964         appears to freeze after switching desktops with certain virtual
6965         window managers.
6966         (debug_output_mswin_message): Added code to output message
6967         parameters for WM_WINDOWPOSCHANGED, 
6968         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6969
6970 2002-05-25  Andy Piper  <andy@xemacs.org>
6971
6972         * select-x.c (vars_of_select_x): Fix docstring of
6973         x-selection-strict-motif-ownership
6974
6975 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6976
6977         * keymap.c (get_keymap):
6978         Add comment about do_autoload GCPROs own args.
6979
6980 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6981
6982         * bytecode.c (execute_optimized_program): check_opcode ifdef
6983         ERROR_CHECK_BYTE_CODE.
6984
6985 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6986
6987         Thanks to Ben Wing and Michael Sperber.
6988
6989         * eval.c (Fcommand_execute):
6990         (Feval):
6991         (Ffuncall):
6992         (Fmacroexpand_internal):
6993         (function_argcount):
6994         callint.c (Fcall_interactively):
6995         Add comment about do_autoload GCPROs own args.
6996
6997         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6998
6999         * eval.c (Ffuncall): Extra braces to placate GCC.
7000
7001 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7002
7003         * backtrace.h (grow_specpdl):
7004         (SPECPDL_RESERVE):
7005         * EmacsFrame.c (EmacsFrameSetValues):
7006         * eval.c (grow_specpdl):
7007         * ExternalShell.c (hack_event_masks_1):
7008         * glyphs-x.c (convert_EImage_to_XImage): 
7009         (x_finalize_image_instance):
7010         * ralloc.c (page_size):
7011         (r_alloc_sbrk):
7012         * xgccache.c (gc_cache_hash):
7013         Fix unsigned comparison warnings.
7014
7015 2002-07-29  Jerry James  <james@xemacs.org>
7016
7017         * lread.c (locate_file): Any nonnegative return value indicates
7018         success if MODE is nonnegative.
7019
7020 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7021
7022         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7023         argument. 
7024
7025 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7026
7027         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7028
7029         * dumper.c (pdump_get_indirect_count):
7030         (pdump_scan_by_alignment):
7031         (pdump_dump_root_struct_ptrs):
7032         (pdump_dump_rtables):
7033         (pdump_dump_root_objects):
7034         (pdump):
7035         * nas.c (WaveOpenDataForReading):
7036         * fns.c (print_bit_vector):
7037         * font-lock.c (SINGLE_SYNTAX_STYLE):
7038         * glyphs.c (check_for_ignored_expose):
7039         (find_matching_subwindow):
7040         * glyphs-eimage.c:
7041         * imgproc.c (get_histogram):
7042         * redisplay.c (point_in_line_start_cache):
7043         * redisplay-output.c (redisplay_unmap_subwindows):
7044         * symbols.c (defsymbol_massage_name_1):
7045         (defkeyword_massage_name):
7046         (deferror_massage_name_and_message):
7047         * redisplay-x.c (x_output_string): 
7048         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7049         * frame.h (struct frame):
7050         * filelock.c (current_lock_owner):
7051         * doprnt.c (emacs_doprnt_1):
7052         * lisp.h (struct Lisp_Bit_Vector):
7053         (DO_REALLOC):
7054         Fix warnings.
7055
7056 2002-02-13  Ben Wing  <ben@xemacs.org>
7057
7058         * event-stream.c (reset_key_echo):
7059         * event-stream.c (reset_this_command_keys):
7060         * event-stream.c (execute_command_event):
7061         If console is dead as a result of C-x 5 0, then post-command stuff
7062         needs to be careful and do only non-console-specific stuff.
7063
7064 2002-07-01  Mike Sperber <mike@xemacs.org>
7065
7066         * process-unix.c (unix_send_process): Mark coding_outstream as
7067         non-open upon SIGPIPE.
7068
7069         * event-stream.c (Fnext_event): Reorder switch cases to something
7070         that makes sense.
7071
7072 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7073
7074         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7075         Don't bogusly reinitialize ascii_character property.
7076
7077 2002-07-08  Mike Sperber <mike@xemacs.org>
7078
7079         * process.c (Fstart_process_internal): Do error checking before we
7080         fork off the child, so the child can't muck with the state of the
7081         parent.
7082
7083 2002-07-08  Mike Sperber <mike@xemacs.org>
7084
7085         * ralloc.c (init_ralloc): Allocate properly for pdump.
7086
7087 2002-06-12  Andy Piper  <andy@xemacs.org>
7088
7089         * glyphs.c (query_string_geometry): check the string.
7090
7091         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7092         widget names.
7093
7094 2002-06-17  Jerry James  <james@xemacs.org>
7095
7096         * sysdll.c: Remove RTLD_GLOBAL initialization.
7097         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7098
7099 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7100
7101         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7102
7103 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7104
7105         * sysdep.c (sys_rename): Make sys_rename work for the case where
7106         Windows rename sets errno to EACCES if target file exists.
7107
7108 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7109
7110         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7111         Fix detection of metric units to work on Win95
7112
7113 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7114
7115         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7116
7117 2002-04-25  Andy Piper  <andy@xemacs.org>
7118
7119         * redisplay.c (create_text_block): Remove extra comment trailer.
7120
7121 2002-04-24  Andy Piper  <andy@xemacs.org>
7122
7123         * redisplay.c (create_text_block): Don't actually add propagation
7124         data if the line ends after we have added a glyph.
7125
7126 2002-04-22  Andy Piper  <andy@xemacs.org>
7127
7128         * extents.c (extent_fragment_update): check for glyphs we have
7129         previously displayed.
7130         * extents.c (print_extent_1): warning removal.
7131         * extents.h: change prototype.
7132         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7133         widths correctly for wide glyphs.
7134         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7135         * redisplay.c (prop_type): add PROP_GLYPH.
7136         * redisplay.c (struct prop_block): add glyph type
7137         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7138         to the propagation data.
7139         * redisplay.c (create_text_block): if there is a glyph in the
7140         propagation data use it to salt extent_fragment_update.
7141         * redisplay.c (create_string_text_block): ditto.
7142
7143 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7144
7145         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7146         * redisplay-output.c (compare_runes): Compare them.
7147         * redisplay.c: Update copyright date.
7148         * redisplay.c (pos_data): Add need_baseline_computation field.
7149         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7150         need_baseline_computation; zero yoffset. Set max_pixmap_height
7151         for all pixmaps, not just automatically positioned ones.
7152         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7153         * redisplay.c (calculate_baseline): New, compute textual baseline.
7154         * redisplay.c (add_glyph_rune): Call them.
7155         * redisplay.c (create_text_block): Likewise.
7156         * redisplay.c (create_overlay_glyph_block): Likewise.
7157         * redisplay.c (add_margin_runes): Likewise.
7158         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7159
7160         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7161         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7162         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7163         * redisplay-msw.c (mswindows_output_string): Likewise.
7164         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7165         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7166         * redisplay-x.c (x_output_display_block): Likewise.
7167
7168 2002-03-28  Ben Wing  <ben@xemacs.org>
7169
7170         * redisplay.c: Fixed bug in redisplay
7171         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7172         and down of the lines, since they're bigger than the line
7173         size. (It was seen most obviously when there's a horizontal scroll
7174         bar, e.g. do C-h a glyph or something like that.) The problem was
7175         that the glyph-contrib-p setting on glyphs was ignored even if it
7176         was set properly, which it wasn't until now.
7177
7178 2002-04-24  Andy Piper  <andy@xemacs.org>
7179
7180         * lisp.h (Dynarr_end): Fix definition.
7181
7182 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7183
7184         * redisplay.c (mark_redisplay): Remove call to
7185         update_frame_window_mirror.
7186
7187 2001-11-15  Andy Piper  <andy@xemacs.org>
7188
7189         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7190         cygwin (again).
7191
7192 2002-02-13  Andy Piper  <andy@xemacs.org>
7193
7194         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7195         we did in fact enqueue the XM_MAPFRAME event.
7196
7197 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7198
7199         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7200         to fix problem switching between virtual desktops under virtuawin
7201         virtual window manager.
7202
7203 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7204
7205         * event-msw.c: Typo fix.
7206         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7207         magic XM_MAPFRAME event has been sent.
7208
7209 2001-11-23  Andy Piper  <andy@xemacs.org>
7210
7211         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7212
7213 2001-11-21  Andy Piper  <andy@xemacs.org>
7214
7215         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7216         mouse events outside the frame.
7217
7218 2002-03-20  Andy Piper  <andy@xemacs.org>
7219
7220         * menubar-msw.c (mswindows_popup_menu): warning removal.
7221         * dialog-msw.c (dialog_popped_down): ditto.
7222
7223 2001-12-11  Andy Piper  <andy@xemacs.org>
7224
7225         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7226         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7227         popup_up_p.
7228         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7229         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7230         * menubar-msw.c (mswindows_popup_menu): ditto.
7231
7232 2001-10-29  Andy Piper  <andy@xemacs.org>
7233
7234         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7235         cancels.
7236
7237 2002-01-03  Andy Piper  <andy@xemacs.org>
7238
7239         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7240         letters.
7241         (xrealpath): ditto.
7242
7243 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7244
7245         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7246         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7247         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7248         Detect and handle case where machine is set up for metric units
7249
7250 2002-04-02  Andy Piper  <andy@xemacs.org>
7251
7252         * dired-msw.c (mswindows_get_files): 
7253         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7254         completely handled by XEmacs. Suggested by Thomas Vogler
7255         <mail@thomas-vogler.de>.
7256
7257 2001-11-14  Andy Piper  <andy@xemacs.org>
7258
7259         * nt.c (REG_ROOT): change registry key to XEmacs.
7260
7261 2002-04-27  Andy Piper  <andy@xemacs.org>
7262
7263         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7264
7265 2002-04-26  Andy Piper  <andy@xemacs.org>
7266
7267         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7268         behavior.
7269
7270 2002-03-14  Mike Alexander  <mta@arbortext.com>
7271
7272         * event-msw.c (mswindows_unwait_process): New, remove process from
7273         wait list
7274         * process-nt.c (nt_finalize_process_data): Call
7275         mswindows_unwait_process
7276         * console-msw.h: Declare mswindows_unwait_process
7277
7278 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7279
7280         * editfns.c (Fdecode_time):
7281         (Fformat_time_string):
7282         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7283         (make_time): Warning elimination (change arg name).
7284
7285 2001-11-24  Andy Piper  <andy@xemacs.org>
7286
7287         * window.c (Fsplit_window): Doc return type.
7288
7289 2002-04-01  Andy Piper  <andy@xemacs.org>
7290
7291         * emacs.c (Fkill_emacs): Only output message box in interactive
7292         mode.
7293
7294 2002-04-26  Andy Piper  <andy@xemacs.org>
7295  
7296         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7297         cygwin.
7298
7299 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7300
7301         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7302         bit platform.
7303
7304 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7305
7306         * XEmacs 21.4.8 "Honest Recruiter" is released.
7307
7308 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7309
7310         Supersedes 2002-04-17 patch.
7311
7312         * process.h (PROCESS_LIVE_P): Use the process status as
7313         evidence of health, not the state of the input stream.
7314         (PROCESS_READABLE_P): Say if the process is readable
7315         from. (It may be dead nonetheless.)
7316         (CHECK_READABLE_PROCESS): Test for that condition.
7317
7318         * process.c (create_process): Use PROCESS_READABLE_P.
7319         (read_process_output, set_process_filter): Likewise.
7320
7321         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7322         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7323
7324         This code is #if 0'd, this is not the time to add new functions:
7325
7326         * process.c (Fprocess_readable_p): Report readability status.
7327         * process.c (Qprocess_readable_p): New, associated symbol...
7328         * process.c (syms_of_process): ... initialize it.
7329
7330 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7331
7332         * XEmacs 21.4.7 "Economic Science" is released.
7333
7334 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7335
7336         * process.h (PROCESS_LIVE_P): Use the process status as
7337         evidence of health, not the state of the input stream.
7338
7339 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7340
7341         * sysdep.c (sys_siglist): change "signum" to "signal"
7342
7343 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7344
7345         * s/darwin.h: New file.
7346         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7347         
7348 2002-04-23  Andreas Jaeger  <aj@suse.de>
7349
7350         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7351         which use lib64 for 64-bit libs.
7352         (START_FILES): Likewise.
7353
7354 2002-02-11  Mike Sperber  <mike@xemacs.org>
7355
7356         * device-x.c: 
7357         (x_IO_error_handler):
7358         (x_init_device): Temporarily keep device in static variable
7359         `device_being_initialized' so we can recover gracefully from
7360         internal XOpenDevice failure.  (XOpenDevice is documented to
7361         return NULL on failure, but sometimes calls the IO error handler
7362         instead.)
7363
7364 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7365
7366         * dired.c (Ffile_name_all_completions): Change documentation --
7367         remove reference to completion-ignored-extensions.
7368         * dired.c (vars_of_dired): Change documentation for
7369         completion-ignored-extensions -- remove reference to
7370         file-name-all-completions.
7371
7372 2002-03-06  Jerry James  <james@xemacs.org>
7373
7374         * emodules.c (emodules_load): Fix multiple loading of same module.
7375
7376 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7377         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7378         RTLD_LAZY to avoid incorrect symbol binding when using nested
7379         shared libraries on Solaris.
7380
7381 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7382
7383         * fileio.c (Ffind_file_name_handler): Improve docstring.
7384
7385 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7386
7387         * fns.c (Fmapconcat): Improve docstring.
7388
7389 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7390
7391         * device-gtk.c: Add prototype for
7392         emacs_gtk_selection_clear_event_handle.
7393         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7394         selection.  Setup signal handler for "selection_clear_event"
7395         (emacs_gtk_selection_clear_event_handle).
7396
7397         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7398         other applications owning the clipboard (based on
7399         x_handle_selection_clear).
7400
7401 2001-12-23  William M. Perry  <wmperry@gnu.org>
7402
7403         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7404         
7405 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7406
7407         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7408
7409 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7410
7411         * XEmacs 21.4.6 "Common Lisp" is released.
7412
7413 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7414
7415         * search.c (Freplace_match): Add missing sub-expression functionality.
7416
7417         * buffer.c (decode_buffer): Add a check for pointer type to
7418         decode_buffer, before gcc's CSE optimization reorders a
7419         dereference in front of the allow_string test.
7420
7421 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7422
7423         * window.c (window_loop): Fix bug that sometimes prevented
7424         window_loop() from iterating across multiple devices.  Also, at
7425         Ben's request, changed infloop-detecting code to abort() instead
7426         of silently terminating window_loop().
7427
7428 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7429
7430         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7431         * editfns.c (make_time): New function.
7432         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7433         * lisp.h (make_time): Prototype and comment it.
7434         * dired.c (wasteful_word_to_lisp): Deprecate.
7435         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7436
7437 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7438
7439         * fileio.c (auto_save_1): Use current coding system, not
7440         escape-quoted.
7441
7442 2001-11-13  Ben Wing  <ben@xemacs.org>
7443
7444         * window.c:
7445         * window.c (window_truncation_on):
7446         * window.c (syms_of_window):
7447         truncate-partial-width-windows should respect the buffer being
7448         displayed, like other redisplay vars.
7449
7450 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7451
7452         * event-stream.c (Fread_key_sequence): save current buffer.
7453
7454 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7455
7456         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7457
7458 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7459
7460         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7461
7462 2001-10-26  Mike Alexander  <mta@arbortext.com>
7463
7464         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7465
7466 2001-10-25  Andy Piper  <andy@xemacs.org>
7467
7468         * ChangeLog:
7469         * dialog-msw.c (handle_directory_proc): new function.
7470          (handle_directory_dialog_box): new fucntion.
7471          (handle_file_dialog_box): use new directory dialog support.
7472          (mswindows_make_dialog_box_internal): ditto.
7473         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7474         handling.
7475         (mswindows_find_frame): make global.
7476         * fileio.c (Fexpand_file_name): build fix.
7477         * general-slots.h: add Qdirectory.
7478         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7479         handling.
7480         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7481         cygwin not leaving win32 paths unchanged.
7482         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7483         cygwin runtime to do path conversion.
7484         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7485         (syms_of_win32): add new function.
7486         * window.c (window_loop): build fix.
7487
7488 2001-10-15  Andy Piper  <andy@xemacs.org>
7489
7490         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7491
7492 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7493
7494         * XEmacs 21.4.5 "Civil Service" is released.
7495
7496 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7497
7498         * glyphs-x.c: Force buffer-tab highlight update when moving the
7499         buffer, avoiding an ugly black border, used for keyboard focus
7500         indication, on a widget that can never have keyboard focus, the
7501         buffer tab.
7502
7503 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7504
7505         * process-unix.c (unix_open_multicast_group): Remove too much
7506         conversion between host and network byte order.
7507
7508 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7509
7510         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7511         before replacing them.
7512
7513         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7514         operation.
7515
7516         * src/window.c (undedicate_windows): Use it.
7517         * src/window.h: Add prototype.
7518
7519 2001-09-17  Ben Wing  <ben@xemacs.org>
7520
7521         * fileio.c (normalize_filename):
7522         * fileio.c (Fexpand_file_name):
7523         Fix various C++ compile errors in Andy's recent code.
7524         
7525         * callint.c (Fcall_interactively):
7526         * editfns.c (Ftemp_directory):
7527         * editfns.c (Fuser_full_name):
7528         * emacs.c (argmatch):
7529         * lread.c (locate_file_map_suffixes):
7530         * redisplay-x.c (x_ring_bell):
7531         Fix sign-compare warnings.
7532         
7533 2001-09-08  Andy Piper  <andy@xemacs.org>
7534
7535         * fileio.c (normalize_filename): copied from nt.c
7536         * (Ffile_name_directory): enable win32 paths under cygwin.
7537         * (Ffile_name_nondirectory): ditto.
7538         * (directory_file_name): ditto.
7539         * (Fexpand_file_name): ditto.
7540         * (Ffile_truename): ditto.
7541         * (Fsubstitute_in_file_name): ditto.
7542         * (Ffile_name_absolute_p): ditto.
7543         * (Ffile_readable_p): ditto.
7544
7545 2001-09-08  Andy Piper  <andy@xemacs.org>
7546
7547         * device-msw.c (mswindows_finish_init_device): remove dde
7548         initialization.
7549         * device-msw.c (mswindows_init_dde): factor out from
7550         mswindows_finish_init_device()
7551         * device-msw.c (init_mswindows_very_early): new function
7552         initialize but don't enable dde.
7553         * emacs.c (main_1): call init_mswindows_very_early.
7554         * event-msw.c:
7555         * event-msw.c (mswindows_dde_callback): only execute when we are
7556         ready.
7557         * symsinit.h: declare init_mswindows_very_early.
7558
7559 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7560
7561         [sjt: This has been in 21.5 for months with no complaints.]
7562
7563         * console.h (struct console_methods): Added flags member.
7564         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7565         (CONMETH_IMPL_FLAG):
7566         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7567         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7568
7569         * device.c (window_system_pixelated_geometry): Use the above macros.
7570
7571         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7572         implememntation flag.
7573         * device.h (DEVICE_DISPLAY_P): Use it.
7574
7575         * frame.c (delete_frame_internal): Use the above macro.
7576
7577         * redisplay.c (redisplay_device): Use it.
7578         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7579         (redisplay_frame): Ditto.
7580
7581         * device-msw.c (mswindows_device_implementation_flags): Removed.
7582         (msprinter_device_implementation_flags): Removed.
7583         (console_type_create_device_mswindows): Removed references to
7584         implementation_flags methods, set implementation flags here.
7585         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7586
7587         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7588         (console_type_create_device_gtk): Removed method declaration.
7589         Added commented out statement which semantically matches the
7590         commented out statement in the above removed method.
7591
7592 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7593
7594         The attached patch fixes a few warnings. 
7595
7596         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7597         * src/frame-gtk.c: guard against GNOME calls in GTK only
7598         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7599         * src/select-gtk.c: prototype lisp_to_time
7600
7601 2001-06-08  Ben Wing  <ben@xemacs.org>
7602
7603         ------ gc-in-window-procedure fixes ------
7604         
7605         * alloc.c:
7606         * alloc.c (struct post_gc_action):
7607         * alloc.c (register_post_gc_action):
7608         * alloc.c (run_post_gc_actions):
7609         * alloc.c (garbage_collect_1):
7610         Create "post-gc actions", to avoid those dreaded "GC during window
7611         procedure" problems.
7612
7613         * event-msw.c:
7614         Abort, clean and simple, when GC in window procedure.  We want
7615         to flush these puppies out.
7616
7617         * glyphs-msw.c:
7618         * glyphs-msw.c (finalize_destroy_window):
7619         * glyphs-msw.c (mswindows_finalize_image_instance):
7620         Use a post-gc action when destroying subwindows.
7621
7622         * lisp.h:
7623         Declare register_post_gc_action().
7624
7625         * scrollbar-msw.c:
7626         * scrollbar-msw.c (unshow_that_mofo):
7627         Use a post-gc action when unshowing scrollbar windows, if in gc.
7628
7629         * redisplay.c (mark_redisplay):
7630         Add comment about the utter evilness of what's going down here.
7631
7632         ------ cygwin setitimer fixes ------
7633         
7634         * Makefile.in.in (sheap_objs):
7635         * Makefile.in.in (profile_objs):
7636         * Makefile.in.in (objs):
7637         Compile profile.c only when HAVE_SETITIMER.
7638         
7639         * nt.c (mswindows_sigset):
7640         * nt.c (mswindows_sighold):
7641         * nt.c (mswindows_sigrelse):
7642         * nt.c (mswindows_sigpause):
7643         * nt.c (mswindows_raise):
7644         * nt.c (close_file_data):
7645         Style fixes.
7646         
7647         * nt.c:
7648         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7649         
7650         * profile.c:
7651         * profile.c (Fstart_profiling):
7652         * profile.c (Fstop_profiling):
7653         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7654         instead of just plain setitimer().
7655         
7656         * signal.c:
7657         * signal.c (set_one_shot_timer):
7658         * signal.c (alarm):
7659         Define qxe_setitimer() as an encapsulation around setitimer() --
7660         call setitimer() directly unless Cygwin or MS Win, in which case
7661         we use our simulated version in win32.c.
7662         
7663         * systime.h:
7664         * systime.h (struct itimerval):
7665         * systime.h (ITIMER_REAL):
7666         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7667         comment about "qxe" and the policy regarding encapsulation.
7668
7669         * win32.c:
7670         * win32.c (setitimer_helper_proc):
7671         * win32.c (setitimer_helper_period):
7672         * win32.c (setitimer_helper):
7673         * win32.c (mswindows_setitimer):
7674         Move setitimer() emulation here, so Cygwin can use it.
7675         Rename a couple of functions and variables to be longer and more
7676         descriptive.  In setitimer_helper_proc(), send the signal
7677         using either mswindows_raise() or (on Cygwin) kill().  If for
7678         some reason we are still getting lockups, we'll change the kill()
7679         to directly invoke the signal handlers.
7680
7681         ------ windows shell fixes ------
7682         
7683         * callproc.c:
7684         * ntproc.c:
7685         Comments about how these two files must die.
7686
7687         * callproc.c (init_callproc):
7688         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7689         not just COMSPEC. (more correct and closer to FSF.) Don't
7690         force a value for SHELL into the environment. (Comments added
7691         to explain why not.)
7692         
7693         * nt.c (init_user_info):
7694         Don't shove a fabricated SHELL into the environment.  See above.
7695
7696 2001-06-01  Ben Wing  <ben@xemacs.org>
7697
7698         * Makefile.in.in (ldflags):
7699         eliminate that pesky "defaulting to 00401000" warning.
7700         * nt.h:
7701         eliminate warnings.
7702
7703 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7704
7705         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7706         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7707
7708 2001-04-24  Jerry James <james@xemacs.org>
7709
7710         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7711         correct order.
7712
7713 2001-06-01  Ben Wing  <ben@xemacs.org>
7714
7715         * event-msw.c (debug_mswin_messages):
7716         conditionalize the messages that were causing compile errors.
7717         (if only macros could generate #ifdef statements ...)
7718
7719 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7720
7721         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7722
7723 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7724
7725         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7726
7727 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7728
7729         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7730         * process-unix.c (unix_canonicalize_host_name):
7731         sysdep.c (init_system_name):
7732         Use it to conditionally support IPv6 canonicalization.
7733
7734 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7735
7736         * event-msw.c:
7737         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7738
7739 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7740
7741         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7742         attempt is made to scroll when no scroll bar is available.
7743
7744 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7745
7746         * input-method-motif.c (XIM_delete_frame): New callback.
7747         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7748         got deleted from 21.4.3.)
7749
7750 2001-06-01  Ben Wing  <ben@xemacs.org>
7751
7752         * nt.c (mswindows_utime):
7753         * nt.c (close_file_data):
7754         fix off-by-one-indirection error.
7755
7756 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7757
7758         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7759         because set_file_times() now takes Lisp_Object path, instead of
7760         char*.
7761         * nt.c: Include buffer.h.
7762         * nt.c (convert_from_time_t): New.
7763         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7764         not set mtime correctly.
7765         * nt.h: Declare mswindows_utime().
7766         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7767         path, instead of char*.
7768         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7769
7770 2001-05-30  Ben Wing  <ben@xemacs.org>
7771
7772         For 21.4:
7773
7774         (Stephen, just take all event-msw.c patches.  This includes
7775         the "iconify" fix below.)
7776
7777         * event-msw.c:
7778         * event-msw.c (mswindows_dequeue_dispatch_event):
7779         * event-msw.c (assert):
7780         * event-msw.c (emacs_mswindows_quit_p):
7781         * event-msw.c (debug_mswin_messages):
7782         * event-msw.c (debug_output_mswin_message):
7783         * event-msw.c (vars_of_event_mswindows):
7784         Fix yet more problems with C-g handling.
7785         Implement debug-mswindows-events.
7786         
7787 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7788
7789         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7790         
7791 2001-05-23  Ben Wing  <ben@xemacs.org>
7792
7793         * event-msw.c (winsock_writer):
7794         * event-msw.c (winsock_closer):
7795         prior kludgy code was clobbering the buffer, thinking it was
7796         "unused" space to store an unneeded return value; instead, use
7797         the variable we've already got staring us in the face.
7798
7799 2001-05-17  Andy Piper  <andy@xemacs.org>
7800
7801         * sysfile.h: don't assume that file attributes are boolean
7802
7803 2001-05-23  Ben Wing  <ben@xemacs.org>
7804
7805         * device-msw.c (msprinter_init_device):
7806         signal an error rather than crash with an unavailable network
7807         printer (from Mike Alexander).
7808         
7809         * event-msw.c:
7810         * event-msw.c (struct winsock_stream):
7811         * event-msw.c (winsock_writer):
7812         * event-msw.c (winsock_closer):
7813         * event-msw.c (make_winsock_stream_1):
7814         cleanup headers.  fix (hopefully) an error with data corruption
7815         when sending to a network connection.
7816
7817         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7818         to handle the ~user prefix by (a) always assuming we're referencing
7819         ourselves and not even verifying the user -- hence any file with
7820         a tilde as its first char is invalid! (b) if there wasn't a slash
7821         following the filename, the pointer was set *past* the end of
7822         file and we started reading from uninitialized memory.  Now we
7823         simply treat these as files, always.
7824
7825         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7826         
7827 2001-05-19  Ben Wing  <ben@xemacs.org>
7828
7829         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7830
7831         * process-nt.c:
7832         * process-nt.c (vars_of_process_nt):
7833         remove unused mswindows-quote-process-args.  rec for 21.4.
7834         
7835 2001-05-12  Ben Wing  <ben@xemacs.org>
7836
7837         * event-msw.c (mswindows_dde_callback):
7838         * event-msw.c (mswindows_wnd_proc):
7839         eliminate cygwin warnings.
7840
7841 2001-05-06  Ben Wing  <ben@xemacs.org>
7842
7843         * console-msw.h:
7844         * device-msw.c:
7845         * device-msw.c (print_dialog_worker):
7846         * device-msw.c (mswindows_handle_print_dialog_box):
7847         * device-msw.c (syms_of_device_mswindows):
7848         * dialog-msw.c (mswindows_make_dialog_box_internal):
7849         * general-slots.h:
7850         implement printing the selection when it's selected.
7851
7852 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7853
7854         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7855
7856 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7857
7858         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7859         EMACS_INT is signed.
7860
7861 2001-04-15  Michael Lausch  <mla@1012surf.net>
7862
7863         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7864         gtk_widget_request_size() to give scrollbar >0 width for
7865         GTK >1.2.8.
7866
7867 2001-05-30  William M. Perry  <wmperry@gnu.org>
7868
7869         * event-gtk.c: Check for buttons as modifier keys.
7870
7871 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7872
7873         * s\mingw32.h:
7874         Properly find MinGW's <process.h> inside Cygwin's restructured
7875         include directories.  Don't try to include <cygwin/version.h>
7876         since we are dropping support for MinGW in versions of Cygwin
7877         earlier than b21.
7878         * nt.c:
7879         Drop support for MinGW in versions of Cygwin before b21.
7880         * sysdep.c:
7881         Properly find MinGW's <process.h> inside Cygwin's restructured
7882         include directories.
7883         * syswindows.h:
7884         Drop support for MinGW in versions of Cygwin before b21.
7885         * unexcw.c:
7886         Even though a.out.h is no longer detected by configure, allow
7887         MinGW to use it until we figure out how to do the job with Win32.
7888
7889 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7890
7891         * syntax.c (find_start_of_comment):
7892         Fix `unbalanced parentheses' bug when dealing with mixed comment
7893         styles in c++/java/etc. mode
7894
7895 2001-05-29  Mike Alexander  <mta@arbortext.com>
7896
7897         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7898         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7899
7900 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7901
7902         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7903
7904 2001-03-31  Mike Sperber <mike@xemacs.org>
7905
7906         * search.c (Freplace_match): Support FSF-style specification of
7907         match subexpression when applied to a buffer.
7908
7909 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7910
7911         * event-stream.c (is_scrollbar_event): add missing semicolon
7912
7913 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7914
7915         * Makefile.in.in: Use TAR macro instead of hardcoding
7916           tar.  Allows use of GNU tar instead of system tar
7917
7918 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7919
7920         * event-stream.c (is_scrollbar_event): add missing semicolon
7921
7922 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7923
7924         * XEmacs 21.4.3 "Academic Rigor" is released.
7925
7926 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7927
7928         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7929
7930 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7931
7932         * buffer.c (Vcase_fold_search): Remove obsolete
7933           comment about non ASCII case-fold-search.  This
7934           bug has been fixed by case-table changes.
7935
7936 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7937
7938         * event-msw.c: Restore include of events-mod.h.
7939
7940 2001-04-22   zhaoway  <zw@debian.org>
7941
7942         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7943         !HAVE_SCROLLBARS.
7944
7945 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7946
7947         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7948
7949 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7950
7951         * mule-charset.c (Fmake_charset): Add missing else.
7952
7953 2001-04-23  Ben Wing  <ben@xemacs.org>
7954
7955         * event-msw.c (FAKE_MOD_QUIT):
7956         * event-msw.c (mswindows_dequeue_dispatch_event):
7957         * event-msw.c (mswindows_wnd_proc):
7958         * event-msw.c (emacs_mswindows_quit_p):
7959         Get critical quit working.
7960
7961 2001-05-05  Ben Wing  <ben@xemacs.org>
7962
7963         * console-msw.h:
7964         * device-msw.c:
7965         * device-msw.c (mswindows_get_default_margin):
7966         * frame-msw.c (mswindows_size_frame_internal):
7967         * frame-msw.c (msprinter_init_frame_1):
7968         * frame-msw.c (vars_of_frame_mswindows):
7969         Change top/bottom margin defaults to 0.5 inches.
7970
7971 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7972
7973         Fix link error with gcc 3.0 on Linux.
7974         * terminfo.c (UP): Remove.
7975         * terminfo.c (BC): Remove.
7976         * terminfo.c (PC): Remove.
7977         They weren't used, and in any case, these symbols should be
7978         defined in the *library*.
7979
7980 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7981
7982         * s/aix4.h: Fix crash with xlc -O3.
7983         Improve comment explaining how -O3 works.
7984
7985 2001-04-15  Ben Wing  <ben@xemacs.org>
7986
7987         * event-stream.c:
7988         * event-stream.c (Fnext_event):
7989         * event-stream.c (is_scrollbar_event):
7990         * event-stream.c (execute_command_event):
7991         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7992         crash' problem.  His fix introduces other problems.  We filter
7993         out scrollbar events specifically, making them somewhat invisible
7994         to command-building, and not appearing in `this-command-keys'.
7995         More work is still needed (see comments in event-stream.c), but
7996         this fixes all the major problems.
7997
7998 2001-04-20  Ben Wing  <ben@xemacs.org>
7999
8000         * .cvsignore: Added stuff for Windows.
8001
8002 2001-04-28  Ben Wing  <ben@xemacs.org>
8003
8004         * buffer.c (Ferase_buffer):
8005         * editfns.c (buffer_insert1):
8006         * editfns.c (Finsert_before_markers):
8007         * editfns.c (Finsert_string):
8008         * editfns.c (Finsert_char):
8009         * editfns.c (Fdelete_region):
8010         * editfns.c (Fwiden):
8011         * editfns.c (Fnarrow_to_region):
8012         remove bogus lines setting zmacs_region_stays to 0.
8013         
8014 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8015
8016         * process-unix.c (unix_open_network_stream): If connect() fails
8017         invalidate file descriptor after closing it.
8018
8019 2001-03-08  Mike Alexander  <mta@arbortext.com>
8020
8021         * event-msw.c (mswindows_need_event_in_modal_loop):
8022         Don't dispatch a message if we didn't get one.
8023         (mswindows_need_event):
8024         Terminate the correct process when one exits instead of the first
8025         one on Vprocess_list and look for process termination when in
8026         mswindows_protect_modal_loop.
8027
8028 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8029
8030         * XEmacs 21.4.1 "Copyleft" is released.
8031
8032 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8033
8034         * input-method-motif.c (XIM_delete_frame): New callback.
8035         (XIM_init_frame): Register it.
8036
8037 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8038
8039         * XEmacs 21.4.0 "Solid Vapor" is released.
8040
8041 2001-04-15  Ben Wing  <ben@xemacs.org>
8042
8043         * cmdloop.c (call_command_loop):
8044         Fix braino in bit-rotting code.
8045         
8046 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8047
8048         * extents.c (Fset_extent_endpoints): Force creation of extent info
8049         in buffer_or_string.
8050
8051         * extents.c (process_extents_for_insertion_mapper): Correctly
8052         check for open-open zero-length extents.
8053
8054 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8055
8056         * lisp.h: New typedefs Memory_count, Element_count.
8057         * regex.c:
8058         * regex.h:
8059         Sign-compare warning elimination: several unsigned -> signed.
8060         Based on work by Ben Wing <ben@xemacs.org>.
8061
8062 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8063
8064         * XEmacs 21.2.47 "Zephir" is released.
8065
8066 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8067
8068         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8069
8070 2001-04-03  Mike Sperber <mike@xemacs.org>
8071
8072         * search.c: Revert previous patch due because of release.
8073
8074 2001-03-30  Ben Wing  <ben@xemacs.org>
8075
8076         * s\cygwin32.h:
8077         Add missing killpg prototype.
8078
8079         * elhash.c:
8080         Add a comment about fixing problems when a new entry is added
8081         while mapping.
8082
8083         * frame-msw.c (mswindows_init_frame_1):
8084         Fix compile warnings.
8085
8086         * menubar.c (vars_of_menubar):
8087         Provide `menu-accelerator-support' to indicate that we properly
8088         support %_ in menu specifications, so that package code can
8089         conditionalize on this (and remove %_ from menu specifications
8090         on older versions).
8091
8092         * event-msw.c:
8093         * scrollbar-msw.c:
8094         * scrollbar-msw.c (can_scroll):
8095         * scrollbar-msw.h:
8096         Fix handling of mouse wheel under Windows to follow standards --
8097         now scrolls window under pointer, not selected window.
8098
8099 2001-03-31  Mike Sperber <mike@xemacs.org>
8100
8101         * search.c (Freplace_match): Support FSF-style specification of
8102         match subexpression when applied to a buffer.
8103
8104 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8105
8106         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8107         function to modify KEYMAP, so map over a copy of the hash table.
8108
8109 2001-03-21  Martin Buchholz <martin@xemacs.org>
8110
8111         * XEmacs 21.2.46 "Urania" is released.
8112
8113 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8114
8115         * realpath.c (xrealpath): Make file-truename work with symlinks to
8116         /cygdrive paths on cygwin. Always lowercase drive-letters on
8117         native windows.
8118         (cygwin_readlink): Don't try to find canonical filename unless
8119         file exists.
8120
8121 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8122
8123         * ChangeLog: Log GTK merge.
8124
8125         * dumper.c:
8126         * select-x.c:
8127         * specifier.c:
8128         * symeval.h:
8129         Revert gratuitous whitespace changes from GTK merge.
8130
8131         * emacs.c: Document end of complex #ifdef @ l. 1495.
8132
8133
8134 2001-03-12  Andy Piper  <andy@xemacs.org>
8135
8136         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8137         have to do likewise.
8138
8139 2001-03-12  Andy Piper  <andy@xemacs.org>
8140
8141         * sysdep.c: we only support mingw now.
8142
8143 2001-03-09  Andy Piper  <andy@xemacs.org>
8144
8145         * unexcw.c (copy_executable_and_dump_data_section): making approx
8146         overrun a warning only.
8147
8148 2001-03-10  William M. Perry  <wmperry@aventail.com>
8149
8150         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8151         satisfy Stephen's identical-after-cpp plea.
8152
8153 2001-03-02  Ben Wing  <ben@xemacs.org>
8154
8155         * cmds.c:
8156         * cmds.c (Fforward_char):
8157         * syntax.c:
8158         * window.c:
8159
8160         Augment documentation of the most common motion commands to make
8161         note of the shifted-motion support.
8162         
8163 2001-03-02  Ben Wing  <ben@xemacs.org>
8164
8165         * nt.c (mswindows_fstat):
8166         * nt.c (mswindows_stat):
8167         * search.c (boyer_moore):
8168         Fix compile warnings under Windows.
8169         
8170         * sysdep.c (sys_readdir):
8171         Fix buggy filename-conversion code under Mule.
8172
8173 2001-03-09  William M. Perry  <wmperry@aventail.com>
8174
8175         * Makefile.in.in:
8176         * config.h.in:
8177         * console.c:
8178         * console.h:
8179         * device.c:
8180         * device.h:
8181         * dragdrop.c:
8182         * emacs.c:
8183         * event-stream.c:
8184         * events.c:
8185         * events.h:
8186         * faces.c:
8187         * frame.h:
8188         * general-slots.h:
8189         * glyphs.c:
8190         * gutter.c:
8191         * inline.c:
8192         * lisp.h:
8193         * lrecord.h:
8194         * make-src-depend:
8195         * redisplay-output.c:
8196         * redisplay.c:
8197         * symsinit.h:
8198         * sysfile.h:
8199         * toolbar.c:
8200         * window.c:
8201         The Great GTK Merge.
8202
8203         * ChangeLog.GTK:
8204         * console-gtk.c:
8205         * console-gtk.h:
8206         * device-gtk.c:
8207         * emacs-marshals.c:
8208         * emacs-widget-accessors.c:
8209         * event-gtk.c:
8210         * frame-gtk.c:
8211         * gccache-gtk.c:
8212         * gccache-gtk.h:
8213         * glade.c:
8214         * glyphs-gtk.c:
8215         * glyphs-gtk.h:
8216         * gtk-glue.c:
8217         * gtk-xemacs.c:
8218         * gtk-xemacs.h:
8219         * gui-gtk.c:
8220         * gui-gtk.h:
8221         * menubar-gtk.c:
8222         * native-gtk-toolbar.c:
8223         * objects-gtk.c:
8224         * objects-gtk.h:
8225         * redisplay-gtk.c:
8226         * scrollbar-gtk.c:
8227         * scrollbar-gtk.h:
8228         * select-gtk.c:
8229         * toolbar-gtk.c:
8230         * ui-byhand.c:
8231         * ui-gtk.c:
8232         * ui-gtk.h:
8233         The Great GTK Merge: new files.
8234
8235 2001-02-26  Ben Wing  <ben@xemacs.org>
8236
8237         Reapplied Lstream change.
8238
8239 2001-02-26  Ben Wing  <ben@xemacs.org>
8240
8241         Undid the last change, since it is more controversial than I
8242         thought.  It should be back in at some point soon.
8243         
8244 2001-02-25  Ben Wing  <ben@xemacs.org>
8245
8246         * buffer.c:
8247         * callproc.c (Fold_call_process_internal):
8248         * event-msw.c (ntpipe_slurp_reader):
8249         * event-msw.c (ntpipe_shove_writer):
8250         * event-msw.c (winsock_reader):
8251         * event-msw.c (winsock_writer):
8252         * file-coding.c:
8253         * file-coding.c (detect_eol_type):
8254         * file-coding.c (detect_coding_type):
8255         * file-coding.c (determine_real_coding_system):
8256         * file-coding.c (Fdetect_coding_region):
8257         * file-coding.c (decoding_reader):
8258         * file-coding.c (decoding_writer):
8259         * file-coding.c (mule_decode):
8260         * file-coding.c (Fdecode_coding_region):
8261         * file-coding.c (encoding_reader):
8262         * file-coding.c (encoding_writer):
8263         * file-coding.c (mule_encode):
8264         * file-coding.c (Fencode_coding_region):
8265         * file-coding.c (detect_coding_sjis):
8266         * file-coding.c (decode_coding_sjis):
8267         * file-coding.c (encode_coding_sjis):
8268         * file-coding.c (detect_coding_big5):
8269         * file-coding.c (decode_coding_big5):
8270         * file-coding.c (encode_coding_big5):
8271         * file-coding.c (detect_coding_ucs4):
8272         * file-coding.c (decode_coding_ucs4):
8273         * file-coding.c (encode_coding_ucs4):
8274         * file-coding.c (detect_coding_utf8):
8275         * file-coding.c (decode_coding_utf8):
8276         * file-coding.c (encode_coding_utf8):
8277         * file-coding.c (detect_coding_iso2022):
8278         * file-coding.c (decode_coding_iso2022):
8279         * file-coding.c (encode_coding_iso2022):
8280         * file-coding.c (decode_coding_no_conversion):
8281         * file-coding.c (encode_coding_no_conversion):
8282         * glyphs-x.c (write_lisp_string_to_temp_file):
8283         * gpmevent.c (tty_get_foreign_selection):
8284         * lisp.h:
8285         * lstream.c:
8286         * lstream.c (Lstream_flush_out):
8287         * lstream.c (Lstream_adding):
8288         * lstream.c (Lstream_write_1):
8289         * lstream.c (Lstream_write):
8290         * lstream.c (Lstream_raw_read):
8291         * lstream.c (Lstream_read_more):
8292         * lstream.c (Lstream_read):
8293         * lstream.c (Lstream_unread):
8294         * lstream.c (Lstream_fputc):
8295         * lstream.c (stdio_reader):
8296         * lstream.c (stdio_writer):
8297         * lstream.c (filedesc_reader):
8298         * lstream.c (filedesc_writer):
8299         * lstream.c (lisp_string_reader):
8300         * lstream.c (struct fixed_buffer_stream):
8301         * lstream.c (make_fixed_buffer_input_stream):
8302         * lstream.c (make_fixed_buffer_output_stream):
8303         * lstream.c (fixed_buffer_reader):
8304         * lstream.c (fixed_buffer_writer):
8305         * lstream.c (struct resizing_buffer_stream):
8306         * lstream.c (resizing_buffer_writer):
8307         * lstream.c (dynarr_writer):
8308         * lstream.c (lisp_buffer_reader):
8309         * lstream.c (lisp_buffer_writer):
8310         * lstream.h:
8311         * lstream.h (lstream_implementation):
8312         * lstream.h (struct lstream):
8313         * md5.c (Fmd5):
8314         * process-nt.c (nt_send_process):
8315         * process-unix.c (unix_send_process):
8316         
8317         Correct Lstream lossage due to mixing of signed and unsigned
8318         quantities.  All Lstream uses of size_t and ssize_t are now a
8319         single signed data type Lstream_data_count.  This fixes problems
8320         under Windows with sending large quantities of data to a process,
8321         and may well fix other subtle bugs.
8322
8323 2001-02-23  Martin Buchholz <martin@xemacs.org>
8324
8325         * XEmacs 21.2.45 "Thelxepeia" is released.
8326
8327 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8328
8329         * lisp-union.h (XSETINT): 
8330         (XSETCHAR):
8331         (XSETOBJ): 
8332         Reverse previous change of 2001-02-06.
8333
8334 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8335
8336         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8337         buffers.
8338         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8339         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8340         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8341         * regex.c (POS_AS_IN_BUFFER): removed
8342         * regex.c (re_search_2):
8343         * regex.c (re_match_2):
8344         Don't use an offset of 1 when calculating buffer positions, since
8345         `BI_BUF_BEGV' does it already.
8346
8347 2001-02-18  Wim Dumon  <wim@easics.be>
8348
8349         * insdel.c (prepare_to_modify_buffer): Also check for
8350         supersession when clash-detection is enabled. 
8351
8352 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8353
8354         * regex.c (re_match_2_internal):
8355         Convert temp characters from 'const unsigned char' to 're_char'.
8356         Fix crashing bug with extended characters under mule.
8357         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8358         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8359         font-lock, pdump, and new syntax-table code.
8360         * syntax.c (find_start_of_comment):
8361         (find_end_of_comment):
8362         (forward-comment):
8363         Fix crashing bugs involving moving beyond end of buffer.
8364         * syntax.c (find_start_of_comment):
8365         Fixed logic to allow proper detection of cases where the same
8366         character is used to end both a two-char comment start and a
8367         two-char comment end sequence. Fixes `(forward-comment -1)'.
8368         * syntax.c (find_start_of_comment):
8369         Return position just past last comment-end character for all cases
8370         (previously was only done for two-char comment-end sequences).
8371         * syntax.c (forward-comment):
8372         Take value returned from `find_end_of_comment', rather than
8373         incrementing it.
8374         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8375         Properly deal with BUFFERP (syntax_cache.object)
8376
8377 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8378
8379         * alloc.c (Fgarbage_collect): 
8380         * alloc.c (make_bit_vector_from_byte_vector):
8381         -Wsign-compare-correctness.
8382
8383 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8384
8385         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8386         (XSETCHAR): Likewise.
8387         (XSETOBJ): Likewise.
8388
8389 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8390
8391         * mule-canna.c (canna-func-delete_previous): 
8392         Rename to canna-func-delete-previous.
8393
8394 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8395
8396         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8397
8398 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8399
8400         * font-lock.c (find_context): Fix C++ compile errors introduced by
8401         recent patch
8402
8403 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8404
8405         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8406         pragma, but earlier ones barf on the same pragma.
8407
8408 2001-02-06  Mike Sperber <mike@xemacs.org>
8409
8410         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8411         `configure-mule-lisp-directory'.
8412
8413 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8414
8415         Make sure dump-id.c is compiled in the same way as other .c's.
8416         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8417         * dump-id.h: Remove.
8418         * emacs.c: Move dump-id.h into dumper.h.
8419         * dumper.h: Move dump-id.h into dumper.h.
8420         * Makefile.in.in:
8421         Use standard .c.o rule for building dump-id.o.
8422         Remove preprocessor flags from link command.
8423         Add dump-id.o to ${otherobjs} if PDUMP.
8424
8425 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8426
8427         Port FSF 20.7 syntax table improvements.
8428         * syntax.c.
8429         * syntax.h.
8430
8431         Fixups for new syntax table stuff.
8432         * dired.c: Include syntax.c.
8433         (Fdirectory_files): Initialize regex_match_object and
8434         regex_emacs_buffer.
8435         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8436         and Fget_char_property.
8437
8438         Use ported FSF 20.7 syntax table improvements.
8439         * font-lock.c.
8440         * regex.c.
8441         * search.c.
8442         
8443 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8444
8445         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8446         Unixware's enum boolean from sys/types.h.
8447
8448 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8449
8450         Fix support for building with latest Purify.
8451         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8452         (PURIFY_FLAGS): Likewise.
8453
8454 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8455
8456         * fileio.c (lisp_string_set_file_times): New.
8457         * fileio.c (Fcopy_file): Use it.
8458         Fixes bug:
8459         (copy-file filename non-ascii-filename t t)
8460         ==> No such file or directory, non-ascii-filename
8461
8462 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8463
8464         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8465         USHRT_MAX seems clearer than ~0 anyways.
8466
8467 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8468
8469         dumper improvements.  Inspired by Olivier.
8470         * dumper.c (pdump_max_align): New.
8471         * dumper.c (pdump_add_entry): Use pdump_max_align.
8472         * dumper.c (pdump_get_entry_list): Likewise.
8473         * dumper.c (pdump_scan_by_alignment): Likewise.
8474         Don't iterate through unnecessary alignments.
8475         * dumper.c (pdump_file_get): No need to align result of malloc().
8476         * dumper.c (pdump_mallocadr): Remove.  
8477         The result of malloc() is guaranteed to be maximally aligned.
8478         * dumper.c: s/elmt/elt/g;
8479         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8480         * dumper.c (pdump_alert_undump_object): Likewise.
8481         * dumper.c (pdump_align_table): 
8482         Don't support alignments > 64.
8483         Store ALIGNOF's, not shift counts, in table.
8484
8485 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8486
8487         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8488         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8489         * systime.h: Use HAVE_UTIME.
8490         * sysdep.c (struct utimbuf): Remove.
8491         * sysdep.c (set_file_times): Prefer utime() to utimes().
8492         * config.h.in (HAVE_UTIME): New.
8493         * config.h.in (HAVE_UTIME_H): Remove.
8494         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8495
8496 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8497
8498         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8499
8500 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8501
8502         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8503
8504 2001-02-08  Martin Buchholz <martin@xemacs.org>
8505
8506         * XEmacs 21.2.44 "Thalia" is released.
8507
8508 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8509
8510         Fixes crashes in kill-emacs on some systems.
8511         * process-unix.c (unix_kill_child_process):
8512         It's OK for kill() to fail with ESRCH.
8513
8514 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8515
8516         Contortions to make .gdbinit tricks work on most systems.
8517         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8518         * alloc.c (dbg_valmask): Make non-const.
8519         * alloc.c (dbg_typemask): Make non-const.
8520         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8521         * alloc.c (dbg_valbits): Make non-const.
8522         * alloc.c (dbg_gctypebits): Make non-const.
8523         * .gdbinit (decode_object): Make it work with AIX cc.
8524
8525 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8526
8527         * elhash.c (make_general_lisp_hash_table):
8528         Use simpler and more efficient calloc to clear entries.
8529
8530 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8531
8532         * window.c (window_scroll): Work around an AIX C compiler bug.
8533         Fixes 'scroll-up' does nothing problem with xlC.
8534
8535 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8536
8537         * .gdbinit: Remove obsolete comment.
8538
8539 2001-01-31  Mike Alexander  <mta@arbortext.com>
8540
8541         * select.c (Fown_selection_internal): Set owned_p for device
8542         method correctly.
8543
8544 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8545
8546         Port to g++ 2.97.
8547         "not" cannot be used as a macro name as it is an operator in C++
8548         * config.h.in: Stop #defining `not'.
8549         * chartab.c (check_category_char): not ==> not_p
8550         * chartab.h: Likewise.
8551         * regex.c (re_match_2_internal): Likewise.
8552
8553 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8554
8555         * lisp-disunion.h: Fix up comments.
8556
8557 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8558
8559         * keymap.c (define_key_check_and_coerce_keysym):
8560         (syms_of_keymap):
8561         Support mouse-6 and mouse-7 bindings in the obvious way.
8562
8563 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8564
8565         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8566
8567 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8568
8569         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8570         Previous patch missed DEFVAR_INT_MAGIC.
8571         Make sure future DEFVAR_foo use correct types.
8572         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8573         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8574         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8575         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8576         * (DEFVAR_INT): Likewise.
8577         * redisplay.c (vertical_clip): Should be of type Fixnum.
8578         * redisplay.c (horizontal_clip): Likewise.
8579         * lisp.h (dump_add_opaque_int): New.
8580         (dump_add_opaque_fixnum): New.
8581
8582 2001-01-29  Andy Piper  <andy@xemacs.org>
8583
8584         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8585         since they can be eval'ed
8586
8587 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8588
8589         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8590         Oops, XEmacs redefines `class'.  Use `typename' instead.
8591
8592 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8593
8594         * dumper.c: Fix C++ compile errors.
8595
8596 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8597
8598         * tparam.c: Use correct prototypes.
8599
8600 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8601
8602         * sysproc.h: #include util.h for NetBSD's openpty.
8603
8604 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8605
8606         More 64-bit correctness.
8607         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8608         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8609         Fix up comments.
8610         This finally finishes the 64-bit SGI port.
8611         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8612         * symbols.c: Fix up comments and type casts.
8613         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8614         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8615         * symeval.h (Fixnum): New type.
8616         * symeval.h (symbol_value_type): Fix up comment.
8617
8618         * commands.h:
8619         * nt.c:
8620         * emacs.c:
8621         * data.c:
8622         * redisplay.c:
8623         * abbrev.c:
8624         * dired-msw.c:
8625         * event-Xt.c:
8626         * eldap.c:
8627         * window.c:
8628         * sound.c:
8629         * event-stream.c:
8630         * eval.c:
8631         * buffer.c:
8632         * mule-canna.c: A million DEFVAR_INTs here...
8633         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8634         * extents.c:
8635         * cmdloop.c:
8636         * lisp.h:
8637         * select-x.c:
8638         * console-x.h:
8639         * event-msw.c:
8640         * mule-wnnfns.c:
8641         * hpplay.c:
8642         * ralloc.c:
8643         * alloc.c:
8644         * keymap.c:
8645         * profile.c:
8646         s/int/Fixnum/g in DEFVAR_INT declarations.
8647
8648 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8649
8650         Port pdump to SGI alignment-sensitive environment.
8651         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8652         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8653         properly aligned.
8654         Define and use aligned reading and writing macros.
8655         Use buffered stdio instead of posix i/o for faster dumping.
8656         Eliminate kludgy 256 byte space for header.
8657         Read and write from dump file using structs for alignment safety.
8658         * dumper.c (pdump_align_stream): New.
8659         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8660         * dumper.c (PDUMP_READ_ALIGNED): New.
8661         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8662         * dumper.c (pdump_static_Lisp_Object): New struct.
8663         * dumper.c (pdump_static_pointer): New struct.
8664         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8665         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8666         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8667         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8668
8669         * dumper.c (pdump_backtrace):
8670         * dumper.c (pdump_get_indirect_count):
8671         * dumper.c (pdump_register_object):
8672         * dumper.c (pdump_register_struct):
8673         * dumper.c (pdump_reloc_one):
8674         * dumper.c (pdump_scan_by_alignment):
8675         * dumper.c (pdump_dump_from_root_struct_ptrs):
8676         * dumper.c (pdump_dump_opaques):
8677         * dumper.c (pdump_dump_rtables):
8678         * dumper.c (pdump_dump_from_root_objects):
8679         * dumper.c (pdump):
8680         * dumper.c (pdump_load_finish):
8681         Use aligned reading and writing.
8682
8683         * dumper.c (pdump_free): Make static.
8684         * dumper.c (pdump_hFile): Likewise.
8685         * dumper.c (pdump_hMap): Likewise.
8686
8687 2001-01-26  Martin Buchholz <martin@xemacs.org>
8688
8689         * XEmacs 21.2.43 "Terspichore" is released.
8690
8691 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8692
8693         Type fiddling for window_config.saved_windows_count
8694         * window.c (struct window_config): 
8695         Make saved_windows_count member unsigned.
8696         * window.c (sizeof_window_config_for_n_windows): 
8697         Make parameter unsigned.
8698         * window.c (mark_window_config):
8699         * window.c (window_config_equal):
8700         * window.c (free_window_configuration):
8701         * window.c (Fset_window_configuration):
8702         * window.c (count_windows):
8703         * window.c (Fcurrent_window_configuration):
8704         * window.c (reinit_vars_of_window):
8705         Update all callers and users.
8706
8707 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8708
8709         Alignment correctness for flexible arrays.
8710         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8711         Make alignment-correct. Add interesting comments.
8712         * alloc.c (size_vector):
8713         * alloc.c (make_vector_internal):
8714         * alloc.c (make_bit_vector_internal):
8715         * alloc.c (sweep_bit_vectors_1):
8716         * fns.c (size_bit_vector):
8717         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8718         * window.c (sizeof_window_config_for_n_windows): 
8719         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8720
8721 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8722
8723         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8724
8725 2001-01-23  Andy Piper  <andy@xemacs.org>
8726
8727         * select.c (Fown_selection_internal): pass owned_p
8728
8729         * select-msw.c (mswindows_own_selection): New Signature.
8730
8731         * console.h (struct console_methods): add owned_p to
8732         _own_selection.
8733
8734         * select-x.c (x_own_selection): pass owned_p
8735         (hack_motif_clipboard_selection): use owned_p
8736         (vars_of_select_x): new variable -
8737         x_selection_strict_motif_ownership.
8738
8739 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8740
8741         * specifier.h (specifier_data_offset): Remove pointless parens.
8742         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8743
8744 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8745
8746         Make Lisp_Object sizeof methods be alignment-correct.
8747         pdump must restore objects to the same alignment as the C compiler
8748         assumes.  It really matters on SGIs.
8749         * lstream.c (aligned_sizeof_lstream): New.
8750         (sizeof_lstream): Use aligned_sizeof_lstream.
8751         (Lstream_new): Likewise.
8752         * opaque.c (aligned_sizeof_opaque): New.
8753         (sizeof_opaque): Use aligned_sizeof_opaque.
8754         (make_opaque): Likewise.
8755         * specifier.c (aligned_sizeof_specifier): New.
8756         (sizeof_specifier): Use aligned_sizeof_specifier.
8757         (make_specifier_internal): Likewise.
8758
8759 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8760
8761         * lstream.h (struct lstream): Use max_align_t for trailing data.
8762         * specifier.h (struct Lisp_Specifier): Likewise.
8763
8764 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8765
8766         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8767         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8768         (CCL_SUSPEND): Likewise.
8769         (CCL_INVALID_CMD): Likewise.
8770         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8771         (ccl_driver): Likewise.
8772         (CCL_WRITE_CHAR): Macro hygiene.
8773         (CCL_WRITE_STRING): Macro hygiene.
8774
8775 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8776
8777         Port "portable" dumper to SunOS 4 and HP-UX.
8778         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8779         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8780         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8781
8782 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8783
8784         * lisp.h (ALIGNOF): A better definition for C++.
8785
8786 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8787
8788         Macro hygiene.
8789         Fix printf warnings: int format, long int arg.
8790         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8791         (PUSH_FAILURE_POINT): Use correct printf formats.
8792         (POP_FAILURE_POINT): Use correct printf formats.  
8793         Use do {...} while (0)
8794
8795 2001-01-20  Martin Buchholz <martin@xemacs.org>
8796
8797         * XEmacs 21.2.42 "Poseidon" is released.
8798
8799 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8800
8801         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8802
8803 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8804
8805         De-kludgify FIXED_TYPE free list frobbing.
8806         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8807         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8808         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8809         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8810         * alloc.c (LRECORD_FREE_P): New.
8811         * alloc.c (MARK_LRECORD_AS_FREE): New.
8812         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8813         * alloc.c (STRUCT_FREE_P): Deleted.
8814         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8815         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8816         * alloc.c (STRING_CHARS_FREE_P): New.
8817         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8818         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8819         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8820         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8821         * alloc.c (resize_string): Use new definitions.
8822         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8823         * alloc.c (verify_string_chars_integrity): Use new definitions.
8824         * alloc.c (compact_string_chars): Use new definitions.
8825         * alloc.c: Update monster comments.
8826         * lrecord.h (lrecord_type): Add some new lrecord types for
8827         alloc.c's use.
8828
8829 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8830
8831         Improve alignment hackery.
8832         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8833         (max_align_t): Moved from opaque.h - general purpose.
8834         (ALIGN_PTR): Use size_t, not long.
8835         * opaque.h (max_align_t): Move to lisp.h.
8836
8837 2001-01-18  Norbert Koch  <nk@LF.net>
8838
8839         * gui.h: Fix and add prototypes to fix build problems.
8840
8841 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8842
8843         temacs is going away, so `dump-temacs' is now a bad name.
8844         * .dbxrc (dump-temacs): Rename to `dmp'.
8845         * .gdbinit (dump-temacs): Rename to `dmp'.
8846
8847 2001-01-17  Andy Piper  <andy@xemacs.org>
8848
8849         * glyphs.c (print_image_instance): comment to make martin happy.
8850
8851         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8852         change.
8853
8854         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8855         activation.
8856         (mswindows_tab_control_redisplay): warning suppression.
8857
8858         * glyphs-widget.c (widget_update): re-write to cope with updated
8859         items.
8860         (widget_instantiate): use new gui_item functions.
8861         (tab_control_update): deleted.
8862         (progress_gauge_update): deleted.
8863         (image_instantiator_progress_guage): take out update reference.
8864         (image_instantiator_tree_view): ditto.
8865         (image_instantiator_tab_control): ditto.
8866
8867         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8868         Right the new way.
8869         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8870         return whether anything was changed.
8871         (update_gui_item_keywords): as it sounds.
8872
8873         * gui.h: declare widget_gui_parse_item_keywords.
8874
8875         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8876         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8877
8878 2001-01-17  Martin Buchholz <martin@xemacs.org>
8879
8880         * XEmacs 21.2.41 "Polyhymnia" is released.
8881
8882 2001-01-16  Didier Verna  <didier@xemacs.org>
8883
8884         * glyphs.c (image_instantiate): don't use fallbacks when
8885         instantiating a face's background pixmap by inheritance.
8886
8887 2001-01-14  Mike Sperber <mike@xemacs.org>
8888
8889         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8890         Conditionalize accordingly.
8891
8892 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8893
8894         * dumper.c (pdump_file_get): Fix a compiler warning.
8895
8896 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8897
8898         Make Purify happy when pdumping.
8899         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8900         iniitalizing all bits of new lisp object memory.
8901         * symbols.c (Fmake_local_variable): Likewise.
8902         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8903         * symbols.c (Fdefvaralias): Likewise.
8904         * mule-charset.c (vars_of_mule_charset): Likewise.
8905
8906 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8907         Add the `-nd' flag when running pre-dump operations under the debugger.
8908         * .dbxrc (run-temacs): Add `-nd'.
8909         * .dbxrc (update-elc): Likewise.
8910         * .dbxrc (dump-temacs): Likewise.
8911         * .gdbinit (run-temacs): Likewise.
8912         * .gdbinit (check-temacs): Likewise.
8913         * .gdbinit (update-elc): Likewise.
8914         * .gdbinit (dump-temacs): Likewise.
8915
8916 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8917
8918         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8919         export OBJECT_MODE=64
8920         configure --pdump --use-union-type=no
8921         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8922         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8923
8924         * miscplay.c (sndcnv8U_2mono):
8925         Avoid two uses of `++' in the same expression.
8926         Suppresses a GCC warning.
8927
8928 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8929
8930         Make sure future compilers don't miscompile alloc.c.
8931         * alloc.c:
8932         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8933         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8934
8935 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8936
8937         * dumper.c: A little post-pdump-rename comment fixup.
8938
8939 2001-01-09  Jerry James  <james@eecs.ku.edu>
8940
8941         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8942
8943 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8944
8945         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8946         script:
8947         #!/bin/sh
8948         replace_symbol () {
8949           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8950         }
8951
8952         replace_symbol pdump_wire_lists pdump_weak_object_chains
8953         replace_symbol pdump_wire_list dump_add_weak_object_chain
8954
8955         replace_symbol pdump_wires pdump_root_objects
8956         replace_symbol pdump_wire dump_add_root_object
8957
8958         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8959         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8960
8961         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8962         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8963         replace_symbol dumpstructinfo pdump_root_struct_ptr
8964         replace_symbol dumpstruct dump_add_root_struct_ptr
8965
8966         replace_symbol dumpopaque dump_add_opaque
8967         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8968         replace_symbol dumpopaqueinfos pdump_opaques
8969         replace_symbol dumpopaqueinfo pdump_opaque
8970
8971         replace_symbol nb_structdump nb_root_struct_ptrs
8972         replace_symbol nb_opaquedump nb_opaques
8973
8974         replace_symbol align_table pdump_align_table
8975         replace_symbol dump_header pdump_header
8976
8977         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8978         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8979
8980
8981 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8982
8983         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8984         optimizing bytecount_to_charcount().
8985
8986 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8987
8988         * config.h.in:
8989         (HAVE_DLFCN_H): Removed.
8990         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8991
8992 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8993
8994         Portable dumper maintainability improvements.
8995         * alloc.c (staticpro):
8996         * alloc.c (staticpro_nodump):
8997         * alloc.c (garbage_collect_1):
8998         * alloc.c (reinit_alloc_once_early):
8999         * alloc.c (init_alloc_once_early):
9000         * alloc.c: Move dumper functions to alloc.c.
9001         * dumper.c (pdump_backtrace):
9002         * dumper.c (pdump_dump_structs):
9003         * dumper.c (pdump_dump_opaques):
9004         * dumper.c (pdump_dump_rtables):
9005         * dumper.c (pdump_dump_wired):
9006         * dumper.c (pdump):
9007         * dumper.c (pdump_load_check):
9008         * dumper.c (pdump_load_finish):
9009         * dumper.c (pdump_file_unmap):
9010         * dumper.c (pdump_file_get):
9011         * dumper.c (pdump_resource_free):
9012         * dumper.c (pdump_resource_get):
9013         * dumper.c (pdump_file_free):
9014         * dumper.c (pdump_file_try):
9015         * dumper.c (pdump_load):
9016         Remove fixed size limits on staticpro(), staticpro_nodump(),
9017         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9018         Remove custom code for dumping lrecord_implementations_table - use
9019         dumpopaque instead.
9020         Remove (most of the) custom code for dumping staticpros - dump it
9021         like any other dynarr.
9022
9023         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9024         * dumper.c: Moved functions from alloc.c.
9025         * alloc.c (dumpstruct): Moved to dumper.c.
9026         * alloc.c (dumpopaque): Likewise.
9027         * alloc.c (pdump_wire): Likewise.
9028         * alloc.c (pdump_wire_list): Likewise.
9029
9030         * lisp.h (Dynarr_sizeof): New.
9031         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9032         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9033         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9034
9035         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9036         * lisp.h (dumpopaque): ditto.
9037         * lisp.h (pdump_wire): ditto.
9038         * lisp.h (pdump_wire_list): ditto.
9039
9040 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9041
9042         * make-src-depend (PrintPatternDeps):
9043         Use `sort' to make output independent of perl version.
9044
9045 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9046
9047         Port to Netbsd 1.5.
9048         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9049         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9050
9051 2001-01-03  Didier Verna  <didier@xemacs.org>
9052
9053         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9054         that `focus_frame' is alive before thinking of calling
9055         `redisplay_redraw_cursor' on it.
9056
9057 2001-01-08  Martin Buchholz <martin@xemacs.org>
9058
9059         * XEmacs 21.2.40 is released.
9060
9061 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9062
9063         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9064
9065 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9066
9067         * alloc.c (dbg_valmask): Make const.
9068         * alloc.c (dbg_typemask): Make const.
9069         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9070         * alloc.c (dbg_valbits): Make const.
9071         * alloc.c (dbg_gctypebits): Make const.
9072
9073 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9074
9075         * redisplay-x.c (x_bevel_area):
9076         redisplay.h (struct rune):
9077         Typo fixes in comments.
9078
9079 2001-01-05  Andy Piper  <andy@xemacs.org>
9080
9081         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9082         adjustment.
9083
9084         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9085
9086 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9087
9088         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9089
9090         * mule-ccl.c (stack_idx_of_map_multiple):
9091         Non const global data must not be initialized!
9092         Found by MIYASHITA Hisashi.
9093
9094 2001-01-02  Andy Piper  <andy@xemacs.org>
9095
9096         * frame.c (change_frame_size): make sure frame size is always
9097         marked as changed.
9098
9099         * glyphs.c (image_instance_layout): minor code reuse.
9100
9101         * window.c (Fcurrent_window_configuration): revert previous
9102         change.
9103
9104 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9105
9106         * glyphs.h:
9107         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9108
9109 2000-12-31  Andy Piper  <andy@xemacs.org>
9110
9111         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9112         when widget gets unmapped.
9113
9114         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9115         function. Make sure widgets losing focus don't just drop it.
9116         (handle_focus_event_1): record the widget with focus.
9117
9118 2000-12-31  Andy Piper  <andy@xemacs.org>
9119
9120         * window.c (allocate_window): use
9121         make_image_instance_cache_hash_table.
9122         (make_dummy_parent): ditto.
9123         (Fset_window_configuration): ditto.
9124
9125         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9126
9127         * glyphs.c (process_image_string_instantiator): use
9128         INSTANTIATOR_TYPE.
9129         (get_image_instantiator_governing_domain): ditto.
9130         (normalize_image_instantiator): ditto.
9131         (instantiate_image_instantiator): ditto.
9132         (make_image_instance_1): ditto.
9133         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9134         (instantiator_eq_equal): new function for use with instance hash
9135         tables.
9136         (instantiator_eq_hash): ditto.
9137         (make_image_instance_cache_hash_table): create a suitable hash
9138         table for storing image instances.
9139
9140         * elhash.h (hash_table_weakness): new internal weakness type
9141         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9142         declare new functions.
9143
9144         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9145         another weakness type for glyphs.
9146         (make_standard_lisp_hash_table): new function split out from
9147         make_general_lisp_hash_table.
9148         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9149         (hash_table_instantiate): ditto.
9150         (Fmake_hash_table): ditto.
9151
9152 2000-12-31  Martin Buchholz <martin@xemacs.org>
9153
9154         * XEmacs 21.2.39 is released.
9155
9156 2000-12-29  Andy Piper  <andy@xemacs.org>
9157
9158         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9159
9160         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9161         the frame has changed so that we pick up geometry changes such as
9162         menubar visibility.
9163
9164 2000-12-28  Andy Piper  <andy@xemacs.org>
9165
9166         * lastfile.c (my_ebss): make a char array so we can pad the
9167         bss. Fixes cygwin unexec.
9168
9169         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9170
9171 2000-12-26  Andy Piper  <andy@xemacs.org>
9172
9173         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9174         comments and try and be more precise about a non-/SIGIO world.
9175         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9176         SIGIO.
9177
9178         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9179         we don't normalize to zero width or height.
9180
9181 2000-12-24  Andy Piper  <andy@xemacs.org>
9182
9183         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9184
9185 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9186
9187         * s/sco5.h: SCO 5 has pty support.
9188
9189 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9190
9191         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9192         input-method-xlib.c contains whole contents of input-method-xfs.c,
9193         so we can use input-method-xlib.c's code for USE_XFONTSET
9194         using #ifdefs.
9195         * input-method-xfs.c: removed.
9196
9197 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9198
9199         * file-coding.h (enum coding_category_type): reorder enumerators to
9200         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9201         (now one greater than largest real coding_category_type enumerator).
9202         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9203         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9204         Fcoding_category_list, Fset_coding_priority_list,
9205         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9206         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9207
9208 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9209
9210         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9211         * redisplay-output.c (redisplay_output_window): Clear top of window
9212         when face is changed.
9213         * redisplay-x.c (x_redraw_exposed_window): Call
9214         redisplay_clear_top_of_window.
9215         * redisplay.h: Publish redisplay_clear_top_of_window.
9216
9217 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9218
9219         * buffer.c (Fkill_buffer): Map over all devices.
9220         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9221         (list_windows): New function.
9222         (list_all_windows): Ditto.
9223         (Freplace_buffer_in_windows): Use them.
9224
9225 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9226
9227         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9228         (Fopen_database): Use `db_create' instead of `db_open'.
9229         (syms_of_database): Initialize Qqueue.
9230
9231 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9232
9233         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9234         buffer_local_face_property.
9235         * buffer.h (struct buffer): New member buffer_local_face_property.
9236         * window.c (Fset_window_buffer):  Mark window's face as changed
9237         when buffer has buffer local face.
9238         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9239         * objects.c (color_after_change): Set buffer_local_face_property
9240         when locale of face specifier is buffer.
9241         * objects.c (font_after_change): Ditto.
9242         * objects.c (face_boolean_after_change): Ditto.
9243         * glyphs.c (image_after_change): Ditto.
9244
9245 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9246
9247         * nt.c (mswindows_fstat): Report file permissions, volume serial
9248         number, etc. Code adapted from FSF Emacs 20.7.
9249
9250 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9251
9252         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9253         of stat when we don't have symbolic links, to make sure
9254         mswindows_stat is called on mswindows.
9255
9256 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9257
9258         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9259
9260 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9261
9262         * doprnt.c (emacs_doprnt_1): More printing fixes.
9263         Make printing of numbers compatible with libc and FSF Emacs.
9264         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9265         Use the system printf to do most of the hard work of formatting,
9266         instead of doprnt_1().
9267         Calculate memory to allocate for format string.
9268         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9269         (doprnt_1): Cleaner code and documentation.
9270
9271 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9272
9273         * Makefile.in.in: Use the loop variable to install headers.
9274
9275 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9276
9277         * window.c (Fsplit_window): Don't invalidate face cache.
9278
9279 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9280
9281         * minibuf.c (Fall_completions): Undo the previous change
9282         which removed checking elements start with space.
9283
9284 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9285
9286         * mule-canna.c: Didier suppression.
9287
9288 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9289
9290         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9291         (warning suppression).  Add English comment translations.
9292
9293 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9294
9295         * unexelfsgi.c (unexec): Better test for mmap failure.
9296
9297 2000-12-05  Martin Buchholz <martin@xemacs.org>
9298
9299         * XEmacs 21.2.38 is released.
9300
9301 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9302
9303         * redisplay.c (bar-cursor): Make a user variable.
9304
9305         * symsinit.h: Add init_postgresql_from_environment.
9306
9307 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9308
9309         * regex.c: Convert to clean C.
9310
9311 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9312
9313         * realpath.c:
9314         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9315         initialization.
9316         (sys_readlink): renamed to system_readlink to avoid conflict with
9317         the other sys_readlink.
9318
9319 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9320
9321         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9322
9323 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9324
9325         * postgresql.c (init_postgresql_from_environment): new function.
9326         (vars_of_postgresql): Move code initializing Lisp variables out and
9327         into init_postgresql_from_environment.
9328         emacs.c (main_1): Call init_postgresql_from_environment if and only
9329         if running a dumped XEmacs.
9330
9331 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9332
9333         * buffer.c: Make find-file-compare-truenames default to true on
9334         windows.
9335
9336         * realpath.c (win32_abs_start):
9337         (cygwin_readlink):
9338         (win32_readlink): New functions.
9339         (xrealpath): Return really real filenames on windows.
9340
9341         * fileio.c (Ffile_truename): Make file-truename work on windows.
9342
9343 2000-11-29  Didier Verna  <didier@xemacs.org>
9344
9345         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9346         * faces.c (update_face_cachel_data): use it.
9347         * faces.c (add_face_cachel): use it. Complete background pixmap
9348         frobbing in face cache if `update_face_cachel_data' has not done so.
9349
9350 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9351
9352         * search.c (string_match_1): Don't set last_thing_searched
9353         when search failed.
9354
9355 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9356
9357         * buffer.c: Include casetab.h
9358         (common_init_complex_vars_of_buffer): Use new case-table object.
9359         * buffer.h: Include casetab.h
9360         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9361         (DOWNCASE_TABLE_OF): Ditto.
9362         * bufslots.h: Remove char-tables and add case-table.
9363         * casetab.c: Include casetab.h
9364         (CASE_TABLE_P): Removed.
9365         (mark_case_table): New function.
9366         (allocate_case_table): New function.
9367         (Fcase_table_p): Use new case-table.
9368         (case_table_char): New function.
9369         (Fget_case_table): Ditto.
9370         (Fput_case_table): Ditto.
9371         (Fput_case_table_pair): Ditto.
9372         (Fcopy_case_table): Ditto.
9373         (Fcurrent_case_table): Return case-table.
9374         (Fstandard_case_table): Return case-table.
9375         (Fset_case_table): Fix doc-string.
9376         (set_case_table): Use case-table
9377         (syms_of_casetab): DEFSUBR new functions.
9378         (complex_vars_of_casetab): Set up standard case-table.
9379         * casetab.h: New file.
9380         * editfns.c: Include casetab.h
9381         (Fcompare_buffer_substrings): Use case-table.
9382         * inline.c: Include casetab.h
9383         * lisp.h: Remove bogus extern.
9384         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9385         * search.c: Include casetab.h
9386         (TRANSLATE_ASCII): Removed.
9387         (TRANSLATE): Unconditionally translate character.
9388         (looking_at_1): Use case-table.
9389         (string_match_1): Ditto.
9390         (fast_string_match): Ditto.
9391         (search_command): Ditto.
9392         (search_buffer): Separate boyer_moore.  Check whether
9393         boyer_moore is possible.
9394         (simple_search): New function.
9395         (boyer_moore): Separated from search_buffer. Translate char.
9396
9397 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9398
9399         * regex.c (RE_TR_ASCII): Removed.
9400         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9401         (PATFETCH): Call PATFETCH_RAW.
9402         (PATFETCH_RAW): Fetch Emchar.
9403         (PATUNFETCH): Decrement charptr.
9404         (GET_BUFFER_SPACE): Rename b to buf_end.
9405         (BUF_PUSH): Ditto.
9406         (BUF_PUSH_2): Ditto.
9407         (BUF_PUSH_3): Ditto.
9408         (EXTEND_BUFFER): Ditto.
9409         (SET_LIST_BIT): Ditto.
9410         (regex_compile): Ditto.  Translate non ASCII char.
9411         (compile_range): Ditto.
9412         (re_search_2): Ditto.
9413         (re_match_2_internal): Compare Emchar.
9414         (bcmp_translate): Ditto.
9415
9416 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9417
9418         * lisp.h (basic char/int typedefs):  comment improvement.
9419
9420 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9421
9422         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9423         unstomp inhibit_site_lisp.  Improve comments.
9424
9425 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9426
9427         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9428
9429 2000-11-28  Andy Piper  <andy@xemacs.org>
9430
9431         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9432         clipped display for windows in the gutter also.
9433         (redisplay_display_boxes_in_window_p): change semantics of return
9434         codes to be more intuitive.
9435
9436         * gutter.h: declare display_boxes_in_gutter_p.
9437
9438         * gutter.c (display_boxes_in_gutter_p): new function for
9439         redisplay.
9440
9441 2000-11-22  Andy Piper  <andy@xemacs.org>
9442
9443         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9444         autodetect domain.
9445
9446 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9447
9448         * callproc.c (Fold_call_process_internal):
9449         * gpm.c (Freceive_gpm_event):
9450         (tty_get_foreign_selection): Might be just warning supression.
9451         * fileio.c (Fwrite_region_internal):
9452         (Fset_visited_file_modtime):
9453         * keymap.c (event_matches_key_specifier_p):
9454         Initialize GCPROed variable.
9455
9456         * menubar-x.c (command_builder_find_menu_accelerator):
9457         Initialize before use.
9458
9459 2000-11-23  Andy Piper  <andy@xemacs.org>
9460
9461         * unexcw.c (unexec): make the resulting executable executable.
9462
9463 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9464
9465         * doc.c (get_doc_string):
9466         Use size_t, not int, for result of XSTRING_LENGTH.
9467
9468         * cmds.c (Fdelete_char):
9469         * cmds.c (Fpoint_at_eol):
9470         * cmds.c (Fself_insert_command):
9471         Use EMACS_INT, not int, for result of XINT.
9472         Someday, someone will want to insert more than 2**31 identical characters.
9473
9474         * cmds.c (Fdelete_char):
9475         * cmds.c (Fdelete_backward_char):
9476         * syntax.c (Fforward_word):
9477         * syntax.c (Fforward_comment):
9478         Make COUNT argument optional, for consistency with forward-char et al.
9479
9480 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9481
9482         * lisp.h:
9483         * print.c (long_to_string):
9484         Return a useful value: the pointer at end of data written.
9485
9486         * doprnt.c:
9487         Use `static const char * const' for constant strings.
9488         (union printf_arg): Delete `i', `ui' members.
9489         (get_doprnt_args):
9490         (emacs_doprnt_1):
9491         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9492         Do all printf-ing via the `l' specifier.
9493         Use EMACS_INT instead of int.
9494         Optimize.
9495
9496 2000-11-20  Didier Verna  <didier@xemacs.org>
9497
9498         * faces.c (update_face_cachel_data): don't frob the background
9499         pixmap when the window is being created. The face is needed but
9500         does not exist yet.
9501
9502 2000-11-20  Andy Piper  <andy@xemacs.org>
9503
9504         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9505         messing with a debug environment.
9506
9507 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9508
9509         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9510
9511 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9512
9513         * casetab.c (Fcase_table_p): Fix compile error and crash.
9514
9515 2000-11-18  Philip Aston  <philipa@mail.com>
9516
9517         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9518
9519 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9520
9521         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9522         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9523
9524 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9525
9526         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9527         * unexelf.c: Use HAVE_ELF_H.
9528         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9529         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9530         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9531         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9532         for testing.
9533         So this is an unexelfsgi.c from a different line of development.
9534
9535 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9536
9537         * regex.c (RE_TR_ASCII): New function.
9538         (RE_TRANSLATE): Call it.
9539
9540 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9541
9542         * buffer.h (TRT_TABLE_OF): Remove assert.
9543         (IN_TRT_TABLE_DOMAIN): Removed.
9544
9545 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9546
9547         * free-hook.c (log_gcpro):
9548         (show_gcprohist): Add support for GCPRO5.
9549
9550 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9551
9552         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9553
9554 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9555
9556         * symeval.h: Declare flush_all_buffer_local_cache.
9557
9558         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9559         (flush_buffer_local_cache): Added.
9560         (flush_all_buffer_local_cache): Added.
9561
9562         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9563
9564         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9565         (pdump_dump_data): Ditto.
9566         (pdump_reloc_one): Ditto.
9567         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9568         before dumping.
9569
9570
9571 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9572
9573         * buffer.c: Remove if 0'ed entry.
9574         * buffer.h: Rewrite TRT to use char-table.
9575         * bufslots.h: Remove mirror tables.
9576         * casetab.c: Remove mirror tables.
9577         (CASE_TABLE_P): New macro.
9578         (Fcase_table_p): Element of a case table is string or char-table.
9579         (make_mirror_trt_table): Removed.
9580         (set_case_table): Setup char-table from strings for backward
9581         compatibility.
9582         * dired.c (Fdirectory_files):
9583         * dired-msw.c: (mswindows_get_files):
9584         * lisp.h: Change prototype of re_pattern_buffer.
9585         * regex.c: (RE_TRANSLATE): New macro.
9586         (TRANSLATE_P): Ditto.
9587         Change translate to type RE_TRANSLATE_TYPE.
9588         * regex.h: Define RE_TRANSLATE_TYPE
9589         * search.c (TRANSLATE): New macro.
9590         (TRANSLATE_ASCII): New macro.
9591         Translate table is changed to Lisp_Object.
9592         (signal_failure): Inhibit return.
9593
9594 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9595
9596         * device-msw.c:
9597         * eldap.c:
9598         * event-Xt.c:
9599         * event-stream.c:
9600         * print.c:
9601         Do UNGCPRO before return.
9602
9603 2000-11-14  Martin Buchholz <martin@xemacs.org>
9604
9605         * XEmacs 21.2.37 is released.
9606
9607 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9608
9609         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9610         Add comments about discarded return value.
9611
9612 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9613
9614         * callint.c:
9615         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9616
9617 2000-10-27  Andy Piper  <andy@xemacs.org>
9618
9619         * gutter.c (Fset_default_gutter_position): default left and right
9620         gutters to visible.
9621         (calculate_gutter_size): calculate resonable heuristic for left
9622         and right gutter sizes.
9623         (specifier_vars_of_gutter): change left and right gutter sizes to
9624         autodetect.
9625         (calculate_gutter_size_from_display_lines): new function.
9626         (output_gutter): check for resizing on left and right gutters.
9627         (clear_gutter): don't special case top and left gutters.
9628         (specifier_vars_of_gutter): use new signature for
9629         set_specifier_caching.
9630
9631         * glyphs-x.c (x_redisplay_widget): spelling fix.
9632         * glyphs.c (specifier_vars_of_glyphs):
9633         * menubar.c (specifier_vars_of_menubar):
9634         * redisplay.c (specifier_vars_of_redisplay):
9635         * toolbar.c (specifier_vars_of_toolbar):
9636         * window.c (specifier_vars_of_window):
9637         * scrollbar.c (specifier_vars_of_scrollbar):
9638         (complex_vars_of_scrollbar): use new signature for
9639         set_specifier_caching.
9640
9641         * specifier.c (set_specifier_caching): include recompute flag.
9642         (recompute_one_cached_specifier_in_window): always recompute if
9643         flag set.
9644         (recompute_one_cached_specifier_in_frame): ditto.
9645
9646         * specifier.h (struct specifier_caching): add recompute flag.
9647
9648 2000-10-24  Andy Piper  <andy@xemacs.org>
9649
9650         * unexcw.c (copy_executable_and_dump_data_section): add new
9651         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9652         5.0 happy.
9653
9654 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9655
9656         * console-x.h (x_device): New member modifier_release_time.
9657         * event-Xt.c (x_handle_sticky_modifiers):
9658         Bound interval modifier keys are sticky.
9659         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9660         * events.h: extern it.
9661
9662 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9663
9664         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9665
9666 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9667
9668         * event-stream.c (execute_command_event): Preserve current_events
9669         and the like when event is misc-user-event.
9670         Inhibit quit during the call to maybe_echo_keys.
9671
9672 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9673
9674         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9675         symlink when buffer is killed.
9676         (inhibit_clash_detection): New variable.
9677
9678 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9679
9680         * console.c (Fset_input_method): Trigger redisplay on tty.
9681
9682 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9683
9684         * process.c (Fprocess_status): Revert to previous behavior:
9685         (process-status "nosuchprocess") ==> nil
9686
9687 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9688
9689         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9690         Work around another GCC 2.95.2 optimizer bug.
9691
9692 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9693
9694         * process.c (Fget_process): Use LIST_LOOP_2.
9695         (kill_buffer_processes): Use LIST_LOOP_2.
9696
9697         * minibuf.c (Fall_completions):
9698         Delete old non-functional code for FSF fourth argument.
9699
9700         * frame.c (frame_matches_frame_spec):
9701         Renamed from `frame_matches_frametype'.  Update all callers.
9702         (device_matches_device_spec):
9703         Renamed from 'device_matches_console_spec'.  Update all callers.
9704
9705         * doc.c (Fsubstitute_command_keys):
9706         Remove buffer overflow crash.  Small code cleanups.
9707
9708         * casetab.c (check_case_table): Simpler code.
9709
9710         * window.c (Freplace_buffer_in_windows):
9711         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9712         (and similar implementation) as Fdelete_windows_on.
9713         Update all callers.
9714
9715         * alloc.c (Fmake_list):
9716         * alloc.c (make_vector):
9717         * alloc.c (Fmake_vector):
9718         * alloc.c (make_bit_vector):
9719         * alloc.c (Fmake_bit_vector):
9720         * alloc.c (Fbit_vector):
9721         * alloc.c (Fmake_string):
9722         * alloc.c (Fpurecopy):
9723         * alloc.c (Fmemory_limit):
9724         * buffer.c:
9725         * buffer.c (Fget_buffer):
9726         * buffer.c (Fkill_buffer):
9727         * buffer.c (complex_vars_of_buffer):
9728         * bytecode.c (Fcompiled_function_stack_depth):
9729         * callint.c (Fprefix_numeric_value):
9730         * event-stream.c:
9731         * event-stream.c (Fread_key_sequence):
9732         * casetab.c:
9733         * casetab.c (Fcase_table_p):
9734         * casetab.c (check_case_table):
9735         * casetab.c (Fset_case_table):
9736         * casetab.c (Fset_standard_case_table):
9737         * chartab.c:
9738         * chartab.c (Fchar_table_type):
9739         * chartab.c (Freset_char_table):
9740         * chartab.c (Fget_char_table):
9741         * chartab.c (Fget_range_char_table):
9742         * chartab.c (Fput_char_table):
9743         * chartab.c (Fmap_char_table):
9744         * chartab.c (Fcategory_table_p):
9745         * chartab.c (Fcheck_category_at):
9746         * chartab.c (Fchar_in_category_p):
9747         * chartab.c (Fcategory_table):
9748         * chartab.c (Fcopy_category_table):
9749         * chartab.c (Fset_category_table):
9750         * chartab.c (Fcategory_designator_p):
9751         * chartab.c (Fcategory_table_value_p):
9752         * cmds.c (Fdelete_char):
9753         * cmds.c (Fdelete_backward_char):
9754         * cmds.c (Fself_insert_command):
9755         * cmds.c (Fself_insert_internal):
9756         * console.c (Fvalid_console_type_p):
9757         * console.c (Fcdfw_console):
9758         * console.c (Fconsole_type):
9759         * console.c (Fconsole_name):
9760         * console.c (Fconsole_device_list):
9761         * console.c (Fconsole_on_window_system_p):
9762         * data.c:
9763         * data.c (Feq):
9764         * data.c (Fold_eq):
9765         * data.c (Fsubr_interactive):
9766         * data.c (Fchar_to_int):
9767         * data.c (Fint_to_char):
9768         * data.c (Fsetcar):
9769         * data.c (Fsetcdr):
9770         * data.c (Fnumber_to_string):
9771         * data.c (Fstring_to_number):
9772         * data.c (Frem):
9773         * database.c (mark_database):
9774         * database.c (finalize_database):
9775         * database.c (Fdatabase_live_p):
9776         * database.c (Fdatabasep):
9777         * device-x.c (Fx_get_resource):
9778         * device.c (Fdfw_device):
9779         * dired.c:
9780         * dired.c (Ffile_name_completion):
9781         * dired.c (Ffile_name_all_completions):
9782         * dired.c (Fuser_name_completion):
9783         * dired.c (Fuser_name_completion_1):
9784         * dired.c (Fuser_name_all_completions):
9785         * doc.c (Fdocumentation):
9786         * doc.c (Fdocumentation_property):
9787         * doc.c (Fsubstitute_command_keys):
9788         * editfns.c:
9789         * editfns.c (Fchar_to_string):
9790         * editfns.c (Fstring_to_char):
9791         * editfns.c (Ftemp_directory):
9792         * editfns.c (Finsert_char):
9793         * editfns.c (Fbuffer_substring_no_properties):
9794         * editfns.c (Fnarrow_to_region):
9795         * editfns.c (Fchar_equal):
9796         * editfns.c (Fchar_Equal):
9797         * editfns.c (Ftranspose_regions):
9798         * emacs.c (Fdump_emacs):
9799         * eval.c (Fthrow):
9800         * eval.c (Fcommand_execute):
9801         * eval.c (Fautoload):
9802         * eval.c (Fbacktrace):
9803         * eval.c (Fbacktrace_frame):
9804         * events.c:
9805         * events.c (Fcopy_event):
9806         * events.c (Fcharacter_to_event):
9807         * events.c (Fevent_button):
9808         * events.c (Fevent_process):
9809         * extents.c:
9810         * extents.c (Fnext_extent_change):
9811         * extents.c (Fextent_property):
9812         * faces.c (Ffacep):
9813         * faces.c (Fmake_face):
9814         * file-coding.c:
9815         * file-coding.c (Fencode_shift_jis_char):
9816         * file-coding.c (Fencode_big5_char):
9817         * fileio.c (Ffile_name_directory):
9818         * fileio.c (Ffile_name_nondirectory):
9819         * fileio.c (Ffile_name_as_directory):
9820         * fileio.c (Fdirectory_file_name):
9821         * fileio.c (Ffile_truename):
9822         * fileio.c (Fsubstitute_in_file_name):
9823         * fileio.c (Ffile_modes):
9824         * fileio.c (Fset_file_modes):
9825         * fileio.c (Fset_default_file_modes):
9826         * fileio.c (Fverify_visited_file_modtime):
9827         * floatfns.c (Facos):
9828         * floatfns.c (Fasin):
9829         * floatfns.c (Fatan):
9830         * floatfns.c (Fcos):
9831         * floatfns.c (Fsin):
9832         * floatfns.c (Ftan):
9833         * floatfns.c (Fbessel_j0):
9834         * floatfns.c (Fbessel_j1):
9835         * floatfns.c (Fbessel_jn):
9836         * floatfns.c (Fbessel_y0):
9837         * floatfns.c (Fbessel_y1):
9838         * floatfns.c (Fbessel_yn):
9839         * floatfns.c (Ferf):
9840         * floatfns.c (Ferfc):
9841         * floatfns.c (Flog_gamma):
9842         * floatfns.c (Fexp):
9843         * floatfns.c (Fexpt):
9844         * floatfns.c (Flog):
9845         * floatfns.c (Flog10):
9846         * floatfns.c (Fsqrt):
9847         * floatfns.c (Fcube_root):
9848         * floatfns.c (Facosh):
9849         * floatfns.c (Fasinh):
9850         * floatfns.c (Fatanh):
9851         * floatfns.c (Fcosh):
9852         * floatfns.c (Fsinh):
9853         * floatfns.c (Ftanh):
9854         * floatfns.c (Fabs):
9855         * floatfns.c (Ffloat):
9856         * floatfns.c (Flogb):
9857         * floatfns.c (Fceiling):
9858         * floatfns.c (Ffloor):
9859         * floatfns.c (Fround):
9860         * floatfns.c (Ftruncate):
9861         * floatfns.c (Ffceiling):
9862         * floatfns.c (Fffloor):
9863         * floatfns.c (Ffround):
9864         * floatfns.c (Fftruncate):
9865         * fns.c (Fstring_equal):
9866         * fns.c (Fstring_lessp):
9867         * fns.c (concat2):
9868         * fns.c (concat3):
9869         * fns.c (vconcat2):
9870         * fns.c (vconcat3):
9871         * fns.c (Fsubstring):
9872         * fns.c (Fassoc):
9873         * fns.c (Fold_assoc):
9874         * fns.c (assoc_no_quit):
9875         * fns.c (Fassq):
9876         * fns.c (Fold_assq):
9877         * fns.c (assq_no_quit):
9878         * fns.c (Frassoc):
9879         * fns.c (Fold_rassoc):
9880         * fns.c (Frassq):
9881         * fns.c (Fold_rassq):
9882         * fns.c (rassq_no_quit):
9883         * fns.c (Fremassoc):
9884         * fns.c (remassoc_no_quit):
9885         * fns.c (Fremassq):
9886         * fns.c (remassq_no_quit):
9887         * fns.c (Fremrassoc):
9888         * fns.c (Fremrassq):
9889         * fns.c (remrassq_no_quit):
9890         * fns.c (Fsort):
9891         * fns.c (Fplist_get):
9892         * fns.c (Fplist_put):
9893         * fns.c (Fplist_remprop):
9894         * fns.c (Fplist_member):
9895         * fns.c (Flax_plist_get):
9896         * fns.c (Flax_plist_put):
9897         * fns.c (Flax_plist_remprop):
9898         * fns.c (Flax_plist_member):
9899         * fns.c (Fequal):
9900         * fns.c (Fold_equal):
9901         * fns.c (Frequire):
9902         * fns.c (Fbase64_encode_region):
9903         * fns.c (Fbase64_encode_string):
9904         * fns.c (Fbase64_decode_region):
9905         * frame.c:
9906         * frame.c (frame_matches_frame_spec):
9907         * frame.c (device_matches_device_spec):
9908         * frame.c (next_frame):
9909         * frame.c (previous_frame):
9910         * frame.c (Fnext_frame):
9911         * frame.c (Fprevious_frame):
9912         * frame.c (Fframe_property):
9913         * frame.c (Fset_frame_height):
9914         * frame.c (Fset_frame_size):
9915         * frame.h:
9916         * glyphs.c:
9917         * glyphs.c (if):
9918         * glyphs.c (decode_error_behavior_flag):
9919         * glyphs.c (Fmake_image_instance):
9920         * indent.c (Findent_to):
9921         * intl.c (Fignore_defer_gettext):
9922         * keymap.c (Fkeymapp):
9923         * keymap.c (Flookup_key):
9924         * lread.c:
9925         * lread.c (Fload_internal):
9926         * lread.c (Feval_buffer):
9927         * lread.c (Feval_region):
9928         * macros.c (Fexecute_kbd_macro):
9929         * marker.c (set_marker_internal):
9930         * marker.c (Fset_marker):
9931         * marker.c (set_marker_restricted):
9932         * marker.c (Fcopy_marker):
9933         * marker.c (noseeum_copy_marker):
9934         * menubar.c:
9935         * menubar.c (Fpopup_menu):
9936         * minibuf.c:
9937         * mule-charset.c (Fcharset_name):
9938         * mule-charset.c (Fchar_charset):
9939         * mule-charset.c (Fchar_octet):
9940         * mule-charset.c (Fsplit_char):
9941         * mule-wnnfns.c (Fwnn_open):
9942         * mule-wnnfns.c (Fwnn_dict_comment):
9943         * mule-wnnfns.c (Fwnn_quit_henkan):
9944         * mule-wnnfns.c (Fwnn_word_toroku):
9945         * mule-wnnfns.c (Fwnn_word_sakujo):
9946         * mule-wnnfns.c (Fwnn_word_use):
9947         * mule-wnnfns.c (Fwnn_hindo_set):
9948         * objects.c:
9949         * objects.c (Fmake_color_instance):
9950         * objects.c (Fmake_font_instance):
9951         * print.c (Fwrite_char):
9952         * process.c:
9953         * process.c (mark_process):
9954         * process.c (print_process):
9955         * process.c (get_process_from_usid):
9956         * process.c (Fprocessp):
9957         * process.c (Fprocess_live_p):
9958         * process.c (Fget_process):
9959         * process.c (Fget_buffer_process):
9960         * process.c (get_process):
9961         * process.c (Fprocess_id):
9962         * process.c (Fprocess_name):
9963         * process.c (Fprocess_command):
9964         * process.c (init_process_io_handles):
9965         * process.c (start_process_unwind):
9966         * process.c (Fstart_process_internal):
9967         * process.c (Fopen_multicast_group_internal):
9968         * process.c (Fset_process_window_size):
9969         * process.c (read_process_output):
9970         * process.c (send_process):
9971         * process.c (Fprocess_tty_name):
9972         * process.c (Fset_process_buffer):
9973         * process.c (Fprocess_buffer):
9974         * process.c (Fprocess_mark):
9975         * process.c (set_process_filter):
9976         * process.c (Fset_process_filter):
9977         * process.c (Fprocess_filter):
9978         * process.c (Fprocess_send_region):
9979         * process.c (Fprocess_send_string):
9980         * process.c (exec_sentinel):
9981         * process.c (Fset_process_sentinel):
9982         * process.c (Fprocess_sentinel):
9983         * process.c (status_notify):
9984         * process.c (Fprocess_status):
9985         * process.c (Fprocess_exit_status):
9986         * process.c (process_send_signal):
9987         * process.c (Fprocess_send_eof):
9988         * process.c (deactivate_process):
9989         * process.c (remove_process):
9990         * process.c (Fdelete_process):
9991         * process.c (kill_buffer_processes):
9992         * process.c (Fprocess_kill_without_query):
9993         * process.c (Fprocess_kill_without_query_p):
9994         * rangetab.c:
9995         * rangetab.c (Fget_range_table):
9996         * rangetab.c (Fput_range_table):
9997         * rangetab.c (Fremove_range_table):
9998         * rangetab.c (Fclear_range_table):
9999         * search.c:
10000         * search.c (Fskip_chars_forward):
10001         * search.c (Fskip_chars_backward):
10002         * search.c (Fskip_syntax_forward):
10003         * search.c (Fskip_syntax_backward):
10004         * search.c (search_command):
10005         * search.c (Freplace_match):
10006         * search.c (Fregexp_quote):
10007         * select.c (Fown_selection_internal):
10008         * select.c (Fselection_owner_p):
10009         * select.c (Fselection_exists_p):
10010         * select.c (Fget_selection_internal):
10011         * specifier.c:
10012         * symbols.c:
10013         * symbols.c (Fintern):
10014         * symbols.c (Fintern_soft):
10015         * symbols.c (Funintern):
10016         * symbols.c (Fapropos_internal):
10017         * symbols.c (Fset_default):
10018         * syntax.c:
10019         * syntax.c (Fsyntax_table_p):
10020         * syntax.c (Fcopy_syntax_table):
10021         * syntax.c (Fset_syntax_table):
10022         * syntax.c (Fchar_syntax):
10023         * syntax.c (syntax_match):
10024         * syntax.c (Fmatching_paren):
10025         * syntax.c (Fforward_word):
10026         * syntax.c (scan_lists):
10027         * syntax.c (Fscan_lists):
10028         * syntax.c (Fscan_sexps):
10029         * syntax.c (Fparse_partial_sexp):
10030         * toolbar.c (Fcheck_toolbar_button_syntax):
10031         * tooltalk.doc:
10032         * window.c:
10033         * window.c (Fwindowp):
10034         * window.c (Fwindow_live_p):
10035         * window.c (Fwindow_point):
10036         * window.c (Fdelete_window):
10037         * window.c (Fnext_window):
10038         * window.c (Fprevious_window):
10039         * window.c (Fother_window):
10040         * window.c (window_loop):
10041         * window.c (Fget_lru_window):
10042         * window.c (Fsplit_window):
10043         * window.c (Fenlarge_window):
10044         * window.c (Fenlarge_window_pixels):
10045         * window.c (Fshrink_window):
10046         * window.c (Fshrink_window_pixels):
10047         * window.c (change_window_height):
10048         * window.c (Fwindow_configuration_p):
10049         * window.c (Fcurrent_window_configuration):
10050         * window.h:
10051         * casefiddle.c (casify_object):
10052         * casefiddle.c (Fupcase):
10053         * casefiddle.c (Fdowncase):
10054         * casefiddle.c (Fcapitalize):
10055         * casefiddle.c (Fupcase_initials):
10056         * casefiddle.c (casify_region_internal):
10057         * casefiddle.c (casify_region):
10058         * casefiddle.c (Fupcase_region):
10059         * casefiddle.c (Fdowncase_region):
10060         * casefiddle.c (Fcapitalize_region):
10061         * casefiddle.c (Fupcase_initials_region):
10062         * casefiddle.c (Fupcase_word):
10063         * casefiddle.c (Fdowncase_word):
10064         * casefiddle.c (Fcapitalize_word):
10065         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10066         Replace 0 with '\0' when working with bytes.
10067         Replace initial "(" with "\(" in docstrings.
10068
10069 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10070
10071         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10072
10073         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10074
10075 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10076
10077         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10078
10079 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10080
10081         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10082         correctly.
10083
10084 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10085
10086         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10087         (inhibit_auto_save_session): New variable.
10088         (vars_of_fileio): Declare and initialize them.
10089         * fileio.c (Fdo_auto_save): Don't create session file if
10090         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10091
10092 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10093
10094         * sgiplay.c (play_internal): C++ compilability.
10095         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10096         * callproc.c (Fold_call_process_internal):
10097         Remove unused vars `env', `first'.
10098         * scrollbar.c (update_scrollbar_instance):
10099         #### unused var `current_window'.
10100         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10101         etc. within #ifdef NOT_YET.
10102         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10103         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10104         * specifier.c (specifier_instance):
10105         #### unused var `tag'.
10106         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10107
10108 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10109
10110         * fns.c (Fbutlast):
10111         * fns.c (list_sort):
10112         * fns.c (Ffillarray):
10113         * fns.c (bytecode_nconc2):
10114         * fns.c (Fnconc):
10115         * fns.c (mapcar1):
10116         * fns.c (Fmapconcat):
10117         Be pedantically 64-bit correct.  For the time when someone will
10118         want to have a list with length > 2**32.
10119
10120         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10121         Work around MIPSpro compiler bug.
10122
10123         * process-unix.c (unix_kill_child_process): Add snarky comment.
10124         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10125
10126         * config.h.in: Oops, _getpt ==> _getpty
10127
10128 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10129
10130         * config.h.in:
10131         * regex.c:
10132         Use void*, not char*, as return type of alloca().
10133
10134         * alloc.c (free_marker): Side effect inside assert expression!
10135
10136 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10137
10138         * mule-charset.c (Fset_charset_ccl_program): To check
10139         if the given ccl program is valid, use setup_ccl_program()
10140         instead of CHECK_VECTOR().
10141         (Fmake_charset): Likewise.
10142
10143 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10144
10145         * faces.c (get_extent_fragment_face_cache_index):
10146         Fix cachel.merged_faces memory leak.
10147
10148 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10149
10150         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10151         Reset MSB of octets obtained by DECODE_SJIS
10152         because of the incompatibility with Emacs.
10153         (ccl_driver)<CCL_ENCODE_SJIS>:
10154         Set MSB of octets before passing them to
10155         ENCODE_SJIS because of the incompatibility
10156         with Emacs.
10157
10158 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10159
10160         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10161         (DECLARE_LRECORD): Undo the last change.
10162         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10163
10164 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10165
10166         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10167         the implementation to lrecord_implementations_table.
10168
10169 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10170
10171         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10172         initial value of `lrecord_type_##c_name' and
10173         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10174         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10175         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10176         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10177         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10178
10179 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10180
10181         * miscplay.c (sndcnv8S_2mono):
10182         (sndcnv2monounsigned):
10183         (sndcnvULaw_2linear):
10184         (sndcnv16swap):
10185         Remove implementation-defined behavior.
10186
10187 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10188
10189         * input-method-xlib.c: Warning suppression.
10190
10191 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10192
10193         * mule-ccl.c: Sync up with Emacs 21.0.90.
10194         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10195         Do nothing.
10196         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10197         Likewise.
10198         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10199         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10200         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10201         leading char belongs to official 2-dimensional charset.
10202         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10203         write the given character as is.  Otherwise,
10204         if it is a multibyte char, convert it by
10205         non_ascii_set_charptr_emchar, then write it.
10206         (CCL_WRITE_STRING): Likewise.
10207         (ccl_get_compiled_code): New function.
10208         (setup_ccl_program): When ccl_prog is invalid,
10209         return -1.
10210         (Fregister_code_conversion_map): New function.
10211         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10212
10213         * mule-ccl.h: Sync up with Emacs 21.0.90.
10214         (Fregister_ccl_program): export it.
10215
10216         * redisplay-msw.c (separate_textual_runs):
10217         If ccl program is not valid, don't do ccl conversion.
10218
10219         * redisplay-x.c (separate_textual_runs): Ditto.
10220
10221         * file-coding.c (Fmake_coding_system):
10222         When type is ccl and value is vector, register it
10223         with a proper symbol.  And checks whether the
10224         given ccl program is valid.
10225         (mule_decode): When calling ccl_driver, if src indicates
10226         NULL pointer, set an empty string instead.
10227         (mule_encode): Likewise.
10228
10229 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10230
10231         The following large batch of changes gets us back to a state of
10232         C++ compilability.  Extbyte is now a char, which means that
10233         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10234
10235         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10236
10237         * sound.c (Fplay_sound): Type correctness.
10238
10239         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10240         (x_get_window_property): Type correctness.
10241         (receive_incremental_selection): unsigned char ==> Extbyte
10242         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10243         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10244         (Fx_store_cutbuffer_internal): Type correctness.
10245
10246         * process-unix.c (try_to_initialize_subtty): Type correctness.
10247
10248         * objects-x.c (x_print_color_instance): Type correctness.
10249         (x_print_font_instance): Type correctness.
10250         (x_list_fonts): SExtbyte ==> Extbyte.
10251         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10252         (x_find_charset_font): SExtbyte ==> Extbyte.
10253         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10254         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10255         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10256         Use bufbyte_strcmp.
10257
10258         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10259         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10260         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10261         (BYTE_C0_P): Use bit ops for char-signedness safety.
10262         (BYTE_C1_P): Use bit ops for char-signedness safety.
10263         (CHARSET_BY_LEADING_BYTE):
10264         (CHARSET_BY_ATTRIBUTES):
10265         Always use inline function.
10266         Use type_checking_assert.
10267         Hide chlook.
10268
10269         * mule-charset.c (non_ascii_charptr_copy_char):
10270         Modify to work with both ASCII and non-ASCII characters.
10271         Improve docs and variable names.
10272         Replace over-clever fall-through switch with a simple loop.
10273         (Lstream_get_emchar_1):
10274         Replace over-clever fall-through switch with a simple loop.
10275
10276         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10277         Warning suppression.
10278
10279         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10280         the return value of Lstream_getc, which could be EOF as well.
10281
10282         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10283
10284         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10285         APIs can be used on Extbytes without casts.  Risky!
10286         (SExtbyte): Remove.
10287         (UExtbyte): Remove.
10288
10289         * input-method-xlib.c (XIM_init_device):
10290         Use Xlib.h instead of IntrinsicP.h.
10291         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10292         which will break in X11R7.
10293         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10294         to call XRegisterIMInstantiateCallback with correct types.
10295
10296         * gui-x.c (button_item_to_widget_value): Type correctness.
10297
10298         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10299
10300         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10301         (xbm_instantiate_1): Type correctness.
10302         (BUILD_GLYPH_INST):  Type correctness.
10303
10304         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10305
10306         * file-coding.c:
10307         (decode_coding_sjis):
10308         (decode_coding_big5):
10309         (decode_coding_ucs4):
10310         (decode_coding_utf8):
10311         (decode_coding_iso2022):
10312         (decode_coding_no_conversion):
10313         Make all decoding functions take an Extbyte * arg.
10314         (encode_coding_sjis):
10315         (encode_coding_big5):
10316         (encode_coding_ucs4):
10317         (encode_coding_utf8):
10318         (encode_coding_iso2022):
10319         (encode_coding_no_conversion):
10320         Make all encoding functions take a Bufbyte * arg.
10321         Use size_t instead of unsigned int for memory sizes.
10322         Only cast to unsigned char whenever dereferencing Extbyte *.
10323
10324         * doc.c (unparesseuxify_doc_string): Type correctness.
10325
10326         * console-x.c (split_up_display_spec):
10327         Rewrite without using details of internal string representation.
10328         (x_semi_canonicalize_device_connection): Type correctness.
10329
10330         * config.h.in:
10331         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10332         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10333         (HAVE_XFREE386): Removed.
10334
10335         * buffer.h (DEC_CHARPTR): `const' correctness.
10336         (bufbyte_strcmp): New.
10337         (bufbyte_memcmp): New.
10338
10339         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10340
10341         * buffer.h (XCHAR_OR_CHAR_INT):
10342         Always use inline function.
10343         Remove redundant type checking assert() - XINT will abort quite nicely.
10344
10345 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10346
10347         * search.c (Freplace_match): Set newtext to an empty string.
10348
10349 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10350
10351         * s/decosf1-3.h: Remove #include of stropts.h
10352         * s/ptx.h: Remove #include of stropts.h
10353         * s/usg5-4.h: Remove #include of stropts.h
10354         * sysproc.h:
10355         * config.h.in:
10356         Use stropts.h, not sys/stropts.h.
10357         Use strtio.h, not sys/strtio.h.
10358
10359 2000-10-04  Martin Buchholz <martin@xemacs.org>
10360
10361         * XEmacs 21.2.36 is released.
10362
10363 2000-09-21  Andy Piper  <andy@xemacs.org>
10364
10365         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10366         changes still involve copying the widget tree.
10367         (update_widget_face): make sure a change is register in the widget
10368         tree. Call update_tab_widget_face appropriately.
10369         (update_tab_widget_face): ditto.
10370         (x_tab_control_redisplay): make sure non-structural changes still
10371         involve copying the widget tree.
10372
10373 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10374
10375         * lread.c (locate_file): Check the path element is non-nil.
10376
10377 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10378
10379         * lisp.h: Warning suppression for SCO compilers.
10380
10381         * redisplay-tty.c (reset_tty_modes): Fix crash.
10382         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10383
10384 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10385
10386         Big signal/process handling overhaul.  Bugs fixed:
10387         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10388         M-x comint-kill-subjob should work for both values nil and t of
10389         process-connection-type. It was broken on most platforms.
10390         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10391         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10392         * process-unix.c: Signal/Process handling overhaul.
10393         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10394         (allocate_pty): Use all available modern methods of allocating
10395         ptys, falling back to old style BSD allocation as a last resort.
10396         Use allegedly more secure Unix98 pty allocation by default.
10397         (allocate_pty_the_old_fashioned_way): New. the last resort.
10398         (unix_create_process): Push ptem, ldterm, ttcompat where
10399         available.  Autoconfiscate.
10400         (try_to_initialize_subtty): New.
10401         (unix_kill_child_process): Proper signal handling for ptys on most
10402         platforms, using special knowledge of AIX, BSD, etc...
10403         (unix_create_process): Always disconnect_controlling_terminal() for
10404         subprocesses, whether using ptys or not.
10405         * process.h: Remove old getpt-dependent PTY code.
10406         * process.c (Fprocess_send_signal): New, obvious generic function.
10407         (decode_signal): New.
10408         (Finterrupt_process):
10409         (Fkill_process):
10410         (Fquit_process):
10411         (Fstop_process):
10412         (Fcontinue_process):
10413         (Fsignal_process): Use decode_signal.
10414         (process_send_signal):
10415         Many docstring corrections.
10416         Allow any signal to be sent to a process object.
10417         * config.h.in: Add symbols for big signal/process overhaul.
10418         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10419         * sysproc.h: Include process-related headers, where available:
10420         sys/stropts.h sys/strtio.h pty.h libutil.h
10421         * s/irix4-0.h:
10422         * s/irix5-0.h:
10423         * s/cygwin32.h:
10424         * s/gnu.h:
10425         * s/linux.h:
10426         * s/hpux.h:
10427         * s/aix3-1.h:
10428         Remove old S&M pty stuff.
10429         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10430         * systty.h: Simplify cpp hackery, improve comments.
10431         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10432
10433         * editfns.c (Fformat_time_string):
10434         Be a little more paranoid with the return value of ctime.
10435
10436         * fileio.c (check_executable):
10437         (check_writable):
10438         Use symbolic constants X_OK, W_OK.
10439
10440         * console-x.c (split_up_display_spec): Fix a warning.
10441
10442 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10443
10444         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10445         * ntproc.c (sys_spawnve): make_string ==> build_string
10446         Small clarity improvements.
10447
10448 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10449
10450         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10451
10452         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10453
10454         * config.h.in (HAVE_STRCASECMP): Remove.
10455
10456 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10457
10458         * redisplay-output.c (redisplay_output_pixmap):
10459         Cleaner and possibly more 64-bit correct code.
10460
10461 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10462
10463         * dumper.c (pdump_load_finish): move restoration of
10464         `noninteractive1' to emacs.c (main_1).
10465         * emacs.c (main_1): protect LISP-visible command-line flags
10466         from pdump_load().
10467
10468 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10469
10470         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10471         DUMP_TARGET instead of literal program names.
10472
10473 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10474
10475         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10476
10477 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10478
10479         * *: Spelling mega-patch
10480
10481 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10482
10483         * fns.c (bad_bad_turtle):
10484         Delete "Eek!" comment, since we fixed the bug to which it refers.
10485
10486 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10487
10488         * alloca.c: Replace REGISTER with register.
10489
10490 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10491
10492         * file-coding.c (ucs_to_char): Use countof.
10493
10494 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10495
10496         * file-coding.c: (ucs_to_char):
10497         (complex_vars_of_file_coding):
10498         Use countof instead of sizeof.
10499         Use CHECK_NATNUM instead of CHECK_INT.
10500
10501         * sysdep.c (strcasecmp): Remove.
10502         * device-x.c (ascii_strcasecmp): New.
10503         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10504         Avoid using non-standard non-portable strcasecmp.
10505
10506 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10507
10508         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10509         * font-lock.c: remove reference to emacsfns.h.
10510         * search.c: small doc improvement.
10511         * event-Xt.c: correct file names in comments.
10512         * console-x.h Correct file names in comments.
10513         * frame.c: Correct file names in comments.
10514         * event-stream.c: remove Energize from comments.
10515
10516 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10517
10518         * symeval.h (DEFERROR_STANDARD):
10519         (DEFERROR):
10520         (DEFSYMBOL):
10521         (DEFSYMBOL_NO_DUMP):
10522         (DEFSYMBOL_MULTIWORD_PREDICATE):
10523         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10524         (DEFKEYWORD):
10525         The construct &##name is not sensible C.
10526         Fixes compilation errors with Unixware native compiler.
10527
10528 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10529
10530         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10531         (next_frame_internal): Removed.  We now just have next_frame.
10532         (next_frame):
10533         Write a simpler and cleaner one-pass algorithm.
10534         Remove called_from_delete_device arg and #ifdefed-out code.
10535         (previous_frame):
10536         Renamed from prev_frame.  Update callers.
10537         Cleaned up to have an analogous implementation to next_frame.
10538         (other_visible_frames_internal): Remove the
10539         called_from_delete_device bogus arg, and hence, remove this
10540         function.  Just use other_visible_frames().
10541
10542         * window.c (Fnext_window):
10543         Prettify docstring.
10544         Since next_frame() is guaranteed to return a frame, remove check
10545         for nil inserted in previous patch.
10546         (Fprevious_window):
10547         Prettify docstring.
10548         Make code look more like Fnext_window.
10549         (window_loop):
10550         Respect the `console' arg when iterating through windows.
10551         Fixes bug: (get-buffer-window buffer t device) not respecting
10552         the `device' arg.
10553         This function needs more work, as others have pointed out.
10554
10555         * frame.h: Rename prev_frame to previous_frame.
10556         device_matches_console_spec no longer takes a `frame' arg.
10557
10558         * s/gnu.h:
10559         * s/linux.h:
10560         * s/hpux.h:
10561         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10562         From "Golubev I. N." <gin@mo.msk.ru>.
10563
10564         * make-src-depend: Fix typo.
10565
10566 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10567
10568         * window.c (Fnext_window):
10569         next_frame() might return nil, not a frame.
10570         Fixes this crash:
10571         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10572
10573         * frame.c (next_frame_internal):
10574         We've passed a frame if we've passed its device.
10575         Fixes this crash:
10576         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10577 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10578
10579 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10580
10581         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10582         Allow option to suppress accelerators in menu/dialog items.
10583         (populate_or_checksum_helper): Pass dialog title through above.
10584
10585 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10586
10587         * event-msw.c (mswindows_key_to_emacs_keysym):
10588         Add "pause" key, fix "menu" key.
10589
10590 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10591
10592         * eval.c (reinit_vars_of_eval):
10593         Increase max_lisp_eval_depth to 1000,
10594         required for thai-xtis.el to byte-compile under some circumstances.
10595
10596 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10597
10598         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10599         From Kenichi Handa.
10600
10601 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10602
10603         * make-src-depend: Make the generated Makefiles smaller.
10604
10605         * s/hpux.h (SETUP_SLAVE_PTY):
10606         Provide a %d in the format string for the errno argument.
10607
10608         * editfns.c (Ftemp_directory):
10609         Warning fix.
10610         Avoid buffer overrun on very long file name.
10611
10612         * input-method-xlib.c (XIM_init_device):
10613         6th parameter of XRegisterIMInstantiateCallback has different
10614         pointer types on different OSes, so simply cast to (void *).
10615
10616         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10617
10618         * sysdll.c (dll_open):
10619         shl_load will hang hard if passed a NULL filename.
10620         Simply return NULL for compatibility with dlopen.
10621         * sysdll.c: Conform to XEmacs coding standards.
10622
10623         * sysdep.c (get_pty_max_bytes):
10624         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10625
10626 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10627
10628         * tooltalk.c: Add #include <syssignal.h>
10629
10630 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10631
10632         * s/hpux.h: Don't use undefined function sigunblock().
10633
10634 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10635
10636         * config.h.in: Add HAVE_BALLOON_HELP.
10637         * emacs.c: Use HAVE_BALLOON_HELP.
10638         * Makefile.in.in (x_objs):
10639         Make Balloon Help conditional on finding shape.h.
10640
10641 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10642
10643         * syntax.c (regex_emacs_buffer_p): New variable.
10644         * syntax.h (regex_emacs_buffer_p): extern.
10645         * search.c (looking_at_1):
10646         (string_match_1):
10647         (fast_string_match):
10648         (search_buffer): Set regex_emacs_buffer_p.
10649         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10650         when before_dot, at_dot, after_dot.
10651
10652 2000-08-23  Andy Piper  <andy@xemacs.org>
10653
10654         * gui-x.c (popup_selection_callback): Only set action_occurred
10655         when we really have an image instance.
10656         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10657
10658 2000-08-23  Andy Piper  <andy@xemacs.org>
10659
10660         * gui-msw.c (mswindows_handle_gui_wm_command): set
10661         action_occurred.
10662         * gui-x.c (popup_selection_callback): ditto.
10663
10664         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10665         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10666         (struct Lisp_Image_Instance): add action_occurred flag.
10667
10668         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10669         (image_instance_changed): ditto.
10670         (reset_frame_subwindow_instance_cache): only unmap windows - do
10671         not remove them from the cache also.
10672
10673         * glyphs-widget.c (tab_control_update): better debug.
10674         (progress_gauge_update): ditto.
10675         (layout_update): ditto.
10676         (layout_instantiate): ditto.
10677         (tab_control_order_only_changed): cope with null pending items.
10678
10679         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10680         debug. Force selection of an item when an action occurred. Cope
10681         with null pending_items.
10682         (mswindows_progress_gauge_redisplay): better debug.
10683         * glyphs-x.c (x_tab_control_redisplay): ditto.
10684
10685         * redisplay.c (redisplay_frame): reset the frame cache if the
10686         frame is garbaged.
10687
10688         * window.c (Fset_window_configuration): potentially re-enable
10689         frame cache reset.
10690         (window_unmap_subwindows): need to finalize instances here since
10691         it is only used in mark_window_as_deleted.
10692
10693 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10694
10695         * nas.c (SndOpenDataForReading):
10696         nas.c (WaveOpenDataForReading):
10697         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10698         Somehow escaped from the 2000-08-14 patch.
10699
10700 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10701
10702         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10703         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10704
10705 2000-08-21  Andy Piper  <andy@xemacs.org>
10706
10707         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10708         window if it is not already displayed.
10709
10710         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10711         it is not already displayed.
10712
10713         * window.c (Fset_window_configuration): don't reset the frame
10714         cache.
10715
10716         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10717         instances from the frame cache if we are actually finalizing them.
10718         (reset_frame_subwindow_instance_cache): reset frame cache only
10719         after unmapping everything.
10720         (map_subwindow): set displayed flag after mapping.
10721
10722 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10723
10724         * data.c (indirect_function):
10725         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10726
10727         * eval.c (function_argcount):
10728         Use original function when signaling errors.
10729
10730 2000-08-18  Andy Piper  <andy@xemacs.org>
10731
10732         * frame.c (delete_frame_internal): use new
10733         free_frame_subwindow_instances name.
10734
10735         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10736         (add_tab_item): make return type correct.
10737         (mswindows_tab_control_instantiate): assert index of tab.
10738         (mswindows_tab_control_redisplay): Re-code to use
10739         gui_item_equal_sans_selected and gui_item_list_find_selected.
10740
10741         * glyphs-widget.c (tab_control_update): Correct comment.
10742
10743         * window.c (window_unmap_subwindows): use new
10744         unmap_subwindow_instance_cache_mapper.
10745         (window_unmap_subwindows_cache_mapper): deleted.
10746         (Fset_window_configuration): comparisons should now be with
10747         EQ. Preserve the subwindow instance cache across configuration
10748         changes.
10749         (allocate_window): ditto.
10750         (make_dummy_parent): ditto.
10751
10752         * glyphs.c (free_frame_subwindow_instances): rename from
10753         free_frame_subwindow_instance_cache. finalize all instances rather
10754         than just those in the display cache.
10755         (finalize_all_subwindow_instances): walk windows unmapping and
10756         finalizing subwindows.
10757         (unmap_subwindow_instance_cache_mapper): moved from
10758         window.c. Allow finalization as well as unmapping.
10759
10760         * gui.c (gui_item_list_find_selected): new function.
10761
10762         * gui.h (gui_item_list_find_selected): declare.
10763
10764         * glyphs-x.c (x_tab_control_redisplay): pick tab
10765         explicitly. Re-code to use gui_item_equal_sans_selected and
10766         gui_item_list_find_selected.
10767
10768         * glyphs-x.h: add lwlib-utils.h
10769
10770         * buffer.c (Frecord_buffer): undo previous change.
10771
10772 2000-08-09  Vin Shelton  <acs@xemacs.org>
10773
10774         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10775         possible.  Create temporary files more securely.  The patch was
10776         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10777         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10778         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10779         for details.
10780
10781 2000-08-07  Ben Wing  <ben@xemacs.org>
10782
10783         * getloadavg.c: remove duplicate (and windows-breaking)
10784         includes of fcntl.h and sys/file.h.
10785
10786         * nt.c: remove duplicate getloadavg() definition.
10787
10788         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10789         encodings.
10790
10791 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10792
10793         * eval.c (function_argcount): If function needs to be autoloaded
10794         actually use the loaded definition.
10795         GCPRO function.
10796
10797 2000-08-05  Ben Wing  <ben@xemacs.org>
10798
10799         * getloadavg.c: add prototype for getloadavg().  remove
10800         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10801         of the code).  remove duplicate header includes.
10802
10803         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10804
10805         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10806         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10807         useful load average.
10808
10809         * alloc.c (reinit_alloc_once_early): removed references to
10810         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10811         the lisp vars are the only things referencing the malloc_sbrk_*
10812         vars, and they were already if 0'd out.  these vars only exist
10813         in the older malloc.c, which is basically unused, and they're
10814         only for informational purposes.
10815
10816         * m\*.h: removed useless VIRT_ADDR_VARIES.
10817
10818         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10819
10820 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10821
10822         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10823         color if the image is a mono pixmap.
10824
10825 2000-07-30  Ben Wing  <ben@xemacs.org>
10826
10827         * Makefile.in.in (release):
10828         Remove stray @.
10829
10830         * buffer.c (directory_is_current_directory):
10831         * dired-msw.c (mswindows_get_files):
10832         * dired.c:
10833         * dired.c (Fdirectory_files):
10834         * dired.c (file_name_completion_stat):
10835         * dired.c (Ffile_attributes):
10836         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10837         preprocessor tricks, to avoid problems on some machines
10838         (e.g. SCO).
10839
10840         * callproc.c (egetenv): GC docs.
10841
10842         * console-msw.h:
10843         * console-msw.h (struct mswindows_dialog_id):
10844         * lrecord.h (lrecord_type):
10845         New object for use with MSW dialogs.
10846
10847         * console.h (struct console_methods):
10848         New enable/disable frame methods, for proper modal dialogs.
10849
10850         * device-msw.c (msprinter_default_printer): Fix to follow
10851         proper Mule conventions.
10852
10853         * device-msw.c:
10854         * device-msw.c (signal_open_printer_error):
10855         * device-msw.c (msprinter_init_device):
10856         * device-msw.c (ensure_not_printing):
10857         * device-msw.c (plist_get_margin):
10858         * device-msw.c (Fmsprinter_select_settings):
10859         * device-msw.c (finalize_devmode):
10860         * device-msw.c (Fmsprinter_settings_despecialize):
10861         * device-msw.c (signal_enum_priner_error):
10862         * extents.c (decode_extent):
10863         * extents.c (decode_map_extents_flags):
10864         * extents.c (decode_extent_at_flag):
10865         * extents.c (Fextent_at):
10866         * extents.c (Fextents_at):
10867         * extents.c (symbol_to_glyph_layout):
10868         [[[[2]]]] Use structured errors.
10869
10870         * dialog-msw.c:
10871         * dialog-msw.c (mswindows_is_dialog_msg):
10872         * dialog-msw.c (mark_mswindows_dialog_id):
10873         * dialog-msw.c (dialog_proc):
10874         * dialog-msw.c (handle_question_dialog_box):
10875         * dialog-msw.c (syms_of_dialog_mswindows):
10876         Define new object to clean up marking; use it as a dialog identifier.
10877         Call new delete-dialog-box-hook.
10878
10879         * dialog-x.c (dbox_selection_callback):
10880         * dialog-x.c (dbox_descriptor_to_widget_value):
10881         * dialog-x.c (x_make_dialog_box_internal):
10882         Call new delete-dialog-box-hook.
10883         Return an id.
10884
10885         * dialog.c:
10886         * dialog.c (syms_of_dialog):
10887         * dialog.c (vars_of_dialog):
10888         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10889
10890         * eval.c:
10891         * eval.c (signal_call_debugger):
10892         when noninteractive, output stack traces on the console instead
10893         of in a (never-seen) buffer.
10894
10895         * eval.c (signal_type_error):
10896         * eval.c (invalid_argument_2):
10897         * lisp.h:
10898         new funs for use w/structured errors.
10899
10900         * event-Xt.c:
10901         * event-Xt.c (x_to_emacs_keysym):
10902         * event-Xt.c (describe_event):
10903         * event-Xt.c (emacs_Xt_event_handler):
10904         * event-Xt.c (vars_of_event_Xt):
10905         * event-msw.c:
10906         * event-msw.c (mswindows_wnd_proc):
10907         * event-msw.c (vars_of_event_mswindows):
10908         rename {x,mswindows}-debug-events to debug-{}-events for
10909         consistency with other debug-foo variables.
10910
10911         * event-stream.c:
10912         document next-event more clearly.
10913
10914         * fileio.c (Ffile_name_directory):
10915         * fileio.c (Ffile_name_nondirectory):
10916         * fileio.c (Funhandled_file_name_directory):
10917         * fileio.c (file_name_as_directory):
10918         * fileio.c (Ffile_name_as_directory):
10919         * fileio.c (directory_file_name):
10920         * fileio.c (Fdirectory_file_name):
10921         * fileio.c (Fmake_temp_name):
10922         * fileio.c (Ffile_truename):
10923         * fileio.c (Fsubstitute_in_file_name):
10924         * fileio.c (expand_and_dir_to_file):
10925         * fileio.c (barf_or_query_if_file_exists):
10926         * fileio.c (check_executable):
10927         * fileio.c (Ffile_exists_p):
10928         * fileio.c (Ffile_writable_p):
10929         * fileio.c (Ffile_directory_p):
10930         * fileio.c (Ffile_regular_p):
10931         * fileio.c (Ffile_modes):
10932         * fileio.c (Ffile_newer_than_file_p):
10933         * fileio.c (Fverify_visited_file_modtime):
10934         * fileio.c (Fset_visited_file_modtime):
10935         * fileio.c (auto_save_1):
10936         (1). (2).
10937         fix up gcpro's.
10938
10939         * frame-msw.c:
10940         * frame-msw.c (mswindows_init_frame_1):
10941         * frame-msw.c (mswindows_enable_frame):
10942         * frame-msw.c (error_frame_unsizable):
10943         * frame-msw.c (msprinter_init_frame_1):
10944         * frame-msw.c (msprinter_init_frame_3):
10945         * frame-msw.c (console_type_create_frame_mswindows):
10946         (2).
10947         implement new enable/disable frame methods.
10948
10949         * frame-x.c:
10950         * frame-x.c (x_enable_frame):
10951         * frame-x.c (console_type_create_frame_x):
10952         implement new enable/disable frame methods.
10953
10954         * frame.c:
10955         * frame.c (Fdisable_frame):
10956         * frame.c (syms_of_frame):
10957         * frame.h (struct frame):
10958         implement new enable/disable frame methods/functions.
10959
10960         * general-slots.h:
10961         add initial-focus.
10962
10963         * glyphs-msw.c (mswindows_widget_instantiate):
10964         comment that initial-focus should be implemented.
10965
10966         * glyphs-widget.c:
10967         * glyphs-widget.c (check_valid_instantiator):
10968         * glyphs-widget.c (check_valid_orientation):
10969         * glyphs-widget.c (check_valid_tab_orientation):
10970         * glyphs-widget.c (check_valid_justification):
10971         * glyphs-widget.c (check_valid_border):
10972         * glyphs-widget.c (check_valid_callback):
10973         * glyphs-widget.c (check_valid_int_or_function):
10974         * glyphs-widget.c (check_valid_string_or_vector):
10975         * glyphs-widget.c (check_valid_item_list_1):
10976         * glyphs-widget.c (widget_validate):
10977         * glyphs-widget.c (combo_box_validate):
10978         * glyphs-widget.c (widget_instantiate):
10979         * glyphs-widget.c (syms_of_glyphs_widget):
10980         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10981         * glyphs-widget.c (image_instantiator_combo_box):
10982         * glyphs-widget.c (image_instantiator_scrollbar):
10983         * glyphs-widget.c (image_instantiator_tab_control):
10984         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10985         (2).
10986         support (unimplemented) keyword initial-focus.
10987         reindent long macros.
10988
10989         * glyphs-x.c (x_redisplay_widget):
10990         * glyphs-x.c (x_button_instantiate):
10991         * glyphs-x.c (x_button_redisplay):
10992         * glyphs-x.c (x_progress_gauge_instantiate):
10993         * glyphs-x.c (x_edit_field_instantiate):
10994         * glyphs-x.c (x_combo_box_instantiate):
10995         * glyphs-x.c (x_tab_control_instantiate):
10996         * glyphs-x.c (x_label_instantiate):
10997         * gui-x.c:
10998         * gui-x.c (button_item_to_widget_value):
10999         * gui-x.c (gui_items_to_widget_values_1):
11000         * gui-x.c (gui_item_children_to_widget_values):
11001         * gui-x.c (gui_items_to_widget_values):
11002         * gui-x.h:
11003         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11004         add new flag to gui-parsing routines to indicate whether
11005         accelerator specs should be supported.
11006
11007         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11008
11009         * glyphs.h (struct Lisp_Image_Instance):
11010         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11011         add initial-focus flag.
11012
11013         * gui.c:
11014         * gui.c (syms_of_gui):
11015         * gui.c (vars_of_gui):
11016         clean up menu-no-selection-hook.
11017
11018         * gui.h:
11019         support delete-dialog-box-hook.
11020
11021         * lread.c (Fload_internal):
11022         * lread.c (locate_file_in_directory_mapper):
11023         (1).
11024
11025         * lrecord.h:
11026         * lrecord.h (struct toolbar_button):
11027         * lrecord.h (syms_of_toolbar):
11028         document how to create a new object.
11029
11030         * menubar-msw.c (mswindows_char_is_accelerator):
11031         may be called on frames w/o menus.
11032
11033         * menubar.c (vars_of_menubar):
11034         clean up :filter docs.
11035
11036         * nt.c (readdir):
11037         * ntproc.c:
11038         (1).
11039
11040         * process-nt.c:
11041         * process-nt.c (validate_signal_number):
11042         * process-nt.c (signal_cannot_launch):
11043         * process-nt.c (nt_create_process):
11044         * process-nt.c (nt_send_process):
11045         * process-nt.c (nt_kill_child_process):
11046         * process-nt.c (nt_open_network_stream):
11047         * process-nt.c (syms_of_process_nt):
11048         (2).
11049         delete quote-handling.  call new lisp code that does it better.
11050
11051         * process-unix.c (connect_to_file_descriptor):
11052         * process-unix.c (allocate_pty):
11053         * process-unix.c (unix_send_process):
11054         * process-unix.c (unix_kill_child_process):
11055         * process-unix.c (unix_open_network_stream):
11056         * process-unix.c (unix_open_multicast_group):
11057         (1). (2).
11058
11059         * process.c:
11060         * process.c (Fstart_process_internal):
11061         (2).  need to canonicalize process path even if absolute.
11062
11063         * select-msw.c (symbol_to_ms_cf):
11064         * select-msw.c (ms_cf_to_symbol):
11065         * select-msw.c (cf_is_autofreed):
11066         * select-msw.c (mswindows_destroy_selection):
11067         * select.c:
11068         * select.c (syms_of_select):
11069         * select.h:
11070         support dibv5, fix bugs. (from Mike Alexander)
11071
11072         * select.c (Fget_selection_internal):
11073         * select.c (select_convert_out):
11074
11075         * sysdep.c:
11076         * sysdep.c (xemacs_stat):
11077         renamed.
11078
11079         * sysdep.c (mkdir):
11080         * sysdep.c (rmdir):
11081         but keep original stat() here because we provide encapsulation
11082         around these funs.
11083
11084         * sysfile.h:
11085         * sysfile.h (fstat):
11086         remove stat garbage.
11087
11088         * syswindows.h:
11089         fix X/MSW conflict.
11090         don't include tchar.h.  it's inappropriate because it makes
11091         compile-time distinctions when we want runtime distinctions.
11092         (we provide our own tchar replacements)
11093
11094         * toolbar.c:
11095         use default object printer for toolbar-button.
11096
11097         * unexcw.c:
11098         make sure we don't encapsulate.
11099
11100         * window.c (vars_of_window):
11101         emphasize that temp-buffer-show-hook is obsolete.
11102
11103 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11104
11105         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11106         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11107
11108         * events.c (Fevent_timestamp_lessp):
11109         Not 64-bit clean.  Use EMACS_INT, not int.
11110
11111 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11112
11113         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11114         unsigned int and changed the last enum to
11115         lrecord_type_last_built_in_type.
11116         (lrecord_implementations_table): changed prototype to know how
11117         long the array is supposed to be.
11118         (lrecord_type_count): new unsigned int to keep track of the
11119         current number of lisp lrecord types.
11120         (DEFINE_EXTERNAL_LRECORD):
11121         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11122         dynamic-modules to declare new lisp types. They are the same
11123         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11124         int for each new type, and increment lrecord_type_count by 1.
11125
11126         * alloc.c (lrecord_implementations_table): Changed to reference
11127         lrecord_type_last_built_in_type for the size of the array.
11128         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11129
11130 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11131
11132         * glyphs.h (check_valid_item_list): Renamed from
11133         check_valid_item_list_1.
11134
11135 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11136
11137         * select.c (Qselect_coerce): New.
11138         * select.c (Vselection_coercion_alist): New.
11139         * select.c (syms_of_select): Declare.
11140         * select.c (get-selection-internal): Use it.
11141         Use the new select-coerce functionality.
11142
11143         * select.c (select_coerce): New.
11144         * select.h (select_coerce): Declare.
11145         New function to coerce one type of data into another.
11146
11147 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11148
11149         * callproc.c (Fcall_process_internal):
11150         (Fcall_process_internal):
11151         * process-unix.c (unix_create_process):
11152         Save and restore the value of errno, so that error messages are accurate.
11153
11154 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11155
11156         * elhash.c (print_hash_table):
11157         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11158         Prettify docstrings and indentation.
11159
11160 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11161
11162         * window.c (Fwindow_pixel_edges): Subtract frame border and
11163         gutter size.
11164
11165 2000-07-31  Andy Piper  <andy@xemacs.org>
11166
11167         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11168         will acknowledge the change.
11169
11170         * glyphs.h: declare tab_control_order_only_changed.
11171
11172         * glyphs-x.c (x_tab_control_redisplay): use
11173         tab_control_order_only_changed.
11174
11175         * glyphs-widget.c (tab_control_order_only_changed): new function.
11176
11177         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11178         tab_control_order_only_changed.
11179
11180         * gui.c (gui_item_equal_sans_selected): new function.
11181         (gui_item_equal): use it.
11182
11183         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11184         :properties in favor of :items..
11185
11186         * glyphs-widget.c (check_valid_item_list): rename from
11187         check_valid_item_list_1.
11188         (check_valid_item_list_1): renamed.
11189         (combo_box_validate): deprecate :properties in favor of :items.
11190         (widget_instantiate): ditto.
11191         (tab_control_update): ditto.
11192         (image_instantiator_combo_box): ditto.
11193         (image_instantiator_tree_view): ditto.
11194         (image_instantiator_tab_control): ditto.
11195         (layout_post_instantiate): remove dead code.
11196
11197         * print.c (debug_print_no_newline): only write to debugger if in
11198         WIN32_NATIVE.
11199
11200         * elhash.c (Fmake_hash_table): update doc string.
11201
11202         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11203         messages whilst in GC. This at least stops XEmacs crashing but has
11204         the potential for wierd behaviour.
11205
11206 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11207
11208         * config.h.in:
11209         Make existence of s&m files optional.
11210
11211         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11212         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11213         * s/gnu.h: Remove HAVE_GETLOADAVG.
11214         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11215         * s/sol2.h: Remove HAVE_GETLOADAVG.
11216         * lisp.h: Remove getloadavg() declaration.
11217         * fns.c:
11218         Include <sys/loadavg.h> if available.
11219         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11220         * config.h.in:  Group together getloadavg()-related macros.
11221         Use only configure-time tests to detect getloadavg().
11222
11223 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11224
11225         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11226
11227 2000-07-25  Andy Piper  <andy@xemacs.org>
11228
11229         * syswindows.h: add tchar.h for native builds.
11230
11231         * frame.c (syms_of_frame): remove set-glyph-image.
11232
11233         * general-slots.h: add Qset_glyph_image.
11234
11235         * glyphs-widget.c (layout_update): add domain arg to
11236         set-glyph-image.
11237         (syms_of_glyphs_widget): remove set-glyph-image.
11238
11239 2000-07-23  Ben Wing  <ben@xemacs.org>
11240
11241         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11242         Vpopup_frame_list.
11243
11244 2000-07-22  Andy Piper  <andy@xemacs.org>
11245
11246         * symsinit.h: add syms_of_win32().
11247
11248         * gui-msw.c (syms_of_gui_mswindows): remove
11249         Fmswindows_shell_execute.
11250         (Fmswindows_shell_execute): moved to win32.c.
11251
11252         * emacs.c (main_1): add syms_of_win32 ().
11253
11254         * win32.c (init_potentially_nonexistent_functions): rewrite in
11255         compiler-friendly terms.
11256         (Fmswindows_shell_execute): move here from gui-msw.c.
11257         (syms_of_win32): new.
11258
11259         * device-msw.c (Fmswindows_printer_list): clean up args to
11260         EnumPrinters.
11261         Don't include tchar under cygwin or mingw.
11262         (msprinter_default_printer): make cygwin-friendly.
11263
11264 2000-07-21  Andy Piper  <andy@xemacs.org>
11265
11266         * glyphs-widget.c (image_instantiator_tree_view): use tab
11267         control's update function.
11268         (layout_property): new function. Retrieve items.
11269
11270         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11271         function. Re-populate the tree view from the pending items.
11272
11273         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11274         is designated the parent if the domain is an image instance. This
11275         is needed so that dirtiness can be cascade up the hierarchy and
11276         thus for layout children to be redisplayed correctly.
11277         (allocate_image_instance): rename glyph -> parent.
11278
11279         * redisplay.h: change redisplay_output_layout signature.
11280
11281         * redisplay-msw.c (mswindows_output_display_block): use domain
11282         arg.
11283
11284         * redisplay-x.c (x_output_display_block): use domain arg.
11285
11286 2000-07-10  Andy Piper  <andy@xemacs.org>
11287
11288         * window.c (Fset_window_configuration): add comment.
11289
11290         * redisplay-output.c (compare_runes):
11291         (redisplay_output_subwindow): redisplay rather than update subwindow.
11292         (redisplay_output_layout): ditto.
11293
11294         * redisplay-msw.c (mswindows_frame_output_end):
11295         (mswindows_frame_output_end): make defer window pos optional.
11296
11297         * lisp.h: add Flast.
11298
11299         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11300         normalize method. Change update method to be for changed
11301         instantiators. Add redisplay method. Change signature of layout
11302         method.
11303         (struct Lisp_Image_Instance): add instantiator.
11304         (IMAGE_INSTANCE_INSTANTIATOR): new.
11305         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11306         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11307         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11308
11309         * glyphs.c:
11310         (find_instantiator_differences): new function.
11311         (Fset_instantiator_property): new convenience function.
11312         (check_image_instance_structure): strictly check for vector
11313         instantiators.
11314         (normalize_image_instantiator): make non-static.
11315         (instantiate_image_instantiator): pass on dest_mask and use new
11316         signatures for image_instance_layout and friends.
11317         (mark_image_instance): mark the instantiator. Mark the subwindow
11318         face not the widget face.
11319         (image_instance_equal): add instantiator.
11320         (image_instance_hash): ditto.
11321         (allocate_image_instance): ditto.
11322         (Fset_image_instance_property): removed.
11323         (Fimage_instance_file_name): ditto.
11324         (Fcolorize_image_instance): ditto.
11325         (image_instance_layout): add offsets to be set.
11326         (update_image_instance): new function. update an image instance
11327         from its changed instantiator.
11328         (inherit_normalize): add dest_mask.
11329         (xbm_normalize): ditto.
11330         (xface_normalize): ditto.
11331         (xpm_normalize): ditto.
11332         (text_update): set_property -> update.
11333         (image_instantiate): use the glyph identity as a hash key, not the
11334         instantiator.
11335         (glyph_width): use new image_instance_layout signature.
11336         (glyph_ascent): ditto.
11337         (glyph_descent): ditto.
11338         (glyph_height): ditto.
11339         (glyph_query_geometry): ressurrect.
11340         (glyph_layout): ditto.
11341         (redisplay_subwindow): update -> redisplay.
11342         (syms_of_glyphs): add Fset_instantiator_property.
11343         (image_instantiator_format_create): set_property -> update.
11344
11345         * glyphs-x.c:
11346         (autodetect_normalize): add dest_maks to signature.
11347         (x_redisplay_subwindow): update -> redisplay.
11348         (x_redisplay_widget): ditto.
11349         (x_button_redisplay): ditto.
11350         (x_progress_gauge_redisplay): ditto.
11351         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11352         stacking order.
11353         (console_type_create_glyphs_x): update -> redisplay.
11354         (image_instantiator_format_create_glyphs_x): ditto.
11355
11356         * glyphs-widget.c:
11357         (check_valid_instantiator): disallow glyphs in the instantiator,
11358         they must now be vectors.
11359         (check_valid_instantiator_list): ditto.
11360         (glyph_instantiator_to_glyph): use internal symbol rather than
11361         intern.
11362         (widget_update): renamed from widget_set_property. Call cascaded
11363         update methods.
11364         (redisplay_widget): renamed from update_widget.
11365         (widget_layout): image_instance_layout now takes position as well
11366         as size.
11367         (widget_normalize): ditto.
11368         (widget_instantiate): ditto.
11369         (tab_control_query_geometry) ditto.:
11370         (tab_control_update): renamed from tab_control_set_property.
11371         (progress_gauge_update): set_property -> update.
11372         (layout_normalize): rewrite so that child instantiators are
11373         normalized also.
11374         (layout_update): new function. Create glyphs from the normalized
11375         children and cope with any other layout keywords. We do not
11376         instantiate children here that will be take care of by
11377         redisplay_output_layout.
11378         (layout_instantiate): call layout_update and not much else.
11379         (layout_post_instantiate): not sure whether this is needed
11380         anymore.
11381         (layout_query_geometry): query glyph geometry rather than
11382         image_instance geometry.
11383         (layout_layout): set offsets from pass in parameters. Use glyph
11384         geometry and layout functions rather than image instance ones.
11385         (native_layout_layout): ditto.
11386         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11387         (image_instantiator_widget): set_property -> update.
11388         (image_instantiator_buttons): ditto.
11389         (image_instantiator_progress_guage): ditto.
11390         (image_instantiator_tab_control): ditto.
11391         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11392         (image_instantiator_layout): add update method.
11393
11394         * glyphs-msw.c (bmp_normalize):
11395         (mswindows_resource_normalize): add dest_mask so that it can be
11396         proprogated by layout_normalize.
11397         (begin_defer_window_pos): make optional because it may not be the
11398         right thing to do and it introduces differences with X.
11399         (mswindows_unmap_subwindow): ditto.
11400         (mswindows_map_subwindow): ditto.
11401         (mswindows_redisplay_subwindow): renamed from
11402         mswindows_update_subwindow.
11403         (mswindows_redisplay_widget): ditto.
11404         (mswindows_button_redisplay): renamed from
11405         mswindows_button_update. Update is now what the instantiation
11406         function does for a changed instantiator.
11407         (mswindows_progress_gauge_instantiate): set the progress value
11408         here if appropriate.
11409         (mswindows_tab_control_redisplay): cope with re-ordering of the
11410         members of the tab widget by simply selecting the new top
11411         widget. This makes things appear ok if you click on a tab.
11412         (mswindows_combo_box_instantiate): image_instance_layout now takes
11413         position as well as size.
11414         (mswindows_progress_gauge_redisplay): renamed from
11415         mswindows_progress_gauge_update.
11416         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11417         (image_instantiator_format_create_glyphs_mswindows): ditto.
11418
11419         * glyphs-eimage.c (jpeg_normalize):
11420         (gif_normalize):
11421         (png_normalize):
11422         (tiff_normalize): add dest_mask so that it can be proprogated by
11423         layout_normalize.
11424
11425         * elhash.c:
11426         (print_hash_table):
11427         (hash_table_weakness_validate):
11428         (decode_hash_table_weakness):
11429         (Fhash_table_weakness):
11430         (Fhash_table_type):
11431         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11432
11433         * console.h (struct console_methods): move update_* to
11434         redisplay_*.
11435
11436 2000-07-20  Ben Wing  <ben@xemacs.org>
11437
11438         * *.[ch] (XSETOBJ): remove unused middle argument.
11439         lisp-disunion.h: correct wrap_object() to one argument.
11440
11441 2000-07-15  Ben Wing  <ben@xemacs.org>
11442
11443         * s/cygwin32.h:
11444         * s/cygwin32.h (CYGWIN_CONV_PATH):
11445         Add missing logb prototype for v1.1.
11446         Use post-b20 names and alias to pre-b20 names when pre-b20.
11447
11448         * s/windowsnt.h: [5].
11449
11450 2000-07-15  Ben Wing  <ben@xemacs.org>
11451
11452         * Makefile.in.in (x_objs):
11453         * Makefile.in.in (sheap_objs):
11454         * Makefile.in.in (objs):
11455         added win32.o, cosmetic cleanups.
11456
11457         * alloc.c (Fmake_byte_code):
11458         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11459         etc. macros which declare their own args now.
11460
11461         * alloc.c (syms_of_alloc):
11462         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11463
11464         * buffer.c:
11465         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11466
11467         * buffer.c (Fget_file_buffer):
11468         Fixed GCPRO problem.
11469
11470         * buffer.c (get_truename_buffer):
11471         Fixed comment about GC checking.
11472
11473         * buffer.c (syms_of_buffer):
11474         Undeclared those dedicated frame funs.
11475         [2].
11476
11477         * buffer.h:
11478         Define convenience macros for internal/external conversions.
11479         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11480         and Qenvironment_variable_encoding for cleaner code.
11481
11482         * bufslots.h:
11483         Remove dedicated-frame; in lisp.
11484
11485         * bytecode.c (funcall_compiled_function):
11486         [1].
11487
11488         * bytecode.c (syms_of_bytecode):
11489         [2].
11490
11491         * console-msw.c:
11492         * console-msw.c (mswindows_show_console): Rewrote.
11493
11494         * console-msw.c (Fmswindows_debugging_output): New.
11495         Sends to OutputDebugString (special MSWin debugger interface).
11496
11497         * console-msw.c (Fmswindows_message_box):
11498         Fixed stupid bugs so it works when called from kill-emacs.
11499
11500         * console-msw.c (syms_of_console_mswindows):
11501         Declare Fmswindows_debugging_output.
11502
11503         * console-msw.h:
11504         New MSWin prototypes.
11505
11506         * console-msw.h (struct mswindows_frame):
11507         New entry last-click-mods for improved button-modifier support.
11508
11509         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11510         New struct entry `popup' with corresponding accessor.
11511
11512         * console-x.c:
11513         * console-x.c (split_up_display_spec):
11514         * console-x.c (get_display_arg_connection):
11515         * console-x.c (x_semi_canonicalize_console_connection):
11516         * console-x.c (x_canonicalize_device_connection):
11517         [[[6]]]: Change char to more specific type.
11518         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11519
11520         * console-x.c (x_semi_canonicalize_console_connection):
11521         * console-x.c (x_canonicalize_device_connection):
11522         [[[9]]]: Fix up error signalling to use new structured error system.
11523
11524         * console-x.h:
11525         [[[4]]]: Define codesys aliases:
11526         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11527         Qx_color_name_encoding, Qx_display_name_encoding.
11528
11529         * console.h (struct console_methods):
11530         New method make_dialog_box_internal supersedes older
11531         popup_dialog_box method.
11532
11533         * data.c:
11534         Define many new errors, part of new structured errors.
11535
11536         * data.c (init_errors_once_early):
11537         * data.c (syms_of_data):
11538         [2].
11539
11540         * device-msw.c (mswindows_init_device):
11541         [[[5]]]: Cleanup to support NT 3.51.
11542
11543         * device-msw.c (decode_devmode): Cleanup.
11544
11545         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11546         * device-msw.c (mswindows_handle_print_dialog_box):
11547         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11548         * device-msw.c (syms_of_device_mswindows):
11549         Delete the dialog box primitives recently introduced by Kirill and
11550         instead interface to general dialog box interface.
11551
11552         * device-x.c:
11553         * device-x.c (compute_x_app_name):
11554         * device-x.c (x_init_device):
11555         * device-x.c (Fx_valid_keysym_name_p):
11556         * device-x.c (Fx_set_font_path):
11557         [6].
11558         [7].
11559
11560         * device.h (wrap_device): New.
11561         First of its kind; meant to replace XSETDEVICE.
11562
11563         * dialog-msw.c: Many file-dialog symbols.
11564
11565         * dialog-msw.c (mswindows_register_popup_frame): New.
11566         * dialog-msw.c (mswindows_is_dialog_msg): New.
11567         For supporting kbd traversal in dialog boxes.
11568
11569         * dialog-msw.c (dialog_proc):
11570         Support hitting ESC in dialogs.
11571
11572         * dialog-msw.c (struct):
11573         Common dialog box errors.
11574
11575         * dialog-msw.c (handle_file_dialog_box): New.
11576         Add file dialog code.
11577
11578         * dialog-msw.c (handle_question_dialog_box):
11579         Redo existing code to support new question dialog syntax.
11580
11581         * dialog-msw.c (console_type_create_dialog_mswindows):
11582         We support new dialog console method.
11583
11584         * dialog-msw.c (syms_of_dialog_mswindows):
11585         * dialog-msw.c (vars_of_dialog_mswindows):
11586         New file dialog symbols, vars.
11587
11588         * dialog-x.c:
11589         * dialog-x.c (maybe_run_dbox_text_callback):
11590         * dialog-x.c (dbox_descriptor_to_widget_value):
11591         * dialog-x.c (x_make_dialog_box_internal):
11592         * dialog-x.c (console_type_create_dialog_x):
11593         Mule-ize entire file.
11594         Redo to support question dialog syntax.
11595         [6].
11596
11597         * dialog.c:
11598         * dialog.c (Fmake_dialog_box_internal):
11599         * dialog.c (syms_of_dialog):
11600         Kill old popup-dialog-box, replace with new primitive.
11601         Just call device method or signal error.
11602
11603         * eldap.c (Fldap_open):
11604         * eldap.c (Fldap_search_basic):
11605         * eldap.c (Fldap_add):
11606         * eldap.c (Fldap_modify):
11607         [1].
11608         [7].
11609
11610         * emacs.c:
11611         * emacs.c (make_arg_list_1):
11612         * emacs.c (make_arg_list):
11613         Mule-ize call to dll_init().
11614         [6].
11615         [8].
11616
11617         * emacs.c (make_argc_argv):
11618         * emacs.c (free_argc_argv):
11619         * emacs.c (init_cmdargs):
11620         * emacs.c (main_1):
11621         * emacs.c (Fkill_emacs):
11622         * emacs.c (Fdump_emacs):
11623         Update comments about what can be used in syms_* etc.
11624         Call init_win32() when necessary.
11625         Fix up MS Win dialog box in kill-buffer to actually work right.
11626         [7].
11627
11628         * eval.c:
11629         * eval.c (For):
11630         * eval.c (Fand):
11631         * eval.c (Fprogn):
11632         * eval.c (Fprog1):
11633         * eval.c (Fprog2):
11634         * eval.c (FletX):
11635         * eval.c (Flet):
11636         * eval.c (condition_case_3):
11637         * eval.c (Feval):
11638         * eval.c (function_argcount):
11639         * eval.c (funcall_lambda):
11640         [1].
11641
11642         * eval.c (type_error): New.
11643         * eval.c (maybe_type_error): New.
11644         * eval.c (continuable_type_error): New.
11645         * eval.c (maybe_continuable_type_error): New.
11646         * eval.c (type_error_with_frob): New.
11647         * eval.c (maybe_type_error_with_frob): New.
11648         * eval.c (continuable_type_error_with_frob): New.
11649         * eval.c (maybe_continuable_type_error_with_frob): New.
11650         New functions for use with structured errors.
11651
11652         * event-Xt.c:
11653         * event-Xt.c (x_event_to_emacs_event):
11654         Buttons are now modifiers too.
11655
11656         * event-Xt.c (emacs_Xt_current_event_timestamp):
11657         Implement new event method.
11658         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11659
11660         * event-msw.c:
11661         * event-msw.c (ntpipe_shove_writer): [5].
11662         * event-msw.c (mswindows_enqueue_mouse_button_event):
11663         * event-msw.c (mswindows_drain_windows_queue):
11664         * event-msw.c (mswindows_wnd_proc): [7].
11665         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11666         * event-msw.c (mswindows_modifier_state):
11667         Throughout: support new button modifiers.
11668
11669         * event-msw.c (emacs_mswindows_current_event_timestamp):
11670         Implement new event method.
11671         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11672
11673         * event-stream.c:
11674         * event-stream.c (event_stream_current_event_timestamp): New.
11675         * event-stream.c (maybe_kbd_translate): New functionality.
11676         * event-stream.c (vars_of_event_stream):
11677         Document new kbd-translate-table functionality.
11678
11679         * event-stream.c (Fcurrent_event_timestamp): New.
11680         New primitive for use in fabricated events.
11681         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11682
11683         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11684
11685         * events.c:
11686         * events.c (Fmake_event):
11687         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11688         [1].
11689         [9].
11690
11691         * events.c (format_event_object): fix gcc warnings.
11692
11693         * events.c (Fevent_timestamp): Document new primitives.
11694
11695         * events.c (TIMESTAMP_HALFSPACE): New.
11696
11697         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11698         comparing timestamps correctly (half-space algorithm).
11699
11700         * events.c (Fevent_modifier_bits): Doc fix.
11701
11702         * events.c (Fevent_modifiers): Major doc addition.
11703         * events.c (event_x_y_pixel_internal): Typo fix.
11704         * events.c (syms_of_events): Declare new primitives.
11705
11706         * events.h:
11707         Update long comment for button modifiers, timestamps.
11708
11709         * events.h (struct event_stream):
11710         New current_event_timestamp method.
11711
11712         * extents.c:
11713         * extents.c (extent_in_region_p):
11714         * extents.c (decode_extent):
11715         * extents.c (Fset_extent_parent):
11716         * extents.c (decode_map_extents_flags):
11717         Fix gcc warnings.
11718         [9].
11719
11720         * extents.c (struct extent_at_arg):
11721         * extents.c (decode_extent_at_flag):
11722         * extents.c (extent_at_mapper):
11723         * extents.c (extent_at_bytind):
11724         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11725         * extents.c (Fextents_at): New primitive. [9].
11726         * extents.c (symbol_to_glyph_layout): [9].
11727         Support new primitive `extents-at'.
11728
11729
11730         * extents.c (get_text_property_bytind):
11731         extent_at_bytind has another arg.
11732         [9].
11733
11734         * extents.c (syms_of_extents): New primitive.
11735
11736         * file-coding.c (Fmake_coding_system): [1].
11737         * file-coding.c (subsidiary_coding_system): fix gcc warning
11738         * file-coding.c (syms_of_file_coding): [2].
11739
11740         * fileio.c (Fexpand_file_name):
11741         * fileio.c (Fsysnetunam):
11742         * fileio.c (Ffile_exists_p):
11743         * fileio.c (Ffile_executable_p):
11744         * fileio.c (Fverify_visited_file_modtime):
11745         Clean up GCPROing.
11746
11747         * fileio.c (syms_of_fileio): [2].
11748
11749         * filelock.c (lock_file_1):
11750         * filelock.c (current_lock_owner):
11751         * filelock.c (lock_if_free):
11752         * filelock.c (lock_file):
11753         * filelock.c (unlock_file):
11754         Clean up GCPROing.
11755
11756         * fns.c (concat): Fix gcc warning.
11757
11758         * fns.c (Fmember):
11759         * fns.c (Fold_member):
11760         * fns.c (Fmemq):
11761         * fns.c (Fold_memq):
11762         * fns.c (memq_no_quit):
11763         * fns.c (Fassoc):
11764         * fns.c (Fold_assoc):
11765         * fns.c (Fassq):
11766         * fns.c (Fold_assq):
11767         * fns.c (assq_no_quit):
11768         * fns.c (Frassoc):
11769         * fns.c (Fold_rassoc):
11770         * fns.c (Frassq):
11771         * fns.c (Fold_rassq):
11772         * fns.c (rassq_no_quit):
11773         * fns.c (Fdelete):
11774         * fns.c (Fold_delete):
11775         * fns.c (Fdelq):
11776         * fns.c (Fold_delq):
11777         * fns.c (delq_no_quit):
11778         * fns.c (Fremassoc):
11779         * fns.c (Fremassq):
11780         * fns.c (remassq_no_quit):
11781         * fns.c (Fremrassoc):
11782         * fns.c (Fremrassq):
11783         * fns.c (remrassq_no_quit):
11784         * fns.c (Freverse):
11785         * fns.c (mapcar1):
11786         [1].
11787
11788         * frame-msw.c (mswindows_init_frame_1):
11789         * frame-msw.c (mswindows_delete_frame):
11790         Register popups with dialog code so keyboard traversing works.
11791
11792         * frame-tty.c (tty_raise_frame_no_select): [1].
11793
11794         * frame-x.c:
11795         * frame-x.c (x_set_frame_text_value):
11796         * frame-x.c (x_set_frame_properties):
11797         * frame-x.c (x_create_widgets):
11798         [7].
11799
11800         * frame.c:
11801         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11802
11803         * frame.h (wrap_frame): New.
11804         Macro like wrap_device.
11805
11806         * general.c:
11807         * general.c (SYMBOL):
11808         * general.c (syms_of_general):
11809         Major reorg.  This is now just a wrapper and symbols themselves
11810         are listed in general-slots.h.
11811
11812         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11813         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11814
11815         * glyphs-msw.c (mswindows_native_layout_instantiate):
11816         Add DS_CONTROL so keyboard traversal will work.
11817
11818         * glyphs-widget.c:
11819         * glyphs-widget.c (syms_of_glyphs_widget):
11820         Move some symbols to general-slots.h.
11821
11822         * glyphs-x.c:
11823         * glyphs-x.c (xbm_instantiate_1):
11824         * glyphs-x.c (x_xbm_instantiate):
11825         * glyphs-x.c (x_xface_instantiate):
11826         * glyphs-x.c (autodetect_instantiate):
11827         * glyphs-x.c (cursor_font_instantiate):
11828         * glyphs-x.c (x_update_widget):
11829         * glyphs-x.c (x_widget_instantiate):
11830         * glyphs.c (bitmap_to_lisp_data):
11831         * glyphs.c (pixmap_to_lisp_data):
11832         [7].
11833
11834         * glyphs.c (syms_of_glyphs):
11835         [2].
11836
11837         * gui-x.c:
11838         * gui-x.c (print_widget_value):
11839         * gui-x.c (menu_separator_style_and_to_external):
11840         * gui-x.c (add_accel_and_to_external):
11841         * gui-x.c (button_item_to_widget_value):
11842         * gui-x.c (gui_items_to_widget_values_1):
11843         * gui-x.c (gui_items_to_widget_values):
11844         * gui-x.c (syms_of_gui_x):
11845         * gui-x.c (vars_of_gui_x):
11846         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11847         [9].
11848
11849         * gui-x.h:
11850         Muleize, prototype changes matching gui-x.c.
11851
11852         * gui.c:
11853         * gui.c (separator_string_p):
11854         * gui.c (gui_item_add_keyval_pair):
11855         * gui.c (make_gui_item_from_keywords_internal):
11856         * gui.c (signal_too_long_error):
11857         * gui.c (parse_gui_item_tree_item):
11858         * gui.c (syms_of_gui):
11859         * gui.c (vars_of_gui):
11860         * gui.h:
11861         menu-no-selection-hook moved here (used by MSWin).
11862         Move some symbols to general-slots.h.
11863         [6].
11864         [9].
11865
11866         * insdel.c (get_buffer_pos_char):
11867         * insdel.c (get_buffer_range_char):
11868         Add GC comments.
11869
11870         * keymap.c (keymap_lookup_directly):
11871         * keymap.c (keymap_store):
11872         * keymap.c (ensure_meta_prefix_char_keymapp):
11873         * keymap.c (describe_map):
11874         * keymap.h:
11875         Support new button modifiers.
11876
11877         * lisp-disunion.h (wrap_object):
11878         * lisp-disunion.h (XSETOBJ):
11879         Rename make_obj to wrap_object.
11880
11881         * lisp-union.h:
11882         * lisp-union.h (make_int):
11883         * lisp-union.h (make_char):
11884         Support wrap_object.
11885
11886         * lisp.h:
11887         * lisp.h (LIST_LOOP):
11888         * lisp.h (EXTERNAL_LIST_LOOP):
11889         * lisp.h (LIST_LOOP_2):
11890         * lisp.h (EXTERNAL_LIST_LOOP_1):
11891         * lisp.h (EXTERNAL_LIST_LOOP_2):
11892         * lisp.h (EXTERNAL_LIST_LOOP_3):
11893         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11894         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11895         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11896         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11897         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11898         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11899         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11900         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11901         * lisp.h (struct Lisp_Symbol):
11902         * lisp.h (maybe_continuable_error_with_frob):
11903         Fix up section comments.
11904         Add new types for char to indicate usage.
11905         Delete symbols auto-generated from general-slots.h.
11906         Add prototypes for structured error functions.
11907         Add long comments describing looping macros and change interface
11908         so that lvalues are automatically declared.
11909         Add NO_DECLARE macro in case callers want to declare lvalues
11910         themselves.
11911
11912         * lread.c (read_syntax_error):
11913         * lread.c (continuable_read_syntax_error):
11914         * lread.c (read_structure):
11915         * lread.c (sequence_reader):
11916         * lread.c (read_list_conser):
11917         * lread.c (read_compiled_function):
11918         Rename syntax_error and continuable_syntax_error to avoid clash
11919         with same-named structured error functions.
11920
11921         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11922         * menubar-msw.c (populate_menu_add_item):
11923         * menubar-msw.c (populate_or_checksum_helper):
11924         [5].
11925         [9].
11926
11927         * menubar-x.c:
11928         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11929         Mule-ize whole file.
11930
11931         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11932
11933         * mule-charset.c (Fmake_charset):
11934         * mule-wnnfns.c (Fwnn_set_param):
11935         [1].
11936
11937         * ntproc.c (create_child):
11938         * ntproc.c (Fwin32_set_current_locale):
11939         Add comments portending doom.
11940
11941         * objects-msw.c:
11942         * objects-msw.c (old_font_enum_callback_2):
11943         * objects-msw.c (font_enum_callback_1):
11944         * objects-msw.c (mswindows_enumerate_fonts):
11945         [5].
11946
11947         * objects-x.c:
11948         * objects-x.c (allocate_nearest_color):
11949         * objects-x.c (x_parse_nearest_color):
11950         * objects-x.c (x_initialize_color_instance):
11951         * objects-x.c (x_print_color_instance):
11952         * objects-x.c (x_finalize_color_instance):
11953         * objects-x.c (x_valid_color_name_p):
11954         * objects-x.c (x_initialize_font_instance):
11955         * objects-x.c (x_print_font_instance):
11956         * objects-x.c (valid_x_font_name_p):
11957         * objects-x.c (truename_via_FONT_prop):
11958         * objects-x.c (truename_via_random_props):
11959         * objects-x.c (truename_via_XListFonts):
11960         * objects-x.c (x_font_truename):
11961         * objects-x.c (x_font_instance_truename):
11962         * objects-x.c (x_font_instance_properties):
11963         * objects-x.c (x_list_fonts):
11964         * objects-x.c (x_find_charset_font):
11965         Mule-ize entire file.
11966         [7].
11967
11968         * objects-x.h:
11969         Mule-verify.
11970
11971         * print.c:
11972         * print.c (std_handle_out_external):
11973         * print.c (debug_print_no_newline):
11974         * print.c (syms_of_print):
11975         Output to all debugger kinds in debug-print.
11976         Fix console-output code under MSWin to actually work.
11977
11978         * process-nt.c (send_signal):
11979         * process-nt.c (nt_create_process):
11980         Use newer Unicode macros.
11981
11982         * process-unix.c (unix_create_process):
11983         * process-unix.c (unix_canonicalize_host_name):
11984         * process-unix.c (unix_open_network_stream):
11985         [7].
11986
11987         * scrollbar-x.c:
11988         Mule-verify.
11989
11990         * search.c (syms_of_search):
11991         [2].
11992
11993         * select-msw.c (mswindows_destroy_selection):
11994         Use LIST_LOOP_2.
11995
11996         * select-x.c (symbol_to_x_atom):
11997         [7].
11998
11999         * select.c (syms_of_select):
12000         [2].
12001
12002         * sound.c (Fplay_sound_file):
12003         [7].
12004
12005         * specifier.c:
12006         * specifier.c (decode_specifier_type):
12007         * specifier.c (Fvalid_specifier_locale_type_p):
12008         * specifier.c (check_valid_locale_or_locale_type):
12009         * specifier.c (decode_locale):
12010         * specifier.c (decode_locale_type):
12011         * specifier.c (decode_locale_list):
12012         * specifier.c (check_valid_domain):
12013         * specifier.c (decode_specifier_tag_set):
12014         * specifier.c (Fcanonicalize_tag_set):
12015         * specifier.c (Fdefine_specifier_tag):
12016         * specifier.c (Fspecifier_tag_predicate):
12017         * specifier.c (check_valid_inst_list):
12018         * specifier.c (check_valid_spec_list):
12019         * specifier.c (decode_how_to_add_specification):
12020         * specifier.c (check_modifiable_specifier):
12021         * specifier.c (specifier_add_spec):
12022         * specifier.c (boolean_validate):
12023         * specifier.c (display_table_validate):
12024         [9].
12025
12026         * specifier.c (syms_of_specifier):
12027         Move some symbols to general-slots.h.
12028         [2].
12029
12030         * symbols.c:
12031         * symbols.c (Fmapatoms):
12032         * symbols.c (Fapropos_internal):
12033         Add GCPROs.
12034
12035         * symbols.c (set_default_buffer_slot_variable):
12036         * symbols.c (set_default_console_slot_variable):
12037         [1].
12038
12039         * symbols.c (defsymbol_massage_name_1):
12040         * symbols.c (defkeyword_massage_name):
12041         * symbols.c (deferror_1):
12042         * symbols.c (deferror):
12043         * symbols.c (deferror_massage_name_and_message):
12044         * symeval.h:
12045         * symeval.h (DEFSYMBOL):
12046         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12047
12048         * symbols.c (syms_of_symbols):
12049         [2].
12050
12051         * symsinit.h:
12052         * symsinit.h (init_win32): New.
12053         Also new is syms_of_dialog_mswindows.
12054
12055         * syswindows.h:
12056         Add new Unicode macros, missing Cygwin wide-char functions,
12057         convenience conversion macros for Qmswindows_tstr, macros for
12058         encapsulating required MSWin <-> Cygwin filename conversions,
12059         prototype for dynamically-extracted (not in NT 3.51) functions.
12060
12061         * toolbar-x.c:
12062         Mule-verify.
12063
12064         * tooltalk.c (Fadd_tooltalk_message_arg):
12065         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12066         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12067         [7].
12068
12069         * tooltalk.c (syms_of_tooltalk):
12070         [2].
12071
12072         * unexnt.c:
12073         * unexnt.c (unexec):
12074         Fix up headers, declaration of unexec() to be more standard.
12075
12076 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12077
12078         * offix.h: Revert change to guard macros - they're used in offix.c!
12079
12080 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12081
12082         * lisp.h: Defsubred Fdelete.
12083
12084         * console-msw.h:  (msprinter_default_printer): Added.
12085
12086         * console-msw.c (msprinter_canonicalize_console_connection):
12087         (msprinter_canonicalize_device_connection): Added.
12088
12089         * device-msw.c (msprinter_default_printer):
12090         (Fmswingows_get_default_printer):
12091         (signal_enum_priner_error):
12092         (Fmswingows_printer_list): Added.
12093
12094 2000-07-19  Martin Buchholz <martin@xemacs.org>
12095
12096         * XEmacs 21.2.35 is released.
12097
12098 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12099
12100         * select-x.c (x_handle_selection_request):
12101         Text selected in xemacs and pasted into xterm failed to appear.
12102         Spelling fixes and cosmetic changes.
12103
12104 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12105
12106         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12107         XEmacs frame (fix for doubling chars in dialog boxes).
12108
12109 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12110
12111         * select.c (select_convert_in, select_convert_out):
12112         Don't call intern() every time.
12113
12114         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12115         * select.c (vars_of_select): Initialise them.
12116
12117 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12118
12119         * select.c (selection-coercible-types): New.
12120
12121         * select.c (own-selection-internal):
12122         * select.c (get-selection-internal):
12123         MULE bug fix - these should default to COMPOUND_TEXT and not
12124         STRING for MULE. I think.
12125
12126         * select.c (select_convert_out): Use selection-coercible-types
12127         to find types that we can attempt to perform coercions on.
12128
12129 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12130
12131         * mule-wnnfns.c:
12132         * mule-canna.c:
12133         Add coding: cookie to identify encoding.
12134
12135         * mule-canna.c (CANNA_mode_keys): make static.
12136         Use proper prototypes, even for functions of no arguments.
12137         Remove external prototype for Fding().
12138
12139         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12140
12141         * select.c (syms_of_select): Add missing DEFSUBR.
12142
12143 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12144
12145         * select.c (get_selection_internal, own_selection_internal):
12146         Make the type default to STRING, rather than placing a nil type
12147         into Vselection_alist.
12148
12149 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12150
12151         * gpmevent.c (tty_selection_exists_p):
12152         * gpmevent.c (tty_own_selection):
12153         Updated parameter lists.
12154
12155 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12156
12157         * select.h (selection-alist): Removed declaration.
12158
12159         * select.h (get_local_selection):
12160         * select.c (get_local_selection):
12161         Made static.
12162
12163         * select.h (convert_selection): Removed declaration.
12164         * select.c (convert_selection): Removed.
12165         This function belongs in Lisp.
12166
12167         * select.h (select_convert_in): Declare.
12168         * select.h (select_convert_out): Declare.
12169         * select.c (select_convert_in): New.
12170         * select.c (select_convert_out): New.
12171         New conversion functions for other files to call.
12172
12173         * select.h (select_notify_buffer_kill): Declare.
12174         * select.c (select_notify_buffer_kill): New.
12175         New functions that get called from kill-buffer.
12176
12177         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12178         X-specific lisp code.
12179
12180         * select.h: Declare some of the lisp-visible functions for
12181         external use.
12182
12183         * select.c (clean_local_selection_data): Removed. This was
12184         a disgusting function, and previously should have been in
12185         select-x.c in any case. The functionality is now provided
12186         in select-convert-from-integer (select.el).
12187
12188         * select.c (available-selection-types): Fixed stupidity where
12189         INTEGER and ATOM got added twice. Also add STRING when we see an
12190         extent.
12191
12192         * select.c (get-selection-internal): Removed symbol stripping. No
12193         longer causes conversion when data comes from the internal cache.
12194
12195         * select.c (syms_of_select): Added new functions.
12196
12197         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12198         error checking - previously this called abort!
12199
12200         * select-x.c (x_own_selection): Changed comment.
12201
12202         * select-x.c (x_handle_selection_request): Use select_convert_out.
12203         Don't mess with selection-alist; it's an internal variable of select.c.
12204
12205         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12206
12207         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12208         rather than messing with selection-alist.
12209
12210         * select-msw.c (mswindows_get_foreign_selection):
12211         Use TO_INTERNAL_FORMAT rather than hacking.
12212
12213 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12214
12215         * process-unix.c (unix_open_multicast_group):
12216         (unix_open_multicast_group): Remove useless casts.
12217
12218 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12219
12220         * sound.c (Fplay_sound): Fix `unused variable' warning.
12221
12222         * emacs.c (main): Use correct type for _environ on SCO5.
12223
12224 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12225
12226         * console.h (own_selection_method):
12227         * console.h (selection_exists_p_method):
12228         * console.h (available_selection_types_method): New.
12229         * console.h (register_selection_data_type_method): New.
12230         * console.h (selection_data_type_name): New.
12231
12232         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12233         function & alist to track GlobalAlloc()'d handles that need
12234         releasing when the clipboard data gets replaced or emptied.
12235
12236         * event-msw.c (mswindows_wnd_proc): Call it.
12237
12238         * lisp.h, general.c (Qappend): New symbol representing a
12239         `how-to-add' mode.
12240
12241         * select.c (own-selection-internal):
12242         * select.c (selection-exists-p):
12243         * select.c (available-selection-types): New.
12244         * select.c (register-selection-data-type): New.
12245         * select.c (selection-data-type-name): New.  New functions to deal
12246         with device-specific selection data formats.
12247         * select.c (selection-converter-out-alist): Renamed.
12248         * select.c (selection-converter-in-alist): New.
12249         * select.c (selection-appender-alist): New.  Added new alists.
12250         * select.c (syms_of_select, vars_of_select): Added new symbols &
12251         variables.
12252         * select.c (get_local_selection): Split.
12253         * select.c: Removed spurious type checking - selections may now be
12254         of any type, not just strings.
12255         * select.c (own-selection-internal):
12256
12257         * select.h, select.c (convert_selection): New. Created
12258         convert_selection() function based on get_local_selection().
12259         * select.h, select.c (QCF_*): New symbols representing mswindows
12260         clipboard formats.
12261         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12262         symbols representing `how-to-add' modes.
12263
12264         * select-msw.c (x_sym_p): New.
12265         * select-msw.c (symbol_to_ms_cf): New.
12266         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12267         symbols & clipboard formats. Can also handle string names.
12268         * select-msw.c (mswindows_own_selection):
12269         * select-msw.c (mswindows_selection_exists_p):
12270         Added `data-type' parameter. Use it.
12271         * select-msw.c (mswindows_available_selection_types): New.
12272         * select-msw.c (mswindows_register_selection_data_type): New.
12273         * select-msw.c (mswindows_selection_data_type_name): New.
12274         * select-msw.c (mswindows_own_selection):
12275         * select-msw.c (mswindows_get_foreign_selection):
12276         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12277         * select-msw.c (console_create_select_mswindows): Added new methods.
12278         * select-msw.c (mswindows_destroy_selection): New.
12279         * select-msw.c (Vhandle_alist): New list.
12280         * select-msw.c (mswindows_own_selection):
12281
12282         * select-x.c (x_own_selection):
12283         * select-x.c (x_selection_exists_p):
12284         * select-x.c: Added some comments about maybe using new
12285         functionality.
12286         * select-x.c (x_own_selection):
12287
12288         * specifier.c: Remove definition of Qappend (now in general.c)
12289         * specifier.c (syms_of_specifier): Remove Qappend.
12290
12291 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12292
12293         * config.h.in: Add socklen_t.
12294
12295         * s/decosf4-0.h: No special compiler flags needed or desired.
12296         In particular, undefine _BSD for DEC OSF 4.0.
12297
12298 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12299
12300         * redisplay-msw.c (msprinter_frame_output_end): Added.
12301         (console_type_create_redisplay_mswindows): Referred the above.
12302
12303         * frame.c (setup_frame_without_minibuffer): Do not create a
12304         default minibuffer frame on a printer device.
12305
12306         * frame-msw.c (apply_dc_geometry): Added.
12307         (msprinter_start_page):
12308         (msprinter_init_frame_3):
12309         (msprinter_eject_page): Use it.
12310
12311         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12312         and removed residual duplex and orientation properties.
12313
12314 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12315
12316         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12317
12318         * unexalpha.c: Remove system prototypes from C sources!
12319
12320 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12321
12322         * eval.c: Remove references to M-x edit-options in DEFUNs for
12323         `defvar' and `defconst'.
12324
12325 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12326
12327         * config.h.in: Remove SMART_INCLUDE hackery.
12328
12329         PostgreSQL hacking:
12330         * config.h.in: Don't use SMART_INCLUDE.
12331
12332         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12333         * inline.c: Simply #include "postgresql.h"
12334         * postgresql.c:
12335         - Don't use SMART_INCLUDE
12336         - Use simply "const".
12337         - Use standard doc string conventions.
12338         - Use correct type for result of PQstatus.
12339
12340 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12341
12342         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12343
12344         C++ compilation changes.
12345         * config.h.in (EXTERN_C): Define.
12346         * config.h.in (not): This is also a C++ keyword.
12347         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12348         * cm.c: Use EXTERN_C.
12349         * redisplay-tty.c: Use EXTERN_C.
12350         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12351
12352 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12353
12354         * general.c: Remove duplicate definition for Qfunction.
12355
12356 2000-07-08  Ben Wing  <ben@xemacs.org>
12357
12358         * device-msw.c (msprinter_init_device):
12359         * device-msw.c (sync_printer_with_devmode):
12360         * device-msw.c (handle_devmode_changes):
12361         * device-msw.c (print_dialog_worker):
12362         * device-msw.c (Fmsprinter_apply_settings):
12363         * device-msw.c (hash_devmode):
12364         * device-msw.c (Fmsprinter_settings_despecialize):
12365         use Qmswindows_tstr, not Qctext.
12366
12367         * vm-limit.c (check_memory_limits):
12368         avoid infinite loop printing warning messages.
12369
12370 2000-07-05  Craig Lanning  <lanning@scra.org>
12371
12372         * Makefile.in.in: Add support for including the Windows resources
12373         when building with the cygwin and mingw targets.
12374
12375         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12376         not set or not correct.
12377         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12378         (init_initial_directory): Don't try to use $PWD on the
12379         WIN32_NATIVE target.
12380
12381         * s\cygwin32.h:
12382         [[Add -mwindows to eliminate console window.]] not required --ben
12383         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12384         (MAIL_USE_POP): removed; now handled by configure.
12385
12386         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12387         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12388         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12389         (MAIL_USE_POP): removed; now handled by configure.
12390         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12391         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12392         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12393         constant string.
12394         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12395         up from <winsock.h> via systime.h.
12396         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12397         (getpagesize): from Dan Holmsand, added.
12398         Added #endif which was left dangling by Ben's mega patch; added
12399         comment to help prevent this in the future.
12400
12401         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12402
12403 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12404
12405         * console-msw.h (struct mswindows_device): Removed unnecessary
12406         cached device geometry values.
12407         Added update_tick and an accessor macro.
12408         (Lisp_Devmode): Added lrecord declaration.
12409         (struct msprinter_device): Contain devmode as a Lisp object.
12410         Added mswindows_get_selected_frame_hwnd();
12411
12412         * console.h (struct console_methods): Indentation nitpicking.
12413
12414         * device-msw.c (mswindows_init_device): Do not initialize geometry
12415         cache. Initialize update tick.
12416         (mswindows_device_system_metrics): Ask the device for its geometry.
12417         (global_free_2_maybe):
12418         (devmode_to_hglobal):
12419         (handle_printer_changes):
12420         (ensure_not_printing):
12421         (print_dialog_worker):
12422         (Fmsprinter_print_setup_dialog):
12423         (Fmsprinter_print_dialog):
12424         (plist_get_margin):
12425         (plist_set_margin):
12426         (Fmsprinter_page_setup_dialog): Added functions.
12427         (sync_printer_with_devmode):
12428         (handle_devmode_changes):
12429         (Fmsprinter_get_settings):
12430         (Fmsprinter_select_settings):
12431         (Fmsprinter_apply_settings):
12432         (allocate_devmode):
12433         (Fmsprinter_settings_copy):
12434         (Fmsprinter_settings_despecialize):
12435         (print_devmode):
12436         (finalize_devmode):
12437         (equal_devmode):
12438         (hash_devmode): Added functions
12439         (syms_of_device_mswindows): Init devmode lrecord class.
12440
12441         * device.h: Added an exfun for find-device.
12442
12443         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12444         geometry; although, recreate the device compatible DC.
12445
12446         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12447         (msprinter_init_frame_3):
12448         (msprinter_frame_property):
12449         (msprinter_internal_frame_property_p):
12450         (msprinter_frame_properties):
12451         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12452         print job properties (will move to device settings).
12453
12454         * lisp.h: Added symbols.
12455
12456         * general.c (syms_of_general): Declared them.
12457
12458         * hash.c (string_hash): Added.
12459
12460         * lrecord.h (lrecord_type): Added devmode lrecord type.
12461
12462 2000-07-02  Mike Sperber <mike@xemacs.org>
12463
12464         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12465         FreeBSD 4.0.
12466
12467 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12468
12469         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12470         integer.
12471
12472 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12473
12474         * data.c (Fstring_to_number): Don't recognize floating point if
12475         base is not 10.
12476
12477 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12478
12479         * glyphs-widget.c (tab_control_query_geometry):
12480         (widget_query_geometry):
12481         (button_query_geometry):
12482         * glyphs.c (text_query_geometry):
12483         Enforce type correctness.
12484
12485 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12486
12487         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12488         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12489
12490 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12491
12492         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12493         conflicts with gcc's fixincluded version of FOO.h.
12494
12495         * glyphs.h (image_instance_geometry): Remove trailing `,'
12496
12497 2000-06-08  Mike Alexander  <mta@arbortext.com>
12498
12499         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12500         (shove_thread): Don't write the same output twice
12501         (make_ntpipe_output_stream): Increase priority of shove thread
12502         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12503         chance to run
12504         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12505         it.
12506
12507 2000-06-12  Ben Wing  <ben@xemacs.org>
12508
12509         * s\mingw32.h (sigset):
12510         * s\windowsnt.h (sigset):
12511         rename msw_ to mswindows_ for consistency with general convention.
12512
12513 2000-06-12  Ben Wing  <ben@xemacs.org>
12514
12515         * console-msw.c:
12516         * console-msw.c (mswindows_get_console_hwnd):
12517         * console-msw.c (mswindows_ensure_console_allocated):
12518         * console-msw.c (mswindows_hide_console):
12519         * console-msw.c (mswindows_show_console):
12520         * console-msw.c (mswindows_ensure_console_buffered):
12521         * console-msw.c (mswindows_output_console_string):
12522         * console-msw.c (mswindows_windows9x_p):
12523         * console-msw.h:
12524         * device-msw.c (mswindows_get_workspace_coords):
12525         * device-msw.c (mswindows_device_system_metrics):
12526         * dialog-msw.c (mswindows_popup_dialog_box):
12527         * event-msw.c (mswindows_wnd_proc):
12528         * frame-msw.c (mswindows_size_frame_internal):
12529         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12530         * menubar-msw.c (displayable_menu_item):
12531         * menubar-msw.c (mswindows_char_is_accelerator):
12532         * nt.c:
12533         * nt.c (mswindows_sigset):
12534         * nt.c (mswindows_sigrelse):
12535         * nt.c (mswindows_sigpause):
12536         * nt.c (mswindows_raise):
12537         * nt.c (timer_proc):
12538         * ntproc.c:
12539         * ntproc.c (find_child_console):
12540         * ntproc.c (sys_kill):
12541         * print.c:
12542         * print.c (std_handle_out_external):
12543         * process-nt.c (find_child_console):
12544         * process-nt.c (send_signal_the_95_way):
12545         * process-nt.c (ensure_console_window_exists):
12546         * process-nt.c (nt_create_process):
12547         * syssignal.h:
12548         rename msw_ to mswindows_ for consistency with general convention.
12549
12550         * emacs.c:
12551         * dumper.c:
12552         include nt.h, not syswindows.h.
12553
12554         * nt.c (mswindows_fstat):
12555         * nt.c (mswindows_stat):
12556         prefix mswindows_ instead of attempting to directly override the
12557         library functions.  fix declarations.
12558
12559         * nt.h:
12560         include syswindows.h.  move some sysdep.h stuff here.
12561
12562         * ntheap.h:
12563         include syswindows.h, not <windows.h>.
12564
12565         * ntplay.c:
12566         clean up headers.
12567
12568         * sysdep.c:
12569         clean up headers.
12570
12571         * sysdep.c (sys_fstat):
12572         * sysdep.c (sys_stat):
12573         call mswindows versions when appropriate.
12574
12575         * sysdep.h:
12576         move mswin decls to nt.h.
12577
12578         * syswindows.h:
12579         add long comment describing appropriate use of the various windows
12580         headers.
12581
12582 2000-06-11  Ben Wing  <ben@xemacs.org>
12583
12584         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12585
12586 2000-06-10  Ben Wing  <ben@xemacs.org>
12587
12588         * Makefile.in.in (release):
12589         Correction to make sure xemacs.exe always dumped when correct.
12590
12591         * alloca.c:
12592         * balloon_help.c:
12593         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12594
12595         * buffer.c (set_buffer_internal):
12596         [[[[2]]]]: Remove HAVE_FEP code.
12597
12598         * buffer.c (init_initial_directory):
12599         [3].
12600
12601         * bytecode.c:
12602         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12603         individual files.
12604
12605         * callproc.c:
12606         * callproc.c (call_process_cleanup):
12607         * callproc.c (Fold_call_process_internal):
12608         * callproc.c (child_setup):
12609         * callproc.c (getenv_internal):
12610         * callproc.c (init_callproc):
12611         * callproc.c (vars_of_callproc):
12612         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12613         __CYGWIN32__ -> CYGWIN.
12614         DOS_NT -> WIN32_NATIVE.
12615         Remove MSDOS support/references, converting to WIN32_NATIVE
12616           where correct.
12617         __MINGW32__ -> MINGW.
12618         Fix windows.h includes.
12619         Remove bogus HAVE_NTGUI.
12620
12621         * config.h.in:
12622         [2].
12623
12624         * console-msw.c:
12625         mswindows_message_outputted added for use in allowing startup
12626         errors on the console to be seen.
12627
12628         * console-msw.c (msw_ensure_console_allocated):
12629         * console-msw.c (msw_output_console_string):
12630         * console-msw.c (DHEADER):
12631         * console-msw.c (DOPAQUE_DATA):
12632         * console-msw.c (DEVENT):
12633         * console-msw.c (DCONS):
12634         * console-msw.c (DCONSCDR):
12635         * console-msw.c (DSTRING):
12636         * console-msw.c (DVECTOR):
12637         * console-msw.c (DSYMBOL):
12638         * console-msw.c (DSYMNAME):
12639         Fix warnings.
12640
12641         * console-stream.c (stream_init_console):
12642         Fix text/binary problems.
12643
12644         * device-msw.c:
12645         * device-msw.c (mswindows_finish_init_device):
12646         * device-msw.c (mswindows_delete_device):
12647         [1].
12648
12649         * device.c (handle_asynch_device_change):
12650         [3].
12651
12652         * dgif_lib.c:
12653         * dgif_lib.c (DGifOpenFileName):
12654         * dgif_lib.c (DGifOpenFileHandle):
12655         * dgif_lib.c (DGifGetLine):
12656         * dgif_lib.c (DGifGetPixel):
12657         Added config.h/lisp.h, fix up includes.
12658         [1].
12659
12660         * dired-msw.c:
12661         [4].
12662
12663         * dired.c:
12664         * dired.c (file_name_completion):
12665         * dired.c (Ffile_attributes):
12666         * dired.c (syms_of_dired):
12667         [1].
12668
12669         * dumper.c:
12670         * dumper.c (pdump_file_unmap):
12671         * dumper.c (pdump_load):
12672         [1].
12673
12674         * editfns.c:
12675         * editfns.c (Ftemp_directory):
12676         * editfns.c (user_login_name):
12677         * editfns.c (Fuser_real_login_name):
12678         * editfns.c (get_home_directory):
12679         [1].
12680
12681         * elhash.c (finish_marking_weak_hash_tables):
12682         [[[[5]]]]: Fix GCC warnings.
12683
12684         * emacs.c:
12685         * emacs.c (mswindows_handle_hardware_exceptions):
12686         * emacs.c (make_arg_list_1):
12687         * emacs.c (main_1):
12688         * emacs.c (Fkill_emacs):
12689         * emacs.c (Fdump_emacs):
12690         [1].
12691         Fix problems with nested crashes, add long comment.
12692
12693         * event-Xt.c (init_event_Xt_late):
12694         [1].
12695
12696         * event-msw.c:
12697         * event-msw.c (mswindows_dde_callback):
12698         * event-msw.c (mswindows_handle_sticky_modifiers):
12699         * event-msw.c (mswindows_wnd_proc):
12700         [1].
12701         [5].
12702
12703         * events.c (character_to_event):
12704         [1].
12705
12706         * fileio.c:
12707         * fileio.c (Ffile_name_directory):
12708         * fileio.c (Ffile_name_nondirectory):
12709         * fileio.c (directory_file_name):
12710         * fileio.c (Fexpand_file_name):
12711         * fileio.c (Fsubstitute_in_file_name):
12712         * fileio.c (Ffile_name_absolute_p):
12713         * fileio.c (check_executable):
12714         * fileio.c (Ffile_readable_p):
12715         * fileio.c (Ffile_accessible_directory_p):
12716         * fileio.c (Ffile_modes):
12717         * fileio.c (Funix_sync):
12718         * fileio.c (vars_of_fileio):
12719         [1]. [4].
12720
12721         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12722
12723         Expand getdefdir defn.
12724         Fix bogus rename() comment.
12725
12726         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12727         to use standard XEmacs include files, e.g. sysfile.h, rather
12728         than system-specific includes.
12729
12730         * fns.c:
12731         * fns.c (Fsubseq):
12732         [5]. [6].
12733
12734         * frame.c (vars_of_frame):
12735         [1].
12736
12737         * getloadavg.c:
12738         * getloadavg.c (getloadavg):
12739         [1]. [6].
12740         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12741         (We don't use it elsewhere in the code; just add a comment.)
12742
12743         * gif_io.c:
12744         [6].
12745         Add config.h.
12746
12747         * glyphs-msw.c:
12748         * glyphs-msw.c (mswindows_resource_instantiate):
12749         [1].
12750
12751         * glyphs-x.c (x_native_layout_instantiate):
12752         [5].
12753
12754         * gui-msw.c (Fmswindows_shell_execute):
12755         [1].
12756
12757         * insdel.c:
12758         [4].
12759
12760         * lisp.h:
12761         [4]. [5].
12762
12763         * lread.c (locate_file_in_directory_mapper):
12764         [1].
12765
12766         * lstream.c:
12767         [4].
12768
12769         * mem-limits.h:
12770         * mem-limits.h (get_lim_data):
12771         [1].
12772
12773         * menubar-msw.c:
12774         [4].
12775
12776         * ndir.h:
12777         [1].
12778
12779         * nt.c:
12780         * nt.c (getwd):
12781         * nt.c (closedir):
12782         * nt.c (rva_to_section):
12783         * nt.c (mswindows_executable_type):
12784         [1]. [6].
12785         Fix closedir() defn.
12786
12787         * nt.h:
12788         [[[[8]]]]: *_OK defs moved to sysfile.h.
12789
12790         * ntproc.c:
12791         [6]. [7].
12792
12793         * objects-x.c:
12794         [4].
12795
12796         * print.c:
12797         * print.c (std_handle_out_external):
12798         [1]. [4].
12799
12800         * process-nt.c:
12801         * process-nt.c (nt_create_process):
12802         [6].
12803         try to fix process quoting somewhat.
12804
12805         * process-unix.c (unix_create_process):
12806         [1].
12807
12808         * process.c:
12809         * process.c (vars_of_process):
12810         Add Vnull_device.
12811
12812         * process.h:
12813         [1].
12814
12815         * realpath.c:
12816         * realpath.c (xrealpath):
12817         [1].
12818
12819         * redisplay-tty.c (init_tty_for_redisplay):
12820         [3].
12821
12822         * redisplay.c:
12823         [4]. [6].
12824
12825         * scrollbar-msw.c:
12826         [4].
12827
12828         * sheap.c:
12829         * sheap.c (more_static_core):
12830         * sheap.c (report_sheap_usage):
12831         [5]. [6].
12832
12833         * signal.c:
12834         * signal.c (alarm_signal):
12835         [1]. [6].
12836
12837         * sound.c:
12838         [6].
12839
12840         * strftime.c:
12841         * strftime.c (zone_name):
12842         [1]. [5].
12843
12844         * symsinit.h (init_sunpro):
12845         [1].
12846
12847         * syscommctrl.h:
12848         commctrl.h not in Cygwin b20.1.
12849
12850         * sysdep.c:
12851         * sysdep.c (endif):
12852         * sysdep.c (sys_subshell):
12853         * sysdep.c (init_baud_rate):
12854         * sysdep.c (emacs_get_tty):
12855         * sysdep.c (emacs_set_tty):
12856         * sysdep.c (tty_init_sys_modes_on_device):
12857         * sysdep.c (init_system_name):
12858         * sysdep.c (sys_open):
12859         * sysdep.c (interruptible_open):
12860         * sysdep.c (sys_fopen):
12861         * sysdep.c (sys_mkdir):
12862         * sysdep.c (sys_rename):
12863         * sysdep.c (get_process_times_1):
12864         [1]. [6].
12865
12866         * sysdep.h:
12867         [1].
12868
12869         * sysdir.h:
12870         * sysdir.h (DIRENTRY_NONEMPTY):
12871         [1]. [6].
12872
12873         * sysdll.c (dll_init):
12874         * sysdll.h:
12875         [1].
12876
12877         * sysfile.h:
12878         [1]. [6]. [8].
12879         added text/binary defs.
12880
12881         * sysfloat.h:
12882         [1].
12883
12884         * sysproc.h:
12885         * sysproc.h (EDESTADDRREQ):
12886         * sysproc.h (poll_fds_for_input):
12887         [1]. [6].
12888
12889         * syspwd.h:
12890         [6].
12891
12892         * syssignal.h:
12893         [1].
12894
12895         * systime.h:
12896         [1]. [6].
12897
12898         * systty.h:
12899         [1].
12900
12901         * syswindows.h:
12902         [1].
12903         Always define WIN32_LEAN_AND_MEAN.
12904
12905         * unexcw.c (unexec):
12906         [5].
12907
12908         * unexec.c:
12909         * unexec.c (copy_text_and_data):
12910         * unexec.c (adjust_lnnoptrs):
12911         [1].
12912
12913         * unexnt.c:
12914         * unexnt.c (_start):
12915         [1].
12916
12917 2000-06-07  Ben Wing  <ben@xemacs.org>
12918
12919         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12920         was used only as a model.  We've long since extracted any useful
12921         logic or code out of this. (I just did an exhaustive search.)
12922
12923         * s\msdos.h: Removed.
12924
12925         * s\windows95.h: Removed.
12926
12927 2000-06-10  Ben Wing  <ben@xemacs.org>
12928
12929         * s\cygwin32.h:
12930         [1]. [5].
12931         Don't use extern with fun defs.
12932
12933         * s\mingw32.h:
12934         [1]. [7].
12935         Remove nt\inc include.
12936         Remove getdisk, getdefdir. (The former is unused, the latter
12937         expanded in fileio.h.)
12938
12939         * s\windowsnt.h:
12940         * s\windowsnt.h (WIN32_NATIVE):
12941         * s\windowsnt.h (HAVE_STRCASECMP):
12942         [1]. [7].
12943         Add long comment about preprocessor changes.
12944         Remove getdisk, getdefdir. (The former is unused, the latter
12945         expanded in fileio.h.)
12946
12947 2000-06-10  Ben Wing  <ben@xemacs.org>
12948
12949         * m\arm.h:
12950         * m\delta.h:
12951         * m\intel386.h:
12952         * m\sequent.h:
12953         * m\template.h:
12954         * m\windowsnt.h:
12955         [1].
12956         Remove bogus/unused NO_SOCK_SIGIO.
12957
12958 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12959
12960         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12961         not an Emchar.
12962
12963 2000-06-04  Mike Sperber <mike@xemacs.org>
12964
12965         * casetab.c (set_case_table): For `set-standard-case-table',
12966         actually deposit the new case tables where the rest of XEmacs can
12967         see them.
12968
12969 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12970
12971         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12972
12973 2000-06-05  Ben Wing  <ben@xemacs.org>
12974
12975         * callproc.c (child_setup): Don't do close_load_descs() under
12976         MS Windows.  Put in a comment explaining why.
12977
12978 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12979
12980         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12981         Toolkit shell" which breaks `kill-compilation' on Windows NT
12982         native, retaining STDERR handling improvements.
12983
12984 2000-06-01  Andreas Jaeger  <aj@suse.de>
12985
12986         * s/s390.h: Support for S390, based on a patch by Martin
12987         Schwidefsky <schwidefsky@de.ibm.com>.
12988
12989 2000-05-30  Andy Piper  <andy@xemacs.org>
12990
12991         * window.c (allocate_window):
12992         (make_dummy_parent):
12993         (Fset_window_configuration): use new hashtable type.
12994
12995         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12996         (struct image_instantiator_methods):
12997         (struct Lisp_Image_Instance): make instance geometry signed.
12998
12999         * glyphs.c (instantiate_image_instantiator):
13000         (image_instance_query_geometry):
13001         (image_instance_layout):
13002         (image_instance_layout):
13003         (query_string_geometry):
13004         (text_query_geometry):
13005         (image_instantiate):
13006         (image_instantiate):
13007         (cache_subwindow_instance_in_frame_maybe):
13008         (subwindow_query_geometry): make instance geometry signed.
13009
13010         * glyphs-widget.c (widget_query_geometry):
13011         (widget_layout):
13012         (button_query_geometry):
13013         (tree_view_query_geometry):
13014         (tab_control_query_geometry):
13015         (layout_query_geometry):
13016         (layout_layout):
13017         (native_layout_layout): make instance geometry signed.
13018
13019 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13020
13021         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13022         constant.
13023
13024         * general.c (syms_of_general): Add Qfull_assoc symbol.
13025
13026         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13027         correctly.
13028         (decode_weak_list_type): Decode full-assoc type.
13029         (encode_weak_list_type): Encode full-assoc type.
13030         (Fmake_weak_list): Update doc string.
13031
13032 2000-05-30  Andy Piper  <andy@xemacs.org>
13033
13034         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13035
13036         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13037         (decode_hash_table_weakness): ditto.
13038         (Fhash_table_weakness): ditto.
13039         (Fhash_table_type): ditto.
13040         (finish_marking_weak_hash_tables): ditto.
13041         (hash_table_weakness_validate): ditto.
13042         (syms_of_elhash): ditto.
13043
13044 2000-05-28  Martin Buchholz <martin@xemacs.org>
13045
13046         * XEmacs 21.2.34 is released.
13047
13048 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13049
13050         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13051         start cache.
13052         (updating_line_start_cache): Gone.
13053         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13054         generic code to force a minimum of 1 line laid out in the
13055         CMOTION_DISP case.
13056
13057 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13058
13059         * glyphs.c (instantiate_image_instantiator): Check for initialized
13060         height & width no longer special cases IMAGE_NOTHING.
13061         (nothing_instantiate): Set height and width of instance.
13062
13063 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13064
13065         * unexelf.c (unexec): Search for ".data" section.
13066         Initialize new_data2_offset from old_data_index.
13067         Remove redundant check for ElfW.
13068
13069 2000-05-23  Andy Piper  <andy@xemacs.org>
13070
13071         * glyphs.c (get_image_instantiator_governing_domain): allow more
13072         specific domains as the governing domain rather than expecting an
13073         exact match. This fixes problems with layouts.
13074
13075 2000-05-22  Andy Piper  <andy@xemacs.org>
13076
13077         * redisplay-output.c (compare_runes): check for non-images
13078
13079         * glyphs.c (set_glyph_dirty_p): ditto.
13080         (update_glyph_cachel_data): ditto.
13081
13082         * glyphs-widget.c (layout_post_instantiate): ditto.
13083         (layout_post_instantiate): ditto.
13084
13085         * event-msw.c (mswindows_wnd_proc): warning removal.
13086
13087 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13088
13089         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13090
13091         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13092
13093         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13094
13095         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13096         (mswindows_executable_type): mingw32 now has enough headers for
13097         this to work.
13098
13099 2000-05-20  Andy Piper  <andy@xemacs.org>
13100
13101         * console-msw.c (mswindows_output_last_error): ; -> ,
13102
13103 2000-05-12  Andy Piper  <andy@xemacs.org>
13104
13105         * console-msw.c (FROB): compare ints with ints.
13106
13107 2000-05-11  Andy Piper  <andy@xemacs.org>
13108
13109         * glyphs-x.c (x_finalize_image_instance): make minimal build
13110         happy.
13111
13112 2000-05-20  Ben Wing  <ben@xemacs.org>
13113
13114         * event-Xt.c:
13115         * event-Xt.c (vars_of_event_Xt):
13116         move modifier-keys-are-sticky to event-stream.c.
13117
13118         * event-msw.c:
13119         * event-msw.c (mswindows_enqueue_mouse_button_event):
13120         * event-msw.c (key_needs_default_processing_p):
13121         * event-msw.c (XEMSW_LCONTROL):
13122         * event-msw.c (mswindows_handle_sticky_modifiers):
13123         * event-msw.c (FROB):
13124         * event-msw.c (clear_sticky_modifiers):
13125         * event-msw.c (output_modifier_keyboard_state):
13126         * event-msw.c (output_alt_keyboard_state):
13127         * event-msw.c (mswindows_wnd_proc):
13128         * event-msw.c (mswindows_modifier_state):
13129         * event-msw.c (emacs_mswindows_handle_magic_event):
13130         implement sticky modifiers.
13131
13132         * event-stream.c:
13133         * event-stream.c (vars_of_event_stream):
13134         move modifier-keys-are-sticky here.
13135
13136         * lisp.h:
13137         add CHECK_FUNCTION.
13138
13139         * rangetab.c:
13140         implement map-range-table.
13141
13142
13143 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13144
13145         * redisplay-tty.c (reset_tty_modes):
13146         (tty_redisplay_shutdown): Adjust argument type to
13147         tty_frame_output_end.
13148
13149 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13150
13151         * eval.c (Fbacktrace): Don't output a line with only right
13152         parenthesis.
13153
13154 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13155
13156         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13157         (Fpq_reset_poll): Ditto.
13158
13159 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13160
13161         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13162
13163 2000-05-16  Ben Wing  <ben@xemacs.org>
13164
13165         * buffer.c:
13166         * buffer.c (dfc_convert_to/from_internal_format):
13167         * buffer.c (reinit_vars_of_buffer):
13168         Fix conversion functions to allow reentrancy.
13169
13170         * console-msw.c:
13171         * console-msw.c (mswindows_output_last_error):
13172         New fun, generally useful -- output a human-readable
13173         version of GetLastError() on the console.
13174
13175         * console-msw.h:
13176         * console-msw.h (struct mswindows_frame):
13177         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13178
13179         * console-stream.c (stream_output_begin):
13180         * console-stream.c (stream_output_end):
13181         * console-stream.c (stream_output_vertical_divider):
13182         * console-stream.c (stream_clear_region):
13183         * console-stream.c (stream_flash):
13184         * console-stream.c (console_type_create_stream):
13185         Delete blank stream methods, not needed.
13186
13187         * console.h (struct console_methods):
13188         Split begin/end methods into window and frame.
13189
13190         * event-msw.c:
13191         * event-msw.c (mswindows_handle_paint):
13192         * event-msw.c (output_alt_keyboard_state):
13193         * event-msw.c (mswindows_wnd_proc):
13194         * event-msw.c (vars_of_event_mswindows):
13195         Comment about problems with ignored-expose.
13196         Define mswindows-debug-events; not really implemented.
13197
13198         * frame-msw.c (mswindows_init_frame_1):
13199         random cleanups.
13200
13201         * glyphs-msw.c:
13202         * glyphs-msw.c (begin_defer_window_pos):
13203         * glyphs-msw.c (mswindows_unmap_subwindow):
13204         * glyphs-msw.c (mswindows_map_subwindow):
13205         * glyphs-msw.c (mswindows_resize_subwindow):
13206         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13207
13208         * glyphs.c (make_image_instance_1):
13209         Fix crash.
13210
13211         * gutter.c (Fredisplay_gutter_area):
13212         Use new begin/end methods.
13213
13214         * lisp.h (Dynarr_new2):
13215         New creation fun.
13216
13217         * redisplay-msw.c:
13218         * redisplay-msw.c (mswindows_frame_output_begin):
13219         * redisplay-msw.c (mswindows_frame_output_end):
13220         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13221         New begin/end methods -- handle DeferWindowPos.
13222
13223         * redisplay-output.c (redisplay_move_cursor):
13224         * redisplay-output.c (redraw_cursor_in_window):
13225         * redisplay-output.c (redisplay_update_line):
13226         * redisplay-output.c (redisplay_output_window):
13227         New begin/end methods.
13228
13229         * redisplay-tty.c:
13230         * redisplay-tty.c (tty_frame_output_begin):
13231         * redisplay-tty.c (tty_frame_output_end):
13232         * redisplay-tty.c (console_type_create_redisplay_tty):
13233         New begin/end methods.
13234
13235         * redisplay-x.c:
13236         * redisplay-x.c (x_window_output_begin):
13237         * redisplay-x.c (x_window_output_end):
13238         * redisplay-x.c (console_type_create_redisplay_x):
13239         New begin/end methods.
13240
13241         * redisplay.c (redisplay_frame):
13242         * redisplay.c (Fredisplay_echo_area):
13243         New begin/end methods.
13244         use MAYBE_DEVMETH for clear_frame; it may not exist.
13245
13246         * window.h (WINDOW_XFRAME):
13247         WINDOW_XFOO macros -- get locale and decode struct pointer.
13248
13249
13250 2000-05-12  Ben Wing  <ben@xemacs.org>
13251
13252         * emacs.c:
13253         * emacs.c (ensure_no_quitting_from_now_on):
13254         * emacs.c (fatal_error_signal):
13255         * emacs.c (mswindows_handle_hardware_exceptions):
13256         * emacs.c (main):
13257         * emacs.c (Fkill_emacs):
13258         * emacs.c (shut_down_emacs):
13259         * emacs.c (assert_failed):
13260         various improvements in fatal error handling.
13261
13262         * eval.c:
13263         move preparing_for_armageddon to emacs.c.
13264
13265         * lisp.h:
13266         declare fatal_error_in_progress.
13267
13268         * print.c:
13269         * print.c (std_handle_out_external):
13270         * print.c (std_handle_out_va):
13271         * print.c (stderr_out):
13272         * print.c (stdout_out):
13273         use console under mswin when no standard output.
13274         don't do code conversion during fatal error.
13275
13276         * scrollbar.c (Fscrollbar_page_up):
13277         * scrollbar.c (Fscrollbar_page_down):
13278         fix missing else.  reindent.
13279
13280 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13281
13282         Emergency fix.
13283
13284         * glyphs.h (GLYPH_CACHEL_DESCENT):
13285         (GLYPH_CACHEL_DESCENT):
13286         (GLYPH_CACHEL_DESCENT):
13287         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13288         used in case these are inline functions.
13289         Use more absurd values to error check.
13290
13291         include window.h for error check functions.
13292
13293 2000-05-11  Ben Wing  <ben@xemacs.org>
13294
13295         * cmdloop.c (Freally_early_error_handler):
13296         Display message box under windows; otherwise, message will disappear
13297         before it can be viewed.
13298
13299         * console-msw.c:
13300         * console-msw.c (Fmswindows_message_box):
13301         * console-msw.c (FROB):
13302         * console-msw.c (syms_of_console_mswindows):
13303         Define new fun `mswindows-message-box'.
13304         #### I will merge this into `popup-dialog-box'; just give me
13305         a bit of time.
13306
13307         * general.c:
13308         * general.c (syms_of_general):
13309         Some new symbols used in `mswindows-message-box'.
13310
13311         * glyphs.c:
13312         * glyphs.c (Fset_image_instance_property):
13313         put warning in this fun.
13314
13315         * glyphs.h:
13316         * glyphs.h (GLYPH_CACHEL_WIDTH):
13317         * glyphs.h (GLYPH_CACHEL_ASCENT):
13318         * glyphs.h (GLYPH_CACHEL):
13319         * glyphs.h (GLYPH_CACHEL_GLYPH):
13320         define error-checking versions to try to catch a bug i've seen --
13321         redisplay gets in an infinite loop because the glyph width of the
13322         continuation glyph is 65535.
13323
13324         * lisp.h:
13325         Extern message-box stuff.
13326
13327         * window.c (allocate_window):
13328         * window.c (make_dummy_parent):
13329         * window.c (Fset_window_configuration):
13330         Use EQUAL not EQ for subwindow caches to make them work a bit
13331         better. (Something is still very broken.)
13332
13333
13334 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13335
13336         * glyphs.c (image_instantiate): Suppress gcc warnings.
13337         (Fmake_image_instance): Fix doc string.
13338         * specifier.c (Fmake_specifier): Ditto.
13339
13340 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13341
13342         * paths.h.in (PATH_LOCK): Removed.
13343         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13344         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13345
13346 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13347
13348         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13349         Document (featurep '(and xemacs 21.02)).
13350
13351 2000-05-09  Ben Wing  <ben@xemacs.org>
13352
13353         * buffer.c (complex_vars_of_buffer):
13354         update modeline-format doc.
13355
13356         * device.h:
13357         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13358
13359         * emacs.c:
13360         timeline of all released versions of Emacs, for use in creating
13361         authorship comments and in synching up.
13362
13363         * glyphs-widget.c (image_instantiator_buttons):
13364         * glyphs-widget.c (image_instantiator_edit_fields):
13365         * glyphs-widget.c (image_instantiator_combo_box):
13366         * glyphs-widget.c (image_instantiator_scrollbar):
13367         * glyphs-widget.c (image_instantiator_progress_guage):
13368         * glyphs-widget.c (image_instantiator_tree_view):
13369         * glyphs-widget.c (image_instantiator_tab_control):
13370         * glyphs-widget.c (image_instantiator_labels):
13371         * glyphs-widget.c (image_instantiator_layout):
13372         * glyphs-widget.c (image_instantiator_native_layout):
13373         rename decode_domain method to governing_domain.
13374
13375         * glyphs.c:
13376         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13377         * glyphs.c (add_entry_to_device_ii_format_list):
13378         make sure we don't put an entry more than once into the list.
13379         * glyphs.c (check_instance_cache_mapper):
13380         *************************************************************
13381         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13382         HAVE BEEN GETTING.
13383         *************************************************************
13384         * glyphs.c (get_image_instantiator_governing_domain):
13385         clean up, expand on new concept of governing domain.
13386         * glyphs.c (instantiate_image_instantiator):
13387         * glyphs.c (allocate_image_instance):
13388         use governing_domain instead of cache_domain in naming.
13389         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13390         * glyphs.c (make_image_instance_1):
13391         * glyphs.c (Fmake_image_instance):
13392         allow for any domain (not just device), and process the
13393         governing domain correctly.  very big doc fix.
13394         * glyphs.c (Fimage_instance_domain):
13395         new primitive, to retrieve the governing domain of an image instance.
13396         * glyphs.c (image_instantiate):
13397         use new governing_domain stuff.  this fixes a crash you could get
13398         by instantiating certain widget glyphs in frame locales. (should
13399         signal an error instead of crashing.)
13400         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13401         * glyphs.c (Fglyphp): clean up doc.
13402         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13403         * glyphs.c (syms_of_glyphs):
13404         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13405         * glyphs.c (image_instantiator_format_create): add some comments about
13406         bogus code.
13407         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13408         for current-display-table. (Apparently Hrjove implemented in 1998 a
13409         design I wrote up in 1996, but didn't update the doc string.)
13410
13411         * glyphs.h: clean up a doc string.
13412         * glyphs.h (governing_domain):
13413         * glyphs.h (struct image_instantiator_methods):
13414         changes for governing_domain stuff.
13415
13416         * gutter.c:
13417         * gutter.c (Fgutter_specifier_p):
13418         * gutter.c (Fgutter_size_specifier_p):
13419         * gutter.c (Fgutter_visible_specifier_p):
13420         * objects.c:
13421         * objects.c (Fcolor_specifier_p):
13422         * objects.c (Ffont_specifier_p):
13423         * objects.c (Fface_boolean_specifier_p):
13424         doc strings moved to make-*-specifier.
13425
13426         * redisplay.c (add_disp_table_entry_runes_1):
13427         * redisplay.c (generate_fstring_runes):
13428         * redisplay.c (screen):
13429         add random comments and doc strings.
13430
13431         * specifier.c:
13432         * specifier.c (Fmake_specifier):
13433         major overhaul of this doc string.
13434
13435         * specifier.c (Fvalid_specifier_domain_p):
13436         comment about the bogosity of image instances being domains.
13437         * specifier.c (decode_domain):
13438         now non-static, used in glyphs.c.
13439         * specifier.c (specifier_instance):
13440         comment about the bogosity of image instances being domains.
13441         * specifier.c (Fgeneric_specifier_p):
13442         move doc string to make-generic-specifier.
13443         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13444         rebackslashify.
13445
13446         * specifier.h:
13447         * specifier.h (DOMAIN_FRAME):
13448         * specifier.h (DOMAIN_LIVE_P):
13449         * specifier.h (DOMAIN_XDEVICE):
13450         rebackslashify.
13451         add comments about problems with these macros.
13452         prototype for decode_domain.
13453
13454         * toolbar.c:
13455         * toolbar.c (Ftoolbar_specifier_p):
13456         move doc string to `make-toolbar-specifier'.
13457
13458         * window.c (window_unmap_subwindows_cache_mapper):
13459         *************************************************************
13460         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13461         HAVE BEEN GETTING.
13462         *************************************************************
13463
13464 2000-05-09  Andy Piper  <andy@xemacs.org>
13465
13466         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13467
13468         * window.c (Fset_window_configuration): reset the frame subwindow
13469         cache and re-initialize the window subwindow caches.
13470
13471         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13472
13473 2000-05-09  Ben Wing  <ben@xemacs.org>
13474
13475         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13476         DWORD.
13477
13478 2000-04-26  Mike Woolley  <mike@bulsara.com>
13479
13480         * ntheap.c: Changed recreate_heap to limit the amount reserved
13481         for the heap to that which is actually available. Also now
13482         displays a message box (with some dignostics) in the event that
13483         it still can't start.
13484
13485 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13486
13487         * callproc.c (Fold_call_process_internal): GCPRO path
13488
13489 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13490
13491         Patch by Bill Perry.
13492
13493         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13494         back data instead of #ifdef.
13495         (Fscrollbar_page_down): ditto.
13496
13497 2000-05-07  Ben Wing  <ben@xemacs.org>
13498
13499         * buffer.h:
13500         Kludge for defining Qmswindows_tstr.
13501
13502         * nt.c:
13503         * nt.c (open_input_file):
13504         * nt.c (open_output_file):
13505         * nt.c (rva_to_section):
13506         * nt.c (mswindows_executable_type):
13507         Move all memory-mapped-file routines here (some were in unexnt.c,
13508         which is bad because they are used by process-nt.c, and unexnt
13509         won't be around when portable dumping).  Synched the above routines
13510         with FSF 20.6.
13511
13512         * nt.h:
13513         Removed ifdef'd out bogus code.
13514         Fixed some prototypes.
13515
13516         * nt.h (file_data):
13517         * nt.h (OFFSET_TO_RVA):
13518         * nt.h (RVA_TO_OFFSET):
13519         * nt.h (RVA_TO_PTR):
13520         Moved the memory-mapped-file structures, macros and prototypes
13521         here, to parallel nt.c.  ntheap.h should really be removed
13522         entirely, and it's a non-portable-dumper specific file.
13523
13524         * ntheap.h (round_to_next):
13525         Moved the memory-mapped-file structures, macros and prototypes
13526         to nt.h.
13527
13528         * ntproc.c (compare_env):
13529         Moved rva_to_section and mswindows_executable_type to nt.c.
13530         Moved compare_env to process-nt.c.
13531         ntproc.c will die, one day.
13532
13533         * ntproc.c (sys_spawnve):
13534         Account for win32_ -> mswindows_.
13535
13536         * process-nt.c:
13537         * process-nt.c (struct nt_process_data):
13538         * process-nt.c (ensure_console_window_exists):
13539         * process-nt.c (compare_env):
13540         * process-nt.c (nt_create_process):
13541         * process-nt.c (nt_kill_process_by_pid):
13542         * process-nt.c (syms_of_process_nt):
13543         * process-nt.c (vars_of_process_nt):
13544         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13545         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13546         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13547         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13548         Move compare_env here from ntproc.c.
13549
13550         * process.c (Fprocess_send_region):
13551         Takes an optional fourth argument, BUFFER, which should fix some
13552         problems with call-process.
13553
13554         * syscommctrl.h:
13555         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13556
13557         * syswindows.h:
13558         Move ICC_BAR_CLASSES to syscommctrl.h.
13559         Add preliminary macros for MSWindows/Mule.  More to come.
13560
13561         * unexnt.c:
13562         * unexnt.c (unexec):
13563         open_output_file moved to nt.c.
13564
13565
13566 2000-05-05  Andy Piper  <andy@xemacs.org>
13567
13568         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13569         instance from the frame cache also since GC may catch up too late
13570         to make frame deletion sane.
13571
13572 2000-05-04  Andy Piper  <andy@xemacs.org>
13573
13574         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13575         (x_finalize_image_instance): ungcpro on deletion.
13576
13577         * glyphs.c (image_instantiator_format_create): give pointers a
13578         query geometry method so that the geometry is at least set.
13579
13580         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13581         initialize layouts if using widgets.
13582
13583 2000-05-03  Andy Piper  <andy@xemacs.org>
13584
13585         * nt.c: remove bogus reference to sysmmsystem.h
13586
13587         * gui-x.c (popup_selection_callback): fix no selection abort.
13588
13589 2000-05-02  Andy Piper  <andy@xemacs.org>
13590
13591         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13592         (mswindows_widget_instantiate): ditto.
13593
13594         * glyphs-widget.c (initialize_widget_image_instance): initialize
13595         children correctly.
13596         (widget_instantiate): cope with children and items in the same
13597         instance.
13598
13599         * glyphs.c (mark_image_instance): cope with children as a first
13600         class member.
13601         (image_instance_equal): ditto.
13602         (image_instance_hash): ditto.
13603         (image_instance_changed): ditto.
13604
13605 2000-04-30  Andy Piper  <andy@xemacs.org>
13606
13607         * glyphs.c (subwindow_query_geometry): new function. Return some
13608         defaults.
13609         (subwindow_instantiate): don't assign dimensions if none have been
13610         given.
13611         (image_instantiator_format_create): add subwindow_query_geometry.
13612         (print_image_instance): cope with layouts as widgets.
13613
13614 2000-04-29  Andy Piper  <andy@xemacs.org>
13615
13616         * frame.c (delete_frame_internal): call
13617         free_frame_subwindow_instance_cache so that all subwindows are
13618         finalized before their parent.
13619         (mark_frame): remove subwindow_cachels.
13620         (Fmake_frame): remove subwindow_cachel manipulation.
13621         (allocate_frame_core): subwindow_instance_cache is a weak list.
13622         (delete_frame_internal): set subwindow_instance_cache to nil.
13623
13624         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13625         finalization safe.
13626         (mswindows_finalize_image_instance): use the device
13627         not the domain as the domain may have died already.
13628
13629         * glyphs-x.c (x_finalize_image_instance): ditto.
13630         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13631         HEIGHT.
13632
13633         * redisplay-output.c (redisplay_unmap_subwindows): update for
13634         subwindow instance cache as a weak list.
13635         (redisplay_unmap_subwindows_maybe): ditto.
13636         (redisplay_unmap_subwindows_except_us): ditto.
13637
13638         * glyphs.c (unmap_subwindow): error checking will check the domain
13639         so don't deal with it here. Don't use cachels anymore.
13640         (map_subwindow): ditto.
13641         (update_subwindow_cachel_data): remove old accessor names.
13642         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13643         (Fresize_subwindow): don't update cachel.
13644         (mark_subwindow_cachels):
13645         (update_subwindow_cachel_data):
13646         (add_subwindow_cachel):
13647         (get_subwindow_cachel_index):
13648         (update_subwindow_cachel):
13649         (reset_subwindow_cachels):
13650         (mark_subwindow_cachels_as_not_updated): deleted.
13651         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13652         subwindow instance to the frame cache.
13653         (find_matching_subwindow): update for subwindow instance cache as
13654         a weak list.
13655         (update_widget_instances): ditto.
13656         (image_instance_type_to_mask):inlined.
13657         (free_frame_subwindow_instance_cache): new function. finalize all
13658         subwindows that are instantiated.
13659
13660         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13661         of cachel information.
13662         (IMAGE_INSTANCE_DISPLAY_X):
13663         (IMAGE_INSTANCE_DISPLAY_Y):
13664         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13665         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13666         (XIMAGE_INSTANCE_DISPLAY_X):
13667         (XIMAGE_INSTANCE_DISPLAY_Y):
13668         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13669         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13670         remove subwindow_cachel structure and function references.
13671         (image_instance_type_to_mask): inline from glyphs.c
13672
13673         * redisplay.c (redisplay_frame): remove subwindow_cachel
13674         references.
13675
13676         * frame.h (struct frame): remove subwindow_cachels.
13677         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13678
13679         * frameslots.h: add subwindow_instance_cache.
13680
13681         * window.c (replace_window): check subwindow cache of replacement.
13682         (window_unmap_subwindows_cache_mapper):
13683         (window_unmap_subwindows): new functions. Unmap all subwindows
13684         cached on this window.
13685         (mark_window_as_deleted): unmap all subwindows.
13686
13687 2000-04-27  Andy Piper  <andy@xemacs.org>
13688
13689         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13690
13691         * glyphs-widget.c (widget_layout): return something.
13692         (layout_layout): return something. Fail if not initialized.
13693         (layout_query_geometry): ditto.
13694         (image_instantiator_native_layout): new function. Initialized the
13695         native layout type.
13696         (widget_instantiate): don't do layout stuff here.
13697
13698         * glyphs.c (instantiate_image_instantiator): reorded calling or
13699         instantiate and post_instantiate with layout in between.
13700         (image_instance_layout): be more selective about deciding whether
13701         the layout has been done or not.
13702
13703         * glyphs.h (struct image_instantiator_methods): return a value
13704         from layout_method.
13705
13706 2000-04-26  Andy Piper  <andy@xemacs.org>
13707
13708         * glyphs.c (allocate_image_instance): make initial width and
13709         height unspecified. Set initialized to 0.
13710
13711         * syscommctrl.h new file. Encapsulates commctrl.h.
13712
13713         * syswindows.h new file. Encapsulates windows.h.
13714
13715         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13716         * nt.c: ditto.
13717         * console-msw.h: ditto.
13718
13719         * redisplay-tty.c (tty_output_display_block): remove layout references.
13720
13721         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13722         window handle rather than just the frame.
13723
13724         * glyphs.c (mark_image_instance): remove layout references.
13725         (print_image_instance): ditto.
13726         (image_instance_equal): ditto.
13727         (image_instance_hash): ditto.
13728         (decode_image_instance_type): ditto.
13729         (encode_image_instance_type): ditto.
13730         (image_instantiate): ditto.
13731         (allocate_glyph): ditto.
13732         (Fimage_instance_height): ditto.
13733         (Fimage_instance_width): ditto.
13734         (update_subwindow): ditto.
13735
13736         * redisplay-x.c (x_output_display_block): recode for layouts as
13737         widgets.
13738
13739         * redisplay-output.c (redisplay_output_layout): recode for layouts
13740         as widgets.
13741         (compare_runes): remove layout references.
13742
13743         * redisplay-msw.c (mswindows_output_display_block): recode for
13744         layouts as widgets.
13745
13746         * glyphs-widget.c (image_instantiator_layout): remove
13747         layout_possible_dest_types.
13748         (layout_possible_dest_types): deleted.
13749
13750         * glyphs.h (image_instance_type): remove layout references.
13751         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13752         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13753         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13754
13755 2000-04-25  Andy Piper  <andy@xemacs.org>
13756
13757         * glyphs-widget.c (image_instantiator_buttons):
13758         (image_instantiator_edit_fields):
13759         (image_instantiator_combo_box):
13760         (image_instantiator_scrollbar):
13761         (image_instantiator_progress_guage):
13762         (image_instantiator_tree_view):
13763         (image_instantiator_tab_control):
13764         (image_instantiator_labels):
13765         (image_instantiator_layout): call default post_instantiate method.
13766         (widget_post_instantiate): new function. Simply lays out the
13767         widgets.
13768
13769         * glyphs.h (struct image_instantiator_methods): add
13770         post_instantiate method.
13771
13772         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13773         method calls.
13774
13775 2000-04-23  Andy Piper  <andy@xemacs.org>
13776
13777         * glyphs.h (struct image_instantiator_methods): add
13778         decode_domain_method.
13779         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13780         derived from the domain.
13781         (IMAGE_INSTANCE_FRAME): new accessor.
13782         (XIMAGE_INSTANCE_FRAME): ditto.
13783
13784         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13785         instead of _SUBWINDOW_FRAME.
13786         (finalize_image_instance): ditto.
13787         (Fimage_instance_foreground): ditto.
13788         (Fimage_instance_background): ditto.
13789         (image_instantiate): ditto.
13790         (update_subwindow_cachel): ditto.
13791         (update_subwindow): ditto.
13792         (unmap_subwindow): ditto.
13793         (map_subwindow): ditto
13794         (subwindow_instantiate): ditto.
13795         * glyphs-msw.c (mswindows_update_widget): ditto.
13796         (mswindows_progress_gauge_instantiate): ditto.
13797         (mswindows_tab_control_update): ditto.
13798         * glyphs-x.c (x_update_widget): ditto.
13799         (x_widget_instantiate): ditto.
13800         (x_tab_control_instantiate): ditto.
13801         (x_tab_control_update): ditto.
13802         * event-msw.c (mswindows_wnd_proc): ditto
13803
13804         * glyphs-widget.c (image_instantiator_layout): use
13805         subwindow_decode_domain.
13806         (image_instantiator_buttons): ditto.
13807         (image_instantiator_edit_fields): ditto.
13808         (image_instantiator_combo_box): ditto.
13809         (image_instantiator_scrollbar): ditto.
13810         (image_instantiator_progress_guage): ditto.
13811         (image_instantiator_tree_view): ditto.
13812         (image_instantiator_tab_control): ditto.
13813         (image_instantiator_labels): ditto.
13814         (image_instantiator_layout): ditto.
13815
13816         * glyphs.c: add instance error checking to many functions.
13817         (instantiate_image_instantiator): decode device from cache_domain.
13818         (image_instantiate): partially rewrite by using
13819         decode_image_instantiator_domain to determine what domain the
13820         instance needs to be cached in.
13821         (decode_image_instantiator_domain): new function. Determine what
13822         domain the image needs to be cached in.
13823         (check_window_subwindow_cache): new error checking function.
13824         (check_instance_cache_mapper): ditto.
13825         (check_image_instance_structure): ditto.
13826         (subwindow_decode_domain): new function. Encodes a window as a
13827         subwindow's cache domain.
13828         (image_instantiator_format_create): use it for text and
13829         subwindows.
13830
13831 2000-04-21  Andy Piper  <andy@xemacs.org>
13832
13833         * glyphs.c (image_instance_device): new function.
13834         (image_instance_frame): new function.
13835         (image_instance_window): new function.
13836         (image_instance_live_p): new function.
13837
13838         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13839         cache to nil.
13840
13841         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13842         (IMAGE_INSTANCE_DOMAIN): new accessor.
13843         (XIMAGE_INSTANCE_DOMAIN): ditto.
13844
13845         * glyphs-x.c (x_finalize_image_instance): device->domain.
13846
13847         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13848         (mswindows_finalize_image_instance): ditto.
13849
13850         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13851         (gif_instantiate): ditto.
13852         (png_instantiate): ditto.
13853         (tiff_instantiate): ditto.
13854
13855         * glyphs.c (instantiate_image_instantiator): use domain rather
13856         than device.
13857         (mark_image_instance): device -> domain.
13858         (print_image_instance): ditto.
13859         (finalize_image_instance): ditto.
13860         (image_instance_equal): ditto.
13861         (allocate_image_instance): ditto.
13862         (Fcolorize_image_instance): ditto.
13863         (query_string_geometry): ditto.
13864         (image_instantiate): ditto
13865         (query_string_font): ditto.
13866         (image_instantiate): ditto.
13867         (update_subwindow): ditto.
13868         (unmap_subwindow): ditto.
13869         (map_subwindow): ditto.
13870         (subwindow_instantiate): ditto.
13871
13872         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13873         (DOMAIN_FRAME): ditto.
13874         (DOMAIN_WINDOW): ditto.
13875         (DOMAIN_LIVE_P): ditto.
13876         (XDOMAIN_DEVICE): ditto.
13877         (XDOMAIN_FRAME): ditto.
13878         (XDOMAIN_WINDOW): ditto.
13879
13880         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13881         a valid specifier domain.
13882
13883 2000-04-19  Andy Piper  <andy@xemacs.org>
13884
13885         * glyphs-widget.c (syms_of_glyphs_widget): remove
13886         widget-callback-current-channel.
13887         (vars_of_glyphs_widget): ditto.
13888         * glyphs.h: ditto
13889
13890         * gui.c (get_gui_callback): revert to previous behaviour.
13891
13892 2000-04-18  Andy Piper  <andy@xemacs.org>
13893
13894         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13895         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13896         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13897
13898         * glyphs.c (image_instance_equal): add margin_width.
13899         (image_instance_hash): ditto.
13900
13901         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13902         (layout_query_geometry): ditto.
13903         (layout_layout): ditto.
13904         (syms_of_glyphs_widget): add margin-width.
13905         (image_instantiator_layout): allow margin-width.
13906
13907         * glyphs.c (update_widget_instances): make a normal function.
13908         (syms_of_glyphs): remove Qupdate_widget_instances.
13909         * glyphs.h: ditto.
13910
13911         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13912         so that we don't corrupt ideas about the last event or
13913         command. Remove widget-callback-current-channel fiddling.
13914         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13915
13916 2000-05-01  Martin Buchholz <martin@xemacs.org>
13917
13918         * XEmacs 21.2.33 is released.
13919
13920 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13921
13922         * make-src-depend: Allow dots in header file name.
13923
13924 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13925
13926         * mule-charset.h (struct charset_lookup): Add
13927         next_allocated_1_byte_leading_byte and
13928         next_allocated_2_byte_leading_byte.
13929         * mule-charset.c: Move above two variables so that those values
13930         will be dumped.
13931
13932 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13933
13934         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13935         when string length is zero.
13936         (find_charsets_in_emchar_string): Ditto.
13937
13938 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13939
13940         * lisp.h: extern Qdialog and Qmenubar.
13941
13942         * gui-x.c: added events.h.
13943                 also fixed typo which made the file uncompilable.
13944
13945         * general.c: Added Qmenubar and Qdialog
13946
13947 2000-04-28  Ben Wing  <ben@xemacs.org>
13948
13949         * frame-msw.c (mswindows_init_frame_1):
13950         * frame-msw.c (mswindows_mark_frame):
13951         * event-msw.c (mswindows_enqueue_dispatch_event):
13952         * console-msw.h:
13953         * console-msw.h (struct mswindows_frame):
13954         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13955         there are now three hash tables for callbacks.
13956         mswindows_enqueue_dispatch_event is no longer static.
13957
13958         * dialog-x.c (maybe_run_dbox_text_callback):
13959         * dialog-x.c (dbox_descriptor_to_widget_value):
13960         switch to new cons3 form for callbacks.
13961
13962         * glyphs-msw.c (mswindows_register_gui_item):
13963         * glyphs-msw.c (mswindows_widget_instantiate):
13964         * glyphs-msw.c (add_tree_item):
13965         * glyphs-msw.c (add_tab_item):
13966         new image instance parameter, so it can be passed to callback-ex.
13967         respect :callback-ex as well as :callback.
13968
13969         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13970         add :callback-ex.
13971
13972         * glyphs.c (print_image_instance):
13973         prettify, e.g. now prints widget type.
13974
13975         * gui-x.h:
13976         certain funs have new image instance parameter.
13977
13978         * gui.c:
13979         * gui.c (get_gui_callback):
13980         * gui.c (gui_item_add_keyval_pair):
13981         * gui.c (gui_item_init):
13982         * gui.c (gui_add_item_keywords_to_plist):
13983         * gui.c (mark_gui_item):
13984         * gui.c (gui_item_hash):
13985         * gui.c (gui_item_equal):
13986         * gui.c (copy_gui_item):
13987         * gui.c (syms_of_gui):
13988         recognize callback-ex in a number of places.
13989         also, fix the annoying "can't get out of yes-no dialog" bug.
13990
13991         * gui.h:
13992         * gui.h (struct Lisp_Gui_Item):
13993         recognize callback-ex in a number of places.
13994
13995         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13996         new parameter in button_item_to_widget_value.
13997
13998         * glyphs-x.c (x_update_widget):
13999         * glyphs-x.c (x_button_instantiate):
14000         * glyphs-x.c (x_button_update):
14001         * glyphs-x.c (x_progress_gauge_instantiate):
14002         * glyphs-x.c (x_edit_field_instantiate):
14003         * glyphs-x.c (x_combo_box_instantiate):
14004         * glyphs-x.c (x_tab_control_instantiate):
14005         * glyphs-x.c (x_label_instantiate):
14006         new image instance parameter in various places.
14007
14008         * event-Xt.c:
14009         * event-Xt.c (enqueue_Xt_dispatch_event):
14010         this fun gets exported.
14011
14012         * gui-msw.c:
14013         * gui-msw.c (mswindows_handle_gui_wm_command):
14014         handle both :callback and :callback-ex, and generate our own
14015         event because it's one of the callback-ex arguments.
14016
14017         * gui-x.c:
14018         * gui-x.c (popup_selection_callback):
14019         handle both :callback and :callback-ex, and generate our own
14020         event because it's one of the callback-ex arguments.
14021         * gui-x.c (button_item_to_widget_value):
14022         * gui-x.c (gui_items_to_widget_values_1):
14023         * gui-x.c (gui_item_children_to_widget_values):
14024         * gui-x.c (gui_items_to_widget_values):
14025         new image instance parameter in various places.
14026
14027         * fns.c (Freplace_list):
14028         fix small typo in doc string.
14029
14030         * lisp.h:
14031         declare enqueue_Xt_dispatch_event.
14032
14033 2000-04-28  Ben Wing  <ben@xemacs.org>
14034
14035         * buffer.c:
14036         * buffer.c (Frecord_buffer):
14037         * buffer.c (syms_of_buffer):
14038         delete record-buffer-hook.
14039
14040         * fns.c:
14041         * fns.c (Freplace_list):
14042         * fns.c (syms_of_fns):
14043         new primitive replace-list.
14044
14045         * frameslots.h:
14046         slot for old buffer-alist.
14047
14048         * lisp.h:
14049         exfun replace-list.
14050
14051         * redisplay.c:
14052         * redisplay.c (redisplay_frame):
14053         * redisplay.c (syms_of_redisplay):
14054         * redisplay.c (vars_of_redisplay):
14055         new hook buffer-list-changed-hook.
14056         call it.
14057
14058 2000-04-27  Ben Wing  <ben@xemacs.org>
14059
14060         * extents.h: extern in_modeline_generation.
14061
14062         * redisplay.c (generate_formatted_string_db): set
14063         in_modeline_generation.
14064
14065         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14066         flags if in modeline generation.  otherwise frame-modified-tick
14067         is ticked far too often.
14068         Declare in_modeline_generation.
14069
14070 2000-04-26  Ben Wing  <ben@xemacs.org>
14071
14072         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14073         option.
14074         (vars_of_emacs): add quick-build as an error-checking option.
14075         A bit kludgy, but there doesn't seem much point in creating
14076         a real var for this.
14077
14078         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14079
14080 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14081
14082         * redisplay.h (struct display_line): Add a new variable,
14083         line_continuation.
14084
14085         * redisplay.c (create_text_block): Set dl->line_continuation if
14086         the line continues.
14087         (create_string_text_block): Ditto.
14088         (regenerate_window_incrementally): Use line_continuation instead
14089         of searching continuation glyph.
14090         (add_margin_runes): Call add_glyph_rune.
14091         (add_glyph_rune): Handle margin glyph.
14092
14093 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14094
14095         * filelock.c (fill_in_lock_file_name):
14096         ANSIfy.
14097         Check for IS_ANY_SEP instead of '/'.
14098         (lock_file_1):
14099         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14100         Never check errno without first seeing that system call failed.
14101         (unlock_file): Add GCPRO.
14102         (Flock_buffer): Fix docstring.
14103         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14104
14105 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14106
14107         * sysdep.c (get_pty_max_bytes):
14108         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14109         strings longer than 252 bytes.
14110
14111         * md5.c: Unconditionally include ANSI header <limits.h>
14112
14113         * glyphs-x.c (convert_EImage_to_XImage):
14114         * lisp-union.h (union Lisp_Object):
14115         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14116
14117 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14118
14119         * filelock.c (current_lock_owner): Remove unused variable o, p.
14120
14121 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14122
14123         * callint.c: Remove multiply defined symbol Qlet
14124         (syms_of_callint): ditto.
14125
14126 2000-04-14  Andy Piper  <andy@xemacs.org>
14127
14128         * general.c (syms_of_general): add last-command, this-command, let
14129         and funcall.
14130
14131         * lisp.h: declare various symbols.
14132
14133         * glyphs.h: declare Qwidget_callback_current_channel;
14134
14135         * glyphs-widget.c (syms_of_glyphs_widget): add
14136         Qgui_callback_current_channel.
14137         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14138
14139         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14140         widget-callback-current-channel when invoking the interactive
14141         arg. Also bind last-command and next-command when invoking the
14142         widget updates.
14143         * gui-x.c (popup_selection_callback): ditto.
14144
14145         * gui.c (get_gui_callback): massage args so that we are always
14146         calling eval. This allows us to add our own variable bindings
14147         outside.
14148
14149         * glyphs-x.c (x_button_instantiate): use
14150         gui_items_to_widget_values since this is GC safe.
14151         (x_progress_gauge_instantiate): ditto.
14152         (x_edit_field_instantiate): ditto.
14153         (x_label_instantiate): ditto.
14154
14155         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14156         (emacs_Xt_event_widget_focus_out): new function
14157         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14158         focus.
14159         (emacs_Xt_event_add_widget_actions): new function. add focus
14160         functions as actions.
14161         (init_event_Xt_late): use it.
14162
14163 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14164
14165         * event-stream.c (Fdispatch_event): Doc fix.
14166
14167 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14168
14169         * postgresql.c: Remove all references to PQsetenv*.
14170
14171         * postgresql.h: Remove references to PGsetenvHandler object.
14172         * lrecord.h (lrecord_type): Ditto.
14173
14174 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14175
14176         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14177         real_heigh and real_width members, and accessor macros for these.
14178
14179         * glyphs-msw.c (init_image_instance_geometry): New function.
14180         (init_image_instance_from_dibitmap): Use it.
14181         (mswindows_resource_instantiate): Use it.
14182         (init_image_instance_from_xbm_inline): Use it.
14183         (mswindows_initialize_image_instance_mask): Use real bitmap
14184         geometry.
14185         (mswindows_create_resized_bitmap): Ditto.
14186         (mswindows_create_resized_mask): Ditto.
14187
14188         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14189         and bitmap to their surface size.
14190
14191 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14192
14193         * process-unix.c (unix_send_process): Guard against process MIA
14194         after Faccept_process_output.
14195
14196 2000-04-11  Ben Wing  <ben@xemacs.org>
14197
14198         * eval.c (unbind_to_hairy): fix brokenness introduced by
14199         nanosecond speed improvements.
14200
14201 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14202
14203         * sunplay.c (init_device): To play sounds correctly, the device
14204         apparently needs to be initialized at least once by XEmacs.  Make
14205         it so.
14206
14207 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14208
14209         * redisplay.c (add_margin_runes): Add text image glyph
14210           handling.
14211
14212 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14213
14214         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14215         gcc is newer than 2.5.
14216
14217 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14218
14219         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14220
14221         * fns.c (size_bit_vector):
14222         * alloc.c (size_vector):
14223         (make_vector_internal):
14224         (make_bit_vector_internal):
14225         (sweep_bit_vectors_1):
14226         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14227
14228 2000-04-06  Andy Piper  <andy@xemacs.org>
14229
14230         * gmalloc.c (malloc): undo previous change.
14231         (malloc): ditto.
14232         (free): ditto.
14233         (realloc): ditto.
14234
14235 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14236
14237         * line-number.c (buffer_line_number): Revert to former version.
14238
14239 2000-04-06  Andy Piper  <andy@xemacs.org>
14240
14241         * gmalloc.c (malloc): add error checking.
14242         (malloc): ditto.
14243         (free): ditto.
14244         (realloc): ditto.
14245
14246         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14247         button_item_to_widget_value arg.
14248
14249         * glyphs-x.c (x_button_instantiate): add extra
14250         button_item_to_widget_value arg.
14251         (x_progress_gauge_instantiate): ditto.
14252         (x_edit_field_instantiate): ditto.
14253         (x_label_instantiate): ditto.
14254
14255         * gui-x.c (gui_items_to_widget_values_1): add extra
14256         button_item_to_widget_value arg.
14257         (button_item_to_widget_value): add extra menu_item_p arg.
14258
14259         * gui-x.h: change signature of button_item_to_widget_value.
14260
14261         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14262         button_item_to_widget_value arg.
14263
14264 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14265
14266         * buffer.h (struct buffer): auto_save_modified should be long.
14267
14268 2000-04-05  Andy Piper  <andy@xemacs.org>
14269
14270         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14271         type.
14272         (button_query_geometry): give a little more room so that athena
14273         buttons fit.
14274
14275 2000-04-05  Andy Piper  <andy@xemacs.org>
14276
14277         * faces.c (complex_vars_of_faces): The widget face should inherit
14278         the font of the gui-element face.
14279
14280 2000-04-04  Andy Piper  <andy@xemacs.org>
14281
14282         * glyphs-x.c (x_button_update): new function. unconditionally
14283         update a button's state when the instance is dirty.
14284         (image_instantiator_format_create_glyphs_x): add x_button_update.
14285         (x_widget_instantiate): remove old resize cruft.
14286
14287 2000-04-02  Andy Piper  <andy@xemacs.org>
14288
14289         * frame.c (change_frame_size_1): The introduction of gutters means
14290         that we need to allow 0 as a potential frame dimension.
14291
14292 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14293
14294         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14295         image glyph if allow_cursor.
14296         (add_hscroll_rune): Don't allow cursor to border glyph.
14297         (create_text_block): Ditto.
14298
14299         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14300         text not in buffer.
14301         (redisplay_output_layout): Call ensure_face_cachel_complete for
14302         text image glyph.
14303
14304
14305 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14306
14307         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14308
14309         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14310         not in buffer
14311
14312         * redisplay-tty.c (tty_output_display_block): Delete the routine
14313         for text image glyph
14314         * redisplay-x.c (x_output_display_block): ditto
14315         * redisplay-msw.c (mswindows_output_display_block): ditto
14316
14317 2000-02-02  Mike Alexander  <mta@arbortext.com>
14318
14319         Note: Some of these were committed by accident as part of other
14320         patches.
14321
14322         * regex.c (regex_compile): Avoid compiler warnings.
14323
14324         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14325
14326         * nt.h: Declare term_ntproc correctly.
14327
14328         * nt.c: Remove incorrect declaration of get_home_directory which
14329         is declared correctly in lisp.h.
14330
14331         * keymap.c (get_keyelt): Avoid compiler warnings.
14332         (raw_lookup_key_mapper): Avoid compiler warnings.
14333
14334         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14335
14336         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14337
14338         * filemode.c (mode_string): Avoid compiler warnings.
14339
14340         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14341         avoid warning.
14342
14343         * events-mod.h: Undef some things that winuser.h defines differently.
14344
14345         * data.c (Faset): Avoid compiler warnings.
14346
14347         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14348
14349 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14350
14351         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14352         Fall through to simple beep on error.
14353         Replace "extern" by real header file.
14354
14355         * linuxplay.c: Use nativesound.h
14356         (play_sound_data): Return error code. Be less verbose on error.
14357
14358         * sunplay.c: Use nativesound.h
14359         (play_sound_data): Return error code. Be less verbose on error.
14360
14361         * ntplay.c: Use nativesound.h
14362         (play_sound_data): Return fake error code
14363
14364         * sgiplay.c: Use nativesound.h
14365         (play_sound_data): Return error code
14366
14367         * hpplay.c: Use nativesound.h, partially implement
14368         new error code. Break compilation until finished.
14369         (play_sound_data): error code.
14370
14371         * nativesound.h (play_sound_file):
14372           (play_sound_data): Prototype in new header.
14373
14374 2000-03-31  Andy Piper  <andy@xemacs.org>
14375
14376         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14377         for toggle and radio buttons.
14378         (image_instantiator_buttons): use it.
14379
14380 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14381
14382         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14383         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14384         found. Scrollbar event probably belonged to some old config.
14385
14386 2000-03-31  Andy Piper  <andy@xemacs.org>
14387
14388         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14389         than 1.
14390         (initialize_widget_image_instance): default layout to
14391         LAYOUT_HORIZONTAL rather than 0.
14392         (widget_instantiate): reverse the item list at the end rather than
14393         every iteration.
14394         (layout_layout): re-code for the border text at the front of the
14395         item list rather than at the end.
14396         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14397         provided by the user.
14398         (widget_query_geometry): comment.
14399
14400 2000-03-30  Andy Piper  <andy@xemacs.org>
14401
14402         * glyphs-widget.c (image_instantiator_layout): allow standard
14403         widget keywords in layouts.
14404
14405         * gutter.c (output_gutter): cope with nil gutter contents.
14406
14407         * frame.c (Fset_frame_properties): add gutter docs.
14408
14409 2000-03-29  Andy Piper  <andy@xemacs.org>
14410
14411         * toolbar-msw.c (TBSTYLE_FLAT): add.
14412         (mswindows_output_toolbar): minor fiddling.
14413
14414 2000-03-29  Andy Piper  <andy@xemacs.org>
14415
14416         * gutter.c (output_gutter): force gutter size recalculation if
14417         what we are trying to display won't fit.
14418         (update_gutter_geometry): new function. A per-gutter version of
14419         update_frame_gutter_geometry.
14420         (update_frame_gutter_geometry): use it.
14421         (redraw_exposed_gutter): add extra debugging output.
14422
14423 2000-03-28  Mike Alexander  <mta@arbortext.com>
14424
14425         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14426         (pdump_file_unmap): Implement it on Windows
14427         (pdump_file_get): Save alocated handles for pdump_file_unmap
14428
14429 2000-03-28  Andy Piper  <andy@xemacs.org>
14430
14431         * gui.c (get_gui_callback): treat Quit specially.
14432
14433 2000-03-27  Andy Piper  <andy@xemacs.org>
14434
14435         * glyphs.c (image_instantiate): be careful to check in the same
14436         way we assigned.
14437
14438 2000-03-27  Didier Verna  <didier@xemacs.org>
14439
14440         * config.h.in: define the proper SMART_INCLUDE macro.
14441         handle renaming of `foo_h_path' to `foo_h_file'.
14442
14443         * database.c: ditto.
14444
14445         * emacs.c: ditto.
14446
14447         * linuxplay.c: ditto.
14448
14449         * terminfo.c: ditto.
14450
14451         * tooltalk.h: ditto.
14452
14453 2000-03-27  Andy Piper  <andy@xemacs.org>
14454
14455         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14456         gets updated whenever the face might have changed.
14457
14458 2000-03-26  Mike Alexander  <mta@arbortext.com>
14459
14460         * dumper.c (pdump_resource_free): Fix the comment.
14461
14462 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14463
14464         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14465
14466 2000-03-22  Mike Alexander  <mta@arbortext.com>
14467
14468         * dumper.c: Include Windows headers on Windows
14469         (pdump_resource_free): Add a body to the function
14470         (pdump_load): exe_name -> exe_path and add some comments.
14471
14472 2000-03-25  Mike Alexander  <mta@arbortext.com>
14473
14474         * gui.c (copy_gui_item_tree): Return a value in all cases
14475
14476 2000-03-21  Didier Verna  <didier@xemacs.org>
14477
14478         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14479         lwlib/config.h.in.
14480         (SMART_INCLUDE): new macro.
14481         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14482         the proper location.
14483
14484         * postgresql.c: use it.
14485
14486         * inline.c: ditto.
14487
14488 2000-03-24  Andy Piper  <andy@xemacs.org>
14489
14490         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14491         do this.
14492
14493 2000-03-24  Andy Piper  <andy@xemacs.org>
14494
14495         * redisplay-output.c (compare_runes): use image_instance_changed
14496         to detect changes. Do not depend on glyphs_changed, only depend on
14497         dirtiness.
14498          (redisplay_output_layout): add debug messages.
14499         (compare_runes): ditto.
14500
14501         * glyphs.h: declare new functions.
14502         (struct Lisp_Image_Instance): remove percent and associated
14503         accessors.
14504
14505         * gui.h: declare new copying functions.
14506
14507         * gui.c (copy_gui_item_tree): new function.
14508         (copy_gui_item): new function.
14509         (gui_item_id_hash): revert to standard hash.
14510         (gui_item_hash): ditto.
14511         (gui_item_hash_internal): deleted.
14512         (mark_gui_item): mark value.
14513         (gui_item_add_keyval_pair): add value.
14514         (gui_item_init): ditto.
14515         (gui_add_item_keywords_to_plist): ditto.
14516         (gui_item_equal): ditto.
14517         (syms_of_gui): add Q_value.
14518
14519         * glyphs-x.c (x_progress_gauge_update): use pending items and
14520         value for setting the state.
14521         (x_update_widget): don't set items from pending here.
14522
14523         * glyphs-widget.c (update_widget): update items here.
14524         (progress_gauge_set_property): use items for storing value. Put
14525         new value in pending items.
14526
14527         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14528         items for new value. Convert percent -> value.
14529         (mswindows_tab_control_update): don't update items here.
14530
14531         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14532         (update_subwindow): ditto.
14533         (image_instance_changed): new function. Compare hash values and
14534         past and present widget items.
14535         (image_instantiate): We more careful about where we instantiate
14536         things.
14537         (image_instantiate): add error checking.
14538
14539         * gutter.c (syms_of_gutter): use -hook.
14540
14541 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14542
14543         * console-tty.c (Fset_console_tty_input_coding_system): Use
14544         Qkeyboard.
14545         (Fset_console_tty_output_coding_system): Use Qterminal.
14546         (tty_init_console): Use Qkeyboard and Qterminal.
14547
14548 2000-03-21  Ben Wing  <ben@xemacs.org>
14549
14550         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14551         From Mike Alexander <mta@arbortext.com>.
14552
14553 2000-03-21  Ben Wing  <ben@xemacs.org>
14554
14555         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14556         process brokenness.  Proper implementation to come.
14557         * callproc.c:
14558         Rename call-process-internal to old-call-process-internal.
14559         New impl. in process.el.
14560
14561 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14562
14563         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14564
14565 2000-03-20  Andy Piper  <andy@xemacs.org>
14566
14567         * glyphs.c (full_list_hash): make hashes of the same elements in
14568         different orders return different values.
14569
14570 2000-03-20  Martin Buchholz <martin@xemacs.org>
14571
14572         * XEmacs 21.2.32 is released.
14573
14574 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14575
14576         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14577         (DFC_MALLOC_USE_CONVERTED_DATA):
14578         Add aliasing-safe casts to allow use with char* or unsigned char*
14579         lvalues.
14580
14581         * eldap.c (Fldap_open):
14582         (Fldap_search_basic):
14583         (Fldap_add):
14584         (Fldap_modify):
14585         Make C++-compilable.
14586         Make sure GCPRO'ed variables are initialized.
14587         Use temp variables to avoid repeated calls to Flength.
14588
14589 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14590
14591         * sysfile.h:
14592         Make sure PATH_MAX is always defined.
14593         Include limits.h for PATH_MAX.
14594         Deprecate use of MAXPATHLEN.
14595
14596 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14597
14598         * emacs.c: Add reinit_vars_of_fileio.
14599         * symsinit.h: Add reinit_vars_of_fileio.
14600         * fileio.c (reinit_vars_of_fileio): New.
14601         * fileio.c (Fmake_temp_name):
14602         Initialize temp_name random number from microseconds to make
14603         collisions even less likely.  Initialize always at process startup
14604         time.  (make-temp-name) used to return the same file name twice in
14605         a row when PDUMP.
14606         Random stylistic fiddling.
14607         Comment fixes.
14608
14609 2000-03-20  Andy Piper  <andy@xemacs.org>
14610
14611         * glyphs.c (image_instantiate): allow text glyphs to be
14612         instantiated in the minibuffer window.
14613
14614 2000-03-19  Andy Piper  <andy@xemacs.org>
14615
14616         * glyphs.c (image_instance_hash): be careful about which items we
14617         hash on.
14618
14619         * glyphs-widget.c (tab_control_set_property): record into pending
14620         items rather than the actual items.
14621
14622         * glyphs-x.c (x_update_widget): use pending items to update with.
14623
14624         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14625         to update with.
14626
14627         * glyphs.c (mark_image_instance): mark pending items.
14628
14629         * window.c (Fset_window_configuration): record the buffer.
14630         (Fselect_window): totally revert previous change which breaks many
14631         things.
14632
14633 2000-03-18  Andy Piper  <andy@xemacs.org>
14634
14635         * glyphs-msw.c (mswindows_tab_control_update): force selected
14636         item.
14637
14638         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14639         window domain cache, otherwise we get inconsistencies at
14640         startup. There is something fishy at startup which can lead to the
14641         minibuffer being the selected window when the gutter content is
14642         instantiated.
14643
14644         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14645         gcpros.
14646         (parse_gui_item_tree_children): ditto.
14647         (parse_gui_item_tree_item): ditto.
14648
14649         * glyphs.c (Fupdate_widget_instances): return something.
14650
14651 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14652
14653         * window.c (Fselect_window): Undo 2000-03-17 change.
14654
14655 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14656
14657         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14658         against v7.0 libraries.  Insta-coredump city until the postgres
14659         folks fix it.
14660
14661 2000-03-17  Andy Piper  <andy@xemacs.org>
14662
14663         * faces.c (complex_vars_of_faces): don't give the widget face an
14664         inherited background pixmap.
14665
14666         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14667         selected item.
14668
14669         * event-stream.c (Fdispatch_non_command_events): return something.
14670
14671         * gutter.c (output_gutter): use widget face.
14672         (clear_gutter): ditto.
14673
14674         * NEWS: adjust again.
14675
14676         * window.c (Fselect_window): make sure this runs to completion to
14677         avoid oddities with Fset_window_configuration.
14678         (Fcurrent_window_configuration): in general do not save the
14679         minibuffer as the selected window.
14680
14681         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14682
14683 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14684
14685         * emacs.c (Frunning_temacs_p): Revert previous patch.
14686         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14687
14688 2000-03-16  Andy Piper  <andy@xemacs.org>
14689
14690         * glyphs-x.c (x_tab_control_update): if no widget values then
14691         return.
14692
14693         * NEWS: update for new features.
14694
14695         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14696         synthetic event to the native system.
14697         (reinit_vars_of_event_Xt): set force_event_pending to
14698         emacs_Xt_force_event_pending.
14699
14700         * events.h (struct event_stream): add force_event_pending.
14701
14702         * specifier.c (recompute_one_cached_specifier_in_window): add
14703         comment.
14704
14705         * redisplay.c (redisplay_frame): don't call
14706         update_frame_subwindows. Reset subwindow cachels when
14707         subwindows_changed, removing this was an optimization too far.
14708
14709         * redisplay-output.c (compare_runes): reorganize so that we catch
14710         glyph changes when we want them. Set optimize_output when this
14711         would help layouts.
14712         (redisplay_output_layout): remove frame_really_changed, use
14713         optimize_output instead.
14714
14715         * redisplay-msw.c (mswindows_output_display_block): reset
14716         optimize_output after outputting a glyph.
14717         * redisplay-x.c (x_output_display_block): ditto.
14718         * redisplay-tty.c (tty_output_display_block): ditto.
14719
14720         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14721         functions.
14722         (gutter_specs_changed): do specific gutter positions.
14723         (top_gutter_specs_changed): new function. Only update the
14724         specified gutter specs.
14725         (bottom_gutter_specs_changed): ditto.
14726         (left_gutter_specs_changed): ditto.
14727         (right_gutter_specs_changed): ditto.
14728
14729         * gui.c (gui_item_hash_internal): new function, does a real hash.
14730         (gui_item_id_hash): use it.
14731         (gui_item_hash): hash the eval'ed gui_item.
14732
14733         * gui-x.c (popup_selection_callback): send an eval event to call
14734         Fupdate_widget_instances.
14735
14736         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14737         to call Fupdate_widget_instances.
14738
14739         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14740         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14741
14742         * glyphs.c: (update_frame_subwindows): deleted.
14743         (Fupdate_widget_instances): new function for updating the dirty
14744         state of widgets that might have changed.
14745         (syms_of_glyphs): add Qupdate_widget_instances.
14746         (full_list_hash): hash a list completely.
14747         (image_instance_hash): use it for items and properties.
14748
14749         * frame-msw.c (mswindows_size_frame_internal): remove unused
14750         variable.
14751
14752         * faces.h (struct face_cachel): fix comment.
14753
14754         * event-stream.c (Fdispatch_non_command_events): new
14755         function. Process non-command events, forcing an event cycle
14756         beforehand.
14757         (syms_of_event_stream): declare.
14758         (event_stream_force_event_pending): new function. Force an event
14759         on the native event queue so that an event cycle will occur next
14760         time we check.
14761
14762         * event-msw.c:
14763         (struct ntpipe_shove_stream):
14764         (mswindows_enqueue_dispatch_event):
14765         (mswindows_dequeue_dispatch_event):
14766         (mswindows_cancel_dispatch_event):
14767         (mswindows_pump_outstanding_events):
14768         (mswindows_drain_windows_queue):
14769         (mswindows_handle_paint):
14770         (mswindows_wnd_proc):
14771         (mswindows_key_to_emacs_keysym):
14772         (get_process_input_waitable):
14773         (emacs_mswindows_delete_stream_pair): re-indent file.
14774         (mswindows_need_event): do not process further fds if the windows
14775         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14776         fixes the 100% cpu problem.
14777         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14778
14779 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14780
14781         * alloc.h: New.
14782         * dumper.h: New.
14783         * dumper.c: New.
14784
14785         * emacs.c: Moved dump file searching to dumper.c.
14786         (Frunning_temacs_p): Fixed.
14787
14788         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14789         last_lrecord_type_index_assigned.
14790
14791 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14792
14793         * symsinit.h: Added reinit parameter to init_console_stream
14794         declaration.
14795
14796         * lisp.h: Added file parameter to pdump_load declaration.
14797
14798         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14799         support.  Added dump file searching.
14800
14801         * config.h.in: Added EMACS_PROGNAME.
14802
14803         * console-stream.c (init_console_stream): Fix reinitialisation
14804         when running from temacs.
14805
14806         * alloc.c (pdump): Add id support.
14807         (pdump_load): Add file parameter and signature/id support.
14808
14809         * Makefile.in.in: Add full pdump support.
14810
14811 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14812
14813         * postgresql.c: Update documentation to reflect latest code
14814         status.
14815         (print_result): Show tuple counts in printed representation when
14816         appropriate.
14817         (Fpq_put_nbytes): MULE-ize.
14818         (Fpq_get_line_async): Ditto.
14819
14820 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14821
14822         * postgresql.c (Fpq_lo_import): Fix return value.
14823         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14824
14825 2000-03-13  Ben Wing  <ben@xemacs.org>
14826
14827         * alloc.c (pdump_load):
14828         Fix compile warning under mswin.
14829
14830 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14831
14832         * postgresql.c: Mule-ization, bug fixes.
14833         Use PG_CODING to encapsulate coding system name changes.
14834         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14835         (pg-coding-system): Create.
14836
14837         (Fpq_conn_defaults): Mule-ize.
14838         (Fpq_connectdb): Mule-ize & bug fix.
14839         (Fpq_connect_start): Mule-ize.
14840         (Fpq_set_client_encoding): Mule-ize.
14841         (Fpq_finish): Document `DEAD' connection status.
14842         (Fpq_clear): Ditto.
14843         (Fpq_pgconn): Mule-ize.
14844         (Fpq_exec): Mule-ize & bug fix.
14845         (Fpq_send_query): Ditto.
14846         (Fpq_get_result): Ditto.
14847         (Fpq_res_status): Mule-ize.
14848         (Fpq_result_error_message): Mule-ize.
14849         (Fpq_ntuples): fix comments.
14850         (Fpq_fname): Mule-ize.
14851         (Fpq_fnumber): Mule-ize.
14852         (Fpq_ftype): fix comments.
14853         (Fpq_get_value): Mule-ize.
14854         (Fpq_cmd_status): Ditto.
14855         (Fpq_cmd_tuples): Ditto.
14856         (Fpq_oid_value): Ditto.
14857         (Fpq_notifies): Ditto.
14858         (Fpq_lo_import): Ditto.
14859         (Fpq_lo_export): Ditto.
14860         (Fpq_get_line): Ditto.
14861         (Fpq_put_line): Mule-ize and bug fix.
14862         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14863
14864 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14865
14866         * postgresql.c (vars_of_postgresql): Mule-ize.
14867         (Fpq_conn_defaults): Ditto.
14868
14869 2000-03-12  Ben Wing  <ben@xemacs.org>
14870
14871         * alloc.c (Fmake_byte_code):
14872         * alloc.c (debug_string_purity_print):
14873         * alloc.c (pdump_backtrace):
14874         * alloc.c (pdump_get_indirect_count):
14875         * alloc.c (pdump_register_sub):
14876         * alloc.c (pdump_register_object):
14877         * alloc.c (pdump_register_struct):
14878         * alloc.c (pdump_dump_data):
14879         * alloc.c (pdump_reloc_one):
14880         Minor cleanups.
14881
14882         * console-msw.c:
14883         * console-msw.c (GetConsoleHwnd):
14884         * console-msw.c (msw_hide_console):
14885         * console-msw.c (msw_show_console):
14886         * console-msw.c (msw_ensure_console_buffered):
14887         * console-msw.c (msw_output_console_string):
14888         * console-msw.c (console_type_create_mswindows):
14889
14890         a) Added functions to manipulate the console window for use with
14891         shell support.
14892
14893         b) Added support for writing text to the console, which is now
14894         used under Windows when xemacs is not being run non-interactively,
14895         to write text that would otherwise be destined for stdout because
14896         under these circumstances, text written to stdout tends to
14897         disappear and not be seen.
14898
14899         * console-msw.h:
14900         * event-Xt.c:
14901         * event-Xt.c (x_event_to_emacs_event):
14902         * event-Xt.c (describe_event_window):
14903         * events-mod.h (XEMACS_MOD_CONTROL):
14904         * events.c:
14905         * events.c (Fmake_event):
14906         * events.c (character_to_event):
14907         * events.c (event_to_character):
14908         * events.c (format_event_object):
14909         * events.c (Fevent_modifiers):
14910         * events.h:
14911         * events.h (struct key_data):
14912         * events.h (struct button_data):
14913         * events.h (struct misc_user_data):
14914         * frame-x.c (Fcde_start_drag_internal):
14915         * frame-x.c (Foffix_start_drag_internal):
14916         * gpmevent.c (Freceive_gpm_event):
14917         * keymap.c:
14918         * keymap.c (bucky_sym_to_bucky_bit):
14919         * keymap.c (control_meta_superify):
14920         * keymap.c (make_key_description):
14921         * keymap.c (keymap_lookup_directly):
14922         * keymap.c (create_bucky_submap):
14923         * keymap.c (keymap_store):
14924         * keymap.c (define_key_check_and_coerce_keysym):
14925         * keymap.c (define_key_parser):
14926         * keymap.c (define_key_alternate_name):
14927         * keymap.c (Fdefine_key):
14928         * keymap.c (raw_lookup_key_mapper):
14929         * keymap.c (struct map_keymap_unsorted_closure):
14930         * keymap.c (map_keymap_unsorted_mapper):
14931         * keymap.c (map_keymap_sort_predicate):
14932         * keymap.c (map_keymap_sorted):
14933         * keymap.c (accessible_keymaps_mapper_1):
14934         * keymap.c (where_is_recursive_mapper):
14935         * keymap.c (describe_map_mapper):
14936         * keymap.c (describe_map_sort_predicate):
14937         * keymap.c (describe_map):
14938         * keymap.c (complex_vars_of_keymap):
14939         And a number of other files, the key modifier preprocessor
14940         constants that xemacs uses have names that conflict with constants
14941         defined under MS Windows for other purposes, so they were renamed
14942         to begin with the prefix XEMACS_. The variables that hold such
14943         modifiers were changed to consistently be of type int to fix
14944         various compile warnings.
14945
14946         * console.c (complex_vars_of_console):
14947         * device.c:
14948         * device-msw.c:
14949         * device-msw.c (mswindows_finish_init_device):
14950         * device-msw.c (msw_get_workspace_coords):
14951         * device-msw.c (mswindows_device_system_metrics):
14952         and various other files, added support for a new
14953         device property called offset-workspace which returns the position
14954         of the upper left corner of the workspace area and goes along with
14955         the existing size-workspace property.
14956
14957         * dialog-msw.c:
14958         * dialog-msw.c (push_bufbyte_string_as_unicode):
14959         * dialog-msw.c (mswindows_popup_dialog_box):
14960         Added support for XEmacs-style accelerator specifications in
14961         button text.  Note: I didn't add support for this under X Windows,
14962         and somebody needs to do this.
14963
14964         * dialog.c:
14965         * dialog.c (Fpopup_dialog_box):
14966         Documented the support for accelerators that was just mentioned.
14967
14968         editfns.c (get_home_directory): Changed behavior under Windows
14969         when HOME not defined; former behavior was irretrievably broken.
14970
14971         * emacs.c:
14972         * emacs.c (main_1):
14973         * emacs.c (main):
14974         * minibuf.c (clear_echo_area_internal):
14975         * minibuf.c (echo_area_append):
14976         * print.c:
14977         * print.c (std_handle_out_external):
14978         * print.c (std_handle_out_va):
14979         * print.c (fatal):
14980         * print.c (write_string_to_stdio_stream):
14981         * print.c (output_string):
14982         * print.c (debug_print):
14983         * print.c (debug_backtrace):
14984         * print.c (debug_short_backtrace):
14985         Cleaned up the code that prints text to stdout so that this can be
14986         changed to output into a console window instead under MS Windows,
14987         as described above.
14988
14989         * eval.c:
14990         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14991         * eval.c (internal_catch):
14992         * eval.c (unwind_to_catch):
14993         * eval.c (throw_or_bomb_out):
14994         * eval.c (condition_case_1):
14995         * eval.c (signal_1):
14996         * eval.c (check_error_state_sanity):
14997         * eval.c (call_with_suspended_errors_1):
14998         * eval.c (call_with_suspended_errors):
14999         * eval.c (reinit_vars_of_eval):
15000         Added code to catch throw loops and check for a pesky bug that may
15001         be gone now.
15002
15003         * event-msw.c:
15004         * event-msw.c (key_needs_default_processing_p):
15005         * event-msw.c (mswindows_wnd_proc):
15006         * event-msw.c (mswindows_modifier_state):
15007         * event-msw.c (emacs_mswindows_quit_p):
15008         * event-msw.c (vars_of_event_mswindows):
15009         a) Added support for using the alt key to select menu items as is
15010         standard under MS Windows.  This is controlled using the variable
15011         menu-accelerator-enabled, just like under X Windows.  There is an
15012         option on the options menu to turn this support on.  I really
15013         think that it should be on by default under Windows, but I'm not
15014         going to make this change yet.
15015
15016         b)  Added support for dynamic display size changes under Windows.
15017
15018         * event-stream.c:
15019         * event-stream.c (maybe_echo_keys):
15020         * event-stream.c (Fnext_event):
15021         * event-stream.c (command_builder_find_leaf):
15022         * event-stream.c (lookup_command_event):
15023         * event-stream.c (execute_command_event):
15024         * event-stream.c (pre_command_hook):
15025         * event-stream.c (post_command_hook):
15026         * event-stream.c (syms_of_event_stream):
15027         * event-stream.c (vars_of_event_stream):
15028         * event-stream.c (complex_vars_of_event_stream):
15029         * events.h (struct command_builder):
15030
15031         a) Tried to clean up a little bit the horribly written x-specific
15032         accelerator code that crept into this file.  I moved this code
15033         into menubar-x.c where it belongs. I also needed to move the
15034         command builder structure into the file events.h because it is
15035         accessed directly by this accelerator code.  What I didn't do, but
15036         which should be done at some point, is to properly abstract this
15037         code using device methods instead of the kludgy way that it
15038         currently hooks into the event code.
15039
15040         b) Added the lisp variables this-command-properties and
15041         last-command- properties, which should be used to synchronize two
15042         adjacent commands in preference to playing games with the variable
15043         this-command, which is typically what happens.
15044
15045         c) Added some slightly nasty code to hook into the lisp support
15046         for shifted- motion-key selection.  This is actually necessary for
15047         somewhat complicated reasons, which are described in
15048         simple.el. (NB: I think the proper thing would be to have the code
15049         that calls the pre and post command hooks also call out to generic
15050         lisp functions in simple.el, where all built-in stuff could be
15051         added.  I will think about this more.)
15052
15053         * event-unixoid.c (poll_fds_for_input):
15054         * lread.c (readchar):
15055         * redisplay-tty.c (tty_clear_frame):
15056         * redisplay-x.c (x_get_gc):
15057         * signal.c (interrupt_signal):
15058         And a whole bunch of other files: fixed up places that printed
15059         directly to stderr to instead call the function stderr_out so that
15060         the changes I made under Windows work correctly.
15061
15062         * filemode.c (mode_string):
15063         Warning fixes.
15064
15065         * frame-msw.c:
15066         * frame-msw.c (mswindows_size_frame_internal):
15067         Fixed the computation of frame size and position to keep the frame
15068         within the workspace area, rather than within the physical
15069         dimensions of the screen, so that the frame doesn't overlap window
15070         manager decorations, such as the start menu and toolbar, typically
15071         at the bottom of the screen.
15072
15073         * frame.c (vars_of_frame):
15074         Changed the default frame title format under MS Windows to consist
15075         of buffername-XEmacs, which is standard under MS Windows.  I think
15076         it might be a good idea to change this everywhere because I think
15077         it is superior to the current frame title format, but this is the
15078         kind of change that is likely to cause some people to get annoyed,
15079         so I'm not making it.
15080
15081         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15082
15083         * gui-msw.c (mswindows_handle_gui_wm_command):
15084         Fixed compile warnings.
15085
15086         * gui-x.c:
15087         * gui-x.c (strdup_and_add_accel):
15088         * gui-x.c (button_item_to_widget_value):
15089         * gui-x.h:
15090         Added code to automatically put an accelerator onto the beginning
15091         of menu items that don't have one as is now the standard, and is
15092         described more later.  Also fixed things so that the menu item
15093         name can be an evaluated expression, again a new standard.
15094
15095         * gui.c:
15096         * gui.c (gui_item_add_keyval_pair):
15097         * gui.c (make_gui_item_from_keywords_internal):
15098         * gui.c (gui_add_item_keywords_to_plist):
15099         * gui.c (gui_item_accelerator):
15100         * gui.c (gui_name_accelerator):
15101         * gui.c (gui_item_included_p):
15102         * gui.c (gui_item_display_flush_left):
15103         * gui.c (gui_item_display_flush_right):
15104         * gui.c (parse_gui_item_tree_item):
15105         * gui.c (parse_gui_item_tree_children):
15106         * gui.c (parse_gui_item_tree_list):
15107         Mule-ized.  Cleanup.  GCPRO addition.
15108
15109         * line-number.c (buffer_line_number):
15110         * lisp.h:
15111         * lisp.h (EMACS_INT_MAX):
15112         Added the manifest constant EMACS_INT_MIN corresponding to the
15113         existing constant EMACS_INT_MAX.  This is partially to fix compile
15114         warnings under Windows, and partly for cleanliness.
15115
15116         * menubar-msw.c:
15117         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15118         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15119         * menubar-msw.c (displayable_menu_item):
15120         * menubar-msw.c (populate_menu_add_item):
15121         * menubar-msw.c (populate_or_checksum_helper):
15122         * menubar-msw.c (populate_menu):
15123         * menubar-msw.c (update_frame_menubar_maybe):
15124         * menubar-msw.c (prune_menubar):
15125         * menubar-msw.c (msw_char_is_accelerator):
15126         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15127         * menubar-msw.c (mswindows_handle_wm_command):
15128         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15129         * menubar-msw.c (mswindows_handle_wm_initmenu):
15130         * menubar-msw.c (mswindows_update_frame_menubars):
15131         * menubar-msw.c (mswindows_free_frame_menubars):
15132         * menubar-msw.c (mswindows_popup_menu):
15133         Fixed a bug in handling accelerators where an extra character
15134         would be displayed in the menu item.  Also generalized the
15135         function displayable_menu_item because it is now used by the
15136         dialog box code as well.  And finally, added code in the functions
15137         that create the menubar to extract a list of accelerators for the
15138         top level menubar, which is used in the event code to determine
15139         whether a particular alt-key combination should be used to invoke
15140         a menu item, or should be passed through to access the standard
15141         XEmacs keymap binding for this key combination.
15142
15143         Much needed GCPROing.
15144
15145         * menubar-x.c:
15146         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15147         * menubar-x.c (menu_item_descriptor_to_widget_value):
15148         * menubar-x.c (restore_in_menu_callback):
15149         * menubar-x.c (x_popup_menu):
15150         * menubar-x.c (menu_move_up):
15151         * menubar-x.c (menu_move_down):
15152         * menubar-x.c (menu_move_left):
15153         * menubar-x.c (menu_move_right):
15154         * menubar-x.c (menu_select_item):
15155         * menubar-x.c (command_builder_operate_menu_accelerator):
15156         * menubar-x.c (menu_accelerator_junk_on_error):
15157         * menubar-x.c (command_builder_find_menu_accelerator):
15158         * menubar-x.c (Faccelerate_menu):
15159         * menubar.h:
15160         Moved a whole bunch of code here that was previously in
15161         event-stream.c as described above.  There is also code connected
15162         to the new standard of adding an accelerator to the beginning of
15163         menu items that don't have one as described above and below.
15164
15165         * menubar.c:
15166         * menubar.c (menu_parse_submenu_keywords):
15167         * menubar.c (Fmenu_find_real_submenu):
15168         * menubar.c (Fnormalize_menu_item_name):
15169         * menubar.c (syms_of_menubar):
15170         * menubar.c (vars_of_menubar):
15171         * menubar.c (complex_vars_of_menubar):
15172
15173         a) Cleaned up a bunch of documentation and improved it.
15174
15175         b) XEmacs now automatically adds an accelerator onto the beginning
15176         of any menu items that don't have one.  I did this because there
15177         will inevitably be some menu items on the main menubar that don't
15178         have accelerators on them because the package that adds that
15179         particular menu item hasn't yet been fixed up to have accelerators
15180         in them and it looked rather strange to have some items with and
15181         some items without accelerators, especially since even in items
15182         without accelerators, you can, at least under windows, still
15183         access the item through an accelerator corresponding to the first
15184         character in the item's name.  If people don't like this behavior,
15185         I can add a variable to turn it off optionally, but I'm not sure
15186         this is a good idea because we really do need to have accelerators
15187         on all of the menu items, and if a package doesn't like the
15188         accelerators being put on the first character, then it should put
15189         the accelerators where they belong.
15190
15191         c) I made a behavior change, which is that the descriptor that
15192         specifies the text of the menu item, which formerly was just a
15193         string, can now also be an evaluated expression.  This makes this
15194         descriptor parallel with all of the others, which could also be
15195         evaluated expressions.  This also obviates the need for the
15196         keyword :label, which was previously listed in the documentation
15197         as unimplemented, and which was for the same purpose.
15198
15199         d) GCPROing.
15200
15201         * ntproc.c:
15202         * ntproc.c (new_child):
15203         * ntproc.c (sys_spawnve):
15204         * ntproc.c (find_child_console):
15205         * ntproc.c (sys_kill):
15206         Fixed compile warnings.  By the way, this file should really go
15207         away entirely, and this will happen as soon as Kirill makes his
15208         final round of process cleanups, which affect the function
15209         call-process.
15210
15211         * process-nt.c:
15212         * process-nt.c (struct nt_process_data):
15213         * process-nt.c (find_process_from_pid):
15214         * process-nt.c (send_signal_the_nt_way):
15215         * process-nt.c (enable_child_signals):
15216         * process-nt.c (find_child_console):
15217         * process-nt.c (send_signal_the_95_way):
15218         * process-nt.c (nt_finalize_process_data):
15219         * process-nt.c (ensure_console_window_exists):
15220         * process-nt.c (nt_create_process):
15221         * process-nt.c (nt_kill_child_process):
15222         * process-nt.c (nt_kill_process_by_pid):
15223         * process-nt.c (nt_open_network_stream):
15224         * process-nt.c (vars_of_process_nt):
15225         Copied over code from Emacs 20.5 to correctly send signals to sub-
15226         processes under Windows 95.  Also added code to automatically
15227         create and hide console window when a sub-process is created under
15228         Windows 95, which obviates the need for the separate runemacs.exe
15229         executable, and finally implemented some variables that were
15230         implemented in Emacs 20.5, but previously not in XEmacs.  These
15231         include mswindows- start-process-share-console and
15232         mswindows-start-process-inherit-error-mode. (Both of these only
15233         apply to Windows 95.)
15234
15235         * regex.c (regex_compile): Fixed a compile warning.
15236
15237         * select-msw.c:
15238         * select-msw.c (mswindows_own_selection):
15239         * select-msw.c (mswindows_get_foreign_selection):
15240         * select-msw.c (mswindows_disown_selection):
15241         * select-msw.c (console_type_create_select_mswindows):
15242         * select-msw.c (syms_of_select_mswindows):
15243         Cleaned up the file and implemented the device method
15244         selection_exists_p, which had accidentally been left out.  Also
15245         removed four lisp functions that were remnants from before the
15246         time when the selection code was properly device abstracted.
15247         These functions are no longer needed because there are generic
15248         equivalents, and because they were added recently and don't exist
15249         in FSF Emacs, I don't think there's any problem with just deleting
15250         them.
15251
15252         * sysdep.c:
15253         * sysdep.c (sys_subshell):
15254         Fixed a compile warning, although in this case there's probably
15255         something wrong with this code, and it ought to be looked into
15256         more thoroughly by somebody who understands it.
15257
15258         * window.c:
15259         * window.c (Fwindow_text_area_height):
15260         * window.c (Fwindow_width):
15261         * window.c (Fwindow_full_width):
15262         * window.c (Fwindow_pixel_width):
15263         * window.c (debug_print_window):
15264         * window.c (syms_of_window):
15265         Added functions window-text-area-height and window-full-width,
15266         which are functions for returning various width and height
15267         characteristics of a window. (One of these functions is necessary
15268         for making the file dialog box work correctly, and the other one
15269         was added for completeness.)  Also added a table to the
15270         documentation for window-height which describes the entire scheme
15271         for accessing width and height characteristics of a window.
15272
15273 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15274
15275         * nt.c (fstat): Added a comment for another problem with
15276         non-encapsulated [f]stat(), reported by Adrian Aichner
15277         <aichner@ecf.teradyne.com>.
15278
15279 2000-03-11  Andy Piper  <andy@xemacs.org>
15280
15281         * window.c (make_dummy_parent): initialize subwindow instance
15282         cache.
15283         (Fset_window_configuration): zero extent_modiff.
15284
15285 2000-03-10  Andy Piper  <andy@xemacs.org>
15286
15287         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15288         more changes can be triggered.
15289         (Fredisplay_frame): ditto.
15290         (Fredraw_device): ditto.
15291         (Fredisplay_device): ditto.
15292         (redisplay_frame): make non-static.
15293         (redisplay_frame): call update_frame_gutter_geometry outside of
15294         display proper.
15295
15296         * gutter.h: declare update_frame_gutter_geometry.
15297
15298         * redisplay.h: declare redisplay_frame.
15299
15300         * gutter.c (update_frame_gutter_geometry): move geometry changes
15301         in update_frame_gutters here. Geometry changes can only occur
15302         outside of redisplay.
15303         (update_frame_gutters): remove geometry change code.
15304         (Fredisplay_gutter_area): make sure that we are in display when we
15305         update and that we have flushed any size changes.
15306
15307 2000-03-11  Andy Piper  <andy@xemacs.org>
15308
15309         * alloc.c (pdump_dump_data): remove i & count shadows.
15310
15311 2000-02-27  Mike Alexander  <mta@arbortext.com>
15312
15313         * sysdep.h: Declare pdump_read_file
15314
15315         * sysdep.c (pdump_read_file): New function
15316
15317         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15318         dump data
15319
15320 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15321
15322         * lrecord.h: add `lrecord_type_pgsetenv'.
15323
15324 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15325
15326         * symsinit.h: declare (vars|syms)_of* functions.
15327         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15328
15329 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15330
15331         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15332
15333         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15334         GCCs.
15335
15336         * emacs.c (main_1): Call postgres initialization code.
15337
15338         * postgresql.h: New file.  PostgreSQL RDBMS support.
15339         * postgresql.c: New file.
15340
15341 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15342
15343         * redisplay-output.c (redisplay_output_display_block): Disable
15344         redundant code.
15345
15346 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15347
15348         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15349         (Fcanna_henkan_next): Ditto.
15350         (Fcanna_bunsetu_henkou): Ditto.
15351         (Fcanna_henkan_kakutei): Ditto.
15352         (Fcanna_henkan_end): Ditto.
15353         (Fcanna_henkan_quit): Ditto.
15354         (Fcanna_henkan_next): Set retun value correctly.
15355         (c2mu): Use unsigned char instead of signed char.
15356
15357 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15358
15359         * emacs.c (main_1): Always call syms_of_gui.
15360         * inline.c: include gui.h
15361
15362 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15363
15364         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15365         converted to Lisp_Object.
15366         (Qtop_bottom): New variable.
15367         (syms_of_redisplay): Initialize it.
15368         * redisplay.h (Vvisible_bell): Ditto.
15369         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15370         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15371         only flash top and bottom.
15372
15373 2000-03-08  Andy Piper  <andy@xemacs.org>
15374
15375         * buffer.c (Frename_buffer): record new buffer name the right way.
15376
15377 2000-03-08  Andy Piper  <andy@xemacs.org>
15378
15379         * glyphs.c (update_subwindow): increase hash depth so that widget
15380         items get picked up properly.
15381
15382         * redisplay-output.c (compare_runes): increase hash depth so that
15383         widget items get picked up properly.
15384
15385 2000-03-08  Andy Piper  <andy@xemacs.org>
15386
15387         * gutter.c (output_gutter): add some debug.
15388
15389         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15390         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15391         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15392
15393         * redisplay-output.c (compare_runes): use display_hash to
15394         determine if glyphs really are not the same.
15395
15396         * glyphs.c (update_subwindow): check display_hash to see if
15397         anything really needs to be updated. If not then do
15398         nothing. Record the display_hash after updating.
15399         (image_instance_equal): compare the image_instance face also.
15400
15401 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15402
15403         * redisplay.h: Fix comment style.
15404
15405 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15406
15407         * consle-msw.h (struct mswindows_frame):
15408         Added new member paint_pending to indicate whether a WM_PAINT
15409         magic event has been queued for this frame.
15410
15411         * event-msw.c (mswindows_drain_windows_queue):
15412         Don't queue a WM_PAINT magic event if one is already queued.
15413         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15414
15415         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15416
15417 2000-03-07  Didier Verna  <didier@xemacs.org>
15418
15419         * dired.c: #include `regex.h' after `sysfile.h'.
15420
15421 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15422
15423         * sound.c (init_nas_sound): Fix compiler warning.
15424
15425         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15426         (FREE_STRUCT_P):
15427         (MARK_STRUCT_AS_FREE):
15428         (MARK_STRUCT_AS_NOT_FREE):
15429         Make `gcc -fstrict-aliasing' work properly.
15430
15431 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15432
15433         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15434         (mswindows_delete_device): Call CoUnnitialize().
15435
15436         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15437
15438 2000-02-25    <CraigL@DyCon.com>
15439
15440         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15441         <errno.h>.
15442
15443         * sysdep.c: This extern declaration for environ prevents MinGW
15444         from finding the variable in CRTDLL.DLL.
15445
15446         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15447         windows headers.
15448         (SHGFI_EXETYPE): ..
15449         (WM_MOUSEWHEEL): ..
15450         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15451         definitions.
15452         (MMRESULT): Removed, now defined in cygwin's windows headers.
15453         (TIMECAPS): ..
15454         (uid_t,gid_t,pid_t,ssize_t): ..
15455         (_timeb): Removed, MinGW defines both _timeb and timeb.
15456         (HAVE_H_ERRNO): Added.
15457         (HAVE_TZNAME): Added, configure is not detecting this.
15458
15459 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15460
15461         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15462         * syntax.c (syntax_match): Use it.
15463
15464         * cmds.c: Import auto-fill-chars from FSF Emacs.
15465         (Vauto_fill_chars): New variables.
15466         (internal_self_insert): Check Vauto_fill_chars.
15467         (vars_of_cmds):
15468         Declare auto-fill-chars as a Lisp variable and initialize it.
15469
15470 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15471
15472         * fileio.c (Fmake_symbolic_link):
15473         (Ffile_symlink_p):
15474         Run handlers even if local machine doesn't have symlinks.
15475
15476 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15477
15478         * event-msw.c (mswindows_drain_windows_queue):
15479         Don't generate paint magic events for non-XEmacs frames.
15480
15481 2000-03-05  Andy Piper  <andy@xemacs.org>
15482
15483         * redisplay.c (redisplay_frame): generate_displayable_area and
15484         friends assumes that we are not in GC, we therefore have to make
15485         sure that this doesn't happen.
15486
15487         * gutter.c (calculate_gutter_size): generate_displayable_area
15488         assumes that we are not in GC, we therefore have to make sure that
15489         this doesn't happen.
15490
15491 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15492
15493         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15494
15495 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15496
15497         * redisplay.c (regenerate_window): Make sure we set a sane value
15498         for end_pos even if we jump out of the loop.
15499         (regenerate_window): Answer Ben's question :-).
15500         (start_end_of_last_line): Add may_error argument.
15501         (start_of_last_line):
15502         (end_of_last_line): Pass may_error = 0.
15503         (end_of_last_line_may_error): New function.
15504         (pixel_to_glyph_translation): Use it, so we don't crash in
15505         event_to_glyph.
15506
15507 2000-03-04  Andy Piper  <andy@xemacs.org>
15508
15509         * window.h (struct window): add gutter_extent_modiff.
15510
15511         * window.c (allocate_window): zero out gutter_extent_modiff.
15512
15513         * redisplay.h: declare sync_display_line_structs.
15514
15515         * redisplay.c (add_glyph_rune): add a better comment.
15516
15517         * redisplay-output.c (sync_display_line_structs): made non-static.
15518         (compare_runes): remove unneccesary glyph cachel access.
15519
15520         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15521
15522         * gutter.c (output_gutter): don't output the gutter if extent
15523         changes only involve extents in buffers. use 4 sets of display
15524         lines.
15525         (gutter_extent_signal_changed_region_maybe): new function. Mark
15526         extents in gutters as changed.
15527         (update_frame_gutters): use 4 sets of display lines.
15528         (reset_gutter_display_lines): ditto.
15529         (free_frame_gutters): ditto.
15530         (redraw_exposed_gutter): force output of gutters.
15531
15532         * frame.h (struct frame): add 4 sets of gutter display lines.
15533
15534         * extents.c: (extent_changed_for_redisplay): signal changes to
15535         extents in strings in the gutter as well as extents in buffers.
15536
15537 2000-03-02  Andy Piper  <andy@xemacs.org>
15538
15539         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15540
15541         * frame.c (Fmake_frame): make sure the gutters get initialized
15542         after the frame is visible.
15543         (set_frame_selected_window): re-arrange compilation macros a
15544         little.
15545         (change_frame_size_1): mark gutters changed.
15546
15547         * device.c (Fset_device_class): mark gutters changed.
15548
15549 2000-03-01  Andy Piper  <andy@xemacs.org>
15550
15551         * window.c (window_top_frame_gutter_height): deleted.
15552         (window_bottom_frame_gutter_height): ditto.
15553         (window_left_frame_gutter_height): ditto.
15554         (window_right_frame_gutter_height): ditto.
15555         (window_top_gutter_height): don't use them.
15556         (window_bottom_gutter_height): ditto.
15557         (window_left_gutter_width): ditto.
15558         (window_right_gutter_width): ditto.
15559         (Fsplit_window): ditto.
15560         (Fwindow_pixel_edges): don't use border dimensions here.
15561
15562         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15563         (update_scrollbar_instance): ditto.
15564
15565         * redisplay.c (generate_modeline): don't take gutters into account.
15566         (generate_modeline): ditto.
15567         (redisplay_frame): small gutter display optimization.
15568
15569         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15570
15571         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15572         gutters into account.
15573
15574         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15575         for window position and type.
15576
15577         * gutter.c (get_gutter_coords): fix for frame gutters.
15578         (update_frame_gutters): update frame geometry if the gutters have
15579         changed.
15580         (init_frame_gutters): record current gutter geometries.
15581
15582         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15583         var.
15584         (mswindows_widget_instantiate): ditto.
15585
15586         * frame.h (struct frame): add current_gutter_bounds.
15587
15588         * frame.c (change_frame_size_1): position window and minibuffer
15589         appropriately taking into account the frame gutters.
15590
15591         * frame-x.c: (x_initialize_frame_size): take into account the
15592         frame gutters.
15593
15594 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15595
15596         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15597
15598 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15599
15600         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15601
15602 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15603
15604         * file-coding.c (reset_decoding_stream): Clear previous
15605         detection state when autodetect.
15606
15607 2000-02-29  Didier Verna  <didier@xemacs.org>
15608
15609         * extents.c (set_extent_glyph_1): don't require extents to be
15610         attached.
15611
15612 2000-02-27  Andy Piper  <andy@xemacs.org>
15613
15614         * gutter.c (Fset_default_gutter_position): don't default left and
15615         right gutter visibility to t.
15616         (Fset_default_gutter_position): run
15617         default-gutter-position-changed-hook.
15618         (syms_of_gutter): add default-gutter-position-changed-hook.
15619
15620 2000-02-26  Andy Piper  <andy@xemacs.org>
15621
15622         * specifier.c (Fmake_specifier): add gutter references.
15623
15624         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15625
15626         * lisp.h: declare Fvalid_plist_p.
15627
15628         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15629         as changed.
15630         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15631         well as its visibility so that it gets reconstructed.
15632         (construct_window_gutter_spec): new function. Construct a string
15633         to be displayed in the gutter from a plist of strings. Take care
15634         to only use elements that are declared as visible.
15635         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15636         WINDOW_GUTTER.
15637         (gutter_validate): allow plists of strings in the specifier.
15638         (gutter_specs_changed): construct the real_gutter from the gutter
15639         specs using construct_window_gutter_spec.
15640         (gutter_visible_validate): gutter-visible is a new specifier type.
15641         (Fgutter_visible_specifier_p): new function for the new specifier.
15642         (syms_of_gutter): declare gutter-visible and
15643         Fgutter_visible_specifier_p.
15644         (specifier_type_create_gutter): intitalize new gutter-visible
15645         specifier.
15646         (reinit_specifier_type_create_gutter): ditto.
15647         (specifier_vars_of_gutter): use new specifier type for gutter
15648         visibility.
15649         (init_frame_gutters): construct real_gutter correctly.
15650         (Fgutter_specifier_p): beef up documentation.
15651         (Fgutter_size_specifier_p): ditto.
15652
15653         * winslots.h: add real_gutter slots.
15654
15655 2000-02-25  Andy Piper  <andy@xemacs.org>
15656
15657         * device-msw.c: Be kind to older cygwin versions. From Raymond
15658         Toy <toy@rtp.ericsson.se>.
15659
15660         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15661         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15662
15663 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15664
15665         * elhash.c (MARK_OBJ): Practice macro hygiene.
15666
15667 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15668
15669         * miscplay.c: s/__inline__/inline/g;
15670         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15671         (get_device_compdc): INLINE ==> static inline
15672         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15673         find -name '*.h' | \
15674         xargs global-replace \
15675         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15676
15677 2000-02-25  Andy Piper  <andy@xemacs.org>
15678
15679         * window.c (window_top_frame_gutter_height): new function.
15680         (window_top_window_gutter_height): ditto.
15681         (window_top_gutter_height): use them.
15682         (window_bottom_frame_gutter_height): new function.
15683         (window_bottom_window_gutter_height): ditto.
15684         (window_bottom_gutter_height): use them.
15685         (window_left_window_gutter_width): new function.
15686         (window_left_frame_gutter_width): ditto.
15687         (window_left_gutter_width): use them.
15688         (window_right_window_gutter_width): new function.
15689         (window_right_frame_gutter_width): ditto.
15690         (window_right_gutter_width): use them.
15691         (window_pixel_height): new function. calulate window pixel height
15692         with frame gutter involvement.
15693         (Fsplit_window): calculate new sizes taking frame gutters into
15694         account.
15695         (window_char_height_to_pixel_height): don't include frame gutters.
15696         (window_char_height): use window_pixel_height.
15697         (window_pixheight): rename from window_pixel_height.
15698         (change_window_height): use it.
15699         (window_pixel_height_to_char_height): don't include frame gutters.
15700         (window_char_width_to_pixel_width): ditto.
15701
15702 2000-02-25  Andy Piper  <andy@xemacs.org>
15703
15704         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15705         if it is.
15706
15707 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15708
15709         * alloc.c (staticpro):
15710         (staticpro_nodump):
15711         (dumpstruct):
15712         (dumpopaque):
15713         (pdump_wire):
15714         (pdump_wire_list):
15715         (compact_string_chars):
15716         (pdump_dump_wired):
15717         Convert:  if (foo) abort();  ==>  assert (! foo);
15718
15719         * eldap.c (Fldap_search_basic):
15720         (Fldap_add):
15721         (Fldap_modify):
15722         (Fldap_delete):
15723         Fix compiler warnings, and possible crashes if (random) return
15724         value were to be used.
15725
15726 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15727
15728         * device-msw.c: Workaround ResetDC failure.
15729
15730         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15731         applying a devmode.
15732
15733         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15734         (mswindows_text_width): Do not start printer page.
15735
15736         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15737
15738         * glyphs-msw.c: Added image methods to msprinter console and
15739         msprinter-specific image instantiation.
15740
15741 2000-02-20  Mike Alexander  <mta@arbortext.com>
15742
15743         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15744         to avoid crashes when selection-sets-clipboard is on
15745         (mswindows_own_selection): ditto
15746
15747 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15748
15749         * glyphs-msw.c:
15750         * redisplay-msw.c (get_frame_dc):
15751         (get_frame_compdc):
15752         * console-msw.h:
15753         * device-msw.c (mswindows_init_device):
15754         (mswindows_delete_device):
15755         (msprinter_init_device):
15756         (msprinter_delete_device):
15757         * frame-msw.c (mswindows_init_frame_1):
15758         (mswindows_delete_frame):
15759         (msprinter_init_frame_3):
15760         (msprinter_delete_frame): Move compatible DC to device object from
15761         frame object, for both mswindows and msprinter. Only one at a time
15762         is needed, it is a real waste to have one per frame!
15763
15764 2000-02-23  Andy Piper  <andy@xemacs.org>
15765
15766         * glyphs.c: add dynamic width and height elements.
15767         (image_instance_equal): ditto.
15768
15769         * glyphs-widget.c (widget_query_geometry): calculate width and
15770         height dynamically if required.
15771         (initialize_widget_image_instance): initialize dynamic dimensions.
15772         (widget_instantiate): pick-up dynamic dimensions.
15773
15774         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15775         dynamic determination. Add appropriate macros.
15776
15777         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15778         dimensions safe.
15779         (WINDOW_GUTTER_SIZE): ditto.
15780         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15781
15782         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15783         inline.
15784         (get_frame_dc): ditto.
15785
15786         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15787         here.
15788
15789 2000-02-23  Martin Buchholz <martin@xemacs.org>
15790
15791         * XEmacs 21.2.31 is released.
15792
15793 2000-02-22  Ben Wing <ben@xemacs.org>
15794
15795         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15796
15797 2000-02-22  Andy Piper  <andy@xemacs.org>
15798
15799         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15800
15801 2000-02-21  Mike Sperber <mike@xemacs.org>
15802
15803         * .dbxrc:
15804         * .gdbinit:
15805         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15806         variables.
15807
15808 2000-02-21  Mike Sperber <mike@xemacs.org>
15809
15810         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15811
15812 2000-02-21  Martin Buchholz <martin@xemacs.org>
15813
15814         * XEmacs 21.2.30 is released.
15815
15816 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15817
15818         Performance hacking.
15819         * *.c (syms_of_*):
15820         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15821         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15822         * emacs.c (main_1):
15823         * lisp.h (DEFUN):
15824         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15825         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15826         * symeval.h (DEFVAR_SYMVAL_FWD):
15827         * symbols.c (guts_of_unbound_marker):
15828         Make all c_readonly objects also lisp_readonly and marked for life.
15829         * lrecord.h (struct lrecord_implementation):
15830         Document flags better.
15831         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15832         * lrecord.h (DECLARE_LRECORD):
15833         * lrecord.h (XSETRECORD):
15834         * lrecord.h (RECORDP):
15835         * lrecord.h (RECORD_TYPEP):
15836         * lrecord.h (RECORD_MARKER): New.
15837         * lrecord.h (error_check_*):
15838         * lrecord.h (CONCHECK_NONRECORD):
15839         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15840         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15841         * lrecord.h (set_lheader_implementation):
15842         * lrecord.h (enum lrecord_type): New.
15843         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15844         * alloc.c (disksave_object_finalization_1):
15845         * alloc.c (mark_object):
15846         * alloc.c (lrecord_type_index):
15847         * alloc.c (tick_lcrecord_stats):
15848         * alloc.c (Fgarbage_collect):
15849         * alloc.c (init_alloc_once_early):
15850         * alloc.c (pdump_load):
15851         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15852         * alloc.c (lrecord_type_index): Delete.
15853         Make lisp object type indexes be constant.
15854           Makes (byte-compile) 5% faster.
15855         Put all marker functions into their own array.
15856           Makes (garbage-collect) 5% faster.
15857         Optimize SYMBOL_VALUE_MAGIC_P.
15858           Makes (byte-compile) 2-3% faster.
15859         * config.h.in (gc_checking_assert): New.
15860         * alloc.c: Use gc_checking_assert().
15861         * .dbxrc: Make compatible with new object type implementation.
15862         * .gdbinit: Make compatible with new object type implementation.
15863         * alloc.c: Delete all symbols defined only for debugging, such as
15864         Lisp_Type_Vector and lrecord_charset.
15865
15866 2000-02-21  Andy Piper  <andy@xemacs.org>
15867
15868         * gui-msw.c (Fmswindows_shell_execute): fix file location
15869         problems.
15870
15871         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15872         unshowing so that set_window_buffer doesn't undo
15873         kill_buffer_hook's hard work.
15874
15875         * glyphs-widget.c (tab_control_query_geometry): don't count the
15876         first item when calculating geometry.
15877
15878         * glyphs.c (map_subwindow): remove redundant code.
15879         (update_frame_subwindows): be more circumspect about when to
15880         update subwindows.
15881
15882         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15883         when items haven't changed. Update faces if faces have changed as
15884         well as just the widget face.
15885         (x_tab_control_update): Update faces if faces have changed as well
15886         as just the widget face.
15887
15888 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15889
15890         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15891         registration.
15892         (build_syscolor_string): Use mswindows_color_to_string to try to
15893         get a named color.
15894         (mswindows_device_system_metrics): Reverse the foreground and
15895         background colors so that they match the documentation.
15896
15897         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15898         they match the default Windows palette.
15899         (mswindows_color_to_string): New function.
15900
15901 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15902
15903         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15904
15905 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15906
15907         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15908         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15909
15910         * symbols.c (init_symbols_once_early): Removed obsolete
15911         DATA_SEG_BITS related kludge.
15912         (defvar_magic): Ditto.
15913
15914         * malloc.c: Removed obsolete DATA_SEG_BITS
15915         * ralloc.c: Ditto.
15916         * mem-limits.h: Ditto.
15917
15918         * Makefile.in.in: Removed obsolete HAVE_SHM
15919         * emacs.c: Ditto.
15920
15921 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15922
15923         *  device-msw.c (mswindows_delete_device): Free DDE string
15924         handles.
15925
15926 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15927
15928         * keymap.c (get_keyelt):
15929         * unexnt.c (unexec):
15930         * vm-limit.c (memory_warnings):
15931         * ntheap.c (recreate_heap):
15932         * ntheap.h (UNINIT_PTR):
15933         * select-msw.c (Fmswindows_get_clipboard):
15934         (Fmswindows_set_clipboard):
15935         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15936         * objects-msw.c:
15937         * menubar-msw.c (displayable_menu_item):
15938         * glyphs-msw.c:
15939         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15940         * sysdep.c (sys_subshell):
15941         * process-nt.c (nt_create_process):
15942         * nt.c (normalize_filename):
15943         (dostounix_filename):
15944         (unixtodos_filename):
15945         * ntproc.c (win32_executable_type):
15946         * ntplay.c (play_sound_data_1):
15947         (play_sound_file):
15948         * editfns.c (get_home_directory):
15949         * event-msw.c (struct winsock_stream):
15950         (mswindows_dde_callback):
15951         * device-msw.c (msprinter_init_device):
15952         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15953
15954         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15955         mswindows_clear_toolbar were swapped!
15956
15957         * objects-msw.c:(colormap_t):
15958         (fontmap_t):
15959         * emacs.c (struct standard_args): Fixed const jumble.
15960
15961         * glyphs-widget.c (update_widget): Fixed comparison notation.
15962
15963         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15964
15965         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15966         __declspec(noreturn) syntax.
15967
15968 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15969
15970         * eldap.c (Fldap_open):
15971         (Fldap_search_basic):
15972         (Fldap_add):
15973         (Fldap_modify):
15974         Use new coding system conversion macros.
15975
15976 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15977
15978         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15979
15980 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15981
15982         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15983         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15984
15985         * eldap.c (Qadd, Qreplace): New constant symbols
15986         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15987         interruptions by XEmacs signals
15988         Remove unnecessary calls to slow_down_interrupts and
15989         speed_up_interrupts
15990         (Fldap_search_basic): Renamed from Fldap_search_internal
15991         Added new optional parameter VERBOSE that triggers the
15992         display of progress messages
15993         Remove unnecessary calls to slow_down_interrupts and
15994         speed_up_interrupts
15995         LDAP result code analysis rewritten
15996         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15997         (syms_of_eldap): Define the new symbols and functions
15998
15999
16000 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16001
16002         * realpath.c: Determine PATH_MAX maximally portably.
16003
16004         * insdel.c (bytecount_to_charcount): Optimize.
16005         The function used to be optimized for entirely ASCII sequences.
16006         Now it is optimized for successive characters from the same
16007         charset.  This also wins big for _mostly_ ASCII sequences.
16008
16009         * fileio.c (Ffile_truename): convert return from realpath() using
16010         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16011         - Rewrite GCPROing slightly.
16012
16013         * sysdep.c (sys_open): Do filename conversion, like all other
16014         sys_* functions.  Fixes bug:
16015         (let ((file-name-coding-system 'iso-8859-2))
16016            (write-region x y latin2-name))
16017         ==> writes filename using internal encoding.
16018
16019 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16020
16021         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16022         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16023         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16024         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16025         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16026         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16027         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16028         (CONST_IF_NOT_DEBUG): Delete.
16029         * alloc.c (this_one_is_unmarkable): Delete.
16030         (mark_object): Don't check for this_one_is_unmarkable. Use the
16031         c_readonly flag instead.
16032         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16033
16034 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16035
16036         * event-msw.c (mswindows_drain_windows_queue):
16037         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16038         away redundant repaint events.
16039
16040 2000-02-17  Andy Piper  <andy@xemacs.org>
16041
16042         * redisplay.h: declare mark_redisplay_structs.
16043
16044         * redisplay.c (redisplay_window):
16045         (redisplay_frame): don't check subwindows_state_changed.
16046         (mark_redisplay): mark gutters here.
16047
16048         * glyphs.c: (instantiate_image_instantiator): always layout if we
16049         haven't done so already.
16050         (allocate_image_instance): don't mark as dirty.
16051         (update_subwindow): bind inhibit_quit.
16052
16053         * gutter.c (mark_gutters): new function.
16054
16055         * glyphs-x.c (x_update_widget): Always resize to get round a
16056         widget bug.
16057
16058         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16059         breaking absolutely everything.
16060
16061         * gutter.h: declare mark_gutters.
16062
16063 2000-02-16  Martin Buchholz <martin@xemacs.org>
16064
16065         * XEmacs 21.2.29 is released.
16066
16067 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16068
16069         * fns.c (size_bit_vector): Fix computation of the size.
16070
16071 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16072
16073         * *.[ch]: Change CONST to const globally.
16074         find -name '*.[ch]' | \
16075         xargs global-replace \
16076         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16077         - Remove vestigial references to CONST_IS_LOSING
16078
16079 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16080
16081         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16082         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16083         events instead of dispatching them directly.
16084         (mswindows_handle_paint): New function to do repainting.
16085         (mswindows_wnd_proc):
16086         (emacs_mswindows_handle_magic_event): Call above function.
16087
16088 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16089
16090         * objects-msw.c (mswindows_create_font_variant): Return the new
16091         font handle.
16092         (initialize_font_instance): Get font metrics from the underlined
16093         variant of the font to cope with the case where the underlined
16094         font has a bigger descent.
16095
16096 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16097
16098         * gui.c (gui_item_accelerator): Return the first underlined
16099         character in item name.
16100
16101 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16102
16103         * lisp.h: Added Qprinter.
16104
16105         * general.c (syms_of_general): Initialized it.
16106
16107         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16108         (get_frame_dc):
16109         (get_frame_compdc): Made inline.
16110
16111         * console.h (struct console_methods): Added eject_page method.
16112
16113         * frame.h: Added FRAME_DISPLAY_P and friends.
16114         Aligned backslahes in many macros in more readable fashion.
16115         Added page_number to struct frame, and an accessor macro
16116         for it.
16117
16118         * defice.h: Added DEVICE_DISPLAY_P and friends.
16119
16120         * device.c (Fdevice_printer_p): Used these.
16121
16122         * frame.c (allocate_frame_core): Initialize page number.
16123         (Fprint_job_page_number):
16124         (Fprint_job_eject_page): Implemented.
16125
16126         * frame-msw.c (msprinter_eject_page): Added method.
16127         (msprinter_start_page): Added.
16128
16129         * window.c (Fwindow_truncated_p): Fixed docstring.
16130         (Fwindow_last_line_visible_height): Implemented.
16131
16132 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16133
16134         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16135
16136 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16137
16138         * syntax.c (scan_words): Always advance at least one character.
16139
16140 2000-02-13  Andy Piper  <andy@xemacs.org>
16141
16142         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16143         to make sure the glyph is in the cachels.
16144
16145         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16146         global image instance flag.
16147         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16148         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16149
16150         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16151         (Fset_image_instance_property): mark layout as changed.
16152         (invalidate_glyph_geometry_maybe): mark layout as changed.
16153         (glyph_width): use new NEEDS_LAYOUT macro.
16154         (glyph_ascent): ditto.
16155         (glyph_descent): ditto.
16156         (glyph_height): ditto.
16157         (image_instance_layout): mark layout as clean after laying out.
16158         (update_subwindow): don't mark layout as clean here.
16159
16160         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16161         should no longer be needed.
16162
16163         * glyphs-x.c (x_update_widget): sanitize asserts.
16164         (x_finalize_image_instance): sanitize assignment to widgets.
16165
16166         * glyphs-widget.c (widget_instantiate): don't need to clear the
16167         layout flag here.
16168
16169 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16170
16171         * sysdep.c (getcwd): Use standard prototype.
16172         * sysdep.h (getcwd): Use standard prototype.
16173
16174         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16175         (sequence, start, end).
16176         Remove redundant type checking.
16177         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16178         view of `caller-protects') to avoid a crash where the real fix was
16179         found elsewhere.
16180
16181 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16182
16183         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16184
16185         * s/sol2.h: Remove feature macro initialization.
16186
16187         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16188         (vector_hash): New.  Code from internal_hash.
16189         * lrecord.h:
16190         Fix up allocation subsystem comments.
16191
16192         * config.h.in: Add __EXTENSIONS__ for Solaris.
16193
16194         * systime.h (EMACS_GETTIMEOFDAY): New.
16195         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16196         Remove Solaris-specific code.
16197         Use void* for the (ignored) second arg for gettimeofday().
16198
16199         * elhash.c (hash_table_hash): Implement it, finally.
16200         * elhash.c:  Use hashcode_t.
16201
16202         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16203         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16204
16205         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16206         * fns.c (size_bit_vector):
16207         * alloc.c (size_vector):
16208         (make_vector_internal):
16209         (make_bit_vector_internal):
16210         (sweep_bit_vectors_1):
16211         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16212
16213 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16214
16215         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16216         Include strings.h to avoid warnings for bzero and strcasecmp.
16217
16218 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16219
16220         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16221         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16222
16223         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16224         sequence.
16225
16226 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16227
16228         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16229         use a value field instead.
16230         (symbol_value_forward_forward): Use value field.
16231         (DEFVAR_SYMVAL_FWD): Use value field.
16232         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16233         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16234         (DEFVAR_CONST_INT): Ditto.
16235         (DEFVAR_BOOL): Ditto.
16236         (DEFVAR_CONST_BOOL): Ditto.
16237         (DEFVAR_INT_MAGIC): Ditto.
16238         (DEFVAR_BOOL_MAGIC): Ditto.
16239
16240         * symbols.c (guts_of_unbound_marker): Use value field.
16241         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16242         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16243
16244         * lisp.h: Declare dumpopaque and noninteractive1.
16245
16246         * alloc.c (dumpopaque): Added.
16247         (pdump_dump_opaquevec): Added.
16248         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16249         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16250         noninteractive.
16251
16252 2000-02-10  Andy Piper  <andy@xemacs.org>
16253
16254         * glyphs.c (image_instance_layout): if the size changes, mark it
16255         as such.
16256
16257         * redisplay-output.c (redisplay_output_layout): Update the
16258         subwindow here.
16259         (redisplay_output_subwindow): ditto.
16260
16261         * glyphs.c (update_subwindow): make sure we reset flags for
16262         layouts as well as everything else.
16263
16264         * glyphs-widget.c (layout_layout): don't need to set the instances
16265         dimensions here.
16266
16267 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16268
16269         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16270         not HAVE_DLOPEN, which is a lower-level thing.
16271
16272         * .cvsignore: Ignore gmon.out
16273
16274 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16275
16276         * .cvsignore: Ignore portable dumper xemacs.dmp file
16277
16278 2000-02-09  Andy Piper  <andy@xemacs.org>
16279
16280         * redisplay-output.c (redisplay_output_layout): be more clever
16281         about when we output based on the changed flags.
16282
16283         * glyphs.h (struct image_instantiator_methods): add update_method.
16284         (struct Lisp_Image_Instance): add changed flags. Declare new
16285         macros for manipulating them.
16286
16287         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16288         (image_instance_parent_glyph): find an image_instance's parent
16289         glyph or image_instance.
16290         (image_instance_layout): mark the size as changed.
16291         (set_image_instance_dirty_p): new function. mark an image
16292         instance, plus all of its parents, as dirty.
16293         (Fset_image_instance_property): use it.
16294         (Fglyph_animated_timeout_handler): use it.
16295         (update_subwindow): call update_widget and device methods for
16296         update_subwindow. Mark all changed flags as clean.
16297         (Fresize_subwindow): mark size as changed.
16298
16299         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16300         failures.
16301         (x_update_subwindow): only resize subwindows here.
16302         (x_update_widget): new function. Update all changed properties of
16303         a widget.
16304         (x_resize_subwindow): deleted.
16305         (x_widget_set_property): deleted.
16306         (x_progress_gauge_set_property): deleted.
16307         (x_progress_gauge_update): new function. Implement recorded
16308         changes.
16309         (x_tab_control_update): ditto.
16310         (x_tab_control_set_property): deleted.
16311         (console_type_create_glyphs_x): declare new functions.
16312         (image_instantiator_format_create_glyphs_x): ditto.
16313
16314         * glyphs-widget.c (widget_set_property): mark text changed.
16315         (update_widget): new function. Update properties of a widget.
16316         (widget_instantiate): for layouts make sure we set their
16317         children's parent correctly.
16318         (tab_control_set_property): new function. Record changes that will
16319         take place under redisplay's control.
16320         (progress_gauge_set_property): ditto.
16321         (image_instantiator_progress_guage): declare new functions.
16322         (image_instantiator_tab_control): ditto.
16323
16324         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16325         now.
16326         (mswindows_update_widget): new function. Update all properties on
16327         a widget that have changed.
16328         (mswindows_button_update): new function. Update a button's set
16329         state.
16330         (mswindows_tab_control_update): new function. Update the items in
16331         a tab.
16332         (mswindows_tab_control_set_property): deleted.
16333         (mswindows_progress_gauge_update): new function. Update the
16334         progress gauge's progress.
16335         (mswindows_widget_set_property): deleted. This is all done
16336         asynchronously now.
16337         (mswindows_progress_gauge_set_property): ditto.
16338         (console_type_create_glyphs_mswindows): declare new methods.
16339         (image_instantiator_format_create_glyphs_mswindows): ditto.
16340
16341         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16342         (msprinter_set_frame_properties): ditto.
16343
16344         * console.h (struct console_methods): Add update_widget_method.
16345
16346 2000-02-09  Andy Piper  <andy@xemacs.org>
16347
16348         * gui-msw.c (Fmswindows_shell_execute): Make
16349         mswindows-shell-execute industrial strength.
16350
16351 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16352
16353         * lrecord.h: Make macro argument `props' match member function `plist'.
16354         * fns.c (Fget):
16355         * fns.c (Fput):
16356         * fns.c (Fremprop):
16357         * fns.c (Fobject_plist):
16358         * alloc.c:
16359         * symbols.c:
16360         Object property list frobbing cleanup.
16361         - Allow any lisp object (compared with `eq'), not just symbols, as
16362           keys in object plists.
16363         - Move symbol plist frobbing into symbols.c, where it belongs.
16364         - Move string plist frobbing into alloc.c, where it belongs.
16365         - Everything's an lrecord now, so no need to test for symbolp, etc.
16366         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16367
16368         * extents.c: Reorder code to remove declarations.
16369
16370         * frame.h (store_in_alist): Remove useless declaration.
16371
16372 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16373
16374         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16375         * config.h.in: Add HAVE_XCONVERTCASE.
16376
16377 2000-02-07  Andy Piper  <andy@xemacs.org>
16378
16379         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16380         it breaks many things.
16381
16382 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16383
16384         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16385         actually can start a common comment type.
16386         * src/syntax.h (SYNTAX_END_P): ditto for end.
16387
16388 2000-02-07  Martin Buchholz <martin@xemacs.org>
16389
16390         * XEmacs 21.2.28 is released.
16391
16392 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16393
16394         * event-Xt.c (x_keysym_to_character): New.
16395         (maybe_define_x_key_as_self_inserting_character): New.
16396         (x_has_keysym): New.
16397         Auto-define all keys on the keyboard as self-insert-key.
16398
16399 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16400
16401         * menubar.c (vars_of_menubar): A small code simplification.
16402
16403         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16404
16405         * ExternalShell.c:
16406         * ExternalClient.c:
16407         * EmacsShell-sub.c:
16408         * EmacsManager.c:
16409         * EmacsFrame.c:
16410         Use consistent style for specifying X resources.
16411
16412         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16413         This makes (dontusethis-set-symbol-value-handler) actually usable.
16414
16415         * lrecord.h (lrecord_decription_type):
16416         * alloc.c (pdump_register_sub):
16417         (pdump_dump_data):
16418         (pdump_reloc_one):
16419         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16420         Comply with XEmacs coding style.
16421         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16422         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16423
16424         * keymap.c (Faccessible_keymaps):
16425         Make (accessible-keymaps map "\C-h") do the Right Thing.
16426         Make (accessible-keymaps map []) do the Right Thing.
16427         Make (accessible-keymaps map "") do the Right Thing.
16428         (check_keymap_definition_loop): New function.
16429         (keymap_store_internal): Keep luser from shooting self in foot,
16430           via (define-key ctl-x-4-map "p" global-map).
16431         Remove fullness slot from struct Lisp_Keymap, since hash tables
16432         are now reliable.
16433         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16434
16435 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16436
16437         * redisplay.c (init_redisplay): Fix small memory leak.
16438         * elhash.h:
16439         * elhash.c (pdump_reorganize_hash_table):
16440         Rename from reorganize_hash_table. Change prototype.
16441         Reuse the original memory for hentries.  Save 100k.
16442         * alloc.c (PDUMP_READ): new macro.
16443         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16444         * alloc.c: No need to #ifndef before #undef.
16445
16446         * print.c: Allow debug_print() to print readably by modifying
16447         debug_print_readably.  Use consistent variable names.
16448
16449         * .dbxrc: Try to get things to work even if stopped in a function
16450         without source available by explicitly specifying source files.
16451 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16452
16453         * unexnt.c (_start): Removed bogus code which caused loading heap
16454         from differrent executable file.
16455         Removed bogus assignment to _fmode, which caused inconsistencies.
16456
16457 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16458
16459         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16460         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16461         Do not preliminary `#define signal sigset'.
16462
16463         * systime.h: Do not prototype environ on windows nt and cygwin,
16464         this conflicts with system header.
16465
16466         * syssignal.h: Use correct define for WINDOWSNT
16467
16468         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16469         with system header.
16470
16471         * sysdep.c (near start of file): Fixed commentary and rearranged
16472         ifdefs in readable order.
16473         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16474         (start_of_text):
16475         (end_of_text):
16476         (end_of_data): Do not compile in if using PDUMP.
16477
16478         * symsinit.h: Prototyped vars_of_nt().
16479
16480         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16481         (find_child_console): Use it.
16482         (sys_kill): Use it.
16483
16484         * ntheap.h: Do not extern os_subtype.
16485
16486         * ntheap.c (cache_system_info): Do not cache unneeded:
16487         nt_major_version, nt_minor_version and os_subtype.
16488         (recreate_heap): Do not compile in when PDUMPing.
16489
16490         * nt.c (geteuid and friends): Use the new varibale
16491         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16492         (init_user_info): Removed the above mentioned hackery.
16493         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16494         stat has been fixed in the C runtime.
16495         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16496
16497         * file-coding.c (struct file_coding_dump): Do not define
16498         ucs_to_mule_table in the struct if not MULE.
16499         (struct struct lrecord_description fcd_description_1): Do not dump
16500         the above.
16501
16502         * emacs.c (main_1): Call vars_of_nt().
16503         (right before Fdump_emacs_data): Don't need lastfile if using both
16504         portabe dumper and system malloc.
16505
16506         * alloc.c (Fmemory_limit): Conditionalized out.
16507         (pdump): Use OPEN_BINARY for the portable dump file.
16508         (pdump_load): Ditto.
16509
16510 2000-02-02  Mike Alexander  <mta@arbortext.com>
16511
16512         * nt.c (convert_time): Set tm_isdst before calling mktime and
16513         avoid calling it at all if the compiler supports 64 bit integers.
16514         Also initialize utc_base_ft before using it.
16515
16516 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16517
16518         * frame.c (change_frame_size_1): Take f->internal_border_width
16519         into consideration when calculating the width of the frame.
16520
16521 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16522
16523         * window.c (frame_min_height):
16524         (frame_size_valid_p):
16525         (frame_pixsize_valid_p): Added.
16526         (check_frame_size): Generalized.
16527
16528         * window.h: Prototyped the above.
16529
16530         * lisp.h:
16531         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16532         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16533         Deleted Vwin32_* and Vbinary_process_* unused variables.
16534
16535         * device-msw.c (msprinter_init_device): Do not get printer font
16536         list; Added DEVMODE functions.
16537
16538         * frame-msw.c: Added lots of printer code.
16539
16540         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16541         general.c.
16542
16543         * console-msw.h: Added more msprinter device private slots.
16544
16545 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16546
16547         * event-msw.c (key_needs_default_processing_p): Added.
16548         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16549
16550 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16551
16552         * glyphs.c (image_instance_layout): Mark image instance as clean
16553         after layout.
16554         (glyph_dirty_p): Removed redundant function.
16555         (invalidate_glyph_geometry_maybe): Added.
16556         (update_glyph_cachel_data): Call it.
16557
16558         * glyphs.h: Prototyped it.
16559
16560         * redisplay.c (add_glyph_rune): Call it.
16561         (redisplay_window): Reset glyphs cachels when frame faces have
16562         changed, thus forcing recomputation of built-in border glyphs.
16563
16564 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16565
16566         * Makefile.in.in: Make portable dumper and purify play well together.
16567         Add imperfect, but better than nothing, support for pdump.
16568         Remove xemacs.dmp when temacs is re-generated.
16569         Don't ignore errors when dumping xemacs.
16570
16571         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16572
16573 2000-01-28  Andy Piper  <andy@xemacs.org>
16574
16575         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16576         (setup_normal_frame): ditto.
16577         (setup_frame_without_minibuffer): ditto.
16578         (setup_minibuffer_frame): ditto.
16579         (delete_frame_internal): ditto.
16580         (Fmake_frame_invisible): ditto.
16581         (Ficonify_frame): ditto.
16582
16583         * window.h: change Fset_window_buffer signature.
16584
16585         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16586         (Fset_window_buffer): allow recording of buffer if the window is
16587         the selected window.
16588         (window_loop): Use new Fset_window signature.
16589
16590 2000-01-23  Daniel Pittman  <daniel@danann.net>
16591
16592         * config.h.in: Added template for `HAVE_ATHENA_3D'
16593
16594 2000-01-29  Andy Piper  <andy@xemacs.org>
16595
16596         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16597
16598         * gutter.c (output_gutter): Don't output if the window isn't live.
16599
16600 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16601
16602         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16603         of 01/12/00: Moved SetFocus back here where it belongs.
16604
16605 2000-01-23  Andy Piper  <andy@xemacs.org>
16606
16607         * s/cygwin32.h: declare printer things.
16608
16609 2000-01-26  Andy Piper  <andy@xemacs.org>
16610
16611         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16612         Alexander.
16613
16614 2000-01-24  Andy Piper  <andy@xemacs.org>
16615
16616         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16617         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16618
16619         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16620
16621         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16622
16623         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16624
16625         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16626         (mswindows_output_display_block): Avoid local shadows.
16627
16628         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16629         (mswindows_enqueue_mouse_button_event): ditto.
16630         (mswindows_handle_gui_wm_command): remove declaration.
16631
16632         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16633         warnings.
16634
16635         * console-msw.h: Avoid shadows.
16636         (mswindows_get_toolbar_button_text):
16637         (emacs_mswindows_create_stream_pair):
16638         (emacs_mswindows_delete_stream_pair):
16639         (mswindows_handle_toolbar_wm_command): declare.
16640
16641         * device-msw.c (build_syscolor_string): Avoid shadows.
16642
16643 2000-01-23  Andy Piper  <andy@xemacs.org>
16644
16645         * glyphs-widget.c (widget_instantiate): reverse the items for
16646         layouts so that children are in the expected order.
16647
16648 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16649
16650         * ralloc.c: safe_bcopy ==> memmove
16651         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16652         * s/msdos.h: Remove BCOPY macros.
16653         * insdel.c (gap_right): Remove BCOPY conditional code.
16654         * insdel.c (gap_left): Remove BCOPY conditional code.
16655         XEmacs demands a working ANSI C compiler - hence memmove.
16656
16657         * regex.c (regex_compile): Remove accidental use of trigraphs.
16658
16659 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16660
16661         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16662         event timestamp.
16663
16664 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16665
16666         * event-msw.c (mswindows_drain_windows_queue): Added the
16667         parameter.
16668         (mswindows_need_event): Commented the call to
16669         mswindows_drain_windows_queue().
16670         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16671         only.
16672
16673         * console-msw.h: Moved a few function prototypes here from
16674         event-msw.c.
16675
16676         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16677         parameter from unsigned short to unsigned long.
16678         (Fmswindows_shell_execute): Added return value.
16679
16680 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16681
16682         * sysdep.c (init_system_name):
16683           process-unix.c (unix_canonicalized_host_name):
16684         Don't call freeaddrinfo() if getaddrinfo() fails.
16685
16686         * process-unix.c (unix_open_unix_network_stream):
16687         Moved the code to get a port # into address loop.
16688
16689 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16690
16691         * buffer.c (reinit_vars_of_buffer):
16692         The right place to initialize conversion_in_dynarr and
16693         conversion_out_dynarr.
16694
16695         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16696
16697         * process-unix.c (unix_canonicalize_host_name): Muleize.
16698         (unix_open_network_stream): Muleize.
16699
16700         * buffer.h: Fix up prototypes for ralloc.c functions.
16701
16702 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16703         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16704         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16705                 instead of gethostbyname()
16706         * process-unix.c: In unix_canonicalize_host_name() and
16707                 unix_open_network_stream(), add code to use getaddrinfo()
16708                 instead of gethostbyname().
16709
16710 2000-01-27  Daniel Pittman <daniel@danann.net>
16711
16712         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16713         libs when built with flat Athena.
16714
16715 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16716
16717         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16718         Use coding standards for function prototypes.
16719
16720 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16721
16722         * dialog-msw.c (push_lisp_string_as_unicode):
16723         * doc.c (unparesseuxify_doc_string):
16724         * dired.c (Fuser_name_completion_1):
16725         * dired.c (Fuser_name_all_completions):
16726         * dired.c (free_user_cache):
16727         * dired.c (user_name_completion):
16728         * console-x.c (get_display_arg_connection):
16729         * minibuf.c (clear_echo_area_internal):
16730         * minibuf.c (echo_area_append):
16731         * eldap.c (Fldap_open):
16732         * eldap.c (Fldap_search_internal):
16733         * frame-x.c (x_set_frame_text_value):
16734         * frame-x.c (x_set_frame_properties):
16735         * frame-x.c (x_create_widgets):
16736         * redisplay-tty.c (term_get_fkeys_1):
16737         * objects-x.c (x_parse_nearest_color):
16738         * objects-x.c (x_valid_color_name_p):
16739         * objects-x.c (x_initialize_font_instance):
16740         * objects-x.c (x_list_fonts):
16741         * objects-x.c (x_find_charset_font):
16742         * tooltalk.c (Fadd_tooltalk_message_arg):
16743         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16744         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16745         * process-unix.c (unix_create_process):
16746         * ntproc.c (sys_spawnve):
16747         * sound.c (Fplay_sound_file):
16748         * sound.c (Fplay_sound):
16749         * buffer.c (init_initial_directory):
16750         * buffer.c (init_buffer):
16751         * editfns.c (init_editfns):
16752         * editfns.c (Ftemp_directory):
16753         * editfns.c (Fuser_full_name):
16754         * editfns.c (uncache_home_directory):
16755         * editfns.c (get_home_directory):
16756         * editfns.c (Fuser_home_directory):
16757         * editfns.c (Fformat_time_string):
16758         * editfns.c (Fcurrent_time_string):
16759         * gui-x.c (button_item_to_widget_value):
16760         * database.c (Fopen_database):
16761         * event-Xt.c (x_to_emacs_keysym):
16762         * event-Xt.c (x_event_to_emacs_event):
16763         * event-Xt.c (describe_event_window):
16764         * event-msw.c (mswindows_wnd_proc):
16765         * glyphs-eimage.c (jpeg_instantiate):
16766         * glyphs-eimage.c (gif_instantiate):
16767         * glyphs-eimage.c (png_instantiate):
16768         * glyphs-eimage.c (tiff_instantiate):
16769         * glyphs-x.c (xbm_instantiate_1):
16770         * glyphs-x.c (x_xbm_instantiate):
16771         * glyphs-x.c (x_xface_instantiate):
16772         * glyphs-x.c (autodetect_instantiate):
16773         * glyphs-x.c (cursor_font_instantiate):
16774         * glyphs-x.c (x_widget_instantiate):
16775         * glyphs-x.c (x_widget_set_property):
16776         * glyphs-x.c (x_widget_property):
16777         * glyphs-x.c (BUILD_GLYPH_INST):
16778         * print.c (write_string_to_stdio_stream):
16779         * print.c (output_string):
16780         * print.c (Falternate_debugging_output):
16781         * print.c (Fexternal_debugging_output):
16782         * glyphs-msw.c (extract_xpm_color_names):
16783         * glyphs-msw.c (mswindows_xpm_instantiate):
16784         * glyphs-msw.c (bmp_instantiate):
16785         * glyphs-msw.c (resource_name_to_resource):
16786         * glyphs-msw.c (mswindows_resource_instantiate):
16787         * glyphs-msw.c (xbm_instantiate_1):
16788         * glyphs-msw.c (mswindows_xbm_instantiate):
16789         * glyphs-msw.c (mswindows_xface_instantiate):
16790         * glyphs-msw.c (mswindows_widget_instantiate):
16791         * glyphs-msw.c (add_tree_item):
16792         * glyphs-msw.c (add_tab_item):
16793         * glyphs-msw.c (mswindows_combo_box_instantiate):
16794         * glyphs-msw.c (mswindows_widget_property):
16795         * glyphs-msw.c (mswindows_combo_box_property):
16796         * glyphs-msw.c (mswindows_widget_set_property):
16797         * console.c (stuff_buffered_input):
16798         * objects-msw.c (mswindows_initialize_color_instance):
16799         * objects-msw.c (mswindows_valid_color_name_p):
16800         * objects-msw.c (mswindows_list_fonts):
16801         * objects-msw.c (mswindows_font_instance_truename):
16802         * bytecode.c (optimize_compiled_function):
16803         * select-x.c (symbol_to_x_atom):
16804         * select-x.c (x_atom_to_symbol):
16805         * select-x.c (hack_motif_clipboard_selection):
16806         * select-x.c (selection_data_to_lisp_data):
16807         * select-x.c (lisp_data_to_selection_data):
16808         * select-x.c (Fx_get_cutbuffer_internal):
16809         * select-x.c (Fx_store_cutbuffer_internal):
16810         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16811         * buffer.h (TO_INTERNAL_FORMAT): New function.
16812         * emacs.c (make_arg_list_1):
16813         * emacs.c (make_argc_argv):
16814         * emacs.c (main_1):
16815         * emacs.c (Fdump_emacs):
16816         * emacs.c (split_string_by_emchar_1):
16817         * file-coding.h:
16818         * lisp.h:
16819         * lstream.h:
16820         * symsinit.h:
16821         * device-x.c (x_init_device):
16822         * device-x.c (Fx_valid_keysym_name_p):
16823         * device-x.c (Fx_get_font_path):
16824         * device-x.c (Fx_set_font_path):
16825         * glyphs.c (bitmap_to_lisp_data):
16826         * glyphs.c (pixmap_to_lisp_data):
16827         * alloc.c (make_ext_string): Use coding system arguments.  Update
16828         all callers.
16829         * alloc.c (build_string):
16830         * callproc.c (child_setup):
16831         * callproc.c (init_callproc):
16832         * fileio.c (lisp_strerror):
16833         * fileio.c (directory_file_name):
16834         * fileio.c (Fexpand_file_name):
16835         * fileio.c (Ffile_truename):
16836         * fileio.c (Fsysnetunam):
16837         * fileio.c (Fdo_auto_save):
16838         * sysdep.c (sys_readdir):
16839         * tests.c: New file.  Allow adding C tests.
16840         Replace GET_* macros with a more comprehensible and flexible
16841         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16842         Modify all calls.
16843         Any coding system can be used to do format conversion.
16844         Eliminate enum external_data_format.
16845         Eliminate convert_to_external_format.
16846         Eliminate convert_to_internal_format.
16847         Make sure file-name, keyboard, terminal, and ctext are always
16848         defined as coding systems or aliases.  Make
16849         file-name-coding-system, terminal-coding-system, and
16850         keyboard-coding-system magical variables that are equivalent to
16851         defining the corresponding coding system aliases.
16852
16853         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16854         * file-coding.c (Fcoding_system_alias_p): New function.
16855         * file-coding.c (Fcoding_system_aliasee): New function.
16856         * file-coding.c (append_suffix_to_symbol): New function.
16857         * file-coding.c (dangling_coding_system_alias_p): New function.
16858         * file-coding.c (Ffind_coding_system):
16859         * file-coding.c (Fcopy_coding_system):
16860         * file-coding.c (encode_coding_no_conversion):
16861         * file-coding.c (syms_of_file_coding):
16862         * file-coding.c (vars_of_file_coding):
16863         Rewrite coding system alias code.
16864         Allow nested aliases, like symbolic links.
16865         Allow redefinition of coding system aliases.
16866         Prevent existence of dangling coding system aliases.
16867
16868         * dired.c (Fuser_name_completion_1):
16869         * dired.c (Fuser_name_all_completions):
16870         A crash would happen if user did QUIT in the middle of building
16871         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16872
16873         * lisp.h:
16874         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16875
16876         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16877         an unsigned char *.  Update all callers.
16878
16879 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16880
16881         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16882
16883 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16884
16885         * elhash.c (hentry_description): Use more portable definition.
16886         (resize_hash_table): Initialize new hentries using
16887         xnew_array_and_zero, thereby simplifying the code.
16888
16889         * mule-charset.c (make_charset): Make sure entire object is
16890         initialized, to avoid Purify warnings.
16891
16892         * alloc.c (resize_string): Fix unlikely crash with big strings.
16893
16894 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16895
16896         * realpath.c (xrealpath):
16897         Don't call getwd().
16898
16899 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16900
16901         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16902
16903 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16904
16905         * unexelfsgi.c (unexec): Change the way we decide which segment
16906         should be extended.
16907
16908         Assumption that .bss section should be outside the PT_LOADable
16909         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16910         it's present) is inside the 'data' segment. This would fail the
16911         test which was used to find a segment to grow and cover new
16912         heap. Instead of this assumption, I created another one - on IRIX
16913         the segment to grow should start below .bss and it's address
16914         should extent above the end of .bss. Once this segment is
16915         identified, it's grown to accommodate the new heap and new
16916         zero-length .bss section is added at the end of .data2.
16917
16918 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16919
16920         * eval.c (Feval): Wrong number of arguments should use original
16921         function, not the indirect_function version of it.
16922
16923 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16924
16925         * glyphs-x.c (x_button_instantiate): Don't add image if
16926         it is not a pixmap.
16927         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16928         is relative.
16929
16930 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16931
16932         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16933         declaration.
16934         (DEFVAR_INT_MAGIC): Ditto.
16935         (DEFVAR_BOOL_MAGIC): Ditto.
16936         * glyphs.h: Reindent backslash.
16937
16938 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16939
16940         * glyphs-widget.c (layout_query_geometry):
16941         (layout_layout): Use correct types for gheight, gwidth.
16942
16943 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16944
16945         * EmacsManager.c (QueryGeometry): Purified.
16946
16947 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16948
16949         * alloc.c (make_float): Make sure entire object is initialized, to
16950         avoid Purify warnings.
16951         (pdump_register_sub): Remove useless assignment.
16952         (pdump): Use xmalloc, not malloc.
16953         (pdump_load): Use xmalloc, not malloc.
16954
16955 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16956
16957         * callproc.c:
16958         * dired-msw.c:
16959         * fileio.c:
16960         * process-nt.c:
16961         * redisplay-msw.c:
16962         * sysdep.c: Removed redundant #include <windows.h>
16963
16964 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16965
16966         * frame.c (delete_frame_internal): Do not delete device when its
16967         implementation so declares.
16968         (delete_frame_internal): Set device selected frame to nil when
16969         last frame goes away.
16970
16971         * device-msw.c (msprinter_device_system_metrics): Implemented.
16972         (mswindows_device_system_metrics): Added 'device-dpi property.
16973
16974         * device.c: (Fdevice_printer_p): Added.
16975         Added 'offset-workspace device metric.
16976
16977         * console.h (device_metrics): Declared DM_offset_workspace.
16978
16979 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16980
16981         * fileio.c (Ffile_truename): Remove pointless and confusing
16982         initialization of elen.
16983
16984         * glyphs-widget.c: Compiler warning fixes.
16985
16986 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16987
16988         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16989         instead of a Lisp_Object as argument to make it consistent with
16990         the other LIVE_P macros.
16991         (CHECK_LIVE_PROCESS): New macro.
16992
16993         * process.c: Declare Qprocess_live_p.
16994         (Fprocess_live_p): New function.
16995         (create_process): Use PROCESS_LIVE_P.
16996         (read_process_output): Ditto.
16997         (set_process_filter): Ditto.
16998         (Fdelete_process): Ditto.
16999         (kill_buffer_processes): Ditto
17000         (process_send_signal): Use CHECK_LIVE_PROCESS.
17001         (Fprocess_input_coding_system): Check whether process is still
17002         alive (fix PR#1061).
17003         (Fprocess_output_coding_system): Ditto.
17004         (Fprocess_coding_system): Ditto.
17005         (Fset_process_input_coding_system): Ditto.
17006         (Fset_process_output_coding_system): Ditto.
17007
17008 2000-01-23  Andy Piper  <andy@xemacs.org>
17009
17010         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17011         layout and widget.
17012
17013         * glyphs.c (mark_image_instance): take into account changed
17014         image_instance format.
17015         (image_instance_equal): ditto.
17016         (image_instance_hash): ditto.
17017
17018         * glyphs-widget.c (widget_instantiate): Incorporate layout
17019         instantiation here. Delay layout of the layout until later.
17020         (layout_instantiate): deleted.
17021         (layout_query_geometry): new function. get the geometry of a
17022         layout.
17023         (layout_layout): layout a layout dynamically.
17024         (image_instantiator_widget): New function - splitting up
17025         image_instantiator_format_create_glyphs_widget for netwinder
17026         compilation.
17027         (image_instantiator_buttons):
17028         (image_instantiator_edit_fields):
17029         (image_instantiator_combo_box):
17030         (image_instantiator_scrollbar):
17031         (image_instantiator_progress_guage):
17032         (image_instantiator_tree_view):
17033         (image_instantiator_tab_control):
17034         (image_instantiator_labels):
17035         (image_instantiator_layout): ditto.
17036         (image_instantiator_format_create_glyphs_widget): Call preceding
17037         functions.
17038
17039 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17040
17041         * process.c (Fset_process_coding_system):
17042         * device-x.c (Fx_keysym_hash_table):
17043         Docstring fixes.
17044
17045         * lstream.c (Lstream_write): Return documented value, not 0.
17046
17047         * fileio.c (directory_file_name):
17048         (Fsubstitute_in_file_name):
17049         (Fsubstitute_insert_file_contents_internal):
17050         (Fwrite_region_internal):
17051         * emacs.c:
17052         * sysdep.c:
17053         * getloadavg.c:
17054         * systty.h:
17055         Remove vestigial APOLLO-conditional code.
17056
17057 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17058
17059         * getpagesize.h: Add guard macros.
17060         * libsst.h: Add guard macros.
17061         * libst.h: Add guard macros.
17062         * line-number.h: Add guard macros.
17063         * ndir.h: Add guard macros.
17064         * sysfloat.h: Add guard macros.
17065         * sysfile.h: Add guard macros.
17066         * sysproc.h: Add guard macros.
17067         * syswait.h: Add guard macros.
17068         * xintrinsic.h: Add guard macros.
17069         * xintrinsicp.h: Add guard macros.
17070         * xmmanager.h: Add guard macros.
17071         * xmmanagerp.h: Add guard macros.
17072         * xmprimitive.h: Add guard macros.
17073         * xmu.h: Add guard macros.
17074         * gpmevent.h: Add copyright statement. Add guard macros.
17075         * miscplay.h: Add guard macros.
17076         * *.h: Use consistent C-standards-approved guard macro names.
17077
17078         * opaque.c (make_opaque): Switch parameter order.
17079         * opaque.h (make_opaque): Switch parameter order.
17080         Update all callers.
17081         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17082
17083         * config.h.in (type_checking_assert): Added.
17084         (bufpos_checking_assert): Added.
17085
17086 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17087
17088         * alloc.c: Harmless pdump changes.
17089         - Use countof().
17090         - spell alignment correctly.
17091         * sysdep.c: Use countof()
17092
17093 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17094
17095         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17096         initially_selected_for_input() console method, default to 0.
17097         (semi_canonicalize_console_connection): Try to delegate to
17098         canonicalize_console_connection if no such console method.
17099         (canonicalize_console_connection): Vice versa.
17100         (print_console): Do not print nil connection.
17101
17102         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17103         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17104         (XDEVIMPF_FRAMELESS_OK): Added.
17105         (CONSOLE_INHERITS_METHOD): Added.
17106
17107         * console-msw.c (mswindows_canonicalize_console_connection):
17108         Added.
17109         (mswindows_canonicalize_device_connection): Added.
17110
17111         * console-msw.h (struct msprinter_device): Added this struct and
17112         accessor macros.
17113         (mswindows_device): Made fontlist a lisp object.
17114
17115         * device.c (semi_canonicalize_device_connection):  Try to delegate
17116         to canonicalize_device_connection if no such console method.
17117         (canonicalize_device_connection): Vice versa.
17118         (print_device): Do not print nil connection.
17119
17120         * device-msw.c (mswindows_init_device): Call InitCommonControls
17121         when have widgets.
17122         (mswindows_delete_device): Removed fontlist deallocation.
17123         (mswindows_mark_device): Added.
17124
17125         * events.c (event_equal): Added abort() at unreached code.
17126         (event_hash): Ditto.
17127
17128         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17129         fallback tags of Windows devices.
17130
17131         * general.c (syms_of_general): Initialized Qmsprinter.
17132
17133         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17134         of fallback tags of Windows devices.
17135
17136         * lisp.h: Declared Qmsprinter.
17137
17138         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17139         of strings.
17140         (mswindows_list_fonts): Ditto.
17141         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17142         that it can be used by both mswindows and msprinter devices.
17143         (initialize_font_instance): Added.
17144         (mswindows_initialize_font_instance): Use it.
17145         (msprinter_initialize_font_instance): Added.
17146
17147         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17148         and implementation flags check.
17149         (redisplay_without_hooks): Changed the call to the above.
17150         (Fredraw_device): Ditto.
17151         (Fredisplay_device): Ditto.
17152
17153         * redisplay-msw.c (get_frame_dc): Implemented.
17154         (get_frame_compdc): Implemented.
17155         (many functions): Use the two functions above to get device
17156         contexts, ether for a window or a printer.
17157
17158 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17159
17160         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17161         initialization here.
17162         (init_symbols_once_early): Call it.
17163         * emacs.c (main_1): Call it.
17164         * symsinit.h: Declare it.
17165
17166 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17167
17168         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17169         Lisp_Object.
17170         (pdump_backtrace): Ditto.
17171         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17172         (pdump_get_entry): Abort if trying to register a null pointer.
17173         (pdump_dump_data): Cleanup types when relocating.
17174         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17175         (pdump_dump_rtables): Remove bad casts.
17176         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17177         Lisp_Object instead of a EMACS_INT for the hashtable
17178         reorganization.
17179
17180 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17181
17182         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17183
17184         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17185
17186         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17187
17188         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17189
17190 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17191
17192         * faces.h (FACE_STRIKETHRU_P): Added.
17193
17194         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17195         of font variants.
17196
17197         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17198         (mswindows_set_dc_font): New function, aware of font variants,
17199         separated from mswindows_update_dc.
17200
17201         * objects-msw.h (struct mswindows_font_instance_data): Added
17202         definition.
17203
17204         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17205         cached fonts and the data structure.
17206         (mswindows_initialize_font_instance): Added creation of font data
17207         structure.
17208         (mswindows_print_font_instance): Print at least something.
17209         (mswindows_create_font_variant): Implemented.
17210         (mswindows_get_hfont): Implemented.
17211
17212 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17213
17214         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17215         prototyping problem with msvc.
17216
17217         * emacs.c (main_1): added syms_of_gui_mswindows() call
17218
17219         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17220         syms_of_gui_mswindows() function
17221
17222         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17223
17224 2000-01-18  Martin Buchholz <martin@xemacs.org>
17225
17226         * XEmacs 21.2.27 is released.
17227
17228 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17229
17230         * glyphs-eimage.c (struct tiff_error_struct):
17231         (tiff_error_func):
17232         (tiff_warning_func):
17233         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17234
17235         * unexmips.c:
17236         * unexhp9k3.c:
17237         * unexfreebsd.c:
17238         * unexec.c: Remove vestigial Lucid C code.
17239         * unexalpha.c:
17240         * unexaix.c:
17241         * termcap.c:
17242         * libsst.c: Ansify.
17243         Remove declarations of errno and strerror().
17244
17245         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17246
17247         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17248
17249 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17250
17251         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17252         Optimize.
17253
17254 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17255
17256         * md5.c:
17257         * file-coding.c:
17258         * file-coding.h:
17259         Change enum eol_type to eol_type_t.
17260
17261 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17262
17263         * gui.c (get_gui_callback): Check cons before accessing car.
17264
17265 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17266
17267         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17268         (XSETSPECIFIER_TYPE): Ditto.
17269
17270 2000-01-17  Didier Verna  <didier@xemacs.org>
17271
17272         * redisplay.c (generate_fstring_runes): compute string size in
17273         characters, not bytes.
17274
17275 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17276
17277         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17278
17279 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17280
17281         * print.c (print_error_message): Call print_prepare().
17282
17283 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17284
17285         * .dbxrc: Renamed from dbxrc.
17286
17287         * events.c (event_to_character):
17288         Use `assert (foo)' instead of `if (!foo) abort()'
17289
17290         * .gdbinit (xtype): Add documentation.
17291         * .gdbinit (check-temacs): New function.
17292         * .gdbinit (check-xemacs): New function.
17293         * dbxrc (check-xemacs): New function.
17294         * dbxrc (check-xemacs): New function.
17295
17296 2000-01-14  Andy Piper  <andy@xemacs.org>
17297
17298         * glyphs-widget.c (widget_query_geometry): Make sure that we
17299         calculate default dimensions correctly.
17300
17301 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17302
17303         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17304
17305         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17306         pdump_wire'd variable.
17307
17308         * emacs.c: (main_1): Conditionalized calls to
17309         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17310
17311 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17312
17313         * window.c (Fset_window_configuration):
17314         * sysdep.c (_start):
17315         * input-method-motif.c (res):
17316         * event-Xt.c (Xt_process_to_emacs_event):
17317         Simple compiler warning fixes.
17318
17319         * bytecode.c (funcall_compiled_function): Use the original
17320         function symbol on the backtrace list in preference to the
17321         compiled_function object in error messages.
17322
17323 2000-01-13  Andy Piper  <andy@xemacs.org>
17324
17325         * glyphs-x.c (update_widget_face): Make sure we update the widget
17326         background as well as foreground.
17327
17328 2000-01-13  Andy Piper  <andy@xemacs.org>
17329
17330         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17331         fields to subwindow.
17332         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17333         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17334         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17335         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17336
17337         * glyphs-widget.c (check_valid_tab_orientation): new function.
17338         (initialize_widget_image_instance): zero orientation and
17339         justification.
17340         (widget_instantiate): pick up orientation.
17341         (tab_control_query_geometry): return appropriate values for
17342         vertical tabs.
17343
17344         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17345         appropriate creation flags for left, right and bottom tabs.
17346
17347         * s/cygwin32.h: add tab definitions.
17348
17349 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17350
17351         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17352         frame upon hiding a subwindow.
17353         (mswindows_button_instantiate): Changed the push button style to
17354         BS_PUSHBUTTON.
17355         (mswindows_button_instantiate): Removed button BS_NOTIFY
17356         style.
17357         (mswindows_button_instantiate): Removed redundant check for
17358         a disabled gui item.
17359         (mswindows_button_instantiate): Made use of WS_TABSTOP
17360         consistent: "operable" controls (edit, button, tree, scroll) have
17361         this style, "display-only" ones (static, progress gauge) do
17362         not. This style is currently ignored by XEmacs though. Also,
17363         removed the WS_EX_CONTROLPARENT style - it is not for children,
17364         it is for their parents!
17365         (mswindows_edit_field_instantiate): Ditto.
17366         (mswindows_progress_gauge_instantiate): Ditto.
17367         (mswindows_tree_view_instantiate): Ditto.
17368         (mswindows_tab_control_instantiate): Ditto.
17369         (mswindows_scrollbar_instantiate): Ditto.
17370         (mswindows_combo_box_instantiate): Ditto.
17371         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17372         style to the "clip" window.
17373         (mswindows_button_instantiate): Removed compilation warning by
17374         equally typing terms of the ?: operator.
17375
17376 2000-01-12  Didier Verna  <didier@xemacs.org>
17377
17378         * redisplay.c (generate_fstring_runes): new parameter holding the
17379         last modeline-format extent.
17380         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17381         extent, fill the glyph block with it.
17382         (generate_fstring_runes): handle these parameters.
17383         (generate_formatted_string_db): ditto.
17384
17385         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17386         glyphs'extents in the modeline.
17387
17388 1999-01-11  Mike Woolley  <mike@bulsara.com>
17389
17390         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17391         256Mb, as a workaround for the non-starting problem many people
17392         have experienced.
17393
17394 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17395
17396         * console-tty.c (Fset_console_tty_output_coding_system):
17397         Force redrawing tty frame.
17398
17399 2000-01-10  Didier Verna  <didier@xemacs.org>
17400
17401         * redisplay.c (generate_fstring_runes): fix size computation bug.
17402
17403 2000-01-09  William M. Perry <wmperry@aventail.com>
17404
17405         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17406
17407 2000-01-09  Andy Piper  <andy@xemacs.org>
17408
17409         * glyphs-msw.c: index -> i to avoid shadows.
17410         (xbm_create_bitmap_from_data): make static.
17411         (check_valid_string_or_int): deleted.
17412         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17413
17414         * glyphs-x.c (x_update_subwindow): remove unused args.
17415
17416         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17417         back pointer - this is done in allocate_image_instance.
17418         (query_string_font): return Qnil to make the compiler happy.
17419         (unmap_subwindow): set to ~0 to make the compiler happy.
17420         (glyph_query_geometry): comment out until used.
17421         (glyph_layout): ditto.
17422
17423 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17424
17425         * insdel.c (signal_after_change): Remove extraneous unbind_to().