update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Qto_decomposition_at_compat): Deleted.
4         (Qto_decomposition_at_superscript): New variable.
5         (put_char_composition): Use `=>decomposition@superscript' instead
6         of `=decomposition' for compatibility decomposition mapping tagged
7         `super'.
8         (Fput_char_attribute): Fix condition about `put_char_composition'.
9         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
10         add news symbol `=>decomposition@superscript'.
11
12 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
15         for compatibility decomposition mapping tagged FOO.
16         (Fput_char_attribute): Modify for `put_char_composition'.
17
18 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * chartab.c (Qto_decomposition_at_compat): New variable.
21         (Q_compat_of): Renamed from `Q_compatibility_of'.
22         (put_char_composition): Rename `Q_compatibility_of' to
23         `Q_compat_of'; return `=>decomposition@compat' for compatibility
24         decomposition mapping.
25         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
26         `Q_compat_of'.
27         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
28         `<-compatibility' to `<-compat'.
29
30 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * chartab.c (Q_compatibility_of): New variable.
33         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
34         object is proved to be a cons cell; return `<-compatibility' if
35         the first element of argument `value' is `compat'.
36         (Fput_char_attribute): Eliminate the first value if
37         `put_char_composition' returns `<-compatibility'.
38         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
39         for `<-compatibility'.
40         (syms_of_chartab): Add new symbol `<-compatibility'.
41
42 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * chartab.c (Q_canonical): New variable.
45         (put_char_composition): Return a feature name: return
46         `->canonical' if argument `value' specifies single character.
47         (Fput_char_attribute): Use `put_char_composition' to determine
48         feature name for `=decomposition' or `->denotational'.
49         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
50         for `->canonical'.
51         (syms_of_chartab): Add new symbol `->canonical'.
52
53 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * chartab.c (Qmap_decomposition): New variable.
56         (Fput_char_attribute): Convert `->decomposition' to
57         `=decomposition'.
58         (syms_of_chartab): Add new symbol `=decomposition'.
59
60 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * chartab.c (Fget_range_char_table): Fix serious problem when
63         `range' is nil.
64
65 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * chartab.c (char_table_get_db): Use `read_from_c_string'.
68
69 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * lread.c (read_from_c_string): New function.
72
73         * lisp.h (read_from_c_string): New prototype.
74
75 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (Fput_char_attribute): Convert char-specs in value of
78         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
79         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
80         for `{<-|->}Oracle-Bones[^*]*'.
81
82 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
83
84         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
85         (Kizu).
86
87 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * text-coding.c (Qccs_priority_list): New variable in XEmacs
90         CHISE.
91         (Fmake_coding_system): Support new property `ccs-priority-list' in
92         XEmacs CHISE.
93         (Fcoding_system_property): Likewise.
94         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
95         Vdefault_coded_charset_priority_list in XEmacs CHISE.
96         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
97         XEmacs CHISE.
98         (complex_vars_of_file_coding): Define new coding-system-property
99         `ccs-priority-list' in XEmacs CHISE.
100
101         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
102
103 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
106         changed to normal function.
107         (encode_char_2): Likewise.
108
109         * mule-charset.c (decoding_table_put_char): Copied from
110         char-ucs.h; changed to normal function.
111         (encode_char_2): Likewise.
112
113 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
116         New extern.
117         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
118         (encode_char_2_search_children): New inline function.
119         (encode_char_2): Refer
120         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
121         and use `encode_char_2_search_children'.
122
123 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * mule-charset.c
126         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
127         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
128         (vars_of_mule_charset): Add new variable
129         `display-coded-charset-priority-use-inheritance' and
130         `display-coded-charset-priority-use-hierarchy-order'.
131
132 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
133
134         * char-ucs.h (Q_subsumptive): New extern.
135         (Q_denotational): Likewise.
136         (encode_char_2): Search children specified by `->subsumptive' and
137         `->denotational'.
138
139 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * mule-charset.c (complex_vars_of_mule_charset): Modify the
142         X-registry of `ucs-bmp'.
143
144 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
145
146         * chartab.c (char-variants): Refer `->subsumptive',
147         `->denotational' and `->identical' as same as `->ucs-unified'.
148
149 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * chartab.c (Fput_char_attribute): Convert char-specs in value of
152         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
153         links.
154
155 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * text-coding.c: Add EXFUN for `Fregexp_quote'.
158         (decode_add_er_char): Fix problem about infinite loop when a CCS
159         specified in `coded-charset-entity-reference-alist' is not
160         existed.
161
162 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * mule-charset.c (syms_of_mule_charset): Rename
165         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
166
167 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * fns.c (simplify_char_spec): Don't allocate new character-object
170         if specified char_spec does not have any CCS-features.
171
172         * chartab.h: Add EXFUN for Fdefine_char.
173
174         * chartab.c: Delete EXFUN for Fdefine_char.
175
176 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * fns.c (simplify_char_spec): Use Fdefine_char instead of
179         Ffind_char for char-spec.
180
181 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * lisp-disunion.h (XCHARVAL): Fix condition about
184         SIZEOF_EMACS_INT.
185
186 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
189         <int> for `code'.
190         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
191         point; use <Emchar> instead of <int> for character-id.
192
193 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
196         (make_char): Likewise.
197         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
198         environment.
199         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
200         instead of <int> as the type of return value; use <Lisp_Object>
201         instead of <Emchar> as the type of argument.
202         (XCHARVAL[macro version]): Cast the result into <Emchar>.
203
204         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
205         syntaxcode> instead of <int>.
206
207 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * chartab.c (put_char_composition): Use DECODE_CHAR to get
210         character corresponding with UCS code point.
211         (Fput_char_attribute): Likewise.
212
213         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
214         character in the UCS decoding-table if the char-id is not equal to
215         the UCS code point.
216
217 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
220         for aliases; write `description'; write
221         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
222         not 0.
223
224 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.c (Fsave_char_attribute_table): Don't use
227         `save_charset_properties'.
228
229         * mule-charset.c (Fsave_charset_properties): Renamed from
230         `save_charset_properties' and changed to Lisp function again;
231         write property `type' as `CCS'; write properties `final-byte' and
232         `mother' if they exists.
233         (syms_of_mule_charset): Revive builtin function
234         `save-charset-properties' when HAVE_LIBCHISE is defined.
235
236 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
239         instead of Vexec_directory.
240         (char_attribute_system_db_file): Likewise.
241
242 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * chartab.c (Fsave_char_attribute_table): Use
245         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
246         defined.
247
248         * mule-charset.c (save_charset_properties): Renamed from
249         `Fsave_charset_properties'; changed to non-Lisp function.
250         (syms_of_mule_charset): Abolish builtin function
251         `save-charset-properties'.
252
253 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * mule-charset.c (Fsave_charset_properties): New function when
256         HAVE_LIBCHISE is defined.
257         (syms_of_mule_charset): Add new builtin function
258         `save-charset-properties' when HAVE_LIBCHISE is defined.
259
260 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * chartab.c (Fput_char_attribute): Convert char-specs in value of
263         `{<-|->}ancient[^*]*' to characters and put reverse links.
264         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
265         for `{<-|->}ancient[^*]*'.
266
267 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * chartab.c (Fput_char_attribute): Convert char-specs in value of
270         `{<-|->}original[^*]*' to characters and put reverse links.
271         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
272         for `{<-|->}original[^*]*'.
273
274 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
277
278 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * mule-charset.c (Qsystem_char_id): New variable.
281
282         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
283         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
284
285 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (Fput_char_attribute): When processing a reference of
288         a character, put into the end of the reversed reference of each
289         target character.
290
291 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * chartab.c (Q_same): Deleted.
294         (Q_same_of): Deleted.
295         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
296         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
297         for `{<-|->}same'.
298         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
299
300 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * chartab.c (Q_vulgar): Deleted.
303         (Q_vulgar_of): Deleted.
304         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
305         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
306         for `{<-|->}vulgar'.
307         (syms_of_chartab): Don't define `{<-|->}vulgar'.
308
309 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * chartab.c (Fput_char_attribute): Convert char-specs in value of
312         `{<-|->}wrong[^*]*' to characters and put reverse links.
313         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
314         for `{<-|->}wrong[^*]*'.
315
316 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * chartab.c (Q_vulgar): New variable.
319         (Q_vulgar_of): New variable.
320         (Fput_char_attribute): Convert char-specs in value of
321         `{->|<-}vulgar' to characters and put reverse links.
322         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
323         for `{->|<-}vulgar'.
324         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
325
326 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * text-coding.c (decode_add_er_char): Must to quote prefix string
329         as regexp.
330
331 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * mule-charset.c (put_char_ccs_code_point): Store characters of
334         =ucs whose code_points >= 0xF0000.
335
336 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
339         CHISE.
340         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
341         CHISE.
342         (complex_vars_of_mule_charset): Add new coded-charset
343         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
344         builtin characters over 0xEFFFF.
345
346         * chartab.c (syms_of_chartab): Don't define symbol
347         `system-char-id' in every case.
348
349         * char-ucs.h (Qsystem_char_id): New extern variable.
350         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
351
352 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
353
354         * text-coding.c (char_encode_utf8): Try to use entity-references
355         for U-000F0000 ...  U-0010FFFF.
356
357 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * text-coding.c (ER_BUF_SIZE): New macro.
360         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
361         `er_buf'.
362         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
363         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
364
365 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * chartab.c (find_char_feature_in_family): New function.
368         (Fchar_feature): Use `find_char_feature_in_family' with
369         `->identical', `<-subsumptive' and `<-denotational'.
370
371 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * text-coding.c (char_encode_as_entity_reference): Allow prefix
374         within 8 characters; fix infinite loop.
375
376 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Q_same): New variable.
379         (Q_same_of): New variable.
380         (Fput_char_attribute): Convert char-specs in value of
381         `{->|<-}same' to characters and put reverse links.
382         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
383         for `{->|<-}same'.
384         (syms_of_chartab): Add new symbols `{->|<-}same'.
385
386 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * chartab.c (Q_component): New variable.
389         (Q_component_of): Likewise.
390         (Fput_char_attribute): Convert char-specs in value of
391         `{->|<-}ideographic-component-forms' to characters and put reverse
392         links.
393         (syms_of_chartab): Add new symbols
394         `{->|<-}ideographic-component-forms'.
395
396 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
397
398         * chartab.c (Q_identical): New variable.
399         (Q_identical_from): New variable.
400         (Fchar_feature): Regard `->identical' as a feature to find
401         ancestors.
402         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
403         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
404         for `{->|<-}identical'.
405         (syms_of_chartab): Add new symbols `{->|<-}identical'.
406
407 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
408
409         * char-ucs.h (encode_char_2): New inline function.
410         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
411
412 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
413
414         * chartab.c (Fput_char_attribute): Convert char-specs to
415         characters in value of `ideographic-structure'.
416         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
417         for `{<-|->}simplified(@...)'.
418         (Fdefine_char): Try to use predefined character's id.
419
420 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * fns.c (simplify_char_spec): Try to convert builtin chars to
423         defined chars.
424
425 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
426
427         * chartab.c (Fput_char_attribute): Convert char-specs in value of
428         `<-simplified[^*]*' to characters and put reverse links.
429
430 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * chartab.c (Q_subsumptive): Renamed from Q_unified.
433         (Q_subsumptive_from): Renamed from Q_unified_from.
434         (Fchar_feature): Use `Q_subsumptive_from' instead of
435         `Q_unified_from'.
436         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
437         `Q_unified'.
438         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
439         `<-unified' to `<-subsumptive'.
440
441 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
442
443         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
444         inheritance itself; fix typo; stop recursive search if cyclic
445         inheritance is found.
446
447 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * chartab.c (Q_denotational): New variable.
450         (Q_denotational_from): New variable.
451         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
452         (put_char_attribute): New function.
453         (Fput_char_attribute): Use `put_char_attribute'; regard
454         `->denotational' and `<-denotational' as same as `->unified' and
455         `<-unified'.
456         (syms_of_chartab): Add new symbols `->denotational' and
457         `<-denotational'.
458
459 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
462         `Fget_char_attribute'.
463         (Fchar_variants): Likewise.
464         (get_char_table): Likewise.
465         (Fchar_feature): New function.
466         (put_char_composition): Use `Fchar_feature' instead of
467         `Fget_char_attribute'.
468         (Fput_char_attribute): Likewise; don't put the target character
469         into its `->unified' value.
470         (syms_of_chartab): Add new builtin function `char-feature'.
471
472 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
473
474         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
475         `Fget_char_attribute'.
476         (char_encode_utf8): Likewise.
477
478         * chartab.h: Add an EXFUN for `Fchar_feature'.
479
480 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * chartab.c (Vnext_defined_char_id): New variable.
483         (Fput_char_attribute): Accept characters in `->unified'.
484         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
485         new characters which are not related with builtin char-id ranges.
486         (vars_of_chartab): Add new variable `next-defined-char-id'.
487
488 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
489
490         * chartab.c (Q_unified): New variable.
491         (Q_unified_from): New variable.
492         (Fput_char_attribute): Add code for `->unified'.
493         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
494         XEmacs CHISE.
495
496 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * mule-charset.c (decode_ccs_conversion): New function.
499         (decode_defined_char): Use `decode_ccs_conversion'.
500         (decode_builtin_char): Likewise.
501
502 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * char-ucs.h: Change some charset-ids of private coded-charsets.
505
506 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
509         (char_encode_as_entity_reference): Likewise.
510         (decode_coding_big5): Modify for `decode_defined_char' and
511         `DECODE_CHAR'.
512         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
513         avoid compiler warning.
514         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
515
516         * mule-charset.c (decode_defined_char): Add new argument
517         `without_inheritance'.
518         (Fdecode_char): Add new optional argument `without_inheritance'.
519         (Fdecode_builtin_char): Modify for `Fdecode_char'.
520
521         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
522         (simplify_char_spec): Likewise.
523
524         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
525         setting.
526
527         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
528         (map_char_table): Likewise.
529         (Fdefine_char): Use `Fdecode_char' without inheritance.
530         (Ffind_char): Modify for `Fdecode_char'.
531
532         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
533
534         * char-ucs.h (decode_defined_char): Add new argument
535         `without_inheritance'.
536         (DECODE_CHAR): Likewise.
537         (MAKE_CHAR): Modify for `DECODE_CHAR'.
538
539 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * chartab.c (Vchise_system_db_directory): New variable.
542         (vars_of_chartab): Add new variable `chise-system-db-directory'.
543
544 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c: EXFUN `Fmount_char_attribute_table'.
547         (print_chartab_range): Don't define when `UTF2000' is defined.
548         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
549         `CHISE_DS_open'.
550
551 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
554         and optional argument `rehash' is specified, call
555         `open_chise_data_source_maybe' before
556         `chise_ds_foreach_char_feature_name' is called.
557
558 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * chartab.c (char_attribute_list_reset_map_func): New function
561         when HAVE_LIBCHISE is defined.
562         (Fchar_attribute_list): Add new optional argument `rehash' when
563         HAVE_LIBCHISE is defined.
564         (open_chise_data_source_maybe): Use "chise-db" instead of
565         "char-db".
566         (char_attribute_system_db_file): Likewise.
567         (Fload_char_attribute_table): Use
568         `chise_feature_foreach_char_with_value' instead of
569         `chise_char_feature_value_iterate'.
570
571 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * chartab.c (Vchise_db_directory): New variable.
574         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
575
576 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
579         instead of HAVE_CHISE to specify using with libchise.
580
581         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
582
583         * chartab.h: Don't use HAVE_CHISE_CLIENT.
584
585         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
586         defined or HAVE_LIBCHISE_LIBCHISE is defined.
587         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
588         is defined.
589         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
590         HAVE_CHISE to specify using with libchise.
591         (syms_of_chartab): Don't define symbol `system-char-id' when
592         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
593
594 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
597         specify CHISE DB support.
598         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
599         of `char_attribute_system_db_file' to check feature DB file.
600
601         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
602         HAVE_CHISE_CLIENT to specify CHISE DB support.
603
604         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
605         specify CHISE DB support.
606         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
607         not defined.
608         (Freset_char_attribute_table): Use `chise_feature_setup_db'
609         instead of `char_attribute_system_db_file' to check feature DB
610         file.
611
612 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
613
614         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
615         `HAVE_CHISE_CLIENT'.
616
617 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
620         (Fsave_charset_mapping_table): Don't use
621         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
622
623         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
624         (HAVE_LIBCHISE): New macro.
625
626         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
627
628         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
629         (Fsave_char_attribute_table): Don't use
630         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
631
632 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
635         defined.
636         (save_uint16_byte_table): Likewise.
637         (save_byte_table): Likewise.
638         (char_table_get_db): Use `chise_ds_load_char_feature_value'
639         instead of `chise_char_load_feature_value'.
640         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
641
642 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * chartab.h (struct Lisp_Char_Table): Delete member
645         `feature_table' if CHISE is defined.
646
647         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
648         (Fcopy_char_table): Likewise.
649         (char_table_open_db_maybe): Likewise.
650         (char_table_close_db_maybe): Likewise.
651         (char_table_get_db): Likewise.
652         (Fmount_char_attribute_table): Likewise.
653         (Fload_char_attribute_table): Likewise.
654
655 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * mule-charset.c (load_char_decoding_entry_maybe): Use
658         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
659         `chise_ccs_decode'.
660
661 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
664         instead of `chise_open_data_source'.
665         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
666         `chise_ds_close'.
667
668 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
671         instead of `chise_ds_open_feature_table'.
672         (char_table_close_db_maybe): Don't use `chise_ft_close'.
673
674 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * mule-charset.c (Fsave_charset_mapping_table): Use
677         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
678         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
679         `chise_ccs_sync' instead of `chise_ccst_close'.
680         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
681
682         * chartab.c (open_chise_data_source_maybe): Modify for
683         `chise_open_data_source'.
684         (char_table_open_db_maybe): Modify for
685         `chise_ds_open_feature_table'.
686
687 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
688
689         * mule-charset.c (load_char_decoding_entry_maybe): Use
690         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
691         `chise_ccst_close'.
692
693 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * mule-charset.c (Fsave_charset_mapping_table): Use
696         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
697         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
698         `chise_dt_put_char' and `chise_dt_close'.
699         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
700         `chise_ccs_decode' and `chise_ccst_close' instead of
701         `chise_ds_open_decoding_table', `chise_dt_get_char' and
702         `chise_dt_close'.
703
704         * chartab.c (char_table_get_db): Use
705         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
706         (load_char_attribute_table_map_func): Modify for
707         `chise_char_feature_value_iterate'.
708         (Fload_char_attribute_table): Use
709         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
710
711 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
714
715 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
716
717         * chartab.c (put_char_table): Modify for inherited coded-charsets
718         in XEmacs CHISE.
719
720 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
721
722         * chartab.c (Fput_char_table_map_function): Fixed.
723         (word_boundary_p): Don't check charset in XEmacs CHISE.
724
725 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * mule-charset.c (Fsave_charset_mapping_table): Use
728         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
729         instead of `chise_open_decoding_table'; refer
730         `default_chise_data_source'; use `chise_dt_close' instead of
731         `chise_close_decoding_table'.
732         (load_char_decoding_entry_maybe): Likewise.
733
734         * chartab.c (default_chise_data_source): New variable when `CHISE'
735         is defined.
736         (Fcopy_char_table): `ct->ds' is deleted.
737         (open_chise_data_source_maybe): New function.
738         (Fclose_char_data_source): New function.
739         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
740         use `chise_ds_open_feature_table' instead of
741         `chise_open_feature_table'.
742         (char_table_close_db_maybe): Use `chise_ft_close' instead of
743         `chise_close_feature_table'; `cit->ds' is deleted.
744         (syms_of_chartab): Add new builtin function
745         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
746
747         * chartab.h (default_chise_data_source): New extern variable.
748         (open_chise_data_source_maybe): New prototype.
749         (struct Lisp_Char_Table): Delete `ds'.
750
751 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
752
753         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
754         `CHISE' is defined.
755
756 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
757
758         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
759         not defined; add code for non-libchise setting.
760         (char_table_close_db_maybe): Likewise.
761         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
762         defined.
763         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
764         even if `CHISE' is not defined.
765         (Freset_char_attribute_table): Likewise.
766         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
767         `char_table_close_db_maybe' even if `CHISE' is not defined; use
768         `char_table_get_db'.
769         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
770         `char_table_close_db_maybe' even if `CHISE' is not defined.
771
772 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * chartab.c (char_table_open_db_maybe): New function.
775         (char_table_close_db_maybe): New function.
776         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
777         (Freset_char_attribute_table): Likewise.
778         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
779         `char_table_close_db_maybe'.
780         (Fload_char_attribute_table): Likewise.
781
782 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
783
784         * chartab.c: Don't include <chise.h> because it is included in
785         chartab.h.
786         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
787         defined.
788         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
789         `CHISE' is defined.
790         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
791         `CHISE' is defined.
792         (Fclose_char_attribute_table): Close `ct->feature_table' and
793         `ct->ds' when `CHISE' is defined.
794         (Freset_char_attribute_table): Likewise.
795         (load_char_attribute_maybe): Use `cit->ds' and
796         `cit->feature_table' when `CHISE' is defined.
797         (Fload_char_attribute_table): Likewise.
798
799         * chartab.h: Include <chise.h> when `CHISE' is defined.
800         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
801         when `CHISE' is defined.
802
803 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
804
805         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
806         is defined.
807         (char_table_description): Likewise.
808         (Fmake_char_table): Likewise.
809         (Fcopy_char_table): Likewise.
810         (Fmount_char_attribute_table): Likewise.
811         (Fclose_char_attribute_table): Likewise.
812         (Freset_char_attribute_table): Likewise.
813         (load_char_attribute_maybe): Likewise.
814         (Fload_char_attribute_table): Likewise.
815
816         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
817         defined.
818
819 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
820
821         * chartab.c (load_char_attribute_table_map_func): New function
822         when CHISE is defined.
823         (Qload_char_attribute_table_map_function): Don't define when CHISE
824         is defined.
825         (Fload_char_attribute_table_map_function): Likewise.
826         (Fload_char_attribute_table): Use libchise when `CHISE' is
827         defined.
828         (syms_of_chartab): Don't define
829         `load-char-attribute-table-map-function' when CHISE is defined.
830
831 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * chartab.c: Include <chise.h> when `CHISE' is defined.
834         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
835
836 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * mule-charset.c (charset_code_point): Fix problem when searching
839         in mother CCS fails with `defined_only' mode.
840
841 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
842
843         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
844         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
845         (put_char_composition): Likewise.
846         (Fput_char_attribute): Likewise.
847         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
848
849 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
850
851         * chartab.c (Q_ucs): Deleted.
852         (Fput_char_attribute): Don't refer `->ucs'.
853         (Fdefine_char): Likewise.
854         (Ffind_char): Likewise.
855         (syms_of_chartab): Delete `->ucs'.
856
857 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
858
859         * mule-charset.c (Qmap_cns11643_2): Renamed from
860         `Qchinese_cns11643_2'.
861         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
862         `chinese-cns11643-2'.
863         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
864         `=cns11643-2'.
865
866 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
867
868         * mule-charset.c (Qmap_cns11643_1): Renamed from
869         `Qchinese_cns11643_1'.
870         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
871         `chinese-cns11643-1'.
872         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
873         `=cns11643-1'.
874
875 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
876
877         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
878         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
879         `chinese-gb12345'.
880         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
881         `=gb12345'.
882
883 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
884
885         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
886         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
887         `chinese-gb2312'.
888         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
889         `=gb2312'.
890
891 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
892
893         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
894         (syms_of_mule_charset): Add new symbol `=big5' instead of
895         `chinese-big5'.
896         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
897
898 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
899
900         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
901         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
902         `korean-ksc5601'.
903         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
904         `=ks-x1001'.
905
906 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
907
908         * mule-charset.c (Qmap_jis_x0212): Renamed from
909         `Qjapanese_jisx0212'.
910         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
911         `japanese-jisx0212'.
912         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
913         `=jis-x0212'.
914
915 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
918         `Qjapanese_jisx0208'.
919         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
920         of `japanese-jisx0208'.
921         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
922         `=jis-x0208-1983'.
923
924 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
925
926         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
927         `Qjapanese_jisx0208_1978'.
928         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
929         of `japanese-jisx0208-1978'.
930         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
931         `=jis-x0208-1978'.
932
933 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
934
935         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
936         only for XEmacs CHISE.
937
938 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * char-ucs.h: Compact non-ISO-IR charset-ids.
941         (LEADING_BYTE_UCS): Changed to -177.
942         (LEADING_BYTE_CONTROL_1): Changed to -77.
943         (LEADING_BYTE_UCS_BMP): Changed to -176.
944         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
945
946 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * mule-charset.c (Qiso_ir): New variable.
949         (Fmake_charset): Recognise new property `iso-ir'.
950         (syms_of_mule_charset): Add new symbol `iso-ir'.
951
952 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
955         n to -n; charset-id of non ISO-IR sets are changed to positive
956         numbers.
957
958 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
959
960         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
961         for &MCS-XXXXXXXX; values.
962
963 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
964
965         * mule.c (Vxemacs_chise_version): Renamed from
966         `Vutf_2000_version'.
967         (vars_of_mule): Add new variable `xemacs-chise-version'; define
968         `utf-2000-version' as an alias for `xemacs-chise-version'.
969
970 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
973         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
974         defined.
975
976         * config.h.in (CHISE): New macro.
977
978 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
979
980         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
981         of `ucs'.
982         (Qmap_ucs): New variable.
983         (syms_of_mule_charset): Add new symbol `=ucs'.
984         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
985
986         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
987         (simplify_char_spec): Likewise.
988
989         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
990
991         * char-ucs.h (Qmap_ucs): New extern variable.
992
993 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
996         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
997         don't define it when UTF2000 is not defined.
998         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
999         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1000         when UTF2000 is not defined.
1001         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1002         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1003
1004 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1007
1008         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1009         (Qucs_gb): Deleted.
1010         (syms_of_mule_charset): Delete `ucs-gb'.
1011         (complex_vars_of_mule_charset): Likewise.
1012
1013 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1016
1017         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1018         (Qucs_cns): Deleted.
1019         (syms_of_mule_charset): Delete `ucs-cns'.
1020         (complex_vars_of_mule_charset): Likewise.
1021
1022 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1023
1024         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1025
1026         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1027         (Qucs_jis): Deleted.
1028         (syms_of_mule_charset): Delete `ucs-jis'.
1029         (complex_vars_of_mule_charset): Likewise.
1030
1031 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1034
1035         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1036         (Qucs_ks): Deleted.
1037         (syms_of_mule_charset): Delete `ucs-ks'.
1038         (complex_vars_of_mule_charset): Likewise.
1039
1040 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1041
1042         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1043         (Qideograph_daikanwa_2): Deleted.
1044         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1045         (complex_vars_of_mule_charset): Likewise.
1046
1047         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1048         (LEADING_BYTE_DAIKANWA_1): Deleted.
1049         (LEADING_BYTE_DAIKANWA_2): Deleted.
1050         (MIN_CHAR_DAIKANWA): Deleted.
1051         (MAX_CHAR_DAIKANWA): Deleted.
1052
1053 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1054
1055         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1056         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1057         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1058
1059         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1060         (Vcharset_ideograph_daikanwa): Deleted.
1061         (Qideograph_hanziku_{1..12}): Deleted.
1062         (Qideograph_daikanwa): Deleted.
1063         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1064         Vcharset_ideograph_daikanwa.
1065         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1066         `ideograph-hanziku-{1..12}'.
1067         (complex_vars_of_mule_charset): Likewise.
1068
1069 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1070
1071         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1072
1073         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1074         (Qideograph_gt_pj_{1..11}): Deleted.
1075         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1076         (complex_vars_of_mule_charset): Likewise.
1077
1078 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1081         (Vcharset_ideograph_gt): Deleted.
1082         (Qucs_big5): Deleted.
1083         (Qideograph_gt): Deleted.
1084         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1085         `ideograph-gt'.
1086         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1087         and `ideograph-gt'.
1088
1089         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1090         (LEADING_BYTE_GT): Deleted.
1091         (MIN_CHAR_GT): Deleted.
1092         (MAX_CHAR_GT): Deleted.
1093
1094 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1097
1098 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1099
1100         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1101         (save_uint16_byte_table): Likewise.
1102         (save_byte_table): Likewise; convert values by it.
1103         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1104         for `ideographic-structure'.
1105         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1106         as the filter for `ideographic-structure'.
1107
1108 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * chartab.c (put_char_composition): New function.
1111         (Fput_char_attribute): Use `put_char_composition'; use
1112         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1113
1114         * fns.c (simplify_char_spec): New function.
1115         (char_ref_simplify_spec): New function.
1116         (Fchar_refs_simplify_char_specs): New function.
1117         (syms_of_fns): Add new builtin function
1118         `char-refs-simplify-char-specs'.
1119
1120 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1123         (Qideograph_cbeta): Deleted.
1124         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1125         (complex_vars_of_mule_charset): Likewise.
1126
1127         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1128         (MIN_CHAR_CBETA): Comment out.
1129         (MAX_CHAR_CBETA): Likewise.
1130
1131 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1132
1133         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1134         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1135         CHISE client feature.
1136
1137 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1140
1141 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1142
1143         * mule-charset.c (charset_lookup_description_1): Use
1144         `NUM_LEADING_BYTES' in UTF-2000.
1145
1146 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1147
1148         * char-ucs.h (GC_CHARSETP): Deleted.
1149
1150 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * char-ucs.h (MAX_CHAR_GT): Updated.
1153
1154 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1155
1156         * text-coding.c: Sync with XEmacs 21.4.10.
1157
1158 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * mule-charset.c (Vcharset_china3_jef): Deleted.
1161         (Qchina3_jef): Deleted.
1162         (syms_of_mule_charset): Don't define `china3-jef'.
1163         (complex_vars_of_mule_charset): Likewise.
1164
1165         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1166         (MIN_CHAR_CHINA3_JEF): Comment out.
1167         (MAX_CHAR_CHINA3_JEF): Comment out.
1168
1169 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1170
1171         * mule-charset.c (Vcharset_ucs_gb): New variable.
1172         (Qucs_gb): New variable.
1173         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1174         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1175
1176         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1177
1178 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule-charset.c (charset_code_point): if a coded-charset has a
1181         final-byte, don't inherit the builtin range of the mother CCS.
1182
1183 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (charset_code_point): Fix problem about
1186         inheritance.
1187
1188 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * mule-charset.c (decode_builtin_char): Reorganized.
1191
1192 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * text-coding.c (char_encode_as_entity_reference): Modify for
1195         `charset_code_point'.
1196         (char_encode_shift_jis): Likewise.
1197         (char_encode_big5): Likewise.
1198         (char_encode_utf8): Likewise.
1199         (char_encode_iso2022): Likewise.
1200
1201         * mule-charset.c (charset_code_point): Add new argument
1202         `defined_only'.
1203         (Fencode_char): Add new optional argument `defined_only'.
1204
1205         * chartab.c (put_char_table): Modify for `charset_code_point'.
1206
1207         * char-ucs.h (charset_code_point): Add new argument
1208         `defined_only'.
1209         (encode_char_1): Modify for `charset_code_point'.
1210
1211 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1214         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1215
1216 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217
1218         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1219         (Qjis_x0208): Likewise.
1220         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1221         XCHARSET_FINAL(charset).
1222         (charset_code_point): Modify condition for final-byte based
1223         builtin-chars.
1224         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1225         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1226         in UTF-2000; specify `=jis-x0208' as the mother of
1227         `japanese-jisx0208-1978', `japanese-jisx0208' and
1228         `japanese-jisx0208-1990' in UTF-2000.
1229
1230 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1231
1232         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1233
1234 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1235
1236         * text-coding.c (decode_coding_utf16): Support UTF-16.
1237         (char_encode_utf16): Fixed.
1238
1239 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * text-coding.c (Qutf16): New variable in MULE.
1242         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1243         (Fcoding_system_type): Add `utf-16' in MULE.
1244         (struct detection_state): Add a structure for utf16 in MULE.
1245         (detect_coding_type): Setup st->utf16.mask in MULE.
1246         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1247         MULE.
1248         (reset_encoding_stream): Use `char_encode_utf16' and
1249         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1250         (detect_coding_utf16): New function [incomplete].
1251         (decode_coding_utf16): New function [support only UCS-2].
1252         (char_encode_utf16): New function.
1253         (char_finish_utf16): New function.
1254         (syms_of_file_coding): Add new symbol `utf-16'; setup
1255         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1256
1257         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1258         UTF-2000.
1259         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1260         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1261
1262 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1263
1264         * chartab.c (put_char_table): When a charset is specified as a
1265         range in UTF-2000, don't support builtin characters.
1266
1267 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * mule-charset.c (decode_defined_char): Don't refer external
1270         database if Qunbound or Qnil are found.
1271         (Fsave_charset_mapping_table): Don't define it if
1272         HAVE_CHISE_CLIENT is not defined.
1273         (Freset_charset_mapping_table): New function.
1274         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1275         found in external database.
1276         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1277         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1278         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1279
1280 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1281
1282         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1283         not.
1284
1285 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1286
1287         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1288         Q_lowercase, Q_uppercase in UTF-2000.
1289
1290         * chartab.c (get_char_table): Add special code for the standard
1291         case table to use character attribute `->downcase' and
1292         `->uppercase' for case operations in UTF-2000.
1293
1294         * casetab.c (Qflippedcase): New variable in UTF-2000.
1295         (Q_lowercase): Likewise.
1296         (Q_uppercase): Likewise.
1297         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1298         and `->uppercase' in UTF-2000.
1299         (complex_vars_of_casetab): Assign attribute name `downcase' to
1300         downcase and CANON table of Vstandard_case_table in UTF-2000;
1301         assign attribute name `flippedcase' to upcase and EQV table of
1302         Vstandard_case_table in UTF-2000.
1303
1304 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1305
1306         * text-coding.c (decode_add_er_char): Support isolated-chars.
1307         (char_encode_as_entity_reference): Likewise.
1308
1309 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1310
1311         * emacs.c (Vutf_2000_lisp_directory): New variable.
1312         (Vconfigure_utf_2000_lisp_directory): Likewise.
1313         (complex_vars_of_emacs): Add new variable
1314         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1315
1316 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * char-ucs.h (DECODE_CHAR): Delete special code for
1319         `chinese-big5-1' and `chinese-big5-2'.
1320
1321         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1322         (Qbig5_2): Likewise.
1323         (decode_defined_char): Support CONVERSION_BIG5_1 and
1324         CONVERSION_BIG5_2.
1325         (decode_builtin_char): Likewise.
1326         (charset_code_point): Likewise.
1327         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1328         'conversion in UTF-2000.
1329         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1330         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1331         `chinese-big5-2' as children of `chinese-big5'.
1332
1333         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1334         (CONVERSION_BIG5_2): New macro.
1335
1336 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1337
1338         * text-coding.c (char_encode_big5): Support entity-reference.
1339
1340 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1341
1342         * text-coding.c (char_encode_as_entity_reference): New function.
1343         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1344
1345 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1346
1347         * text-coding.c (decode_coding_big5): Support entity-reference
1348         decoding feature.
1349
1350 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * text-coding.c (allocate_coding_system): Initialize initial
1353         charsets for CODESYS_UTF8.
1354         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1355         charset-g2 for CODESYS_UTF8.
1356         (decode_coding_utf8): Use charset-g0.
1357         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1358         to force variants to map to UCS.
1359
1360 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361
1362         * text-coding.c (Qutf_8_mcs): New variable.
1363         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1364         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1365         instead of `utf-8' in UTF-2000.
1366
1367 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1370         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1371         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1372         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1373         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1374         CONVERSION_96x96x96x96 are introduced.
1375         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1376         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1377         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1378
1379         * char-ucs.h (CONVERSION_94): New macro.
1380         (CONVERSION_96): New macro.
1381         (CONVERSION_94x94): New macro.
1382         (CONVERSION_96x96): New macro.
1383         (CONVERSION_94x94x94): New macro.
1384         (CONVERSION_96x96x96): New macro.
1385         (CONVERSION_94x94x94x60): New macro.
1386         (CONVERSION_94x94x94x94): New macro.
1387         (CONVERSION_96x96x96x96): New macro.
1388
1389 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * chartab.c (Vcharacter_variant_table): Deleted.
1392         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1393         of `Vcharacter_variant_table'.
1394         (Fput_char_attribute): Likewise.
1395         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1396         (complex_vars_of_chartab): Likewise.
1397
1398 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1399
1400         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1401
1402         * fns.c (Qideographic_structure): New variable.
1403         (Qkeyword_char): New variable.
1404         (ids_format_unit): New function.
1405         (Fideographic_structure_to_ids): New function.
1406         (syms_of_fns): Add new symbols `ideographic-structure' and
1407         `:char'; add new builtin function `ideographic-structure-to-ids'.
1408
1409         * data.c (Fchar_ref_p): New function.
1410         (syms_of_data): Add new builtin function `char-ref-p'.
1411
1412         * chartab.h: Add an EXFUN for `Ffind_char'.
1413
1414 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415
1416         * text-coding.c (Vcharacter_composition_table): Deleted.
1417         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1418         in every UTF-2000.
1419
1420         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1421         UTF-2000.
1422         (Vcharacter_composition_table): Deleted.
1423         (Fget_composite_char): Use the implementation for external-DB
1424         support in every UTF-2000.
1425         (Fput_char_attribute): Likewise.
1426         (char_attribute_system_db_file): Don't define if external-DB
1427         feature is not available.
1428         (Fsave_char_attribute_table): Likewise.
1429         (Fmount_char_attribute_table): Likewise.
1430         (Fclose_char_attribute_table): Likewise.
1431         (Freset_char_attribute_table): Likewise.
1432         (Fload_char_attribute_table): Likewise.
1433         (syms_of_chartab): Don't define `save-char-attribute-table',
1434         `mount-char-attribute-table', `reset-char-attribute-table',
1435         `close-char-attribute-table' and `load-char-attribute-table' if
1436         external-DB feature is not available.
1437         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1438
1439 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1440
1441         * text-coding.c (Qcomposition): Add extern if external-DB feature
1442         is supported.
1443         (Vcharacter_composition_table): Don't add extern if external-DB
1444         feature is supported.
1445         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1446         character composition rule if external-DB feature is supported.
1447
1448         * chartab.c (Vcharacter_composition_table): Don't define if
1449         external-DB feature is supported.
1450         (Qcomposition): New variable.
1451         (Fget_composite_char): New implementation for external-DB support.
1452         (Fput_char_attribute): Use `composition' property of each
1453         character instead of `Vcharacter_composition_table' to store
1454         character-composition rules if external-DB feature is supported.
1455         (syms_of_chartab): Add new symbol `composition'.
1456         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1457         external-DB feature is supported.
1458
1459 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1460
1461         * chartab.c (Vchar_db_stingy_mode): New variable.
1462         (load_char_attribute_maybe): Close database if
1463         Vchar_db_stingy_mode is not NIL.
1464         (Fload_char_attribute_table_map_function): Use
1465         `get_char_id_table_0' instead of `get_char_id_table'.
1466         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1467
1468         * chartab.h (get_char_id_table_0): New inline function.
1469         (get_char_id_table): Use `get_char_id_table_0'.
1470
1471 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1472
1473         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1474         and `COMPOSE_ADD_CHAR'.
1475         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1476
1477 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1478
1479         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1480         instead of `DECODE_ADD_UCS_CHAR'.
1481         (COMPOSE_ADD_CHAR): Likewise.
1482
1483 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * text-coding.c (decode_flush_er_chars): New inline function.
1486         (decode_add_er_char): New function.
1487         (decode_coding_utf8): Use `decode_flush_er_chars' and
1488         `decode_add_er_char'.
1489
1490 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1493         done before `decode_output_utf8_partial_char'.
1494
1495         * mule-charset.c (complex_vars_of_mule_charset): Specify
1496         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1497         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1498
1499 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1500
1501         * mule-charset.c (decode_defined_char): New function; search
1502         mother.
1503         (decode_builtin_char): Don't search mother if
1504         XCHARSET_MAX_CODE(charset) == 0.
1505         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1506         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1507         (Fdecode_char): Use `decode_defined_char' instead of
1508         `DECODE_DEFINED_CHAR'.
1509         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1510         mother of `Vcharset_ucs_jis'.
1511
1512         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1513         instead of `DECODE_DEFINED_CHAR'.
1514
1515         * char-ucs.h (decode_defined_char): Renamed from
1516         `DECODE_DEFINED_CHAR'; changed to normal function.
1517         (DECODE_CHAR): Use `decode_defined_char' instead of
1518         `DECODE_DEFINED_CHAR'.
1519
1520         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1521
1522 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1523
1524         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1525
1526         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1527         variable.
1528         (Quse_entity_reference): New variable.
1529         (Qd): New variable.
1530         (Qx): New variable.
1531         (QX): New variable.
1532         (coding_system_description): Add description for
1533         `ccs_priority_list'.
1534         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1535         (allocate_coding_system): Initialize `ccs_priority_list' in
1536         UTF-2000.
1537         (Fmake_coding_system): Add description about
1538         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1539         (codesys).
1540         (Fcoding_system_property): Accept `disable-composition' and
1541         `use-entity-reference' in UTF-2000.
1542         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1543         in UTF-2000.
1544         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1545         (decode_coding_utf8): Decode entity-reference if
1546         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1547         (char_encode_utf8): Encode non-Unicode characters as
1548         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1549         (str->codesys).
1550         (syms_of_file_coding): Add new symbols `use-entity-reference',
1551         `d', `x', `X'.
1552         (vars_of_file_coding): Add new variable
1553         `coded-charset-entity-reference-alist'.
1554         (complex_vars_of_file_coding): Declare `disable-composition' and
1555         `use-entity-reference' to be coding-system-properties in UTF-2000.
1556
1557         * file-coding.h (struct Lisp_Coding_System): Add new member
1558         `use_entity_reference' and `ccs_priority_list'.
1559         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1560         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1561         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1562
1563 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * chartab.c (save_uint8_byte_table): Don't clear the table.
1566         (save_uint16_byte_table): Likewise.
1567         (save_byte_table): Likewise.
1568         (Fmount_char_attribute_table): New function.
1569         (syms_of_chartab): Add new builtin function
1570         `mount-char-attribute-table'.
1571
1572 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573
1574         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1575         "w+" mode.
1576         (load_char_decoding_entry_maybe): Open database as read-only mode.
1577
1578         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1579         open database as "w+" mode.
1580         (load_char_attribute_maybe): Open database as read-only mode.
1581         (Fload_char_attribute_table): Likewise.
1582
1583 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584
1585         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1586         (char_table_description): Delete member `db_file'.
1587         (Fmake_char_table): Don't refer `ct->db_file'.
1588         (Fcopy_char_table): Likewise.
1589         (Fsave_char_attribute_table): Likewise.
1590         (Fclose_char_attribute_table): Likewise.
1591         (Freset_char_attribute_table): Likewise.
1592         (load_char_attribute_maybe): Likewise.
1593         (Fload_char_attribute_table): Likewise.
1594
1595         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1596
1597 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1598
1599         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1600         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1601         `ct->db' is living.
1602         (load_char_attribute_maybe): Likewise.
1603         (Fload_char_attribute_table): Likewise.
1604
1605 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1606
1607         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1608         `ct->db_file' unconditionally.
1609
1610 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1611
1612         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1613         UTF-2000.
1614         (char_table_description): Add description for `db_file' and `db'
1615         in UTF-2000.
1616         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1617         UTF-2000.
1618         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1619         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1620         (Fclose_char_attribute_table): New function.
1621         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1622         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1623         and `cit->db'.
1624         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1625         (syms_of_chartab): Add new builtin function
1626         `Fclose_char_attribute_table'.
1627
1628 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1629
1630         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1631         `db' in UTF-2000.
1632         (load_char_attribute_maybe): Change interface.
1633         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1634
1635 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1636
1637         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1638
1639 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1642         instead of `DECODE_CHAR' for mother; don't use special code for
1643         chinese-big5 to use code space of chinese-big5-1 and
1644         chinese-big5-2.
1645         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1646         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1647
1648         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1649         (MAX_CHAR_BIG5_CDP): Revival.
1650
1651 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1654         the XLFD registry-encoding name of `chinese-big5'.
1655
1656 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1657
1658         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1659         (Qchinese_big5_cdp): Deleted.
1660         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1661         (complex_vars_of_mule_charset): Delete coded-charset
1662         `chinese-big5-cdp'.
1663
1664         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1665         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1666         `CHARSET_ID_OFFSET - n' for private CCS.
1667         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1668         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1669         of `MIN_LEADING_BYTE'.
1670         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1671         `(CHARSET_ID_OFFSET - 97)'.
1672         (MIN_CHAR_BIG5_CDP): Deleted.
1673         (MAX_CHAR_BIG5_CDP): Deleted.
1674
1675 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1676
1677         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1678
1679 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680
1681         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1682         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1683         chartab.c].
1684
1685         * chartab.c (Vutf_2000_version): Moved to mule.c.
1686         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1687
1688 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1689
1690         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1691         when HAVE_CHISE_CLIENT is not defined.
1692
1693         * mule.c (vars_of_mule): Provide feature `chise' when
1694         HAVE_CHISE_CLIENT is defined.
1695
1696 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1697
1698         * config.h.in (UTF2000): Add comment.
1699         (HAVE_CHISE_CLIENT): New macro.
1700
1701 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1702
1703         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1704         CONSP.
1705         (Fput_char_attribute): Likewise.
1706         (char_attribute_system_db_file): Encode file-name of attribute.
1707         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1708         the initial value.
1709
1710 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1711
1712         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1713         (Fsave_charset_mapping_table): Use
1714         `char_attribute_system_db_file'.
1715         (load_char_decoding_entry_maybe): Likewise.
1716
1717         * chartab.h (Qsystem_char_id): New external variable.
1718         (char_attribute_system_db_file): New prototype.
1719
1720         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1721         (char_attribute_system_db_file): New function.
1722         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1723         (Freset_char_attribute_table): Likewise.
1724         (load_char_attribute_maybe): Likewise.
1725         (Fload_char_attribute_table): Likewise.
1726         (syms_of_chartab): Add new symbol `system-char-id'.
1727
1728 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1729
1730         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1731         `XCHARSET_GRAPHIC(ccs)'.
1732
1733 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1734
1735         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1736
1737 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * chartab.c (Q_ucs_variants): New variable.
1740         (syms_of_chartab): Add new symbol `->ucs-variants'.
1741         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1742         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1743         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1744
1745         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1746
1747         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1748         `HAVE_DATABASE' is defined.
1749         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1750         `HAVE_DATABASE' is defined.
1751
1752 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1753
1754         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1755         attribute-table.
1756         (Freset_char_attribute_table): New function.
1757         (syms_of_chartab): Add new builtin function
1758         `reset-char-attribute-table'.
1759
1760 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1761
1762         * chartab.c (load_char_attribute_maybe): Don't make directories.
1763
1764 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1765
1766         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1767
1768         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1769         for decoding-table.
1770
1771 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1772
1773         * mule-charset.c (Fsave_charset_mapping_table): Use
1774         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1775
1776         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1777         instead of `XCHARSET_CHARS'.
1778
1779 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1780
1781         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1782         (XCHARSET_BYTE_SIZE): Likewise.
1783
1784         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1785         mule-charset.c].
1786         (XCHARSET_BYTE_SIZE): Likewise.
1787
1788 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1789
1790         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1791         data-directory to store database.
1792         (Fsave_char_attribute_table): Likewise.
1793         (load_char_attribute_maybe): Likewise.
1794         (Fload_char_attribute_table): Likewise.
1795
1796 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1797
1798         * mule-charset.c (Fsave_charset_mapping_table): New function.
1799         (syms_of_mule_charset): Add new builtin function
1800         `save-charset-mapping-table'.
1801
1802 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803
1804         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1805         (get_ccs_octet_table): New inline function.
1806         (put_ccs_octet_table): Likewise.
1807         (decoding_table_put_char): Use `get_ccs_octet_table' and
1808         `put_ccs_octet_table'.
1809         (decoding_table_remove_char): Use `decoding_table_put_char'.
1810         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1811
1812         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1813         into encoding_table.
1814         (make_charset): Use Qunbound instead Qnil as initial value of
1815         decoding_table.
1816
1817 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1818
1819         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1820         element is Qunloaded.
1821         (map_over_uint16_byte_table): Likewise.
1822         (map_over_byte_table): Likewise.
1823         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1824         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1825         database support, load encoding-table of the specified
1826         coded-charset if it is not loaded yet.
1827         (save_uint8_byte_table): New function of UTF-2000 with external
1828         database support.
1829         (save_uint16_byte_table): Likewise.
1830         (save_byte_table): Likewise.
1831         (Fput_char_attribute): Don't store value into external database
1832         even if the external database feature is supported in UTF-2000;
1833         set `attribute' as name of char-table if the external database
1834         feature is supported.
1835         (Fsave_char_attribute_table): New function in UTF-2000.
1836         (syms_of_chartab): Add new builtin function
1837         `save-char-attribute-table' in UTF-2000.
1838
1839 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1840
1841         * chartab.c (char_attribute_table_to_put): New variable in
1842         UTF-2000.
1843         (Qput_char_table_map_function): Likewise.
1844         (value_to_put): Likewise.
1845         (Fput_char_table_map_function): New function in UTF-2000.
1846         (put_char_table): Use `Fmap_char_attribute' for
1847         CHARTAB_RANGE_CHARSET in UTF-2000.
1848         (Fput_char_attribute): Store symbol instead of string in
1849         `XCHAR_TABLE_NAME (table)'.
1850         (load_char_attribute_maybe): Likewise.
1851         (syms_of_chartab): Add new symbol/function
1852         `put-char-table-map-function'.
1853
1854 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1855
1856         * database.h: Add new EXFUN for `Fmap_database'.
1857
1858         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1859         (syms_of_database): Likewise.
1860
1861         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1862         UTF-2000.
1863         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1864         (XCHAR_TABLE_UNLOADED): Likewise.
1865
1866         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1867         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1868         HAVE_DATABASE is defined.
1869         (char_attribute_table_to_load): New variable of UTF-2000 with
1870         external database support.
1871         (Qload_char_attribute_table_map_function): Likewise.
1872         (Fload_char_attribute_table_map_function): New function of
1873         UTF-2000 with external database support.
1874         (Fload_char_attribute_table): New function of UTF-2000.
1875         (Fmap_char_attribute): Call Fload_char_attribute_table if
1876         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1877         (syms_of_chartab): Add new symbol and function
1878         `load-char-attribute-table-map-function' in UTF-2000 with external
1879         database support; add new function `load-char-attribute-table' in
1880         UTF-2000.
1881
1882 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * chartab.h (load_char_attribute_maybe): New prototype for
1885         UTF-2000 with DATABASE support.
1886         (get_char_id_table): Use `load_char_attribute_maybe' if
1887         HAVE_DATABASE is defined.
1888
1889         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1890         with DATABASE support.
1891
1892 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893
1894         * chartab.c (Fput_char_attribute): Use S-expression as key of
1895         external database.
1896
1897         * chartab.h (get_char_id_table): Use S-expression as key of
1898         external database.
1899
1900 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1903         if an element is not loaded, load the corresponding attributes
1904         from an external database.
1905         (map_over_uint16_byte_table): Likewise.
1906         (map_over_byte_table): Likewise.
1907         (map_char_table): Modify for `map_over_uint8_byte_table',
1908         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1909         element is not loaded, load the corresponding attributes from an
1910         external database.
1911         (Fput_char_attribute): Change initial values to Qunloaded.
1912
1913         * chartab.h (get_char_id_table): If a character attribute is not
1914         loaded and the attribute value is not found in an external
1915         database, store Qunbound as the attribute value.
1916
1917 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1918
1919         * chartab.c (BT_UINT8_unloaded): New macro.
1920         (UINT8_VALUE_P): Accept Qunloaded.
1921         (UINT8_ENCODE): Likewise.
1922         (UINT8_DECODE): Likewise.
1923         (BT_UINT16_unloaded): New macro.
1924         (UINT16_VALUE_P): Accept Qunloaded.
1925         (UINT16_ENCODE): Likewise.
1926         (UINT16_DECODE): Likewise.
1927         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1928         BT_UINT16_unloaded.
1929         (mark_char_table): Mark `ct->name' in UTF-2000.
1930         (char_table_description): Add `name' in UTF-2000.
1931         (Fmake_char_table): Initialize `ct->name'.
1932         (Fcopy_char_table): Copy `ct->name'.
1933         (Fput_char_attribute): Store value into an external database if
1934         HAVE_DATABASE is defined.
1935
1936         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1937         UTF-2000.
1938         (CHAR_TABLE_NAME): New macro in UTF-2000.
1939         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1940         (get_char_id_table): Try to read an external database if Qunloaded
1941         is stored in a table.
1942
1943         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1944         Qunloaded.
1945
1946 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1947
1948         * database.h: Add EXFUN definitions for Fopen_database,
1949         Fput_database, Fget_database and Fclose_database.
1950
1951         * data.c (Qunloaded): New variable in UTF-2000.
1952
1953         * lisp.h (Qunloaded): New variable in UTF-2000.
1954
1955 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * mule-charset.c (put_char_ccs_code_point): Modify for
1958         `decoding_table_remove_char' and `decoding_table_put_char'.
1959         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1960
1961         * char-ucs.h (decoding_table_remove_char): Change arguments to
1962         hide decoding_table vector.
1963         (decoding_table_put_char): Likewise.
1964
1965 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1966
1967         * mule-charset.c (decoding_table_remove_char): Moved to
1968         char-ucs.h.
1969         (decoding_table_put_char): Likewise.
1970
1971         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1972         from mule-charset.c].
1973         (decoding_table_remove_char): New inline function [moved from
1974         mule-charset.c].
1975         (decoding_table_put_char): Likewise.
1976
1977 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1978
1979         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1980         extension.
1981
1982 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1983
1984         * mule-charset.c (decode_builtin_char): Support mother charsets.
1985
1986 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1987
1988         * mule-charset.c (Q94x94x60): New variable.
1989         (charset_code_point): Support conversion `94x94x60'.
1990         (Fmake_charset): Likewise.
1991         (syms_of_mule_charset): Add new symbol `94x94x60'.
1992
1993         * char-ucs.h (CONVERSION_94x94x60): New macro.
1994
1995 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1996
1997         * mule-charset.c (charset_code_point): Unify code about
1998         `code-offset'.
1999
2000 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2001
2002         * mule-charset.c (charset_code_point): Merge code about builtin
2003         characters into code about mother charsets; don't use
2004         `range_charset_code_point'.
2005         (range_charset_code_point): Deleted.
2006
2007 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2008
2009         * mule-charset.c (Qcode_offset): New variable.
2010         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2011         `max-code'; accept new property `code-offset'.
2012         (syms_of_mule_charset): Add new symbol `code-offset'.
2013
2014 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * mule-charset.c (range_charset_code_point): Fixed.
2017
2018 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * mule-charset.c (decode_builtin_char): Change semantics of
2021         code-offset of coded-charset.
2022         (charset_code_point): Likewise.
2023         (range_charset_code_point): Likewise.
2024         (complex_vars_of_mule_charset): Modify for the change.
2025
2026 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * mule-charset.c (Fencode_char): Reverse arguments.
2029
2030         * mule-charset.c (charset_code_point): Fixed.
2031
2032 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2033
2034         * mule-charset.c (Vcharset_mojikyo): Deleted.
2035         (Vcharset_mojikyo_2022_1): Deleted.
2036         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2037         (Qmin_code): New variable in UTF-2000.
2038         (Qmax_code): Likewise.
2039         (Qmother): Likewise.
2040         (Qconversion): Likewise.
2041         (Q94x60): Likewise.
2042         (Qmojikyo): Deleted.
2043         (Qmojikyo_2022_1): Deleted.
2044         (Qmojikyo_pj_{1..22}): Deleted.
2045         (mark_charset): Mark `cs->mother'.
2046         (charset_description): Add description for `mother'.
2047         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2048         new arguments `mother' and `conversion'; use
2049         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2050         (charset_code_point): Moved from char-ucs.h; support `mother'
2051         charset feature.
2052         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2053         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2054         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2055         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2056         allow 2 as the value of `graphic' in UTF-2000; add new properties
2057         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2058         require `final' in UTF-2000; modify for `make_charset'.
2059         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2060         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2061         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2062         (Fencode_char): New function.
2063         (syms_of_mule_charset): Add new builtin function `encode-char' in
2064         UTF-2000; add new symbols `min-code', `max-code', `mother',
2065         `conversion' and `94x60'; delete symbols `mojikyo',
2066         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2067         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2068         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2069         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2070
2071         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2072         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2073
2074         * char-ucs.h (Vcharset_mojikyo): Deleted.
2075         (Vcharset_mojikyo_2022_1): Deleted.
2076         (LEADING_BYTE_MOJIKYO): Deleted.
2077         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2078         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2079         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2080         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2081         add new member `mother'; add new member `conversion'.
2082         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2083         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2084         (CHARSET_MOTHER): New macro.
2085         (CHARSET_CONVERSION): New macro.
2086         (CONVERSION_IDENTICAL): New macro.
2087         (CONVERSION_94x60): New macro.
2088         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2089         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2090         (XCHARSET_MOTHER): New macro.
2091         (XCHARSET_CONVERSION): New macro.
2092         (MIN_CHAR_MOJIKYO): Deleted.
2093         (MAX_CHAR_MOJIKYO): Deleted.
2094         (DECODE_MOJIKYO_2022): Deleted.
2095         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2096         (charset_code_point): Changed to non-inline function.
2097         (encode_char_1): Use `charset_code_point'.
2098         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2099
2100 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * lread.c (read_compiled_function): Fix prototype.
2103         (read_vector): Likewise.
2104
2105 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2106
2107         * lrecord.h (struct lrecord_header): Delete `older'.
2108         (set_lheader_implementation): Delete code for `older'.
2109         (set_lheader_older_implementation): Deleted.
2110         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2111         (OLDER_RECORD_P): Deleted.
2112         (OLDER_RECORD_HEADER_P): Deleted.
2113         (alloc_older_lcrecord): Deleted.
2114         (alloc_older_lcrecord_type): Deleted.
2115
2116         * alloc.c (all_older_lcrecords): Deleted.
2117         (alloc_older_lcrecord): Deleted.
2118         (disksave_object_finalization_1): Delete code for older objects.
2119         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2120         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2121
2122 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2125         instead of `make_older_vector'.
2126         (put_char_ccs_code_point): Likewise.
2127         (mark_charset): Mark `cs->decoding_table'.
2128         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2129
2130         * lisp.h (make_older_vector): Deleted.
2131         (make_vector_newer): Deleted.
2132
2133         * config.h.in (HAVE_GGC): Deleted.
2134
2135         * alloc.c (make_older_vector): Deleted.
2136         (make_vector_newer_1): Deleted.
2137         (make_vector_newer): Deleted.
2138
2139 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140
2141         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2142         (Qideograph_daikanwa_2): New variable.
2143         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2144         (complex_vars_of_mule_charset): Add new coded-charset
2145         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2146         `LEADING_BYTE_DAIKANWA'.
2147
2148         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2149         (LEADING_BYTE_DAIKANWA_1): New macro.
2150         (LEADING_BYTE_DAIKANWA_2): New macro.
2151         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2152
2153 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2154
2155         * mule-charset.c (complex_vars_of_mule_charset): Change
2156         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2157         the second revised version.
2158
2159 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * mule-charset.c (Vcharset_ucs_smp): New variable.
2162         (Vcharset_ucs_sip): New variable.
2163         (Qucs_smp): New variable.
2164         (Qucs_sip): New variable.
2165         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2166         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2167         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2168         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2169         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2170         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2171
2172         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2173         (LEADING_BYTE_UCS_SIP): New macro.
2174         (MIN_CHAR_SMP): New macro.
2175         (MAX_CHAR_SMP): New macro.
2176         (MIN_CHAR_SIP): New macro.
2177         (MAX_CHAR_SIP): New macro.
2178
2179 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2180
2181         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2182         utf-2000.
2183
2184 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185
2186         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2187         value; don't store value into `encoding_table' of `Lisp_Charset'.
2188         (mark_charset): `encoding_table' was deleted.
2189         (charset_description): Likewise.
2190         (make_charset): Likewise.
2191         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2192         `put_char_ccs_code_point'.
2193
2194         * chartab.h (Fput_char_attribute): New EXFUN.
2195
2196         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2197         is unified with normal symbol space.
2198         (Fget_char_attribute): Likewise.
2199         (Fput_char_attribute): Likewise; behavior of
2200         `put_char_ccs_code_point' is changed.
2201
2202         * char-ucs.h: Include "elhash.h".
2203         (Vchar_attribute_hash_table): New external variable.
2204         (struct Lisp_Charset): Delete `encoding_table'.
2205         (CHARSET_ENCODING_TABLE): New implementation; refer
2206         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2207         `Lisp_Charset'.
2208
2209 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2210
2211         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2212         (cs) == 0.
2213
2214 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2215
2216         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2217         `chinese-big5'.
2218
2219 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * chartab.c (uint8_byte_table_description): New constant.
2222         (uint8-byte-table): Use `uint8_byte_table_description'.
2223         (uint16_byte_table_description): New constant.
2224         (uint16-byte-table): Use `uint16_byte_table_description'.
2225
2226 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2227
2228         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2229         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2230
2231 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2232
2233         * mule-charset.c (Vcharset_ucs_ks): New variable.
2234         (Qucs_ks): New variable.
2235         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2236         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2237
2238         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2239
2240 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241
2242         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2243         (Fdecode_char): Likewise.
2244
2245         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2246         chartab.h.
2247         (Fdefine_char): Modify for Fdecode_char.
2248         (Ffind_char): Likewise.
2249
2250         * mule-charset.c (Fdecode_char): Add new optional argument
2251         `defined-only'.
2252         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2253
2254 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2255
2256         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2257         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2258         (allocate_coding_system): Initialize initial-charsets of
2259         CODESYS_BIG5 in XEmacs UTF-2000.
2260         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2261         CODESYS_BIG5 in XEmacs UTF-2000.
2262         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2263         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2264
2265         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2266         variables.
2267         (Qideograph_hanziku_{1 .. 12}): Likewise.
2268         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2269         .. 12}'.
2270         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2271         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2272         `ideograph-hanziku-{1 .. 12}'.
2273
2274         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2275         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2276         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2277         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2278         (DECODE_DEFINED_CHAR): New inline function.
2279         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2280
2281 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2282
2283         * mule-charset.c (Vcharset_china3_jef): Renamed from
2284         `Vcharset_japanese_jef_china3'.
2285         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2286         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2287         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2288         (syms_of_mule_charset): Rename `china3-jef' from
2289         `japanese-jef-china3'.
2290         (complex_vars_of_mule_charset): Likewise; rename
2291         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2292
2293         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2294         `LEADING_BYTE_JEF_CHINA3'.
2295         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2296         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2297
2298 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * mule-charset.c (encode_builtin_char_1): Comment out special code
2301         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2302
2303         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2304         (MAX_CHAR_MOJIKYO_0): Comment out.
2305         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2306         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2307         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2308         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2309
2310 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2313         (Qideograph_cbeta): New variable.
2314         (encode_builtin_char_1): Comment out special code for
2315         coded-charset `mojikyo' and `japanese-jef-china3'.
2316         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2317         (complex_vars_of_mule_charset): Add new coded-charset
2318         `ideograph-cbeta'.
2319
2320         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2321         (MIN_CHAR_CBETA): New macro.
2322         (MAX_CHAR_CBETA): New macro.
2323
2324 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2327         (LEADING_BYTE_JEF_CHINA3): New macro.
2328         (MIN_CHAR_JEF_CHINA3): New macro.
2329         (MAX_CHAR_JEF_CHINA3): Likewise.
2330         (DECODE_CHAR): Fixed.
2331
2332 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2335         (Qjapanese_jef_china3): New variable.
2336         (encode_builtin_char_1): Support `japanese-jef-china3'.
2337         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2338         (complex_vars_of_mule_charset): Add new coded-charset
2339         `japanese-jef-china3'.
2340
2341 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2342
2343         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2344         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2345         94^4, 96^3, 96^4, 128^n and 256^n set.
2346         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2347         (map_char_table): Likewise.
2348
2349 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2352         UTF-2000.
2353
2354 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2355
2356         * chartab.h (get_char_id_table): New inline function.
2357
2358         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2359         function.
2360
2361 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * chartab.h (decode_char_table_range): New prototype in XEmacs
2364         UTF-2000.
2365         (put_char_id_table): New inline function in XEmacs UTF-2000.
2366
2367         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2368         function.
2369         (decode_char_table_range): Delete static declaration in XEmacs
2370         UTF-2000.
2371
2372 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * chartab.c (put_char_id_table): Use `put_char_table'.
2375
2376 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2377
2378         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2379         (map_over_uint16_byte_table): Likewise.
2380         (map_over_byte_table): Likewise.
2381         (map_char_table): Modify for `map_over_uint8_byte_table',
2382         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2383         UTF-2000.
2384
2385 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2386
2387         * chartab.c (struct map_char_table_for_charset_arg): New
2388         structure.
2389         (map_char_table_for_charset_fun): New function.
2390         (map_char_table): Use `map_char_table' for encoding_table of
2391         `range->charset'.
2392
2393 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * chartab.c (map_char_table): Check a character is found in
2396         range->charset instead of non default value is defined in
2397         char-table when range is CHARTAB_RANGE_ROW.
2398
2399 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2400
2401         * chartab.c (map_char_id_table): Deleted.
2402         (Fmap_char_attribute): Use `map_char_table' instead of
2403         `map_char_id_table'.
2404
2405 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2406
2407         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2408         UTF-2000.
2409         (update_syntax_table): Deleted in XEmacs UTF-2000.
2410
2411         * syntax.c (find_defun_start): Use `syntax_table' instead of
2412         `mirror_syntax_table' in XEmacs UTF-2000.
2413         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2414         UTF-2000.
2415         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2416         XEmacs UTF-2000.
2417         (Fmatching_paren): Likewise.
2418         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2419         in XEmacs UTF-2000.
2420         (find_start_of_comment): Likewise.
2421         (find_end_of_comment): Likewise.
2422         (Fforward_comment): Likewise.
2423         (scan_lists): Likewise.
2424         (char_quoted): Likewise.
2425         (Fbackward_prefix_chars): Likewise.
2426         (scan_sexps_forward): Likewise.
2427         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2428         (update_syntax_table): Likewise.
2429
2430         * search.c (skip_chars): Use `syntax_table' instead of
2431         `mirror_syntax_table' in XEmacs UTF-2000.
2432         (wordify): Likewise.
2433         (Freplace_match): Likewise.
2434
2435         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2436         `mirror_syntax_table' in XEmacs UTF-2000.
2437         (WORDCHAR_P_UNSAFE): Likewise.
2438         (re_match_2_internal): Likewise.
2439
2440         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2441         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2442
2443         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2444         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2445
2446         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2447         XEmacs UTF-2000.
2448
2449         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2450         UTF-2000.
2451         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2452         (char_table_description): Delete `mirror_table' in XEmacs
2453         UTF-2000.
2454         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2455         UTF-2000.
2456         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2457         (Fcopy_char_table): Likewise.
2458         (put_char_table): Don't call `update_syntax_table' in XEmacs
2459         UTF-2000.
2460
2461         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2462         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2463         (casify_region_internal): Likewise.
2464
2465         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2466
2467         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2468         `mirror_syntax_table' in XEmacs UTF-2000.
2469
2470         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2471         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2472         (Fexpand_abbrev): Likewise.
2473
2474 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2475
2476         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2477
2478 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2481         (map_over_uint16_byte_table): Likewise.
2482         (map_over_byte_table): Likewise.
2483         (get_char_id_table): Refer `cit->default_value'.
2484         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2485         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2486         of character-id ranges.
2487         (mark_char_table): Mark `ct->default_value'.
2488         (char_table_description): Add `default_value'.
2489         (fill_char_table): Use `default_value'.
2490         (decode_char_table_range): Decode `nil' as
2491         `CHARTAB_RANGE_DEFAULT'.
2492         (get_char_id_table): Refer `cit->default_value'.
2493         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2494         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2495         temporary hack; check value of char-table is bound or not.
2496         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2497
2498         * chartab.h (struct Lisp_Char_Table): Add new member
2499         `default_value' in XEmacs UTF-2000.
2500         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2501         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2502         UTF-2000.
2503
2504 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2505
2506         * chartab.h (Lisp_Char_ID_Table): Deleted.
2507
2508         * chartab.c (char_table_description): Fix typo.
2509         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2510         `Lisp_Char_ID_Table'.
2511
2512 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2513
2514         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2515         `CHAR_ID_TABLE_P'.
2516
2517         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2518         `CHAR_ID_TABLE_P'.
2519
2520         * chartab.h (XCHAR_ID_TABLE): Deleted.
2521         (XSETCHAR_ID_TABLE): Deleted.
2522         (CHAR_ID_TABLE_P): Deleted.
2523
2524         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2525         `CHAR_ID_TABLE_P'.
2526         (Fget_composite_char): Likewise.
2527         (put_char_table): Likewise.
2528         (add_char_attribute_alist_mapper): Fixed.
2529         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2530         `CHAR_ID_TABLE_P'.
2531         (Fget_char_attribute): Likewise.
2532         (Fget_char_attribute): Likewise.
2533         (Fmap_char_attribute): Likewise.
2534
2535         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2536         `CHAR_ID_TABLE_P'.
2537         (encode_char_1): Likewise.
2538
2539 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540
2541         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2542         `XCHAR_ID_TABLE'.
2543
2544         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2545         instead of `XCHAR_ID_TABLE'.
2546         (remove_char_ccs): Likewise.
2547
2548         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2549         `XCHAR_ID_TABLE'.
2550         (Fget_composite_char): Likewise.
2551         (Fchar_variants): Likewise.
2552         (put_char_table): Likewise.
2553         (add_char_attribute_alist_mapper): Likewise.
2554         (Fchar_attribute_alist): Likewise.
2555         (Fget_char_attribute): Likewise.
2556         (Fput_char_attribute): Likewise.
2557         (Fmap_char_attribute): Likewise.
2558         (Fmap_char_attribute): Likewise.
2559
2560         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2561         `XCHAR_ID_TABLE'.
2562         (encode_char_1): Likewise.
2563
2564 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2565
2566         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2567         `Lisp_Char_ID_Table'.
2568         (mark_char_id_table): Deleted.
2569         (print_char_id_table): Likewise.
2570         (char_id_table_equal): Likewise.
2571         (char_id_table_hash): Likewise.
2572         (char_id_table_description): Likewise.
2573         (char_id_table): Likewise.
2574         (make_char_id_table): Use `Fmake_char_table' and
2575         `fill_char_table'.
2576         (get_char_id_table): Use `Lisp_Char_Table' instead of
2577         `Lisp_Char_ID_Table'.
2578         (put_char_id_table): Likewise.
2579         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2580         `XCHAR_ID_TABLE'.
2581         (Fremove_char_attribute): Likewise.
2582         (syms_of_chartab): Don't define type `char-id-table'.
2583
2584         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2585         (char_id_table): Likewise.
2586         (GC_CHAR_ID_TABLE_P): Likewise.
2587         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2588         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2589         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2590         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2591         (get_char_id_table): Use `Lisp_Char_Table' instead of
2592         `Lisp_Char_ID_Table'.
2593         (put_char_id_table_0): Likewise.
2594         (put_char_id_table): Likewise.
2595
2596 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2597
2598         * chartab.h: Lisp_Byte_Table related codes are moved from
2599         chartab.h.
2600
2601         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2602
2603 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2604
2605         * chartab.h: Don't include "chartab.h".
2606         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2607         (Lisp_Char_ID_Table): Likewise.
2608         (char_id_table): Likewise.
2609         (XCHAR_ID_TABLE): Likewise.
2610         (XSETCHAR_ID_TABLE): Likewise.
2611         (CHAR_ID_TABLE_P): Likewise.
2612         (GC_CHAR_ID_TABLE_P): Likewise.
2613         (get_char_id_table): Likewise.
2614
2615         * char-ucs.h: Include "chartab.h".
2616         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2617         (Lisp_Char_ID_Table): Likewise.
2618         (char_id_table): Likewise.
2619         (XCHAR_ID_TABLE): Likewise.
2620         (XSETCHAR_ID_TABLE): Likewise.
2621         (CHAR_ID_TABLE_P): Likewise.
2622         (GC_CHAR_ID_TABLE_P): Likewise.
2623         (get_char_id_table): Likewise.
2624
2625 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2626
2627         * chartab.c (copy_uint8_byte_table): New function.
2628         (copy_uint16_byte_table): New function.
2629         (copy_byte_table): New function.
2630         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2631         characters to call.
2632         (map_over_uint16_byte_table): Likewise.
2633         (map_over_byte_table): Likewise.
2634         (get_byte_table): Move prototype to chartab.h.
2635         (put_byte_table): Likewise.
2636         (put_char_id_table_0): Moved to chartab.h.
2637         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2638         (char_table_entry_equal): Likewise.
2639         (char_table_entry_hash): Likewise.
2640         (char_table_entry_description): Likewise.
2641         (char_table_entry): Likewise.
2642         (make_char_table_entry): Likewise.
2643         (copy_char_table_entry): Likewise.
2644         (get_non_ascii_char_table_value): Likewise.
2645         (map_over_charset_ascii): Likewise.
2646         (map_over_charset_control_1): Likewise.
2647         (map_over_charset_row): Likewise.
2648         (map_over_other_charset): Likewise.
2649         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2650         (print_char_table): Likewise.
2651         (char_table_equal): Likewise.
2652         (char_table_hash): Likewise.
2653         (char_table_description): Likewise.
2654         (fill_char_table): Likewise.
2655         (Fcopy_char_table): Likewise.
2656         (get_char_table): Likewise.
2657         (Fget_range_char_table): Likewise.
2658         (put_char_table): Likewise.
2659         (map_char_table): Likewise.
2660         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2661         UTF-2000.
2662
2663 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2666         `Vauto_fill_chars' in XEmacs UTF-2000.
2667
2668         * chartab.h (get_byte_table): New prototype [moved from
2669         chartab.c].
2670         (put_byte_table): Likewise [moved from chartab.c].
2671         (put_char_id_table_0): New inline function [moved from chartab.c].
2672         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2673         (Lisp_Char_Table_Entry): Likewise.
2674         (char_table_entry): Likewise.
2675         (XCHAR_TABLE_ENTRY): Likewise.
2676         (XSETCHAR_TABLE_ENTRY): Likewise.
2677         (CHAR_TABLE_ENTRYP): Likewise.
2678         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2679         (NUM_ASCII_CHARS): Likewise.
2680         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2681         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2682
2683 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * chartab.c (get_char_id_table): Change interface.
2686         (put_char_id_table_0): New function.
2687         (put_char_id_table): Change interface; new implementation.
2688         (Fget_composite_char): Modify for interface change of
2689         `get_char_id_table'.
2690         (Fchar_variants): Likewise.
2691         (add_char_attribute_alist_mapper): Likewise.
2692         (Fchar_attribute_alist): Likewise.
2693         (Fget_char_attribute): Likewise.
2694         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2695         as same as character as the first argument like `put-char-table';
2696         modify for interface change of `put_char_id_table'.
2697         (Fremove_char_attribute): Modify for interface change of
2698         `put_char_id_table'.
2699
2700 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * text-coding.c: Sync up with XEmacs 21.2.41.
2703         (COMPOSE_ADD_CHAR): Modify for interface change of
2704         `get_char_id_table'.
2705
2706         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2707         change of `put_char_id_table'.
2708         (remove_char_ccs): Likewise.
2709
2710         * chartab.h (put_char_id_table): Change interface.
2711
2712         * char-ucs.h (get_char_id_table): Change interface.
2713         (charset_code_point): Modify for interface change of
2714         `get_char_id_table'.
2715         (encode_char_1): Likewise.
2716
2717 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2720         argument `ccs'.
2721         (map_over_uint16_byte_table): Likewise.
2722         (map_over_byte_table): Likewise.
2723         (map_char_id_table): Add new argument `range' like
2724         `map_char_table'.
2725         (Fmap_char_attribute): Add new argument `range' like
2726         `Fmap_char_table'.
2727
2728 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * chartab.c (map_over_uint8_byte_table): Change interface of
2731         mapping function to use struct chartab_range instead of Emchar.
2732         (map_over_uint16_byte_table): Likewise.
2733         (map_over_byte_table): Likewise.
2734         (map_char_id_table): Likewise.
2735         (struct slow_map_char_id_table_arg): Deleted.
2736         (slow_map_char_id_table_fun): Deleted.
2737         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2738         function `slow_map_char_table_fun' instead of struct
2739         `slow_map_char_id_table_arg' and function
2740         `slow_map_char_id_table_fun'.
2741
2742 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * mule-charset.c: Move char-it-table related codes to chartab.c.
2745         (Vutf_2000_version): Moved to chartab.c.
2746         (Fdefine_char): Likewise.
2747         (Ffind_char): Likewise.
2748         (syms_of_mule_charset): Move types `uint8-byte-table',
2749         `uint16-byte-table', `byte-table' and `char-id-table' to
2750         chartab.c; move functions `char_attribute_list,
2751         `find_char_attribute_table, `char_attribute_alist,
2752         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2753         `map_char_attribute, `define_char, `find_char, `char_variants and
2754         `get_composite_char to chartab.c; move symbols `=>ucs',
2755         `->decomposition', `compat', `isolated', `initial', `medial',
2756         `final', `vertical', `noBreak', `fraction', `super', `sub',
2757         `circle', `square', `wide', `narrow', `small' and `font' to
2758         chartab.c.
2759         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2760         setting codes for `Vcharacter_composition_table' and
2761         `Vcharacter_variant_table' to chartab.c.
2762         (complex_vars_of_mule_charset): Move setting code for
2763         `Vchar_attribute_hash_table' to chartab.c.
2764
2765         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2766         (make_char_id_table): New prototype.
2767         (put_char_id_table): Likewise.
2768         (Fget_char_attribute): Likewise.
2769
2770         * chartab.c: Move char-id-table related code from mule-charset.c.
2771         (Vutf_2000_version): Moved from mule-charset.c.
2772
2773         * char-ucs.h (Qucs): New external variable.
2774         (put_char_ccs_code_point): New prototype.
2775         (remove_char_ccs): Likewise.
2776
2777 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2778
2779         * mule-charset.c (Vcharset_ucs_jis): New variable.
2780         (Qucs_jis): Likewise.
2781         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2782         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2783
2784         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2785
2786 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2787
2788         * mule-charset.c (map_over_uint8_byte_table): New function.
2789         (map_over_uint16_byte_table): Likewise.
2790         (map_over_byte_table): Likewise.
2791         (map_char_id_table): Likewise.
2792         (slow_map_char_id_table_fun): Likewise.
2793         (Fmap_char_attribute): Likewise.
2794         (syms_of_mule_charset): Add new function `map-char-attribute'.
2795
2796 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2797
2798         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2799         (syms_of_mule_charset): Add new function `find-char'.
2800
2801 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2804         XEmacs UTF-2000.
2805         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2806         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2807         XEmacs UTF-2000.
2808         (complex_vars_of_mule_charset): Add new coded-charset
2809         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2810         `ideograph-gt-pj-*'.
2811
2812         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2813
2814 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2815
2816         * mule-charset.c (encode_builtin_char_1): Purge codes about
2817         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2818         {MIN|MAX}_CHAR_HEBREW.
2819         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2820         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2821
2822         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2823         (MAX_CHAR_GREEK): Purged.
2824         (MIN_CHAR_CYRILLIC): Purged.
2825         (MAX_CHAR_CYRILLIC): Purged.
2826         (MIN_CHAR_HEBREW): Commented out.
2827         (MAX_CHAR_HEBREW): Likewise.
2828
2829 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * mule-charset.c (Qto_ucs): New variable.
2832         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2833         (Fdefine_char): Likewise.
2834         (syms_of_mule_charset): Add new symbol `=>ucs'.
2835
2836 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * mule-charset.c (Fdecode_char): Fixed.
2839
2840 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2841
2842         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2843         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2844         "tcvn5712-1".
2845
2846 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847
2848         * mule-charset.c (Vcharset_ucs_big5): New variable.
2849         (Qucs_big5): Likewise.
2850         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2851         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2852
2853         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2854
2855 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2856
2857         * mule-charset.c (decode_builtin_char): Check Big5 code range
2858         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2859
2860 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2861
2862         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2863         (Qchinese_gb12345): Likewise.
2864         (Fdecode_builtin_char): Fixed.
2865         (syms_of_mule_charset): Add `chinese-gb12345'.
2866         (complex_vars_of_mule_charset): Add coded-charset
2867         `chinese-gb12345'.
2868
2869         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2870         (LEADING_BYTE_CHINESE_GB12345): New macro.
2871
2872 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2875         and `latin-viscii-upper' for `latin-viscii'.
2876
2877 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * mule-charset.c (Fdecode_builtin_char): Comment out
2880         regularization code for ISO-IR GR representation.
2881
2882 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2883
2884         * mule-charset.c (decode_builtin_char): New function; renamed from
2885         `make_builtin_char'; return -1 instead of signal.
2886         (Fdecode_builtin_char): Use `decode_builtin_char'.
2887
2888         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2889         `make_builtin_char'.
2890         (DECODE_CHAR): Use `decode_builtin_char' instead of
2891         `make_builtin_char'; use mapping table of `chinese-big5' for
2892         `chinese-big5-{1,2}'.
2893
2894 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2895
2896         * text-coding.c (char_encode_big5): New function.
2897         (char_finish_big5): Likewise.
2898         (reset_encoding_stream): Use `char_encode_big5' and
2899         `char_finish_big5' for CODESYS_BIG5.
2900         (mule_encode): Don't use `encode_coding_big5'.
2901         (encode_coding_big5): Deleted.
2902
2903 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2906         0x81- in XEmacs UTF-2000.
2907         (detect_coding_big5): Likewise.
2908
2909 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2910
2911         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2912         generate character-id if the CCS property does not have
2913         corresponding predefined character.
2914         (make_builtin_char): Return -1 if corresponding predefined
2915         character is not found.
2916         (Fdecode_char): Return nil if corresponding character is not
2917         found.
2918         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2919         don't map to builtin ucs space.
2920
2921 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2924         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2925
2926 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2927
2928         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2929         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2930         (Qideograph_gt): Likewise.
2931         (Qideograph_gt_pj_{1..11}): Likewise.
2932         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2933         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2934         `ideograph-gt-pj-11'.
2935         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2936         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2937         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2938
2939         * char-ucs.h (LEADING_BYTE_GT): New macro.
2940         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2941         (MIN_CHAR_GT): Likewise.
2942         (MAX_CHAR_GT): Likewise.
2943
2944 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2945
2946         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2947         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2948
2949         * doprnt.c (unsigned_int_converters): Add `c'.
2950         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2951
2952         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2953         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2954         `MIN_CHAR_MOJIKYO'.
2955         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2956         (MAX_CHAR_MOJIKYO_0): New macro.
2957         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2958
2959 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2960
2961         * mule-charset.c (Fdefine_char): Delete cemented out code.
2962         (encode_builtin_char_1): Modify for new allocation of builtin
2963         Mojikyo characters.
2964
2965         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2966
2967 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2968
2969         * mule-charset.c (Vcharset_ucs_cns): New variable.
2970         (Qucs_cns): New variable.
2971         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2972         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2973
2974 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2975
2976         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2977
2978 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2979
2980         * search.c (search_buffer): Make `charset_base_code' as
2981         character-id >> 6 to eliminate the corresponding last byte in
2982         UTF-8 representation [I'm not sure it is right thing].
2983         (boyer_moore): Likewise.
2984
2985 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2986
2987         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2988         representation in MULE.
2989
2990 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2991
2992         * text-coding.c (Fmake_coding_system): Use
2993         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2994         `EXTERNAL_PROPERTY_LIST_LOOP'.
2995
2996 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * text-coding.c (decode_output_utf8_partial_char): New function.
2999         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3000
3001 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * text-coding.c (decode_coding_utf8): Output original byte
3004         sequence if it is broken; change order of conditions.
3005
3006         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3007         of conditions.
3008
3009         * mb-multibyte.h (BYTE_ASCII_P):
3010         Use bit ops for char-signedness safety.
3011         (BYTE_C0_P): Use bit ops for char-signedness safety.
3012         (BYTE_C1_P): Use bit ops for char-signedness safety.
3013
3014         * character.h: (XCHAR_OR_CHAR_INT):
3015         Always use inline function.
3016         Remove redundant type checking assert() - XINT will abort quite
3017         nicely.
3018
3019 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3020
3021         * text-coding.c: (Fencode_shift_jis_char):
3022         (Fencode_big5_char):
3023         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3024         Replace 0 with '\0' when working with bytes.
3025         Replace initial "(" with "\(" in docstrings.
3026
3027         (Fmake_coding_system):
3028         When type is ccl and value is vector, register it with a proper
3029         symbol.  And checks whether the given ccl program is valid.
3030         (mule_decode): When calling ccl_driver, if src indicates
3031         NULL pointer, set an empty string instead.
3032         (mule_encode): Likewise.
3033
3034         (detect_eol_type):
3035         (detect_coding_sjis):
3036         (decode_coding_sjis):
3037         (detect_coding_big5):
3038         (decode_coding_big5):
3039         (detect_coding_ucs4):
3040         (decode_coding_ucs4):
3041         (detect_coding_utf8):
3042         (decode_coding_utf8):
3043         (detect_coding_iso2022):
3044         (decode_coding_iso2022):
3045         (decode_coding_no_conversion):
3046         (mule_decode):
3047         Make all detecting and decoding functions take an Extbyte * arg.
3048         (text_encode_generic):
3049         (encode_coding_big5):
3050         (encode_coding_no_conversion):
3051         (mule_encode):
3052         Make all encoding functions take a Bufbyte * arg.
3053         Use size_t instead of unsigned int for memory sizes.
3054         Only cast to unsigned char whenever dereferencing Extbyte *.
3055
3056         (struct lrecord_description fcd_description_1): Use countof.
3057         (complex_vars_of_file_coding):
3058         Use countof instead of sizeof.
3059         Use CHECK_NATNUM instead of CHECK_INT.
3060
3061 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3062
3063         * mule-charset.c (Fget_char_attribute): Add new optional argument
3064         `default-value'.
3065         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3066         (remove_char_ccs): Likewise.
3067
3068 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3069
3070         * text-coding.c (char_encode_shift_jis): New implementation in
3071         UTF-2000.
3072         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3073         ...)'.
3074
3075         * mule-charset.c (Vcharset_chinese_big5): New variable in
3076         UTF-2000.
3077         (Qchinese_big5): New variable in UTF-2000.
3078         (BIG5_SAME_ROW): New macro in UTF-2000.
3079         (make_builtin_char): Use builtin characters of
3080         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3081         characters of `Vcharset_chinese_big5'.
3082         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3083         (complex_vars_of_mule_charset): Add new coded-charset
3084         `chinese-big5' in UTF-2000.
3085
3086         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3087         (Vcharset_chinese_big5): New external variable declaration.
3088         (Vcharset_japanese_jisx0208_1990): Likewise.
3089
3090 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3091
3092         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3093         function.
3094         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3095
3096 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3097
3098         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3099         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3100         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3101         `mojikyo-pj-*'.
3102
3103 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3104
3105         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3106
3107 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3108
3109         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3110         to 0.17.
3111
3112 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3113
3114         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3115         for `CHARSET_BY_ATTRIBUTES'.
3116         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3117         `CHARSET_BY_ATTRIBUTES'.
3118
3119         * text-coding.c (struct decoding_stream): Rename member `CH' to
3120         `CPOS'.
3121         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3122         (decode_coding_sjis): Likewise.
3123         (decode_coding_big5): Likewise.
3124         (decode_coding_ucs4): Likewise.
3125         (decode_coding_utf8): Likewise.
3126         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3127         `CHARSET_BY_ATTRIBUTES'.
3128         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3129         `str->counter'; decode 3, 4 bytes sets.
3130         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3131         sets.
3132         (decode_coding_no_conversion): Use `str->cpos' instead of
3133         `str->ch'.
3134
3135         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3136         (Qmojikyo_2022_1): New variable.
3137         (make_charset): Don't use `CHARSET_TYPE_*'.
3138         (range_charset_code_point): Support coded-charset
3139         `mojikyo-2022-1'.
3140         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3141         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3142         `CHARSET_BY_ATTRIBUTES'.
3143         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3144         `CHARSET_BY_ATTRIBUTES'.
3145         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3146         (complex_vars_of_mule_charset): Add new coded-charset
3147         `mojikyo-2022-1'.
3148
3149         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3150         interface; changed to inline function.
3151
3152         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3153         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3154         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3155         (CHARSET_TYPE_94): Deleted.
3156         (CHARSET_TYPE_94X94): Deleted.
3157         (CHARSET_TYPE_96): Deleted.
3158         (CHARSET_TYPE_96X96): Deleted.
3159         (CHARSET_TYPE_128): Deleted.
3160         (CHARSET_TYPE_128X128): Deleted.
3161         (CHARSET_TYPE_256): Deleted.
3162         (CHARSET_TYPE_256X256): Deleted.
3163         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3164         to inline function.
3165         (DECODE_MOJIKYO_2022): New inline function.
3166         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3167         `Vcharset_mojikyo_2022_1'.
3168
3169 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3170
3171         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3172         instead of `EQ'.
3173         (put_byte_table): Likewise.
3174         (char_id_table_equal): Use `get_byte_table' [new implementation].
3175
3176 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3177
3178         * mule-charset.c: Include <limits.h> in UTF-2000.
3179         (BT_UINT8_MIN): New macro in UTF-2000.
3180         (BT_UINT8_MAX): New macro in UTF-2000.
3181         (BT_UINT8_t): New macro in UTF-2000.
3182         (BT_UINT8_nil): New macro in UTF-2000.
3183         (BT_UINT8_unbound): New macro in UTF-2000.
3184         (INT_UINT8_P): New inline function in UTF-2000.
3185         (UINT8_VALUE_P): New inline function in UTF-2000.
3186         (UINT8_ENCODE): New inline function in UTF-2000.
3187         (UINT8_DECODE): New inline function in UTF-2000.
3188         (mark_uint8_byte_table): New function in UTF-2000.
3189         (print_uint8_byte_table): New function in UTF-2000.
3190         (uint8_byte_table_equal): New function in UTF-2000.
3191         (uint8_byte_table_hash): New function in UTF-2000.
3192         (make_uint8_byte_table): New function in UTF-2000.
3193         (uint8_byte_table_same_value_p): New function in UTF-2000.
3194         (BT_UINT16_MIN): New macro in UTF-2000.
3195         (BT_UINT16_MAX): New macro in UTF-2000.
3196         (BT_UINT16_t): New macro in UTF-2000.
3197         (BT_UINT16_nil): New macro in UTF-2000.
3198         (BT_UINT16_unbound): New macro in UTF-2000.
3199         (INT_UINT16_P): New inline function in UTF-2000.
3200         (UINT16_VALUE_P): New inline function in UTF-2000.
3201         (UINT16_ENCODE): New inline function in UTF-2000.
3202         (UINT16_DECODE): New inline function in UTF-2000.
3203         (UINT8_TO_UINT16): New inline function in UTF-2000.
3204         (mark_uint16_byte_table): New function in UTF-2000.
3205         (print_uint16_byte_table): New function in UTF-2000.
3206         (uint16_byte_table_equal): New function in UTF-2000.
3207         (uint16_byte_table_hash): New function in UTF-2000.
3208         (make_uint16_byte_table): New function in UTF-2000.
3209         (uint16_byte_table_same_value_p): New function in UTF-2000.
3210         (print_byte_table): New function in UTF-2000.
3211         (byte-table): Use `print_byte_table' as printer.
3212         (make_byte_table): Delete second argument `older'.
3213         (byte_table_same_value_p): New function in UTF-2000.
3214         (copy_byte_table): Deleted.
3215         (get_byte_table): New function in UTF-2000.
3216         (put_byte_table): New function in UTF-2000.
3217         (print_char_id_table): New function in UTF-2000.
3218         (char-id-table): Use `print_char_id_table' as printer.
3219         (make_char_id_table): Delete second argument `older'.
3220         (get_char_id_table): Use `get_byte_table [new implementation].
3221         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3222         implementation].
3223         (Ffind_char_attribute_table): New function in UTF-2000.
3224         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3225         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3226         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3227         (syms_of_mule_charset): Add new function
3228         `find-char-attribute-table' in UTF-2000.
3229
3230         * lrecord.h (enum lrecord_type): Add
3231         `lrecord_type_uint16_byte_table' and
3232         `lrecord_type_uint8_byte_table'.
3233
3234         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3235         (Lisp_Uint8_Byte_Table): New type.
3236         (XUINT8_BYTE_TABLE): New macro.
3237         (XSETUINT8_BYTE_TABLE): New macro.
3238         (UINT8_BYTE_TABLE_P): New macro.
3239         (GC_UINT8_BYTE_TABLE_P): New macro.
3240         (struct Lisp_Uint16_Byte_Table): New structure.
3241         (Lisp_Uint16_Byte_Table): New type.
3242         (XUINT16_BYTE_TABLE): New macro.
3243         (XSETUINT16_BYTE_TABLE): New macro.
3244         (UINT16_BYTE_TABLE_P): New macro.
3245         (GC_UINT16_BYTE_TABLE_P): New macro.
3246
3247 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3248
3249         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3250         (Vcharacter_ideographic_strokes_table): Deleted.
3251         (Vcharacter_total_strokes_table): Deleted.
3252         (Vcharacter_morohashi_daikanwa_table): Deleted.
3253         (Vcharacter_decomposition_table): Deleted.
3254         (Qname): Deleted because it is duplicated.
3255         (Qideographic_radical): Deleted.
3256         (Qideographic_strokes): Deleted.
3257         (Qtotal_strokes): Deleted.
3258         (Qmorohashi_daikanwa): Deleted.
3259         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3260         `ideographic-radical', `ideographic-strokes', `total-strokes',
3261         `morohashi-daikanwa' and `->decomposition'.
3262         (Fget_char_attribute): Likewise.
3263         (Fput_char_attribute): Likewise; use `make-vector' instead of
3264         `make_older_vector' for `->decomposition' value.
3265         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3266         `ideograph-daikanwa'.
3267         (syms_of_mule_charset): Delete builtin symbols `name',
3268         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3269         `morohashi-daikanwa'.
3270         (vars_of_mule_charset): Don't setup
3271         `Vcharacter_ideographic_radical_table',
3272         `Vcharacter_ideographic_strokes_table',
3273         `Vcharacter_total_strokes_table',
3274         `Vcharacter_morohashi_daikanwa_table' and
3275         `Vcharacter_decomposition_table'.
3276
3277 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3278
3279         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3280         `make_older_vector', `make_vector_newer_1' and
3281         `make_vector_newer'.
3282
3283         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3284         `make_older_vector' and `make_vector_newer'.
3285
3286         * config.h.in (HAVE_GGC): New macro.
3287
3288 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (struct char_attribute_list_closure): New
3291         structure in UTF-2000.
3292         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3293         (Fchar_attribute_list): Likewise.
3294         (Fset_charset_mapping_table): Use `make_vector_newer'.
3295         (Fdecode_builtin_char): New function in UTF-2000.
3296         (syms_of_mule_charset): Add new function `char-attribute-list' and
3297         `decode-builtin-char' in UTF-2000.
3298
3299         * lisp.h (make_vector_newer): New prototype.
3300
3301         * alloc.c (make_vector_newer_1): New function.
3302         (make_vector_newer): New function.
3303
3304 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3305
3306         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3307         50100)'.
3308
3309 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3310
3311         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3312         (Vcharacter_attribute_table): Deleted.
3313         (Vcharacter_name_table): Deleted.
3314         (put_char_attribute): Deleted.
3315         (remove_char_attribute): Deleted.
3316         (struct char_attribute_alist_closure): New structure.
3317         (add_char_attribute_alist_mapper): New function.
3318         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3319         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3320         (Fget_char_attribute): Likewise.
3321         (Fput_char_attribute): Likewise.
3322         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3323         of `remove_char_attribute'.
3324         (Fdefine_char): Return character.
3325         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3326         and `Vcharacter_name_table'.
3327         (complex_vars_of_mule_charset): Likewise
3328         `Vchar_attribute_hash_table'.
3329
3330 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * character.h (CHARC_CHARSET): New macro.
3333         (CHARC_CHARSET_ID): New macro.
3334         (CHARC_CODE_POINT): New macro.
3335         (CHARC_COLUMNS): New macro.
3336         (CHARC_TO_CHAR): New inline function.
3337         (CHARC_EQ): New inline function.
3338         (CHARC_ASCII_EQ): New inline function.
3339         (CHARC_IS_SPACE): New inline function.
3340         (ASCII_TO_CHARC): New inline function.
3341
3342         * char-ucs.h (encode_char_2): Deleted.
3343         (ENCODE_CHAR): Use `encode_char_1' again.
3344         (breakup_char_1): Likewise.
3345         (CHAR_TO_CHARC): New inline function.
3346
3347         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3348
3349 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3350
3351         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3352         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3353         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3354         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3355         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3356         `CHARC_IS_SPACE'.
3357         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3358
3359         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3360         `CHARC_CODE_POINT'.
3361         (x_output_display_block): Use `CHARC_CHARSET' and
3362         `CHARC_ASCII_EQ'.
3363
3364         * redisplay-tty.c (tty_output_display_block): Use
3365         `CHARC_ASCII_EQ'.
3366         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3367
3368         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3369
3370         * insdel.c (find_charsets_in_charc_string): Use
3371         `CHARC_CHARSET_ID'.
3372         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3373         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3374         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3375         (convert_charc_string_into_malloced_string): Likewise.
3376
3377 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3378
3379         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3380         instead of <Emchar_dynarr *> for buf; use
3381         `convert_bufbyte_string_into_charc_dynarr' instead of
3382         `convert_bufbyte_string_into_emchar_dynarr'; use
3383         `find_charsets_in_charc_string' instead of
3384         `find_charsets_in_emchar_string'.
3385
3386         * redisplay.h:
3387         - Include "character.h".
3388         (struct rune): New member `cglyph'; delete member `chr'.
3389
3390         * redisplay.c (redisplay_text_width_charc_string): New function;
3391         delete `redisplay_text_width_emchar_string'.
3392         (rtw_charc_dynarr): New variable; renamed from
3393         `rtw_emchar_dynarr'.
3394         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3395         `rtw_emchar_dynarr'; use
3396         `convert_bufbyte_string_into_charc_dynarr' instead of
3397         `convert_bufbyte_string_into_emchar_dynarr'; use
3398         `redisplay_text_width_charc_string' instead of
3399         `redisplay_text_width_emchar_string'.
3400         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3401         instead of `rtw_emchar_dynarr'; use
3402         `convert_bufbyte_string_into_charc_dynarr' instead of
3403         `convert_bufbyte_string_into_emchar_dynarr'.
3404         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3405         `redisplay_text_width_charc_string' instead of
3406         `redisplay_text_width_emchar_string'.
3407         (create_text_block): Modify for <struct rune> change.
3408         (generate_formatted_string_db): Likewise.
3409         (create_string_text_block): Likewise.
3410         (pixel_to_glyph_translation): Likewise.
3411
3412         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3413         instead of <const Emchar *>.
3414         (x_text_width): Likewise.
3415         (x_output_display_block): Use <Charc_dynarr *> instead
3416         <Emchar_dynarr *>; modify for <structure rune> change.
3417         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3418         *>.
3419
3420         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3421         <const Emchar *>; use `charc_string_displayed_columns' instead of
3422         `emchar_string_displayed_columns'.
3423         (tty_output_display_block): Use <Charc_dynarr *> instead of
3424         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3425         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3426         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3427         `tty_output_emchar_dynarr_dynarr'.
3428         (tty_output_charc_dynarr): New function; delete
3429         `tty_output_charc_dynarr'.
3430
3431         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3432         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3433         <Emchar_dynarr *> for buf; use
3434         `convert_bufbyte_string_into_charc_dynarr' instead of
3435         `convert_bufbyte_string_into_emchar_dynarr'.
3436
3437         * frame.c (title_string_charc_dynarr): New variable; renamed from
3438         `title_string_emchar_dynarr'.
3439         (generate_title_string): Use `title_string_charc_dynarr' instead
3440         of `title_string_emchar_dynarr'; use
3441         `convert_charc_string_into_malloced_string' instead of
3442         `convert_emchar_string_into_malloced_string'.
3443         (init_frame): Use `title_string_charc_dynarr' instead of
3444         `title_string_emchar_dynarr'.
3445
3446         * console.h:
3447         - Include "character.h".
3448         (struct console_methods): Use <const Charc *> instead of <const
3449         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3450         <Emchar_dynarr *> in output_string_method.
3451
3452         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3453         <Emchar_dynarr *>.
3454
3455         * console-stream.c (stream_text_width): Use <const Charc *>
3456         instead of <const Emchar *>.
3457
3458         * character.h (Charc_dynarr): New type.
3459
3460         * char-ucs.h (structure Charc): New structure; define new type
3461         `Charc'.
3462
3463         * char-lb.h (DECODE_CHAR): New inline function.
3464         (encode_char_1): New inline function.
3465         (ENCODE_CHAR): New macro.
3466         (structure Charc): New structure; define new type `Charc'.
3467
3468         * char-1byte.h (Vcharset_control_1): New macro.
3469         (Vcharset_latin_iso8859_1): New macro.
3470         (DECODE_CHAR): New inline function.
3471         (encode_char_1): New inline function.
3472         (ENCODE_CHAR): New macro.
3473         (structure Charc): New structure; define new type `Charc'.
3474
3475         * insdel.c (find_charsets_in_charc_string): New function; delete
3476         `find_charsets_in_emchar_string'.
3477         (charc_string_displayed_columns): New function; delete
3478         `emchar_string_displayed_columns'.
3479         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3480         `convert_bufbyte_string_into_emchar_dynarr'.
3481         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3482         `convert_charc_string_into_bufbyte_dynarr'.
3483         (convert_charc_string_into_malloced_string): New function; delete
3484         `convert_charc_string_into_malloced_string'.
3485
3486         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3487         `find_charsets_in_emchar_string'.
3488         (charc_string_displayed_columns): New prototype; delete
3489         `emchar_string_displayed_columns'.
3490         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3491         `convert_charc_string_into_bufbyte_dynarr'.
3492         (convert_charc_string_into_malloced_string): New prototype; delete
3493         `convert_charc_string_into_malloced_string'.
3494
3495 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3496
3497         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3498
3499 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3500
3501         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3502
3503         * char-ucs.h: Use <short> for <Charset_ID>.
3504
3505         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3506         <Charset_ID>.
3507
3508 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3509
3510         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3511         to 0.16.
3512
3513 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3514
3515         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3516         variable.
3517         (Qmorohashi_daikanwa): New variable.
3518         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3519         for `morohashi-daikanwa' attribute.
3520         (Fget_char_attribute): Likewise.
3521         (Fput_char_attribute): Likewise.
3522         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3523         has the same value of `ideograph-daikanwa'.
3524         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3525         (vars_of_mule_charset): Setup
3526         `Vcharacter_morohashi_daikanwa_table'.
3527
3528 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3529
3530         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3531         attributes.
3532         (add_charset_to_list_mapper): Add `key' instead of
3533         `XCHARSET_NAME (value)' to return aliases.
3534
3535 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3536
3537         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3538         variable.
3539         (Vcharacter_ideographic_strokes_table): New variable.
3540         (Qideographic_radical): New variable.
3541         (Qideographic_strokes): New variable.
3542         (Fchar_attribute_alist): Use
3543         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3544         attribute; use `Vcharacter_ideographic_strokes_table' for
3545         `ideographic-strokes' attribute.
3546         (Fget_char_attribute): Likewise.
3547         (Fput_char_attribute): Likewise.
3548         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3549         `ideographic-strokes'.
3550         (vars_of_mule_charset): Setup
3551         `Vcharacter_ideographic_radical_table' and
3552         `Vcharacter_ideographic_strokes_table'.
3553
3554 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3555
3556         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3557         (Qtotal_strokes): New variable.
3558         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3559         `total-strokes' attribute.
3560         (Fget_char_attribute): Likewise.
3561         (Fput_char_attribute): Likewise.
3562         (syms_of_mule_charset): Add new symbol `total-strokes'.
3563         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3564
3565 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3566
3567         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3568         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3569         are found.
3570         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3571         `->decomposition' attribute.
3572         (Fput_char_attribute): Likewise.
3573         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3574
3575 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3576
3577         * mule-charset.c (decoding_table_check_elements): New function.
3578         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3579
3580 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3581
3582         * mule-charset.c (Fset_charset_mapping_table): Use
3583         `put_char_ccs_code_point'.
3584
3585 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3586
3587         * mule-charset.c (decoding_table_put_char): New inline function.
3588         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3589
3590 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3591
3592         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3593         (XCHARSET_BYTE_SIZE): New macro.
3594         (decoding_table_remove_char): New inline function.
3595         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3596         `decoding_table_remove_char'.
3597         (remove_char_ccs): Use `decoding_table_remove_char'.
3598         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3599
3600 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3601
3602         * mule-charset.c (Vcharacter_name_table): New variable.
3603         (Qname): New variable.
3604         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3605         attribute.
3606         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3607         `Vcharacter_name_table' for `name' attribute.
3608         (Fremove_char_attribute): Use function `remove_char_ccs'.
3609         (put_char_ccs_code_point): New function.
3610         (remove_char_ccs): New function.
3611         (syms_of_mule_charset): Add new symbol `name'.
3612         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3613
3614 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3615
3616         * mule-charset.c (make_byte_table): Add new argument `older'.
3617         (make_char_id_table): Likewise.
3618         (copy_char_id_table): Comment out because it is not used.
3619         (put_char_id_table): Modify for `make_byte_table'.
3620         (Fput_char_attribute): Make encoding_table as older object;
3621         inherit older bit of `Vcharacter_composition_table'.
3622         (mark_charset): Don't mark `cs->encoding_table'.
3623         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3624         normal object; make `Vcharacter_composition_table' as an older
3625         object; delete staticpro for `Vcharacter_composition_table'; make
3626         `Vcharacter_variant_table' as a normal object.
3627
3628         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3629         (mark_object): Don't check older object in UTF-2000.
3630
3631         * lrecord.h (struct lrecord_header): Add new member `older' in
3632         UTF-2000.
3633         (set_lheader_implementation): Setup `SLI_header->older' in
3634         UTF-2000.
3635         (set_lheader_older_implementation): New macro in UTF-2000.
3636         (OLDER_RECORD_P): New macro in UTF-2000.
3637         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3638         (alloc_older_lcrecord): New prototype in UTF-2000.
3639         (alloc_older_lcrecord_type): New macro in UTF-2000.
3640
3641 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3642
3643         * mule-charset.c (byte_table_description): Use
3644         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3645         (char_id_table_description): Delete bogus `, 1'.
3646         (Fget_char_attribute): Refer encoding_table of each coded-charset
3647         to get value of coded-charset attribute of a character.
3648         (Fput_char_attribute): Use `make_older_vector' instead of
3649         `make_vector'; use encoding_table of each coded-charset to store
3650         value of coded-charset attribute of a character.
3651         (Fremove_char_attribute): Use encoding_table of each coded-charset
3652         to store value of coded-charset attribute of a character.
3653         (mark_charset): Mark `cs->encoding_table'; don't mark
3654         `cs->decoding_table'.
3655         (charset_description): Add description of new member
3656         `encoding_table'.
3657         (make_charset): Initialize `encoding_table'.
3658
3659         * char-ucs.h (struct Lisp_Charset): Add new member
3660         `encoding_table'.
3661         (CHARSET_ENCODING_TABLE): New macro.
3662         (XCHARSET_ENCODING_TABLE): New macro.
3663         (charset_code_point): New implementation.
3664         (encode_char_1): Likewise.
3665
3666         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3667         (disksave_object_finalization_1): Call finalizers of
3668         `all_older_lcrecords' in UTF-2000.
3669         (make_older_vector): New function in UTF-2000.
3670         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3671         UTF-2000.
3672
3673         * lisp.h (make_older_vector): New prototype in UTF-2000.
3674
3675 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3676
3677         * lrecord.h (enum lrecord_type): Rename
3678         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3679
3680         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3681         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3682         `get_char_code_table'.
3683
3684         * mule-charset.c (mark_char_id_table): Renamed from
3685         `mark_char_code_table'.
3686         (char_id_table_equal): Renamed from `char_code_table_equal'.
3687         (char_id_table_hash): Renamed from `char_code_table_hash'.
3688         (make_char_id_table): Renamed from `make_char_code_table'.
3689         (copy_char_id_table): Renamed from `copy_char_code_table'.
3690         (get_char_id_table): Renamed from `get_char_code_table'.
3691         (put_char_id_table): Renamed from `put_char_code_table'.
3692         (to_char_id): Renamed from `to_char_code'.
3693
3694         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3695         `Lisp_Char_Code_Table'.
3696         (char_id_table): Renamed from `char_code_table'.
3697         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3698         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3699         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3700         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3701         (get_char_id_table): Renamed from `get_char_code_table'.
3702
3703 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3704
3705         * lrecord.h (enum lrecord_type): Rename
3706         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3707
3708         * mule-charset.c (mark_byte_table): Renamed from
3709         `mark_char_byte_table'.
3710         (byte_table_equal): Renamed from `char_byte_table_equal'.
3711         (byte_table_hash): Renamed from `byte_table_hash'.
3712         (make_byte_table): Renamed from `make_byte_table'.
3713         (copy_byte_table): Renamed from `copy_char_byte_table'.
3714
3715         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3716         `Lisp_Char_Byte_Table'.
3717         (byte_table): Renamed from `char_byte_table'.
3718         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3719         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3720         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3721         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3722
3723 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3724
3725         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3726         (dfc_convert_to_internal_format): Likewise.
3727         
3728         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3729         * text-coding.c (Fcoding_system_alias_p): New function.
3730         * text-coding.c (Fcoding_system_aliasee): New function.
3731         * text-coding.c (append_suffix_to_symbol): New function.
3732         * text-coding.c (dangling_coding_system_alias_p): New function.
3733         * text-coding.c (Ffind_coding_system):
3734         * text-coding.c (Fcopy_coding_system):
3735         * text-coding.c (encode_coding_no_conversion):
3736         * text-coding.c (syms_of_file_coding):
3737         * text-coding.c (vars_of_file_coding):
3738         Rewrite coding system alias code.
3739         Allow nested aliases, like symbolic links.
3740         Allow redefinition of coding system aliases.
3741         Prevent existence of dangling coding system aliases.
3742         Eliminate convert_to_external_format.
3743         Eliminate convert_to_internal_format.
3744         
3745         * text-coding.c: Change enum eol_type to eol_type_t.
3746
3747 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3748
3749         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3750         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3751
3752         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3753         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3754
3755 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3758         `ideograph-daikanwa'.
3759
3760         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3761         (Vcharset_ucs_bmp): Likewise.
3762         (Vcharset_mojikyo): Add new extern variable definition.
3763         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3764         (Vcharset_latin_iso8859_3): Likewise.
3765         (Vcharset_latin_iso8859_4): Likewise.
3766         (Vcharset_latin_iso8859_9): Likewise.
3767         (Vcharset_latin_viscii_lower): Likewise.
3768         (Vcharset_latin_viscii_upper): Likewise.
3769         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3770         `mojikyo' code-point is used to decode.
3771         (encode_char_2): New function [to convert `mojikyo' code-point to
3772         Mojikyo font encoding].
3773         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3774         (breakup_char_1): Likewise.
3775         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3776
3777 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3778
3779         * text-coding.c (Fmake_coding_system): Add document about
3780         `disable-composition' property.
3781
3782 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3783
3784         * text-coding.c (Qdisable_composition): New variable; delete
3785         `Qcomposite'.
3786         (Fmake_coding_system): Add new property `disable-composite';
3787         delete property `composite'.
3788         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3789         instead of `!CODING_SYSTEM_COMPOSITE'.
3790         (syms_of_file_coding): Add new symbol `disable-composition';
3791         delete symbol `composite'.
3792
3793         * file-coding.h (struct Lisp_Coding_System): Add
3794         `disable_composition'; delete `enable_composition'.
3795         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3796         `CODING_SYSTEM_COMPOSITE'.
3797         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3798         `XCODING_SYSTEM_COMPOSITE'.
3799
3800 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3801
3802         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3803         to 0.15.
3804
3805 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3806
3807         * text-coding.c (Qcomposite): New variable.
3808         (Fmake_coding_system): Add new property `composite'.
3809         (struct decoding_stream): Add `combined_char_count',
3810         `combined_chars' and `combining_table' in UTF-2000.
3811         (COMPOSE_FLUSH_CHARS): New macro.
3812         (COMPOSE_ADD_CHAR): New macro.
3813         (reset_decoding_stream): Reset `str->combined_char_count' and
3814         `str->combining_table' in UTF-2000.
3815         (decode_coding_iso2022): Modify for character-decomposition.
3816         (syms_of_file_coding): Add new symbol `composite'.
3817
3818 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3819
3820         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3821         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3822         of `Vcharacter_composition_table' if `->decomposition' property
3823         has only 1 element.
3824         (Qlatin_tcvn5712): New variable.
3825         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3826         (complex_vars_of_mule_charset): Add new coded-charset
3827         `latin-tcvn5712'.
3828
3829         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3830
3831 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3832
3833         * file-coding.h (struct Lisp_Coding_System): Add
3834         `enable_composition'.
3835         (CODING_SYSTEM_COMPOSITE): New macro.
3836         (XCODING_SYSTEM_COMPOSITE): New macro.
3837
3838 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3839
3840         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3841
3842 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3843
3844         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3845         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3846
3847 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3848
3849         * mule-charset.c (Vcharset_mojikyo): New variable.
3850         (Fdefine_char): Don't use coded-charset which does not have
3851         non-builtin character range to allocate character-id.
3852         (Qmojikyo): New variable.
3853         (syms_of_mule_charset): Add new symbol `mojikyo'.
3854         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3855
3856         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3857         (LEADING_BYTE_MOJIKYO): New macro.
3858         (MIN_CHAR_MOJIKYO): New macro.
3859         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3860         (MAX_CHAR_MOJIKYO): New macro.
3861
3862 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3863
3864         * mule-charset.c (remove_char_attribute): Fixed.
3865
3866 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3867
3868         * mule-charset.c (remove_char_attribute): New function.
3869         (Fremove_char_attribute): New function.
3870         (encode_builtin_char_1): Comment out builtin-support for
3871         greek-iso8859-7 and cyrillic-iso8859-5.
3872         (Fdecode_char): Check `code' is an integer.
3873         (syms_of_mule_charset): Add `remove-char-attribute'.
3874         (MIN_CHAR_GREEK): Deleted.
3875         (MAX_CHAR_GREEK): Likewise.
3876         (MIN_CHAR_CYRILLIC): Likewise.
3877         (MAX_CHAR_CYRILLIC): Likewise.
3878         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3879         MAX_CHAR_GREEK for `greek-iso8859-7'.
3880
3881         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3882         (MAX_CHAR_GREEK): Likewise.
3883         (MIN_CHAR_CYRILLIC): Likewise.
3884         (MAX_CHAR_CYRILLIC): Likewise.
3885
3886 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3887
3888         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3889         format is used without `ucs' property.
3890         (Fdecode_char): Fix problem with GR representation.
3891         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3892         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3893
3894 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3895
3896         * mule-charset.c (make_builtin_char): New function.
3897         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3898         (Fset_charset_mapping_table): Modify for new representation of
3899         code-point.
3900         (Fdecode_char): New function.
3901         (syms_of_mule_charset): Add new builtin function `decode-char' in
3902         UTF-2000.
3903
3904         * char-ucs.h (make_builtin_char): New prototype.
3905         (DECODE_CHAR): New inline function.
3906         (MAKE_CHAR): Use `DECODE_CHAR'.
3907
3908 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3909
3910         * text-coding.c (parse_charset_conversion_specs): Use
3911         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3912         `XCHARSET_TYPE'.
3913         (iso2022_designate): Likewise.
3914
3915         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3916         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3917
3918         * mule-charset.c (Vcharset_ucs): New variable.
3919         (print_charset): Change design; use `CHARSET_CHARS' and
3920         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3921         (make_charset): Change signature to specify `chars' and
3922         `dimension' instead of `type'.
3923         (range_charset_code_point): Modify for 256^n-set.
3924         (encode_builtin_char_1): Encode as `ucs' in default.
3925         (Fmake_charset): Modify for `make_charset'.
3926         (Fmake_reverse_direction_charset): Likewise.
3927         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3928         UTF-2000.
3929         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3930         for `make_charset'.
3931
3932         * char-ucs.h (Vcharset_ucs): New variable.
3933         (LEADING_BYTE_UCS): New macro.
3934         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3935         and `chars' to `unsigned short' from `unsigned int'.
3936         (CHARSET_TYPE): Deleted.
3937         (XCHARSET_TYPE): Deleted.
3938
3939 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3940
3941         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3942
3943         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3944         (ENCODE_CHAR): New macro.
3945
3946 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3947
3948         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3949         to 0.14 (Kawachi-Katakami).
3950
3951 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3952
3953         * text-coding.c (char_encode_shift_jis): Modify for
3954         `charset_code_point'.
3955         (char_encode_iso2022): Likewise.
3956
3957         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3958         (integer) instead of list of <Lisp_Object>s (integers) as the
3959         format of code-point of a coded-charset.
3960         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3961         (encode_builtin_char_1): New function; delete
3962         `split_builtin_char'.
3963         (charset_code_point): Return <int> instead of <Lisp_Object>.
3964         (Fsplit_char): Don't use `SPLIT_CHAR'.
3965
3966         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3967         prototype for `split_builtin_char'.
3968         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3969         (charset_code_point): Likewise.
3970         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3971         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3972
3973 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3974
3975         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3976         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3977
3978 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3979
3980         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3981
3982         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3983         (MAX_CHAR_OBS_94x94): Deleted.
3984
3985 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3986
3987         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3988
3989         * char-ucs.h (MAX_CHAR_BMP): New macro.
3990
3991 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3992
3993         * text-coding.c: Sync with r21-2-24.
3994
3995 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3996
3997         * file-coding.c: Modify for UTF-2000.
3998
3999 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4000
4001         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4002         to 0.13 (Takaida).
4003
4004 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4005
4006         * mule-charset.c (split_builtin_char): Delete builtin support for
4007         `katakana-jisx0201'.
4008         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4009         BMP area in builtin representation.
4010
4011         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4012         `Vcharset_katakana_jisx0201'.
4013
4014 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4015
4016         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4017         (Qisolated): New variable.
4018         (Qinitial): New variable.
4019         (Qmedial): New variable.
4020         (Qfinal): New variable.
4021         (Qvertical): New variable.
4022         (Qsmall): New variable.
4023         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4024         `Qvertical' and `Qsmall'.
4025         (Qmojikyo_pj_[1 .. 21]): New variable.
4026         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4027         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4028         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4029         .. 21]'.
4030
4031 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4034         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4035         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4036
4037 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4038
4039         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4040         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4041         BMP.
4042         (Qjapanese_jisx0208_1990): New variable.
4043         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4044         (complex_vars_of_mule_charset): Add new coded-charset
4045         `japanese-jisx0208-1990'.
4046
4047         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4048         (MIN_CHAR_JIS_X0208_1990): New macro.
4049         (MAX_CHAR_JIS_X0208_1990): New macro.
4050
4051 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4052
4053         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4054         coded-charset is not found.
4055
4056 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4057
4058         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4059         (Fdefine_char): Use `Fmake_char'.
4060
4061 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4062
4063         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4064         (Vcharset_hiragana_jisx0208): Deleted.
4065         (Vcharset_katakana_jisx0208): Deleted.
4066         (Qideograph_daikanwa): New variable.
4067         (Qhiragana_jisx0208): Deleted.
4068         (Qkatakana_jisx0208): Deleted.
4069         (split_builtin_char): Split `ideograph-daikanwa'.
4070         (Fsplit_char): New implementation for UTF-2000.
4071         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4072         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4073         (complex_vars_of_mule_charset): Add new coded-charset
4074         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4075         `katakana-jisx0208'.
4076
4077         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4078         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4079         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4080         (MIN_CHAR_DAIKANWA): New macro.
4081         (MAX_CHAR_DAIKANWA): New macro.
4082
4083 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4084
4085         * data.c (Fstring_to_number): Don't recognize floating point if
4086         base is not 10.
4087
4088 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4089
4090         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4091
4092 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4093
4094         * mule-charset.c (Qsquare): New variable.
4095         (to_char_code): Add `Qsquare'.
4096         (syms_of_mule_charset): Add new symbol `square'.
4097
4098 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4099
4100         * mule-charset.c (Qcircle): New variable.
4101         (to_char_code): Add `Qcircle'.
4102         (syms_of_mule_charset): Add new symbol `circle'.
4103
4104 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4105
4106         * mule-charset.c (Qfont): New variable.
4107         (to_char_code): Add `Qfont'.
4108         (syms_of_mule_charset): Add new symbol `font'.
4109
4110 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4111
4112         * mule-charset.c (Qsub): New variable.
4113         (to_char_code): Add `Qsub'.
4114         (syms_of_mule_charset): Add new symbol `sub'.
4115
4116 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4117
4118         * mule-charset.c (Fput_char_attribute): Convert each element of
4119         VALUE to GL position if ATTRIBUTE is a GR-set,
4120
4121 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4122
4123         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4124         coded-charset is a GR-set.
4125
4126 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4127
4128         * mule-charset.c (Fput_char_attribute): Check each element of
4129         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4130
4131 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4132
4133         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4134         UTF-2000.
4135         (Qethiopic_ucs): New variable in UTF-2000.
4136         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4137         (complex_vars_of_mule_charset): Add new coded-charset
4138         `ethiopic-ucs' in UTF-2000.
4139
4140         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4141         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4142         9)'.
4143         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4144         10)'.
4145         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4146
4147 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4148
4149         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4150         `ascii'.
4151
4152 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4153
4154         * mule-charset.c (Vcharacter_variant_table): New variable.
4155         (Q_ucs): New variable.
4156         (Fchar_variants): New function.
4157         (Fput_char_attribute): Register `->ucs' value to
4158         `Vcharacter_variant_table'.
4159         (syms_of_mule_charset): Add new function `char-variants' and new
4160         symbol `->ucs'.
4161         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4162
4163 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4164
4165         * mule-charset.c (get_char_code_table): Allow negative character
4166         code.
4167         (put_char_code_table): Likewise.
4168         (Vcharacter_composition_table): New variable.
4169         (Q_decomposition): New variable.
4170         (Qwide): New variable.
4171         (Qnarrow): New variable.
4172         (Qcompat): New variable.
4173         (QnoBreak): New variable.
4174         (Qsuper): New variable.
4175         (Qfraction): New variable.
4176         (to_char_code): New function.
4177         (Fget_composite_char): New function.
4178         (Fput_char_attribute): Register `->decomposition' value to
4179         `Vcharacter_composition_table'.
4180         (syms_of_mule_charset): Add new function `get-composite-char', new
4181         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4182         `super' and `fraction'.
4183         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4184
4185 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4186
4187         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4188         character; copy the return value.
4189
4190 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4191
4192         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4193
4194         * mule-charset.c (range_charset_code_point): Must use make_int.
4195         (split_builtin_char): New function.
4196
4197 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4198
4199         * mule-charset.c (char_byte_table): Change name from
4200         "char-code-table" to "char-byte-table".
4201         (mark_char_code_table): New function.
4202         (char_code_table_equal): New function.
4203         (char_code_table_hash): New function.
4204         (char_code_table_description): New constant.
4205         (char_code_table): New type.
4206         (make_char_code_table): New function.
4207         (copy_char_code_table): New function.
4208         (get_char_code_table): Modify for `char_code_table' type.
4209         (put_char_code_table): Likewise.
4210         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4211         (Kashiwara).
4212
4213         * char-ucs.h (char_code_table): New type.
4214         (XCHAR_CODE_TABLE): New macro.
4215         (XSETCHAR_CODE_TABLE): New macro.
4216         (CHAR_CODE_TABLE_P): New macro.
4217         (GC_CHAR_CODE_TABLE_P): New macro.
4218         (struct Lisp_Char_Code_Table): New structure.
4219
4220 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4221
4222         * mule-charset.c (Fmake_charset): Setup byte_offset for
4223         {94|96}^n-set.
4224
4225 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4226
4227         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4228         character.
4229
4230 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4231
4232         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4233         is found.
4234
4235 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4236
4237         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4238         charset, it is regarded as a charset.
4239         (put_char_attribute): New function in UTF-2000.
4240         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4241         charset, mapping-table of the charset is modified.
4242         (Fdefine_char): New function in UTF-2000.
4243         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4244         `Fput_char_attribute'.
4245         (syms_of_mule_charset): Add new function `define-char' and new
4246         symbol `ucs' in UTF-2000.
4247         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4248
4249 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4250
4251         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4252         non-UTF-2000 configuration.
4253
4254 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4257         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4258
4259         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4260         deleted.
4261         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4262         (Fset_charset_mapping_table): Likewise.
4263
4264         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4265         (CHARSET_ENCODING_TABLE): Delete.
4266         (XCHARSET_ENCODING_TABLE): Delete.
4267         (charset_code_point): New interface.
4268
4269 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4270
4271         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4272         instead of `charset_get_byte1' and `charset_get_byte2'.
4273
4274         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4275         (charset_get_byte2): Deleted.
4276
4277 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4278
4279         * char-ucs.h (SPLIT_CHAR): New inline function.
4280         (breakup_char_1): Use `SPLIT_CHAR'.
4281
4282         * mule-charset.c (range_charset_code_point): New function.
4283         (charset_code_point): New function.
4284
4285         * char-ucs.h (range_charset_code_point): New interface.
4286         (breakup_char_1): Use `range_charset_code_point'.
4287
4288 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4289
4290         * mule-charset.c (Fmake_charset): Delete unused local variable
4291         `code_offset'.
4292
4293         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4294         (breakup_char_1): Find a charset and code-point in
4295         `Vcharacter_attribute_table'.
4296
4297 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4298
4299         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4300         to 0.10 (Yao).
4301
4302 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4303
4304         * mule-charset.c (Vcharacter_attribute_table): New variable.
4305         (Fchar_attribute_alist): New function.
4306         (Fget_char_attribute): New function.
4307         (Fput_char_attribute): New function.
4308         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4309         too.
4310         (syms_of_mule_charset): Add new function `char-attribute-alist',
4311         `get-char-attribute' and `put-char-attribute'.
4312         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4313
4314 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.c (Fmake_charset): Just use
4317         `get_unallocated_leading_byte'.
4318
4319         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4320         sets; don't use final-byte based number for private sets.
4321
4322 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4323
4324         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4325         integer.
4326
4327 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4328
4329         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4330         to 0.9.
4331
4332 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4333
4334         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4335         of `CHAR_LEADING_BYTE' in UTF-2000.
4336
4337         * insdel.c (find_charsets_in_bufbyte_string): Use
4338         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4339         (find_charsets_in_emchar_string): Likewise.
4340
4341         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4342         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4343
4344         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4345         (CHAR_CHARSET_ID): New macro.
4346
4347 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4348
4349         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4350         charset-id - MIN_LEADING_BYTE.
4351         (put_char_table): Likewise.
4352
4353 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4354
4355         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4356         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4357         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4358         (CHARSET_ID_OFFSET): New macro.
4359         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4360         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4361         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4362         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4363         4).
4364         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4365         5).
4366         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4367         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4368         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4369         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4370         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4371
4372 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4373
4374         * mule-charset.c (next_allocated_leading_byte): New variable in
4375         UTF-2000.
4376         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4377         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4378         (get_unallocated_leading_byte): Simply use
4379         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4380         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4381         UTF-2000.
4382
4383         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4384         (MAX_LEADING_BYTE_PRIVATE): New macro.
4385         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4386         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4387
4388 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4389
4390         * mule-charset.c (Fmake_charset): Allocate final-byte based
4391         charset-id for 94-set, 96-set and 94x94-set.
4392
4393 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4394
4395         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4396         ambiguous `else'.
4397         (Fmake_charset): Likewise.
4398         (complex_vars_of_mule_charset): Modify the font registry of
4399         `ucs-bmp' not to match `Ethiopic-Unicode'.
4400
4401 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4402
4403         * mule-charset.c (complex_vars_of_mule_charset): Add font
4404         registory of `ucs-bmp'.
4405
4406 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4407
4408         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4409         coded-charsets in `default-coded-charset-priority-list' when
4410         breaking up a character.
4411
4412         * mule-charset.c (Vcharset_latin_viscii): New variable.
4413         (Qlatin_viscii): New variable.
4414         (make_charset): Don't use `decoding_table'.
4415         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4416         byte_offset.
4417         (Fset_charset_mapping_table): New implementation.
4418         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4419         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4420         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4421         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4422         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4423         charset `latin_viscii'.
4424
4425         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4426         (CHARSET_TYPE_94X94): Change to 1 from 2.
4427         (CHARSET_TYPE_96): Change to 2 from 1.
4428         (CHARSET_TYPE_128): New macro.
4429         (CHARSET_TYPE_128X128): Change to 5 from 4.
4430         (CHARSET_TYPE_256): New macro.
4431         (CHARSET_TYPE_256X256): Change to 7 from 5.
4432         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4433
4434 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4435
4436         * text-coding.c (char_encode_shift_jis): Refer
4437         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4438         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4439
4440         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4441         (char_byte_table_equal): New function in UTF-2000.
4442         (char_byte_table_hash): New function in UTF-2000.
4443         (char_byte_table_description): New constant in UTF-2000.
4444         (char_byte_table): New type in UTF-2000.
4445         (make_char_byte_table): New function in UTF-2000.
4446         (copy_char_byte_table): New function in UTF-2000.
4447         (make_char_code_table): New macro in UTF-2000.
4448         (get_char_code_table): New function in UTF-2000.
4449         (put_char_code_table): New function in UTF-2000.
4450         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4451         (charset_description): Add setting in UTF-2000.
4452         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4453         `CHARSET_TO_BYTE1_TABLE(cs)'.
4454         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4455         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4456         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4457         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4458         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4459         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4460         `CHARSET_TO_BYTE2_TABLE(cs)'.
4461
4462         * char-ucs.h (char_byte_table): New type.
4463         (XCHAR_BYTE_TABLE): New macro.
4464         (XSETCHAR_BYTE_TABLE): New macro.
4465         (CHAR_BYTE_TABLE_P): New macro.
4466         (GC_CHAR_BYTE_TABLE_P): New macro.
4467         (struct Lisp_Char_Byte_Table): New structure.
4468         (get_char_code_table): New interface.
4469         (Emchar_to_byte_table): Deleted.
4470         (get_byte_from_character_table): Deleted.
4471         (struct Lisp_Charset): Add `encoding_table'; delete
4472         `to_byte1_table' and `to_byte2_table'.
4473         (CHARSET_ENCODING_TABLE): New macro.
4474         (CHARSET_TO_BYTE1_TABLE): Deleted.
4475         (CHARSET_TO_BYTE2_TABLE): Deleted.
4476         (XCHARSET_ENCODING_TABLE): New macro.
4477         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4478         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4479
4480 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4481
4482         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4483         `vietnamese-viscii-*'.
4484
4485 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4486
4487         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4488         (Qvietnamese_viscii_upper): New variable.
4489         (Fdefine_charset_alias): New function.
4490         (syms_of_mule_charset): Add new function `define-charset-alias'.
4491         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4492         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4493         `latin-viscii-*'.
4494
4495 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4496
4497         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4498         (MAX_CHAR_OBS_94x94): New macro.
4499         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4500         for 94x94 sets.
4501
4502         * mule-charset.c (put_byte_from_character_table): Change unit size
4503         from 128 to 256.
4504         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4505         not defined.
4506         (Fmake_reverse_direction_charset): Modify dummy argument of
4507         `make_charset' for non-UTF-2000 environment.
4508
4509 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4510
4511         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4512
4513         * mule-charset.c (destroy_byte_from_character_table): New macro.
4514         (latin_jisx0201_to_ucs): Deleted.
4515         (latin_iso8859_2_to_ucs): Deleted.
4516         (latin_iso8859_3_to_ucs): Deleted.
4517         (latin_iso8859_4_to_ucs): Deleted.
4518         (latin_iso8859_9_to_ucs): Deleted.
4519         (latin_viscii_lower_to_ucs): Deleted.
4520         (latin_viscii_upper_to_ucs): Deleted.
4521         (mark_charset): Mark `cs->decoding_table'.
4522         (Fcharset_mapping_table): Fix DOC-string.
4523         (Fset_charset_mapping_table): New function.
4524         (syms_of_mule_charset): Add nwe function
4525         `set-charset-mapping-table'.
4526         (complex_vars_of_mule_charset): Don't setup and use
4527         `latin_*_to_ucs'.
4528
4529 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4530
4531         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4532         charset.
4533
4534 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4535
4536         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4537         (Vcharset_katakana_jisx0208): New variable.
4538         (Qhiragana_jisx0208): New variable.
4539         (Qkatakana_jisx0208): New variable.
4540         (make_charset): Add new argument `byte_offset'.
4541         (charset_get_byte1): Modify for new coded-charset definition; use
4542         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4543         `XCHARSET_BYTE_OFFSET'.
4544         (Fmake_charset): Modify for `make_charset'.
4545         (Fmake_reverse_direction_charset): Likewise.
4546         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4547         `katakana-jisx0208'.
4548         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4549         `.'  in font registry of charset `katakana-jisx0201',
4550         `latin-jisx0201', `vietnamese-viscii-lower' and
4551         `vietnamese-viscii-upper'; modify DOC-string of charset
4552         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4553         registry of charset `japanese-jisx0208' not to use font for JIS
4554         X0208:1990; add new charset `hiragana-jisx0208' and
4555         `katakana-jisx0208'.
4556
4557         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4558         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4559         (struct Lisp_Charset): Add `byte_offset'.
4560         (CHARSET_BYTE_OFFSET): New macro.
4561         (XCHARSET_UCS_MIN): New macro.
4562         (XCHARSET_UCS_MAX): New macro.
4563         (XCHARSET_CODE_OFFSET): New macro.
4564         (XCHARSET_BYTE_OFFSET): New macro.
4565         (MIN_CHAR_HIRAGANA): New macro.
4566         (MAX_CHAR_HIRAGANA): New macro.
4567         (MIN_CHAR_KATAKANA): New macro.
4568         (MAX_CHAR_KATAKANA): New macro.
4569         (MAKE_CHAR): Modify for new coded-charset definition; use
4570         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4571         `XCHARSET_BYTE_OFFSET'.
4572
4573 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4574
4575         * mule-charset.c (CHAR96): Deleted.
4576         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4577         <Lisp_Object>.
4578         (latin_iso8859_2_to_ucs): Likewise.
4579         (latin_iso8859_3_to_ucs): Likewise.
4580         (latin_iso8859_4_to_ucs): Likewise.
4581         (latin_iso8859_9_to_ucs): Likewise.
4582         (latin_viscii_lower_to_ucs): Likewise.
4583         (latin_viscii_upper_to_ucs): Likewise.
4584         (latin_tcvn5712_to_ucs): Commented out.
4585         (make_charset): Change type of argument `decoding_table' from
4586         <Emchar*> to <Lisp_Object> [vector of characters].
4587         (Fmake_charset): Modify for `make_charset'.
4588         (Fmake_reverse_direction_charset): Likewise.
4589         (Fcharset_mapping_table): New function in UTF-2000.
4590         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4591         UTF-2000.
4592         (complex_vars_of_mule_charset): Modify for type change of
4593         `*_to_ucs'; modify for `make_charset'.
4594
4595         * char-ucs.h (struct Lisp_Charset): Change type of
4596         `decoding_table' from <Emchar*> to <Lisp_Object>.
4597         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4598
4599 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4602         error with non-UTF-2000-Mule.
4603
4604 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4607         in lisp again].
4608         (Vcharset_chinese_cns11643_4): Likewise.
4609         (Vcharset_chinese_cns11643_5): Likewise.
4610         (Vcharset_chinese_cns11643_6): Likewise.
4611         (Vcharset_chinese_cns11643_7): Likewise.
4612         (Qchinese_cns11643_3): Likewise.
4613         (Qchinese_cns11643_4): Likewise.
4614         (Qchinese_cns11643_5): Likewise.
4615         (Qchinese_cns11643_6): Likewise.
4616         (Qchinese_cns11643_7): Likewise.
4617         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4618         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4619         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4620         (complex_vars_of_mule_charset): Likewise.
4621
4622 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4623
4624         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4625         96-set.
4626         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4627         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4628
4629 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4630
4631         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4632         0xFF60.
4633         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4634         (breakup_char_1): Likewise.
4635
4636         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4637         one of them includes the specified character.
4638
4639 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4640
4641         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4642
4643 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4644
4645         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4646
4647 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4648
4649         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4650         definition for non-UTF-2000 Mule.
4651         (latin_iso8859_3_to_ucs): Likewise.
4652         (latin_iso8859_4_to_ucs): Likewise.
4653         (latin_iso8859_9_to_ucs): Likewise.
4654         (latin_jisx0201_to_ucs): Likewise.
4655         (MIN_CHAR_THAI): Likewise.
4656         (MAX_CHAR_THAI): Likewise.
4657         (MIN_CHAR_GREEK): Likewise.
4658         (MAX_CHAR_GREEK): Likewise.
4659         (MIN_CHAR_HEBREW): Likewise.
4660         (MAX_CHAR_HEBREW): Likewise.
4661         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4662         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4663         (MIN_CHAR_CYRILLIC): Likewise.
4664         (MAX_CHAR_CYRILLIC): Likewise.
4665
4666 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4667
4668         * char-ucs.h (breakup_char_1): Use
4669         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4670         thai-tis620 and katakana-jisx0201 area.
4671
4672 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4673
4674         * char-ucs.h (breakup_char_1): Use
4675         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4676         area.
4677
4678         * text-coding.c (reset_encoding_stream): Fixed.
4679         (char_encode_ucs4): Delete `& 255'.
4680
4681         * char-ucs.h (breakup_char_1): Use
4682         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4683
4684 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4685
4686         * file-coding.c (Fmake_coding_system): Don't set up
4687         `codesys->fixed.size'.
4688         (encode_coding_no_conversion): Don't refer
4689         `str->codesys->fixed.size'.
4690
4691 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4692
4693         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4694         (latin_a_char_to_byte1): Deleted.
4695         (latin_a_char_to_byte2): Deleted.
4696
4697 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4698
4699         * mule-charset.c (make_charset): Add new argument `ucs_min',
4700         `ucs_max' and `code_offset'.
4701         (charset_get_byte1): New implementation [delete specific charset
4702         depended implementations].
4703         (Fmake_charset): Modify for `make_charset'.
4704         (Fmake_reverse_direction_charset): Likewise.
4705         (complex_vars_of_mule_charset): Likewise.
4706
4707         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4708         `code_offset'.
4709         (CHARSET_UCS_MIN): New macro.
4710         (CHARSET_UCS_MAX): New macro.
4711         (CHARSET_CODE_OFFSET): New macro.
4712         (MAKE_CHAR): Delete charset depended definitions [except
4713         katakana-jisx0201].
4714
4715 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4716
4717         * char-ucs.h (breakup_char_1): Use
4718         `Vdefault_coded_charset_priority_list' for C0-Controls,
4719         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4720
4721 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4722
4723         * char-ucs.h (charset_get_byte1): New function.
4724         (XCHARSET_GET_BYTE1): Deleted.
4725         (charset_get_byte2): New function.
4726         (XCHARSET_GET_BYTE2): Deleted.
4727         (Vdefault_coded_charset_priority_list): New external variable.
4728         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4729         `Vdefault_preferred_coded_charset_list'.
4730
4731         * mule-charset.c (charset_get_byte1): New function.
4732         (charset_get_byte2): New function.
4733         (Vdefault_coded_charset_priority_list): New variable.
4734         (vars_of_mule_charset): Add new variable
4735         `default-coded-charset-priority-list'.
4736
4737 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4738
4739         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4740         (XCHARSET_GET_BYTE2): New inline function.
4741         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4742         `XCHARSET_GET_BYTE2'.
4743
4744 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4745
4746         * mule-charset.c (make_charset): Initialize
4747         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4748         NULL if table is not defined.
4749
4750 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4751
4752         * text-coding.c (char_encode_shift_jis): Use
4753         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4754         `ucs_to_latin_jisx0201'.
4755
4756         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4757         (ucs_to_latin_iso8859_2): Deleted.
4758         (ucs_to_latin_iso8859_3): Deleted.
4759         (ucs_to_latin_iso8859_4): Deleted.
4760         (ucs_to_latin_iso8859_9): Deleted.
4761         (ucs_to_latin_viscii_lower): Deleted.
4762         (ucs_to_latin_viscii_upper): Deleted.
4763         (ucs_to_latin_tcvn5712): Deleted.
4764         (make_charset): Add new argument `decoding_table'; set up
4765         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4766         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4767         `decoding_table' is defined in UTF-2000.
4768         (Fmake_charset): Modify for `make_charset'.
4769         (Fmake_reverse_direction_charset): Likewise.
4770         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4771         and `GENERATE_96_SET'.
4772
4773         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4774         (ucs_to_latin_jisx0201): Deleted.
4775         (latin_iso8859_2_to_ucs): Deleted.
4776         (ucs_to_latin_iso8859_2): Deleted.
4777         (latin_iso8859_3_to_ucs): Deleted.
4778         (ucs_to_latin_iso8859_3): Deleted.
4779         (latin_iso8859_4_to_ucs): Deleted.
4780         (ucs_to_latin_iso8859_4): Deleted.
4781         (latin_iso8859_9_to_ucs): Deleted.
4782         (ucs_to_latin_iso8859_9): Deleted.
4783         (latin_viscii_lower_to_ucs): Deleted.
4784         (ucs_to_latin_viscii_lower): Deleted.
4785         (latin_viscii_upper_to_ucs): Deleted.
4786         (ucs_to_latin_viscii_upper): Deleted.
4787         (struct Lisp_Charset): Renamed `encoding_table' to
4788         `to_byte1_table'; add `to_byte2_table'.
4789         (CHARSET_DECODING_TABLE): New macro.
4790         (CHARSET_TO_BYTE1_TABLE): New macro.
4791         (CHARSET_TO_BYTE2_TABLE): New macro.
4792         (XCHARSET_DECODING_TABLE): New macro.
4793         (XCHARSET_TO_BYTE1_TABLE): New macro.
4794         (XCHARSET_TO_BYTE2_TABLE): New macro.
4795         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4796         tables.
4797         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4798         don't use `ucs_to_*' tables.
4799
4800 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4801
4802         * text-coding.c (Fmake_coding_system): Don't set up
4803         `codesys->fixed.size'.
4804         (encode_coding_no_conversion): Use `if' instead of `switch'.
4805
4806         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4807
4808 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4809
4810         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4811         (Fmake_charset): Modify for `make_charset'.
4812         (Fmake_reverse_direction_charset): Likewise.
4813         (complex_vars_of_mule_charset): Likewise.
4814
4815 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4816
4817         * text-coding.c (char_encode_shift_jis): Use table
4818         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4819
4820 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4821
4822         * text-coding.c (text_encode_generic): Use `if' instead of
4823         `switch'.
4824         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4825         decode JIS-Latin.
4826
4827 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4828
4829         * text-coding.c (encode_coding_sjis): Deleted.
4830         (char_encode_shift_jis): New function.
4831         (char_finish_shift_jis): New function.
4832         (reset_encoding_stream): Set up `encode_char' and `finish' for
4833         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4834         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4835         (char_encode_utf8): Treat `eol_type'.
4836
4837 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4838
4839         * file-coding.c (decode_coding_iso2022): Use
4840         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4841
4842 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4843
4844         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4845         to 0.7 (Hirano).
4846
4847 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4848
4849         * char-lb.h (CHAR_COLUMNS): New macro.
4850
4851 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4852
4853         * text-coding.c (char_encode_ucs4): New function.
4854         (char_finish_ucs4): New function.
4855         (encode_coding_ucs4): Deleted.
4856         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4857         (text_encode_generic): Delete local variable `charset' and `half'.
4858         (ucs_to_mule_table): Deleted.
4859         (mule_to_ucs_table): Deleted.
4860         (Fset_ucs_char): Deleted.
4861         (ucs_to_char): Deleted.
4862         (Fucs_char): Deleted.
4863         (Fset_char_ucs): Deleted.
4864         (Fchar_ucs): Deleted.
4865         (decode_ucs4): Deleted.
4866         (mule_char_to_ucs4): Deleted.
4867         (encode_ucs4): Deleted.
4868         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4869         (decode_coding_utf8): Likewise.
4870         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4871         (char_encode_iso2022): Fixed.
4872         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4873         `Fset_char_ucs' and `Fchar_ucs'.
4874         (complex_vars_of_file_coding): Don't initialize
4875         `ucs_to_mule_table'.
4876
4877         * objects-tty.c (tty_initialize_font_instance): Don't use
4878         `XCHARSET_COLUMNS'.
4879
4880         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4881         UTF-2000.
4882
4883         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4884         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4885
4886         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4887         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4888         (emchar_string_displayed_columns): Likewise.
4889
4890         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4891         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4892         (string_column_at_point): Likewise.
4893         (Fmove_to_column): Likewise.
4894
4895         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4896         `encoding_table' and `decoding_table'.
4897         (CHARSET_REP_BYTES): Deleted.
4898         (XCHARSET_REP_BYTES): Deleted.
4899         (XCHARSET_COLUMNS): Deleted.
4900         (CHAR_COLUMNS): New macro.
4901         (lookup_composite_char): Deleted unconditionally.
4902         (composite_char_string): Likewise.
4903
4904 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4905
4906         * char-ucs.h (Emchar_to_byte_table): New type.
4907         (get_byte_from_character_table): New function interface.
4908         (Vcharset_latin_jisx0201): New variable.
4909         (latin_jisx0201_to_ucs): New variable.
4910         (ucs_to_latin_jisx0201): New variable.
4911         (Vcharset_latin_iso8859_2): New variable.
4912         (latin_iso8859_2_to_ucs): New variable.
4913         (ucs_to_latin_iso8859_2): New variable.
4914         (Vcharset_latin_iso8859_3): New variable.
4915         (latin_iso8859_3_to_ucs): New variable.
4916         (ucs_to_latin_iso8859_3): New variable.
4917         (Vcharset_latin_iso8859_4): New variable.
4918         (latin_iso8859_4_to_ucs): New variable.
4919         (ucs_to_latin_iso8859_4): New variable.
4920         (Vcharset_latin_iso8859_9): New variable.
4921         (latin_iso8859_9_to_ucs): New variable.
4922         (ucs_to_latin_iso8859_9): New variable.
4923         (Vcharset_latin_viscii_lower): New variable.
4924         (latin_viscii_lower_to_ucs): New variable.
4925         (ucs_to_latin_viscii_lower): New variable.
4926         (Vcharset_latin_viscii_upper): New variable.
4927         (latin_viscii_upper_to_ucs): New variable.
4928         (ucs_to_latin_viscii_upper): New variable.
4929         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4930         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4931         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4932         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4933         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4934         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4935         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4936         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4937         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4938         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4939
4940         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4941         (Vcharset_latin_viscii_upper): New variable.
4942         (make_byte_from_character_table): New function.
4943         (put_byte_from_character_table): New function.
4944         (get_byte_from_character_table): New function.
4945         (CHAR96): New macro.
4946         (ucs_to_latin_jisx0201): New variable.
4947         (latin_jisx0201_to_ucs): New variable.
4948         (ucs_to_latin_iso8859_2): New variable.
4949         (latin_iso8859_2_to_ucs): New variable.
4950         (ucs_to_latin_iso8859_3): New variable.
4951         (latin_iso8859_3_to_ucs): New variable.
4952         (ucs_to_latin_iso8859_4): New variable.
4953         (latin_iso8859_4_to_ucs): New variable.
4954         (ucs_to_latin_iso8859_9): New variable.
4955         (latin_iso8859_9_to_ucs): New variable.
4956         (ucs_to_latin_viscii_lower): New variable.
4957         (latin_viscii_lower_to_ucs): New variable.
4958         (ucs_to_latin_viscii_upper): New variable.
4959         (latin_viscii_upper_to_ucs): New variable.
4960         (ucs_to_latin_tcvn5712): New variable.
4961         (latin_tcvn5712_to_ucs): New variable.
4962         (Qlatin_viscii_lower): New variable.
4963         (Qlatin_viscii_upper): New variable.
4964         (syms_of_mule_charset): Set up new symbol
4965         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4966         (complex_vars_of_mule_charset): Set up new charset
4967         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4968         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4969         `ucs_to_<CHARSET>' tables.
4970
4971 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4972
4973         * text-coding.c: New file.
4974
4975 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4976
4977         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4978
4979         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4980         (MAKE_CHAR): Modify for `ucs-bmp'.
4981         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4982         non-MULE characters of BMP.
4983
4984 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4985
4986         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4987         to 0.6.
4988
4989 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4990
4991         * lstream.h:
4992         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4993         - Include character.h for `CHAR_ASCII_P'.
4994
4995         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4996
4997         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4998         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4999
5000         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5001         (BYTE_C0_P): Likewise.
5002         (BYTE_C1_P): Likewise.
5003         (Lstream_get_emchar_1): Likewise.
5004         (Lstream_fput_emchar): Likewise.
5005         (Lstream_funget_emchar): Likewise.
5006         (copy_internal_to_external): Likewise.
5007         (copy_external_to_internal): Likewise.
5008
5009         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5010         (BYTE_C0_P): Likewise.
5011         (BYTE_C1_P): Likewise.
5012         (Lstream_get_emchar_1): Likewise.
5013         (Lstream_fput_emchar): Likewise.
5014         (Lstream_funget_emchar): Likewise.
5015         (copy_internal_to_external): Likewise.
5016         (copy_external_to_internal): Likewise.
5017
5018         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5019         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5020
5021         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5022         (BYTE_ASCII_P): Moved to mb-1byte.h.
5023
5024 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5025
5026         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5027
5028         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5029         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5030         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5031         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5032         (VALIDATE_CHARPTR_FORWARD): Likewise.
5033         (simple_charptr_emchar): Moved to mb-multibyte.h.
5034         (simple_set_charptr_emchar): Likewise.
5035         (simple_charptr_copy_char): Likewise.
5036         (non_ascii_charptr_emchar): Likewise.
5037         (non_ascii_set_charptr_emchar): Likewise.
5038         (non_ascii_charptr_copy_char): Likewise.
5039         (charptr_emchar): Moved to mb-*byte.h.
5040         (set_charptr_emchar): Likewise.
5041         (charptr_copy_char): Likewise.
5042
5043         * mb-1byte.h, mb-multibyte.h: New files.
5044
5045 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5046
5047         * mb-utf-8.h (MULTIBYTE): New macro.
5048         (MAX_EMCHAR_LEN): Moved from buffer.h.
5049         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5050
5051         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5052
5053         * mb-lb.h, multibyte.h: New files.
5054
5055         * char-1byte.h (Charset_ID): Moved from buffer.h.
5056         (MIN_LEADING_BYTE): Likewise.
5057         (LEADING_BYTE_ASCII): Likewise.
5058         (NUM_LEADING_BYTES): Likewise.
5059         (CHARSETP): Likewise.
5060         (CHARSET_BY_LEADING_BYTE): Likewise.
5061         (XCHARSET_LEADING_BYTE): Likewise.
5062         (XCHARSET_GRAPHIC): Likewise.
5063         (XCHARSET_COLUMNS): Likewise.
5064         (XCHARSET_DIMENSION): Likewise.
5065         (CHAR_CHARSET): Likewise.
5066         (CHAR_LEADING_BYTE): Likewise.
5067         (BREAKUP_CHAR): Likewise.
5068         (Vcharset_ascii): Likewise.
5069
5070         * buffer.h: Include multibyte.h unconditionally.
5071         (VALID_CHARPTR_P): Moved to multibyte.h.
5072         (ASSERT_VALID_CHARPTR): Likewise.
5073         (REAL_INC_CHARPTR): Likewise.
5074         (REAL_INC_CHARBYTIND): Likewise.
5075         (REAL_DEC_CHARPTR): Likewise.
5076         (INC_CHARPTR): Likewise.
5077         (INC_CHARBYTIND): Likewise.
5078         (DEC_CHARPTR): Likewise.
5079         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5080         (VALIDATE_CHARPTR_FORWARD): Likewise.
5081         (charptr_n_addr): Likewise.
5082         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5083         (simple_charptr_emchar): Moved to multibyte.h.
5084         (simple_set_charptr_emchar): Likewise.
5085         (simple_charptr_copy_char): Likewise.
5086         (non_ascii_charptr_emchar): Likewise.
5087         (non_ascii_set_charptr_emchar): Likewise.
5088         (non_ascii_charptr_copy_char): Likewise.
5089         (charptr_emchar): Likewise.
5090         (set_charptr_emchar): Likewise.
5091         (charptr_copy_char): Likewise.
5092         (charptr_emchar_n): Likewise.
5093         (Charset_ID): Moved to char-1byte.h.
5094         (Vcharset_ascii): Likewise.
5095         (CHAR_CHARSET): Likewise.
5096         (CHAR_LEADING_BYTE): Likewise.
5097         (LEADING_BYTE_ASCII): Likewise.
5098         (NUM_LEADING_BYTES): Likewise.
5099         (MIN_LEADING_BYTE): Likewise.
5100         (CHARSETP): Likewise.
5101         (CHARSET_BY_LEADING_BYTE): Likewise.
5102         (XCHARSET_LEADING_BYTE): Likewise.
5103         (XCHARSET_GRAPHIC): Likewise.
5104         (XCHARSET_COLUMNS): Likewise.
5105         (XCHARSET_DIMENSION): Likewise.
5106         (BREAKUP_CHAR): Likewise.
5107
5108 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5109
5110         * character.h: Add document about interface for characters.
5111
5112         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5113         (MAKE_CHAR): Delete comment about
5114         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5115         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5116         (BREAKUP_CHAR): Modify name of arguments.
5117         (CHAR_CHARSET): Modify name of argument.
5118
5119         * buffer.h: Delete document about Emchar accessors.
5120
5121 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5122
5123         * character.h (CHAR_INTP): Moved from buffer.h
5124         (CHAR_OR_CHAR_INTP): Likewise.
5125         (XCHAR_OR_CHAR_INT): Likewise.
5126         (CHECK_CHAR_COERCE_INT): Likewise.
5127
5128         * buffer.h (CHAR_INTP): Moved to character.h
5129         (CHAR_OR_CHAR_INTP): Likewise.
5130         (XCHAR_OR_CHAR_INT): Likewise.
5131         (CHECK_CHAR_COERCE_INT): Likewise.
5132
5133 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5134
5135         * character.h:
5136         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5137         - Include char-1byte.h, char-lb.h or char-ucs.h.
5138
5139         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5140
5141         * buffer.h: Include character unconditionally.
5142         (valid_char_p): Moved to char-*.h.
5143         (non_ascii_valid_char_p): Moved to char-lb.h.
5144
5145         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5146
5147 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5148
5149         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5150         in UTF-2000 because it is not ported yet and not to use
5151         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5152         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5153         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5154
5155         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5156         (CHAR_ASCII_P): Moved from character.h.
5157
5158         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5159         (CHAR_ASCII_P): Likewise.
5160         (CHAR_FIELD1_MASK): Deleted.
5161         (CHAR_FIELD2_MASK): Deleted.
5162         (CHAR_FIELD3_MASK): Deleted.
5163         (MAX_CHAR_BASIC_LATIN): New macro.
5164         (CHAR_FIELD1): Deleted.
5165         (CHAR_FIELD2_INTERNAL): Deleted.
5166         (CHAR_FIELD3_INTERNAL): Deleted.
5167         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5168         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5169         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5170         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5171         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5172         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5173         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5174         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5175         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5176         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5177         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5178         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5179         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5180         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5181         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5182         (MIN_CHAR_COMPOSITION): Deleted.
5183         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5184         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5185
5186 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5187
5188         * buffer.h: Include mb-utf-8.h in UTF-2000.
5189
5190         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5191
5192         * mb-utf-8.h: New file.
5193
5194 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5195
5196         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5197         instead of `int'.
5198
5199         * mule-charset.h, buffer.h (Charset_ID): New type.
5200
5201 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5202
5203         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5204         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5205         instead of `MULE_CHAR_PRIVATE_OFFSET',
5206         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5207         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5208         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5209
5210         * character.h (Vcharset_japanese_jisx0212): New variable
5211         definition.
5212
5213 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5214
5215         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5216         (charset_by_attributes): Delete array about direction.
5217         (latin_a_char_to_charset): New variable in UTF-2000.
5218         (latin_a_char_to_byte1): New variable in UTF-2000.
5219         (latin_a_char_to_byte2): New variable in UTF-2000.
5220         (Qucs_bmp): New variable.
5221         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5222         `Bufbyte'.
5223         (next_allocated_2_byte_leading_byte): Likewise.
5224         (non_ascii_set_charptr_emchar): Likewise.
5225         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5226         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5227         `charset_by_attributes'.
5228         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5229         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5230         and `CHARSET_BY_LEADING_BYTE'.
5231         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5232         `utf-2000-version' to `vars_of_mule_charset'.
5233         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5234         define `leading-code-private-11' in UTF-2000; move setting of
5235         `utf-2000-version' from `syms_of_mule_charset'.
5236         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5237         UTF-2000.
5238
5239         * character.h (Charset_ID): New type.
5240         (LEADING_BYTE_UCS_BMP): New macro.
5241         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5242         (CHARSET_ID_OFFSET_94): New macro.
5243         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5244         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5245         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5246         final-byte.
5247         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5248         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5249         (CHARSET_ID_OFFSET_96): New macro.
5250         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5251         CHARSET_ID_OFFSET_96 and final-byte.
5252         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5253         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5254         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5255         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5256         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5257         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5258         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5259         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5260         (LEADING_BYTE_THAI_TIS620): Likewise.
5261         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5262         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5263         (CHARSET_ID_OFFSET_94x94): New macro.
5264         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5265         CHARSET_ID_OFFSET_94x94 and final-byte.
5266         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5267         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5268         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5269         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5270         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5271         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5272         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5273         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5274         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5275         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5276         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5277         (CHARSET_TYPE_128X128): New macro.
5278         (CHARSET_TYPE_256X256): New macro.
5279         (XCHARSET_PRIVATE_P): Delete unconditionally.
5280         (charset_by_attributes): Delete array about direction.
5281         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5282         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5283         (MIN_CHAR_94): New macro.
5284         (MAX_CHAR_94): New macro.
5285         (MIN_CHAR_96): New macro.
5286         (MAX_CHAR_96): New macro.
5287         (MIN_CHAR_94x94): New macro.
5288         (MAX_CHAR_94x94): New macro.
5289         (MIN_CHAR_96x96): New macro.
5290         (MAX_CHAR_96x96): New macro.
5291         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5292         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5293         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5294         - 32)'.
5295         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5296         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5297         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5298         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5299         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5300         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5301         `XCHARSET_LEADING_BYTE' to make code-point.
5302         (latin_a_char_to_charset): New variable.
5303         (latin_a_char_to_byte1): New variable.
5304         (latin_a_char_to_byte2): New variable.
5305         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5306         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5307         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5308
5309         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5310         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5311         (find_charsets_in_emchar_string): Likewise.
5312         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5313
5314         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5315         `int'.
5316         (decode_coding_iso2022): Likewise.
5317
5318         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5319         of `unsigned char'.
5320
5321         * redisplay.c (redisplay_text_width_emchar_string): Use
5322         `Charset_ID' instead of `unsigned char'.
5323         (redisplay_frame_text_width_string): Likewise.
5324
5325         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5326         `unsigned char'.
5327
5328         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5329         instead of `unsigned char'.
5330         (face_cachel_charset_font_metric_info): Likewise.
5331
5332         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5333         (get_non_ascii_char_table_value): Likewise.
5334         (get_char_table): Likewise.
5335         (put_char_table): Likewise.
5336         (map_over_other_charset): Likewise.
5337         (map_char_table): Likewise.
5338
5339         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5340         instead of `unsigned char'.
5341
5342 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5343
5344         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5345         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5346
5347         * mule-charset.c (leading_code_private_11): Don't define in
5348         UTF-2000.
5349
5350         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5351         in UTF-2000 because it is not ported yet and not to use
5352         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5353
5354 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5355
5356         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5357
5358 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5359
5360         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5361         in UTF-2000.
5362
5363         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5364         of unsigned char to store leading-byte.
5365
5366         * chartab.c (get_non_ascii_char_table_value): Don't use
5367         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5368
5369         * file-coding.c (encode_coding_big5): Delete bogus implementation
5370         in UTF2000.
5371
5372         * character.h (LEADING_BYTE_*): Delete definition for
5373         non-UTF-2000.
5374         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5375         (LEADING_BYTE_PREFIX_P): Deleted.
5376         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5377         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5378         (BUFBYTE_LEADING_BYTE_P): Deleted.
5379         (CHARSET_PRIVATE_P): Deleted unconditionally.
5380         (rep_bytes_by_first_byte): Deleted unconditionally.
5381         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5382         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5383         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5384         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5385         (CHAR_FIELD2): Deleted.
5386         (CHAR_FIELD3): Deleted.
5387         (MAKE_CHAR): Delete definition for non-UTF-2000.
5388         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5389         (breakup_char_1): New implementation.
5390         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5391         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5392
5393 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5394
5395         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5396         condition.
5397
5398 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5399
5400         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5401         (CHARSET_PRIVATE_P): Likewise.
5402         (XCHARSET_PRIVATE_P): Likewise.
5403         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5404
5405         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5406         UTF2000.
5407         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5408
5409 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5410
5411         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5412         (NUM_LEADING_BYTES): Changed from 128 to 256.
5413         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5414         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5415         UTF2000.
5416         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5417
5418         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5419         UTF2000.
5420         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5421         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5422         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5423         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5424         (Qchinese_cns11643_3): New variable in UTF2000.
5425         (Qchinese_cns11643_4): New variable in UTF2000.
5426         (Qchinese_cns11643_5): New variable in UTF2000.
5427         (Qchinese_cns11643_6): New variable in UTF2000.
5428         (Qchinese_cns11643_7): New variable in UTF2000.
5429         (syms_of_mule_charset): Define `chinese-cns11643-3',
5430         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5431         and `chinese-cns11643-7' in UTF2000.
5432         (vars_of_mule_charset): Initialize
5433         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5434         + 1 in UTF2000.
5435         (complex_vars_of_mule_charset): Setup charset
5436         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5437         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5438
5439 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5440
5441         * mule-charset.c: Move setting for `leading-code-private-11' from
5442         `syms_of_mule_charset' to `vars_of_mule_charset'.
5443
5444 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5445
5446         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5447         and `NUM_LEADING_BYTES' in assert.
5448
5449 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5450
5451         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5452         instead of 128.
5453         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5454         `NUM_LEADING_BYTES' instead of 128.
5455
5456 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * mule-charset.h (charset_by_leading_byte): Use
5459         `NUM_LEADING_BYTES' instead of 128.
5460         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5461
5462         * mule-charset.c (charset_by_leading_byte): Use
5463         `NUM_LEADING_BYTES' instead of 128.
5464         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5465
5466         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5467         128.
5468
5469 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5470
5471         * mule-charset.c (syms_of_mule_charset): Update to
5472         0.4 (Shin-Imamiya).
5473
5474 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5475
5476         * file-coding.c (encode_coding_sjis): New implementation for
5477         UTF2000.  (decode_coding_sjis): Ditto.
5478
5479 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5480
5481         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5482         Don't define in UTF2000.
5483
5484         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5485         defined.
5486
5487         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5488         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5489         MULE.
5490
5491 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5492
5493         * config.h.in (CHAR_IS_UCS4): New macro.
5494
5495         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5496         conventional MULE representation.
5497         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5498
5499         * mule-charset.h: Reverted to original.
5500
5501         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5502         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5503         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5504
5505         * character.h: New file.
5506
5507         * file-coding.c (Fmake_coding_system): Set 1 to
5508         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5509         defined.
5510         (encode_coding_no_conversion): New implementation for UTF2000.
5511
5512         * file-coding.h (struct Lisp_Coding_System): Add new member
5513         `fixed.size'.
5514
5515 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5516
5517         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5518         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5519         (encode_coding_iso2022): New implementation for UTF2000.
5520
5521 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5522
5523         * mule-canna.c (c2mu): New implementation for UTF2000.
5524         (m2c): Likewise.
5525
5526 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5527
5528         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5529
5530 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5531
5532         * file-coding.c (reset_encoding_stream): Set 0 to
5533         `str->iso2022.current_char_boundary' in UTF2000.
5534         (encode_utf8): Don't define in UTF2000.
5535         (encode_coding_utf8): New implementation for UTF-8 representation
5536         of UTF2000.
5537         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5538
5539 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5540
5541         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5542
5543         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5544         UTF2000.
5545         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5546
5547         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5548
5549         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5550         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5551         as UTF-8 in UTF2000.
5552         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5553         (non_ascii_valid_char_p): Don't define in UTF2000.
5554         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5555         (Lstream_get_emchar_1): Likewise.
5556         (utf-2000-version): New variable in UTF2000.
5557
5558         * lread.c (read_escape): Add new reader `u'.
5559
5560         * insdel.c (three_to_one_table): Don't define in UTF2000.
5561         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5562         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5563         UTF2000.
5564         (bytind_to_bufpos_func): Likewise.
5565         (buffer_mule_signal_inserted_region): Likewise.
5566         (vars_of_insdel): Don't initialize `three_to_one_table'.
5567         (init_buffer_text): Use `buf->text->mule_size' instead of
5568         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5569         UTF2000.
5570
5571         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5572         UTF-8 representation in UTF2000.
5573         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5574         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5575         (decode_coding_iso2022): Don't define local variable `lb' in
5576         UTF2000; don't use LEADING_BYTE in UTF2000; use
5577         `DECODE_ADD_UCS_CHAR' in UTF2000.
5578         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5579
5580         * config.h.in (UTF2000): New macro.
5581
5582         * buffer.h (struct buffer_text): Add new member `mule_size' and
5583         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5584         (valid_char_p): Return always 1 in UTF2000.
5585         (MAX_EMCHAR_LEN): 6 in UTF2000.
5586         (three_to_one_table): Don't define in UTF2000.
5587         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5588         UTF2000.
5589         (real_bytind_to_bufpos): Likewise.
5590
5591         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5592
5593 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5594
5595         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5596         representation change.
5597         (Vutf_2000_version): New variable.
5598         (leading_code_private_11): New variable.
5599         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5600         `leading-code-private-11'.
5601
5602         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5603         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5604         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5605         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5606         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5607         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5608         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5609         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5610         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5611         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5612         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5613         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5614         (MIN_CHAR_GREEK): New macro.
5615         (MAX_CHAR_GREEK): New macro.
5616         (MIN_CHAR_CYRILLIC): New macro.
5617         (MAX_CHAR_CYRILLIC): New macro.
5618         (MIN_CHAR_HEBREW): New macro.
5619         (MAX_CHAR_HEBREW): New macro.
5620         (MIN_CHAR_THAI): New macro.
5621         (MAX_CHAR_THAI): New macro.
5622         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5623         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5624         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5625         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5626         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5627         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5628         (CHAR_FIELD2): New inline function.
5629         (CHAR_FIELD3): New inline function.
5630         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5631         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5632         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5633         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5634         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5635         (MIN_CHAR_COMPOSITION): Likewise.
5636         (CHAR_LEADING_BYTE): Modified for character representation change.
5637         (MAKE_CHAR): Likewise.
5638
5639         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5640         (Vcharset_greek_iso8859_7): Likewise.
5641         (Vcharset_cyrillic_iso8859_5): Likewise.
5642         (Vcharset_hebrew_iso8859_8): Likewise.
5643         (Vcharset_thai_tis620): Likewise.
5644         (Vcharset_katakana_jisx0201): Likewise.
5645
5646 2005-02-06  Vin Shelton <acs@xemacs.org>
5647
5648         * XEmacs 21.4.17 is released
5649
5650 2005-01-31  Ben Wing  <ben@xemacs.org>
5651
5652         * emacs.c:
5653         Define assert_failed() always.
5654         * lisp.h:
5655         Always define ABORT().
5656
5657 2005-01-25  Ben Wing  <ben@xemacs.org>
5658
5659         * Makefile.in.in:
5660         * Makefile.in.in (%.o):
5661         Don't compile executable as Windows (-mwindows) under Cygwin.
5662         Semi-recent changes to Cygwin's executable-startup handling make
5663         it impossible to access the TTY this way.
5664
5665         Don't use special linker file under Cygwin (cygwin.sc) except
5666         when non-PDUMP (even in this case it is highly questionable); you
5667         get errors like
5668
5669       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5670    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5671
5672 2005-01-29  Ben Wing  <ben@xemacs.org>
5673
5674         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5675
5676         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5677
5678 2005-01-29  Ben Wing  <ben@xemacs.org>
5679
5680         * bytecode.c (optimize_compiled_function):
5681         * print.c (FROB):
5682         * print.c (long_to_string):
5683         Add casts to avoid warning.
5684         
5685         * glyphs-eimage.c:
5686         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5687         #### The better solution is to move the TIFF and JPEG code to
5688         different files.
5689         
5690         * glyphs-msw.c (mswindows_xbm_instantiate):
5691         Define __STDC__ to avoid problems with compface.h.
5692         
5693         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5694         * EmacsShell-sub.c:
5695         * EmacsShell-sub.c (ABORT):
5696         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5697         * EmacsShell-sub.c (RootGeometryManager):
5698         * EmacsShell.c:
5699         * EmacsShell.c (ABORT):
5700         * EmacsShell.c (EmacsShellUpdateSizeHints):
5701         * alloc.c (free_lcrecord):
5702         * alloca.c (i00afunc):
5703         * buffer.c (delete_from_buffer_alist):
5704         * buffer.c (MARKED_SLOT):
5705         * bytecode.c (execute_rare_opcode):
5706         * bytecode.c (optimize_byte_code):
5707         * bytecode.c (Ffetch_bytecode):
5708         * chartab.c (char_table_type_to_symbol):
5709         * chartab.c (Freset_char_table):
5710         * chartab.c (decode_char_table_range):
5711         * chartab.c (Fget_range_char_table):
5712         * chartab.c (check_valid_char_table_value):
5713         * chartab.c (map_char_table):
5714         * chartab.c (slow_map_char_table_fun):
5715         * chartab.c (chartab_instantiate):
5716         * cm.c (cmcheckmagic):
5717         * console-msw.c (DHEADER):
5718         * console.c (MARKED_SLOT):
5719         * data.c (finish_marking_weak_lists):
5720         * data.c (encode_weak_list_type):
5721         * debug.h (DASSERT):
5722         * device-gtk.c (gtk_init_device):
5723         * device-msw.c (mswindows_get_default_margin):
5724         * device-tty.c (tty_init_device):
5725         * device-x.c (get_device_from_display):
5726         * device-x.c (x_get_visual_depth):
5727         * doprnt.c (parse_doprnt_spec):
5728         * doprnt.c (get_doprnt_args):
5729         * dumper.c (pdump_get_indirect_count):
5730         * dumper.c (pdump_register_sub):
5731         * dumper.c (pdump_register_object):
5732         * dumper.c (pdump_register_struct):
5733         * dumper.c (pdump_dump_data):
5734         * dumper.c (pdump_reloc_one):
5735         * elhash.c (print_hash_table):
5736         * elhash.c (make_standard_lisp_hash_table):
5737         * elhash.c (hash_table_instantiate):
5738         * emacs.c:
5739         * emacs.c (Fforce_debugging_signal):
5740         * emacs.c (sort_args):
5741         * emacs.c (main):
5742         * emacs.c (assert_failed):
5743         * eval.c (throw_or_bomb_out):
5744         * eval.c (signal_1):
5745         * eval.c (Fsignal):
5746         * event-Xt.c:
5747         * event-Xt.c (emacs_Xt_mapping_action):
5748         * event-Xt.c (Xt_process_to_emacs_event):
5749         * event-msw.c:
5750         * event-stream.c (check_event_stream_ok):
5751         * event-stream.c (Fadd_timeout):
5752         * event-stream.c (Fadd_async_timeout):
5753         * event-stream.c (Fdiscard_input):
5754         * event-stream.c (execute_internal_event):
5755         * event-stream.c (Frecent_keys):
5756         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5757         * event-stream.c (lookup_command_event):
5758         * event-unixoid.c (poll_fds_for_input):
5759         * events.c:
5760         * events.c (mark_event):
5761         * events.c (event_equal):
5762         * events.c (event_hash):
5763         * events.c (Fmake_event):
5764         * events.c (Fdeallocate_event):
5765         * events.c (event_chain_find_previous):
5766         * events.c (event_to_character):
5767         * events.c (format_event_object):
5768         * events.c (Fevent_type):
5769         * events.c (event_pixel_translation):
5770         * events.c (Fevent_properties):
5771         * extents.c (extent_in_region_p):
5772         * extents.c (print_extent):
5773         * extents.c (process_extents_for_insertion_mapper):
5774         * extents.c (report_extent_modification_mapper):
5775         * extents.c (glyph_layout_to_symbol):
5776         * faces.c (face_validate):
5777         * file-coding.c (eol_type_to_symbol):
5778         * file-coding.c (subsidiary_coding_system):
5779         * file-coding.c (Fcoding_system_type):
5780         * file-coding.c (Fcoding_system_property):
5781         * file-coding.c (mule_decode):
5782         * file-coding.c (mule_encode):
5783         * file-coding.c (encode_coding_ucs4):
5784         * file-coding.c (encode_coding_utf8):
5785         * file-coding.c (parse_iso2022_esc):
5786         * file-coding.c (encode_coding_iso2022):
5787         * fileio.c:
5788         * fns.c (concat):
5789         * fns.c (Fsubseq):
5790         * fns.c (mapcar1):
5791         * fns.c (Fbase64_encode_region):
5792         * fns.c (Fbase64_encode_string):
5793         * fns.c (Fbase64_decode_region):
5794         * fns.c (Fbase64_decode_string):
5795         * font-lock.c (find_context):
5796         * font-lock.c (context_to_symbol):
5797         * frame-gtk.c (gtk_set_frame_pointer):
5798         * frame-gtk.c (gtk_update_frame_external_traits):
5799         * frame-x.c (x_wm_mark_shell_size_user_specified):
5800         * frame-x.c (x_wm_mark_shell_position_user_specified):
5801         * frame-x.c (x_wm_set_shell_iconic_p):
5802         * frame-x.c (x_wm_set_cell_size):
5803         * frame-x.c (x_wm_set_variable_size):
5804         * frame-x.c (x_wm_store_class_hints):
5805         * frame-x.c (x_wm_maybe_store_wm_command):
5806         * frame-x.c (x_initialize_frame_size):
5807         * frame-x.c (x_update_frame_external_traits):
5808         * frame.c:
5809         * frame.c (delete_frame_internal):
5810         * frame.c (mouse_pixel_position_1):
5811         * frame.c (change_frame_size_1):
5812         * free-hook.c (check_free):
5813         * free-hook.c (check_realloc):
5814         * free-hook.c (note_block_input):
5815         * free-hook.c (log_gcpro):
5816         * gccache-gtk.c (gc_cache_lookup):
5817         * glyphs-eimage.c (tiff_memory_write):
5818         * glyphs-gtk.c (gtk_finalize_image_instance):
5819         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5820         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5821         * glyphs-gtk.c (gtk_xpm_instantiate):
5822         * glyphs-gtk.c (gtk_unmap_subwindow):
5823         * glyphs-gtk.c (gtk_map_subwindow):
5824         * glyphs-gtk.c (gtk_button_redisplay):
5825         * glyphs-msw.c:
5826         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5827         * glyphs-x.c (init_image_instance_from_xbm_inline):
5828         * glyphs-x.c (extract_xpm_color_names):
5829         * glyphs-x.c (x_xpm_instantiate):
5830         * glyphs.c (get_image_instantiator_governing_domain):
5831         * glyphs.c (print_image_instance):
5832         * glyphs.c (image_instance_equal):
5833         * glyphs.c (image_instance_hash):
5834         * glyphs.c (encode_image_instance_type):
5835         * glyphs.c (make_image_instance_1):
5836         * glyphs.c (inherit_instantiate):
5837         * glyphs.c (image_instantiate):
5838         * glyphs.c (allocate_glyph):
5839         * glyphs.c (Fglyph_type):
5840         * glyphs.c (redisplay_subwindow):
5841         * glyphs.c (display_table_entry):
5842         * gtk-glue.c (xemacs_list_to_gtklist):
5843         * gtk-glue.c (xemacs_gtklist_to_list):
5844         * gtk-glue.c (xemacs_list_to_array):
5845         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5846         * gutter.c (gutter_was_visible):
5847         * gutter.c (get_gutter_coords):
5848         * input-method-xlib.c (get_XIM_input):
5849         * insdel.c (bufpos_to_bytind_func):
5850         * insdel.c (bytind_to_bufpos_func):
5851         * insdel.c (move_gap):
5852         * intl.c (x_get_composed_input):
5853         * keymap.c (keymap_lookup_directly):
5854         * keymap.c (keymap_delete_inverse_internal):
5855         * keymap.c (ensure_meta_prefix_char_keymapp):
5856         * keymap.c (accessible_keymaps_mapper_1):
5857         * keymap.c (where_is_recursive_mapper):
5858         * lisp.h:
5859         * lisp.h (ABORT):
5860         * lread.c (read_atom):
5861         * lstream.c (Lstream_delete):
5862         * lstream.c (make_lisp_buffer_stream_1):
5863         * macros.c (pop_kbd_macro_event):
5864         * malloc.c (malloc):
5865         * malloc.c (free):
5866         * marker.c (bi_marker_position):
5867         * marker.c (set_bi_marker_position):
5868         * menubar-gtk.c (menu_descriptor_to_widget_1):
5869         * menubar-msw.c (prune_menubar):
5870         * menubar-x.c (set_frame_menubar):
5871         * mule-charset.c (get_unallocated_leading_byte):
5872         * mule-charset.h (CHAR_LEADING_BYTE):
5873         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5874         * nt.c (init_environment):
5875         * nt.c (generate_inode_val):
5876         * ntproc.c (delete_child):
5877         * ntproc.c (_sys_read_ahead):
5878         * ntproc.c (create_child):
5879         * objects.c (color_instantiate):
5880         * objects.c (font_instantiate):
5881         * objects.c (face_boolean_instantiate):
5882         * print.c (printing_major_badness):
5883         * process-nt.c (nt_send_process):
5884         * process-unix.c (unix_send_process):
5885         * process.c (get_process):
5886         * ralloc.c (obtain):
5887         * ralloc.c (relinquish):
5888         * ralloc.c (relocate_blocs):
5889         * ralloc.c (resize_bloc):
5890         * ralloc.c (r_alloc_free):
5891         * ralloc.c (r_re_alloc):
5892         * ralloc.c (r_alloc_thaw):
5893         * ralloc.c (init_ralloc):
5894         * ralloc.c (Free_Addr_Block):
5895         * ralloc.c (r_alloc):
5896         * redisplay-gtk.c (gtk_output_display_block):
5897         * redisplay-msw.c (mswindows_output_display_block):
5898         * redisplay-output.c (get_next_display_block):
5899         * redisplay-output.c (get_cursor_size_and_location):
5900         * redisplay-output.c (redisplay_output_layout):
5901         * redisplay-output.c (redisplay_clear_region):
5902         * redisplay-tty.c (tty_output_display_block):
5903         * redisplay-x.c (x_output_display_block):
5904         * redisplay.c (add_propagation_runes):
5905         * redisplay.c (add_glyph_rune):
5906         * redisplay.c (create_text_block):
5907         * redisplay.c (add_margin_runes):
5908         * redisplay.c (create_left_glyph_block):
5909         * redisplay.c (create_right_glyph_block):
5910         * redisplay.c (create_string_text_block):
5911         * redisplay.c (regenerate_window):
5912         * redisplay.c (REGEN_INC_FIND_START_END):
5913         * redisplay.c (redisplay_frame):
5914         * redisplay.c (point_in_line_start_cache):
5915         * regex.c:
5916         * regex.c (ABORT):
5917         * regex.c (re_compile_fastmap):
5918         * regex.c (re_match_2_internal):
5919         * regex.c (regerror):
5920         * scrollbar-gtk.c (gtk_scrollbar_loop):
5921         * scrollbar-gtk.c (scrollbar_cb):
5922         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
5923         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
5924         * scrollbar-x.c (x_update_scrollbar_instance_status):
5925         * scrollbar-x.c (x_scrollbar_loop):
5926         * scrollbar-x.c (x_update_frame_scrollbars):
5927         * search.c (search_command):
5928         * search.c (Fmatch_data):
5929         * select-x.c (motif_clipboard_cb):
5930         * signal.c (interrupt_signal):
5931         * specifier.c (specifier_add_spec):
5932         * specifier.c (specifier_instance_from_inst_list):
5933         * specifier.c (specifier_instance):
5934         * specifier.h:
5935         * specifier.h (struct specifier_methods):
5936         * strftime.c (add_num_time_t):
5937         * sunplay.c (init_device):
5938         * symbols.c (Fsetplist):
5939         * symbols.c (do_symval_forwarding):
5940         * symbols.c (store_symval_forwarding):
5941         * symbols.c (Fset):
5942         * symbols.c (Fbuilt_in_variable_type):
5943         * symbols.c (decode_magic_handler_type):
5944         * symbols.c (handler_type_from_function_symbol):
5945         * syntax.c (update_syntax_cache):
5946         * sysdep.c (init_baud_rate):
5947         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5948         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5949         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5950         * toolbar.c (get_toolbar_coords):
5951         * ui-gtk.c (build_gtk_boxed):
5952         * ui-gtk.c (describe_gtk_arg):
5953         * ui-gtk.c (gtk_type_to_lisp):
5954         * ui-gtk.c (lisp_to_gtk_type):
5955         * ui-gtk.c (lisp_to_gtk_ret_type):
5956         * ui-gtk.c (lisp_to_flag):
5957         * unexnt.c (read_in_bss):
5958         * unexnt.c (map_in_heap):
5959         * window.c (real_window):
5960         * window.c (window_display_lines):
5961         * window.c (window_display_buffer):
5962         * window.c (set_window_display_buffer):
5963         * window.c (window_modeline_height):
5964         * window.c (unshow_buffer):
5965         * window.c (window_loop):
5966         * window.c (Fget_lru_window):
5967         * window.c (Fsplit_window):
5968         * window.c (Fset_window_configuration):
5969         * window.c (saved_window_index):
5970         * xgccache.c (gc_cache_lookup):
5971         abort() -> ABORT().  Eliminate preprocessor games with abort()
5972         since it creates huge problems in VC7, solvable only by including
5973         massive amounts of files in every compile (and not worth it).
5974
5975         * sysdep.c:
5976         * sysproc.h:
5977         Inclusion of process.h does not need to be before lisp.h any more.
5978         Move later and remove comment about abort().
5979
5980 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
5981
5982         * regex.c (re_match_2_internal):
5983         Correctly initialize loop which clears uninitialized registers.
5984
5985 2005-01-28  Vin Shelton  <acs@xemacs.org>
5986
5987         * sheap.c (more_static_core): Applied Ben's version of the long
5988         string patch.
5989
5990 2005-01-24  Vin Shelton  <acs@xemacs.org>
5991
5992         * sheap.c (more_static_core): Reformatted printf string so
5993         gcc-3.3.3 will compile this on Cygwin.
5994
5995 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
5996
5997         * console.c (function_key_map): Reference `key-binding'.
5998
5999         * keymap.c (Vkey_translation_map): Improve docstring.
6000
6001 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6002
6003         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6004         * window.c (window_loop): [fix] Take into account
6005         `allow-deletion-of-last-visible-frame' variable.
6006         * window.c (replace-buffer-in-windows): Ditto.
6007
6008 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6009
6010         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6011
6012 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6013
6014         * event-gtk.c: Recognise AltGr as a valid modifier.
6015
6016 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6017
6018         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6019
6020 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6021
6022         Fix backreference bug caught by test suite.
6023
6024         * regex.c (regex_compile):
6025         Make backref duplicate internal register.
6026
6027 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6028
6029         Documentation, code clarification, and warning suppression.
6030         
6031         * regex.c (regex_compile):
6032         Improve comments.
6033         (re_match_2_internal):
6034         Improve comments and avoid redundant braces.  [Most of the big hunk
6035         at l. 4710 is indentation; use diff -w to see the real changes.]
6036         (alt_match_null_string_p):
6037         (common_op_match_null_string_p):
6038         Avoid shadowing global on Mac OS X 10.4, at least.
6039
6040 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6041
6042         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6043         introduced with shy groups fix).  [Already applied, probably
6044         with the second "fix shy groups" patch of 2004-10-07.] 
6045
6046 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6047
6048         From Andrey Slusar <anrays@gmail.com>:
6049
6050         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6051
6052 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6053
6054         * Makefile (RECURSIVE_MAKE): Removed.
6055         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6056         handling parallel builds.
6057
6058 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6059
6060         * Makefile.in.in: Enable support for parallel builds.
6061
6062 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6063
6064         From Andrey Slusar <anrays@gmail.com>:
6065
6066         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6067         FreeBSD version is >= 199701 _and_ < 600006.
6068
6069 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6070
6071         * scrollbar.c (compute_scrollbar_instance_usage):
6072         Only call device method compute_scrollbar_instance_usage() if it
6073         is defined.
6074
6075 2004-12-05  Vin Shelton <acs@xemacs.org>
6076
6077         * XEmacs 21.4.16 is released
6078
6079 2004-12-04  Vin Shelton  <acs@xemacs.org>
6080
6081         * depend: Regenerated.
6082
6083 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6084
6085         * regex.c (re_match_2_internal): Map internal to external
6086         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6087         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6088
6089 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6090
6091         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6092         to fix a crash.  Also, check the buffer is live and it
6093         really exists in buffer_list.  If the buffer is not in the list,
6094         prepend it.
6095
6096 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6097
6098         Fix shy groups by implementing recording of all groups for
6099         repetition and backtracking.  Backport from 21.5.
6100         
6101         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6102         external_to_internal_register, external_to_internal_register_size,
6103         and update comments for re_nsub.
6104
6105         * regex.c (re_opcode_t): Update comments.
6106         (print_compiled_pattern): Ouput external_to_internal_register,
6107         external_to_internal_register_size, and re_ngroups for debugging.
6108         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6109         (regex_compile): Update header comment.
6110         Ensure that all groups are recorded so that repeat matches and
6111         backtracking work correctly.  Comment related warning for groups >
6112         255.
6113         (re_search_2): Construct map of API indexes (which count only
6114         nonshy groups) to internal register numbers, and keep it updated.
6115
6116 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6117
6118         * frame-gtk.c (gtk_make_frame_visible):
6119         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6120         show/hide.  This is what X uses and is prevents previously hidden
6121         widgets from suddenly reappearing.
6122         * gtk-xemacs.c (gtk_xemacs_paint):
6123         * gtk-xemacs.c (gtk_xemacs_draw):
6124         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6125         drawable.
6126         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6127         size and location changes so that they can be seen before the next
6128         idle event.  Without this rapid changes to scrollbar properties
6129         are not seen.
6130
6131 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6132
6133         * console-gtk.h:
6134         * console-gtk.h (struct gtk_frame):
6135         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6136           Add hash tables track tab_control callback data.
6137           Added #defines for GTK object data names.
6138           Declaration of gtk_widget_to_frame().
6139         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6140         * frame-gtk.c (gtk_widget_to_frame): New.
6141         * frame-gtk.c (gtk_create_widgets):
6142         * frame-gtk.c (allocate_gtk_frame_struct):
6143         * frame-gtk.c (gtk_mark_frame):
6144         Manage frame callbakc hash tables.
6145         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6146         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6147         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6148         of widget size.
6149         * glyphs-gtk.c (gtk_widget_query_geometry): New
6150         * glyphs-gtk.c (gtk_register_gui_item): New
6151         * glyphs-gtk.c (gtk_add_tab_item): New
6152         * glyphs-gtk.c (gtk_tab_control_callback): New
6153         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6154         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6155         Use correct list when loading item.
6156         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6157         Register new methods.
6158         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6159         default size, for widgets.
6160         * gui-x.c:  Improved comment.
6161         * menubar-gtk.c (__generic_button_callback): Use
6162         gtk_widget_to_frame instead of __get_channel.
6163         * scrollbar-gtk.c:
6164         * ui-gtk.c: Use symbolic names for GTK object data.
6165
6166 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6167
6168         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6169
6170 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6171
6172         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6173
6174 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6175
6176         * malloc.c (morecore): siz is a long because in some architectures
6177         (eg ia-64) an int cannot hold the address range.  Additional patch
6178         from the SuSe distribution.
6179
6180 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6181
6182         * emacs.c:
6183         * malloc.c: lim_data is a long because in some architectures
6184         (eg ia-64) an int cannot hold the address range.
6185         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6186         instead of ulimit() because ulimit() always returns -1.
6187
6188 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6189
6190         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6191
6192 2004-06-11  David Kastrup  <dak@gnu.org>
6193
6194         * search.c (match_limit): Don't flag an error if match-data
6195         exceeding the allocated search_regs.num_regs gets requested, just
6196         return Qnil.
6197
6198 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6199
6200         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6201         replace symbolic color entries with the real colors specified in
6202         xpm-color-symbols, before passing the XPM to gtk.
6203         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6204         instead of a GTK specific field, so that it is used in by generic
6205         code.
6206
6207 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6208
6209        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6210         coredump from deref of NULL ptr (ExtData)
6211
6212 2004-04-19  Jerry James  <james@xemacs.org>
6213
6214         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6215         VALBITS to compute the location of the sign bit.
6216         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6217         of VALBITS with EMACS_INT_MAX.
6218         * events.c (Fevent_timestamp): Ditto.
6219         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6220         compute the halfway point to timestamp wraparound.
6221         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6222         EMACS_INT_MIN instead of using VALBITS.
6223         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6224         incorrect number with VALBITS.
6225         * fns.c (Frandom): Correct number of integer bits in docstring.
6226         Use INT_VALBITS instead of VALBITS to compute the denominator.
6227         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6228         build random numbers.
6229
6230 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6231         * event-gtk.c:
6232         * event-gtk.c (gtk_event_to_emacs_event):
6233         * menubar-gtk.c:
6234         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6235         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6236         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6237         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6238         * menubar-gtk.c (__activate_menu):
6239         * menubar-gtk.c (convert_underscores):
6240         * menubar-gtk.c (remove_underscores):
6241         * menubar-gtk.c (menu_convert):
6242         * menubar-gtk.c (menu_descriptor_to_widget_1):
6243         * menubar-gtk.c (menu_descriptor_to_widget):
6244         * menubar-gtk.c (menu_can_reuse_widget):
6245         * menubar-gtk.c (menu_create_menubar):
6246         * menubar-gtk.c (gtk_popup_menu):
6247         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6248         Added support for Gtk menu bar and menu item mnemonics.
6249
6250 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6251
6252         * sysdll.c: (dll_function): Added support for finding symbols in
6253         Darwin shared libraries as well in Darwin bundles.
6254         * sysdll.c (image_for_address): New
6255         * sysdll.c (my_find_image): New
6256         * sysdll.c (search_linked_libs): New
6257
6258 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6259
6260         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6261         return to GTK requires a different API to marshalling data to use
6262         as GTK parameters.
6263         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6264
6265 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6266
6267         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6268
6269 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6270
6271         * glyphs.c (process_image_string_instantiator):
6272         (Fset_console_type_image_conversion_list):
6273         Stop GCC from warning about shadowing of `exp'.
6274
6275         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6276
6277 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6278
6279         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6280
6281 2004-02-03  Vin Shelton  <acs@xemacs.org>
6282
6283         * glyphs.c (image_instance_layout): Remove pointless assertion.
6284         * regex.c (regex_grow_registers): Return type is void.
6285
6286 2004-02-02  Vin Shelton <acs@xemacs.org>
6287
6288         * XEmacs 21.4.15 is released
6289
6290 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6291
6292         * device-x.c (x_error_handler): Don't call stderr_out
6293
6294 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6295
6296         * buffer.c (other-buffer): Clarify documentation of order of
6297         arguments for FSF Emacs.
6298
6299 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6300
6301         * window.c (Fdelete_window): Dirty the mirror structure _before_
6302         marking the window deleted.
6303
6304 2003-09-15  Jerry James  <james@xemacs.org>
6305
6306         * event-msw.c (debug_mswin_messages): Conditionally compile
6307         messages missing from the Cygwin headers.
6308
6309 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6310
6311         * data.c (eq_with_ebola_notice): Fix typo in comment.
6312         (Ftrue_list_p): Improve docstring.
6313
6314 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6315
6316         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6317
6318 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6319
6320         * search.c (trivial_regexp_p): Regexps containing "\{" are
6321         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6322         Stefan Monnier for suggesting a diagnosis.
6323
6324 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6325
6326         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6327
6328 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6329
6330         * search.c (Fsearch_forward):
6331         (Fsearch_backward):
6332         Document negative count.
6333
6334 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6335
6336         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6337
6338 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6339
6340         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6341
6342 2003-09-15  Vin Shelton  <acs@xemacs.org>
6343
6344         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6345         21.5.
6346
6347 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6348
6349         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6350         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6351         (re_match_2_internal): Use TRANSLATE instead of
6352         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6353         non-ASCII char case conversion.
6354
6355 2003-09-08  Mike Sperber  <mike@xemacs.org>
6356
6357         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6358         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6359
6360 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6361
6362        * .gdbinit (pobj): fix printing of symbol name.
6363
6364 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6365
6366         * frame-x.c (x_layout_widgets): When resizing is about to cause
6367         frame size slip, mark it for redisplay.
6368
6369 2003-08-18  Jerry James  <james@xemacs.org>
6370
6371         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6372
6373 2003-09-03  Vin Shelton <acs@xemacs.org>
6374
6375         * XEmacs 21.4.14 is released
6376
6377 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6378
6379         * config.h.in (REGEX_MALLOC): Make it configure'able.
6380
6381 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6382
6383         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6384         linking.
6385         * sysdll.c (dll_init):
6386         * sysdll.c (dll_open):
6387         * sysdll.c (dll_close):
6388         * sysdll.c (dll_function):
6389         * sysdll.c (dll_variable):
6390         * sysdll.c (dll_error):
6391         Add support for loading bundles using Darwin/MacOSX
6392         native API.
6393
6394 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6395
6396         * process.c (start-process-internal): Document coding systems.
6397
6398 2003-07-30  Jerry James  <james@xemacs.org>
6399
6400         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6401
6402 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6403
6404         * event-msw.c (mswindows_enqueue_mouse_button_event):
6405         * event-msw.c (mswindows_wnd_proc):
6406           enqueue button event when scrollwheel event isn't handled by 
6407           mswindows_handle_mousewheel_event, such as when the scrollbars
6408           are not showing.
6409
6410 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6411
6412         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6413
6414 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6415
6416         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6417
6418 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6419
6420         * regex.c (re_match_2_internal): Fix matching degenerate word
6421         boundaries.
6422
6423 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6424
6425         * XEmacs 21.4.13 is released
6426
6427 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6428
6429         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6430         * lisp.h (<inttypes.h>):
6431         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6432         the definition.
6433
6434 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6435
6436         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6437         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6438         Result: "temacs can only be run in -batch mode."
6439         Fix: Check xemacs executable candidate for directory-ness.
6440
6441 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6442
6443         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6444           they conflict with <sys/types.h>.
6445
6446 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6447
6448         * database.c: Berkeley DB wants __STDC__ to be defined.
6449
6450 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6451
6452         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6453
6454 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6455
6456         * process-unix.c (unix_send_process): Fix C++ compile error.
6457
6458 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6459
6460         * Added .dylib as an acceptable shared library file extension
6461         * to support MacOSX.
6462
6463 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6464
6465         * EmacsFrameP.h (EmacsFramePart):
6466         Kludge to allow compiling with Motif1, but linking with Motif2.
6467
6468 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6469
6470         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6471
6472
6473 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6474
6475         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6476
6477 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6478
6479         * sysdll.c: Included lisp.h to define needed alloca_array.
6480
6481 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6482
6483         Make XEmacs redisplay 10 times faster.
6484         If, that is, you're using a slow X connection and MoveOpaque.
6485         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6486         Use compress_motion = TRUE.
6487         * EmacsFrame.c (emacsFrameClassRec): 
6488         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6489         * EmacsManager.c (emacsManagerClassRec):
6490         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6491
6492 2003-01-30  Vin Shelton  <acs@xemacs.org>
6493
6494         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6495
6496 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6497
6498         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6499         Patch by Martin Buchholz.
6500
6501 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6502
6503         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6504         Thanks to icc for warning and Martin Buchholz for reporting.
6505
6506 2003-01-29  Vin Shelton <acs@xemacs.org>
6507
6508         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6509
6510         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6511         remember to multiply by the element size.
6512
6513 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6514
6515         * XEmacs 21.4.12 "Portable Code" is released.
6516
6517 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6518
6519         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6520         * s/cygwin.sc: new linker file.
6521
6522 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6523
6524         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6525
6526         * redisplay-x.c (x_output_string): Use X11-specified types.
6527         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6528         * emacs.c (__free_hook): Use typeof with Intel compiler.
6529         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6530
6531 2003-01-08  Andy Piper  <andy@xemacs.org>
6532
6533         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6534         reserve size during unexec().
6535
6536 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6537
6538         * process-unix.c (unix_create_process): Don't let outchannel block.
6539
6540 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6541
6542         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6543         Needed for IsBadReadPtr().
6544
6545 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6546
6547         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6548
6549 2002-12-14  Ben Wing  <ben@xemacs.org>
6550
6551         * callint.c: Declaration error.
6552         * dumper.c (pdump):
6553         * dumper.c (pdump_load): Warning fix.
6554         * process.c: GCPRO error.
6555         * glyphs.c (unmap_subwindow):
6556         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6557         * event-stream.c (maybe_kbd_translate): Wrong argument to
6558         character_to_event().
6559
6560         * alloc.c (garbage_collect_1):
6561         * emacs.c:
6562         * emacs.c (debug_can_access_memory):
6563         * emacs.c (fatal_error_signal):
6564         * emacs.c (mswindows_handle_hardware_exceptions):
6565         * emacs.c (main_1):
6566         * emacs.c (main):
6567         * emacs.c (assert_failed):
6568         * emacs.c (syms_of_emacs):
6569         * lisp.h:
6570         * print.c:
6571         * print.c (std_handle_out_va):
6572         * print.c (write_string_to_stdio_stream):
6573         * print.c (write_fmt_string):
6574         * print.c (printing_badness):
6575         * print.c (printing_major_badness):
6576         * print.c (print_internal):
6577         * print.c (debug_print_no_newline):
6578         * print.c (debug_backtrace):
6579         Be more defensive in handling bad values when printing.  Add code
6580         from trunk involving inhibit_non_essential_printing_operations.
6581         When going down or in debug_print(), don't do external conversion
6582         and such and try really, really hard when printing to avoid core
6583         dumping.  Add force-debugging-signal, debug_break().
6584
6585 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6586
6587         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6588         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6589
6590 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6591
6592         * database.c: Fix open_database. Berkeley DB API has changed in
6593         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6594
6595 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6596
6597         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6598
6599 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         * event-Xt.c (Xt_timeout):
6602         (Xt_timeout_callback):
6603         (emacs_Xt_add_timeout):
6604         (emacs_Xt_remove_timeout):
6605         (Xt_timeout_to_emacs_event):
6606         Turn completed_timeouts from a stack into a queue.  Fixes
6607         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6608
6609 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6610
6611         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6612         * emacs.c (main): Assert that mmap'd allocation is disabled.
6613
6614 2002-10-14  Andy Piper  <andy@xemacs.org>
6615
6616         * glyphs-widget.c (layout_query_geometry): add in fiddle
6617         factor. Include border text in width layout calculation.
6618         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6619
6620 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6621
6622         * XEmacs 21.4.10 "Military Intelligence" is released.
6623
6624 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6625
6626         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6627         using the NAS private array SoundFileInfo that no longer exists in
6628         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6629         and earlier.  This is broken for some versions between 1.5a and
6630         1.5f.
6631
6632 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6633
6634         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6635
6636         * emacs.c (shut_down_emacs): Improve crash message.
6637
6638 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6639
6640         * file-coding.c (determine_real_coding_system): Check for coding
6641         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6642         shebangs and Python PEP 263.
6643
6644 2002-10-08  Andy Piper  <andy@xemacs.org>
6645
6646         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6647         if static sizes haven't been set.
6648
6649 2002-08-30  Mike Alexander  <mta@arbortext.com>
6650
6651         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6652         to close a socket.
6653
6654 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6655
6656         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6657
6658 2002-09-20  Mike Sperber <mike@xemacs.org>
6659
6660         (This partially gets back my patch from 2002-07-20 without the
6661         bug.)
6662         * callproc.c (child_setup): Remove Ben's comment noting confusion
6663         over the file descriptors >= 3: close_process_descs() doesn't
6664         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6665         * process-unix.c (unix_create_process): Call
6666         begin_dont_check_for_quit to inhibit unwanted interaction (and
6667         thus breaking of X event synchronicity) in the child.
6668
6669 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6670
6671         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6672         widget.
6673
6674 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6675
6676         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6677         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6678         the xemacs process did not exit, but looped infinitely here.  This
6679         fixes that problem.
6680
6681 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6682
6683         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6684         (find_context): Improve comments.
6685
6686         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6687         (re_match_2): An XCHAR_TABLE operation was missing.
6688
6689         Many of the following changes were inspired by Andy Piper's (now
6690         obsolete) patch to make syntax-table text property lookup optional.
6691
6692         [Documentation]
6693
6694         * syntax.h (top level): Document semantics of syntax flags.
6695         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6696         * syntax.c, syntax.h (top level): Document syntax cache better in
6697         comments.
6698
6699         [Instrument syntax caching (temporary change)]
6700
6701         * syntax.h (enum syntax_cache_statistics_functions, struct
6702         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6703         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6704         * syntax.c (scan_words, Fforward_comment, scan_lists,
6705         Fbackward_prefix_characters):
6706         * font-lock.c (find_context):
6707         Use them to instrument syntax caching. 
6708         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6709         syntax_cache_statistics_function_names): New type and variables.
6710         * syntax.c (update_syntax_cache): Update and report statistics.
6711
6712         [Major syntax cache optimizations]
6713
6714         syntax.c (lookup_syntax_properties): Default off.
6715
6716         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6717         * syntax.c (update_syntax_cache):
6718         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6719
6720         [Minor syntax cache optimizations and code clarifications]
6721
6722         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6723         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6724         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6725         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6726         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6727         (Code clarification.)
6728
6729         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6730         scan_lists): Compute code from syncode, use Boolean macros instead
6731         of redundant masking operations.  (Code clarification; any decent
6732         compiler can do this optimization.)
6733
6734         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6735         for clarity.
6736
6737         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6738         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6739         use F*_single_property_change instead of F*_extent_change.
6740         Currently F*_single_property_change is _much_ less efficient.
6741
6742         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6743         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6744         syntax_cache.object properly, don't leave Qt or Qnil.
6745         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6746         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6747         tests for Qt or Qnil.
6748
6749 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6750
6751         * redisplay.c (point_in_line_start_cache): 
6752         * extents.c (print_extent_1):
6753         Fix warnings.
6754
6755         * extents.c (Fset_extent_property): Document `syntax-table' property.
6756
6757         * extents.h (Fnext_single_property_change): EXFUN it.
6758
6759 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6760
6761         * search.c (clear_unused_search_regs): New static function.
6762         (search_buffer): 
6763         (simple_search): 
6764         (boyer_moore):
6765         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6766         Minor clarifications in comments.
6767
6768         * regex.c (re_match_2_internal): Ensure no stale submatches.
6769
6770 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6771
6772         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6773
6774 2002-08-29  Jerry James  <james@xemacs.org>
6775
6776         * lisp.h: structrures -> structures.
6777
6778 2002-06-03  Andy Piper  <andy@xemacs.org>
6779
6780         * frame.c (frame_conversion_internal): add conversion appropriate
6781         for setting frame dimensions in pixels.
6782
6783         * console.h (struct console_methods): add device-specific widget
6784         layout functions.
6785
6786         * emacs.c (main_1): initialize glyph vars.
6787
6788         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6789         (handle_focus_event_2): new function. Allow focus to
6790         be set to a particular window and widget.
6791         (enqueue_focus_event): new function. Create a
6792         synthetic focus event.
6793         (emacs_Xt_handle_magic_event): call
6794         handle_focus_event_2.
6795
6796         * frame.c (Fset_frame_pixel_height): new function. Allow
6797         pixel-based sizing. Does the right thing on character-oriented
6798         displays.
6799         (Fset_frame_pixel_width): ditto.
6800         (Fset_frame_pixel_size): ditto.
6801         (syms_of_frame): declare.
6802
6803         * general-slots.h: add :vertically-justify and
6804         :horizontally-justify.
6805
6806         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6807         (mswindows_widget_border_width): new function.
6808         (mswindows_combo_box_instantiate): set border widths.
6809         (console_type_create_glyphs_mswindows): declare.
6810
6811         * glyphs-widget.c:
6812         (check_valid_justification): allow vertical and horizontal
6813         justification.
6814         (widget_border_width): new function. Call device methods.
6815         (widget_instance_border_width): ditto.
6816         (logical_unit_height): new function. Determine the height of a
6817         logical-unit. Logical units are intended to provide grid-like
6818         layout for subcontrols in a layout. If the layout is
6819         :vertically-justify top then subcontrols will be positioned on
6820         logical-unit boundaries, thus allowing adjacent subcontrols to
6821         line up.
6822         (widget_logical_unit_height): ditto for widgets.
6823         (redisplay_widget): misc cleanup.
6824         (widget_spacing): new function. Call device specific
6825         methods. Intended to be the default gap between adjacent widgets.
6826         (widget_query_geometry): use new spacing functions to determine
6827         appropriate geometry.
6828         (initialize_widget_image_instance): initialize horizontal and
6829         vertical justification.
6830         (widget_instantiate): use logica-units where appropriate for
6831         sizing large widgets.
6832         (button_query_geometry): use widget_instance_border_width.
6833         (tree_view_query_geometry): ditto.
6834         (tab_control_query_geometry): ditto.
6835         (edit_field_query_geometry): new function.
6836         (layout_update): pick up :justify, :horizontally-justify and
6837         :vertically-justify none of which worked previously. :justify is
6838         used as a fallback for both horizontal and vertical justification.
6839         (layout_query_geometry): use logical units to size appropriately.
6840         (layout_layout): ditto.
6841         (Fwidget_logical_to_character_width): new function. Allow users to
6842         convert from logical units to characters so that frame sizes can
6843         be set appropriately.
6844         (Fwidget_logical_to_character_height): ditto.
6845         (syms_of_glyphs_widget): declare.
6846         (image_instantiator_edit_fields): add edit_field_query_geometry.
6847         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6848         :horizontally-justify.
6849         (specifier_vars_of_glyphs_widget): new function. Declare
6850         Vwidget_border_width which is not yet used.
6851
6852         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6853         (x_widget_border_width): new function.
6854         (x_widget_instantiate): create a sensible name for widgets.
6855         (console_type_create_glyphs_x): declare x_widget_border_width.
6856
6857         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6858         (struct Lisp_Image_Instance): add :vertically-justify and
6859         :horizontally-justify.
6860         (LAYOUT_JUSTIFY_TOP): new.
6861         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6862         (ROUND_UP): new macro. Round argument up to next integral
6863         interval.
6864
6865         * redisplay-output.c (redisplay_output_layout): misc formatting.
6866
6867         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6868
6869 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6870
6871         * XEmacs 21.4.9 "Informed Management" is released.
6872
6873 2002-08-19  Andy Piper  <andy@xemacs.org>
6874
6875         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6876         win32 format.
6877
6878         * realpath.c (xrealpath): normalize drive spec also so that dir
6879         sep chars are not mixed on cygwin.
6880
6881 2002-08-06  Jerry James  <james@xemacs.org>
6882
6883         * window.c (Fsplit_window): Count only half of the divider width
6884         against the left window when splitting horizontally. 
6885
6886 2002-06-24  Andy Piper  <andy@xemacs.org>
6887
6888         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6889         toolbar was cleared.
6890
6891         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6892         function. Split out from mswindows_output_frame_toolbars.
6893         (mswindows_output_frame_toolbars): move clear pieces to
6894         mswindows_output_frame_toolbars.
6895
6896         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6897         out from gtk_output_frame_toolbars.
6898         (gtk_output_frame_toolbars): move clear pieces to
6899         gtk_clear_frame_toolbars.
6900
6901         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6902         the frame is cleared. How this ever worked before is a mystery.
6903         (x_output_frame_toolbars): Only output toolbars.
6904         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6905
6906         * gutter.c (update_gutter_geometry):
6907         Mark frame layout changed.
6908         (update_frame_gutter_geometry, update_frame_gutters):
6909         Respect frame_layout_changed.
6910
6911         * console.h (struct console_methods): add
6912         clear_frame_toolbars_method.
6913
6914         * redisplay.c (redisplay_frame): call
6915         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6916
6917         * toolbar.h: declare update_frame_toolbars_geometry.
6918
6919         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6920         out from update_frame_toolbars.  Call clear_frame_toolbars.
6921         (update_frame_toolbars): only output, do not change geometry.
6922
6923         * redisplay.c: add frame_layout_changed.
6924
6925         * redisplay.h: add frame_layout_changed.
6926         (CLASS_RESET_CHANGED_FLAGS): set it.
6927         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6928         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6929         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6930
6931         * device.h (struct device): add frame_layout_changed.
6932         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6933
6934         * frame.h (struct frame): add frame_layout_changed.
6935         (MARK_FRAME_LAYOUT_CHANGED): new.
6936
6937 2002-06-30  Mike Alexander  <mta@arbortext.com>
6938
6939         * event-msw.c (mswindows_need_event): Don't wait for a new message
6940         if the queue is not empty.  Suggested by Paul Moore.
6941
6942 2002-06-12  Andy Piper  <andy@xemacs.org>
6943
6944         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6945         for printing on accurately.
6946
6947 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6948
6949         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6950         WM_ACTIVATE message. Make sure that the frame is visible if the
6951         window is visible. This seemss to fix the problem where XEmacs
6952         appears to freeze after switching desktops with certain virtual
6953         window managers.
6954         (debug_output_mswin_message): Added code to output message
6955         parameters for WM_WINDOWPOSCHANGED, 
6956         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6957
6958 2002-05-25  Andy Piper  <andy@xemacs.org>
6959
6960         * select-x.c (vars_of_select_x): Fix docstring of
6961         x-selection-strict-motif-ownership
6962
6963 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6964
6965         * keymap.c (get_keymap):
6966         Add comment about do_autoload GCPROs own args.
6967
6968 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6969
6970         * bytecode.c (execute_optimized_program): check_opcode ifdef
6971         ERROR_CHECK_BYTE_CODE.
6972
6973 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6974
6975         Thanks to Ben Wing and Michael Sperber.
6976
6977         * eval.c (Fcommand_execute):
6978         (Feval):
6979         (Ffuncall):
6980         (Fmacroexpand_internal):
6981         (function_argcount):
6982         callint.c (Fcall_interactively):
6983         Add comment about do_autoload GCPROs own args.
6984
6985         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6986
6987         * eval.c (Ffuncall): Extra braces to placate GCC.
6988
6989 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6990
6991         * backtrace.h (grow_specpdl):
6992         (SPECPDL_RESERVE):
6993         * EmacsFrame.c (EmacsFrameSetValues):
6994         * eval.c (grow_specpdl):
6995         * ExternalShell.c (hack_event_masks_1):
6996         * glyphs-x.c (convert_EImage_to_XImage): 
6997         (x_finalize_image_instance):
6998         * ralloc.c (page_size):
6999         (r_alloc_sbrk):
7000         * xgccache.c (gc_cache_hash):
7001         Fix unsigned comparison warnings.
7002
7003 2002-07-29  Jerry James  <james@xemacs.org>
7004
7005         * lread.c (locate_file): Any nonnegative return value indicates
7006         success if MODE is nonnegative.
7007
7008 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7009
7010         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7011         argument. 
7012
7013 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7014
7015         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7016
7017         * dumper.c (pdump_get_indirect_count):
7018         (pdump_scan_by_alignment):
7019         (pdump_dump_root_struct_ptrs):
7020         (pdump_dump_rtables):
7021         (pdump_dump_root_objects):
7022         (pdump):
7023         * nas.c (WaveOpenDataForReading):
7024         * fns.c (print_bit_vector):
7025         * font-lock.c (SINGLE_SYNTAX_STYLE):
7026         * glyphs.c (check_for_ignored_expose):
7027         (find_matching_subwindow):
7028         * glyphs-eimage.c:
7029         * imgproc.c (get_histogram):
7030         * redisplay.c (point_in_line_start_cache):
7031         * redisplay-output.c (redisplay_unmap_subwindows):
7032         * symbols.c (defsymbol_massage_name_1):
7033         (defkeyword_massage_name):
7034         (deferror_massage_name_and_message):
7035         * redisplay-x.c (x_output_string): 
7036         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7037         * frame.h (struct frame):
7038         * filelock.c (current_lock_owner):
7039         * doprnt.c (emacs_doprnt_1):
7040         * lisp.h (struct Lisp_Bit_Vector):
7041         (DO_REALLOC):
7042         Fix warnings.
7043
7044 2002-02-13  Ben Wing  <ben@xemacs.org>
7045
7046         * event-stream.c (reset_key_echo):
7047         * event-stream.c (reset_this_command_keys):
7048         * event-stream.c (execute_command_event):
7049         If console is dead as a result of C-x 5 0, then post-command stuff
7050         needs to be careful and do only non-console-specific stuff.
7051
7052 2002-07-01  Mike Sperber <mike@xemacs.org>
7053
7054         * process-unix.c (unix_send_process): Mark coding_outstream as
7055         non-open upon SIGPIPE.
7056
7057         * event-stream.c (Fnext_event): Reorder switch cases to something
7058         that makes sense.
7059
7060 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7061
7062         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7063         Don't bogusly reinitialize ascii_character property.
7064
7065 2002-07-08  Mike Sperber <mike@xemacs.org>
7066
7067         * process.c (Fstart_process_internal): Do error checking before we
7068         fork off the child, so the child can't muck with the state of the
7069         parent.
7070
7071 2002-07-08  Mike Sperber <mike@xemacs.org>
7072
7073         * ralloc.c (init_ralloc): Allocate properly for pdump.
7074
7075 2002-06-12  Andy Piper  <andy@xemacs.org>
7076
7077         * glyphs.c (query_string_geometry): check the string.
7078
7079         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7080         widget names.
7081
7082 2002-06-17  Jerry James  <james@xemacs.org>
7083
7084         * sysdll.c: Remove RTLD_GLOBAL initialization.
7085         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7086
7087 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7088
7089         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7090
7091 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7092
7093         * sysdep.c (sys_rename): Make sys_rename work for the case where
7094         Windows rename sets errno to EACCES if target file exists.
7095
7096 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7097
7098         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7099         Fix detection of metric units to work on Win95
7100
7101 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7102
7103         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7104
7105 2002-04-25  Andy Piper  <andy@xemacs.org>
7106
7107         * redisplay.c (create_text_block): Remove extra comment trailer.
7108
7109 2002-04-24  Andy Piper  <andy@xemacs.org>
7110
7111         * redisplay.c (create_text_block): Don't actually add propagation
7112         data if the line ends after we have added a glyph.
7113
7114 2002-04-22  Andy Piper  <andy@xemacs.org>
7115
7116         * extents.c (extent_fragment_update): check for glyphs we have
7117         previously displayed.
7118         * extents.c (print_extent_1): warning removal.
7119         * extents.h: change prototype.
7120         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7121         widths correctly for wide glyphs.
7122         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7123         * redisplay.c (prop_type): add PROP_GLYPH.
7124         * redisplay.c (struct prop_block): add glyph type
7125         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7126         to the propagation data.
7127         * redisplay.c (create_text_block): if there is a glyph in the
7128         propagation data use it to salt extent_fragment_update.
7129         * redisplay.c (create_string_text_block): ditto.
7130
7131 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7132
7133         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7134         * redisplay-output.c (compare_runes): Compare them.
7135         * redisplay.c: Update copyright date.
7136         * redisplay.c (pos_data): Add need_baseline_computation field.
7137         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7138         need_baseline_computation; zero yoffset. Set max_pixmap_height
7139         for all pixmaps, not just automatically positioned ones.
7140         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7141         * redisplay.c (calculate_baseline): New, compute textual baseline.
7142         * redisplay.c (add_glyph_rune): Call them.
7143         * redisplay.c (create_text_block): Likewise.
7144         * redisplay.c (create_overlay_glyph_block): Likewise.
7145         * redisplay.c (add_margin_runes): Likewise.
7146         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7147
7148         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7149         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7150         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7151         * redisplay-msw.c (mswindows_output_string): Likewise.
7152         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7153         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7154         * redisplay-x.c (x_output_display_block): Likewise.
7155
7156 2002-03-28  Ben Wing  <ben@xemacs.org>
7157
7158         * redisplay.c: Fixed bug in redisplay
7159         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7160         and down of the lines, since they're bigger than the line
7161         size. (It was seen most obviously when there's a horizontal scroll
7162         bar, e.g. do C-h a glyph or something like that.) The problem was
7163         that the glyph-contrib-p setting on glyphs was ignored even if it
7164         was set properly, which it wasn't until now.
7165
7166 2002-04-24  Andy Piper  <andy@xemacs.org>
7167
7168         * lisp.h (Dynarr_end): Fix definition.
7169
7170 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7171
7172         * redisplay.c (mark_redisplay): Remove call to
7173         update_frame_window_mirror.
7174
7175 2001-11-15  Andy Piper  <andy@xemacs.org>
7176
7177         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7178         cygwin (again).
7179
7180 2002-02-13  Andy Piper  <andy@xemacs.org>
7181
7182         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7183         we did in fact enqueue the XM_MAPFRAME event.
7184
7185 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7186
7187         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7188         to fix problem switching between virtual desktops under virtuawin
7189         virtual window manager.
7190
7191 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7192
7193         * event-msw.c: Typo fix.
7194         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7195         magic XM_MAPFRAME event has been sent.
7196
7197 2001-11-23  Andy Piper  <andy@xemacs.org>
7198
7199         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7200
7201 2001-11-21  Andy Piper  <andy@xemacs.org>
7202
7203         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7204         mouse events outside the frame.
7205
7206 2002-03-20  Andy Piper  <andy@xemacs.org>
7207
7208         * menubar-msw.c (mswindows_popup_menu): warning removal.
7209         * dialog-msw.c (dialog_popped_down): ditto.
7210
7211 2001-12-11  Andy Piper  <andy@xemacs.org>
7212
7213         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7214         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7215         popup_up_p.
7216         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7217         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7218         * menubar-msw.c (mswindows_popup_menu): ditto.
7219
7220 2001-10-29  Andy Piper  <andy@xemacs.org>
7221
7222         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7223         cancels.
7224
7225 2002-01-03  Andy Piper  <andy@xemacs.org>
7226
7227         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7228         letters.
7229         (xrealpath): ditto.
7230
7231 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7232
7233         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7234         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7235         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7236         Detect and handle case where machine is set up for metric units
7237
7238 2002-04-02  Andy Piper  <andy@xemacs.org>
7239
7240         * dired-msw.c (mswindows_get_files): 
7241         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7242         completely handled by XEmacs. Suggested by Thomas Vogler
7243         <mail@thomas-vogler.de>.
7244
7245 2001-11-14  Andy Piper  <andy@xemacs.org>
7246
7247         * nt.c (REG_ROOT): change registry key to XEmacs.
7248
7249 2002-04-27  Andy Piper  <andy@xemacs.org>
7250
7251         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7252
7253 2002-04-26  Andy Piper  <andy@xemacs.org>
7254
7255         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7256         behavior.
7257
7258 2002-03-14  Mike Alexander  <mta@arbortext.com>
7259
7260         * event-msw.c (mswindows_unwait_process): New, remove process from
7261         wait list
7262         * process-nt.c (nt_finalize_process_data): Call
7263         mswindows_unwait_process
7264         * console-msw.h: Declare mswindows_unwait_process
7265
7266 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7267
7268         * editfns.c (Fdecode_time):
7269         (Fformat_time_string):
7270         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7271         (make_time): Warning elimination (change arg name).
7272
7273 2001-11-24  Andy Piper  <andy@xemacs.org>
7274
7275         * window.c (Fsplit_window): Doc return type.
7276
7277 2002-04-01  Andy Piper  <andy@xemacs.org>
7278
7279         * emacs.c (Fkill_emacs): Only output message box in interactive
7280         mode.
7281
7282 2002-04-26  Andy Piper  <andy@xemacs.org>
7283  
7284         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7285         cygwin.
7286
7287 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7288
7289         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7290         bit platform.
7291
7292 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7293
7294         * XEmacs 21.4.8 "Honest Recruiter" is released.
7295
7296 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7297
7298         Supersedes 2002-04-17 patch.
7299
7300         * process.h (PROCESS_LIVE_P): Use the process status as
7301         evidence of health, not the state of the input stream.
7302         (PROCESS_READABLE_P): Say if the process is readable
7303         from. (It may be dead nonetheless.)
7304         (CHECK_READABLE_PROCESS): Test for that condition.
7305
7306         * process.c (create_process): Use PROCESS_READABLE_P.
7307         (read_process_output, set_process_filter): Likewise.
7308
7309         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7310         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7311
7312         This code is #if 0'd, this is not the time to add new functions:
7313
7314         * process.c (Fprocess_readable_p): Report readability status.
7315         * process.c (Qprocess_readable_p): New, associated symbol...
7316         * process.c (syms_of_process): ... initialize it.
7317
7318 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7319
7320         * XEmacs 21.4.7 "Economic Science" is released.
7321
7322 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7323
7324         * process.h (PROCESS_LIVE_P): Use the process status as
7325         evidence of health, not the state of the input stream.
7326
7327 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7328
7329         * sysdep.c (sys_siglist): change "signum" to "signal"
7330
7331 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7332
7333         * s/darwin.h: New file.
7334         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7335         
7336 2002-04-23  Andreas Jaeger  <aj@suse.de>
7337
7338         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7339         which use lib64 for 64-bit libs.
7340         (START_FILES): Likewise.
7341
7342 2002-02-11  Mike Sperber  <mike@xemacs.org>
7343
7344         * device-x.c: 
7345         (x_IO_error_handler):
7346         (x_init_device): Temporarily keep device in static variable
7347         `device_being_initialized' so we can recover gracefully from
7348         internal XOpenDevice failure.  (XOpenDevice is documented to
7349         return NULL on failure, but sometimes calls the IO error handler
7350         instead.)
7351
7352 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7353
7354         * dired.c (Ffile_name_all_completions): Change documentation --
7355         remove reference to completion-ignored-extensions.
7356         * dired.c (vars_of_dired): Change documentation for
7357         completion-ignored-extensions -- remove reference to
7358         file-name-all-completions.
7359
7360 2002-03-06  Jerry James  <james@xemacs.org>
7361
7362         * emodules.c (emodules_load): Fix multiple loading of same module.
7363
7364 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7365         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7366         RTLD_LAZY to avoid incorrect symbol binding when using nested
7367         shared libraries on Solaris.
7368
7369 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7370
7371         * fileio.c (Ffind_file_name_handler): Improve docstring.
7372
7373 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7374
7375         * fns.c (Fmapconcat): Improve docstring.
7376
7377 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7378
7379         * device-gtk.c: Add prototype for
7380         emacs_gtk_selection_clear_event_handle.
7381         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7382         selection.  Setup signal handler for "selection_clear_event"
7383         (emacs_gtk_selection_clear_event_handle).
7384
7385         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7386         other applications owning the clipboard (based on
7387         x_handle_selection_clear).
7388
7389 2001-12-23  William M. Perry  <wmperry@gnu.org>
7390
7391         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7392         
7393 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7394
7395         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7396
7397 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7398
7399         * XEmacs 21.4.6 "Common Lisp" is released.
7400
7401 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7402
7403         * search.c (Freplace_match): Add missing sub-expression functionality.
7404
7405         * buffer.c (decode_buffer): Add a check for pointer type to
7406         decode_buffer, before gcc's CSE optimization reorders a
7407         dereference in front of the allow_string test.
7408
7409 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7410
7411         * window.c (window_loop): Fix bug that sometimes prevented
7412         window_loop() from iterating across multiple devices.  Also, at
7413         Ben's request, changed infloop-detecting code to abort() instead
7414         of silently terminating window_loop().
7415
7416 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7417
7418         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7419         * editfns.c (make_time): New function.
7420         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7421         * lisp.h (make_time): Prototype and comment it.
7422         * dired.c (wasteful_word_to_lisp): Deprecate.
7423         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7424
7425 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7426
7427         * fileio.c (auto_save_1): Use current coding system, not
7428         escape-quoted.
7429
7430 2001-11-13  Ben Wing  <ben@xemacs.org>
7431
7432         * window.c:
7433         * window.c (window_truncation_on):
7434         * window.c (syms_of_window):
7435         truncate-partial-width-windows should respect the buffer being
7436         displayed, like other redisplay vars.
7437
7438 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7439
7440         * event-stream.c (Fread_key_sequence): save current buffer.
7441
7442 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7443
7444         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7445
7446 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7447
7448         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7449
7450 2001-10-26  Mike Alexander  <mta@arbortext.com>
7451
7452         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7453
7454 2001-10-25  Andy Piper  <andy@xemacs.org>
7455
7456         * ChangeLog:
7457         * dialog-msw.c (handle_directory_proc): new function.
7458          (handle_directory_dialog_box): new fucntion.
7459          (handle_file_dialog_box): use new directory dialog support.
7460          (mswindows_make_dialog_box_internal): ditto.
7461         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7462         handling.
7463         (mswindows_find_frame): make global.
7464         * fileio.c (Fexpand_file_name): build fix.
7465         * general-slots.h: add Qdirectory.
7466         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7467         handling.
7468         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7469         cygwin not leaving win32 paths unchanged.
7470         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7471         cygwin runtime to do path conversion.
7472         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7473         (syms_of_win32): add new function.
7474         * window.c (window_loop): build fix.
7475
7476 2001-10-15  Andy Piper  <andy@xemacs.org>
7477
7478         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7479
7480 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7481
7482         * XEmacs 21.4.5 "Civil Service" is released.
7483
7484 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7485
7486         * glyphs-x.c: Force buffer-tab highlight update when moving the
7487         buffer, avoiding an ugly black border, used for keyboard focus
7488         indication, on a widget that can never have keyboard focus, the
7489         buffer tab.
7490
7491 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7492
7493         * process-unix.c (unix_open_multicast_group): Remove too much
7494         conversion between host and network byte order.
7495
7496 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7497
7498         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7499         before replacing them.
7500
7501         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7502         operation.
7503
7504         * src/window.c (undedicate_windows): Use it.
7505         * src/window.h: Add prototype.
7506
7507 2001-09-17  Ben Wing  <ben@xemacs.org>
7508
7509         * fileio.c (normalize_filename):
7510         * fileio.c (Fexpand_file_name):
7511         Fix various C++ compile errors in Andy's recent code.
7512         
7513         * callint.c (Fcall_interactively):
7514         * editfns.c (Ftemp_directory):
7515         * editfns.c (Fuser_full_name):
7516         * emacs.c (argmatch):
7517         * lread.c (locate_file_map_suffixes):
7518         * redisplay-x.c (x_ring_bell):
7519         Fix sign-compare warnings.
7520         
7521 2001-09-08  Andy Piper  <andy@xemacs.org>
7522
7523         * fileio.c (normalize_filename): copied from nt.c
7524         * (Ffile_name_directory): enable win32 paths under cygwin.
7525         * (Ffile_name_nondirectory): ditto.
7526         * (directory_file_name): ditto.
7527         * (Fexpand_file_name): ditto.
7528         * (Ffile_truename): ditto.
7529         * (Fsubstitute_in_file_name): ditto.
7530         * (Ffile_name_absolute_p): ditto.
7531         * (Ffile_readable_p): ditto.
7532
7533 2001-09-08  Andy Piper  <andy@xemacs.org>
7534
7535         * device-msw.c (mswindows_finish_init_device): remove dde
7536         initialization.
7537         * device-msw.c (mswindows_init_dde): factor out from
7538         mswindows_finish_init_device()
7539         * device-msw.c (init_mswindows_very_early): new function
7540         initialize but don't enable dde.
7541         * emacs.c (main_1): call init_mswindows_very_early.
7542         * event-msw.c:
7543         * event-msw.c (mswindows_dde_callback): only execute when we are
7544         ready.
7545         * symsinit.h: declare init_mswindows_very_early.
7546
7547 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7548
7549         [sjt: This has been in 21.5 for months with no complaints.]
7550
7551         * console.h (struct console_methods): Added flags member.
7552         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7553         (CONMETH_IMPL_FLAG):
7554         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7555         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7556
7557         * device.c (window_system_pixelated_geometry): Use the above macros.
7558
7559         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7560         implememntation flag.
7561         * device.h (DEVICE_DISPLAY_P): Use it.
7562
7563         * frame.c (delete_frame_internal): Use the above macro.
7564
7565         * redisplay.c (redisplay_device): Use it.
7566         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7567         (redisplay_frame): Ditto.
7568
7569         * device-msw.c (mswindows_device_implementation_flags): Removed.
7570         (msprinter_device_implementation_flags): Removed.
7571         (console_type_create_device_mswindows): Removed references to
7572         implementation_flags methods, set implementation flags here.
7573         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7574
7575         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7576         (console_type_create_device_gtk): Removed method declaration.
7577         Added commented out statement which semantically matches the
7578         commented out statement in the above removed method.
7579
7580 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7581
7582         The attached patch fixes a few warnings. 
7583
7584         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7585         * src/frame-gtk.c: guard against GNOME calls in GTK only
7586         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7587         * src/select-gtk.c: prototype lisp_to_time
7588
7589 2001-06-08  Ben Wing  <ben@xemacs.org>
7590
7591         ------ gc-in-window-procedure fixes ------
7592         
7593         * alloc.c:
7594         * alloc.c (struct post_gc_action):
7595         * alloc.c (register_post_gc_action):
7596         * alloc.c (run_post_gc_actions):
7597         * alloc.c (garbage_collect_1):
7598         Create "post-gc actions", to avoid those dreaded "GC during window
7599         procedure" problems.
7600
7601         * event-msw.c:
7602         Abort, clean and simple, when GC in window procedure.  We want
7603         to flush these puppies out.
7604
7605         * glyphs-msw.c:
7606         * glyphs-msw.c (finalize_destroy_window):
7607         * glyphs-msw.c (mswindows_finalize_image_instance):
7608         Use a post-gc action when destroying subwindows.
7609
7610         * lisp.h:
7611         Declare register_post_gc_action().
7612
7613         * scrollbar-msw.c:
7614         * scrollbar-msw.c (unshow_that_mofo):
7615         Use a post-gc action when unshowing scrollbar windows, if in gc.
7616
7617         * redisplay.c (mark_redisplay):
7618         Add comment about the utter evilness of what's going down here.
7619
7620         ------ cygwin setitimer fixes ------
7621         
7622         * Makefile.in.in (sheap_objs):
7623         * Makefile.in.in (profile_objs):
7624         * Makefile.in.in (objs):
7625         Compile profile.c only when HAVE_SETITIMER.
7626         
7627         * nt.c (mswindows_sigset):
7628         * nt.c (mswindows_sighold):
7629         * nt.c (mswindows_sigrelse):
7630         * nt.c (mswindows_sigpause):
7631         * nt.c (mswindows_raise):
7632         * nt.c (close_file_data):
7633         Style fixes.
7634         
7635         * nt.c:
7636         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7637         
7638         * profile.c:
7639         * profile.c (Fstart_profiling):
7640         * profile.c (Fstop_profiling):
7641         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7642         instead of just plain setitimer().
7643         
7644         * signal.c:
7645         * signal.c (set_one_shot_timer):
7646         * signal.c (alarm):
7647         Define qxe_setitimer() as an encapsulation around setitimer() --
7648         call setitimer() directly unless Cygwin or MS Win, in which case
7649         we use our simulated version in win32.c.
7650         
7651         * systime.h:
7652         * systime.h (struct itimerval):
7653         * systime.h (ITIMER_REAL):
7654         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7655         comment about "qxe" and the policy regarding encapsulation.
7656
7657         * win32.c:
7658         * win32.c (setitimer_helper_proc):
7659         * win32.c (setitimer_helper_period):
7660         * win32.c (setitimer_helper):
7661         * win32.c (mswindows_setitimer):
7662         Move setitimer() emulation here, so Cygwin can use it.
7663         Rename a couple of functions and variables to be longer and more
7664         descriptive.  In setitimer_helper_proc(), send the signal
7665         using either mswindows_raise() or (on Cygwin) kill().  If for
7666         some reason we are still getting lockups, we'll change the kill()
7667         to directly invoke the signal handlers.
7668
7669         ------ windows shell fixes ------
7670         
7671         * callproc.c:
7672         * ntproc.c:
7673         Comments about how these two files must die.
7674
7675         * callproc.c (init_callproc):
7676         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7677         not just COMSPEC. (more correct and closer to FSF.) Don't
7678         force a value for SHELL into the environment. (Comments added
7679         to explain why not.)
7680         
7681         * nt.c (init_user_info):
7682         Don't shove a fabricated SHELL into the environment.  See above.
7683
7684 2001-06-01  Ben Wing  <ben@xemacs.org>
7685
7686         * Makefile.in.in (ldflags):
7687         eliminate that pesky "defaulting to 00401000" warning.
7688         * nt.h:
7689         eliminate warnings.
7690
7691 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7692
7693         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7694         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7695
7696 2001-04-24  Jerry James <james@xemacs.org>
7697
7698         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7699         correct order.
7700
7701 2001-06-01  Ben Wing  <ben@xemacs.org>
7702
7703         * event-msw.c (debug_mswin_messages):
7704         conditionalize the messages that were causing compile errors.
7705         (if only macros could generate #ifdef statements ...)
7706
7707 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7708
7709         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7710
7711 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7712
7713         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7714
7715 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7716
7717         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7718         * process-unix.c (unix_canonicalize_host_name):
7719         sysdep.c (init_system_name):
7720         Use it to conditionally support IPv6 canonicalization.
7721
7722 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7723
7724         * event-msw.c:
7725         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7726
7727 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7728
7729         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7730         attempt is made to scroll when no scroll bar is available.
7731
7732 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7733
7734         * input-method-motif.c (XIM_delete_frame): New callback.
7735         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7736         got deleted from 21.4.3.)
7737
7738 2001-06-01  Ben Wing  <ben@xemacs.org>
7739
7740         * nt.c (mswindows_utime):
7741         * nt.c (close_file_data):
7742         fix off-by-one-indirection error.
7743
7744 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7745
7746         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7747         because set_file_times() now takes Lisp_Object path, instead of
7748         char*.
7749         * nt.c: Include buffer.h.
7750         * nt.c (convert_from_time_t): New.
7751         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7752         not set mtime correctly.
7753         * nt.h: Declare mswindows_utime().
7754         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7755         path, instead of char*.
7756         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7757
7758 2001-05-30  Ben Wing  <ben@xemacs.org>
7759
7760         For 21.4:
7761
7762         (Stephen, just take all event-msw.c patches.  This includes
7763         the "iconify" fix below.)
7764
7765         * event-msw.c:
7766         * event-msw.c (mswindows_dequeue_dispatch_event):
7767         * event-msw.c (assert):
7768         * event-msw.c (emacs_mswindows_quit_p):
7769         * event-msw.c (debug_mswin_messages):
7770         * event-msw.c (debug_output_mswin_message):
7771         * event-msw.c (vars_of_event_mswindows):
7772         Fix yet more problems with C-g handling.
7773         Implement debug-mswindows-events.
7774         
7775 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7776
7777         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7778         
7779 2001-05-23  Ben Wing  <ben@xemacs.org>
7780
7781         * event-msw.c (winsock_writer):
7782         * event-msw.c (winsock_closer):
7783         prior kludgy code was clobbering the buffer, thinking it was
7784         "unused" space to store an unneeded return value; instead, use
7785         the variable we've already got staring us in the face.
7786
7787 2001-05-17  Andy Piper  <andy@xemacs.org>
7788
7789         * sysfile.h: don't assume that file attributes are boolean
7790
7791 2001-05-23  Ben Wing  <ben@xemacs.org>
7792
7793         * device-msw.c (msprinter_init_device):
7794         signal an error rather than crash with an unavailable network
7795         printer (from Mike Alexander).
7796         
7797         * event-msw.c:
7798         * event-msw.c (struct winsock_stream):
7799         * event-msw.c (winsock_writer):
7800         * event-msw.c (winsock_closer):
7801         * event-msw.c (make_winsock_stream_1):
7802         cleanup headers.  fix (hopefully) an error with data corruption
7803         when sending to a network connection.
7804
7805         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7806         to handle the ~user prefix by (a) always assuming we're referencing
7807         ourselves and not even verifying the user -- hence any file with
7808         a tilde as its first char is invalid! (b) if there wasn't a slash
7809         following the filename, the pointer was set *past* the end of
7810         file and we started reading from uninitialized memory.  Now we
7811         simply treat these as files, always.
7812
7813         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7814         
7815 2001-05-19  Ben Wing  <ben@xemacs.org>
7816
7817         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7818
7819         * process-nt.c:
7820         * process-nt.c (vars_of_process_nt):
7821         remove unused mswindows-quote-process-args.  rec for 21.4.
7822         
7823 2001-05-12  Ben Wing  <ben@xemacs.org>
7824
7825         * event-msw.c (mswindows_dde_callback):
7826         * event-msw.c (mswindows_wnd_proc):
7827         eliminate cygwin warnings.
7828
7829 2001-05-06  Ben Wing  <ben@xemacs.org>
7830
7831         * console-msw.h:
7832         * device-msw.c:
7833         * device-msw.c (print_dialog_worker):
7834         * device-msw.c (mswindows_handle_print_dialog_box):
7835         * device-msw.c (syms_of_device_mswindows):
7836         * dialog-msw.c (mswindows_make_dialog_box_internal):
7837         * general-slots.h:
7838         implement printing the selection when it's selected.
7839
7840 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7841
7842         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7843
7844 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7845
7846         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7847         EMACS_INT is signed.
7848
7849 2001-04-15  Michael Lausch  <mla@1012surf.net>
7850
7851         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7852         gtk_widget_request_size() to give scrollbar >0 width for
7853         GTK >1.2.8.
7854
7855 2001-05-30  William M. Perry  <wmperry@gnu.org>
7856
7857         * event-gtk.c: Check for buttons as modifier keys.
7858
7859 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7860
7861         * s\mingw32.h:
7862         Properly find MinGW's <process.h> inside Cygwin's restructured
7863         include directories.  Don't try to include <cygwin/version.h>
7864         since we are dropping support for MinGW in versions of Cygwin
7865         earlier than b21.
7866         * nt.c:
7867         Drop support for MinGW in versions of Cygwin before b21.
7868         * sysdep.c:
7869         Properly find MinGW's <process.h> inside Cygwin's restructured
7870         include directories.
7871         * syswindows.h:
7872         Drop support for MinGW in versions of Cygwin before b21.
7873         * unexcw.c:
7874         Even though a.out.h is no longer detected by configure, allow
7875         MinGW to use it until we figure out how to do the job with Win32.
7876
7877 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7878
7879         * syntax.c (find_start_of_comment):
7880         Fix `unbalanced parentheses' bug when dealing with mixed comment
7881         styles in c++/java/etc. mode
7882
7883 2001-05-29  Mike Alexander  <mta@arbortext.com>
7884
7885         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7886         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7887
7888 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7889
7890         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7891
7892 2001-03-31  Mike Sperber <mike@xemacs.org>
7893
7894         * search.c (Freplace_match): Support FSF-style specification of
7895         match subexpression when applied to a buffer.
7896
7897 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7898
7899         * event-stream.c (is_scrollbar_event): add missing semicolon
7900
7901 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7902
7903         * Makefile.in.in: Use TAR macro instead of hardcoding
7904           tar.  Allows use of GNU tar instead of system tar
7905
7906 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7907
7908         * event-stream.c (is_scrollbar_event): add missing semicolon
7909
7910 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7911
7912         * XEmacs 21.4.3 "Academic Rigor" is released.
7913
7914 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7915
7916         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7917
7918 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7919
7920         * buffer.c (Vcase_fold_search): Remove obsolete
7921           comment about non ASCII case-fold-search.  This
7922           bug has been fixed by case-table changes.
7923
7924 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7925
7926         * event-msw.c: Restore include of events-mod.h.
7927
7928 2001-04-22   zhaoway  <zw@debian.org>
7929
7930         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7931         !HAVE_SCROLLBARS.
7932
7933 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7934
7935         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7936
7937 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7938
7939         * mule-charset.c (Fmake_charset): Add missing else.
7940
7941 2001-04-23  Ben Wing  <ben@xemacs.org>
7942
7943         * event-msw.c (FAKE_MOD_QUIT):
7944         * event-msw.c (mswindows_dequeue_dispatch_event):
7945         * event-msw.c (mswindows_wnd_proc):
7946         * event-msw.c (emacs_mswindows_quit_p):
7947         Get critical quit working.
7948
7949 2001-05-05  Ben Wing  <ben@xemacs.org>
7950
7951         * console-msw.h:
7952         * device-msw.c:
7953         * device-msw.c (mswindows_get_default_margin):
7954         * frame-msw.c (mswindows_size_frame_internal):
7955         * frame-msw.c (msprinter_init_frame_1):
7956         * frame-msw.c (vars_of_frame_mswindows):
7957         Change top/bottom margin defaults to 0.5 inches.
7958
7959 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7960
7961         Fix link error with gcc 3.0 on Linux.
7962         * terminfo.c (UP): Remove.
7963         * terminfo.c (BC): Remove.
7964         * terminfo.c (PC): Remove.
7965         They weren't used, and in any case, these symbols should be
7966         defined in the *library*.
7967
7968 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7969
7970         * s/aix4.h: Fix crash with xlc -O3.
7971         Improve comment explaining how -O3 works.
7972
7973 2001-04-15  Ben Wing  <ben@xemacs.org>
7974
7975         * event-stream.c:
7976         * event-stream.c (Fnext_event):
7977         * event-stream.c (is_scrollbar_event):
7978         * event-stream.c (execute_command_event):
7979         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7980         crash' problem.  His fix introduces other problems.  We filter
7981         out scrollbar events specifically, making them somewhat invisible
7982         to command-building, and not appearing in `this-command-keys'.
7983         More work is still needed (see comments in event-stream.c), but
7984         this fixes all the major problems.
7985
7986 2001-04-20  Ben Wing  <ben@xemacs.org>
7987
7988         * .cvsignore: Added stuff for Windows.
7989
7990 2001-04-28  Ben Wing  <ben@xemacs.org>
7991
7992         * buffer.c (Ferase_buffer):
7993         * editfns.c (buffer_insert1):
7994         * editfns.c (Finsert_before_markers):
7995         * editfns.c (Finsert_string):
7996         * editfns.c (Finsert_char):
7997         * editfns.c (Fdelete_region):
7998         * editfns.c (Fwiden):
7999         * editfns.c (Fnarrow_to_region):
8000         remove bogus lines setting zmacs_region_stays to 0.
8001         
8002 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8003
8004         * process-unix.c (unix_open_network_stream): If connect() fails
8005         invalidate file descriptor after closing it.
8006
8007 2001-03-08  Mike Alexander  <mta@arbortext.com>
8008
8009         * event-msw.c (mswindows_need_event_in_modal_loop):
8010         Don't dispatch a message if we didn't get one.
8011         (mswindows_need_event):
8012         Terminate the correct process when one exits instead of the first
8013         one on Vprocess_list and look for process termination when in
8014         mswindows_protect_modal_loop.
8015
8016 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8017
8018         * XEmacs 21.4.1 "Copyleft" is released.
8019
8020 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8021
8022         * input-method-motif.c (XIM_delete_frame): New callback.
8023         (XIM_init_frame): Register it.
8024
8025 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8026
8027         * XEmacs 21.4.0 "Solid Vapor" is released.
8028
8029 2001-04-15  Ben Wing  <ben@xemacs.org>
8030
8031         * cmdloop.c (call_command_loop):
8032         Fix braino in bit-rotting code.
8033         
8034 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8035
8036         * extents.c (Fset_extent_endpoints): Force creation of extent info
8037         in buffer_or_string.
8038
8039         * extents.c (process_extents_for_insertion_mapper): Correctly
8040         check for open-open zero-length extents.
8041
8042 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8043
8044         * lisp.h: New typedefs Memory_count, Element_count.
8045         * regex.c:
8046         * regex.h:
8047         Sign-compare warning elimination: several unsigned -> signed.
8048         Based on work by Ben Wing <ben@xemacs.org>.
8049
8050 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8051
8052         * XEmacs 21.2.47 "Zephir" is released.
8053
8054 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8055
8056         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8057
8058 2001-04-03  Mike Sperber <mike@xemacs.org>
8059
8060         * search.c: Revert previous patch due because of release.
8061
8062 2001-03-30  Ben Wing  <ben@xemacs.org>
8063
8064         * s\cygwin32.h:
8065         Add missing killpg prototype.
8066
8067         * elhash.c:
8068         Add a comment about fixing problems when a new entry is added
8069         while mapping.
8070
8071         * frame-msw.c (mswindows_init_frame_1):
8072         Fix compile warnings.
8073
8074         * menubar.c (vars_of_menubar):
8075         Provide `menu-accelerator-support' to indicate that we properly
8076         support %_ in menu specifications, so that package code can
8077         conditionalize on this (and remove %_ from menu specifications
8078         on older versions).
8079
8080         * event-msw.c:
8081         * scrollbar-msw.c:
8082         * scrollbar-msw.c (can_scroll):
8083         * scrollbar-msw.h:
8084         Fix handling of mouse wheel under Windows to follow standards --
8085         now scrolls window under pointer, not selected window.
8086
8087 2001-03-31  Mike Sperber <mike@xemacs.org>
8088
8089         * search.c (Freplace_match): Support FSF-style specification of
8090         match subexpression when applied to a buffer.
8091
8092 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8093
8094         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8095         function to modify KEYMAP, so map over a copy of the hash table.
8096
8097 2001-03-21  Martin Buchholz <martin@xemacs.org>
8098
8099         * XEmacs 21.2.46 "Urania" is released.
8100
8101 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8102
8103         * realpath.c (xrealpath): Make file-truename work with symlinks to
8104         /cygdrive paths on cygwin. Always lowercase drive-letters on
8105         native windows.
8106         (cygwin_readlink): Don't try to find canonical filename unless
8107         file exists.
8108
8109 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8110
8111         * ChangeLog: Log GTK merge.
8112
8113         * dumper.c:
8114         * select-x.c:
8115         * specifier.c:
8116         * symeval.h:
8117         Revert gratuitous whitespace changes from GTK merge.
8118
8119         * emacs.c: Document end of complex #ifdef @ l. 1495.
8120
8121
8122 2001-03-12  Andy Piper  <andy@xemacs.org>
8123
8124         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8125         have to do likewise.
8126
8127 2001-03-12  Andy Piper  <andy@xemacs.org>
8128
8129         * sysdep.c: we only support mingw now.
8130
8131 2001-03-09  Andy Piper  <andy@xemacs.org>
8132
8133         * unexcw.c (copy_executable_and_dump_data_section): making approx
8134         overrun a warning only.
8135
8136 2001-03-10  William M. Perry  <wmperry@aventail.com>
8137
8138         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8139         satisfy Stephen's identical-after-cpp plea.
8140
8141 2001-03-02  Ben Wing  <ben@xemacs.org>
8142
8143         * cmds.c:
8144         * cmds.c (Fforward_char):
8145         * syntax.c:
8146         * window.c:
8147
8148         Augment documentation of the most common motion commands to make
8149         note of the shifted-motion support.
8150         
8151 2001-03-02  Ben Wing  <ben@xemacs.org>
8152
8153         * nt.c (mswindows_fstat):
8154         * nt.c (mswindows_stat):
8155         * search.c (boyer_moore):
8156         Fix compile warnings under Windows.
8157         
8158         * sysdep.c (sys_readdir):
8159         Fix buggy filename-conversion code under Mule.
8160
8161 2001-03-09  William M. Perry  <wmperry@aventail.com>
8162
8163         * Makefile.in.in:
8164         * config.h.in:
8165         * console.c:
8166         * console.h:
8167         * device.c:
8168         * device.h:
8169         * dragdrop.c:
8170         * emacs.c:
8171         * event-stream.c:
8172         * events.c:
8173         * events.h:
8174         * faces.c:
8175         * frame.h:
8176         * general-slots.h:
8177         * glyphs.c:
8178         * gutter.c:
8179         * inline.c:
8180         * lisp.h:
8181         * lrecord.h:
8182         * make-src-depend:
8183         * redisplay-output.c:
8184         * redisplay.c:
8185         * symsinit.h:
8186         * sysfile.h:
8187         * toolbar.c:
8188         * window.c:
8189         The Great GTK Merge.
8190
8191         * ChangeLog.GTK:
8192         * console-gtk.c:
8193         * console-gtk.h:
8194         * device-gtk.c:
8195         * emacs-marshals.c:
8196         * emacs-widget-accessors.c:
8197         * event-gtk.c:
8198         * frame-gtk.c:
8199         * gccache-gtk.c:
8200         * gccache-gtk.h:
8201         * glade.c:
8202         * glyphs-gtk.c:
8203         * glyphs-gtk.h:
8204         * gtk-glue.c:
8205         * gtk-xemacs.c:
8206         * gtk-xemacs.h:
8207         * gui-gtk.c:
8208         * gui-gtk.h:
8209         * menubar-gtk.c:
8210         * native-gtk-toolbar.c:
8211         * objects-gtk.c:
8212         * objects-gtk.h:
8213         * redisplay-gtk.c:
8214         * scrollbar-gtk.c:
8215         * scrollbar-gtk.h:
8216         * select-gtk.c:
8217         * toolbar-gtk.c:
8218         * ui-byhand.c:
8219         * ui-gtk.c:
8220         * ui-gtk.h:
8221         The Great GTK Merge: new files.
8222
8223 2001-02-26  Ben Wing  <ben@xemacs.org>
8224
8225         Reapplied Lstream change.
8226
8227 2001-02-26  Ben Wing  <ben@xemacs.org>
8228
8229         Undid the last change, since it is more controversial than I
8230         thought.  It should be back in at some point soon.
8231         
8232 2001-02-25  Ben Wing  <ben@xemacs.org>
8233
8234         * buffer.c:
8235         * callproc.c (Fold_call_process_internal):
8236         * event-msw.c (ntpipe_slurp_reader):
8237         * event-msw.c (ntpipe_shove_writer):
8238         * event-msw.c (winsock_reader):
8239         * event-msw.c (winsock_writer):
8240         * file-coding.c:
8241         * file-coding.c (detect_eol_type):
8242         * file-coding.c (detect_coding_type):
8243         * file-coding.c (determine_real_coding_system):
8244         * file-coding.c (Fdetect_coding_region):
8245         * file-coding.c (decoding_reader):
8246         * file-coding.c (decoding_writer):
8247         * file-coding.c (mule_decode):
8248         * file-coding.c (Fdecode_coding_region):
8249         * file-coding.c (encoding_reader):
8250         * file-coding.c (encoding_writer):
8251         * file-coding.c (mule_encode):
8252         * file-coding.c (Fencode_coding_region):
8253         * file-coding.c (detect_coding_sjis):
8254         * file-coding.c (decode_coding_sjis):
8255         * file-coding.c (encode_coding_sjis):
8256         * file-coding.c (detect_coding_big5):
8257         * file-coding.c (decode_coding_big5):
8258         * file-coding.c (encode_coding_big5):
8259         * file-coding.c (detect_coding_ucs4):
8260         * file-coding.c (decode_coding_ucs4):
8261         * file-coding.c (encode_coding_ucs4):
8262         * file-coding.c (detect_coding_utf8):
8263         * file-coding.c (decode_coding_utf8):
8264         * file-coding.c (encode_coding_utf8):
8265         * file-coding.c (detect_coding_iso2022):
8266         * file-coding.c (decode_coding_iso2022):
8267         * file-coding.c (encode_coding_iso2022):
8268         * file-coding.c (decode_coding_no_conversion):
8269         * file-coding.c (encode_coding_no_conversion):
8270         * glyphs-x.c (write_lisp_string_to_temp_file):
8271         * gpmevent.c (tty_get_foreign_selection):
8272         * lisp.h:
8273         * lstream.c:
8274         * lstream.c (Lstream_flush_out):
8275         * lstream.c (Lstream_adding):
8276         * lstream.c (Lstream_write_1):
8277         * lstream.c (Lstream_write):
8278         * lstream.c (Lstream_raw_read):
8279         * lstream.c (Lstream_read_more):
8280         * lstream.c (Lstream_read):
8281         * lstream.c (Lstream_unread):
8282         * lstream.c (Lstream_fputc):
8283         * lstream.c (stdio_reader):
8284         * lstream.c (stdio_writer):
8285         * lstream.c (filedesc_reader):
8286         * lstream.c (filedesc_writer):
8287         * lstream.c (lisp_string_reader):
8288         * lstream.c (struct fixed_buffer_stream):
8289         * lstream.c (make_fixed_buffer_input_stream):
8290         * lstream.c (make_fixed_buffer_output_stream):
8291         * lstream.c (fixed_buffer_reader):
8292         * lstream.c (fixed_buffer_writer):
8293         * lstream.c (struct resizing_buffer_stream):
8294         * lstream.c (resizing_buffer_writer):
8295         * lstream.c (dynarr_writer):
8296         * lstream.c (lisp_buffer_reader):
8297         * lstream.c (lisp_buffer_writer):
8298         * lstream.h:
8299         * lstream.h (lstream_implementation):
8300         * lstream.h (struct lstream):
8301         * md5.c (Fmd5):
8302         * process-nt.c (nt_send_process):
8303         * process-unix.c (unix_send_process):
8304         
8305         Correct Lstream lossage due to mixing of signed and unsigned
8306         quantities.  All Lstream uses of size_t and ssize_t are now a
8307         single signed data type Lstream_data_count.  This fixes problems
8308         under Windows with sending large quantities of data to a process,
8309         and may well fix other subtle bugs.
8310
8311 2001-02-23  Martin Buchholz <martin@xemacs.org>
8312
8313         * XEmacs 21.2.45 "Thelxepeia" is released.
8314
8315 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8316
8317         * lisp-union.h (XSETINT): 
8318         (XSETCHAR):
8319         (XSETOBJ): 
8320         Reverse previous change of 2001-02-06.
8321
8322 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8323
8324         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8325         buffers.
8326         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8327         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8328         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8329         * regex.c (POS_AS_IN_BUFFER): removed
8330         * regex.c (re_search_2):
8331         * regex.c (re_match_2):
8332         Don't use an offset of 1 when calculating buffer positions, since
8333         `BI_BUF_BEGV' does it already.
8334
8335 2001-02-18  Wim Dumon  <wim@easics.be>
8336
8337         * insdel.c (prepare_to_modify_buffer): Also check for
8338         supersession when clash-detection is enabled. 
8339
8340 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8341
8342         * regex.c (re_match_2_internal):
8343         Convert temp characters from 'const unsigned char' to 're_char'.
8344         Fix crashing bug with extended characters under mule.
8345         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8346         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8347         font-lock, pdump, and new syntax-table code.
8348         * syntax.c (find_start_of_comment):
8349         (find_end_of_comment):
8350         (forward-comment):
8351         Fix crashing bugs involving moving beyond end of buffer.
8352         * syntax.c (find_start_of_comment):
8353         Fixed logic to allow proper detection of cases where the same
8354         character is used to end both a two-char comment start and a
8355         two-char comment end sequence. Fixes `(forward-comment -1)'.
8356         * syntax.c (find_start_of_comment):
8357         Return position just past last comment-end character for all cases
8358         (previously was only done for two-char comment-end sequences).
8359         * syntax.c (forward-comment):
8360         Take value returned from `find_end_of_comment', rather than
8361         incrementing it.
8362         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8363         Properly deal with BUFFERP (syntax_cache.object)
8364
8365 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8366
8367         * alloc.c (Fgarbage_collect): 
8368         * alloc.c (make_bit_vector_from_byte_vector):
8369         -Wsign-compare-correctness.
8370
8371 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8372
8373         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8374         (XSETCHAR): Likewise.
8375         (XSETOBJ): Likewise.
8376
8377 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8378
8379         * mule-canna.c (canna-func-delete_previous): 
8380         Rename to canna-func-delete-previous.
8381
8382 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8383
8384         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8385
8386 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8387
8388         * font-lock.c (find_context): Fix C++ compile errors introduced by
8389         recent patch
8390
8391 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8392
8393         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8394         pragma, but earlier ones barf on the same pragma.
8395
8396 2001-02-06  Mike Sperber <mike@xemacs.org>
8397
8398         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8399         `configure-mule-lisp-directory'.
8400
8401 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8402
8403         Make sure dump-id.c is compiled in the same way as other .c's.
8404         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8405         * dump-id.h: Remove.
8406         * emacs.c: Move dump-id.h into dumper.h.
8407         * dumper.h: Move dump-id.h into dumper.h.
8408         * Makefile.in.in:
8409         Use standard .c.o rule for building dump-id.o.
8410         Remove preprocessor flags from link command.
8411         Add dump-id.o to ${otherobjs} if PDUMP.
8412
8413 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8414
8415         Port FSF 20.7 syntax table improvements.
8416         * syntax.c.
8417         * syntax.h.
8418
8419         Fixups for new syntax table stuff.
8420         * dired.c: Include syntax.c.
8421         (Fdirectory_files): Initialize regex_match_object and
8422         regex_emacs_buffer.
8423         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8424         and Fget_char_property.
8425
8426         Use ported FSF 20.7 syntax table improvements.
8427         * font-lock.c.
8428         * regex.c.
8429         * search.c.
8430         
8431 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8432
8433         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8434         Unixware's enum boolean from sys/types.h.
8435
8436 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8437
8438         Fix support for building with latest Purify.
8439         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8440         (PURIFY_FLAGS): Likewise.
8441
8442 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8443
8444         * fileio.c (lisp_string_set_file_times): New.
8445         * fileio.c (Fcopy_file): Use it.
8446         Fixes bug:
8447         (copy-file filename non-ascii-filename t t)
8448         ==> No such file or directory, non-ascii-filename
8449
8450 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8451
8452         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8453         USHRT_MAX seems clearer than ~0 anyways.
8454
8455 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8456
8457         dumper improvements.  Inspired by Olivier.
8458         * dumper.c (pdump_max_align): New.
8459         * dumper.c (pdump_add_entry): Use pdump_max_align.
8460         * dumper.c (pdump_get_entry_list): Likewise.
8461         * dumper.c (pdump_scan_by_alignment): Likewise.
8462         Don't iterate through unnecessary alignments.
8463         * dumper.c (pdump_file_get): No need to align result of malloc().
8464         * dumper.c (pdump_mallocadr): Remove.  
8465         The result of malloc() is guaranteed to be maximally aligned.
8466         * dumper.c: s/elmt/elt/g;
8467         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8468         * dumper.c (pdump_alert_undump_object): Likewise.
8469         * dumper.c (pdump_align_table): 
8470         Don't support alignments > 64.
8471         Store ALIGNOF's, not shift counts, in table.
8472
8473 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8474
8475         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8476         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8477         * systime.h: Use HAVE_UTIME.
8478         * sysdep.c (struct utimbuf): Remove.
8479         * sysdep.c (set_file_times): Prefer utime() to utimes().
8480         * config.h.in (HAVE_UTIME): New.
8481         * config.h.in (HAVE_UTIME_H): Remove.
8482         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8483
8484 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8485
8486         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8487
8488 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8489
8490         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8491
8492 2001-02-08  Martin Buchholz <martin@xemacs.org>
8493
8494         * XEmacs 21.2.44 "Thalia" is released.
8495
8496 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8497
8498         Fixes crashes in kill-emacs on some systems.
8499         * process-unix.c (unix_kill_child_process):
8500         It's OK for kill() to fail with ESRCH.
8501
8502 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8503
8504         Contortions to make .gdbinit tricks work on most systems.
8505         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8506         * alloc.c (dbg_valmask): Make non-const.
8507         * alloc.c (dbg_typemask): Make non-const.
8508         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8509         * alloc.c (dbg_valbits): Make non-const.
8510         * alloc.c (dbg_gctypebits): Make non-const.
8511         * .gdbinit (decode_object): Make it work with AIX cc.
8512
8513 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8514
8515         * elhash.c (make_general_lisp_hash_table):
8516         Use simpler and more efficient calloc to clear entries.
8517
8518 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8519
8520         * window.c (window_scroll): Work around an AIX C compiler bug.
8521         Fixes 'scroll-up' does nothing problem with xlC.
8522
8523 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8524
8525         * .gdbinit: Remove obsolete comment.
8526
8527 2001-01-31  Mike Alexander  <mta@arbortext.com>
8528
8529         * select.c (Fown_selection_internal): Set owned_p for device
8530         method correctly.
8531
8532 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8533
8534         Port to g++ 2.97.
8535         "not" cannot be used as a macro name as it is an operator in C++
8536         * config.h.in: Stop #defining `not'.
8537         * chartab.c (check_category_char): not ==> not_p
8538         * chartab.h: Likewise.
8539         * regex.c (re_match_2_internal): Likewise.
8540
8541 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8542
8543         * lisp-disunion.h: Fix up comments.
8544
8545 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8546
8547         * keymap.c (define_key_check_and_coerce_keysym):
8548         (syms_of_keymap):
8549         Support mouse-6 and mouse-7 bindings in the obvious way.
8550
8551 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8552
8553         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8554
8555 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8556
8557         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8558         Previous patch missed DEFVAR_INT_MAGIC.
8559         Make sure future DEFVAR_foo use correct types.
8560         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8561         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8562         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8563         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8564         * (DEFVAR_INT): Likewise.
8565         * redisplay.c (vertical_clip): Should be of type Fixnum.
8566         * redisplay.c (horizontal_clip): Likewise.
8567         * lisp.h (dump_add_opaque_int): New.
8568         (dump_add_opaque_fixnum): New.
8569
8570 2001-01-29  Andy Piper  <andy@xemacs.org>
8571
8572         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8573         since they can be eval'ed
8574
8575 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8576
8577         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8578         Oops, XEmacs redefines `class'.  Use `typename' instead.
8579
8580 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8581
8582         * dumper.c: Fix C++ compile errors.
8583
8584 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8585
8586         * tparam.c: Use correct prototypes.
8587
8588 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8589
8590         * sysproc.h: #include util.h for NetBSD's openpty.
8591
8592 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8593
8594         More 64-bit correctness.
8595         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8596         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8597         Fix up comments.
8598         This finally finishes the 64-bit SGI port.
8599         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8600         * symbols.c: Fix up comments and type casts.
8601         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8602         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8603         * symeval.h (Fixnum): New type.
8604         * symeval.h (symbol_value_type): Fix up comment.
8605
8606         * commands.h:
8607         * nt.c:
8608         * emacs.c:
8609         * data.c:
8610         * redisplay.c:
8611         * abbrev.c:
8612         * dired-msw.c:
8613         * event-Xt.c:
8614         * eldap.c:
8615         * window.c:
8616         * sound.c:
8617         * event-stream.c:
8618         * eval.c:
8619         * buffer.c:
8620         * mule-canna.c: A million DEFVAR_INTs here...
8621         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8622         * extents.c:
8623         * cmdloop.c:
8624         * lisp.h:
8625         * select-x.c:
8626         * console-x.h:
8627         * event-msw.c:
8628         * mule-wnnfns.c:
8629         * hpplay.c:
8630         * ralloc.c:
8631         * alloc.c:
8632         * keymap.c:
8633         * profile.c:
8634         s/int/Fixnum/g in DEFVAR_INT declarations.
8635
8636 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8637
8638         Port pdump to SGI alignment-sensitive environment.
8639         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8640         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8641         properly aligned.
8642         Define and use aligned reading and writing macros.
8643         Use buffered stdio instead of posix i/o for faster dumping.
8644         Eliminate kludgy 256 byte space for header.
8645         Read and write from dump file using structs for alignment safety.
8646         * dumper.c (pdump_align_stream): New.
8647         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8648         * dumper.c (PDUMP_READ_ALIGNED): New.
8649         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8650         * dumper.c (pdump_static_Lisp_Object): New struct.
8651         * dumper.c (pdump_static_pointer): New struct.
8652         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8653         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8654         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8655         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8656
8657         * dumper.c (pdump_backtrace):
8658         * dumper.c (pdump_get_indirect_count):
8659         * dumper.c (pdump_register_object):
8660         * dumper.c (pdump_register_struct):
8661         * dumper.c (pdump_reloc_one):
8662         * dumper.c (pdump_scan_by_alignment):
8663         * dumper.c (pdump_dump_from_root_struct_ptrs):
8664         * dumper.c (pdump_dump_opaques):
8665         * dumper.c (pdump_dump_rtables):
8666         * dumper.c (pdump_dump_from_root_objects):
8667         * dumper.c (pdump):
8668         * dumper.c (pdump_load_finish):
8669         Use aligned reading and writing.
8670
8671         * dumper.c (pdump_free): Make static.
8672         * dumper.c (pdump_hFile): Likewise.
8673         * dumper.c (pdump_hMap): Likewise.
8674
8675 2001-01-26  Martin Buchholz <martin@xemacs.org>
8676
8677         * XEmacs 21.2.43 "Terspichore" is released.
8678
8679 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8680
8681         Type fiddling for window_config.saved_windows_count
8682         * window.c (struct window_config): 
8683         Make saved_windows_count member unsigned.
8684         * window.c (sizeof_window_config_for_n_windows): 
8685         Make parameter unsigned.
8686         * window.c (mark_window_config):
8687         * window.c (window_config_equal):
8688         * window.c (free_window_configuration):
8689         * window.c (Fset_window_configuration):
8690         * window.c (count_windows):
8691         * window.c (Fcurrent_window_configuration):
8692         * window.c (reinit_vars_of_window):
8693         Update all callers and users.
8694
8695 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8696
8697         Alignment correctness for flexible arrays.
8698         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8699         Make alignment-correct. Add interesting comments.
8700         * alloc.c (size_vector):
8701         * alloc.c (make_vector_internal):
8702         * alloc.c (make_bit_vector_internal):
8703         * alloc.c (sweep_bit_vectors_1):
8704         * fns.c (size_bit_vector):
8705         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8706         * window.c (sizeof_window_config_for_n_windows): 
8707         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8708
8709 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8710
8711         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8712
8713 2001-01-23  Andy Piper  <andy@xemacs.org>
8714
8715         * select.c (Fown_selection_internal): pass owned_p
8716
8717         * select-msw.c (mswindows_own_selection): New Signature.
8718
8719         * console.h (struct console_methods): add owned_p to
8720         _own_selection.
8721
8722         * select-x.c (x_own_selection): pass owned_p
8723         (hack_motif_clipboard_selection): use owned_p
8724         (vars_of_select_x): new variable -
8725         x_selection_strict_motif_ownership.
8726
8727 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8728
8729         * specifier.h (specifier_data_offset): Remove pointless parens.
8730         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8731
8732 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8733
8734         Make Lisp_Object sizeof methods be alignment-correct.
8735         pdump must restore objects to the same alignment as the C compiler
8736         assumes.  It really matters on SGIs.
8737         * lstream.c (aligned_sizeof_lstream): New.
8738         (sizeof_lstream): Use aligned_sizeof_lstream.
8739         (Lstream_new): Likewise.
8740         * opaque.c (aligned_sizeof_opaque): New.
8741         (sizeof_opaque): Use aligned_sizeof_opaque.
8742         (make_opaque): Likewise.
8743         * specifier.c (aligned_sizeof_specifier): New.
8744         (sizeof_specifier): Use aligned_sizeof_specifier.
8745         (make_specifier_internal): Likewise.
8746
8747 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8748
8749         * lstream.h (struct lstream): Use max_align_t for trailing data.
8750         * specifier.h (struct Lisp_Specifier): Likewise.
8751
8752 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8753
8754         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8755         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8756         (CCL_SUSPEND): Likewise.
8757         (CCL_INVALID_CMD): Likewise.
8758         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8759         (ccl_driver): Likewise.
8760         (CCL_WRITE_CHAR): Macro hygiene.
8761         (CCL_WRITE_STRING): Macro hygiene.
8762
8763 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8764
8765         Port "portable" dumper to SunOS 4 and HP-UX.
8766         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8767         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8768         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8769
8770 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8771
8772         * lisp.h (ALIGNOF): A better definition for C++.
8773
8774 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8775
8776         Macro hygiene.
8777         Fix printf warnings: int format, long int arg.
8778         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8779         (PUSH_FAILURE_POINT): Use correct printf formats.
8780         (POP_FAILURE_POINT): Use correct printf formats.  
8781         Use do {...} while (0)
8782
8783 2001-01-20  Martin Buchholz <martin@xemacs.org>
8784
8785         * XEmacs 21.2.42 "Poseidon" is released.
8786
8787 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8788
8789         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8790
8791 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8792
8793         De-kludgify FIXED_TYPE free list frobbing.
8794         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8795         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8796         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8797         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8798         * alloc.c (LRECORD_FREE_P): New.
8799         * alloc.c (MARK_LRECORD_AS_FREE): New.
8800         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8801         * alloc.c (STRUCT_FREE_P): Deleted.
8802         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8803         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8804         * alloc.c (STRING_CHARS_FREE_P): New.
8805         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8806         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8807         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8808         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8809         * alloc.c (resize_string): Use new definitions.
8810         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8811         * alloc.c (verify_string_chars_integrity): Use new definitions.
8812         * alloc.c (compact_string_chars): Use new definitions.
8813         * alloc.c: Update monster comments.
8814         * lrecord.h (lrecord_type): Add some new lrecord types for
8815         alloc.c's use.
8816
8817 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8818
8819         Improve alignment hackery.
8820         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8821         (max_align_t): Moved from opaque.h - general purpose.
8822         (ALIGN_PTR): Use size_t, not long.
8823         * opaque.h (max_align_t): Move to lisp.h.
8824
8825 2001-01-18  Norbert Koch  <nk@LF.net>
8826
8827         * gui.h: Fix and add prototypes to fix build problems.
8828
8829 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8830
8831         temacs is going away, so `dump-temacs' is now a bad name.
8832         * .dbxrc (dump-temacs): Rename to `dmp'.
8833         * .gdbinit (dump-temacs): Rename to `dmp'.
8834
8835 2001-01-17  Andy Piper  <andy@xemacs.org>
8836
8837         * glyphs.c (print_image_instance): comment to make martin happy.
8838
8839         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8840         change.
8841
8842         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8843         activation.
8844         (mswindows_tab_control_redisplay): warning suppression.
8845
8846         * glyphs-widget.c (widget_update): re-write to cope with updated
8847         items.
8848         (widget_instantiate): use new gui_item functions.
8849         (tab_control_update): deleted.
8850         (progress_gauge_update): deleted.
8851         (image_instantiator_progress_guage): take out update reference.
8852         (image_instantiator_tree_view): ditto.
8853         (image_instantiator_tab_control): ditto.
8854
8855         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8856         Right the new way.
8857         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8858         return whether anything was changed.
8859         (update_gui_item_keywords): as it sounds.
8860
8861         * gui.h: declare widget_gui_parse_item_keywords.
8862
8863         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8864         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8865
8866 2001-01-17  Martin Buchholz <martin@xemacs.org>
8867
8868         * XEmacs 21.2.41 "Polyhymnia" is released.
8869
8870 2001-01-16  Didier Verna  <didier@xemacs.org>
8871
8872         * glyphs.c (image_instantiate): don't use fallbacks when
8873         instantiating a face's background pixmap by inheritance.
8874
8875 2001-01-14  Mike Sperber <mike@xemacs.org>
8876
8877         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8878         Conditionalize accordingly.
8879
8880 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8881
8882         * dumper.c (pdump_file_get): Fix a compiler warning.
8883
8884 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8885
8886         Make Purify happy when pdumping.
8887         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8888         iniitalizing all bits of new lisp object memory.
8889         * symbols.c (Fmake_local_variable): Likewise.
8890         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8891         * symbols.c (Fdefvaralias): Likewise.
8892         * mule-charset.c (vars_of_mule_charset): Likewise.
8893
8894 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8895         Add the `-nd' flag when running pre-dump operations under the debugger.
8896         * .dbxrc (run-temacs): Add `-nd'.
8897         * .dbxrc (update-elc): Likewise.
8898         * .dbxrc (dump-temacs): Likewise.
8899         * .gdbinit (run-temacs): Likewise.
8900         * .gdbinit (check-temacs): Likewise.
8901         * .gdbinit (update-elc): Likewise.
8902         * .gdbinit (dump-temacs): Likewise.
8903
8904 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8905
8906         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8907         export OBJECT_MODE=64
8908         configure --pdump --use-union-type=no
8909         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8910         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8911
8912         * miscplay.c (sndcnv8U_2mono):
8913         Avoid two uses of `++' in the same expression.
8914         Suppresses a GCC warning.
8915
8916 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8917
8918         Make sure future compilers don't miscompile alloc.c.
8919         * alloc.c:
8920         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8921         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8922
8923 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8924
8925         * dumper.c: A little post-pdump-rename comment fixup.
8926
8927 2001-01-09  Jerry James  <james@eecs.ku.edu>
8928
8929         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8930
8931 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8932
8933         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8934         script:
8935         #!/bin/sh
8936         replace_symbol () {
8937           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8938         }
8939
8940         replace_symbol pdump_wire_lists pdump_weak_object_chains
8941         replace_symbol pdump_wire_list dump_add_weak_object_chain
8942
8943         replace_symbol pdump_wires pdump_root_objects
8944         replace_symbol pdump_wire dump_add_root_object
8945
8946         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8947         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8948
8949         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8950         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8951         replace_symbol dumpstructinfo pdump_root_struct_ptr
8952         replace_symbol dumpstruct dump_add_root_struct_ptr
8953
8954         replace_symbol dumpopaque dump_add_opaque
8955         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8956         replace_symbol dumpopaqueinfos pdump_opaques
8957         replace_symbol dumpopaqueinfo pdump_opaque
8958
8959         replace_symbol nb_structdump nb_root_struct_ptrs
8960         replace_symbol nb_opaquedump nb_opaques
8961
8962         replace_symbol align_table pdump_align_table
8963         replace_symbol dump_header pdump_header
8964
8965         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8966         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8967
8968
8969 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8970
8971         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8972         optimizing bytecount_to_charcount().
8973
8974 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8975
8976         * config.h.in:
8977         (HAVE_DLFCN_H): Removed.
8978         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8979
8980 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8981
8982         Portable dumper maintainability improvements.
8983         * alloc.c (staticpro):
8984         * alloc.c (staticpro_nodump):
8985         * alloc.c (garbage_collect_1):
8986         * alloc.c (reinit_alloc_once_early):
8987         * alloc.c (init_alloc_once_early):
8988         * alloc.c: Move dumper functions to alloc.c.
8989         * dumper.c (pdump_backtrace):
8990         * dumper.c (pdump_dump_structs):
8991         * dumper.c (pdump_dump_opaques):
8992         * dumper.c (pdump_dump_rtables):
8993         * dumper.c (pdump_dump_wired):
8994         * dumper.c (pdump):
8995         * dumper.c (pdump_load_check):
8996         * dumper.c (pdump_load_finish):
8997         * dumper.c (pdump_file_unmap):
8998         * dumper.c (pdump_file_get):
8999         * dumper.c (pdump_resource_free):
9000         * dumper.c (pdump_resource_get):
9001         * dumper.c (pdump_file_free):
9002         * dumper.c (pdump_file_try):
9003         * dumper.c (pdump_load):
9004         Remove fixed size limits on staticpro(), staticpro_nodump(),
9005         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9006         Remove custom code for dumping lrecord_implementations_table - use
9007         dumpopaque instead.
9008         Remove (most of the) custom code for dumping staticpros - dump it
9009         like any other dynarr.
9010
9011         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9012         * dumper.c: Moved functions from alloc.c.
9013         * alloc.c (dumpstruct): Moved to dumper.c.
9014         * alloc.c (dumpopaque): Likewise.
9015         * alloc.c (pdump_wire): Likewise.
9016         * alloc.c (pdump_wire_list): Likewise.
9017
9018         * lisp.h (Dynarr_sizeof): New.
9019         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9020         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9021         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9022
9023         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9024         * lisp.h (dumpopaque): ditto.
9025         * lisp.h (pdump_wire): ditto.
9026         * lisp.h (pdump_wire_list): ditto.
9027
9028 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9029
9030         * make-src-depend (PrintPatternDeps):
9031         Use `sort' to make output independent of perl version.
9032
9033 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9034
9035         Port to Netbsd 1.5.
9036         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9037         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9038
9039 2001-01-03  Didier Verna  <didier@xemacs.org>
9040
9041         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9042         that `focus_frame' is alive before thinking of calling
9043         `redisplay_redraw_cursor' on it.
9044
9045 2001-01-08  Martin Buchholz <martin@xemacs.org>
9046
9047         * XEmacs 21.2.40 is released.
9048
9049 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9050
9051         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9052
9053 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9054
9055         * alloc.c (dbg_valmask): Make const.
9056         * alloc.c (dbg_typemask): Make const.
9057         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9058         * alloc.c (dbg_valbits): Make const.
9059         * alloc.c (dbg_gctypebits): Make const.
9060
9061 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9062
9063         * redisplay-x.c (x_bevel_area):
9064         redisplay.h (struct rune):
9065         Typo fixes in comments.
9066
9067 2001-01-05  Andy Piper  <andy@xemacs.org>
9068
9069         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9070         adjustment.
9071
9072         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9073
9074 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9075
9076         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9077
9078         * mule-ccl.c (stack_idx_of_map_multiple):
9079         Non const global data must not be initialized!
9080         Found by MIYASHITA Hisashi.
9081
9082 2001-01-02  Andy Piper  <andy@xemacs.org>
9083
9084         * frame.c (change_frame_size): make sure frame size is always
9085         marked as changed.
9086
9087         * glyphs.c (image_instance_layout): minor code reuse.
9088
9089         * window.c (Fcurrent_window_configuration): revert previous
9090         change.
9091
9092 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9093
9094         * glyphs.h:
9095         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9096
9097 2000-12-31  Andy Piper  <andy@xemacs.org>
9098
9099         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9100         when widget gets unmapped.
9101
9102         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9103         function. Make sure widgets losing focus don't just drop it.
9104         (handle_focus_event_1): record the widget with focus.
9105
9106 2000-12-31  Andy Piper  <andy@xemacs.org>
9107
9108         * window.c (allocate_window): use
9109         make_image_instance_cache_hash_table.
9110         (make_dummy_parent): ditto.
9111         (Fset_window_configuration): ditto.
9112
9113         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9114
9115         * glyphs.c (process_image_string_instantiator): use
9116         INSTANTIATOR_TYPE.
9117         (get_image_instantiator_governing_domain): ditto.
9118         (normalize_image_instantiator): ditto.
9119         (instantiate_image_instantiator): ditto.
9120         (make_image_instance_1): ditto.
9121         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9122         (instantiator_eq_equal): new function for use with instance hash
9123         tables.
9124         (instantiator_eq_hash): ditto.
9125         (make_image_instance_cache_hash_table): create a suitable hash
9126         table for storing image instances.
9127
9128         * elhash.h (hash_table_weakness): new internal weakness type
9129         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9130         declare new functions.
9131
9132         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9133         another weakness type for glyphs.
9134         (make_standard_lisp_hash_table): new function split out from
9135         make_general_lisp_hash_table.
9136         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9137         (hash_table_instantiate): ditto.
9138         (Fmake_hash_table): ditto.
9139
9140 2000-12-31  Martin Buchholz <martin@xemacs.org>
9141
9142         * XEmacs 21.2.39 is released.
9143
9144 2000-12-29  Andy Piper  <andy@xemacs.org>
9145
9146         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9147
9148         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9149         the frame has changed so that we pick up geometry changes such as
9150         menubar visibility.
9151
9152 2000-12-28  Andy Piper  <andy@xemacs.org>
9153
9154         * lastfile.c (my_ebss): make a char array so we can pad the
9155         bss. Fixes cygwin unexec.
9156
9157         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9158
9159 2000-12-26  Andy Piper  <andy@xemacs.org>
9160
9161         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9162         comments and try and be more precise about a non-/SIGIO world.
9163         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9164         SIGIO.
9165
9166         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9167         we don't normalize to zero width or height.
9168
9169 2000-12-24  Andy Piper  <andy@xemacs.org>
9170
9171         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9172
9173 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9174
9175         * s/sco5.h: SCO 5 has pty support.
9176
9177 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9178
9179         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9180         input-method-xlib.c contains whole contents of input-method-xfs.c,
9181         so we can use input-method-xlib.c's code for USE_XFONTSET
9182         using #ifdefs.
9183         * input-method-xfs.c: removed.
9184
9185 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9186
9187         * file-coding.h (enum coding_category_type): reorder enumerators to
9188         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9189         (now one greater than largest real coding_category_type enumerator).
9190         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9191         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9192         Fcoding_category_list, Fset_coding_priority_list,
9193         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9194         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9195
9196 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9197
9198         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9199         * redisplay-output.c (redisplay_output_window): Clear top of window
9200         when face is changed.
9201         * redisplay-x.c (x_redraw_exposed_window): Call
9202         redisplay_clear_top_of_window.
9203         * redisplay.h: Publish redisplay_clear_top_of_window.
9204
9205 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9206
9207         * buffer.c (Fkill_buffer): Map over all devices.
9208         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9209         (list_windows): New function.
9210         (list_all_windows): Ditto.
9211         (Freplace_buffer_in_windows): Use them.
9212
9213 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9214
9215         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9216         (Fopen_database): Use `db_create' instead of `db_open'.
9217         (syms_of_database): Initialize Qqueue.
9218
9219 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9220
9221         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9222         buffer_local_face_property.
9223         * buffer.h (struct buffer): New member buffer_local_face_property.
9224         * window.c (Fset_window_buffer):  Mark window's face as changed
9225         when buffer has buffer local face.
9226         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9227         * objects.c (color_after_change): Set buffer_local_face_property
9228         when locale of face specifier is buffer.
9229         * objects.c (font_after_change): Ditto.
9230         * objects.c (face_boolean_after_change): Ditto.
9231         * glyphs.c (image_after_change): Ditto.
9232
9233 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9234
9235         * nt.c (mswindows_fstat): Report file permissions, volume serial
9236         number, etc. Code adapted from FSF Emacs 20.7.
9237
9238 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9239
9240         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9241         of stat when we don't have symbolic links, to make sure
9242         mswindows_stat is called on mswindows.
9243
9244 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9245
9246         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9247
9248 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9249
9250         * doprnt.c (emacs_doprnt_1): More printing fixes.
9251         Make printing of numbers compatible with libc and FSF Emacs.
9252         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9253         Use the system printf to do most of the hard work of formatting,
9254         instead of doprnt_1().
9255         Calculate memory to allocate for format string.
9256         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9257         (doprnt_1): Cleaner code and documentation.
9258
9259 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9260
9261         * Makefile.in.in: Use the loop variable to install headers.
9262
9263 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9264
9265         * window.c (Fsplit_window): Don't invalidate face cache.
9266
9267 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9268
9269         * minibuf.c (Fall_completions): Undo the previous change
9270         which removed checking elements start with space.
9271
9272 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9273
9274         * mule-canna.c: Didier suppression.
9275
9276 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9277
9278         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9279         (warning suppression).  Add English comment translations.
9280
9281 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9282
9283         * unexelfsgi.c (unexec): Better test for mmap failure.
9284
9285 2000-12-05  Martin Buchholz <martin@xemacs.org>
9286
9287         * XEmacs 21.2.38 is released.
9288
9289 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9290
9291         * redisplay.c (bar-cursor): Make a user variable.
9292
9293         * symsinit.h: Add init_postgresql_from_environment.
9294
9295 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9296
9297         * regex.c: Convert to clean C.
9298
9299 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9300
9301         * realpath.c:
9302         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9303         initialization.
9304         (sys_readlink): renamed to system_readlink to avoid conflict with
9305         the other sys_readlink.
9306
9307 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9308
9309         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9310
9311 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9312
9313         * postgresql.c (init_postgresql_from_environment): new function.
9314         (vars_of_postgresql): Move code initializing Lisp variables out and
9315         into init_postgresql_from_environment.
9316         emacs.c (main_1): Call init_postgresql_from_environment if and only
9317         if running a dumped XEmacs.
9318
9319 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9320
9321         * buffer.c: Make find-file-compare-truenames default to true on
9322         windows.
9323
9324         * realpath.c (win32_abs_start):
9325         (cygwin_readlink):
9326         (win32_readlink): New functions.
9327         (xrealpath): Return really real filenames on windows.
9328
9329         * fileio.c (Ffile_truename): Make file-truename work on windows.
9330
9331 2000-11-29  Didier Verna  <didier@xemacs.org>
9332
9333         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9334         * faces.c (update_face_cachel_data): use it.
9335         * faces.c (add_face_cachel): use it. Complete background pixmap
9336         frobbing in face cache if `update_face_cachel_data' has not done so.
9337
9338 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9339
9340         * search.c (string_match_1): Don't set last_thing_searched
9341         when search failed.
9342
9343 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9344
9345         * buffer.c: Include casetab.h
9346         (common_init_complex_vars_of_buffer): Use new case-table object.
9347         * buffer.h: Include casetab.h
9348         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9349         (DOWNCASE_TABLE_OF): Ditto.
9350         * bufslots.h: Remove char-tables and add case-table.
9351         * casetab.c: Include casetab.h
9352         (CASE_TABLE_P): Removed.
9353         (mark_case_table): New function.
9354         (allocate_case_table): New function.
9355         (Fcase_table_p): Use new case-table.
9356         (case_table_char): New function.
9357         (Fget_case_table): Ditto.
9358         (Fput_case_table): Ditto.
9359         (Fput_case_table_pair): Ditto.
9360         (Fcopy_case_table): Ditto.
9361         (Fcurrent_case_table): Return case-table.
9362         (Fstandard_case_table): Return case-table.
9363         (Fset_case_table): Fix doc-string.
9364         (set_case_table): Use case-table
9365         (syms_of_casetab): DEFSUBR new functions.
9366         (complex_vars_of_casetab): Set up standard case-table.
9367         * casetab.h: New file.
9368         * editfns.c: Include casetab.h
9369         (Fcompare_buffer_substrings): Use case-table.
9370         * inline.c: Include casetab.h
9371         * lisp.h: Remove bogus extern.
9372         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9373         * search.c: Include casetab.h
9374         (TRANSLATE_ASCII): Removed.
9375         (TRANSLATE): Unconditionally translate character.
9376         (looking_at_1): Use case-table.
9377         (string_match_1): Ditto.
9378         (fast_string_match): Ditto.
9379         (search_command): Ditto.
9380         (search_buffer): Separate boyer_moore.  Check whether
9381         boyer_moore is possible.
9382         (simple_search): New function.
9383         (boyer_moore): Separated from search_buffer. Translate char.
9384
9385 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9386
9387         * regex.c (RE_TR_ASCII): Removed.
9388         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9389         (PATFETCH): Call PATFETCH_RAW.
9390         (PATFETCH_RAW): Fetch Emchar.
9391         (PATUNFETCH): Decrement charptr.
9392         (GET_BUFFER_SPACE): Rename b to buf_end.
9393         (BUF_PUSH): Ditto.
9394         (BUF_PUSH_2): Ditto.
9395         (BUF_PUSH_3): Ditto.
9396         (EXTEND_BUFFER): Ditto.
9397         (SET_LIST_BIT): Ditto.
9398         (regex_compile): Ditto.  Translate non ASCII char.
9399         (compile_range): Ditto.
9400         (re_search_2): Ditto.
9401         (re_match_2_internal): Compare Emchar.
9402         (bcmp_translate): Ditto.
9403
9404 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9405
9406         * lisp.h (basic char/int typedefs):  comment improvement.
9407
9408 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9409
9410         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9411         unstomp inhibit_site_lisp.  Improve comments.
9412
9413 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9414
9415         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9416
9417 2000-11-28  Andy Piper  <andy@xemacs.org>
9418
9419         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9420         clipped display for windows in the gutter also.
9421         (redisplay_display_boxes_in_window_p): change semantics of return
9422         codes to be more intuitive.
9423
9424         * gutter.h: declare display_boxes_in_gutter_p.
9425
9426         * gutter.c (display_boxes_in_gutter_p): new function for
9427         redisplay.
9428
9429 2000-11-22  Andy Piper  <andy@xemacs.org>
9430
9431         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9432         autodetect domain.
9433
9434 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9435
9436         * callproc.c (Fold_call_process_internal):
9437         * gpm.c (Freceive_gpm_event):
9438         (tty_get_foreign_selection): Might be just warning supression.
9439         * fileio.c (Fwrite_region_internal):
9440         (Fset_visited_file_modtime):
9441         * keymap.c (event_matches_key_specifier_p):
9442         Initialize GCPROed variable.
9443
9444         * menubar-x.c (command_builder_find_menu_accelerator):
9445         Initialize before use.
9446
9447 2000-11-23  Andy Piper  <andy@xemacs.org>
9448
9449         * unexcw.c (unexec): make the resulting executable executable.
9450
9451 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9452
9453         * doc.c (get_doc_string):
9454         Use size_t, not int, for result of XSTRING_LENGTH.
9455
9456         * cmds.c (Fdelete_char):
9457         * cmds.c (Fpoint_at_eol):
9458         * cmds.c (Fself_insert_command):
9459         Use EMACS_INT, not int, for result of XINT.
9460         Someday, someone will want to insert more than 2**31 identical characters.
9461
9462         * cmds.c (Fdelete_char):
9463         * cmds.c (Fdelete_backward_char):
9464         * syntax.c (Fforward_word):
9465         * syntax.c (Fforward_comment):
9466         Make COUNT argument optional, for consistency with forward-char et al.
9467
9468 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9469
9470         * lisp.h:
9471         * print.c (long_to_string):
9472         Return a useful value: the pointer at end of data written.
9473
9474         * doprnt.c:
9475         Use `static const char * const' for constant strings.
9476         (union printf_arg): Delete `i', `ui' members.
9477         (get_doprnt_args):
9478         (emacs_doprnt_1):
9479         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9480         Do all printf-ing via the `l' specifier.
9481         Use EMACS_INT instead of int.
9482         Optimize.
9483
9484 2000-11-20  Didier Verna  <didier@xemacs.org>
9485
9486         * faces.c (update_face_cachel_data): don't frob the background
9487         pixmap when the window is being created. The face is needed but
9488         does not exist yet.
9489
9490 2000-11-20  Andy Piper  <andy@xemacs.org>
9491
9492         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9493         messing with a debug environment.
9494
9495 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9496
9497         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9498
9499 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9500
9501         * casetab.c (Fcase_table_p): Fix compile error and crash.
9502
9503 2000-11-18  Philip Aston  <philipa@mail.com>
9504
9505         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9506
9507 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9508
9509         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9510         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9511
9512 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9513
9514         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9515         * unexelf.c: Use HAVE_ELF_H.
9516         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9517         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9518         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9519         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9520         for testing.
9521         So this is an unexelfsgi.c from a different line of development.
9522
9523 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9524
9525         * regex.c (RE_TR_ASCII): New function.
9526         (RE_TRANSLATE): Call it.
9527
9528 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9529
9530         * buffer.h (TRT_TABLE_OF): Remove assert.
9531         (IN_TRT_TABLE_DOMAIN): Removed.
9532
9533 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9534
9535         * free-hook.c (log_gcpro):
9536         (show_gcprohist): Add support for GCPRO5.
9537
9538 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9539
9540         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9541
9542 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9543
9544         * symeval.h: Declare flush_all_buffer_local_cache.
9545
9546         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9547         (flush_buffer_local_cache): Added.
9548         (flush_all_buffer_local_cache): Added.
9549
9550         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9551
9552         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9553         (pdump_dump_data): Ditto.
9554         (pdump_reloc_one): Ditto.
9555         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9556         before dumping.
9557
9558
9559 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9560
9561         * buffer.c: Remove if 0'ed entry.
9562         * buffer.h: Rewrite TRT to use char-table.
9563         * bufslots.h: Remove mirror tables.
9564         * casetab.c: Remove mirror tables.
9565         (CASE_TABLE_P): New macro.
9566         (Fcase_table_p): Element of a case table is string or char-table.
9567         (make_mirror_trt_table): Removed.
9568         (set_case_table): Setup char-table from strings for backward
9569         compatibility.
9570         * dired.c (Fdirectory_files):
9571         * dired-msw.c: (mswindows_get_files):
9572         * lisp.h: Change prototype of re_pattern_buffer.
9573         * regex.c: (RE_TRANSLATE): New macro.
9574         (TRANSLATE_P): Ditto.
9575         Change translate to type RE_TRANSLATE_TYPE.
9576         * regex.h: Define RE_TRANSLATE_TYPE
9577         * search.c (TRANSLATE): New macro.
9578         (TRANSLATE_ASCII): New macro.
9579         Translate table is changed to Lisp_Object.
9580         (signal_failure): Inhibit return.
9581
9582 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9583
9584         * device-msw.c:
9585         * eldap.c:
9586         * event-Xt.c:
9587         * event-stream.c:
9588         * print.c:
9589         Do UNGCPRO before return.
9590
9591 2000-11-14  Martin Buchholz <martin@xemacs.org>
9592
9593         * XEmacs 21.2.37 is released.
9594
9595 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9596
9597         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9598         Add comments about discarded return value.
9599
9600 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9601
9602         * callint.c:
9603         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9604
9605 2000-10-27  Andy Piper  <andy@xemacs.org>
9606
9607         * gutter.c (Fset_default_gutter_position): default left and right
9608         gutters to visible.
9609         (calculate_gutter_size): calculate resonable heuristic for left
9610         and right gutter sizes.
9611         (specifier_vars_of_gutter): change left and right gutter sizes to
9612         autodetect.
9613         (calculate_gutter_size_from_display_lines): new function.
9614         (output_gutter): check for resizing on left and right gutters.
9615         (clear_gutter): don't special case top and left gutters.
9616         (specifier_vars_of_gutter): use new signature for
9617         set_specifier_caching.
9618
9619         * glyphs-x.c (x_redisplay_widget): spelling fix.
9620         * glyphs.c (specifier_vars_of_glyphs):
9621         * menubar.c (specifier_vars_of_menubar):
9622         * redisplay.c (specifier_vars_of_redisplay):
9623         * toolbar.c (specifier_vars_of_toolbar):
9624         * window.c (specifier_vars_of_window):
9625         * scrollbar.c (specifier_vars_of_scrollbar):
9626         (complex_vars_of_scrollbar): use new signature for
9627         set_specifier_caching.
9628
9629         * specifier.c (set_specifier_caching): include recompute flag.
9630         (recompute_one_cached_specifier_in_window): always recompute if
9631         flag set.
9632         (recompute_one_cached_specifier_in_frame): ditto.
9633
9634         * specifier.h (struct specifier_caching): add recompute flag.
9635
9636 2000-10-24  Andy Piper  <andy@xemacs.org>
9637
9638         * unexcw.c (copy_executable_and_dump_data_section): add new
9639         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9640         5.0 happy.
9641
9642 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9643
9644         * console-x.h (x_device): New member modifier_release_time.
9645         * event-Xt.c (x_handle_sticky_modifiers):
9646         Bound interval modifier keys are sticky.
9647         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9648         * events.h: extern it.
9649
9650 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9651
9652         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9653
9654 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9655
9656         * event-stream.c (execute_command_event): Preserve current_events
9657         and the like when event is misc-user-event.
9658         Inhibit quit during the call to maybe_echo_keys.
9659
9660 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9661
9662         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9663         symlink when buffer is killed.
9664         (inhibit_clash_detection): New variable.
9665
9666 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9667
9668         * console.c (Fset_input_method): Trigger redisplay on tty.
9669
9670 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9671
9672         * process.c (Fprocess_status): Revert to previous behavior:
9673         (process-status "nosuchprocess") ==> nil
9674
9675 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9676
9677         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9678         Work around another GCC 2.95.2 optimizer bug.
9679
9680 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9681
9682         * process.c (Fget_process): Use LIST_LOOP_2.
9683         (kill_buffer_processes): Use LIST_LOOP_2.
9684
9685         * minibuf.c (Fall_completions):
9686         Delete old non-functional code for FSF fourth argument.
9687
9688         * frame.c (frame_matches_frame_spec):
9689         Renamed from `frame_matches_frametype'.  Update all callers.
9690         (device_matches_device_spec):
9691         Renamed from 'device_matches_console_spec'.  Update all callers.
9692
9693         * doc.c (Fsubstitute_command_keys):
9694         Remove buffer overflow crash.  Small code cleanups.
9695
9696         * casetab.c (check_case_table): Simpler code.
9697
9698         * window.c (Freplace_buffer_in_windows):
9699         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9700         (and similar implementation) as Fdelete_windows_on.
9701         Update all callers.
9702
9703         * alloc.c (Fmake_list):
9704         * alloc.c (make_vector):
9705         * alloc.c (Fmake_vector):
9706         * alloc.c (make_bit_vector):
9707         * alloc.c (Fmake_bit_vector):
9708         * alloc.c (Fbit_vector):
9709         * alloc.c (Fmake_string):
9710         * alloc.c (Fpurecopy):
9711         * alloc.c (Fmemory_limit):
9712         * buffer.c:
9713         * buffer.c (Fget_buffer):
9714         * buffer.c (Fkill_buffer):
9715         * buffer.c (complex_vars_of_buffer):
9716         * bytecode.c (Fcompiled_function_stack_depth):
9717         * callint.c (Fprefix_numeric_value):
9718         * event-stream.c:
9719         * event-stream.c (Fread_key_sequence):
9720         * casetab.c:
9721         * casetab.c (Fcase_table_p):
9722         * casetab.c (check_case_table):
9723         * casetab.c (Fset_case_table):
9724         * casetab.c (Fset_standard_case_table):
9725         * chartab.c:
9726         * chartab.c (Fchar_table_type):
9727         * chartab.c (Freset_char_table):
9728         * chartab.c (Fget_char_table):
9729         * chartab.c (Fget_range_char_table):
9730         * chartab.c (Fput_char_table):
9731         * chartab.c (Fmap_char_table):
9732         * chartab.c (Fcategory_table_p):
9733         * chartab.c (Fcheck_category_at):
9734         * chartab.c (Fchar_in_category_p):
9735         * chartab.c (Fcategory_table):
9736         * chartab.c (Fcopy_category_table):
9737         * chartab.c (Fset_category_table):
9738         * chartab.c (Fcategory_designator_p):
9739         * chartab.c (Fcategory_table_value_p):
9740         * cmds.c (Fdelete_char):
9741         * cmds.c (Fdelete_backward_char):
9742         * cmds.c (Fself_insert_command):
9743         * cmds.c (Fself_insert_internal):
9744         * console.c (Fvalid_console_type_p):
9745         * console.c (Fcdfw_console):
9746         * console.c (Fconsole_type):
9747         * console.c (Fconsole_name):
9748         * console.c (Fconsole_device_list):
9749         * console.c (Fconsole_on_window_system_p):
9750         * data.c:
9751         * data.c (Feq):
9752         * data.c (Fold_eq):
9753         * data.c (Fsubr_interactive):
9754         * data.c (Fchar_to_int):
9755         * data.c (Fint_to_char):
9756         * data.c (Fsetcar):
9757         * data.c (Fsetcdr):
9758         * data.c (Fnumber_to_string):
9759         * data.c (Fstring_to_number):
9760         * data.c (Frem):
9761         * database.c (mark_database):
9762         * database.c (finalize_database):
9763         * database.c (Fdatabase_live_p):
9764         * database.c (Fdatabasep):
9765         * device-x.c (Fx_get_resource):
9766         * device.c (Fdfw_device):
9767         * dired.c:
9768         * dired.c (Ffile_name_completion):
9769         * dired.c (Ffile_name_all_completions):
9770         * dired.c (Fuser_name_completion):
9771         * dired.c (Fuser_name_completion_1):
9772         * dired.c (Fuser_name_all_completions):
9773         * doc.c (Fdocumentation):
9774         * doc.c (Fdocumentation_property):
9775         * doc.c (Fsubstitute_command_keys):
9776         * editfns.c:
9777         * editfns.c (Fchar_to_string):
9778         * editfns.c (Fstring_to_char):
9779         * editfns.c (Ftemp_directory):
9780         * editfns.c (Finsert_char):
9781         * editfns.c (Fbuffer_substring_no_properties):
9782         * editfns.c (Fnarrow_to_region):
9783         * editfns.c (Fchar_equal):
9784         * editfns.c (Fchar_Equal):
9785         * editfns.c (Ftranspose_regions):
9786         * emacs.c (Fdump_emacs):
9787         * eval.c (Fthrow):
9788         * eval.c (Fcommand_execute):
9789         * eval.c (Fautoload):
9790         * eval.c (Fbacktrace):
9791         * eval.c (Fbacktrace_frame):
9792         * events.c:
9793         * events.c (Fcopy_event):
9794         * events.c (Fcharacter_to_event):
9795         * events.c (Fevent_button):
9796         * events.c (Fevent_process):
9797         * extents.c:
9798         * extents.c (Fnext_extent_change):
9799         * extents.c (Fextent_property):
9800         * faces.c (Ffacep):
9801         * faces.c (Fmake_face):
9802         * file-coding.c:
9803         * file-coding.c (Fencode_shift_jis_char):
9804         * file-coding.c (Fencode_big5_char):
9805         * fileio.c (Ffile_name_directory):
9806         * fileio.c (Ffile_name_nondirectory):
9807         * fileio.c (Ffile_name_as_directory):
9808         * fileio.c (Fdirectory_file_name):
9809         * fileio.c (Ffile_truename):
9810         * fileio.c (Fsubstitute_in_file_name):
9811         * fileio.c (Ffile_modes):
9812         * fileio.c (Fset_file_modes):
9813         * fileio.c (Fset_default_file_modes):
9814         * fileio.c (Fverify_visited_file_modtime):
9815         * floatfns.c (Facos):
9816         * floatfns.c (Fasin):
9817         * floatfns.c (Fatan):
9818         * floatfns.c (Fcos):
9819         * floatfns.c (Fsin):
9820         * floatfns.c (Ftan):
9821         * floatfns.c (Fbessel_j0):
9822         * floatfns.c (Fbessel_j1):
9823         * floatfns.c (Fbessel_jn):
9824         * floatfns.c (Fbessel_y0):
9825         * floatfns.c (Fbessel_y1):
9826         * floatfns.c (Fbessel_yn):
9827         * floatfns.c (Ferf):
9828         * floatfns.c (Ferfc):
9829         * floatfns.c (Flog_gamma):
9830         * floatfns.c (Fexp):
9831         * floatfns.c (Fexpt):
9832         * floatfns.c (Flog):
9833         * floatfns.c (Flog10):
9834         * floatfns.c (Fsqrt):
9835         * floatfns.c (Fcube_root):
9836         * floatfns.c (Facosh):
9837         * floatfns.c (Fasinh):
9838         * floatfns.c (Fatanh):
9839         * floatfns.c (Fcosh):
9840         * floatfns.c (Fsinh):
9841         * floatfns.c (Ftanh):
9842         * floatfns.c (Fabs):
9843         * floatfns.c (Ffloat):
9844         * floatfns.c (Flogb):
9845         * floatfns.c (Fceiling):
9846         * floatfns.c (Ffloor):
9847         * floatfns.c (Fround):
9848         * floatfns.c (Ftruncate):
9849         * floatfns.c (Ffceiling):
9850         * floatfns.c (Fffloor):
9851         * floatfns.c (Ffround):
9852         * floatfns.c (Fftruncate):
9853         * fns.c (Fstring_equal):
9854         * fns.c (Fstring_lessp):
9855         * fns.c (concat2):
9856         * fns.c (concat3):
9857         * fns.c (vconcat2):
9858         * fns.c (vconcat3):
9859         * fns.c (Fsubstring):
9860         * fns.c (Fassoc):
9861         * fns.c (Fold_assoc):
9862         * fns.c (assoc_no_quit):
9863         * fns.c (Fassq):
9864         * fns.c (Fold_assq):
9865         * fns.c (assq_no_quit):
9866         * fns.c (Frassoc):
9867         * fns.c (Fold_rassoc):
9868         * fns.c (Frassq):
9869         * fns.c (Fold_rassq):
9870         * fns.c (rassq_no_quit):
9871         * fns.c (Fremassoc):
9872         * fns.c (remassoc_no_quit):
9873         * fns.c (Fremassq):
9874         * fns.c (remassq_no_quit):
9875         * fns.c (Fremrassoc):
9876         * fns.c (Fremrassq):
9877         * fns.c (remrassq_no_quit):
9878         * fns.c (Fsort):
9879         * fns.c (Fplist_get):
9880         * fns.c (Fplist_put):
9881         * fns.c (Fplist_remprop):
9882         * fns.c (Fplist_member):
9883         * fns.c (Flax_plist_get):
9884         * fns.c (Flax_plist_put):
9885         * fns.c (Flax_plist_remprop):
9886         * fns.c (Flax_plist_member):
9887         * fns.c (Fequal):
9888         * fns.c (Fold_equal):
9889         * fns.c (Frequire):
9890         * fns.c (Fbase64_encode_region):
9891         * fns.c (Fbase64_encode_string):
9892         * fns.c (Fbase64_decode_region):
9893         * frame.c:
9894         * frame.c (frame_matches_frame_spec):
9895         * frame.c (device_matches_device_spec):
9896         * frame.c (next_frame):
9897         * frame.c (previous_frame):
9898         * frame.c (Fnext_frame):
9899         * frame.c (Fprevious_frame):
9900         * frame.c (Fframe_property):
9901         * frame.c (Fset_frame_height):
9902         * frame.c (Fset_frame_size):
9903         * frame.h:
9904         * glyphs.c:
9905         * glyphs.c (if):
9906         * glyphs.c (decode_error_behavior_flag):
9907         * glyphs.c (Fmake_image_instance):
9908         * indent.c (Findent_to):
9909         * intl.c (Fignore_defer_gettext):
9910         * keymap.c (Fkeymapp):
9911         * keymap.c (Flookup_key):
9912         * lread.c:
9913         * lread.c (Fload_internal):
9914         * lread.c (Feval_buffer):
9915         * lread.c (Feval_region):
9916         * macros.c (Fexecute_kbd_macro):
9917         * marker.c (set_marker_internal):
9918         * marker.c (Fset_marker):
9919         * marker.c (set_marker_restricted):
9920         * marker.c (Fcopy_marker):
9921         * marker.c (noseeum_copy_marker):
9922         * menubar.c:
9923         * menubar.c (Fpopup_menu):
9924         * minibuf.c:
9925         * mule-charset.c (Fcharset_name):
9926         * mule-charset.c (Fchar_charset):
9927         * mule-charset.c (Fchar_octet):
9928         * mule-charset.c (Fsplit_char):
9929         * mule-wnnfns.c (Fwnn_open):
9930         * mule-wnnfns.c (Fwnn_dict_comment):
9931         * mule-wnnfns.c (Fwnn_quit_henkan):
9932         * mule-wnnfns.c (Fwnn_word_toroku):
9933         * mule-wnnfns.c (Fwnn_word_sakujo):
9934         * mule-wnnfns.c (Fwnn_word_use):
9935         * mule-wnnfns.c (Fwnn_hindo_set):
9936         * objects.c:
9937         * objects.c (Fmake_color_instance):
9938         * objects.c (Fmake_font_instance):
9939         * print.c (Fwrite_char):
9940         * process.c:
9941         * process.c (mark_process):
9942         * process.c (print_process):
9943         * process.c (get_process_from_usid):
9944         * process.c (Fprocessp):
9945         * process.c (Fprocess_live_p):
9946         * process.c (Fget_process):
9947         * process.c (Fget_buffer_process):
9948         * process.c (get_process):
9949         * process.c (Fprocess_id):
9950         * process.c (Fprocess_name):
9951         * process.c (Fprocess_command):
9952         * process.c (init_process_io_handles):
9953         * process.c (start_process_unwind):
9954         * process.c (Fstart_process_internal):
9955         * process.c (Fopen_multicast_group_internal):
9956         * process.c (Fset_process_window_size):
9957         * process.c (read_process_output):
9958         * process.c (send_process):
9959         * process.c (Fprocess_tty_name):
9960         * process.c (Fset_process_buffer):
9961         * process.c (Fprocess_buffer):
9962         * process.c (Fprocess_mark):
9963         * process.c (set_process_filter):
9964         * process.c (Fset_process_filter):
9965         * process.c (Fprocess_filter):
9966         * process.c (Fprocess_send_region):
9967         * process.c (Fprocess_send_string):
9968         * process.c (exec_sentinel):
9969         * process.c (Fset_process_sentinel):
9970         * process.c (Fprocess_sentinel):
9971         * process.c (status_notify):
9972         * process.c (Fprocess_status):
9973         * process.c (Fprocess_exit_status):
9974         * process.c (process_send_signal):
9975         * process.c (Fprocess_send_eof):
9976         * process.c (deactivate_process):
9977         * process.c (remove_process):
9978         * process.c (Fdelete_process):
9979         * process.c (kill_buffer_processes):
9980         * process.c (Fprocess_kill_without_query):
9981         * process.c (Fprocess_kill_without_query_p):
9982         * rangetab.c:
9983         * rangetab.c (Fget_range_table):
9984         * rangetab.c (Fput_range_table):
9985         * rangetab.c (Fremove_range_table):
9986         * rangetab.c (Fclear_range_table):
9987         * search.c:
9988         * search.c (Fskip_chars_forward):
9989         * search.c (Fskip_chars_backward):
9990         * search.c (Fskip_syntax_forward):
9991         * search.c (Fskip_syntax_backward):
9992         * search.c (search_command):
9993         * search.c (Freplace_match):
9994         * search.c (Fregexp_quote):
9995         * select.c (Fown_selection_internal):
9996         * select.c (Fselection_owner_p):
9997         * select.c (Fselection_exists_p):
9998         * select.c (Fget_selection_internal):
9999         * specifier.c:
10000         * symbols.c:
10001         * symbols.c (Fintern):
10002         * symbols.c (Fintern_soft):
10003         * symbols.c (Funintern):
10004         * symbols.c (Fapropos_internal):
10005         * symbols.c (Fset_default):
10006         * syntax.c:
10007         * syntax.c (Fsyntax_table_p):
10008         * syntax.c (Fcopy_syntax_table):
10009         * syntax.c (Fset_syntax_table):
10010         * syntax.c (Fchar_syntax):
10011         * syntax.c (syntax_match):
10012         * syntax.c (Fmatching_paren):
10013         * syntax.c (Fforward_word):
10014         * syntax.c (scan_lists):
10015         * syntax.c (Fscan_lists):
10016         * syntax.c (Fscan_sexps):
10017         * syntax.c (Fparse_partial_sexp):
10018         * toolbar.c (Fcheck_toolbar_button_syntax):
10019         * tooltalk.doc:
10020         * window.c:
10021         * window.c (Fwindowp):
10022         * window.c (Fwindow_live_p):
10023         * window.c (Fwindow_point):
10024         * window.c (Fdelete_window):
10025         * window.c (Fnext_window):
10026         * window.c (Fprevious_window):
10027         * window.c (Fother_window):
10028         * window.c (window_loop):
10029         * window.c (Fget_lru_window):
10030         * window.c (Fsplit_window):
10031         * window.c (Fenlarge_window):
10032         * window.c (Fenlarge_window_pixels):
10033         * window.c (Fshrink_window):
10034         * window.c (Fshrink_window_pixels):
10035         * window.c (change_window_height):
10036         * window.c (Fwindow_configuration_p):
10037         * window.c (Fcurrent_window_configuration):
10038         * window.h:
10039         * casefiddle.c (casify_object):
10040         * casefiddle.c (Fupcase):
10041         * casefiddle.c (Fdowncase):
10042         * casefiddle.c (Fcapitalize):
10043         * casefiddle.c (Fupcase_initials):
10044         * casefiddle.c (casify_region_internal):
10045         * casefiddle.c (casify_region):
10046         * casefiddle.c (Fupcase_region):
10047         * casefiddle.c (Fdowncase_region):
10048         * casefiddle.c (Fcapitalize_region):
10049         * casefiddle.c (Fupcase_initials_region):
10050         * casefiddle.c (Fupcase_word):
10051         * casefiddle.c (Fdowncase_word):
10052         * casefiddle.c (Fcapitalize_word):
10053         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10054         Replace 0 with '\0' when working with bytes.
10055         Replace initial "(" with "\(" in docstrings.
10056
10057 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10058
10059         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10060
10061         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10062
10063 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10064
10065         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10066
10067 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10068
10069         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10070         correctly.
10071
10072 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10073
10074         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10075         (inhibit_auto_save_session): New variable.
10076         (vars_of_fileio): Declare and initialize them.
10077         * fileio.c (Fdo_auto_save): Don't create session file if
10078         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10079
10080 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10081
10082         * sgiplay.c (play_internal): C++ compilability.
10083         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10084         * callproc.c (Fold_call_process_internal):
10085         Remove unused vars `env', `first'.
10086         * scrollbar.c (update_scrollbar_instance):
10087         #### unused var `current_window'.
10088         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10089         etc. within #ifdef NOT_YET.
10090         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10091         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10092         * specifier.c (specifier_instance):
10093         #### unused var `tag'.
10094         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10095
10096 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10097
10098         * fns.c (Fbutlast):
10099         * fns.c (list_sort):
10100         * fns.c (Ffillarray):
10101         * fns.c (bytecode_nconc2):
10102         * fns.c (Fnconc):
10103         * fns.c (mapcar1):
10104         * fns.c (Fmapconcat):
10105         Be pedantically 64-bit correct.  For the time when someone will
10106         want to have a list with length > 2**32.
10107
10108         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10109         Work around MIPSpro compiler bug.
10110
10111         * process-unix.c (unix_kill_child_process): Add snarky comment.
10112         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10113
10114         * config.h.in: Oops, _getpt ==> _getpty
10115
10116 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10117
10118         * config.h.in:
10119         * regex.c:
10120         Use void*, not char*, as return type of alloca().
10121
10122         * alloc.c (free_marker): Side effect inside assert expression!
10123
10124 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10125
10126         * mule-charset.c (Fset_charset_ccl_program): To check
10127         if the given ccl program is valid, use setup_ccl_program()
10128         instead of CHECK_VECTOR().
10129         (Fmake_charset): Likewise.
10130
10131 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10132
10133         * faces.c (get_extent_fragment_face_cache_index):
10134         Fix cachel.merged_faces memory leak.
10135
10136 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10137
10138         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10139         Reset MSB of octets obtained by DECODE_SJIS
10140         because of the incompatibility with Emacs.
10141         (ccl_driver)<CCL_ENCODE_SJIS>:
10142         Set MSB of octets before passing them to
10143         ENCODE_SJIS because of the incompatibility
10144         with Emacs.
10145
10146 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10147
10148         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10149         (DECLARE_LRECORD): Undo the last change.
10150         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10151
10152 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10153
10154         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10155         the implementation to lrecord_implementations_table.
10156
10157 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10158
10159         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10160         initial value of `lrecord_type_##c_name' and
10161         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10162         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10163         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10164         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10165         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10166
10167 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10168
10169         * miscplay.c (sndcnv8S_2mono):
10170         (sndcnv2monounsigned):
10171         (sndcnvULaw_2linear):
10172         (sndcnv16swap):
10173         Remove implementation-defined behavior.
10174
10175 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10176
10177         * input-method-xlib.c: Warning suppression.
10178
10179 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10180
10181         * mule-ccl.c: Sync up with Emacs 21.0.90.
10182         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10183         Do nothing.
10184         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10185         Likewise.
10186         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10187         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10188         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10189         leading char belongs to official 2-dimensional charset.
10190         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10191         write the given character as is.  Otherwise,
10192         if it is a multibyte char, convert it by
10193         non_ascii_set_charptr_emchar, then write it.
10194         (CCL_WRITE_STRING): Likewise.
10195         (ccl_get_compiled_code): New function.
10196         (setup_ccl_program): When ccl_prog is invalid,
10197         return -1.
10198         (Fregister_code_conversion_map): New function.
10199         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10200
10201         * mule-ccl.h: Sync up with Emacs 21.0.90.
10202         (Fregister_ccl_program): export it.
10203
10204         * redisplay-msw.c (separate_textual_runs):
10205         If ccl program is not valid, don't do ccl conversion.
10206
10207         * redisplay-x.c (separate_textual_runs): Ditto.
10208
10209         * file-coding.c (Fmake_coding_system):
10210         When type is ccl and value is vector, register it
10211         with a proper symbol.  And checks whether the
10212         given ccl program is valid.
10213         (mule_decode): When calling ccl_driver, if src indicates
10214         NULL pointer, set an empty string instead.
10215         (mule_encode): Likewise.
10216
10217 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10218
10219         The following large batch of changes gets us back to a state of
10220         C++ compilability.  Extbyte is now a char, which means that
10221         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10222
10223         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10224
10225         * sound.c (Fplay_sound): Type correctness.
10226
10227         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10228         (x_get_window_property): Type correctness.
10229         (receive_incremental_selection): unsigned char ==> Extbyte
10230         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10231         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10232         (Fx_store_cutbuffer_internal): Type correctness.
10233
10234         * process-unix.c (try_to_initialize_subtty): Type correctness.
10235
10236         * objects-x.c (x_print_color_instance): Type correctness.
10237         (x_print_font_instance): Type correctness.
10238         (x_list_fonts): SExtbyte ==> Extbyte.
10239         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10240         (x_find_charset_font): SExtbyte ==> Extbyte.
10241         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10242         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10243         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10244         Use bufbyte_strcmp.
10245
10246         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10247         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10248         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10249         (BYTE_C0_P): Use bit ops for char-signedness safety.
10250         (BYTE_C1_P): Use bit ops for char-signedness safety.
10251         (CHARSET_BY_LEADING_BYTE):
10252         (CHARSET_BY_ATTRIBUTES):
10253         Always use inline function.
10254         Use type_checking_assert.
10255         Hide chlook.
10256
10257         * mule-charset.c (non_ascii_charptr_copy_char):
10258         Modify to work with both ASCII and non-ASCII characters.
10259         Improve docs and variable names.
10260         Replace over-clever fall-through switch with a simple loop.
10261         (Lstream_get_emchar_1):
10262         Replace over-clever fall-through switch with a simple loop.
10263
10264         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10265         Warning suppression.
10266
10267         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10268         the return value of Lstream_getc, which could be EOF as well.
10269
10270         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10271
10272         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10273         APIs can be used on Extbytes without casts.  Risky!
10274         (SExtbyte): Remove.
10275         (UExtbyte): Remove.
10276
10277         * input-method-xlib.c (XIM_init_device):
10278         Use Xlib.h instead of IntrinsicP.h.
10279         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10280         which will break in X11R7.
10281         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10282         to call XRegisterIMInstantiateCallback with correct types.
10283
10284         * gui-x.c (button_item_to_widget_value): Type correctness.
10285
10286         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10287
10288         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10289         (xbm_instantiate_1): Type correctness.
10290         (BUILD_GLYPH_INST):  Type correctness.
10291
10292         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10293
10294         * file-coding.c:
10295         (decode_coding_sjis):
10296         (decode_coding_big5):
10297         (decode_coding_ucs4):
10298         (decode_coding_utf8):
10299         (decode_coding_iso2022):
10300         (decode_coding_no_conversion):
10301         Make all decoding functions take an Extbyte * arg.
10302         (encode_coding_sjis):
10303         (encode_coding_big5):
10304         (encode_coding_ucs4):
10305         (encode_coding_utf8):
10306         (encode_coding_iso2022):
10307         (encode_coding_no_conversion):
10308         Make all encoding functions take a Bufbyte * arg.
10309         Use size_t instead of unsigned int for memory sizes.
10310         Only cast to unsigned char whenever dereferencing Extbyte *.
10311
10312         * doc.c (unparesseuxify_doc_string): Type correctness.
10313
10314         * console-x.c (split_up_display_spec):
10315         Rewrite without using details of internal string representation.
10316         (x_semi_canonicalize_device_connection): Type correctness.
10317
10318         * config.h.in:
10319         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10320         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10321         (HAVE_XFREE386): Removed.
10322
10323         * buffer.h (DEC_CHARPTR): `const' correctness.
10324         (bufbyte_strcmp): New.
10325         (bufbyte_memcmp): New.
10326
10327         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10328
10329         * buffer.h (XCHAR_OR_CHAR_INT):
10330         Always use inline function.
10331         Remove redundant type checking assert() - XINT will abort quite nicely.
10332
10333 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10334
10335         * search.c (Freplace_match): Set newtext to an empty string.
10336
10337 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10338
10339         * s/decosf1-3.h: Remove #include of stropts.h
10340         * s/ptx.h: Remove #include of stropts.h
10341         * s/usg5-4.h: Remove #include of stropts.h
10342         * sysproc.h:
10343         * config.h.in:
10344         Use stropts.h, not sys/stropts.h.
10345         Use strtio.h, not sys/strtio.h.
10346
10347 2000-10-04  Martin Buchholz <martin@xemacs.org>
10348
10349         * XEmacs 21.2.36 is released.
10350
10351 2000-09-21  Andy Piper  <andy@xemacs.org>
10352
10353         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10354         changes still involve copying the widget tree.
10355         (update_widget_face): make sure a change is register in the widget
10356         tree. Call update_tab_widget_face appropriately.
10357         (update_tab_widget_face): ditto.
10358         (x_tab_control_redisplay): make sure non-structural changes still
10359         involve copying the widget tree.
10360
10361 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10362
10363         * lread.c (locate_file): Check the path element is non-nil.
10364
10365 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10366
10367         * lisp.h: Warning suppression for SCO compilers.
10368
10369         * redisplay-tty.c (reset_tty_modes): Fix crash.
10370         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10371
10372 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10373
10374         Big signal/process handling overhaul.  Bugs fixed:
10375         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10376         M-x comint-kill-subjob should work for both values nil and t of
10377         process-connection-type. It was broken on most platforms.
10378         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10379         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10380         * process-unix.c: Signal/Process handling overhaul.
10381         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10382         (allocate_pty): Use all available modern methods of allocating
10383         ptys, falling back to old style BSD allocation as a last resort.
10384         Use allegedly more secure Unix98 pty allocation by default.
10385         (allocate_pty_the_old_fashioned_way): New. the last resort.
10386         (unix_create_process): Push ptem, ldterm, ttcompat where
10387         available.  Autoconfiscate.
10388         (try_to_initialize_subtty): New.
10389         (unix_kill_child_process): Proper signal handling for ptys on most
10390         platforms, using special knowledge of AIX, BSD, etc...
10391         (unix_create_process): Always disconnect_controlling_terminal() for
10392         subprocesses, whether using ptys or not.
10393         * process.h: Remove old getpt-dependent PTY code.
10394         * process.c (Fprocess_send_signal): New, obvious generic function.
10395         (decode_signal): New.
10396         (Finterrupt_process):
10397         (Fkill_process):
10398         (Fquit_process):
10399         (Fstop_process):
10400         (Fcontinue_process):
10401         (Fsignal_process): Use decode_signal.
10402         (process_send_signal):
10403         Many docstring corrections.
10404         Allow any signal to be sent to a process object.
10405         * config.h.in: Add symbols for big signal/process overhaul.
10406         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10407         * sysproc.h: Include process-related headers, where available:
10408         sys/stropts.h sys/strtio.h pty.h libutil.h
10409         * s/irix4-0.h:
10410         * s/irix5-0.h:
10411         * s/cygwin32.h:
10412         * s/gnu.h:
10413         * s/linux.h:
10414         * s/hpux.h:
10415         * s/aix3-1.h:
10416         Remove old S&M pty stuff.
10417         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10418         * systty.h: Simplify cpp hackery, improve comments.
10419         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10420
10421         * editfns.c (Fformat_time_string):
10422         Be a little more paranoid with the return value of ctime.
10423
10424         * fileio.c (check_executable):
10425         (check_writable):
10426         Use symbolic constants X_OK, W_OK.
10427
10428         * console-x.c (split_up_display_spec): Fix a warning.
10429
10430 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10431
10432         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10433         * ntproc.c (sys_spawnve): make_string ==> build_string
10434         Small clarity improvements.
10435
10436 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10437
10438         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10439
10440         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10441
10442         * config.h.in (HAVE_STRCASECMP): Remove.
10443
10444 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10445
10446         * redisplay-output.c (redisplay_output_pixmap):
10447         Cleaner and possibly more 64-bit correct code.
10448
10449 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10450
10451         * dumper.c (pdump_load_finish): move restoration of
10452         `noninteractive1' to emacs.c (main_1).
10453         * emacs.c (main_1): protect LISP-visible command-line flags
10454         from pdump_load().
10455
10456 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10457
10458         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10459         DUMP_TARGET instead of literal program names.
10460
10461 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10462
10463         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10464
10465 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10466
10467         * *: Spelling mega-patch
10468
10469 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10470
10471         * fns.c (bad_bad_turtle):
10472         Delete "Eek!" comment, since we fixed the bug to which it refers.
10473
10474 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10475
10476         * alloca.c: Replace REGISTER with register.
10477
10478 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10479
10480         * file-coding.c (ucs_to_char): Use countof.
10481
10482 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10483
10484         * file-coding.c: (ucs_to_char):
10485         (complex_vars_of_file_coding):
10486         Use countof instead of sizeof.
10487         Use CHECK_NATNUM instead of CHECK_INT.
10488
10489         * sysdep.c (strcasecmp): Remove.
10490         * device-x.c (ascii_strcasecmp): New.
10491         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10492         Avoid using non-standard non-portable strcasecmp.
10493
10494 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10495
10496         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10497         * font-lock.c: remove reference to emacsfns.h.
10498         * search.c: small doc improvement.
10499         * event-Xt.c: correct file names in comments.
10500         * console-x.h Correct file names in comments.
10501         * frame.c: Correct file names in comments.
10502         * event-stream.c: remove Energize from comments.
10503
10504 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10505
10506         * symeval.h (DEFERROR_STANDARD):
10507         (DEFERROR):
10508         (DEFSYMBOL):
10509         (DEFSYMBOL_NO_DUMP):
10510         (DEFSYMBOL_MULTIWORD_PREDICATE):
10511         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10512         (DEFKEYWORD):
10513         The construct &##name is not sensible C.
10514         Fixes compilation errors with Unixware native compiler.
10515
10516 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10517
10518         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10519         (next_frame_internal): Removed.  We now just have next_frame.
10520         (next_frame):
10521         Write a simpler and cleaner one-pass algorithm.
10522         Remove called_from_delete_device arg and #ifdefed-out code.
10523         (previous_frame):
10524         Renamed from prev_frame.  Update callers.
10525         Cleaned up to have an analogous implementation to next_frame.
10526         (other_visible_frames_internal): Remove the
10527         called_from_delete_device bogus arg, and hence, remove this
10528         function.  Just use other_visible_frames().
10529
10530         * window.c (Fnext_window):
10531         Prettify docstring.
10532         Since next_frame() is guaranteed to return a frame, remove check
10533         for nil inserted in previous patch.
10534         (Fprevious_window):
10535         Prettify docstring.
10536         Make code look more like Fnext_window.
10537         (window_loop):
10538         Respect the `console' arg when iterating through windows.
10539         Fixes bug: (get-buffer-window buffer t device) not respecting
10540         the `device' arg.
10541         This function needs more work, as others have pointed out.
10542
10543         * frame.h: Rename prev_frame to previous_frame.
10544         device_matches_console_spec no longer takes a `frame' arg.
10545
10546         * s/gnu.h:
10547         * s/linux.h:
10548         * s/hpux.h:
10549         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10550         From "Golubev I. N." <gin@mo.msk.ru>.
10551
10552         * make-src-depend: Fix typo.
10553
10554 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10555
10556         * window.c (Fnext_window):
10557         next_frame() might return nil, not a frame.
10558         Fixes this crash:
10559         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10560
10561         * frame.c (next_frame_internal):
10562         We've passed a frame if we've passed its device.
10563         Fixes this crash:
10564         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10565 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10566
10567 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10568
10569         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10570         Allow option to suppress accelerators in menu/dialog items.
10571         (populate_or_checksum_helper): Pass dialog title through above.
10572
10573 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10574
10575         * event-msw.c (mswindows_key_to_emacs_keysym):
10576         Add "pause" key, fix "menu" key.
10577
10578 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10579
10580         * eval.c (reinit_vars_of_eval):
10581         Increase max_lisp_eval_depth to 1000,
10582         required for thai-xtis.el to byte-compile under some circumstances.
10583
10584 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10585
10586         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10587         From Kenichi Handa.
10588
10589 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10590
10591         * make-src-depend: Make the generated Makefiles smaller.
10592
10593         * s/hpux.h (SETUP_SLAVE_PTY):
10594         Provide a %d in the format string for the errno argument.
10595
10596         * editfns.c (Ftemp_directory):
10597         Warning fix.
10598         Avoid buffer overrun on very long file name.
10599
10600         * input-method-xlib.c (XIM_init_device):
10601         6th parameter of XRegisterIMInstantiateCallback has different
10602         pointer types on different OSes, so simply cast to (void *).
10603
10604         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10605
10606         * sysdll.c (dll_open):
10607         shl_load will hang hard if passed a NULL filename.
10608         Simply return NULL for compatibility with dlopen.
10609         * sysdll.c: Conform to XEmacs coding standards.
10610
10611         * sysdep.c (get_pty_max_bytes):
10612         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10613
10614 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10615
10616         * tooltalk.c: Add #include <syssignal.h>
10617
10618 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10619
10620         * s/hpux.h: Don't use undefined function sigunblock().
10621
10622 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10623
10624         * config.h.in: Add HAVE_BALLOON_HELP.
10625         * emacs.c: Use HAVE_BALLOON_HELP.
10626         * Makefile.in.in (x_objs):
10627         Make Balloon Help conditional on finding shape.h.
10628
10629 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10630
10631         * syntax.c (regex_emacs_buffer_p): New variable.
10632         * syntax.h (regex_emacs_buffer_p): extern.
10633         * search.c (looking_at_1):
10634         (string_match_1):
10635         (fast_string_match):
10636         (search_buffer): Set regex_emacs_buffer_p.
10637         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10638         when before_dot, at_dot, after_dot.
10639
10640 2000-08-23  Andy Piper  <andy@xemacs.org>
10641
10642         * gui-x.c (popup_selection_callback): Only set action_occurred
10643         when we really have an image instance.
10644         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10645
10646 2000-08-23  Andy Piper  <andy@xemacs.org>
10647
10648         * gui-msw.c (mswindows_handle_gui_wm_command): set
10649         action_occurred.
10650         * gui-x.c (popup_selection_callback): ditto.
10651
10652         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10653         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10654         (struct Lisp_Image_Instance): add action_occurred flag.
10655
10656         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10657         (image_instance_changed): ditto.
10658         (reset_frame_subwindow_instance_cache): only unmap windows - do
10659         not remove them from the cache also.
10660
10661         * glyphs-widget.c (tab_control_update): better debug.
10662         (progress_gauge_update): ditto.
10663         (layout_update): ditto.
10664         (layout_instantiate): ditto.
10665         (tab_control_order_only_changed): cope with null pending items.
10666
10667         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10668         debug. Force selection of an item when an action occurred. Cope
10669         with null pending_items.
10670         (mswindows_progress_gauge_redisplay): better debug.
10671         * glyphs-x.c (x_tab_control_redisplay): ditto.
10672
10673         * redisplay.c (redisplay_frame): reset the frame cache if the
10674         frame is garbaged.
10675
10676         * window.c (Fset_window_configuration): potentially re-enable
10677         frame cache reset.
10678         (window_unmap_subwindows): need to finalize instances here since
10679         it is only used in mark_window_as_deleted.
10680
10681 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10682
10683         * nas.c (SndOpenDataForReading):
10684         nas.c (WaveOpenDataForReading):
10685         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10686         Somehow escaped from the 2000-08-14 patch.
10687
10688 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10689
10690         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10691         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10692
10693 2000-08-21  Andy Piper  <andy@xemacs.org>
10694
10695         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10696         window if it is not already displayed.
10697
10698         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10699         it is not already displayed.
10700
10701         * window.c (Fset_window_configuration): don't reset the frame
10702         cache.
10703
10704         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10705         instances from the frame cache if we are actually finalizing them.
10706         (reset_frame_subwindow_instance_cache): reset frame cache only
10707         after unmapping everything.
10708         (map_subwindow): set displayed flag after mapping.
10709
10710 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10711
10712         * data.c (indirect_function):
10713         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10714
10715         * eval.c (function_argcount):
10716         Use original function when signaling errors.
10717
10718 2000-08-18  Andy Piper  <andy@xemacs.org>
10719
10720         * frame.c (delete_frame_internal): use new
10721         free_frame_subwindow_instances name.
10722
10723         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10724         (add_tab_item): make return type correct.
10725         (mswindows_tab_control_instantiate): assert index of tab.
10726         (mswindows_tab_control_redisplay): Re-code to use
10727         gui_item_equal_sans_selected and gui_item_list_find_selected.
10728
10729         * glyphs-widget.c (tab_control_update): Correct comment.
10730
10731         * window.c (window_unmap_subwindows): use new
10732         unmap_subwindow_instance_cache_mapper.
10733         (window_unmap_subwindows_cache_mapper): deleted.
10734         (Fset_window_configuration): comparisons should now be with
10735         EQ. Preserve the subwindow instance cache across configuration
10736         changes.
10737         (allocate_window): ditto.
10738         (make_dummy_parent): ditto.
10739
10740         * glyphs.c (free_frame_subwindow_instances): rename from
10741         free_frame_subwindow_instance_cache. finalize all instances rather
10742         than just those in the display cache.
10743         (finalize_all_subwindow_instances): walk windows unmapping and
10744         finalizing subwindows.
10745         (unmap_subwindow_instance_cache_mapper): moved from
10746         window.c. Allow finalization as well as unmapping.
10747
10748         * gui.c (gui_item_list_find_selected): new function.
10749
10750         * gui.h (gui_item_list_find_selected): declare.
10751
10752         * glyphs-x.c (x_tab_control_redisplay): pick tab
10753         explicitly. Re-code to use gui_item_equal_sans_selected and
10754         gui_item_list_find_selected.
10755
10756         * glyphs-x.h: add lwlib-utils.h
10757
10758         * buffer.c (Frecord_buffer): undo previous change.
10759
10760 2000-08-09  Vin Shelton  <acs@xemacs.org>
10761
10762         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10763         possible.  Create temporary files more securely.  The patch was
10764         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10765         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10766         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10767         for details.
10768
10769 2000-08-07  Ben Wing  <ben@xemacs.org>
10770
10771         * getloadavg.c: remove duplicate (and windows-breaking)
10772         includes of fcntl.h and sys/file.h.
10773
10774         * nt.c: remove duplicate getloadavg() definition.
10775
10776         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10777         encodings.
10778
10779 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10780
10781         * eval.c (function_argcount): If function needs to be autoloaded
10782         actually use the loaded definition.
10783         GCPRO function.
10784
10785 2000-08-05  Ben Wing  <ben@xemacs.org>
10786
10787         * getloadavg.c: add prototype for getloadavg().  remove
10788         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10789         of the code).  remove duplicate header includes.
10790
10791         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10792
10793         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10794         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10795         useful load average.
10796
10797         * alloc.c (reinit_alloc_once_early): removed references to
10798         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10799         the lisp vars are the only things referencing the malloc_sbrk_*
10800         vars, and they were already if 0'd out.  these vars only exist
10801         in the older malloc.c, which is basically unused, and they're
10802         only for informational purposes.
10803
10804         * m\*.h: removed useless VIRT_ADDR_VARIES.
10805
10806         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10807
10808 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10809
10810         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10811         color if the image is a mono pixmap.
10812
10813 2000-07-30  Ben Wing  <ben@xemacs.org>
10814
10815         * Makefile.in.in (release):
10816         Remove stray @.
10817
10818         * buffer.c (directory_is_current_directory):
10819         * dired-msw.c (mswindows_get_files):
10820         * dired.c:
10821         * dired.c (Fdirectory_files):
10822         * dired.c (file_name_completion_stat):
10823         * dired.c (Ffile_attributes):
10824         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10825         preprocessor tricks, to avoid problems on some machines
10826         (e.g. SCO).
10827
10828         * callproc.c (egetenv): GC docs.
10829
10830         * console-msw.h:
10831         * console-msw.h (struct mswindows_dialog_id):
10832         * lrecord.h (lrecord_type):
10833         New object for use with MSW dialogs.
10834
10835         * console.h (struct console_methods):
10836         New enable/disable frame methods, for proper modal dialogs.
10837
10838         * device-msw.c (msprinter_default_printer): Fix to follow
10839         proper Mule conventions.
10840
10841         * device-msw.c:
10842         * device-msw.c (signal_open_printer_error):
10843         * device-msw.c (msprinter_init_device):
10844         * device-msw.c (ensure_not_printing):
10845         * device-msw.c (plist_get_margin):
10846         * device-msw.c (Fmsprinter_select_settings):
10847         * device-msw.c (finalize_devmode):
10848         * device-msw.c (Fmsprinter_settings_despecialize):
10849         * device-msw.c (signal_enum_priner_error):
10850         * extents.c (decode_extent):
10851         * extents.c (decode_map_extents_flags):
10852         * extents.c (decode_extent_at_flag):
10853         * extents.c (Fextent_at):
10854         * extents.c (Fextents_at):
10855         * extents.c (symbol_to_glyph_layout):
10856         [[[[2]]]] Use structured errors.
10857
10858         * dialog-msw.c:
10859         * dialog-msw.c (mswindows_is_dialog_msg):
10860         * dialog-msw.c (mark_mswindows_dialog_id):
10861         * dialog-msw.c (dialog_proc):
10862         * dialog-msw.c (handle_question_dialog_box):
10863         * dialog-msw.c (syms_of_dialog_mswindows):
10864         Define new object to clean up marking; use it as a dialog identifier.
10865         Call new delete-dialog-box-hook.
10866
10867         * dialog-x.c (dbox_selection_callback):
10868         * dialog-x.c (dbox_descriptor_to_widget_value):
10869         * dialog-x.c (x_make_dialog_box_internal):
10870         Call new delete-dialog-box-hook.
10871         Return an id.
10872
10873         * dialog.c:
10874         * dialog.c (syms_of_dialog):
10875         * dialog.c (vars_of_dialog):
10876         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10877
10878         * eval.c:
10879         * eval.c (signal_call_debugger):
10880         when noninteractive, output stack traces on the console instead
10881         of in a (never-seen) buffer.
10882
10883         * eval.c (signal_type_error):
10884         * eval.c (invalid_argument_2):
10885         * lisp.h:
10886         new funs for use w/structured errors.
10887
10888         * event-Xt.c:
10889         * event-Xt.c (x_to_emacs_keysym):
10890         * event-Xt.c (describe_event):
10891         * event-Xt.c (emacs_Xt_event_handler):
10892         * event-Xt.c (vars_of_event_Xt):
10893         * event-msw.c:
10894         * event-msw.c (mswindows_wnd_proc):
10895         * event-msw.c (vars_of_event_mswindows):
10896         rename {x,mswindows}-debug-events to debug-{}-events for
10897         consistency with other debug-foo variables.
10898
10899         * event-stream.c:
10900         document next-event more clearly.
10901
10902         * fileio.c (Ffile_name_directory):
10903         * fileio.c (Ffile_name_nondirectory):
10904         * fileio.c (Funhandled_file_name_directory):
10905         * fileio.c (file_name_as_directory):
10906         * fileio.c (Ffile_name_as_directory):
10907         * fileio.c (directory_file_name):
10908         * fileio.c (Fdirectory_file_name):
10909         * fileio.c (Fmake_temp_name):
10910         * fileio.c (Ffile_truename):
10911         * fileio.c (Fsubstitute_in_file_name):
10912         * fileio.c (expand_and_dir_to_file):
10913         * fileio.c (barf_or_query_if_file_exists):
10914         * fileio.c (check_executable):
10915         * fileio.c (Ffile_exists_p):
10916         * fileio.c (Ffile_writable_p):
10917         * fileio.c (Ffile_directory_p):
10918         * fileio.c (Ffile_regular_p):
10919         * fileio.c (Ffile_modes):
10920         * fileio.c (Ffile_newer_than_file_p):
10921         * fileio.c (Fverify_visited_file_modtime):
10922         * fileio.c (Fset_visited_file_modtime):
10923         * fileio.c (auto_save_1):
10924         (1). (2).
10925         fix up gcpro's.
10926
10927         * frame-msw.c:
10928         * frame-msw.c (mswindows_init_frame_1):
10929         * frame-msw.c (mswindows_enable_frame):
10930         * frame-msw.c (error_frame_unsizable):
10931         * frame-msw.c (msprinter_init_frame_1):
10932         * frame-msw.c (msprinter_init_frame_3):
10933         * frame-msw.c (console_type_create_frame_mswindows):
10934         (2).
10935         implement new enable/disable frame methods.
10936
10937         * frame-x.c:
10938         * frame-x.c (x_enable_frame):
10939         * frame-x.c (console_type_create_frame_x):
10940         implement new enable/disable frame methods.
10941
10942         * frame.c:
10943         * frame.c (Fdisable_frame):
10944         * frame.c (syms_of_frame):
10945         * frame.h (struct frame):
10946         implement new enable/disable frame methods/functions.
10947
10948         * general-slots.h:
10949         add initial-focus.
10950
10951         * glyphs-msw.c (mswindows_widget_instantiate):
10952         comment that initial-focus should be implemented.
10953
10954         * glyphs-widget.c:
10955         * glyphs-widget.c (check_valid_instantiator):
10956         * glyphs-widget.c (check_valid_orientation):
10957         * glyphs-widget.c (check_valid_tab_orientation):
10958         * glyphs-widget.c (check_valid_justification):
10959         * glyphs-widget.c (check_valid_border):
10960         * glyphs-widget.c (check_valid_callback):
10961         * glyphs-widget.c (check_valid_int_or_function):
10962         * glyphs-widget.c (check_valid_string_or_vector):
10963         * glyphs-widget.c (check_valid_item_list_1):
10964         * glyphs-widget.c (widget_validate):
10965         * glyphs-widget.c (combo_box_validate):
10966         * glyphs-widget.c (widget_instantiate):
10967         * glyphs-widget.c (syms_of_glyphs_widget):
10968         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10969         * glyphs-widget.c (image_instantiator_combo_box):
10970         * glyphs-widget.c (image_instantiator_scrollbar):
10971         * glyphs-widget.c (image_instantiator_tab_control):
10972         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10973         (2).
10974         support (unimplemented) keyword initial-focus.
10975         reindent long macros.
10976
10977         * glyphs-x.c (x_redisplay_widget):
10978         * glyphs-x.c (x_button_instantiate):
10979         * glyphs-x.c (x_button_redisplay):
10980         * glyphs-x.c (x_progress_gauge_instantiate):
10981         * glyphs-x.c (x_edit_field_instantiate):
10982         * glyphs-x.c (x_combo_box_instantiate):
10983         * glyphs-x.c (x_tab_control_instantiate):
10984         * glyphs-x.c (x_label_instantiate):
10985         * gui-x.c:
10986         * gui-x.c (button_item_to_widget_value):
10987         * gui-x.c (gui_items_to_widget_values_1):
10988         * gui-x.c (gui_item_children_to_widget_values):
10989         * gui-x.c (gui_items_to_widget_values):
10990         * gui-x.h:
10991         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10992         add new flag to gui-parsing routines to indicate whether
10993         accelerator specs should be supported.
10994
10995         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10996
10997         * glyphs.h (struct Lisp_Image_Instance):
10998         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10999         add initial-focus flag.
11000
11001         * gui.c:
11002         * gui.c (syms_of_gui):
11003         * gui.c (vars_of_gui):
11004         clean up menu-no-selection-hook.
11005
11006         * gui.h:
11007         support delete-dialog-box-hook.
11008
11009         * lread.c (Fload_internal):
11010         * lread.c (locate_file_in_directory_mapper):
11011         (1).
11012
11013         * lrecord.h:
11014         * lrecord.h (struct toolbar_button):
11015         * lrecord.h (syms_of_toolbar):
11016         document how to create a new object.
11017
11018         * menubar-msw.c (mswindows_char_is_accelerator):
11019         may be called on frames w/o menus.
11020
11021         * menubar.c (vars_of_menubar):
11022         clean up :filter docs.
11023
11024         * nt.c (readdir):
11025         * ntproc.c:
11026         (1).
11027
11028         * process-nt.c:
11029         * process-nt.c (validate_signal_number):
11030         * process-nt.c (signal_cannot_launch):
11031         * process-nt.c (nt_create_process):
11032         * process-nt.c (nt_send_process):
11033         * process-nt.c (nt_kill_child_process):
11034         * process-nt.c (nt_open_network_stream):
11035         * process-nt.c (syms_of_process_nt):
11036         (2).
11037         delete quote-handling.  call new lisp code that does it better.
11038
11039         * process-unix.c (connect_to_file_descriptor):
11040         * process-unix.c (allocate_pty):
11041         * process-unix.c (unix_send_process):
11042         * process-unix.c (unix_kill_child_process):
11043         * process-unix.c (unix_open_network_stream):
11044         * process-unix.c (unix_open_multicast_group):
11045         (1). (2).
11046
11047         * process.c:
11048         * process.c (Fstart_process_internal):
11049         (2).  need to canonicalize process path even if absolute.
11050
11051         * select-msw.c (symbol_to_ms_cf):
11052         * select-msw.c (ms_cf_to_symbol):
11053         * select-msw.c (cf_is_autofreed):
11054         * select-msw.c (mswindows_destroy_selection):
11055         * select.c:
11056         * select.c (syms_of_select):
11057         * select.h:
11058         support dibv5, fix bugs. (from Mike Alexander)
11059
11060         * select.c (Fget_selection_internal):
11061         * select.c (select_convert_out):
11062
11063         * sysdep.c:
11064         * sysdep.c (xemacs_stat):
11065         renamed.
11066
11067         * sysdep.c (mkdir):
11068         * sysdep.c (rmdir):
11069         but keep original stat() here because we provide encapsulation
11070         around these funs.
11071
11072         * sysfile.h:
11073         * sysfile.h (fstat):
11074         remove stat garbage.
11075
11076         * syswindows.h:
11077         fix X/MSW conflict.
11078         don't include tchar.h.  it's inappropriate because it makes
11079         compile-time distinctions when we want runtime distinctions.
11080         (we provide our own tchar replacements)
11081
11082         * toolbar.c:
11083         use default object printer for toolbar-button.
11084
11085         * unexcw.c:
11086         make sure we don't encapsulate.
11087
11088         * window.c (vars_of_window):
11089         emphasize that temp-buffer-show-hook is obsolete.
11090
11091 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11092
11093         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11094         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11095
11096         * events.c (Fevent_timestamp_lessp):
11097         Not 64-bit clean.  Use EMACS_INT, not int.
11098
11099 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11100
11101         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11102         unsigned int and changed the last enum to
11103         lrecord_type_last_built_in_type.
11104         (lrecord_implementations_table): changed prototype to know how
11105         long the array is supposed to be.
11106         (lrecord_type_count): new unsigned int to keep track of the
11107         current number of lisp lrecord types.
11108         (DEFINE_EXTERNAL_LRECORD):
11109         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11110         dynamic-modules to declare new lisp types. They are the same
11111         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11112         int for each new type, and increment lrecord_type_count by 1.
11113
11114         * alloc.c (lrecord_implementations_table): Changed to reference
11115         lrecord_type_last_built_in_type for the size of the array.
11116         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11117
11118 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11119
11120         * glyphs.h (check_valid_item_list): Renamed from
11121         check_valid_item_list_1.
11122
11123 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11124
11125         * select.c (Qselect_coerce): New.
11126         * select.c (Vselection_coercion_alist): New.
11127         * select.c (syms_of_select): Declare.
11128         * select.c (get-selection-internal): Use it.
11129         Use the new select-coerce functionality.
11130
11131         * select.c (select_coerce): New.
11132         * select.h (select_coerce): Declare.
11133         New function to coerce one type of data into another.
11134
11135 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11136
11137         * callproc.c (Fcall_process_internal):
11138         (Fcall_process_internal):
11139         * process-unix.c (unix_create_process):
11140         Save and restore the value of errno, so that error messages are accurate.
11141
11142 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11143
11144         * elhash.c (print_hash_table):
11145         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11146         Prettify docstrings and indentation.
11147
11148 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11149
11150         * window.c (Fwindow_pixel_edges): Subtract frame border and
11151         gutter size.
11152
11153 2000-07-31  Andy Piper  <andy@xemacs.org>
11154
11155         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11156         will acknowledge the change.
11157
11158         * glyphs.h: declare tab_control_order_only_changed.
11159
11160         * glyphs-x.c (x_tab_control_redisplay): use
11161         tab_control_order_only_changed.
11162
11163         * glyphs-widget.c (tab_control_order_only_changed): new function.
11164
11165         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11166         tab_control_order_only_changed.
11167
11168         * gui.c (gui_item_equal_sans_selected): new function.
11169         (gui_item_equal): use it.
11170
11171         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11172         :properties in favor of :items..
11173
11174         * glyphs-widget.c (check_valid_item_list): rename from
11175         check_valid_item_list_1.
11176         (check_valid_item_list_1): renamed.
11177         (combo_box_validate): deprecate :properties in favor of :items.
11178         (widget_instantiate): ditto.
11179         (tab_control_update): ditto.
11180         (image_instantiator_combo_box): ditto.
11181         (image_instantiator_tree_view): ditto.
11182         (image_instantiator_tab_control): ditto.
11183         (layout_post_instantiate): remove dead code.
11184
11185         * print.c (debug_print_no_newline): only write to debugger if in
11186         WIN32_NATIVE.
11187
11188         * elhash.c (Fmake_hash_table): update doc string.
11189
11190         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11191         messages whilst in GC. This at least stops XEmacs crashing but has
11192         the potential for wierd behaviour.
11193
11194 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11195
11196         * config.h.in:
11197         Make existence of s&m files optional.
11198
11199         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11200         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11201         * s/gnu.h: Remove HAVE_GETLOADAVG.
11202         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11203         * s/sol2.h: Remove HAVE_GETLOADAVG.
11204         * lisp.h: Remove getloadavg() declaration.
11205         * fns.c:
11206         Include <sys/loadavg.h> if available.
11207         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11208         * config.h.in:  Group together getloadavg()-related macros.
11209         Use only configure-time tests to detect getloadavg().
11210
11211 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11212
11213         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11214
11215 2000-07-25  Andy Piper  <andy@xemacs.org>
11216
11217         * syswindows.h: add tchar.h for native builds.
11218
11219         * frame.c (syms_of_frame): remove set-glyph-image.
11220
11221         * general-slots.h: add Qset_glyph_image.
11222
11223         * glyphs-widget.c (layout_update): add domain arg to
11224         set-glyph-image.
11225         (syms_of_glyphs_widget): remove set-glyph-image.
11226
11227 2000-07-23  Ben Wing  <ben@xemacs.org>
11228
11229         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11230         Vpopup_frame_list.
11231
11232 2000-07-22  Andy Piper  <andy@xemacs.org>
11233
11234         * symsinit.h: add syms_of_win32().
11235
11236         * gui-msw.c (syms_of_gui_mswindows): remove
11237         Fmswindows_shell_execute.
11238         (Fmswindows_shell_execute): moved to win32.c.
11239
11240         * emacs.c (main_1): add syms_of_win32 ().
11241
11242         * win32.c (init_potentially_nonexistent_functions): rewrite in
11243         compiler-friendly terms.
11244         (Fmswindows_shell_execute): move here from gui-msw.c.
11245         (syms_of_win32): new.
11246
11247         * device-msw.c (Fmswindows_printer_list): clean up args to
11248         EnumPrinters.
11249         Don't include tchar under cygwin or mingw.
11250         (msprinter_default_printer): make cygwin-friendly.
11251
11252 2000-07-21  Andy Piper  <andy@xemacs.org>
11253
11254         * glyphs-widget.c (image_instantiator_tree_view): use tab
11255         control's update function.
11256         (layout_property): new function. Retrieve items.
11257
11258         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11259         function. Re-populate the tree view from the pending items.
11260
11261         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11262         is designated the parent if the domain is an image instance. This
11263         is needed so that dirtiness can be cascade up the hierarchy and
11264         thus for layout children to be redisplayed correctly.
11265         (allocate_image_instance): rename glyph -> parent.
11266
11267         * redisplay.h: change redisplay_output_layout signature.
11268
11269         * redisplay-msw.c (mswindows_output_display_block): use domain
11270         arg.
11271
11272         * redisplay-x.c (x_output_display_block): use domain arg.
11273
11274 2000-07-10  Andy Piper  <andy@xemacs.org>
11275
11276         * window.c (Fset_window_configuration): add comment.
11277
11278         * redisplay-output.c (compare_runes):
11279         (redisplay_output_subwindow): redisplay rather than update subwindow.
11280         (redisplay_output_layout): ditto.
11281
11282         * redisplay-msw.c (mswindows_frame_output_end):
11283         (mswindows_frame_output_end): make defer window pos optional.
11284
11285         * lisp.h: add Flast.
11286
11287         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11288         normalize method. Change update method to be for changed
11289         instantiators. Add redisplay method. Change signature of layout
11290         method.
11291         (struct Lisp_Image_Instance): add instantiator.
11292         (IMAGE_INSTANCE_INSTANTIATOR): new.
11293         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11294         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11295         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11296
11297         * glyphs.c:
11298         (find_instantiator_differences): new function.
11299         (Fset_instantiator_property): new convenience function.
11300         (check_image_instance_structure): strictly check for vector
11301         instantiators.
11302         (normalize_image_instantiator): make non-static.
11303         (instantiate_image_instantiator): pass on dest_mask and use new
11304         signatures for image_instance_layout and friends.
11305         (mark_image_instance): mark the instantiator. Mark the subwindow
11306         face not the widget face.
11307         (image_instance_equal): add instantiator.
11308         (image_instance_hash): ditto.
11309         (allocate_image_instance): ditto.
11310         (Fset_image_instance_property): removed.
11311         (Fimage_instance_file_name): ditto.
11312         (Fcolorize_image_instance): ditto.
11313         (image_instance_layout): add offsets to be set.
11314         (update_image_instance): new function. update an image instance
11315         from its changed instantiator.
11316         (inherit_normalize): add dest_mask.
11317         (xbm_normalize): ditto.
11318         (xface_normalize): ditto.
11319         (xpm_normalize): ditto.
11320         (text_update): set_property -> update.
11321         (image_instantiate): use the glyph identity as a hash key, not the
11322         instantiator.
11323         (glyph_width): use new image_instance_layout signature.
11324         (glyph_ascent): ditto.
11325         (glyph_descent): ditto.
11326         (glyph_height): ditto.
11327         (glyph_query_geometry): ressurrect.
11328         (glyph_layout): ditto.
11329         (redisplay_subwindow): update -> redisplay.
11330         (syms_of_glyphs): add Fset_instantiator_property.
11331         (image_instantiator_format_create): set_property -> update.
11332
11333         * glyphs-x.c:
11334         (autodetect_normalize): add dest_maks to signature.
11335         (x_redisplay_subwindow): update -> redisplay.
11336         (x_redisplay_widget): ditto.
11337         (x_button_redisplay): ditto.
11338         (x_progress_gauge_redisplay): ditto.
11339         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11340         stacking order.
11341         (console_type_create_glyphs_x): update -> redisplay.
11342         (image_instantiator_format_create_glyphs_x): ditto.
11343
11344         * glyphs-widget.c:
11345         (check_valid_instantiator): disallow glyphs in the instantiator,
11346         they must now be vectors.
11347         (check_valid_instantiator_list): ditto.
11348         (glyph_instantiator_to_glyph): use internal symbol rather than
11349         intern.
11350         (widget_update): renamed from widget_set_property. Call cascaded
11351         update methods.
11352         (redisplay_widget): renamed from update_widget.
11353         (widget_layout): image_instance_layout now takes position as well
11354         as size.
11355         (widget_normalize): ditto.
11356         (widget_instantiate): ditto.
11357         (tab_control_query_geometry) ditto.:
11358         (tab_control_update): renamed from tab_control_set_property.
11359         (progress_gauge_update): set_property -> update.
11360         (layout_normalize): rewrite so that child instantiators are
11361         normalized also.
11362         (layout_update): new function. Create glyphs from the normalized
11363         children and cope with any other layout keywords. We do not
11364         instantiate children here that will be take care of by
11365         redisplay_output_layout.
11366         (layout_instantiate): call layout_update and not much else.
11367         (layout_post_instantiate): not sure whether this is needed
11368         anymore.
11369         (layout_query_geometry): query glyph geometry rather than
11370         image_instance geometry.
11371         (layout_layout): set offsets from pass in parameters. Use glyph
11372         geometry and layout functions rather than image instance ones.
11373         (native_layout_layout): ditto.
11374         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11375         (image_instantiator_widget): set_property -> update.
11376         (image_instantiator_buttons): ditto.
11377         (image_instantiator_progress_guage): ditto.
11378         (image_instantiator_tab_control): ditto.
11379         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11380         (image_instantiator_layout): add update method.
11381
11382         * glyphs-msw.c (bmp_normalize):
11383         (mswindows_resource_normalize): add dest_mask so that it can be
11384         proprogated by layout_normalize.
11385         (begin_defer_window_pos): make optional because it may not be the
11386         right thing to do and it introduces differences with X.
11387         (mswindows_unmap_subwindow): ditto.
11388         (mswindows_map_subwindow): ditto.
11389         (mswindows_redisplay_subwindow): renamed from
11390         mswindows_update_subwindow.
11391         (mswindows_redisplay_widget): ditto.
11392         (mswindows_button_redisplay): renamed from
11393         mswindows_button_update. Update is now what the instantiation
11394         function does for a changed instantiator.
11395         (mswindows_progress_gauge_instantiate): set the progress value
11396         here if appropriate.
11397         (mswindows_tab_control_redisplay): cope with re-ordering of the
11398         members of the tab widget by simply selecting the new top
11399         widget. This makes things appear ok if you click on a tab.
11400         (mswindows_combo_box_instantiate): image_instance_layout now takes
11401         position as well as size.
11402         (mswindows_progress_gauge_redisplay): renamed from
11403         mswindows_progress_gauge_update.
11404         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11405         (image_instantiator_format_create_glyphs_mswindows): ditto.
11406
11407         * glyphs-eimage.c (jpeg_normalize):
11408         (gif_normalize):
11409         (png_normalize):
11410         (tiff_normalize): add dest_mask so that it can be proprogated by
11411         layout_normalize.
11412
11413         * elhash.c:
11414         (print_hash_table):
11415         (hash_table_weakness_validate):
11416         (decode_hash_table_weakness):
11417         (Fhash_table_weakness):
11418         (Fhash_table_type):
11419         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11420
11421         * console.h (struct console_methods): move update_* to
11422         redisplay_*.
11423
11424 2000-07-20  Ben Wing  <ben@xemacs.org>
11425
11426         * *.[ch] (XSETOBJ): remove unused middle argument.
11427         lisp-disunion.h: correct wrap_object() to one argument.
11428
11429 2000-07-15  Ben Wing  <ben@xemacs.org>
11430
11431         * s/cygwin32.h:
11432         * s/cygwin32.h (CYGWIN_CONV_PATH):
11433         Add missing logb prototype for v1.1.
11434         Use post-b20 names and alias to pre-b20 names when pre-b20.
11435
11436         * s/windowsnt.h: [5].
11437
11438 2000-07-15  Ben Wing  <ben@xemacs.org>
11439
11440         * Makefile.in.in (x_objs):
11441         * Makefile.in.in (sheap_objs):
11442         * Makefile.in.in (objs):
11443         added win32.o, cosmetic cleanups.
11444
11445         * alloc.c (Fmake_byte_code):
11446         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11447         etc. macros which declare their own args now.
11448
11449         * alloc.c (syms_of_alloc):
11450         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11451
11452         * buffer.c:
11453         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11454
11455         * buffer.c (Fget_file_buffer):
11456         Fixed GCPRO problem.
11457
11458         * buffer.c (get_truename_buffer):
11459         Fixed comment about GC checking.
11460
11461         * buffer.c (syms_of_buffer):
11462         Undeclared those dedicated frame funs.
11463         [2].
11464
11465         * buffer.h:
11466         Define convenience macros for internal/external conversions.
11467         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11468         and Qenvironment_variable_encoding for cleaner code.
11469
11470         * bufslots.h:
11471         Remove dedicated-frame; in lisp.
11472
11473         * bytecode.c (funcall_compiled_function):
11474         [1].
11475
11476         * bytecode.c (syms_of_bytecode):
11477         [2].
11478
11479         * console-msw.c:
11480         * console-msw.c (mswindows_show_console): Rewrote.
11481
11482         * console-msw.c (Fmswindows_debugging_output): New.
11483         Sends to OutputDebugString (special MSWin debugger interface).
11484
11485         * console-msw.c (Fmswindows_message_box):
11486         Fixed stupid bugs so it works when called from kill-emacs.
11487
11488         * console-msw.c (syms_of_console_mswindows):
11489         Declare Fmswindows_debugging_output.
11490
11491         * console-msw.h:
11492         New MSWin prototypes.
11493
11494         * console-msw.h (struct mswindows_frame):
11495         New entry last-click-mods for improved button-modifier support.
11496
11497         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11498         New struct entry `popup' with corresponding accessor.
11499
11500         * console-x.c:
11501         * console-x.c (split_up_display_spec):
11502         * console-x.c (get_display_arg_connection):
11503         * console-x.c (x_semi_canonicalize_console_connection):
11504         * console-x.c (x_canonicalize_device_connection):
11505         [[[6]]]: Change char to more specific type.
11506         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11507
11508         * console-x.c (x_semi_canonicalize_console_connection):
11509         * console-x.c (x_canonicalize_device_connection):
11510         [[[9]]]: Fix up error signalling to use new structured error system.
11511
11512         * console-x.h:
11513         [[[4]]]: Define codesys aliases:
11514         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11515         Qx_color_name_encoding, Qx_display_name_encoding.
11516
11517         * console.h (struct console_methods):
11518         New method make_dialog_box_internal supersedes older
11519         popup_dialog_box method.
11520
11521         * data.c:
11522         Define many new errors, part of new structured errors.
11523
11524         * data.c (init_errors_once_early):
11525         * data.c (syms_of_data):
11526         [2].
11527
11528         * device-msw.c (mswindows_init_device):
11529         [[[5]]]: Cleanup to support NT 3.51.
11530
11531         * device-msw.c (decode_devmode): Cleanup.
11532
11533         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11534         * device-msw.c (mswindows_handle_print_dialog_box):
11535         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11536         * device-msw.c (syms_of_device_mswindows):
11537         Delete the dialog box primitives recently introduced by Kirill and
11538         instead interface to general dialog box interface.
11539
11540         * device-x.c:
11541         * device-x.c (compute_x_app_name):
11542         * device-x.c (x_init_device):
11543         * device-x.c (Fx_valid_keysym_name_p):
11544         * device-x.c (Fx_set_font_path):
11545         [6].
11546         [7].
11547
11548         * device.h (wrap_device): New.
11549         First of its kind; meant to replace XSETDEVICE.
11550
11551         * dialog-msw.c: Many file-dialog symbols.
11552
11553         * dialog-msw.c (mswindows_register_popup_frame): New.
11554         * dialog-msw.c (mswindows_is_dialog_msg): New.
11555         For supporting kbd traversal in dialog boxes.
11556
11557         * dialog-msw.c (dialog_proc):
11558         Support hitting ESC in dialogs.
11559
11560         * dialog-msw.c (struct):
11561         Common dialog box errors.
11562
11563         * dialog-msw.c (handle_file_dialog_box): New.
11564         Add file dialog code.
11565
11566         * dialog-msw.c (handle_question_dialog_box):
11567         Redo existing code to support new question dialog syntax.
11568
11569         * dialog-msw.c (console_type_create_dialog_mswindows):
11570         We support new dialog console method.
11571
11572         * dialog-msw.c (syms_of_dialog_mswindows):
11573         * dialog-msw.c (vars_of_dialog_mswindows):
11574         New file dialog symbols, vars.
11575
11576         * dialog-x.c:
11577         * dialog-x.c (maybe_run_dbox_text_callback):
11578         * dialog-x.c (dbox_descriptor_to_widget_value):
11579         * dialog-x.c (x_make_dialog_box_internal):
11580         * dialog-x.c (console_type_create_dialog_x):
11581         Mule-ize entire file.
11582         Redo to support question dialog syntax.
11583         [6].
11584
11585         * dialog.c:
11586         * dialog.c (Fmake_dialog_box_internal):
11587         * dialog.c (syms_of_dialog):
11588         Kill old popup-dialog-box, replace with new primitive.
11589         Just call device method or signal error.
11590
11591         * eldap.c (Fldap_open):
11592         * eldap.c (Fldap_search_basic):
11593         * eldap.c (Fldap_add):
11594         * eldap.c (Fldap_modify):
11595         [1].
11596         [7].
11597
11598         * emacs.c:
11599         * emacs.c (make_arg_list_1):
11600         * emacs.c (make_arg_list):
11601         Mule-ize call to dll_init().
11602         [6].
11603         [8].
11604
11605         * emacs.c (make_argc_argv):
11606         * emacs.c (free_argc_argv):
11607         * emacs.c (init_cmdargs):
11608         * emacs.c (main_1):
11609         * emacs.c (Fkill_emacs):
11610         * emacs.c (Fdump_emacs):
11611         Update comments about what can be used in syms_* etc.
11612         Call init_win32() when necessary.
11613         Fix up MS Win dialog box in kill-buffer to actually work right.
11614         [7].
11615
11616         * eval.c:
11617         * eval.c (For):
11618         * eval.c (Fand):
11619         * eval.c (Fprogn):
11620         * eval.c (Fprog1):
11621         * eval.c (Fprog2):
11622         * eval.c (FletX):
11623         * eval.c (Flet):
11624         * eval.c (condition_case_3):
11625         * eval.c (Feval):
11626         * eval.c (function_argcount):
11627         * eval.c (funcall_lambda):
11628         [1].
11629
11630         * eval.c (type_error): New.
11631         * eval.c (maybe_type_error): New.
11632         * eval.c (continuable_type_error): New.
11633         * eval.c (maybe_continuable_type_error): New.
11634         * eval.c (type_error_with_frob): New.
11635         * eval.c (maybe_type_error_with_frob): New.
11636         * eval.c (continuable_type_error_with_frob): New.
11637         * eval.c (maybe_continuable_type_error_with_frob): New.
11638         New functions for use with structured errors.
11639
11640         * event-Xt.c:
11641         * event-Xt.c (x_event_to_emacs_event):
11642         Buttons are now modifiers too.
11643
11644         * event-Xt.c (emacs_Xt_current_event_timestamp):
11645         Implement new event method.
11646         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11647
11648         * event-msw.c:
11649         * event-msw.c (ntpipe_shove_writer): [5].
11650         * event-msw.c (mswindows_enqueue_mouse_button_event):
11651         * event-msw.c (mswindows_drain_windows_queue):
11652         * event-msw.c (mswindows_wnd_proc): [7].
11653         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11654         * event-msw.c (mswindows_modifier_state):
11655         Throughout: support new button modifiers.
11656
11657         * event-msw.c (emacs_mswindows_current_event_timestamp):
11658         Implement new event method.
11659         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11660
11661         * event-stream.c:
11662         * event-stream.c (event_stream_current_event_timestamp): New.
11663         * event-stream.c (maybe_kbd_translate): New functionality.
11664         * event-stream.c (vars_of_event_stream):
11665         Document new kbd-translate-table functionality.
11666
11667         * event-stream.c (Fcurrent_event_timestamp): New.
11668         New primitive for use in fabricated events.
11669         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11670
11671         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11672
11673         * events.c:
11674         * events.c (Fmake_event):
11675         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11676         [1].
11677         [9].
11678
11679         * events.c (format_event_object): fix gcc warnings.
11680
11681         * events.c (Fevent_timestamp): Document new primitives.
11682
11683         * events.c (TIMESTAMP_HALFSPACE): New.
11684
11685         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11686         comparing timestamps correctly (half-space algorithm).
11687
11688         * events.c (Fevent_modifier_bits): Doc fix.
11689
11690         * events.c (Fevent_modifiers): Major doc addition.
11691         * events.c (event_x_y_pixel_internal): Typo fix.
11692         * events.c (syms_of_events): Declare new primitives.
11693
11694         * events.h:
11695         Update long comment for button modifiers, timestamps.
11696
11697         * events.h (struct event_stream):
11698         New current_event_timestamp method.
11699
11700         * extents.c:
11701         * extents.c (extent_in_region_p):
11702         * extents.c (decode_extent):
11703         * extents.c (Fset_extent_parent):
11704         * extents.c (decode_map_extents_flags):
11705         Fix gcc warnings.
11706         [9].
11707
11708         * extents.c (struct extent_at_arg):
11709         * extents.c (decode_extent_at_flag):
11710         * extents.c (extent_at_mapper):
11711         * extents.c (extent_at_bytind):
11712         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11713         * extents.c (Fextents_at): New primitive. [9].
11714         * extents.c (symbol_to_glyph_layout): [9].
11715         Support new primitive `extents-at'.
11716
11717
11718         * extents.c (get_text_property_bytind):
11719         extent_at_bytind has another arg.
11720         [9].
11721
11722         * extents.c (syms_of_extents): New primitive.
11723
11724         * file-coding.c (Fmake_coding_system): [1].
11725         * file-coding.c (subsidiary_coding_system): fix gcc warning
11726         * file-coding.c (syms_of_file_coding): [2].
11727
11728         * fileio.c (Fexpand_file_name):
11729         * fileio.c (Fsysnetunam):
11730         * fileio.c (Ffile_exists_p):
11731         * fileio.c (Ffile_executable_p):
11732         * fileio.c (Fverify_visited_file_modtime):
11733         Clean up GCPROing.
11734
11735         * fileio.c (syms_of_fileio): [2].
11736
11737         * filelock.c (lock_file_1):
11738         * filelock.c (current_lock_owner):
11739         * filelock.c (lock_if_free):
11740         * filelock.c (lock_file):
11741         * filelock.c (unlock_file):
11742         Clean up GCPROing.
11743
11744         * fns.c (concat): Fix gcc warning.
11745
11746         * fns.c (Fmember):
11747         * fns.c (Fold_member):
11748         * fns.c (Fmemq):
11749         * fns.c (Fold_memq):
11750         * fns.c (memq_no_quit):
11751         * fns.c (Fassoc):
11752         * fns.c (Fold_assoc):
11753         * fns.c (Fassq):
11754         * fns.c (Fold_assq):
11755         * fns.c (assq_no_quit):
11756         * fns.c (Frassoc):
11757         * fns.c (Fold_rassoc):
11758         * fns.c (Frassq):
11759         * fns.c (Fold_rassq):
11760         * fns.c (rassq_no_quit):
11761         * fns.c (Fdelete):
11762         * fns.c (Fold_delete):
11763         * fns.c (Fdelq):
11764         * fns.c (Fold_delq):
11765         * fns.c (delq_no_quit):
11766         * fns.c (Fremassoc):
11767         * fns.c (Fremassq):
11768         * fns.c (remassq_no_quit):
11769         * fns.c (Fremrassoc):
11770         * fns.c (Fremrassq):
11771         * fns.c (remrassq_no_quit):
11772         * fns.c (Freverse):
11773         * fns.c (mapcar1):
11774         [1].
11775
11776         * frame-msw.c (mswindows_init_frame_1):
11777         * frame-msw.c (mswindows_delete_frame):
11778         Register popups with dialog code so keyboard traversing works.
11779
11780         * frame-tty.c (tty_raise_frame_no_select): [1].
11781
11782         * frame-x.c:
11783         * frame-x.c (x_set_frame_text_value):
11784         * frame-x.c (x_set_frame_properties):
11785         * frame-x.c (x_create_widgets):
11786         [7].
11787
11788         * frame.c:
11789         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11790
11791         * frame.h (wrap_frame): New.
11792         Macro like wrap_device.
11793
11794         * general.c:
11795         * general.c (SYMBOL):
11796         * general.c (syms_of_general):
11797         Major reorg.  This is now just a wrapper and symbols themselves
11798         are listed in general-slots.h.
11799
11800         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11801         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11802
11803         * glyphs-msw.c (mswindows_native_layout_instantiate):
11804         Add DS_CONTROL so keyboard traversal will work.
11805
11806         * glyphs-widget.c:
11807         * glyphs-widget.c (syms_of_glyphs_widget):
11808         Move some symbols to general-slots.h.
11809
11810         * glyphs-x.c:
11811         * glyphs-x.c (xbm_instantiate_1):
11812         * glyphs-x.c (x_xbm_instantiate):
11813         * glyphs-x.c (x_xface_instantiate):
11814         * glyphs-x.c (autodetect_instantiate):
11815         * glyphs-x.c (cursor_font_instantiate):
11816         * glyphs-x.c (x_update_widget):
11817         * glyphs-x.c (x_widget_instantiate):
11818         * glyphs.c (bitmap_to_lisp_data):
11819         * glyphs.c (pixmap_to_lisp_data):
11820         [7].
11821
11822         * glyphs.c (syms_of_glyphs):
11823         [2].
11824
11825         * gui-x.c:
11826         * gui-x.c (print_widget_value):
11827         * gui-x.c (menu_separator_style_and_to_external):
11828         * gui-x.c (add_accel_and_to_external):
11829         * gui-x.c (button_item_to_widget_value):
11830         * gui-x.c (gui_items_to_widget_values_1):
11831         * gui-x.c (gui_items_to_widget_values):
11832         * gui-x.c (syms_of_gui_x):
11833         * gui-x.c (vars_of_gui_x):
11834         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11835         [9].
11836
11837         * gui-x.h:
11838         Muleize, prototype changes matching gui-x.c.
11839
11840         * gui.c:
11841         * gui.c (separator_string_p):
11842         * gui.c (gui_item_add_keyval_pair):
11843         * gui.c (make_gui_item_from_keywords_internal):
11844         * gui.c (signal_too_long_error):
11845         * gui.c (parse_gui_item_tree_item):
11846         * gui.c (syms_of_gui):
11847         * gui.c (vars_of_gui):
11848         * gui.h:
11849         menu-no-selection-hook moved here (used by MSWin).
11850         Move some symbols to general-slots.h.
11851         [6].
11852         [9].
11853
11854         * insdel.c (get_buffer_pos_char):
11855         * insdel.c (get_buffer_range_char):
11856         Add GC comments.
11857
11858         * keymap.c (keymap_lookup_directly):
11859         * keymap.c (keymap_store):
11860         * keymap.c (ensure_meta_prefix_char_keymapp):
11861         * keymap.c (describe_map):
11862         * keymap.h:
11863         Support new button modifiers.
11864
11865         * lisp-disunion.h (wrap_object):
11866         * lisp-disunion.h (XSETOBJ):
11867         Rename make_obj to wrap_object.
11868
11869         * lisp-union.h:
11870         * lisp-union.h (make_int):
11871         * lisp-union.h (make_char):
11872         Support wrap_object.
11873
11874         * lisp.h:
11875         * lisp.h (LIST_LOOP):
11876         * lisp.h (EXTERNAL_LIST_LOOP):
11877         * lisp.h (LIST_LOOP_2):
11878         * lisp.h (EXTERNAL_LIST_LOOP_1):
11879         * lisp.h (EXTERNAL_LIST_LOOP_2):
11880         * lisp.h (EXTERNAL_LIST_LOOP_3):
11881         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11882         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11883         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11884         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11885         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11886         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11887         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11888         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11889         * lisp.h (struct Lisp_Symbol):
11890         * lisp.h (maybe_continuable_error_with_frob):
11891         Fix up section comments.
11892         Add new types for char to indicate usage.
11893         Delete symbols auto-generated from general-slots.h.
11894         Add prototypes for structured error functions.
11895         Add long comments describing looping macros and change interface
11896         so that lvalues are automatically declared.
11897         Add NO_DECLARE macro in case callers want to declare lvalues
11898         themselves.
11899
11900         * lread.c (read_syntax_error):
11901         * lread.c (continuable_read_syntax_error):
11902         * lread.c (read_structure):
11903         * lread.c (sequence_reader):
11904         * lread.c (read_list_conser):
11905         * lread.c (read_compiled_function):
11906         Rename syntax_error and continuable_syntax_error to avoid clash
11907         with same-named structured error functions.
11908
11909         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11910         * menubar-msw.c (populate_menu_add_item):
11911         * menubar-msw.c (populate_or_checksum_helper):
11912         [5].
11913         [9].
11914
11915         * menubar-x.c:
11916         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11917         Mule-ize whole file.
11918
11919         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11920
11921         * mule-charset.c (Fmake_charset):
11922         * mule-wnnfns.c (Fwnn_set_param):
11923         [1].
11924
11925         * ntproc.c (create_child):
11926         * ntproc.c (Fwin32_set_current_locale):
11927         Add comments portending doom.
11928
11929         * objects-msw.c:
11930         * objects-msw.c (old_font_enum_callback_2):
11931         * objects-msw.c (font_enum_callback_1):
11932         * objects-msw.c (mswindows_enumerate_fonts):
11933         [5].
11934
11935         * objects-x.c:
11936         * objects-x.c (allocate_nearest_color):
11937         * objects-x.c (x_parse_nearest_color):
11938         * objects-x.c (x_initialize_color_instance):
11939         * objects-x.c (x_print_color_instance):
11940         * objects-x.c (x_finalize_color_instance):
11941         * objects-x.c (x_valid_color_name_p):
11942         * objects-x.c (x_initialize_font_instance):
11943         * objects-x.c (x_print_font_instance):
11944         * objects-x.c (valid_x_font_name_p):
11945         * objects-x.c (truename_via_FONT_prop):
11946         * objects-x.c (truename_via_random_props):
11947         * objects-x.c (truename_via_XListFonts):
11948         * objects-x.c (x_font_truename):
11949         * objects-x.c (x_font_instance_truename):
11950         * objects-x.c (x_font_instance_properties):
11951         * objects-x.c (x_list_fonts):
11952         * objects-x.c (x_find_charset_font):
11953         Mule-ize entire file.
11954         [7].
11955
11956         * objects-x.h:
11957         Mule-verify.
11958
11959         * print.c:
11960         * print.c (std_handle_out_external):
11961         * print.c (debug_print_no_newline):
11962         * print.c (syms_of_print):
11963         Output to all debugger kinds in debug-print.
11964         Fix console-output code under MSWin to actually work.
11965
11966         * process-nt.c (send_signal):
11967         * process-nt.c (nt_create_process):
11968         Use newer Unicode macros.
11969
11970         * process-unix.c (unix_create_process):
11971         * process-unix.c (unix_canonicalize_host_name):
11972         * process-unix.c (unix_open_network_stream):
11973         [7].
11974
11975         * scrollbar-x.c:
11976         Mule-verify.
11977
11978         * search.c (syms_of_search):
11979         [2].
11980
11981         * select-msw.c (mswindows_destroy_selection):
11982         Use LIST_LOOP_2.
11983
11984         * select-x.c (symbol_to_x_atom):
11985         [7].
11986
11987         * select.c (syms_of_select):
11988         [2].
11989
11990         * sound.c (Fplay_sound_file):
11991         [7].
11992
11993         * specifier.c:
11994         * specifier.c (decode_specifier_type):
11995         * specifier.c (Fvalid_specifier_locale_type_p):
11996         * specifier.c (check_valid_locale_or_locale_type):
11997         * specifier.c (decode_locale):
11998         * specifier.c (decode_locale_type):
11999         * specifier.c (decode_locale_list):
12000         * specifier.c (check_valid_domain):
12001         * specifier.c (decode_specifier_tag_set):
12002         * specifier.c (Fcanonicalize_tag_set):
12003         * specifier.c (Fdefine_specifier_tag):
12004         * specifier.c (Fspecifier_tag_predicate):
12005         * specifier.c (check_valid_inst_list):
12006         * specifier.c (check_valid_spec_list):
12007         * specifier.c (decode_how_to_add_specification):
12008         * specifier.c (check_modifiable_specifier):
12009         * specifier.c (specifier_add_spec):
12010         * specifier.c (boolean_validate):
12011         * specifier.c (display_table_validate):
12012         [9].
12013
12014         * specifier.c (syms_of_specifier):
12015         Move some symbols to general-slots.h.
12016         [2].
12017
12018         * symbols.c:
12019         * symbols.c (Fmapatoms):
12020         * symbols.c (Fapropos_internal):
12021         Add GCPROs.
12022
12023         * symbols.c (set_default_buffer_slot_variable):
12024         * symbols.c (set_default_console_slot_variable):
12025         [1].
12026
12027         * symbols.c (defsymbol_massage_name_1):
12028         * symbols.c (defkeyword_massage_name):
12029         * symbols.c (deferror_1):
12030         * symbols.c (deferror):
12031         * symbols.c (deferror_massage_name_and_message):
12032         * symeval.h:
12033         * symeval.h (DEFSYMBOL):
12034         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12035
12036         * symbols.c (syms_of_symbols):
12037         [2].
12038
12039         * symsinit.h:
12040         * symsinit.h (init_win32): New.
12041         Also new is syms_of_dialog_mswindows.
12042
12043         * syswindows.h:
12044         Add new Unicode macros, missing Cygwin wide-char functions,
12045         convenience conversion macros for Qmswindows_tstr, macros for
12046         encapsulating required MSWin <-> Cygwin filename conversions,
12047         prototype for dynamically-extracted (not in NT 3.51) functions.
12048
12049         * toolbar-x.c:
12050         Mule-verify.
12051
12052         * tooltalk.c (Fadd_tooltalk_message_arg):
12053         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12054         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12055         [7].
12056
12057         * tooltalk.c (syms_of_tooltalk):
12058         [2].
12059
12060         * unexnt.c:
12061         * unexnt.c (unexec):
12062         Fix up headers, declaration of unexec() to be more standard.
12063
12064 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12065
12066         * offix.h: Revert change to guard macros - they're used in offix.c!
12067
12068 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12069
12070         * lisp.h: Defsubred Fdelete.
12071
12072         * console-msw.h:  (msprinter_default_printer): Added.
12073
12074         * console-msw.c (msprinter_canonicalize_console_connection):
12075         (msprinter_canonicalize_device_connection): Added.
12076
12077         * device-msw.c (msprinter_default_printer):
12078         (Fmswingows_get_default_printer):
12079         (signal_enum_priner_error):
12080         (Fmswingows_printer_list): Added.
12081
12082 2000-07-19  Martin Buchholz <martin@xemacs.org>
12083
12084         * XEmacs 21.2.35 is released.
12085
12086 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12087
12088         * select-x.c (x_handle_selection_request):
12089         Text selected in xemacs and pasted into xterm failed to appear.
12090         Spelling fixes and cosmetic changes.
12091
12092 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12093
12094         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12095         XEmacs frame (fix for doubling chars in dialog boxes).
12096
12097 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12098
12099         * select.c (select_convert_in, select_convert_out):
12100         Don't call intern() every time.
12101
12102         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12103         * select.c (vars_of_select): Initialise them.
12104
12105 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12106
12107         * select.c (selection-coercible-types): New.
12108
12109         * select.c (own-selection-internal):
12110         * select.c (get-selection-internal):
12111         MULE bug fix - these should default to COMPOUND_TEXT and not
12112         STRING for MULE. I think.
12113
12114         * select.c (select_convert_out): Use selection-coercible-types
12115         to find types that we can attempt to perform coercions on.
12116
12117 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12118
12119         * mule-wnnfns.c:
12120         * mule-canna.c:
12121         Add coding: cookie to identify encoding.
12122
12123         * mule-canna.c (CANNA_mode_keys): make static.
12124         Use proper prototypes, even for functions of no arguments.
12125         Remove external prototype for Fding().
12126
12127         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12128
12129         * select.c (syms_of_select): Add missing DEFSUBR.
12130
12131 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12132
12133         * select.c (get_selection_internal, own_selection_internal):
12134         Make the type default to STRING, rather than placing a nil type
12135         into Vselection_alist.
12136
12137 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12138
12139         * gpmevent.c (tty_selection_exists_p):
12140         * gpmevent.c (tty_own_selection):
12141         Updated parameter lists.
12142
12143 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12144
12145         * select.h (selection-alist): Removed declaration.
12146
12147         * select.h (get_local_selection):
12148         * select.c (get_local_selection):
12149         Made static.
12150
12151         * select.h (convert_selection): Removed declaration.
12152         * select.c (convert_selection): Removed.
12153         This function belongs in Lisp.
12154
12155         * select.h (select_convert_in): Declare.
12156         * select.h (select_convert_out): Declare.
12157         * select.c (select_convert_in): New.
12158         * select.c (select_convert_out): New.
12159         New conversion functions for other files to call.
12160
12161         * select.h (select_notify_buffer_kill): Declare.
12162         * select.c (select_notify_buffer_kill): New.
12163         New functions that get called from kill-buffer.
12164
12165         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12166         X-specific lisp code.
12167
12168         * select.h: Declare some of the lisp-visible functions for
12169         external use.
12170
12171         * select.c (clean_local_selection_data): Removed. This was
12172         a disgusting function, and previously should have been in
12173         select-x.c in any case. The functionality is now provided
12174         in select-convert-from-integer (select.el).
12175
12176         * select.c (available-selection-types): Fixed stupidity where
12177         INTEGER and ATOM got added twice. Also add STRING when we see an
12178         extent.
12179
12180         * select.c (get-selection-internal): Removed symbol stripping. No
12181         longer causes conversion when data comes from the internal cache.
12182
12183         * select.c (syms_of_select): Added new functions.
12184
12185         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12186         error checking - previously this called abort!
12187
12188         * select-x.c (x_own_selection): Changed comment.
12189
12190         * select-x.c (x_handle_selection_request): Use select_convert_out.
12191         Don't mess with selection-alist; it's an internal variable of select.c.
12192
12193         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12194
12195         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12196         rather than messing with selection-alist.
12197
12198         * select-msw.c (mswindows_get_foreign_selection):
12199         Use TO_INTERNAL_FORMAT rather than hacking.
12200
12201 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12202
12203         * process-unix.c (unix_open_multicast_group):
12204         (unix_open_multicast_group): Remove useless casts.
12205
12206 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12207
12208         * sound.c (Fplay_sound): Fix `unused variable' warning.
12209
12210         * emacs.c (main): Use correct type for _environ on SCO5.
12211
12212 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12213
12214         * console.h (own_selection_method):
12215         * console.h (selection_exists_p_method):
12216         * console.h (available_selection_types_method): New.
12217         * console.h (register_selection_data_type_method): New.
12218         * console.h (selection_data_type_name): New.
12219
12220         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12221         function & alist to track GlobalAlloc()'d handles that need
12222         releasing when the clipboard data gets replaced or emptied.
12223
12224         * event-msw.c (mswindows_wnd_proc): Call it.
12225
12226         * lisp.h, general.c (Qappend): New symbol representing a
12227         `how-to-add' mode.
12228
12229         * select.c (own-selection-internal):
12230         * select.c (selection-exists-p):
12231         * select.c (available-selection-types): New.
12232         * select.c (register-selection-data-type): New.
12233         * select.c (selection-data-type-name): New.  New functions to deal
12234         with device-specific selection data formats.
12235         * select.c (selection-converter-out-alist): Renamed.
12236         * select.c (selection-converter-in-alist): New.
12237         * select.c (selection-appender-alist): New.  Added new alists.
12238         * select.c (syms_of_select, vars_of_select): Added new symbols &
12239         variables.
12240         * select.c (get_local_selection): Split.
12241         * select.c: Removed spurious type checking - selections may now be
12242         of any type, not just strings.
12243         * select.c (own-selection-internal):
12244
12245         * select.h, select.c (convert_selection): New. Created
12246         convert_selection() function based on get_local_selection().
12247         * select.h, select.c (QCF_*): New symbols representing mswindows
12248         clipboard formats.
12249         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12250         symbols representing `how-to-add' modes.
12251
12252         * select-msw.c (x_sym_p): New.
12253         * select-msw.c (symbol_to_ms_cf): New.
12254         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12255         symbols & clipboard formats. Can also handle string names.
12256         * select-msw.c (mswindows_own_selection):
12257         * select-msw.c (mswindows_selection_exists_p):
12258         Added `data-type' parameter. Use it.
12259         * select-msw.c (mswindows_available_selection_types): New.
12260         * select-msw.c (mswindows_register_selection_data_type): New.
12261         * select-msw.c (mswindows_selection_data_type_name): New.
12262         * select-msw.c (mswindows_own_selection):
12263         * select-msw.c (mswindows_get_foreign_selection):
12264         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12265         * select-msw.c (console_create_select_mswindows): Added new methods.
12266         * select-msw.c (mswindows_destroy_selection): New.
12267         * select-msw.c (Vhandle_alist): New list.
12268         * select-msw.c (mswindows_own_selection):
12269
12270         * select-x.c (x_own_selection):
12271         * select-x.c (x_selection_exists_p):
12272         * select-x.c: Added some comments about maybe using new
12273         functionality.
12274         * select-x.c (x_own_selection):
12275
12276         * specifier.c: Remove definition of Qappend (now in general.c)
12277         * specifier.c (syms_of_specifier): Remove Qappend.
12278
12279 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12280
12281         * config.h.in: Add socklen_t.
12282
12283         * s/decosf4-0.h: No special compiler flags needed or desired.
12284         In particular, undefine _BSD for DEC OSF 4.0.
12285
12286 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12287
12288         * redisplay-msw.c (msprinter_frame_output_end): Added.
12289         (console_type_create_redisplay_mswindows): Referred the above.
12290
12291         * frame.c (setup_frame_without_minibuffer): Do not create a
12292         default minibuffer frame on a printer device.
12293
12294         * frame-msw.c (apply_dc_geometry): Added.
12295         (msprinter_start_page):
12296         (msprinter_init_frame_3):
12297         (msprinter_eject_page): Use it.
12298
12299         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12300         and removed residual duplex and orientation properties.
12301
12302 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12303
12304         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12305
12306         * unexalpha.c: Remove system prototypes from C sources!
12307
12308 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12309
12310         * eval.c: Remove references to M-x edit-options in DEFUNs for
12311         `defvar' and `defconst'.
12312
12313 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12314
12315         * config.h.in: Remove SMART_INCLUDE hackery.
12316
12317         PostgreSQL hacking:
12318         * config.h.in: Don't use SMART_INCLUDE.
12319
12320         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12321         * inline.c: Simply #include "postgresql.h"
12322         * postgresql.c:
12323         - Don't use SMART_INCLUDE
12324         - Use simply "const".
12325         - Use standard doc string conventions.
12326         - Use correct type for result of PQstatus.
12327
12328 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12329
12330         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12331
12332         C++ compilation changes.
12333         * config.h.in (EXTERN_C): Define.
12334         * config.h.in (not): This is also a C++ keyword.
12335         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12336         * cm.c: Use EXTERN_C.
12337         * redisplay-tty.c: Use EXTERN_C.
12338         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12339
12340 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12341
12342         * general.c: Remove duplicate definition for Qfunction.
12343
12344 2000-07-08  Ben Wing  <ben@xemacs.org>
12345
12346         * device-msw.c (msprinter_init_device):
12347         * device-msw.c (sync_printer_with_devmode):
12348         * device-msw.c (handle_devmode_changes):
12349         * device-msw.c (print_dialog_worker):
12350         * device-msw.c (Fmsprinter_apply_settings):
12351         * device-msw.c (hash_devmode):
12352         * device-msw.c (Fmsprinter_settings_despecialize):
12353         use Qmswindows_tstr, not Qctext.
12354
12355         * vm-limit.c (check_memory_limits):
12356         avoid infinite loop printing warning messages.
12357
12358 2000-07-05  Craig Lanning  <lanning@scra.org>
12359
12360         * Makefile.in.in: Add support for including the Windows resources
12361         when building with the cygwin and mingw targets.
12362
12363         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12364         not set or not correct.
12365         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12366         (init_initial_directory): Don't try to use $PWD on the
12367         WIN32_NATIVE target.
12368
12369         * s\cygwin32.h:
12370         [[Add -mwindows to eliminate console window.]] not required --ben
12371         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12372         (MAIL_USE_POP): removed; now handled by configure.
12373
12374         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12375         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12376         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12377         (MAIL_USE_POP): removed; now handled by configure.
12378         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12379         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12380         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12381         constant string.
12382         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12383         up from <winsock.h> via systime.h.
12384         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12385         (getpagesize): from Dan Holmsand, added.
12386         Added #endif which was left dangling by Ben's mega patch; added
12387         comment to help prevent this in the future.
12388
12389         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12390
12391 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12392
12393         * console-msw.h (struct mswindows_device): Removed unnecessary
12394         cached device geometry values.
12395         Added update_tick and an accessor macro.
12396         (Lisp_Devmode): Added lrecord declaration.
12397         (struct msprinter_device): Contain devmode as a Lisp object.
12398         Added mswindows_get_selected_frame_hwnd();
12399
12400         * console.h (struct console_methods): Indentation nitpicking.
12401
12402         * device-msw.c (mswindows_init_device): Do not initialize geometry
12403         cache. Initialize update tick.
12404         (mswindows_device_system_metrics): Ask the device for its geometry.
12405         (global_free_2_maybe):
12406         (devmode_to_hglobal):
12407         (handle_printer_changes):
12408         (ensure_not_printing):
12409         (print_dialog_worker):
12410         (Fmsprinter_print_setup_dialog):
12411         (Fmsprinter_print_dialog):
12412         (plist_get_margin):
12413         (plist_set_margin):
12414         (Fmsprinter_page_setup_dialog): Added functions.
12415         (sync_printer_with_devmode):
12416         (handle_devmode_changes):
12417         (Fmsprinter_get_settings):
12418         (Fmsprinter_select_settings):
12419         (Fmsprinter_apply_settings):
12420         (allocate_devmode):
12421         (Fmsprinter_settings_copy):
12422         (Fmsprinter_settings_despecialize):
12423         (print_devmode):
12424         (finalize_devmode):
12425         (equal_devmode):
12426         (hash_devmode): Added functions
12427         (syms_of_device_mswindows): Init devmode lrecord class.
12428
12429         * device.h: Added an exfun for find-device.
12430
12431         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12432         geometry; although, recreate the device compatible DC.
12433
12434         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12435         (msprinter_init_frame_3):
12436         (msprinter_frame_property):
12437         (msprinter_internal_frame_property_p):
12438         (msprinter_frame_properties):
12439         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12440         print job properties (will move to device settings).
12441
12442         * lisp.h: Added symbols.
12443
12444         * general.c (syms_of_general): Declared them.
12445
12446         * hash.c (string_hash): Added.
12447
12448         * lrecord.h (lrecord_type): Added devmode lrecord type.
12449
12450 2000-07-02  Mike Sperber <mike@xemacs.org>
12451
12452         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12453         FreeBSD 4.0.
12454
12455 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12456
12457         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12458         integer.
12459
12460 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12461
12462         * data.c (Fstring_to_number): Don't recognize floating point if
12463         base is not 10.
12464
12465 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12466
12467         * glyphs-widget.c (tab_control_query_geometry):
12468         (widget_query_geometry):
12469         (button_query_geometry):
12470         * glyphs.c (text_query_geometry):
12471         Enforce type correctness.
12472
12473 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12474
12475         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12476         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12477
12478 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12479
12480         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12481         conflicts with gcc's fixincluded version of FOO.h.
12482
12483         * glyphs.h (image_instance_geometry): Remove trailing `,'
12484
12485 2000-06-08  Mike Alexander  <mta@arbortext.com>
12486
12487         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12488         (shove_thread): Don't write the same output twice
12489         (make_ntpipe_output_stream): Increase priority of shove thread
12490         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12491         chance to run
12492         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12493         it.
12494
12495 2000-06-12  Ben Wing  <ben@xemacs.org>
12496
12497         * s\mingw32.h (sigset):
12498         * s\windowsnt.h (sigset):
12499         rename msw_ to mswindows_ for consistency with general convention.
12500
12501 2000-06-12  Ben Wing  <ben@xemacs.org>
12502
12503         * console-msw.c:
12504         * console-msw.c (mswindows_get_console_hwnd):
12505         * console-msw.c (mswindows_ensure_console_allocated):
12506         * console-msw.c (mswindows_hide_console):
12507         * console-msw.c (mswindows_show_console):
12508         * console-msw.c (mswindows_ensure_console_buffered):
12509         * console-msw.c (mswindows_output_console_string):
12510         * console-msw.c (mswindows_windows9x_p):
12511         * console-msw.h:
12512         * device-msw.c (mswindows_get_workspace_coords):
12513         * device-msw.c (mswindows_device_system_metrics):
12514         * dialog-msw.c (mswindows_popup_dialog_box):
12515         * event-msw.c (mswindows_wnd_proc):
12516         * frame-msw.c (mswindows_size_frame_internal):
12517         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12518         * menubar-msw.c (displayable_menu_item):
12519         * menubar-msw.c (mswindows_char_is_accelerator):
12520         * nt.c:
12521         * nt.c (mswindows_sigset):
12522         * nt.c (mswindows_sigrelse):
12523         * nt.c (mswindows_sigpause):
12524         * nt.c (mswindows_raise):
12525         * nt.c (timer_proc):
12526         * ntproc.c:
12527         * ntproc.c (find_child_console):
12528         * ntproc.c (sys_kill):
12529         * print.c:
12530         * print.c (std_handle_out_external):
12531         * process-nt.c (find_child_console):
12532         * process-nt.c (send_signal_the_95_way):
12533         * process-nt.c (ensure_console_window_exists):
12534         * process-nt.c (nt_create_process):
12535         * syssignal.h:
12536         rename msw_ to mswindows_ for consistency with general convention.
12537
12538         * emacs.c:
12539         * dumper.c:
12540         include nt.h, not syswindows.h.
12541
12542         * nt.c (mswindows_fstat):
12543         * nt.c (mswindows_stat):
12544         prefix mswindows_ instead of attempting to directly override the
12545         library functions.  fix declarations.
12546
12547         * nt.h:
12548         include syswindows.h.  move some sysdep.h stuff here.
12549
12550         * ntheap.h:
12551         include syswindows.h, not <windows.h>.
12552
12553         * ntplay.c:
12554         clean up headers.
12555
12556         * sysdep.c:
12557         clean up headers.
12558
12559         * sysdep.c (sys_fstat):
12560         * sysdep.c (sys_stat):
12561         call mswindows versions when appropriate.
12562
12563         * sysdep.h:
12564         move mswin decls to nt.h.
12565
12566         * syswindows.h:
12567         add long comment describing appropriate use of the various windows
12568         headers.
12569
12570 2000-06-11  Ben Wing  <ben@xemacs.org>
12571
12572         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12573
12574 2000-06-10  Ben Wing  <ben@xemacs.org>
12575
12576         * Makefile.in.in (release):
12577         Correction to make sure xemacs.exe always dumped when correct.
12578
12579         * alloca.c:
12580         * balloon_help.c:
12581         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12582
12583         * buffer.c (set_buffer_internal):
12584         [[[[2]]]]: Remove HAVE_FEP code.
12585
12586         * buffer.c (init_initial_directory):
12587         [3].
12588
12589         * bytecode.c:
12590         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12591         individual files.
12592
12593         * callproc.c:
12594         * callproc.c (call_process_cleanup):
12595         * callproc.c (Fold_call_process_internal):
12596         * callproc.c (child_setup):
12597         * callproc.c (getenv_internal):
12598         * callproc.c (init_callproc):
12599         * callproc.c (vars_of_callproc):
12600         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12601         __CYGWIN32__ -> CYGWIN.
12602         DOS_NT -> WIN32_NATIVE.
12603         Remove MSDOS support/references, converting to WIN32_NATIVE
12604           where correct.
12605         __MINGW32__ -> MINGW.
12606         Fix windows.h includes.
12607         Remove bogus HAVE_NTGUI.
12608
12609         * config.h.in:
12610         [2].
12611
12612         * console-msw.c:
12613         mswindows_message_outputted added for use in allowing startup
12614         errors on the console to be seen.
12615
12616         * console-msw.c (msw_ensure_console_allocated):
12617         * console-msw.c (msw_output_console_string):
12618         * console-msw.c (DHEADER):
12619         * console-msw.c (DOPAQUE_DATA):
12620         * console-msw.c (DEVENT):
12621         * console-msw.c (DCONS):
12622         * console-msw.c (DCONSCDR):
12623         * console-msw.c (DSTRING):
12624         * console-msw.c (DVECTOR):
12625         * console-msw.c (DSYMBOL):
12626         * console-msw.c (DSYMNAME):
12627         Fix warnings.
12628
12629         * console-stream.c (stream_init_console):
12630         Fix text/binary problems.
12631
12632         * device-msw.c:
12633         * device-msw.c (mswindows_finish_init_device):
12634         * device-msw.c (mswindows_delete_device):
12635         [1].
12636
12637         * device.c (handle_asynch_device_change):
12638         [3].
12639
12640         * dgif_lib.c:
12641         * dgif_lib.c (DGifOpenFileName):
12642         * dgif_lib.c (DGifOpenFileHandle):
12643         * dgif_lib.c (DGifGetLine):
12644         * dgif_lib.c (DGifGetPixel):
12645         Added config.h/lisp.h, fix up includes.
12646         [1].
12647
12648         * dired-msw.c:
12649         [4].
12650
12651         * dired.c:
12652         * dired.c (file_name_completion):
12653         * dired.c (Ffile_attributes):
12654         * dired.c (syms_of_dired):
12655         [1].
12656
12657         * dumper.c:
12658         * dumper.c (pdump_file_unmap):
12659         * dumper.c (pdump_load):
12660         [1].
12661
12662         * editfns.c:
12663         * editfns.c (Ftemp_directory):
12664         * editfns.c (user_login_name):
12665         * editfns.c (Fuser_real_login_name):
12666         * editfns.c (get_home_directory):
12667         [1].
12668
12669         * elhash.c (finish_marking_weak_hash_tables):
12670         [[[[5]]]]: Fix GCC warnings.
12671
12672         * emacs.c:
12673         * emacs.c (mswindows_handle_hardware_exceptions):
12674         * emacs.c (make_arg_list_1):
12675         * emacs.c (main_1):
12676         * emacs.c (Fkill_emacs):
12677         * emacs.c (Fdump_emacs):
12678         [1].
12679         Fix problems with nested crashes, add long comment.
12680
12681         * event-Xt.c (init_event_Xt_late):
12682         [1].
12683
12684         * event-msw.c:
12685         * event-msw.c (mswindows_dde_callback):
12686         * event-msw.c (mswindows_handle_sticky_modifiers):
12687         * event-msw.c (mswindows_wnd_proc):
12688         [1].
12689         [5].
12690
12691         * events.c (character_to_event):
12692         [1].
12693
12694         * fileio.c:
12695         * fileio.c (Ffile_name_directory):
12696         * fileio.c (Ffile_name_nondirectory):
12697         * fileio.c (directory_file_name):
12698         * fileio.c (Fexpand_file_name):
12699         * fileio.c (Fsubstitute_in_file_name):
12700         * fileio.c (Ffile_name_absolute_p):
12701         * fileio.c (check_executable):
12702         * fileio.c (Ffile_readable_p):
12703         * fileio.c (Ffile_accessible_directory_p):
12704         * fileio.c (Ffile_modes):
12705         * fileio.c (Funix_sync):
12706         * fileio.c (vars_of_fileio):
12707         [1]. [4].
12708
12709         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12710
12711         Expand getdefdir defn.
12712         Fix bogus rename() comment.
12713
12714         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12715         to use standard XEmacs include files, e.g. sysfile.h, rather
12716         than system-specific includes.
12717
12718         * fns.c:
12719         * fns.c (Fsubseq):
12720         [5]. [6].
12721
12722         * frame.c (vars_of_frame):
12723         [1].
12724
12725         * getloadavg.c:
12726         * getloadavg.c (getloadavg):
12727         [1]. [6].
12728         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12729         (We don't use it elsewhere in the code; just add a comment.)
12730
12731         * gif_io.c:
12732         [6].
12733         Add config.h.
12734
12735         * glyphs-msw.c:
12736         * glyphs-msw.c (mswindows_resource_instantiate):
12737         [1].
12738
12739         * glyphs-x.c (x_native_layout_instantiate):
12740         [5].
12741
12742         * gui-msw.c (Fmswindows_shell_execute):
12743         [1].
12744
12745         * insdel.c:
12746         [4].
12747
12748         * lisp.h:
12749         [4]. [5].
12750
12751         * lread.c (locate_file_in_directory_mapper):
12752         [1].
12753
12754         * lstream.c:
12755         [4].
12756
12757         * mem-limits.h:
12758         * mem-limits.h (get_lim_data):
12759         [1].
12760
12761         * menubar-msw.c:
12762         [4].
12763
12764         * ndir.h:
12765         [1].
12766
12767         * nt.c:
12768         * nt.c (getwd):
12769         * nt.c (closedir):
12770         * nt.c (rva_to_section):
12771         * nt.c (mswindows_executable_type):
12772         [1]. [6].
12773         Fix closedir() defn.
12774
12775         * nt.h:
12776         [[[[8]]]]: *_OK defs moved to sysfile.h.
12777
12778         * ntproc.c:
12779         [6]. [7].
12780
12781         * objects-x.c:
12782         [4].
12783
12784         * print.c:
12785         * print.c (std_handle_out_external):
12786         [1]. [4].
12787
12788         * process-nt.c:
12789         * process-nt.c (nt_create_process):
12790         [6].
12791         try to fix process quoting somewhat.
12792
12793         * process-unix.c (unix_create_process):
12794         [1].
12795
12796         * process.c:
12797         * process.c (vars_of_process):
12798         Add Vnull_device.
12799
12800         * process.h:
12801         [1].
12802
12803         * realpath.c:
12804         * realpath.c (xrealpath):
12805         [1].
12806
12807         * redisplay-tty.c (init_tty_for_redisplay):
12808         [3].
12809
12810         * redisplay.c:
12811         [4]. [6].
12812
12813         * scrollbar-msw.c:
12814         [4].
12815
12816         * sheap.c:
12817         * sheap.c (more_static_core):
12818         * sheap.c (report_sheap_usage):
12819         [5]. [6].
12820
12821         * signal.c:
12822         * signal.c (alarm_signal):
12823         [1]. [6].
12824
12825         * sound.c:
12826         [6].
12827
12828         * strftime.c:
12829         * strftime.c (zone_name):
12830         [1]. [5].
12831
12832         * symsinit.h (init_sunpro):
12833         [1].
12834
12835         * syscommctrl.h:
12836         commctrl.h not in Cygwin b20.1.
12837
12838         * sysdep.c:
12839         * sysdep.c (endif):
12840         * sysdep.c (sys_subshell):
12841         * sysdep.c (init_baud_rate):
12842         * sysdep.c (emacs_get_tty):
12843         * sysdep.c (emacs_set_tty):
12844         * sysdep.c (tty_init_sys_modes_on_device):
12845         * sysdep.c (init_system_name):
12846         * sysdep.c (sys_open):
12847         * sysdep.c (interruptible_open):
12848         * sysdep.c (sys_fopen):
12849         * sysdep.c (sys_mkdir):
12850         * sysdep.c (sys_rename):
12851         * sysdep.c (get_process_times_1):
12852         [1]. [6].
12853
12854         * sysdep.h:
12855         [1].
12856
12857         * sysdir.h:
12858         * sysdir.h (DIRENTRY_NONEMPTY):
12859         [1]. [6].
12860
12861         * sysdll.c (dll_init):
12862         * sysdll.h:
12863         [1].
12864
12865         * sysfile.h:
12866         [1]. [6]. [8].
12867         added text/binary defs.
12868
12869         * sysfloat.h:
12870         [1].
12871
12872         * sysproc.h:
12873         * sysproc.h (EDESTADDRREQ):
12874         * sysproc.h (poll_fds_for_input):
12875         [1]. [6].
12876
12877         * syspwd.h:
12878         [6].
12879
12880         * syssignal.h:
12881         [1].
12882
12883         * systime.h:
12884         [1]. [6].
12885
12886         * systty.h:
12887         [1].
12888
12889         * syswindows.h:
12890         [1].
12891         Always define WIN32_LEAN_AND_MEAN.
12892
12893         * unexcw.c (unexec):
12894         [5].
12895
12896         * unexec.c:
12897         * unexec.c (copy_text_and_data):
12898         * unexec.c (adjust_lnnoptrs):
12899         [1].
12900
12901         * unexnt.c:
12902         * unexnt.c (_start):
12903         [1].
12904
12905 2000-06-07  Ben Wing  <ben@xemacs.org>
12906
12907         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12908         was used only as a model.  We've long since extracted any useful
12909         logic or code out of this. (I just did an exhaustive search.)
12910
12911         * s\msdos.h: Removed.
12912
12913         * s\windows95.h: Removed.
12914
12915 2000-06-10  Ben Wing  <ben@xemacs.org>
12916
12917         * s\cygwin32.h:
12918         [1]. [5].
12919         Don't use extern with fun defs.
12920
12921         * s\mingw32.h:
12922         [1]. [7].
12923         Remove nt\inc include.
12924         Remove getdisk, getdefdir. (The former is unused, the latter
12925         expanded in fileio.h.)
12926
12927         * s\windowsnt.h:
12928         * s\windowsnt.h (WIN32_NATIVE):
12929         * s\windowsnt.h (HAVE_STRCASECMP):
12930         [1]. [7].
12931         Add long comment about preprocessor changes.
12932         Remove getdisk, getdefdir. (The former is unused, the latter
12933         expanded in fileio.h.)
12934
12935 2000-06-10  Ben Wing  <ben@xemacs.org>
12936
12937         * m\arm.h:
12938         * m\delta.h:
12939         * m\intel386.h:
12940         * m\sequent.h:
12941         * m\template.h:
12942         * m\windowsnt.h:
12943         [1].
12944         Remove bogus/unused NO_SOCK_SIGIO.
12945
12946 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12947
12948         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12949         not an Emchar.
12950
12951 2000-06-04  Mike Sperber <mike@xemacs.org>
12952
12953         * casetab.c (set_case_table): For `set-standard-case-table',
12954         actually deposit the new case tables where the rest of XEmacs can
12955         see them.
12956
12957 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12958
12959         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12960
12961 2000-06-05  Ben Wing  <ben@xemacs.org>
12962
12963         * callproc.c (child_setup): Don't do close_load_descs() under
12964         MS Windows.  Put in a comment explaining why.
12965
12966 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12967
12968         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12969         Toolkit shell" which breaks `kill-compilation' on Windows NT
12970         native, retaining STDERR handling improvements.
12971
12972 2000-06-01  Andreas Jaeger  <aj@suse.de>
12973
12974         * s/s390.h: Support for S390, based on a patch by Martin
12975         Schwidefsky <schwidefsky@de.ibm.com>.
12976
12977 2000-05-30  Andy Piper  <andy@xemacs.org>
12978
12979         * window.c (allocate_window):
12980         (make_dummy_parent):
12981         (Fset_window_configuration): use new hashtable type.
12982
12983         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12984         (struct image_instantiator_methods):
12985         (struct Lisp_Image_Instance): make instance geometry signed.
12986
12987         * glyphs.c (instantiate_image_instantiator):
12988         (image_instance_query_geometry):
12989         (image_instance_layout):
12990         (image_instance_layout):
12991         (query_string_geometry):
12992         (text_query_geometry):
12993         (image_instantiate):
12994         (image_instantiate):
12995         (cache_subwindow_instance_in_frame_maybe):
12996         (subwindow_query_geometry): make instance geometry signed.
12997
12998         * glyphs-widget.c (widget_query_geometry):
12999         (widget_layout):
13000         (button_query_geometry):
13001         (tree_view_query_geometry):
13002         (tab_control_query_geometry):
13003         (layout_query_geometry):
13004         (layout_layout):
13005         (native_layout_layout): make instance geometry signed.
13006
13007 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13008
13009         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13010         constant.
13011
13012         * general.c (syms_of_general): Add Qfull_assoc symbol.
13013
13014         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13015         correctly.
13016         (decode_weak_list_type): Decode full-assoc type.
13017         (encode_weak_list_type): Encode full-assoc type.
13018         (Fmake_weak_list): Update doc string.
13019
13020 2000-05-30  Andy Piper  <andy@xemacs.org>
13021
13022         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13023
13024         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13025         (decode_hash_table_weakness): ditto.
13026         (Fhash_table_weakness): ditto.
13027         (Fhash_table_type): ditto.
13028         (finish_marking_weak_hash_tables): ditto.
13029         (hash_table_weakness_validate): ditto.
13030         (syms_of_elhash): ditto.
13031
13032 2000-05-28  Martin Buchholz <martin@xemacs.org>
13033
13034         * XEmacs 21.2.34 is released.
13035
13036 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13037
13038         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13039         start cache.
13040         (updating_line_start_cache): Gone.
13041         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13042         generic code to force a minimum of 1 line laid out in the
13043         CMOTION_DISP case.
13044
13045 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13046
13047         * glyphs.c (instantiate_image_instantiator): Check for initialized
13048         height & width no longer special cases IMAGE_NOTHING.
13049         (nothing_instantiate): Set height and width of instance.
13050
13051 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13052
13053         * unexelf.c (unexec): Search for ".data" section.
13054         Initialize new_data2_offset from old_data_index.
13055         Remove redundant check for ElfW.
13056
13057 2000-05-23  Andy Piper  <andy@xemacs.org>
13058
13059         * glyphs.c (get_image_instantiator_governing_domain): allow more
13060         specific domains as the governing domain rather than expecting an
13061         exact match. This fixes problems with layouts.
13062
13063 2000-05-22  Andy Piper  <andy@xemacs.org>
13064
13065         * redisplay-output.c (compare_runes): check for non-images
13066
13067         * glyphs.c (set_glyph_dirty_p): ditto.
13068         (update_glyph_cachel_data): ditto.
13069
13070         * glyphs-widget.c (layout_post_instantiate): ditto.
13071         (layout_post_instantiate): ditto.
13072
13073         * event-msw.c (mswindows_wnd_proc): warning removal.
13074
13075 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13076
13077         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13078
13079         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13080
13081         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13082
13083         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13084         (mswindows_executable_type): mingw32 now has enough headers for
13085         this to work.
13086
13087 2000-05-20  Andy Piper  <andy@xemacs.org>
13088
13089         * console-msw.c (mswindows_output_last_error): ; -> ,
13090
13091 2000-05-12  Andy Piper  <andy@xemacs.org>
13092
13093         * console-msw.c (FROB): compare ints with ints.
13094
13095 2000-05-11  Andy Piper  <andy@xemacs.org>
13096
13097         * glyphs-x.c (x_finalize_image_instance): make minimal build
13098         happy.
13099
13100 2000-05-20  Ben Wing  <ben@xemacs.org>
13101
13102         * event-Xt.c:
13103         * event-Xt.c (vars_of_event_Xt):
13104         move modifier-keys-are-sticky to event-stream.c.
13105
13106         * event-msw.c:
13107         * event-msw.c (mswindows_enqueue_mouse_button_event):
13108         * event-msw.c (key_needs_default_processing_p):
13109         * event-msw.c (XEMSW_LCONTROL):
13110         * event-msw.c (mswindows_handle_sticky_modifiers):
13111         * event-msw.c (FROB):
13112         * event-msw.c (clear_sticky_modifiers):
13113         * event-msw.c (output_modifier_keyboard_state):
13114         * event-msw.c (output_alt_keyboard_state):
13115         * event-msw.c (mswindows_wnd_proc):
13116         * event-msw.c (mswindows_modifier_state):
13117         * event-msw.c (emacs_mswindows_handle_magic_event):
13118         implement sticky modifiers.
13119
13120         * event-stream.c:
13121         * event-stream.c (vars_of_event_stream):
13122         move modifier-keys-are-sticky here.
13123
13124         * lisp.h:
13125         add CHECK_FUNCTION.
13126
13127         * rangetab.c:
13128         implement map-range-table.
13129
13130
13131 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13132
13133         * redisplay-tty.c (reset_tty_modes):
13134         (tty_redisplay_shutdown): Adjust argument type to
13135         tty_frame_output_end.
13136
13137 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13138
13139         * eval.c (Fbacktrace): Don't output a line with only right
13140         parenthesis.
13141
13142 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13143
13144         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13145         (Fpq_reset_poll): Ditto.
13146
13147 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13148
13149         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13150
13151 2000-05-16  Ben Wing  <ben@xemacs.org>
13152
13153         * buffer.c:
13154         * buffer.c (dfc_convert_to/from_internal_format):
13155         * buffer.c (reinit_vars_of_buffer):
13156         Fix conversion functions to allow reentrancy.
13157
13158         * console-msw.c:
13159         * console-msw.c (mswindows_output_last_error):
13160         New fun, generally useful -- output a human-readable
13161         version of GetLastError() on the console.
13162
13163         * console-msw.h:
13164         * console-msw.h (struct mswindows_frame):
13165         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13166
13167         * console-stream.c (stream_output_begin):
13168         * console-stream.c (stream_output_end):
13169         * console-stream.c (stream_output_vertical_divider):
13170         * console-stream.c (stream_clear_region):
13171         * console-stream.c (stream_flash):
13172         * console-stream.c (console_type_create_stream):
13173         Delete blank stream methods, not needed.
13174
13175         * console.h (struct console_methods):
13176         Split begin/end methods into window and frame.
13177
13178         * event-msw.c:
13179         * event-msw.c (mswindows_handle_paint):
13180         * event-msw.c (output_alt_keyboard_state):
13181         * event-msw.c (mswindows_wnd_proc):
13182         * event-msw.c (vars_of_event_mswindows):
13183         Comment about problems with ignored-expose.
13184         Define mswindows-debug-events; not really implemented.
13185
13186         * frame-msw.c (mswindows_init_frame_1):
13187         random cleanups.
13188
13189         * glyphs-msw.c:
13190         * glyphs-msw.c (begin_defer_window_pos):
13191         * glyphs-msw.c (mswindows_unmap_subwindow):
13192         * glyphs-msw.c (mswindows_map_subwindow):
13193         * glyphs-msw.c (mswindows_resize_subwindow):
13194         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13195
13196         * glyphs.c (make_image_instance_1):
13197         Fix crash.
13198
13199         * gutter.c (Fredisplay_gutter_area):
13200         Use new begin/end methods.
13201
13202         * lisp.h (Dynarr_new2):
13203         New creation fun.
13204
13205         * redisplay-msw.c:
13206         * redisplay-msw.c (mswindows_frame_output_begin):
13207         * redisplay-msw.c (mswindows_frame_output_end):
13208         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13209         New begin/end methods -- handle DeferWindowPos.
13210
13211         * redisplay-output.c (redisplay_move_cursor):
13212         * redisplay-output.c (redraw_cursor_in_window):
13213         * redisplay-output.c (redisplay_update_line):
13214         * redisplay-output.c (redisplay_output_window):
13215         New begin/end methods.
13216
13217         * redisplay-tty.c:
13218         * redisplay-tty.c (tty_frame_output_begin):
13219         * redisplay-tty.c (tty_frame_output_end):
13220         * redisplay-tty.c (console_type_create_redisplay_tty):
13221         New begin/end methods.
13222
13223         * redisplay-x.c:
13224         * redisplay-x.c (x_window_output_begin):
13225         * redisplay-x.c (x_window_output_end):
13226         * redisplay-x.c (console_type_create_redisplay_x):
13227         New begin/end methods.
13228
13229         * redisplay.c (redisplay_frame):
13230         * redisplay.c (Fredisplay_echo_area):
13231         New begin/end methods.
13232         use MAYBE_DEVMETH for clear_frame; it may not exist.
13233
13234         * window.h (WINDOW_XFRAME):
13235         WINDOW_XFOO macros -- get locale and decode struct pointer.
13236
13237
13238 2000-05-12  Ben Wing  <ben@xemacs.org>
13239
13240         * emacs.c:
13241         * emacs.c (ensure_no_quitting_from_now_on):
13242         * emacs.c (fatal_error_signal):
13243         * emacs.c (mswindows_handle_hardware_exceptions):
13244         * emacs.c (main):
13245         * emacs.c (Fkill_emacs):
13246         * emacs.c (shut_down_emacs):
13247         * emacs.c (assert_failed):
13248         various improvements in fatal error handling.
13249
13250         * eval.c:
13251         move preparing_for_armageddon to emacs.c.
13252
13253         * lisp.h:
13254         declare fatal_error_in_progress.
13255
13256         * print.c:
13257         * print.c (std_handle_out_external):
13258         * print.c (std_handle_out_va):
13259         * print.c (stderr_out):
13260         * print.c (stdout_out):
13261         use console under mswin when no standard output.
13262         don't do code conversion during fatal error.
13263
13264         * scrollbar.c (Fscrollbar_page_up):
13265         * scrollbar.c (Fscrollbar_page_down):
13266         fix missing else.  reindent.
13267
13268 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13269
13270         Emergency fix.
13271
13272         * glyphs.h (GLYPH_CACHEL_DESCENT):
13273         (GLYPH_CACHEL_DESCENT):
13274         (GLYPH_CACHEL_DESCENT):
13275         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13276         used in case these are inline functions.
13277         Use more absurd values to error check.
13278
13279         include window.h for error check functions.
13280
13281 2000-05-11  Ben Wing  <ben@xemacs.org>
13282
13283         * cmdloop.c (Freally_early_error_handler):
13284         Display message box under windows; otherwise, message will disappear
13285         before it can be viewed.
13286
13287         * console-msw.c:
13288         * console-msw.c (Fmswindows_message_box):
13289         * console-msw.c (FROB):
13290         * console-msw.c (syms_of_console_mswindows):
13291         Define new fun `mswindows-message-box'.
13292         #### I will merge this into `popup-dialog-box'; just give me
13293         a bit of time.
13294
13295         * general.c:
13296         * general.c (syms_of_general):
13297         Some new symbols used in `mswindows-message-box'.
13298
13299         * glyphs.c:
13300         * glyphs.c (Fset_image_instance_property):
13301         put warning in this fun.
13302
13303         * glyphs.h:
13304         * glyphs.h (GLYPH_CACHEL_WIDTH):
13305         * glyphs.h (GLYPH_CACHEL_ASCENT):
13306         * glyphs.h (GLYPH_CACHEL):
13307         * glyphs.h (GLYPH_CACHEL_GLYPH):
13308         define error-checking versions to try to catch a bug i've seen --
13309         redisplay gets in an infinite loop because the glyph width of the
13310         continuation glyph is 65535.
13311
13312         * lisp.h:
13313         Extern message-box stuff.
13314
13315         * window.c (allocate_window):
13316         * window.c (make_dummy_parent):
13317         * window.c (Fset_window_configuration):
13318         Use EQUAL not EQ for subwindow caches to make them work a bit
13319         better. (Something is still very broken.)
13320
13321
13322 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13323
13324         * glyphs.c (image_instantiate): Suppress gcc warnings.
13325         (Fmake_image_instance): Fix doc string.
13326         * specifier.c (Fmake_specifier): Ditto.
13327
13328 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13329
13330         * paths.h.in (PATH_LOCK): Removed.
13331         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13332         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13333
13334 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13335
13336         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13337         Document (featurep '(and xemacs 21.02)).
13338
13339 2000-05-09  Ben Wing  <ben@xemacs.org>
13340
13341         * buffer.c (complex_vars_of_buffer):
13342         update modeline-format doc.
13343
13344         * device.h:
13345         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13346
13347         * emacs.c:
13348         timeline of all released versions of Emacs, for use in creating
13349         authorship comments and in synching up.
13350
13351         * glyphs-widget.c (image_instantiator_buttons):
13352         * glyphs-widget.c (image_instantiator_edit_fields):
13353         * glyphs-widget.c (image_instantiator_combo_box):
13354         * glyphs-widget.c (image_instantiator_scrollbar):
13355         * glyphs-widget.c (image_instantiator_progress_guage):
13356         * glyphs-widget.c (image_instantiator_tree_view):
13357         * glyphs-widget.c (image_instantiator_tab_control):
13358         * glyphs-widget.c (image_instantiator_labels):
13359         * glyphs-widget.c (image_instantiator_layout):
13360         * glyphs-widget.c (image_instantiator_native_layout):
13361         rename decode_domain method to governing_domain.
13362
13363         * glyphs.c:
13364         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13365         * glyphs.c (add_entry_to_device_ii_format_list):
13366         make sure we don't put an entry more than once into the list.
13367         * glyphs.c (check_instance_cache_mapper):
13368         *************************************************************
13369         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13370         HAVE BEEN GETTING.
13371         *************************************************************
13372         * glyphs.c (get_image_instantiator_governing_domain):
13373         clean up, expand on new concept of governing domain.
13374         * glyphs.c (instantiate_image_instantiator):
13375         * glyphs.c (allocate_image_instance):
13376         use governing_domain instead of cache_domain in naming.
13377         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13378         * glyphs.c (make_image_instance_1):
13379         * glyphs.c (Fmake_image_instance):
13380         allow for any domain (not just device), and process the
13381         governing domain correctly.  very big doc fix.
13382         * glyphs.c (Fimage_instance_domain):
13383         new primitive, to retrieve the governing domain of an image instance.
13384         * glyphs.c (image_instantiate):
13385         use new governing_domain stuff.  this fixes a crash you could get
13386         by instantiating certain widget glyphs in frame locales. (should
13387         signal an error instead of crashing.)
13388         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13389         * glyphs.c (Fglyphp): clean up doc.
13390         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13391         * glyphs.c (syms_of_glyphs):
13392         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13393         * glyphs.c (image_instantiator_format_create): add some comments about
13394         bogus code.
13395         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13396         for current-display-table. (Apparently Hrjove implemented in 1998 a
13397         design I wrote up in 1996, but didn't update the doc string.)
13398
13399         * glyphs.h: clean up a doc string.
13400         * glyphs.h (governing_domain):
13401         * glyphs.h (struct image_instantiator_methods):
13402         changes for governing_domain stuff.
13403
13404         * gutter.c:
13405         * gutter.c (Fgutter_specifier_p):
13406         * gutter.c (Fgutter_size_specifier_p):
13407         * gutter.c (Fgutter_visible_specifier_p):
13408         * objects.c:
13409         * objects.c (Fcolor_specifier_p):
13410         * objects.c (Ffont_specifier_p):
13411         * objects.c (Fface_boolean_specifier_p):
13412         doc strings moved to make-*-specifier.
13413
13414         * redisplay.c (add_disp_table_entry_runes_1):
13415         * redisplay.c (generate_fstring_runes):
13416         * redisplay.c (screen):
13417         add random comments and doc strings.
13418
13419         * specifier.c:
13420         * specifier.c (Fmake_specifier):
13421         major overhaul of this doc string.
13422
13423         * specifier.c (Fvalid_specifier_domain_p):
13424         comment about the bogosity of image instances being domains.
13425         * specifier.c (decode_domain):
13426         now non-static, used in glyphs.c.
13427         * specifier.c (specifier_instance):
13428         comment about the bogosity of image instances being domains.
13429         * specifier.c (Fgeneric_specifier_p):
13430         move doc string to make-generic-specifier.
13431         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13432         rebackslashify.
13433
13434         * specifier.h:
13435         * specifier.h (DOMAIN_FRAME):
13436         * specifier.h (DOMAIN_LIVE_P):
13437         * specifier.h (DOMAIN_XDEVICE):
13438         rebackslashify.
13439         add comments about problems with these macros.
13440         prototype for decode_domain.
13441
13442         * toolbar.c:
13443         * toolbar.c (Ftoolbar_specifier_p):
13444         move doc string to `make-toolbar-specifier'.
13445
13446         * window.c (window_unmap_subwindows_cache_mapper):
13447         *************************************************************
13448         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13449         HAVE BEEN GETTING.
13450         *************************************************************
13451
13452 2000-05-09  Andy Piper  <andy@xemacs.org>
13453
13454         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13455
13456         * window.c (Fset_window_configuration): reset the frame subwindow
13457         cache and re-initialize the window subwindow caches.
13458
13459         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13460
13461 2000-05-09  Ben Wing  <ben@xemacs.org>
13462
13463         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13464         DWORD.
13465
13466 2000-04-26  Mike Woolley  <mike@bulsara.com>
13467
13468         * ntheap.c: Changed recreate_heap to limit the amount reserved
13469         for the heap to that which is actually available. Also now
13470         displays a message box (with some dignostics) in the event that
13471         it still can't start.
13472
13473 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13474
13475         * callproc.c (Fold_call_process_internal): GCPRO path
13476
13477 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13478
13479         Patch by Bill Perry.
13480
13481         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13482         back data instead of #ifdef.
13483         (Fscrollbar_page_down): ditto.
13484
13485 2000-05-07  Ben Wing  <ben@xemacs.org>
13486
13487         * buffer.h:
13488         Kludge for defining Qmswindows_tstr.
13489
13490         * nt.c:
13491         * nt.c (open_input_file):
13492         * nt.c (open_output_file):
13493         * nt.c (rva_to_section):
13494         * nt.c (mswindows_executable_type):
13495         Move all memory-mapped-file routines here (some were in unexnt.c,
13496         which is bad because they are used by process-nt.c, and unexnt
13497         won't be around when portable dumping).  Synched the above routines
13498         with FSF 20.6.
13499
13500         * nt.h:
13501         Removed ifdef'd out bogus code.
13502         Fixed some prototypes.
13503
13504         * nt.h (file_data):
13505         * nt.h (OFFSET_TO_RVA):
13506         * nt.h (RVA_TO_OFFSET):
13507         * nt.h (RVA_TO_PTR):
13508         Moved the memory-mapped-file structures, macros and prototypes
13509         here, to parallel nt.c.  ntheap.h should really be removed
13510         entirely, and it's a non-portable-dumper specific file.
13511
13512         * ntheap.h (round_to_next):
13513         Moved the memory-mapped-file structures, macros and prototypes
13514         to nt.h.
13515
13516         * ntproc.c (compare_env):
13517         Moved rva_to_section and mswindows_executable_type to nt.c.
13518         Moved compare_env to process-nt.c.
13519         ntproc.c will die, one day.
13520
13521         * ntproc.c (sys_spawnve):
13522         Account for win32_ -> mswindows_.
13523
13524         * process-nt.c:
13525         * process-nt.c (struct nt_process_data):
13526         * process-nt.c (ensure_console_window_exists):
13527         * process-nt.c (compare_env):
13528         * process-nt.c (nt_create_process):
13529         * process-nt.c (nt_kill_process_by_pid):
13530         * process-nt.c (syms_of_process_nt):
13531         * process-nt.c (vars_of_process_nt):
13532         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13533         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13534         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13535         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13536         Move compare_env here from ntproc.c.
13537
13538         * process.c (Fprocess_send_region):
13539         Takes an optional fourth argument, BUFFER, which should fix some
13540         problems with call-process.
13541
13542         * syscommctrl.h:
13543         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13544
13545         * syswindows.h:
13546         Move ICC_BAR_CLASSES to syscommctrl.h.
13547         Add preliminary macros for MSWindows/Mule.  More to come.
13548
13549         * unexnt.c:
13550         * unexnt.c (unexec):
13551         open_output_file moved to nt.c.
13552
13553
13554 2000-05-05  Andy Piper  <andy@xemacs.org>
13555
13556         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13557         instance from the frame cache also since GC may catch up too late
13558         to make frame deletion sane.
13559
13560 2000-05-04  Andy Piper  <andy@xemacs.org>
13561
13562         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13563         (x_finalize_image_instance): ungcpro on deletion.
13564
13565         * glyphs.c (image_instantiator_format_create): give pointers a
13566         query geometry method so that the geometry is at least set.
13567
13568         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13569         initialize layouts if using widgets.
13570
13571 2000-05-03  Andy Piper  <andy@xemacs.org>
13572
13573         * nt.c: remove bogus reference to sysmmsystem.h
13574
13575         * gui-x.c (popup_selection_callback): fix no selection abort.
13576
13577 2000-05-02  Andy Piper  <andy@xemacs.org>
13578
13579         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13580         (mswindows_widget_instantiate): ditto.
13581
13582         * glyphs-widget.c (initialize_widget_image_instance): initialize
13583         children correctly.
13584         (widget_instantiate): cope with children and items in the same
13585         instance.
13586
13587         * glyphs.c (mark_image_instance): cope with children as a first
13588         class member.
13589         (image_instance_equal): ditto.
13590         (image_instance_hash): ditto.
13591         (image_instance_changed): ditto.
13592
13593 2000-04-30  Andy Piper  <andy@xemacs.org>
13594
13595         * glyphs.c (subwindow_query_geometry): new function. Return some
13596         defaults.
13597         (subwindow_instantiate): don't assign dimensions if none have been
13598         given.
13599         (image_instantiator_format_create): add subwindow_query_geometry.
13600         (print_image_instance): cope with layouts as widgets.
13601
13602 2000-04-29  Andy Piper  <andy@xemacs.org>
13603
13604         * frame.c (delete_frame_internal): call
13605         free_frame_subwindow_instance_cache so that all subwindows are
13606         finalized before their parent.
13607         (mark_frame): remove subwindow_cachels.
13608         (Fmake_frame): remove subwindow_cachel manipulation.
13609         (allocate_frame_core): subwindow_instance_cache is a weak list.
13610         (delete_frame_internal): set subwindow_instance_cache to nil.
13611
13612         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13613         finalization safe.
13614         (mswindows_finalize_image_instance): use the device
13615         not the domain as the domain may have died already.
13616
13617         * glyphs-x.c (x_finalize_image_instance): ditto.
13618         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13619         HEIGHT.
13620
13621         * redisplay-output.c (redisplay_unmap_subwindows): update for
13622         subwindow instance cache as a weak list.
13623         (redisplay_unmap_subwindows_maybe): ditto.
13624         (redisplay_unmap_subwindows_except_us): ditto.
13625
13626         * glyphs.c (unmap_subwindow): error checking will check the domain
13627         so don't deal with it here. Don't use cachels anymore.
13628         (map_subwindow): ditto.
13629         (update_subwindow_cachel_data): remove old accessor names.
13630         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13631         (Fresize_subwindow): don't update cachel.
13632         (mark_subwindow_cachels):
13633         (update_subwindow_cachel_data):
13634         (add_subwindow_cachel):
13635         (get_subwindow_cachel_index):
13636         (update_subwindow_cachel):
13637         (reset_subwindow_cachels):
13638         (mark_subwindow_cachels_as_not_updated): deleted.
13639         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13640         subwindow instance to the frame cache.
13641         (find_matching_subwindow): update for subwindow instance cache as
13642         a weak list.
13643         (update_widget_instances): ditto.
13644         (image_instance_type_to_mask):inlined.
13645         (free_frame_subwindow_instance_cache): new function. finalize all
13646         subwindows that are instantiated.
13647
13648         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13649         of cachel information.
13650         (IMAGE_INSTANCE_DISPLAY_X):
13651         (IMAGE_INSTANCE_DISPLAY_Y):
13652         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13653         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13654         (XIMAGE_INSTANCE_DISPLAY_X):
13655         (XIMAGE_INSTANCE_DISPLAY_Y):
13656         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13657         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13658         remove subwindow_cachel structure and function references.
13659         (image_instance_type_to_mask): inline from glyphs.c
13660
13661         * redisplay.c (redisplay_frame): remove subwindow_cachel
13662         references.
13663
13664         * frame.h (struct frame): remove subwindow_cachels.
13665         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13666
13667         * frameslots.h: add subwindow_instance_cache.
13668
13669         * window.c (replace_window): check subwindow cache of replacement.
13670         (window_unmap_subwindows_cache_mapper):
13671         (window_unmap_subwindows): new functions. Unmap all subwindows
13672         cached on this window.
13673         (mark_window_as_deleted): unmap all subwindows.
13674
13675 2000-04-27  Andy Piper  <andy@xemacs.org>
13676
13677         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13678
13679         * glyphs-widget.c (widget_layout): return something.
13680         (layout_layout): return something. Fail if not initialized.
13681         (layout_query_geometry): ditto.
13682         (image_instantiator_native_layout): new function. Initialized the
13683         native layout type.
13684         (widget_instantiate): don't do layout stuff here.
13685
13686         * glyphs.c (instantiate_image_instantiator): reorded calling or
13687         instantiate and post_instantiate with layout in between.
13688         (image_instance_layout): be more selective about deciding whether
13689         the layout has been done or not.
13690
13691         * glyphs.h (struct image_instantiator_methods): return a value
13692         from layout_method.
13693
13694 2000-04-26  Andy Piper  <andy@xemacs.org>
13695
13696         * glyphs.c (allocate_image_instance): make initial width and
13697         height unspecified. Set initialized to 0.
13698
13699         * syscommctrl.h new file. Encapsulates commctrl.h.
13700
13701         * syswindows.h new file. Encapsulates windows.h.
13702
13703         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13704         * nt.c: ditto.
13705         * console-msw.h: ditto.
13706
13707         * redisplay-tty.c (tty_output_display_block): remove layout references.
13708
13709         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13710         window handle rather than just the frame.
13711
13712         * glyphs.c (mark_image_instance): remove layout references.
13713         (print_image_instance): ditto.
13714         (image_instance_equal): ditto.
13715         (image_instance_hash): ditto.
13716         (decode_image_instance_type): ditto.
13717         (encode_image_instance_type): ditto.
13718         (image_instantiate): ditto.
13719         (allocate_glyph): ditto.
13720         (Fimage_instance_height): ditto.
13721         (Fimage_instance_width): ditto.
13722         (update_subwindow): ditto.
13723
13724         * redisplay-x.c (x_output_display_block): recode for layouts as
13725         widgets.
13726
13727         * redisplay-output.c (redisplay_output_layout): recode for layouts
13728         as widgets.
13729         (compare_runes): remove layout references.
13730
13731         * redisplay-msw.c (mswindows_output_display_block): recode for
13732         layouts as widgets.
13733
13734         * glyphs-widget.c (image_instantiator_layout): remove
13735         layout_possible_dest_types.
13736         (layout_possible_dest_types): deleted.
13737
13738         * glyphs.h (image_instance_type): remove layout references.
13739         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13740         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13741         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13742
13743 2000-04-25  Andy Piper  <andy@xemacs.org>
13744
13745         * glyphs-widget.c (image_instantiator_buttons):
13746         (image_instantiator_edit_fields):
13747         (image_instantiator_combo_box):
13748         (image_instantiator_scrollbar):
13749         (image_instantiator_progress_guage):
13750         (image_instantiator_tree_view):
13751         (image_instantiator_tab_control):
13752         (image_instantiator_labels):
13753         (image_instantiator_layout): call default post_instantiate method.
13754         (widget_post_instantiate): new function. Simply lays out the
13755         widgets.
13756
13757         * glyphs.h (struct image_instantiator_methods): add
13758         post_instantiate method.
13759
13760         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13761         method calls.
13762
13763 2000-04-23  Andy Piper  <andy@xemacs.org>
13764
13765         * glyphs.h (struct image_instantiator_methods): add
13766         decode_domain_method.
13767         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13768         derived from the domain.
13769         (IMAGE_INSTANCE_FRAME): new accessor.
13770         (XIMAGE_INSTANCE_FRAME): ditto.
13771
13772         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13773         instead of _SUBWINDOW_FRAME.
13774         (finalize_image_instance): ditto.
13775         (Fimage_instance_foreground): ditto.
13776         (Fimage_instance_background): ditto.
13777         (image_instantiate): ditto.
13778         (update_subwindow_cachel): ditto.
13779         (update_subwindow): ditto.
13780         (unmap_subwindow): ditto.
13781         (map_subwindow): ditto
13782         (subwindow_instantiate): ditto.
13783         * glyphs-msw.c (mswindows_update_widget): ditto.
13784         (mswindows_progress_gauge_instantiate): ditto.
13785         (mswindows_tab_control_update): ditto.
13786         * glyphs-x.c (x_update_widget): ditto.
13787         (x_widget_instantiate): ditto.
13788         (x_tab_control_instantiate): ditto.
13789         (x_tab_control_update): ditto.
13790         * event-msw.c (mswindows_wnd_proc): ditto
13791
13792         * glyphs-widget.c (image_instantiator_layout): use
13793         subwindow_decode_domain.
13794         (image_instantiator_buttons): ditto.
13795         (image_instantiator_edit_fields): ditto.
13796         (image_instantiator_combo_box): ditto.
13797         (image_instantiator_scrollbar): ditto.
13798         (image_instantiator_progress_guage): ditto.
13799         (image_instantiator_tree_view): ditto.
13800         (image_instantiator_tab_control): ditto.
13801         (image_instantiator_labels): ditto.
13802         (image_instantiator_layout): ditto.
13803
13804         * glyphs.c: add instance error checking to many functions.
13805         (instantiate_image_instantiator): decode device from cache_domain.
13806         (image_instantiate): partially rewrite by using
13807         decode_image_instantiator_domain to determine what domain the
13808         instance needs to be cached in.
13809         (decode_image_instantiator_domain): new function. Determine what
13810         domain the image needs to be cached in.
13811         (check_window_subwindow_cache): new error checking function.
13812         (check_instance_cache_mapper): ditto.
13813         (check_image_instance_structure): ditto.
13814         (subwindow_decode_domain): new function. Encodes a window as a
13815         subwindow's cache domain.
13816         (image_instantiator_format_create): use it for text and
13817         subwindows.
13818
13819 2000-04-21  Andy Piper  <andy@xemacs.org>
13820
13821         * glyphs.c (image_instance_device): new function.
13822         (image_instance_frame): new function.
13823         (image_instance_window): new function.
13824         (image_instance_live_p): new function.
13825
13826         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13827         cache to nil.
13828
13829         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13830         (IMAGE_INSTANCE_DOMAIN): new accessor.
13831         (XIMAGE_INSTANCE_DOMAIN): ditto.
13832
13833         * glyphs-x.c (x_finalize_image_instance): device->domain.
13834
13835         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13836         (mswindows_finalize_image_instance): ditto.
13837
13838         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13839         (gif_instantiate): ditto.
13840         (png_instantiate): ditto.
13841         (tiff_instantiate): ditto.
13842
13843         * glyphs.c (instantiate_image_instantiator): use domain rather
13844         than device.
13845         (mark_image_instance): device -> domain.
13846         (print_image_instance): ditto.
13847         (finalize_image_instance): ditto.
13848         (image_instance_equal): ditto.
13849         (allocate_image_instance): ditto.
13850         (Fcolorize_image_instance): ditto.
13851         (query_string_geometry): ditto.
13852         (image_instantiate): ditto
13853         (query_string_font): ditto.
13854         (image_instantiate): ditto.
13855         (update_subwindow): ditto.
13856         (unmap_subwindow): ditto.
13857         (map_subwindow): ditto.
13858         (subwindow_instantiate): ditto.
13859
13860         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13861         (DOMAIN_FRAME): ditto.
13862         (DOMAIN_WINDOW): ditto.
13863         (DOMAIN_LIVE_P): ditto.
13864         (XDOMAIN_DEVICE): ditto.
13865         (XDOMAIN_FRAME): ditto.
13866         (XDOMAIN_WINDOW): ditto.
13867
13868         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13869         a valid specifier domain.
13870
13871 2000-04-19  Andy Piper  <andy@xemacs.org>
13872
13873         * glyphs-widget.c (syms_of_glyphs_widget): remove
13874         widget-callback-current-channel.
13875         (vars_of_glyphs_widget): ditto.
13876         * glyphs.h: ditto
13877
13878         * gui.c (get_gui_callback): revert to previous behaviour.
13879
13880 2000-04-18  Andy Piper  <andy@xemacs.org>
13881
13882         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13883         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13884         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13885
13886         * glyphs.c (image_instance_equal): add margin_width.
13887         (image_instance_hash): ditto.
13888
13889         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13890         (layout_query_geometry): ditto.
13891         (layout_layout): ditto.
13892         (syms_of_glyphs_widget): add margin-width.
13893         (image_instantiator_layout): allow margin-width.
13894
13895         * glyphs.c (update_widget_instances): make a normal function.
13896         (syms_of_glyphs): remove Qupdate_widget_instances.
13897         * glyphs.h: ditto.
13898
13899         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13900         so that we don't corrupt ideas about the last event or
13901         command. Remove widget-callback-current-channel fiddling.
13902         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13903
13904 2000-05-01  Martin Buchholz <martin@xemacs.org>
13905
13906         * XEmacs 21.2.33 is released.
13907
13908 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13909
13910         * make-src-depend: Allow dots in header file name.
13911
13912 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13913
13914         * mule-charset.h (struct charset_lookup): Add
13915         next_allocated_1_byte_leading_byte and
13916         next_allocated_2_byte_leading_byte.
13917         * mule-charset.c: Move above two variables so that those values
13918         will be dumped.
13919
13920 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13921
13922         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13923         when string length is zero.
13924         (find_charsets_in_emchar_string): Ditto.
13925
13926 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13927
13928         * lisp.h: extern Qdialog and Qmenubar.
13929
13930         * gui-x.c: added events.h.
13931                 also fixed typo which made the file uncompilable.
13932
13933         * general.c: Added Qmenubar and Qdialog
13934
13935 2000-04-28  Ben Wing  <ben@xemacs.org>
13936
13937         * frame-msw.c (mswindows_init_frame_1):
13938         * frame-msw.c (mswindows_mark_frame):
13939         * event-msw.c (mswindows_enqueue_dispatch_event):
13940         * console-msw.h:
13941         * console-msw.h (struct mswindows_frame):
13942         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13943         there are now three hash tables for callbacks.
13944         mswindows_enqueue_dispatch_event is no longer static.
13945
13946         * dialog-x.c (maybe_run_dbox_text_callback):
13947         * dialog-x.c (dbox_descriptor_to_widget_value):
13948         switch to new cons3 form for callbacks.
13949
13950         * glyphs-msw.c (mswindows_register_gui_item):
13951         * glyphs-msw.c (mswindows_widget_instantiate):
13952         * glyphs-msw.c (add_tree_item):
13953         * glyphs-msw.c (add_tab_item):
13954         new image instance parameter, so it can be passed to callback-ex.
13955         respect :callback-ex as well as :callback.
13956
13957         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13958         add :callback-ex.
13959
13960         * glyphs.c (print_image_instance):
13961         prettify, e.g. now prints widget type.
13962
13963         * gui-x.h:
13964         certain funs have new image instance parameter.
13965
13966         * gui.c:
13967         * gui.c (get_gui_callback):
13968         * gui.c (gui_item_add_keyval_pair):
13969         * gui.c (gui_item_init):
13970         * gui.c (gui_add_item_keywords_to_plist):
13971         * gui.c (mark_gui_item):
13972         * gui.c (gui_item_hash):
13973         * gui.c (gui_item_equal):
13974         * gui.c (copy_gui_item):
13975         * gui.c (syms_of_gui):
13976         recognize callback-ex in a number of places.
13977         also, fix the annoying "can't get out of yes-no dialog" bug.
13978
13979         * gui.h:
13980         * gui.h (struct Lisp_Gui_Item):
13981         recognize callback-ex in a number of places.
13982
13983         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13984         new parameter in button_item_to_widget_value.
13985
13986         * glyphs-x.c (x_update_widget):
13987         * glyphs-x.c (x_button_instantiate):
13988         * glyphs-x.c (x_button_update):
13989         * glyphs-x.c (x_progress_gauge_instantiate):
13990         * glyphs-x.c (x_edit_field_instantiate):
13991         * glyphs-x.c (x_combo_box_instantiate):
13992         * glyphs-x.c (x_tab_control_instantiate):
13993         * glyphs-x.c (x_label_instantiate):
13994         new image instance parameter in various places.
13995
13996         * event-Xt.c:
13997         * event-Xt.c (enqueue_Xt_dispatch_event):
13998         this fun gets exported.
13999
14000         * gui-msw.c:
14001         * gui-msw.c (mswindows_handle_gui_wm_command):
14002         handle both :callback and :callback-ex, and generate our own
14003         event because it's one of the callback-ex arguments.
14004
14005         * gui-x.c:
14006         * gui-x.c (popup_selection_callback):
14007         handle both :callback and :callback-ex, and generate our own
14008         event because it's one of the callback-ex arguments.
14009         * gui-x.c (button_item_to_widget_value):
14010         * gui-x.c (gui_items_to_widget_values_1):
14011         * gui-x.c (gui_item_children_to_widget_values):
14012         * gui-x.c (gui_items_to_widget_values):
14013         new image instance parameter in various places.
14014
14015         * fns.c (Freplace_list):
14016         fix small typo in doc string.
14017
14018         * lisp.h:
14019         declare enqueue_Xt_dispatch_event.
14020
14021 2000-04-28  Ben Wing  <ben@xemacs.org>
14022
14023         * buffer.c:
14024         * buffer.c (Frecord_buffer):
14025         * buffer.c (syms_of_buffer):
14026         delete record-buffer-hook.
14027
14028         * fns.c:
14029         * fns.c (Freplace_list):
14030         * fns.c (syms_of_fns):
14031         new primitive replace-list.
14032
14033         * frameslots.h:
14034         slot for old buffer-alist.
14035
14036         * lisp.h:
14037         exfun replace-list.
14038
14039         * redisplay.c:
14040         * redisplay.c (redisplay_frame):
14041         * redisplay.c (syms_of_redisplay):
14042         * redisplay.c (vars_of_redisplay):
14043         new hook buffer-list-changed-hook.
14044         call it.
14045
14046 2000-04-27  Ben Wing  <ben@xemacs.org>
14047
14048         * extents.h: extern in_modeline_generation.
14049
14050         * redisplay.c (generate_formatted_string_db): set
14051         in_modeline_generation.
14052
14053         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14054         flags if in modeline generation.  otherwise frame-modified-tick
14055         is ticked far too often.
14056         Declare in_modeline_generation.
14057
14058 2000-04-26  Ben Wing  <ben@xemacs.org>
14059
14060         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14061         option.
14062         (vars_of_emacs): add quick-build as an error-checking option.
14063         A bit kludgy, but there doesn't seem much point in creating
14064         a real var for this.
14065
14066         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14067
14068 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14069
14070         * redisplay.h (struct display_line): Add a new variable,
14071         line_continuation.
14072
14073         * redisplay.c (create_text_block): Set dl->line_continuation if
14074         the line continues.
14075         (create_string_text_block): Ditto.
14076         (regenerate_window_incrementally): Use line_continuation instead
14077         of searching continuation glyph.
14078         (add_margin_runes): Call add_glyph_rune.
14079         (add_glyph_rune): Handle margin glyph.
14080
14081 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14082
14083         * filelock.c (fill_in_lock_file_name):
14084         ANSIfy.
14085         Check for IS_ANY_SEP instead of '/'.
14086         (lock_file_1):
14087         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14088         Never check errno without first seeing that system call failed.
14089         (unlock_file): Add GCPRO.
14090         (Flock_buffer): Fix docstring.
14091         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14092
14093 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14094
14095         * sysdep.c (get_pty_max_bytes):
14096         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14097         strings longer than 252 bytes.
14098
14099         * md5.c: Unconditionally include ANSI header <limits.h>
14100
14101         * glyphs-x.c (convert_EImage_to_XImage):
14102         * lisp-union.h (union Lisp_Object):
14103         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14104
14105 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14106
14107         * filelock.c (current_lock_owner): Remove unused variable o, p.
14108
14109 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14110
14111         * callint.c: Remove multiply defined symbol Qlet
14112         (syms_of_callint): ditto.
14113
14114 2000-04-14  Andy Piper  <andy@xemacs.org>
14115
14116         * general.c (syms_of_general): add last-command, this-command, let
14117         and funcall.
14118
14119         * lisp.h: declare various symbols.
14120
14121         * glyphs.h: declare Qwidget_callback_current_channel;
14122
14123         * glyphs-widget.c (syms_of_glyphs_widget): add
14124         Qgui_callback_current_channel.
14125         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14126
14127         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14128         widget-callback-current-channel when invoking the interactive
14129         arg. Also bind last-command and next-command when invoking the
14130         widget updates.
14131         * gui-x.c (popup_selection_callback): ditto.
14132
14133         * gui.c (get_gui_callback): massage args so that we are always
14134         calling eval. This allows us to add our own variable bindings
14135         outside.
14136
14137         * glyphs-x.c (x_button_instantiate): use
14138         gui_items_to_widget_values since this is GC safe.
14139         (x_progress_gauge_instantiate): ditto.
14140         (x_edit_field_instantiate): ditto.
14141         (x_label_instantiate): ditto.
14142
14143         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14144         (emacs_Xt_event_widget_focus_out): new function
14145         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14146         focus.
14147         (emacs_Xt_event_add_widget_actions): new function. add focus
14148         functions as actions.
14149         (init_event_Xt_late): use it.
14150
14151 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14152
14153         * event-stream.c (Fdispatch_event): Doc fix.
14154
14155 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14156
14157         * postgresql.c: Remove all references to PQsetenv*.
14158
14159         * postgresql.h: Remove references to PGsetenvHandler object.
14160         * lrecord.h (lrecord_type): Ditto.
14161
14162 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14163
14164         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14165         real_heigh and real_width members, and accessor macros for these.
14166
14167         * glyphs-msw.c (init_image_instance_geometry): New function.
14168         (init_image_instance_from_dibitmap): Use it.
14169         (mswindows_resource_instantiate): Use it.
14170         (init_image_instance_from_xbm_inline): Use it.
14171         (mswindows_initialize_image_instance_mask): Use real bitmap
14172         geometry.
14173         (mswindows_create_resized_bitmap): Ditto.
14174         (mswindows_create_resized_mask): Ditto.
14175
14176         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14177         and bitmap to their surface size.
14178
14179 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14180
14181         * process-unix.c (unix_send_process): Guard against process MIA
14182         after Faccept_process_output.
14183
14184 2000-04-11  Ben Wing  <ben@xemacs.org>
14185
14186         * eval.c (unbind_to_hairy): fix brokenness introduced by
14187         nanosecond speed improvements.
14188
14189 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14190
14191         * sunplay.c (init_device): To play sounds correctly, the device
14192         apparently needs to be initialized at least once by XEmacs.  Make
14193         it so.
14194
14195 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14196
14197         * redisplay.c (add_margin_runes): Add text image glyph
14198           handling.
14199
14200 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14201
14202         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14203         gcc is newer than 2.5.
14204
14205 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14206
14207         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14208
14209         * fns.c (size_bit_vector):
14210         * alloc.c (size_vector):
14211         (make_vector_internal):
14212         (make_bit_vector_internal):
14213         (sweep_bit_vectors_1):
14214         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14215
14216 2000-04-06  Andy Piper  <andy@xemacs.org>
14217
14218         * gmalloc.c (malloc): undo previous change.
14219         (malloc): ditto.
14220         (free): ditto.
14221         (realloc): ditto.
14222
14223 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14224
14225         * line-number.c (buffer_line_number): Revert to former version.
14226
14227 2000-04-06  Andy Piper  <andy@xemacs.org>
14228
14229         * gmalloc.c (malloc): add error checking.
14230         (malloc): ditto.
14231         (free): ditto.
14232         (realloc): ditto.
14233
14234         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14235         button_item_to_widget_value arg.
14236
14237         * glyphs-x.c (x_button_instantiate): add extra
14238         button_item_to_widget_value arg.
14239         (x_progress_gauge_instantiate): ditto.
14240         (x_edit_field_instantiate): ditto.
14241         (x_label_instantiate): ditto.
14242
14243         * gui-x.c (gui_items_to_widget_values_1): add extra
14244         button_item_to_widget_value arg.
14245         (button_item_to_widget_value): add extra menu_item_p arg.
14246
14247         * gui-x.h: change signature of button_item_to_widget_value.
14248
14249         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14250         button_item_to_widget_value arg.
14251
14252 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14253
14254         * buffer.h (struct buffer): auto_save_modified should be long.
14255
14256 2000-04-05  Andy Piper  <andy@xemacs.org>
14257
14258         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14259         type.
14260         (button_query_geometry): give a little more room so that athena
14261         buttons fit.
14262
14263 2000-04-05  Andy Piper  <andy@xemacs.org>
14264
14265         * faces.c (complex_vars_of_faces): The widget face should inherit
14266         the font of the gui-element face.
14267
14268 2000-04-04  Andy Piper  <andy@xemacs.org>
14269
14270         * glyphs-x.c (x_button_update): new function. unconditionally
14271         update a button's state when the instance is dirty.
14272         (image_instantiator_format_create_glyphs_x): add x_button_update.
14273         (x_widget_instantiate): remove old resize cruft.
14274
14275 2000-04-02  Andy Piper  <andy@xemacs.org>
14276
14277         * frame.c (change_frame_size_1): The introduction of gutters means
14278         that we need to allow 0 as a potential frame dimension.
14279
14280 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14281
14282         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14283         image glyph if allow_cursor.
14284         (add_hscroll_rune): Don't allow cursor to border glyph.
14285         (create_text_block): Ditto.
14286
14287         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14288         text not in buffer.
14289         (redisplay_output_layout): Call ensure_face_cachel_complete for
14290         text image glyph.
14291
14292
14293 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14294
14295         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14296
14297         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14298         not in buffer
14299
14300         * redisplay-tty.c (tty_output_display_block): Delete the routine
14301         for text image glyph
14302         * redisplay-x.c (x_output_display_block): ditto
14303         * redisplay-msw.c (mswindows_output_display_block): ditto
14304
14305 2000-02-02  Mike Alexander  <mta@arbortext.com>
14306
14307         Note: Some of these were committed by accident as part of other
14308         patches.
14309
14310         * regex.c (regex_compile): Avoid compiler warnings.
14311
14312         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14313
14314         * nt.h: Declare term_ntproc correctly.
14315
14316         * nt.c: Remove incorrect declaration of get_home_directory which
14317         is declared correctly in lisp.h.
14318
14319         * keymap.c (get_keyelt): Avoid compiler warnings.
14320         (raw_lookup_key_mapper): Avoid compiler warnings.
14321
14322         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14323
14324         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14325
14326         * filemode.c (mode_string): Avoid compiler warnings.
14327
14328         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14329         avoid warning.
14330
14331         * events-mod.h: Undef some things that winuser.h defines differently.
14332
14333         * data.c (Faset): Avoid compiler warnings.
14334
14335         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14336
14337 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14338
14339         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14340         Fall through to simple beep on error.
14341         Replace "extern" by real header file.
14342
14343         * linuxplay.c: Use nativesound.h
14344         (play_sound_data): Return error code. Be less verbose on error.
14345
14346         * sunplay.c: Use nativesound.h
14347         (play_sound_data): Return error code. Be less verbose on error.
14348
14349         * ntplay.c: Use nativesound.h
14350         (play_sound_data): Return fake error code
14351
14352         * sgiplay.c: Use nativesound.h
14353         (play_sound_data): Return error code
14354
14355         * hpplay.c: Use nativesound.h, partially implement
14356         new error code. Break compilation until finished.
14357         (play_sound_data): error code.
14358
14359         * nativesound.h (play_sound_file):
14360           (play_sound_data): Prototype in new header.
14361
14362 2000-03-31  Andy Piper  <andy@xemacs.org>
14363
14364         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14365         for toggle and radio buttons.
14366         (image_instantiator_buttons): use it.
14367
14368 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14369
14370         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14371         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14372         found. Scrollbar event probably belonged to some old config.
14373
14374 2000-03-31  Andy Piper  <andy@xemacs.org>
14375
14376         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14377         than 1.
14378         (initialize_widget_image_instance): default layout to
14379         LAYOUT_HORIZONTAL rather than 0.
14380         (widget_instantiate): reverse the item list at the end rather than
14381         every iteration.
14382         (layout_layout): re-code for the border text at the front of the
14383         item list rather than at the end.
14384         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14385         provided by the user.
14386         (widget_query_geometry): comment.
14387
14388 2000-03-30  Andy Piper  <andy@xemacs.org>
14389
14390         * glyphs-widget.c (image_instantiator_layout): allow standard
14391         widget keywords in layouts.
14392
14393         * gutter.c (output_gutter): cope with nil gutter contents.
14394
14395         * frame.c (Fset_frame_properties): add gutter docs.
14396
14397 2000-03-29  Andy Piper  <andy@xemacs.org>
14398
14399         * toolbar-msw.c (TBSTYLE_FLAT): add.
14400         (mswindows_output_toolbar): minor fiddling.
14401
14402 2000-03-29  Andy Piper  <andy@xemacs.org>
14403
14404         * gutter.c (output_gutter): force gutter size recalculation if
14405         what we are trying to display won't fit.
14406         (update_gutter_geometry): new function. A per-gutter version of
14407         update_frame_gutter_geometry.
14408         (update_frame_gutter_geometry): use it.
14409         (redraw_exposed_gutter): add extra debugging output.
14410
14411 2000-03-28  Mike Alexander  <mta@arbortext.com>
14412
14413         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14414         (pdump_file_unmap): Implement it on Windows
14415         (pdump_file_get): Save alocated handles for pdump_file_unmap
14416
14417 2000-03-28  Andy Piper  <andy@xemacs.org>
14418
14419         * gui.c (get_gui_callback): treat Quit specially.
14420
14421 2000-03-27  Andy Piper  <andy@xemacs.org>
14422
14423         * glyphs.c (image_instantiate): be careful to check in the same
14424         way we assigned.
14425
14426 2000-03-27  Didier Verna  <didier@xemacs.org>
14427
14428         * config.h.in: define the proper SMART_INCLUDE macro.
14429         handle renaming of `foo_h_path' to `foo_h_file'.
14430
14431         * database.c: ditto.
14432
14433         * emacs.c: ditto.
14434
14435         * linuxplay.c: ditto.
14436
14437         * terminfo.c: ditto.
14438
14439         * tooltalk.h: ditto.
14440
14441 2000-03-27  Andy Piper  <andy@xemacs.org>
14442
14443         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14444         gets updated whenever the face might have changed.
14445
14446 2000-03-26  Mike Alexander  <mta@arbortext.com>
14447
14448         * dumper.c (pdump_resource_free): Fix the comment.
14449
14450 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14451
14452         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14453
14454 2000-03-22  Mike Alexander  <mta@arbortext.com>
14455
14456         * dumper.c: Include Windows headers on Windows
14457         (pdump_resource_free): Add a body to the function
14458         (pdump_load): exe_name -> exe_path and add some comments.
14459
14460 2000-03-25  Mike Alexander  <mta@arbortext.com>
14461
14462         * gui.c (copy_gui_item_tree): Return a value in all cases
14463
14464 2000-03-21  Didier Verna  <didier@xemacs.org>
14465
14466         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14467         lwlib/config.h.in.
14468         (SMART_INCLUDE): new macro.
14469         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14470         the proper location.
14471
14472         * postgresql.c: use it.
14473
14474         * inline.c: ditto.
14475
14476 2000-03-24  Andy Piper  <andy@xemacs.org>
14477
14478         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14479         do this.
14480
14481 2000-03-24  Andy Piper  <andy@xemacs.org>
14482
14483         * redisplay-output.c (compare_runes): use image_instance_changed
14484         to detect changes. Do not depend on glyphs_changed, only depend on
14485         dirtiness.
14486          (redisplay_output_layout): add debug messages.
14487         (compare_runes): ditto.
14488
14489         * glyphs.h: declare new functions.
14490         (struct Lisp_Image_Instance): remove percent and associated
14491         accessors.
14492
14493         * gui.h: declare new copying functions.
14494
14495         * gui.c (copy_gui_item_tree): new function.
14496         (copy_gui_item): new function.
14497         (gui_item_id_hash): revert to standard hash.
14498         (gui_item_hash): ditto.
14499         (gui_item_hash_internal): deleted.
14500         (mark_gui_item): mark value.
14501         (gui_item_add_keyval_pair): add value.
14502         (gui_item_init): ditto.
14503         (gui_add_item_keywords_to_plist): ditto.
14504         (gui_item_equal): ditto.
14505         (syms_of_gui): add Q_value.
14506
14507         * glyphs-x.c (x_progress_gauge_update): use pending items and
14508         value for setting the state.
14509         (x_update_widget): don't set items from pending here.
14510
14511         * glyphs-widget.c (update_widget): update items here.
14512         (progress_gauge_set_property): use items for storing value. Put
14513         new value in pending items.
14514
14515         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14516         items for new value. Convert percent -> value.
14517         (mswindows_tab_control_update): don't update items here.
14518
14519         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14520         (update_subwindow): ditto.
14521         (image_instance_changed): new function. Compare hash values and
14522         past and present widget items.
14523         (image_instantiate): We more careful about where we instantiate
14524         things.
14525         (image_instantiate): add error checking.
14526
14527         * gutter.c (syms_of_gutter): use -hook.
14528
14529 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14530
14531         * console-tty.c (Fset_console_tty_input_coding_system): Use
14532         Qkeyboard.
14533         (Fset_console_tty_output_coding_system): Use Qterminal.
14534         (tty_init_console): Use Qkeyboard and Qterminal.
14535
14536 2000-03-21  Ben Wing  <ben@xemacs.org>
14537
14538         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14539         From Mike Alexander <mta@arbortext.com>.
14540
14541 2000-03-21  Ben Wing  <ben@xemacs.org>
14542
14543         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14544         process brokenness.  Proper implementation to come.
14545         * callproc.c:
14546         Rename call-process-internal to old-call-process-internal.
14547         New impl. in process.el.
14548
14549 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14550
14551         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14552
14553 2000-03-20  Andy Piper  <andy@xemacs.org>
14554
14555         * glyphs.c (full_list_hash): make hashes of the same elements in
14556         different orders return different values.
14557
14558 2000-03-20  Martin Buchholz <martin@xemacs.org>
14559
14560         * XEmacs 21.2.32 is released.
14561
14562 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14563
14564         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14565         (DFC_MALLOC_USE_CONVERTED_DATA):
14566         Add aliasing-safe casts to allow use with char* or unsigned char*
14567         lvalues.
14568
14569         * eldap.c (Fldap_open):
14570         (Fldap_search_basic):
14571         (Fldap_add):
14572         (Fldap_modify):
14573         Make C++-compilable.
14574         Make sure GCPRO'ed variables are initialized.
14575         Use temp variables to avoid repeated calls to Flength.
14576
14577 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14578
14579         * sysfile.h:
14580         Make sure PATH_MAX is always defined.
14581         Include limits.h for PATH_MAX.
14582         Deprecate use of MAXPATHLEN.
14583
14584 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14585
14586         * emacs.c: Add reinit_vars_of_fileio.
14587         * symsinit.h: Add reinit_vars_of_fileio.
14588         * fileio.c (reinit_vars_of_fileio): New.
14589         * fileio.c (Fmake_temp_name):
14590         Initialize temp_name random number from microseconds to make
14591         collisions even less likely.  Initialize always at process startup
14592         time.  (make-temp-name) used to return the same file name twice in
14593         a row when PDUMP.
14594         Random stylistic fiddling.
14595         Comment fixes.
14596
14597 2000-03-20  Andy Piper  <andy@xemacs.org>
14598
14599         * glyphs.c (image_instantiate): allow text glyphs to be
14600         instantiated in the minibuffer window.
14601
14602 2000-03-19  Andy Piper  <andy@xemacs.org>
14603
14604         * glyphs.c (image_instance_hash): be careful about which items we
14605         hash on.
14606
14607         * glyphs-widget.c (tab_control_set_property): record into pending
14608         items rather than the actual items.
14609
14610         * glyphs-x.c (x_update_widget): use pending items to update with.
14611
14612         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14613         to update with.
14614
14615         * glyphs.c (mark_image_instance): mark pending items.
14616
14617         * window.c (Fset_window_configuration): record the buffer.
14618         (Fselect_window): totally revert previous change which breaks many
14619         things.
14620
14621 2000-03-18  Andy Piper  <andy@xemacs.org>
14622
14623         * glyphs-msw.c (mswindows_tab_control_update): force selected
14624         item.
14625
14626         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14627         window domain cache, otherwise we get inconsistencies at
14628         startup. There is something fishy at startup which can lead to the
14629         minibuffer being the selected window when the gutter content is
14630         instantiated.
14631
14632         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14633         gcpros.
14634         (parse_gui_item_tree_children): ditto.
14635         (parse_gui_item_tree_item): ditto.
14636
14637         * glyphs.c (Fupdate_widget_instances): return something.
14638
14639 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14640
14641         * window.c (Fselect_window): Undo 2000-03-17 change.
14642
14643 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14644
14645         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14646         against v7.0 libraries.  Insta-coredump city until the postgres
14647         folks fix it.
14648
14649 2000-03-17  Andy Piper  <andy@xemacs.org>
14650
14651         * faces.c (complex_vars_of_faces): don't give the widget face an
14652         inherited background pixmap.
14653
14654         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14655         selected item.
14656
14657         * event-stream.c (Fdispatch_non_command_events): return something.
14658
14659         * gutter.c (output_gutter): use widget face.
14660         (clear_gutter): ditto.
14661
14662         * NEWS: adjust again.
14663
14664         * window.c (Fselect_window): make sure this runs to completion to
14665         avoid oddities with Fset_window_configuration.
14666         (Fcurrent_window_configuration): in general do not save the
14667         minibuffer as the selected window.
14668
14669         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14670
14671 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14672
14673         * emacs.c (Frunning_temacs_p): Revert previous patch.
14674         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14675
14676 2000-03-16  Andy Piper  <andy@xemacs.org>
14677
14678         * glyphs-x.c (x_tab_control_update): if no widget values then
14679         return.
14680
14681         * NEWS: update for new features.
14682
14683         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14684         synthetic event to the native system.
14685         (reinit_vars_of_event_Xt): set force_event_pending to
14686         emacs_Xt_force_event_pending.
14687
14688         * events.h (struct event_stream): add force_event_pending.
14689
14690         * specifier.c (recompute_one_cached_specifier_in_window): add
14691         comment.
14692
14693         * redisplay.c (redisplay_frame): don't call
14694         update_frame_subwindows. Reset subwindow cachels when
14695         subwindows_changed, removing this was an optimization too far.
14696
14697         * redisplay-output.c (compare_runes): reorganize so that we catch
14698         glyph changes when we want them. Set optimize_output when this
14699         would help layouts.
14700         (redisplay_output_layout): remove frame_really_changed, use
14701         optimize_output instead.
14702
14703         * redisplay-msw.c (mswindows_output_display_block): reset
14704         optimize_output after outputting a glyph.
14705         * redisplay-x.c (x_output_display_block): ditto.
14706         * redisplay-tty.c (tty_output_display_block): ditto.
14707
14708         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14709         functions.
14710         (gutter_specs_changed): do specific gutter positions.
14711         (top_gutter_specs_changed): new function. Only update the
14712         specified gutter specs.
14713         (bottom_gutter_specs_changed): ditto.
14714         (left_gutter_specs_changed): ditto.
14715         (right_gutter_specs_changed): ditto.
14716
14717         * gui.c (gui_item_hash_internal): new function, does a real hash.
14718         (gui_item_id_hash): use it.
14719         (gui_item_hash): hash the eval'ed gui_item.
14720
14721         * gui-x.c (popup_selection_callback): send an eval event to call
14722         Fupdate_widget_instances.
14723
14724         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14725         to call Fupdate_widget_instances.
14726
14727         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14728         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14729
14730         * glyphs.c: (update_frame_subwindows): deleted.
14731         (Fupdate_widget_instances): new function for updating the dirty
14732         state of widgets that might have changed.
14733         (syms_of_glyphs): add Qupdate_widget_instances.
14734         (full_list_hash): hash a list completely.
14735         (image_instance_hash): use it for items and properties.
14736
14737         * frame-msw.c (mswindows_size_frame_internal): remove unused
14738         variable.
14739
14740         * faces.h (struct face_cachel): fix comment.
14741
14742         * event-stream.c (Fdispatch_non_command_events): new
14743         function. Process non-command events, forcing an event cycle
14744         beforehand.
14745         (syms_of_event_stream): declare.
14746         (event_stream_force_event_pending): new function. Force an event
14747         on the native event queue so that an event cycle will occur next
14748         time we check.
14749
14750         * event-msw.c:
14751         (struct ntpipe_shove_stream):
14752         (mswindows_enqueue_dispatch_event):
14753         (mswindows_dequeue_dispatch_event):
14754         (mswindows_cancel_dispatch_event):
14755         (mswindows_pump_outstanding_events):
14756         (mswindows_drain_windows_queue):
14757         (mswindows_handle_paint):
14758         (mswindows_wnd_proc):
14759         (mswindows_key_to_emacs_keysym):
14760         (get_process_input_waitable):
14761         (emacs_mswindows_delete_stream_pair): re-indent file.
14762         (mswindows_need_event): do not process further fds if the windows
14763         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14764         fixes the 100% cpu problem.
14765         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14766
14767 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14768
14769         * alloc.h: New.
14770         * dumper.h: New.
14771         * dumper.c: New.
14772
14773         * emacs.c: Moved dump file searching to dumper.c.
14774         (Frunning_temacs_p): Fixed.
14775
14776         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14777         last_lrecord_type_index_assigned.
14778
14779 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14780
14781         * symsinit.h: Added reinit parameter to init_console_stream
14782         declaration.
14783
14784         * lisp.h: Added file parameter to pdump_load declaration.
14785
14786         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14787         support.  Added dump file searching.
14788
14789         * config.h.in: Added EMACS_PROGNAME.
14790
14791         * console-stream.c (init_console_stream): Fix reinitialisation
14792         when running from temacs.
14793
14794         * alloc.c (pdump): Add id support.
14795         (pdump_load): Add file parameter and signature/id support.
14796
14797         * Makefile.in.in: Add full pdump support.
14798
14799 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14800
14801         * postgresql.c: Update documentation to reflect latest code
14802         status.
14803         (print_result): Show tuple counts in printed representation when
14804         appropriate.
14805         (Fpq_put_nbytes): MULE-ize.
14806         (Fpq_get_line_async): Ditto.
14807
14808 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14809
14810         * postgresql.c (Fpq_lo_import): Fix return value.
14811         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14812
14813 2000-03-13  Ben Wing  <ben@xemacs.org>
14814
14815         * alloc.c (pdump_load):
14816         Fix compile warning under mswin.
14817
14818 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14819
14820         * postgresql.c: Mule-ization, bug fixes.
14821         Use PG_CODING to encapsulate coding system name changes.
14822         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14823         (pg-coding-system): Create.
14824
14825         (Fpq_conn_defaults): Mule-ize.
14826         (Fpq_connectdb): Mule-ize & bug fix.
14827         (Fpq_connect_start): Mule-ize.
14828         (Fpq_set_client_encoding): Mule-ize.
14829         (Fpq_finish): Document `DEAD' connection status.
14830         (Fpq_clear): Ditto.
14831         (Fpq_pgconn): Mule-ize.
14832         (Fpq_exec): Mule-ize & bug fix.
14833         (Fpq_send_query): Ditto.
14834         (Fpq_get_result): Ditto.
14835         (Fpq_res_status): Mule-ize.
14836         (Fpq_result_error_message): Mule-ize.
14837         (Fpq_ntuples): fix comments.
14838         (Fpq_fname): Mule-ize.
14839         (Fpq_fnumber): Mule-ize.
14840         (Fpq_ftype): fix comments.
14841         (Fpq_get_value): Mule-ize.
14842         (Fpq_cmd_status): Ditto.
14843         (Fpq_cmd_tuples): Ditto.
14844         (Fpq_oid_value): Ditto.
14845         (Fpq_notifies): Ditto.
14846         (Fpq_lo_import): Ditto.
14847         (Fpq_lo_export): Ditto.
14848         (Fpq_get_line): Ditto.
14849         (Fpq_put_line): Mule-ize and bug fix.
14850         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14851
14852 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14853
14854         * postgresql.c (vars_of_postgresql): Mule-ize.
14855         (Fpq_conn_defaults): Ditto.
14856
14857 2000-03-12  Ben Wing  <ben@xemacs.org>
14858
14859         * alloc.c (Fmake_byte_code):
14860         * alloc.c (debug_string_purity_print):
14861         * alloc.c (pdump_backtrace):
14862         * alloc.c (pdump_get_indirect_count):
14863         * alloc.c (pdump_register_sub):
14864         * alloc.c (pdump_register_object):
14865         * alloc.c (pdump_register_struct):
14866         * alloc.c (pdump_dump_data):
14867         * alloc.c (pdump_reloc_one):
14868         Minor cleanups.
14869
14870         * console-msw.c:
14871         * console-msw.c (GetConsoleHwnd):
14872         * console-msw.c (msw_hide_console):
14873         * console-msw.c (msw_show_console):
14874         * console-msw.c (msw_ensure_console_buffered):
14875         * console-msw.c (msw_output_console_string):
14876         * console-msw.c (console_type_create_mswindows):
14877
14878         a) Added functions to manipulate the console window for use with
14879         shell support.
14880
14881         b) Added support for writing text to the console, which is now
14882         used under Windows when xemacs is not being run non-interactively,
14883         to write text that would otherwise be destined for stdout because
14884         under these circumstances, text written to stdout tends to
14885         disappear and not be seen.
14886
14887         * console-msw.h:
14888         * event-Xt.c:
14889         * event-Xt.c (x_event_to_emacs_event):
14890         * event-Xt.c (describe_event_window):
14891         * events-mod.h (XEMACS_MOD_CONTROL):
14892         * events.c:
14893         * events.c (Fmake_event):
14894         * events.c (character_to_event):
14895         * events.c (event_to_character):
14896         * events.c (format_event_object):
14897         * events.c (Fevent_modifiers):
14898         * events.h:
14899         * events.h (struct key_data):
14900         * events.h (struct button_data):
14901         * events.h (struct misc_user_data):
14902         * frame-x.c (Fcde_start_drag_internal):
14903         * frame-x.c (Foffix_start_drag_internal):
14904         * gpmevent.c (Freceive_gpm_event):
14905         * keymap.c:
14906         * keymap.c (bucky_sym_to_bucky_bit):
14907         * keymap.c (control_meta_superify):
14908         * keymap.c (make_key_description):
14909         * keymap.c (keymap_lookup_directly):
14910         * keymap.c (create_bucky_submap):
14911         * keymap.c (keymap_store):
14912         * keymap.c (define_key_check_and_coerce_keysym):
14913         * keymap.c (define_key_parser):
14914         * keymap.c (define_key_alternate_name):
14915         * keymap.c (Fdefine_key):
14916         * keymap.c (raw_lookup_key_mapper):
14917         * keymap.c (struct map_keymap_unsorted_closure):
14918         * keymap.c (map_keymap_unsorted_mapper):
14919         * keymap.c (map_keymap_sort_predicate):
14920         * keymap.c (map_keymap_sorted):
14921         * keymap.c (accessible_keymaps_mapper_1):
14922         * keymap.c (where_is_recursive_mapper):
14923         * keymap.c (describe_map_mapper):
14924         * keymap.c (describe_map_sort_predicate):
14925         * keymap.c (describe_map):
14926         * keymap.c (complex_vars_of_keymap):
14927         And a number of other files, the key modifier preprocessor
14928         constants that xemacs uses have names that conflict with constants
14929         defined under MS Windows for other purposes, so they were renamed
14930         to begin with the prefix XEMACS_. The variables that hold such
14931         modifiers were changed to consistently be of type int to fix
14932         various compile warnings.
14933
14934         * console.c (complex_vars_of_console):
14935         * device.c:
14936         * device-msw.c:
14937         * device-msw.c (mswindows_finish_init_device):
14938         * device-msw.c (msw_get_workspace_coords):
14939         * device-msw.c (mswindows_device_system_metrics):
14940         and various other files, added support for a new
14941         device property called offset-workspace which returns the position
14942         of the upper left corner of the workspace area and goes along with
14943         the existing size-workspace property.
14944
14945         * dialog-msw.c:
14946         * dialog-msw.c (push_bufbyte_string_as_unicode):
14947         * dialog-msw.c (mswindows_popup_dialog_box):
14948         Added support for XEmacs-style accelerator specifications in
14949         button text.  Note: I didn't add support for this under X Windows,
14950         and somebody needs to do this.
14951
14952         * dialog.c:
14953         * dialog.c (Fpopup_dialog_box):
14954         Documented the support for accelerators that was just mentioned.
14955
14956         editfns.c (get_home_directory): Changed behavior under Windows
14957         when HOME not defined; former behavior was irretrievably broken.
14958
14959         * emacs.c:
14960         * emacs.c (main_1):
14961         * emacs.c (main):
14962         * minibuf.c (clear_echo_area_internal):
14963         * minibuf.c (echo_area_append):
14964         * print.c:
14965         * print.c (std_handle_out_external):
14966         * print.c (std_handle_out_va):
14967         * print.c (fatal):
14968         * print.c (write_string_to_stdio_stream):
14969         * print.c (output_string):
14970         * print.c (debug_print):
14971         * print.c (debug_backtrace):
14972         * print.c (debug_short_backtrace):
14973         Cleaned up the code that prints text to stdout so that this can be
14974         changed to output into a console window instead under MS Windows,
14975         as described above.
14976
14977         * eval.c:
14978         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14979         * eval.c (internal_catch):
14980         * eval.c (unwind_to_catch):
14981         * eval.c (throw_or_bomb_out):
14982         * eval.c (condition_case_1):
14983         * eval.c (signal_1):
14984         * eval.c (check_error_state_sanity):
14985         * eval.c (call_with_suspended_errors_1):
14986         * eval.c (call_with_suspended_errors):
14987         * eval.c (reinit_vars_of_eval):
14988         Added code to catch throw loops and check for a pesky bug that may
14989         be gone now.
14990
14991         * event-msw.c:
14992         * event-msw.c (key_needs_default_processing_p):
14993         * event-msw.c (mswindows_wnd_proc):
14994         * event-msw.c (mswindows_modifier_state):
14995         * event-msw.c (emacs_mswindows_quit_p):
14996         * event-msw.c (vars_of_event_mswindows):
14997         a) Added support for using the alt key to select menu items as is
14998         standard under MS Windows.  This is controlled using the variable
14999         menu-accelerator-enabled, just like under X Windows.  There is an
15000         option on the options menu to turn this support on.  I really
15001         think that it should be on by default under Windows, but I'm not
15002         going to make this change yet.
15003
15004         b)  Added support for dynamic display size changes under Windows.
15005
15006         * event-stream.c:
15007         * event-stream.c (maybe_echo_keys):
15008         * event-stream.c (Fnext_event):
15009         * event-stream.c (command_builder_find_leaf):
15010         * event-stream.c (lookup_command_event):
15011         * event-stream.c (execute_command_event):
15012         * event-stream.c (pre_command_hook):
15013         * event-stream.c (post_command_hook):
15014         * event-stream.c (syms_of_event_stream):
15015         * event-stream.c (vars_of_event_stream):
15016         * event-stream.c (complex_vars_of_event_stream):
15017         * events.h (struct command_builder):
15018
15019         a) Tried to clean up a little bit the horribly written x-specific
15020         accelerator code that crept into this file.  I moved this code
15021         into menubar-x.c where it belongs. I also needed to move the
15022         command builder structure into the file events.h because it is
15023         accessed directly by this accelerator code.  What I didn't do, but
15024         which should be done at some point, is to properly abstract this
15025         code using device methods instead of the kludgy way that it
15026         currently hooks into the event code.
15027
15028         b) Added the lisp variables this-command-properties and
15029         last-command- properties, which should be used to synchronize two
15030         adjacent commands in preference to playing games with the variable
15031         this-command, which is typically what happens.
15032
15033         c) Added some slightly nasty code to hook into the lisp support
15034         for shifted- motion-key selection.  This is actually necessary for
15035         somewhat complicated reasons, which are described in
15036         simple.el. (NB: I think the proper thing would be to have the code
15037         that calls the pre and post command hooks also call out to generic
15038         lisp functions in simple.el, where all built-in stuff could be
15039         added.  I will think about this more.)
15040
15041         * event-unixoid.c (poll_fds_for_input):
15042         * lread.c (readchar):
15043         * redisplay-tty.c (tty_clear_frame):
15044         * redisplay-x.c (x_get_gc):
15045         * signal.c (interrupt_signal):
15046         And a whole bunch of other files: fixed up places that printed
15047         directly to stderr to instead call the function stderr_out so that
15048         the changes I made under Windows work correctly.
15049
15050         * filemode.c (mode_string):
15051         Warning fixes.
15052
15053         * frame-msw.c:
15054         * frame-msw.c (mswindows_size_frame_internal):
15055         Fixed the computation of frame size and position to keep the frame
15056         within the workspace area, rather than within the physical
15057         dimensions of the screen, so that the frame doesn't overlap window
15058         manager decorations, such as the start menu and toolbar, typically
15059         at the bottom of the screen.
15060
15061         * frame.c (vars_of_frame):
15062         Changed the default frame title format under MS Windows to consist
15063         of buffername-XEmacs, which is standard under MS Windows.  I think
15064         it might be a good idea to change this everywhere because I think
15065         it is superior to the current frame title format, but this is the
15066         kind of change that is likely to cause some people to get annoyed,
15067         so I'm not making it.
15068
15069         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15070
15071         * gui-msw.c (mswindows_handle_gui_wm_command):
15072         Fixed compile warnings.
15073
15074         * gui-x.c:
15075         * gui-x.c (strdup_and_add_accel):
15076         * gui-x.c (button_item_to_widget_value):
15077         * gui-x.h:
15078         Added code to automatically put an accelerator onto the beginning
15079         of menu items that don't have one as is now the standard, and is
15080         described more later.  Also fixed things so that the menu item
15081         name can be an evaluated expression, again a new standard.
15082
15083         * gui.c:
15084         * gui.c (gui_item_add_keyval_pair):
15085         * gui.c (make_gui_item_from_keywords_internal):
15086         * gui.c (gui_add_item_keywords_to_plist):
15087         * gui.c (gui_item_accelerator):
15088         * gui.c (gui_name_accelerator):
15089         * gui.c (gui_item_included_p):
15090         * gui.c (gui_item_display_flush_left):
15091         * gui.c (gui_item_display_flush_right):
15092         * gui.c (parse_gui_item_tree_item):
15093         * gui.c (parse_gui_item_tree_children):
15094         * gui.c (parse_gui_item_tree_list):
15095         Mule-ized.  Cleanup.  GCPRO addition.
15096
15097         * line-number.c (buffer_line_number):
15098         * lisp.h:
15099         * lisp.h (EMACS_INT_MAX):
15100         Added the manifest constant EMACS_INT_MIN corresponding to the
15101         existing constant EMACS_INT_MAX.  This is partially to fix compile
15102         warnings under Windows, and partly for cleanliness.
15103
15104         * menubar-msw.c:
15105         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15106         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15107         * menubar-msw.c (displayable_menu_item):
15108         * menubar-msw.c (populate_menu_add_item):
15109         * menubar-msw.c (populate_or_checksum_helper):
15110         * menubar-msw.c (populate_menu):
15111         * menubar-msw.c (update_frame_menubar_maybe):
15112         * menubar-msw.c (prune_menubar):
15113         * menubar-msw.c (msw_char_is_accelerator):
15114         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15115         * menubar-msw.c (mswindows_handle_wm_command):
15116         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15117         * menubar-msw.c (mswindows_handle_wm_initmenu):
15118         * menubar-msw.c (mswindows_update_frame_menubars):
15119         * menubar-msw.c (mswindows_free_frame_menubars):
15120         * menubar-msw.c (mswindows_popup_menu):
15121         Fixed a bug in handling accelerators where an extra character
15122         would be displayed in the menu item.  Also generalized the
15123         function displayable_menu_item because it is now used by the
15124         dialog box code as well.  And finally, added code in the functions
15125         that create the menubar to extract a list of accelerators for the
15126         top level menubar, which is used in the event code to determine
15127         whether a particular alt-key combination should be used to invoke
15128         a menu item, or should be passed through to access the standard
15129         XEmacs keymap binding for this key combination.
15130
15131         Much needed GCPROing.
15132
15133         * menubar-x.c:
15134         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15135         * menubar-x.c (menu_item_descriptor_to_widget_value):
15136         * menubar-x.c (restore_in_menu_callback):
15137         * menubar-x.c (x_popup_menu):
15138         * menubar-x.c (menu_move_up):
15139         * menubar-x.c (menu_move_down):
15140         * menubar-x.c (menu_move_left):
15141         * menubar-x.c (menu_move_right):
15142         * menubar-x.c (menu_select_item):
15143         * menubar-x.c (command_builder_operate_menu_accelerator):
15144         * menubar-x.c (menu_accelerator_junk_on_error):
15145         * menubar-x.c (command_builder_find_menu_accelerator):
15146         * menubar-x.c (Faccelerate_menu):
15147         * menubar.h:
15148         Moved a whole bunch of code here that was previously in
15149         event-stream.c as described above.  There is also code connected
15150         to the new standard of adding an accelerator to the beginning of
15151         menu items that don't have one as described above and below.
15152
15153         * menubar.c:
15154         * menubar.c (menu_parse_submenu_keywords):
15155         * menubar.c (Fmenu_find_real_submenu):
15156         * menubar.c (Fnormalize_menu_item_name):
15157         * menubar.c (syms_of_menubar):
15158         * menubar.c (vars_of_menubar):
15159         * menubar.c (complex_vars_of_menubar):
15160
15161         a) Cleaned up a bunch of documentation and improved it.
15162
15163         b) XEmacs now automatically adds an accelerator onto the beginning
15164         of any menu items that don't have one.  I did this because there
15165         will inevitably be some menu items on the main menubar that don't
15166         have accelerators on them because the package that adds that
15167         particular menu item hasn't yet been fixed up to have accelerators
15168         in them and it looked rather strange to have some items with and
15169         some items without accelerators, especially since even in items
15170         without accelerators, you can, at least under windows, still
15171         access the item through an accelerator corresponding to the first
15172         character in the item's name.  If people don't like this behavior,
15173         I can add a variable to turn it off optionally, but I'm not sure
15174         this is a good idea because we really do need to have accelerators
15175         on all of the menu items, and if a package doesn't like the
15176         accelerators being put on the first character, then it should put
15177         the accelerators where they belong.
15178
15179         c) I made a behavior change, which is that the descriptor that
15180         specifies the text of the menu item, which formerly was just a
15181         string, can now also be an evaluated expression.  This makes this
15182         descriptor parallel with all of the others, which could also be
15183         evaluated expressions.  This also obviates the need for the
15184         keyword :label, which was previously listed in the documentation
15185         as unimplemented, and which was for the same purpose.
15186
15187         d) GCPROing.
15188
15189         * ntproc.c:
15190         * ntproc.c (new_child):
15191         * ntproc.c (sys_spawnve):
15192         * ntproc.c (find_child_console):
15193         * ntproc.c (sys_kill):
15194         Fixed compile warnings.  By the way, this file should really go
15195         away entirely, and this will happen as soon as Kirill makes his
15196         final round of process cleanups, which affect the function
15197         call-process.
15198
15199         * process-nt.c:
15200         * process-nt.c (struct nt_process_data):
15201         * process-nt.c (find_process_from_pid):
15202         * process-nt.c (send_signal_the_nt_way):
15203         * process-nt.c (enable_child_signals):
15204         * process-nt.c (find_child_console):
15205         * process-nt.c (send_signal_the_95_way):
15206         * process-nt.c (nt_finalize_process_data):
15207         * process-nt.c (ensure_console_window_exists):
15208         * process-nt.c (nt_create_process):
15209         * process-nt.c (nt_kill_child_process):
15210         * process-nt.c (nt_kill_process_by_pid):
15211         * process-nt.c (nt_open_network_stream):
15212         * process-nt.c (vars_of_process_nt):
15213         Copied over code from Emacs 20.5 to correctly send signals to sub-
15214         processes under Windows 95.  Also added code to automatically
15215         create and hide console window when a sub-process is created under
15216         Windows 95, which obviates the need for the separate runemacs.exe
15217         executable, and finally implemented some variables that were
15218         implemented in Emacs 20.5, but previously not in XEmacs.  These
15219         include mswindows- start-process-share-console and
15220         mswindows-start-process-inherit-error-mode. (Both of these only
15221         apply to Windows 95.)
15222
15223         * regex.c (regex_compile): Fixed a compile warning.
15224
15225         * select-msw.c:
15226         * select-msw.c (mswindows_own_selection):
15227         * select-msw.c (mswindows_get_foreign_selection):
15228         * select-msw.c (mswindows_disown_selection):
15229         * select-msw.c (console_type_create_select_mswindows):
15230         * select-msw.c (syms_of_select_mswindows):
15231         Cleaned up the file and implemented the device method
15232         selection_exists_p, which had accidentally been left out.  Also
15233         removed four lisp functions that were remnants from before the
15234         time when the selection code was properly device abstracted.
15235         These functions are no longer needed because there are generic
15236         equivalents, and because they were added recently and don't exist
15237         in FSF Emacs, I don't think there's any problem with just deleting
15238         them.
15239
15240         * sysdep.c:
15241         * sysdep.c (sys_subshell):
15242         Fixed a compile warning, although in this case there's probably
15243         something wrong with this code, and it ought to be looked into
15244         more thoroughly by somebody who understands it.
15245
15246         * window.c:
15247         * window.c (Fwindow_text_area_height):
15248         * window.c (Fwindow_width):
15249         * window.c (Fwindow_full_width):
15250         * window.c (Fwindow_pixel_width):
15251         * window.c (debug_print_window):
15252         * window.c (syms_of_window):
15253         Added functions window-text-area-height and window-full-width,
15254         which are functions for returning various width and height
15255         characteristics of a window. (One of these functions is necessary
15256         for making the file dialog box work correctly, and the other one
15257         was added for completeness.)  Also added a table to the
15258         documentation for window-height which describes the entire scheme
15259         for accessing width and height characteristics of a window.
15260
15261 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15262
15263         * nt.c (fstat): Added a comment for another problem with
15264         non-encapsulated [f]stat(), reported by Adrian Aichner
15265         <aichner@ecf.teradyne.com>.
15266
15267 2000-03-11  Andy Piper  <andy@xemacs.org>
15268
15269         * window.c (make_dummy_parent): initialize subwindow instance
15270         cache.
15271         (Fset_window_configuration): zero extent_modiff.
15272
15273 2000-03-10  Andy Piper  <andy@xemacs.org>
15274
15275         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15276         more changes can be triggered.
15277         (Fredisplay_frame): ditto.
15278         (Fredraw_device): ditto.
15279         (Fredisplay_device): ditto.
15280         (redisplay_frame): make non-static.
15281         (redisplay_frame): call update_frame_gutter_geometry outside of
15282         display proper.
15283
15284         * gutter.h: declare update_frame_gutter_geometry.
15285
15286         * redisplay.h: declare redisplay_frame.
15287
15288         * gutter.c (update_frame_gutter_geometry): move geometry changes
15289         in update_frame_gutters here. Geometry changes can only occur
15290         outside of redisplay.
15291         (update_frame_gutters): remove geometry change code.
15292         (Fredisplay_gutter_area): make sure that we are in display when we
15293         update and that we have flushed any size changes.
15294
15295 2000-03-11  Andy Piper  <andy@xemacs.org>
15296
15297         * alloc.c (pdump_dump_data): remove i & count shadows.
15298
15299 2000-02-27  Mike Alexander  <mta@arbortext.com>
15300
15301         * sysdep.h: Declare pdump_read_file
15302
15303         * sysdep.c (pdump_read_file): New function
15304
15305         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15306         dump data
15307
15308 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15309
15310         * lrecord.h: add `lrecord_type_pgsetenv'.
15311
15312 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15313
15314         * symsinit.h: declare (vars|syms)_of* functions.
15315         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15316
15317 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15318
15319         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15320
15321         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15322         GCCs.
15323
15324         * emacs.c (main_1): Call postgres initialization code.
15325
15326         * postgresql.h: New file.  PostgreSQL RDBMS support.
15327         * postgresql.c: New file.
15328
15329 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15330
15331         * redisplay-output.c (redisplay_output_display_block): Disable
15332         redundant code.
15333
15334 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15335
15336         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15337         (Fcanna_henkan_next): Ditto.
15338         (Fcanna_bunsetu_henkou): Ditto.
15339         (Fcanna_henkan_kakutei): Ditto.
15340         (Fcanna_henkan_end): Ditto.
15341         (Fcanna_henkan_quit): Ditto.
15342         (Fcanna_henkan_next): Set retun value correctly.
15343         (c2mu): Use unsigned char instead of signed char.
15344
15345 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15346
15347         * emacs.c (main_1): Always call syms_of_gui.
15348         * inline.c: include gui.h
15349
15350 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15351
15352         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15353         converted to Lisp_Object.
15354         (Qtop_bottom): New variable.
15355         (syms_of_redisplay): Initialize it.
15356         * redisplay.h (Vvisible_bell): Ditto.
15357         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15358         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15359         only flash top and bottom.
15360
15361 2000-03-08  Andy Piper  <andy@xemacs.org>
15362
15363         * buffer.c (Frename_buffer): record new buffer name the right way.
15364
15365 2000-03-08  Andy Piper  <andy@xemacs.org>
15366
15367         * glyphs.c (update_subwindow): increase hash depth so that widget
15368         items get picked up properly.
15369
15370         * redisplay-output.c (compare_runes): increase hash depth so that
15371         widget items get picked up properly.
15372
15373 2000-03-08  Andy Piper  <andy@xemacs.org>
15374
15375         * gutter.c (output_gutter): add some debug.
15376
15377         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15378         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15379         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15380
15381         * redisplay-output.c (compare_runes): use display_hash to
15382         determine if glyphs really are not the same.
15383
15384         * glyphs.c (update_subwindow): check display_hash to see if
15385         anything really needs to be updated. If not then do
15386         nothing. Record the display_hash after updating.
15387         (image_instance_equal): compare the image_instance face also.
15388
15389 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15390
15391         * redisplay.h: Fix comment style.
15392
15393 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15394
15395         * consle-msw.h (struct mswindows_frame):
15396         Added new member paint_pending to indicate whether a WM_PAINT
15397         magic event has been queued for this frame.
15398
15399         * event-msw.c (mswindows_drain_windows_queue):
15400         Don't queue a WM_PAINT magic event if one is already queued.
15401         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15402
15403         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15404
15405 2000-03-07  Didier Verna  <didier@xemacs.org>
15406
15407         * dired.c: #include `regex.h' after `sysfile.h'.
15408
15409 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15410
15411         * sound.c (init_nas_sound): Fix compiler warning.
15412
15413         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15414         (FREE_STRUCT_P):
15415         (MARK_STRUCT_AS_FREE):
15416         (MARK_STRUCT_AS_NOT_FREE):
15417         Make `gcc -fstrict-aliasing' work properly.
15418
15419 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15420
15421         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15422         (mswindows_delete_device): Call CoUnnitialize().
15423
15424         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15425
15426 2000-02-25    <CraigL@DyCon.com>
15427
15428         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15429         <errno.h>.
15430
15431         * sysdep.c: This extern declaration for environ prevents MinGW
15432         from finding the variable in CRTDLL.DLL.
15433
15434         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15435         windows headers.
15436         (SHGFI_EXETYPE): ..
15437         (WM_MOUSEWHEEL): ..
15438         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15439         definitions.
15440         (MMRESULT): Removed, now defined in cygwin's windows headers.
15441         (TIMECAPS): ..
15442         (uid_t,gid_t,pid_t,ssize_t): ..
15443         (_timeb): Removed, MinGW defines both _timeb and timeb.
15444         (HAVE_H_ERRNO): Added.
15445         (HAVE_TZNAME): Added, configure is not detecting this.
15446
15447 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15448
15449         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15450         * syntax.c (syntax_match): Use it.
15451
15452         * cmds.c: Import auto-fill-chars from FSF Emacs.
15453         (Vauto_fill_chars): New variables.
15454         (internal_self_insert): Check Vauto_fill_chars.
15455         (vars_of_cmds):
15456         Declare auto-fill-chars as a Lisp variable and initialize it.
15457
15458 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15459
15460         * fileio.c (Fmake_symbolic_link):
15461         (Ffile_symlink_p):
15462         Run handlers even if local machine doesn't have symlinks.
15463
15464 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15465
15466         * event-msw.c (mswindows_drain_windows_queue):
15467         Don't generate paint magic events for non-XEmacs frames.
15468
15469 2000-03-05  Andy Piper  <andy@xemacs.org>
15470
15471         * redisplay.c (redisplay_frame): generate_displayable_area and
15472         friends assumes that we are not in GC, we therefore have to make
15473         sure that this doesn't happen.
15474
15475         * gutter.c (calculate_gutter_size): generate_displayable_area
15476         assumes that we are not in GC, we therefore have to make sure that
15477         this doesn't happen.
15478
15479 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15480
15481         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15482
15483 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15484
15485         * redisplay.c (regenerate_window): Make sure we set a sane value
15486         for end_pos even if we jump out of the loop.
15487         (regenerate_window): Answer Ben's question :-).
15488         (start_end_of_last_line): Add may_error argument.
15489         (start_of_last_line):
15490         (end_of_last_line): Pass may_error = 0.
15491         (end_of_last_line_may_error): New function.
15492         (pixel_to_glyph_translation): Use it, so we don't crash in
15493         event_to_glyph.
15494
15495 2000-03-04  Andy Piper  <andy@xemacs.org>
15496
15497         * window.h (struct window): add gutter_extent_modiff.
15498
15499         * window.c (allocate_window): zero out gutter_extent_modiff.
15500
15501         * redisplay.h: declare sync_display_line_structs.
15502
15503         * redisplay.c (add_glyph_rune): add a better comment.
15504
15505         * redisplay-output.c (sync_display_line_structs): made non-static.
15506         (compare_runes): remove unneccesary glyph cachel access.
15507
15508         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15509
15510         * gutter.c (output_gutter): don't output the gutter if extent
15511         changes only involve extents in buffers. use 4 sets of display
15512         lines.
15513         (gutter_extent_signal_changed_region_maybe): new function. Mark
15514         extents in gutters as changed.
15515         (update_frame_gutters): use 4 sets of display lines.
15516         (reset_gutter_display_lines): ditto.
15517         (free_frame_gutters): ditto.
15518         (redraw_exposed_gutter): force output of gutters.
15519
15520         * frame.h (struct frame): add 4 sets of gutter display lines.
15521
15522         * extents.c: (extent_changed_for_redisplay): signal changes to
15523         extents in strings in the gutter as well as extents in buffers.
15524
15525 2000-03-02  Andy Piper  <andy@xemacs.org>
15526
15527         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15528
15529         * frame.c (Fmake_frame): make sure the gutters get initialized
15530         after the frame is visible.
15531         (set_frame_selected_window): re-arrange compilation macros a
15532         little.
15533         (change_frame_size_1): mark gutters changed.
15534
15535         * device.c (Fset_device_class): mark gutters changed.
15536
15537 2000-03-01  Andy Piper  <andy@xemacs.org>
15538
15539         * window.c (window_top_frame_gutter_height): deleted.
15540         (window_bottom_frame_gutter_height): ditto.
15541         (window_left_frame_gutter_height): ditto.
15542         (window_right_frame_gutter_height): ditto.
15543         (window_top_gutter_height): don't use them.
15544         (window_bottom_gutter_height): ditto.
15545         (window_left_gutter_width): ditto.
15546         (window_right_gutter_width): ditto.
15547         (Fsplit_window): ditto.
15548         (Fwindow_pixel_edges): don't use border dimensions here.
15549
15550         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15551         (update_scrollbar_instance): ditto.
15552
15553         * redisplay.c (generate_modeline): don't take gutters into account.
15554         (generate_modeline): ditto.
15555         (redisplay_frame): small gutter display optimization.
15556
15557         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15558
15559         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15560         gutters into account.
15561
15562         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15563         for window position and type.
15564
15565         * gutter.c (get_gutter_coords): fix for frame gutters.
15566         (update_frame_gutters): update frame geometry if the gutters have
15567         changed.
15568         (init_frame_gutters): record current gutter geometries.
15569
15570         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15571         var.
15572         (mswindows_widget_instantiate): ditto.
15573
15574         * frame.h (struct frame): add current_gutter_bounds.
15575
15576         * frame.c (change_frame_size_1): position window and minibuffer
15577         appropriately taking into account the frame gutters.
15578
15579         * frame-x.c: (x_initialize_frame_size): take into account the
15580         frame gutters.
15581
15582 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15583
15584         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15585
15586 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15587
15588         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15589
15590 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15591
15592         * file-coding.c (reset_decoding_stream): Clear previous
15593         detection state when autodetect.
15594
15595 2000-02-29  Didier Verna  <didier@xemacs.org>
15596
15597         * extents.c (set_extent_glyph_1): don't require extents to be
15598         attached.
15599
15600 2000-02-27  Andy Piper  <andy@xemacs.org>
15601
15602         * gutter.c (Fset_default_gutter_position): don't default left and
15603         right gutter visibility to t.
15604         (Fset_default_gutter_position): run
15605         default-gutter-position-changed-hook.
15606         (syms_of_gutter): add default-gutter-position-changed-hook.
15607
15608 2000-02-26  Andy Piper  <andy@xemacs.org>
15609
15610         * specifier.c (Fmake_specifier): add gutter references.
15611
15612         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15613
15614         * lisp.h: declare Fvalid_plist_p.
15615
15616         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15617         as changed.
15618         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15619         well as its visibility so that it gets reconstructed.
15620         (construct_window_gutter_spec): new function. Construct a string
15621         to be displayed in the gutter from a plist of strings. Take care
15622         to only use elements that are declared as visible.
15623         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15624         WINDOW_GUTTER.
15625         (gutter_validate): allow plists of strings in the specifier.
15626         (gutter_specs_changed): construct the real_gutter from the gutter
15627         specs using construct_window_gutter_spec.
15628         (gutter_visible_validate): gutter-visible is a new specifier type.
15629         (Fgutter_visible_specifier_p): new function for the new specifier.
15630         (syms_of_gutter): declare gutter-visible and
15631         Fgutter_visible_specifier_p.
15632         (specifier_type_create_gutter): intitalize new gutter-visible
15633         specifier.
15634         (reinit_specifier_type_create_gutter): ditto.
15635         (specifier_vars_of_gutter): use new specifier type for gutter
15636         visibility.
15637         (init_frame_gutters): construct real_gutter correctly.
15638         (Fgutter_specifier_p): beef up documentation.
15639         (Fgutter_size_specifier_p): ditto.
15640
15641         * winslots.h: add real_gutter slots.
15642
15643 2000-02-25  Andy Piper  <andy@xemacs.org>
15644
15645         * device-msw.c: Be kind to older cygwin versions. From Raymond
15646         Toy <toy@rtp.ericsson.se>.
15647
15648         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15649         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15650
15651 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15652
15653         * elhash.c (MARK_OBJ): Practice macro hygiene.
15654
15655 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15656
15657         * miscplay.c: s/__inline__/inline/g;
15658         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15659         (get_device_compdc): INLINE ==> static inline
15660         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15661         find -name '*.h' | \
15662         xargs global-replace \
15663         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15664
15665 2000-02-25  Andy Piper  <andy@xemacs.org>
15666
15667         * window.c (window_top_frame_gutter_height): new function.
15668         (window_top_window_gutter_height): ditto.
15669         (window_top_gutter_height): use them.
15670         (window_bottom_frame_gutter_height): new function.
15671         (window_bottom_window_gutter_height): ditto.
15672         (window_bottom_gutter_height): use them.
15673         (window_left_window_gutter_width): new function.
15674         (window_left_frame_gutter_width): ditto.
15675         (window_left_gutter_width): use them.
15676         (window_right_window_gutter_width): new function.
15677         (window_right_frame_gutter_width): ditto.
15678         (window_right_gutter_width): use them.
15679         (window_pixel_height): new function. calulate window pixel height
15680         with frame gutter involvement.
15681         (Fsplit_window): calculate new sizes taking frame gutters into
15682         account.
15683         (window_char_height_to_pixel_height): don't include frame gutters.
15684         (window_char_height): use window_pixel_height.
15685         (window_pixheight): rename from window_pixel_height.
15686         (change_window_height): use it.
15687         (window_pixel_height_to_char_height): don't include frame gutters.
15688         (window_char_width_to_pixel_width): ditto.
15689
15690 2000-02-25  Andy Piper  <andy@xemacs.org>
15691
15692         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15693         if it is.
15694
15695 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15696
15697         * alloc.c (staticpro):
15698         (staticpro_nodump):
15699         (dumpstruct):
15700         (dumpopaque):
15701         (pdump_wire):
15702         (pdump_wire_list):
15703         (compact_string_chars):
15704         (pdump_dump_wired):
15705         Convert:  if (foo) abort();  ==>  assert (! foo);
15706
15707         * eldap.c (Fldap_search_basic):
15708         (Fldap_add):
15709         (Fldap_modify):
15710         (Fldap_delete):
15711         Fix compiler warnings, and possible crashes if (random) return
15712         value were to be used.
15713
15714 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15715
15716         * device-msw.c: Workaround ResetDC failure.
15717
15718         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15719         applying a devmode.
15720
15721         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15722         (mswindows_text_width): Do not start printer page.
15723
15724         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15725
15726         * glyphs-msw.c: Added image methods to msprinter console and
15727         msprinter-specific image instantiation.
15728
15729 2000-02-20  Mike Alexander  <mta@arbortext.com>
15730
15731         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15732         to avoid crashes when selection-sets-clipboard is on
15733         (mswindows_own_selection): ditto
15734
15735 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15736
15737         * glyphs-msw.c:
15738         * redisplay-msw.c (get_frame_dc):
15739         (get_frame_compdc):
15740         * console-msw.h:
15741         * device-msw.c (mswindows_init_device):
15742         (mswindows_delete_device):
15743         (msprinter_init_device):
15744         (msprinter_delete_device):
15745         * frame-msw.c (mswindows_init_frame_1):
15746         (mswindows_delete_frame):
15747         (msprinter_init_frame_3):
15748         (msprinter_delete_frame): Move compatible DC to device object from
15749         frame object, for both mswindows and msprinter. Only one at a time
15750         is needed, it is a real waste to have one per frame!
15751
15752 2000-02-23  Andy Piper  <andy@xemacs.org>
15753
15754         * glyphs.c: add dynamic width and height elements.
15755         (image_instance_equal): ditto.
15756
15757         * glyphs-widget.c (widget_query_geometry): calculate width and
15758         height dynamically if required.
15759         (initialize_widget_image_instance): initialize dynamic dimensions.
15760         (widget_instantiate): pick-up dynamic dimensions.
15761
15762         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15763         dynamic determination. Add appropriate macros.
15764
15765         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15766         dimensions safe.
15767         (WINDOW_GUTTER_SIZE): ditto.
15768         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15769
15770         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15771         inline.
15772         (get_frame_dc): ditto.
15773
15774         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15775         here.
15776
15777 2000-02-23  Martin Buchholz <martin@xemacs.org>
15778
15779         * XEmacs 21.2.31 is released.
15780
15781 2000-02-22  Ben Wing <ben@xemacs.org>
15782
15783         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15784
15785 2000-02-22  Andy Piper  <andy@xemacs.org>
15786
15787         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15788
15789 2000-02-21  Mike Sperber <mike@xemacs.org>
15790
15791         * .dbxrc:
15792         * .gdbinit:
15793         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15794         variables.
15795
15796 2000-02-21  Mike Sperber <mike@xemacs.org>
15797
15798         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15799
15800 2000-02-21  Martin Buchholz <martin@xemacs.org>
15801
15802         * XEmacs 21.2.30 is released.
15803
15804 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15805
15806         Performance hacking.
15807         * *.c (syms_of_*):
15808         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15809         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15810         * emacs.c (main_1):
15811         * lisp.h (DEFUN):
15812         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15813         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15814         * symeval.h (DEFVAR_SYMVAL_FWD):
15815         * symbols.c (guts_of_unbound_marker):
15816         Make all c_readonly objects also lisp_readonly and marked for life.
15817         * lrecord.h (struct lrecord_implementation):
15818         Document flags better.
15819         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15820         * lrecord.h (DECLARE_LRECORD):
15821         * lrecord.h (XSETRECORD):
15822         * lrecord.h (RECORDP):
15823         * lrecord.h (RECORD_TYPEP):
15824         * lrecord.h (RECORD_MARKER): New.
15825         * lrecord.h (error_check_*):
15826         * lrecord.h (CONCHECK_NONRECORD):
15827         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15828         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15829         * lrecord.h (set_lheader_implementation):
15830         * lrecord.h (enum lrecord_type): New.
15831         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15832         * alloc.c (disksave_object_finalization_1):
15833         * alloc.c (mark_object):
15834         * alloc.c (lrecord_type_index):
15835         * alloc.c (tick_lcrecord_stats):
15836         * alloc.c (Fgarbage_collect):
15837         * alloc.c (init_alloc_once_early):
15838         * alloc.c (pdump_load):
15839         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15840         * alloc.c (lrecord_type_index): Delete.
15841         Make lisp object type indexes be constant.
15842           Makes (byte-compile) 5% faster.
15843         Put all marker functions into their own array.
15844           Makes (garbage-collect) 5% faster.
15845         Optimize SYMBOL_VALUE_MAGIC_P.
15846           Makes (byte-compile) 2-3% faster.
15847         * config.h.in (gc_checking_assert): New.
15848         * alloc.c: Use gc_checking_assert().
15849         * .dbxrc: Make compatible with new object type implementation.
15850         * .gdbinit: Make compatible with new object type implementation.
15851         * alloc.c: Delete all symbols defined only for debugging, such as
15852         Lisp_Type_Vector and lrecord_charset.
15853
15854 2000-02-21  Andy Piper  <andy@xemacs.org>
15855
15856         * gui-msw.c (Fmswindows_shell_execute): fix file location
15857         problems.
15858
15859         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15860         unshowing so that set_window_buffer doesn't undo
15861         kill_buffer_hook's hard work.
15862
15863         * glyphs-widget.c (tab_control_query_geometry): don't count the
15864         first item when calculating geometry.
15865
15866         * glyphs.c (map_subwindow): remove redundant code.
15867         (update_frame_subwindows): be more circumspect about when to
15868         update subwindows.
15869
15870         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15871         when items haven't changed. Update faces if faces have changed as
15872         well as just the widget face.
15873         (x_tab_control_update): Update faces if faces have changed as well
15874         as just the widget face.
15875
15876 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15877
15878         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15879         registration.
15880         (build_syscolor_string): Use mswindows_color_to_string to try to
15881         get a named color.
15882         (mswindows_device_system_metrics): Reverse the foreground and
15883         background colors so that they match the documentation.
15884
15885         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15886         they match the default Windows palette.
15887         (mswindows_color_to_string): New function.
15888
15889 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15890
15891         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15892
15893 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15894
15895         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15896         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15897
15898         * symbols.c (init_symbols_once_early): Removed obsolete
15899         DATA_SEG_BITS related kludge.
15900         (defvar_magic): Ditto.
15901
15902         * malloc.c: Removed obsolete DATA_SEG_BITS
15903         * ralloc.c: Ditto.
15904         * mem-limits.h: Ditto.
15905
15906         * Makefile.in.in: Removed obsolete HAVE_SHM
15907         * emacs.c: Ditto.
15908
15909 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15910
15911         *  device-msw.c (mswindows_delete_device): Free DDE string
15912         handles.
15913
15914 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15915
15916         * keymap.c (get_keyelt):
15917         * unexnt.c (unexec):
15918         * vm-limit.c (memory_warnings):
15919         * ntheap.c (recreate_heap):
15920         * ntheap.h (UNINIT_PTR):
15921         * select-msw.c (Fmswindows_get_clipboard):
15922         (Fmswindows_set_clipboard):
15923         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15924         * objects-msw.c:
15925         * menubar-msw.c (displayable_menu_item):
15926         * glyphs-msw.c:
15927         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15928         * sysdep.c (sys_subshell):
15929         * process-nt.c (nt_create_process):
15930         * nt.c (normalize_filename):
15931         (dostounix_filename):
15932         (unixtodos_filename):
15933         * ntproc.c (win32_executable_type):
15934         * ntplay.c (play_sound_data_1):
15935         (play_sound_file):
15936         * editfns.c (get_home_directory):
15937         * event-msw.c (struct winsock_stream):
15938         (mswindows_dde_callback):
15939         * device-msw.c (msprinter_init_device):
15940         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15941
15942         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15943         mswindows_clear_toolbar were swapped!
15944
15945         * objects-msw.c:(colormap_t):
15946         (fontmap_t):
15947         * emacs.c (struct standard_args): Fixed const jumble.
15948
15949         * glyphs-widget.c (update_widget): Fixed comparison notation.
15950
15951         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15952
15953         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15954         __declspec(noreturn) syntax.
15955
15956 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15957
15958         * eldap.c (Fldap_open):
15959         (Fldap_search_basic):
15960         (Fldap_add):
15961         (Fldap_modify):
15962         Use new coding system conversion macros.
15963
15964 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15965
15966         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15967
15968 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15969
15970         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15971         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15972
15973         * eldap.c (Qadd, Qreplace): New constant symbols
15974         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15975         interruptions by XEmacs signals
15976         Remove unnecessary calls to slow_down_interrupts and
15977         speed_up_interrupts
15978         (Fldap_search_basic): Renamed from Fldap_search_internal
15979         Added new optional parameter VERBOSE that triggers the
15980         display of progress messages
15981         Remove unnecessary calls to slow_down_interrupts and
15982         speed_up_interrupts
15983         LDAP result code analysis rewritten
15984         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15985         (syms_of_eldap): Define the new symbols and functions
15986
15987
15988 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15989
15990         * realpath.c: Determine PATH_MAX maximally portably.
15991
15992         * insdel.c (bytecount_to_charcount): Optimize.
15993         The function used to be optimized for entirely ASCII sequences.
15994         Now it is optimized for successive characters from the same
15995         charset.  This also wins big for _mostly_ ASCII sequences.
15996
15997         * fileio.c (Ffile_truename): convert return from realpath() using
15998         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15999         - Rewrite GCPROing slightly.
16000
16001         * sysdep.c (sys_open): Do filename conversion, like all other
16002         sys_* functions.  Fixes bug:
16003         (let ((file-name-coding-system 'iso-8859-2))
16004            (write-region x y latin2-name))
16005         ==> writes filename using internal encoding.
16006
16007 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16008
16009         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16010         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16011         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16012         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16013         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16014         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16015         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16016         (CONST_IF_NOT_DEBUG): Delete.
16017         * alloc.c (this_one_is_unmarkable): Delete.
16018         (mark_object): Don't check for this_one_is_unmarkable. Use the
16019         c_readonly flag instead.
16020         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16021
16022 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16023
16024         * event-msw.c (mswindows_drain_windows_queue):
16025         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16026         away redundant repaint events.
16027
16028 2000-02-17  Andy Piper  <andy@xemacs.org>
16029
16030         * redisplay.h: declare mark_redisplay_structs.
16031
16032         * redisplay.c (redisplay_window):
16033         (redisplay_frame): don't check subwindows_state_changed.
16034         (mark_redisplay): mark gutters here.
16035
16036         * glyphs.c: (instantiate_image_instantiator): always layout if we
16037         haven't done so already.
16038         (allocate_image_instance): don't mark as dirty.
16039         (update_subwindow): bind inhibit_quit.
16040
16041         * gutter.c (mark_gutters): new function.
16042
16043         * glyphs-x.c (x_update_widget): Always resize to get round a
16044         widget bug.
16045
16046         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16047         breaking absolutely everything.
16048
16049         * gutter.h: declare mark_gutters.
16050
16051 2000-02-16  Martin Buchholz <martin@xemacs.org>
16052
16053         * XEmacs 21.2.29 is released.
16054
16055 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16056
16057         * fns.c (size_bit_vector): Fix computation of the size.
16058
16059 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16060
16061         * *.[ch]: Change CONST to const globally.
16062         find -name '*.[ch]' | \
16063         xargs global-replace \
16064         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16065         - Remove vestigial references to CONST_IS_LOSING
16066
16067 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16068
16069         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16070         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16071         events instead of dispatching them directly.
16072         (mswindows_handle_paint): New function to do repainting.
16073         (mswindows_wnd_proc):
16074         (emacs_mswindows_handle_magic_event): Call above function.
16075
16076 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16077
16078         * objects-msw.c (mswindows_create_font_variant): Return the new
16079         font handle.
16080         (initialize_font_instance): Get font metrics from the underlined
16081         variant of the font to cope with the case where the underlined
16082         font has a bigger descent.
16083
16084 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16085
16086         * gui.c (gui_item_accelerator): Return the first underlined
16087         character in item name.
16088
16089 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16090
16091         * lisp.h: Added Qprinter.
16092
16093         * general.c (syms_of_general): Initialized it.
16094
16095         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16096         (get_frame_dc):
16097         (get_frame_compdc): Made inline.
16098
16099         * console.h (struct console_methods): Added eject_page method.
16100
16101         * frame.h: Added FRAME_DISPLAY_P and friends.
16102         Aligned backslahes in many macros in more readable fashion.
16103         Added page_number to struct frame, and an accessor macro
16104         for it.
16105
16106         * defice.h: Added DEVICE_DISPLAY_P and friends.
16107
16108         * device.c (Fdevice_printer_p): Used these.
16109
16110         * frame.c (allocate_frame_core): Initialize page number.
16111         (Fprint_job_page_number):
16112         (Fprint_job_eject_page): Implemented.
16113
16114         * frame-msw.c (msprinter_eject_page): Added method.
16115         (msprinter_start_page): Added.
16116
16117         * window.c (Fwindow_truncated_p): Fixed docstring.
16118         (Fwindow_last_line_visible_height): Implemented.
16119
16120 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16121
16122         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16123
16124 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16125
16126         * syntax.c (scan_words): Always advance at least one character.
16127
16128 2000-02-13  Andy Piper  <andy@xemacs.org>
16129
16130         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16131         to make sure the glyph is in the cachels.
16132
16133         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16134         global image instance flag.
16135         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16136         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16137
16138         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16139         (Fset_image_instance_property): mark layout as changed.
16140         (invalidate_glyph_geometry_maybe): mark layout as changed.
16141         (glyph_width): use new NEEDS_LAYOUT macro.
16142         (glyph_ascent): ditto.
16143         (glyph_descent): ditto.
16144         (glyph_height): ditto.
16145         (image_instance_layout): mark layout as clean after laying out.
16146         (update_subwindow): don't mark layout as clean here.
16147
16148         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16149         should no longer be needed.
16150
16151         * glyphs-x.c (x_update_widget): sanitize asserts.
16152         (x_finalize_image_instance): sanitize assignment to widgets.
16153
16154         * glyphs-widget.c (widget_instantiate): don't need to clear the
16155         layout flag here.
16156
16157 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16158
16159         * sysdep.c (getcwd): Use standard prototype.
16160         * sysdep.h (getcwd): Use standard prototype.
16161
16162         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16163         (sequence, start, end).
16164         Remove redundant type checking.
16165         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16166         view of `caller-protects') to avoid a crash where the real fix was
16167         found elsewhere.
16168
16169 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16170
16171         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16172
16173         * s/sol2.h: Remove feature macro initialization.
16174
16175         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16176         (vector_hash): New.  Code from internal_hash.
16177         * lrecord.h:
16178         Fix up allocation subsystem comments.
16179
16180         * config.h.in: Add __EXTENSIONS__ for Solaris.
16181
16182         * systime.h (EMACS_GETTIMEOFDAY): New.
16183         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16184         Remove Solaris-specific code.
16185         Use void* for the (ignored) second arg for gettimeofday().
16186
16187         * elhash.c (hash_table_hash): Implement it, finally.
16188         * elhash.c:  Use hashcode_t.
16189
16190         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16191         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16192
16193         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16194         * fns.c (size_bit_vector):
16195         * alloc.c (size_vector):
16196         (make_vector_internal):
16197         (make_bit_vector_internal):
16198         (sweep_bit_vectors_1):
16199         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16200
16201 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16202
16203         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16204         Include strings.h to avoid warnings for bzero and strcasecmp.
16205
16206 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16207
16208         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16209         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16210
16211         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16212         sequence.
16213
16214 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16215
16216         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16217         use a value field instead.
16218         (symbol_value_forward_forward): Use value field.
16219         (DEFVAR_SYMVAL_FWD): Use value field.
16220         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16221         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16222         (DEFVAR_CONST_INT): Ditto.
16223         (DEFVAR_BOOL): Ditto.
16224         (DEFVAR_CONST_BOOL): Ditto.
16225         (DEFVAR_INT_MAGIC): Ditto.
16226         (DEFVAR_BOOL_MAGIC): Ditto.
16227
16228         * symbols.c (guts_of_unbound_marker): Use value field.
16229         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16230         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16231
16232         * lisp.h: Declare dumpopaque and noninteractive1.
16233
16234         * alloc.c (dumpopaque): Added.
16235         (pdump_dump_opaquevec): Added.
16236         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16237         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16238         noninteractive.
16239
16240 2000-02-10  Andy Piper  <andy@xemacs.org>
16241
16242         * glyphs.c (image_instance_layout): if the size changes, mark it
16243         as such.
16244
16245         * redisplay-output.c (redisplay_output_layout): Update the
16246         subwindow here.
16247         (redisplay_output_subwindow): ditto.
16248
16249         * glyphs.c (update_subwindow): make sure we reset flags for
16250         layouts as well as everything else.
16251
16252         * glyphs-widget.c (layout_layout): don't need to set the instances
16253         dimensions here.
16254
16255 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16256
16257         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16258         not HAVE_DLOPEN, which is a lower-level thing.
16259
16260         * .cvsignore: Ignore gmon.out
16261
16262 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16263
16264         * .cvsignore: Ignore portable dumper xemacs.dmp file
16265
16266 2000-02-09  Andy Piper  <andy@xemacs.org>
16267
16268         * redisplay-output.c (redisplay_output_layout): be more clever
16269         about when we output based on the changed flags.
16270
16271         * glyphs.h (struct image_instantiator_methods): add update_method.
16272         (struct Lisp_Image_Instance): add changed flags. Declare new
16273         macros for manipulating them.
16274
16275         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16276         (image_instance_parent_glyph): find an image_instance's parent
16277         glyph or image_instance.
16278         (image_instance_layout): mark the size as changed.
16279         (set_image_instance_dirty_p): new function. mark an image
16280         instance, plus all of its parents, as dirty.
16281         (Fset_image_instance_property): use it.
16282         (Fglyph_animated_timeout_handler): use it.
16283         (update_subwindow): call update_widget and device methods for
16284         update_subwindow. Mark all changed flags as clean.
16285         (Fresize_subwindow): mark size as changed.
16286
16287         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16288         failures.
16289         (x_update_subwindow): only resize subwindows here.
16290         (x_update_widget): new function. Update all changed properties of
16291         a widget.
16292         (x_resize_subwindow): deleted.
16293         (x_widget_set_property): deleted.
16294         (x_progress_gauge_set_property): deleted.
16295         (x_progress_gauge_update): new function. Implement recorded
16296         changes.
16297         (x_tab_control_update): ditto.
16298         (x_tab_control_set_property): deleted.
16299         (console_type_create_glyphs_x): declare new functions.
16300         (image_instantiator_format_create_glyphs_x): ditto.
16301
16302         * glyphs-widget.c (widget_set_property): mark text changed.
16303         (update_widget): new function. Update properties of a widget.
16304         (widget_instantiate): for layouts make sure we set their
16305         children's parent correctly.
16306         (tab_control_set_property): new function. Record changes that will
16307         take place under redisplay's control.
16308         (progress_gauge_set_property): ditto.
16309         (image_instantiator_progress_guage): declare new functions.
16310         (image_instantiator_tab_control): ditto.
16311
16312         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16313         now.
16314         (mswindows_update_widget): new function. Update all properties on
16315         a widget that have changed.
16316         (mswindows_button_update): new function. Update a button's set
16317         state.
16318         (mswindows_tab_control_update): new function. Update the items in
16319         a tab.
16320         (mswindows_tab_control_set_property): deleted.
16321         (mswindows_progress_gauge_update): new function. Update the
16322         progress gauge's progress.
16323         (mswindows_widget_set_property): deleted. This is all done
16324         asynchronously now.
16325         (mswindows_progress_gauge_set_property): ditto.
16326         (console_type_create_glyphs_mswindows): declare new methods.
16327         (image_instantiator_format_create_glyphs_mswindows): ditto.
16328
16329         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16330         (msprinter_set_frame_properties): ditto.
16331
16332         * console.h (struct console_methods): Add update_widget_method.
16333
16334 2000-02-09  Andy Piper  <andy@xemacs.org>
16335
16336         * gui-msw.c (Fmswindows_shell_execute): Make
16337         mswindows-shell-execute industrial strength.
16338
16339 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16340
16341         * lrecord.h: Make macro argument `props' match member function `plist'.
16342         * fns.c (Fget):
16343         * fns.c (Fput):
16344         * fns.c (Fremprop):
16345         * fns.c (Fobject_plist):
16346         * alloc.c:
16347         * symbols.c:
16348         Object property list frobbing cleanup.
16349         - Allow any lisp object (compared with `eq'), not just symbols, as
16350           keys in object plists.
16351         - Move symbol plist frobbing into symbols.c, where it belongs.
16352         - Move string plist frobbing into alloc.c, where it belongs.
16353         - Everything's an lrecord now, so no need to test for symbolp, etc.
16354         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16355
16356         * extents.c: Reorder code to remove declarations.
16357
16358         * frame.h (store_in_alist): Remove useless declaration.
16359
16360 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16361
16362         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16363         * config.h.in: Add HAVE_XCONVERTCASE.
16364
16365 2000-02-07  Andy Piper  <andy@xemacs.org>
16366
16367         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16368         it breaks many things.
16369
16370 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16371
16372         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16373         actually can start a common comment type.
16374         * src/syntax.h (SYNTAX_END_P): ditto for end.
16375
16376 2000-02-07  Martin Buchholz <martin@xemacs.org>
16377
16378         * XEmacs 21.2.28 is released.
16379
16380 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16381
16382         * event-Xt.c (x_keysym_to_character): New.
16383         (maybe_define_x_key_as_self_inserting_character): New.
16384         (x_has_keysym): New.
16385         Auto-define all keys on the keyboard as self-insert-key.
16386
16387 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16388
16389         * menubar.c (vars_of_menubar): A small code simplification.
16390
16391         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16392
16393         * ExternalShell.c:
16394         * ExternalClient.c:
16395         * EmacsShell-sub.c:
16396         * EmacsManager.c:
16397         * EmacsFrame.c:
16398         Use consistent style for specifying X resources.
16399
16400         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16401         This makes (dontusethis-set-symbol-value-handler) actually usable.
16402
16403         * lrecord.h (lrecord_decription_type):
16404         * alloc.c (pdump_register_sub):
16405         (pdump_dump_data):
16406         (pdump_reloc_one):
16407         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16408         Comply with XEmacs coding style.
16409         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16410         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16411
16412         * keymap.c (Faccessible_keymaps):
16413         Make (accessible-keymaps map "\C-h") do the Right Thing.
16414         Make (accessible-keymaps map []) do the Right Thing.
16415         Make (accessible-keymaps map "") do the Right Thing.
16416         (check_keymap_definition_loop): New function.
16417         (keymap_store_internal): Keep luser from shooting self in foot,
16418           via (define-key ctl-x-4-map "p" global-map).
16419         Remove fullness slot from struct Lisp_Keymap, since hash tables
16420         are now reliable.
16421         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16422
16423 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16424
16425         * redisplay.c (init_redisplay): Fix small memory leak.
16426         * elhash.h:
16427         * elhash.c (pdump_reorganize_hash_table):
16428         Rename from reorganize_hash_table. Change prototype.
16429         Reuse the original memory for hentries.  Save 100k.
16430         * alloc.c (PDUMP_READ): new macro.
16431         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16432         * alloc.c: No need to #ifndef before #undef.
16433
16434         * print.c: Allow debug_print() to print readably by modifying
16435         debug_print_readably.  Use consistent variable names.
16436
16437         * .dbxrc: Try to get things to work even if stopped in a function
16438         without source available by explicitly specifying source files.
16439 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16440
16441         * unexnt.c (_start): Removed bogus code which caused loading heap
16442         from differrent executable file.
16443         Removed bogus assignment to _fmode, which caused inconsistencies.
16444
16445 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16446
16447         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16448         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16449         Do not preliminary `#define signal sigset'.
16450
16451         * systime.h: Do not prototype environ on windows nt and cygwin,
16452         this conflicts with system header.
16453
16454         * syssignal.h: Use correct define for WINDOWSNT
16455
16456         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16457         with system header.
16458
16459         * sysdep.c (near start of file): Fixed commentary and rearranged
16460         ifdefs in readable order.
16461         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16462         (start_of_text):
16463         (end_of_text):
16464         (end_of_data): Do not compile in if using PDUMP.
16465
16466         * symsinit.h: Prototyped vars_of_nt().
16467
16468         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16469         (find_child_console): Use it.
16470         (sys_kill): Use it.
16471
16472         * ntheap.h: Do not extern os_subtype.
16473
16474         * ntheap.c (cache_system_info): Do not cache unneeded:
16475         nt_major_version, nt_minor_version and os_subtype.
16476         (recreate_heap): Do not compile in when PDUMPing.
16477
16478         * nt.c (geteuid and friends): Use the new varibale
16479         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16480         (init_user_info): Removed the above mentioned hackery.
16481         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16482         stat has been fixed in the C runtime.
16483         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16484
16485         * file-coding.c (struct file_coding_dump): Do not define
16486         ucs_to_mule_table in the struct if not MULE.
16487         (struct struct lrecord_description fcd_description_1): Do not dump
16488         the above.
16489
16490         * emacs.c (main_1): Call vars_of_nt().
16491         (right before Fdump_emacs_data): Don't need lastfile if using both
16492         portabe dumper and system malloc.
16493
16494         * alloc.c (Fmemory_limit): Conditionalized out.
16495         (pdump): Use OPEN_BINARY for the portable dump file.
16496         (pdump_load): Ditto.
16497
16498 2000-02-02  Mike Alexander  <mta@arbortext.com>
16499
16500         * nt.c (convert_time): Set tm_isdst before calling mktime and
16501         avoid calling it at all if the compiler supports 64 bit integers.
16502         Also initialize utc_base_ft before using it.
16503
16504 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16505
16506         * frame.c (change_frame_size_1): Take f->internal_border_width
16507         into consideration when calculating the width of the frame.
16508
16509 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16510
16511         * window.c (frame_min_height):
16512         (frame_size_valid_p):
16513         (frame_pixsize_valid_p): Added.
16514         (check_frame_size): Generalized.
16515
16516         * window.h: Prototyped the above.
16517
16518         * lisp.h:
16519         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16520         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16521         Deleted Vwin32_* and Vbinary_process_* unused variables.
16522
16523         * device-msw.c (msprinter_init_device): Do not get printer font
16524         list; Added DEVMODE functions.
16525
16526         * frame-msw.c: Added lots of printer code.
16527
16528         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16529         general.c.
16530
16531         * console-msw.h: Added more msprinter device private slots.
16532
16533 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16534
16535         * event-msw.c (key_needs_default_processing_p): Added.
16536         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16537
16538 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16539
16540         * glyphs.c (image_instance_layout): Mark image instance as clean
16541         after layout.
16542         (glyph_dirty_p): Removed redundant function.
16543         (invalidate_glyph_geometry_maybe): Added.
16544         (update_glyph_cachel_data): Call it.
16545
16546         * glyphs.h: Prototyped it.
16547
16548         * redisplay.c (add_glyph_rune): Call it.
16549         (redisplay_window): Reset glyphs cachels when frame faces have
16550         changed, thus forcing recomputation of built-in border glyphs.
16551
16552 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16553
16554         * Makefile.in.in: Make portable dumper and purify play well together.
16555         Add imperfect, but better than nothing, support for pdump.
16556         Remove xemacs.dmp when temacs is re-generated.
16557         Don't ignore errors when dumping xemacs.
16558
16559         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16560
16561 2000-01-28  Andy Piper  <andy@xemacs.org>
16562
16563         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16564         (setup_normal_frame): ditto.
16565         (setup_frame_without_minibuffer): ditto.
16566         (setup_minibuffer_frame): ditto.
16567         (delete_frame_internal): ditto.
16568         (Fmake_frame_invisible): ditto.
16569         (Ficonify_frame): ditto.
16570
16571         * window.h: change Fset_window_buffer signature.
16572
16573         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16574         (Fset_window_buffer): allow recording of buffer if the window is
16575         the selected window.
16576         (window_loop): Use new Fset_window signature.
16577
16578 2000-01-23  Daniel Pittman  <daniel@danann.net>
16579
16580         * config.h.in: Added template for `HAVE_ATHENA_3D'
16581
16582 2000-01-29  Andy Piper  <andy@xemacs.org>
16583
16584         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16585
16586         * gutter.c (output_gutter): Don't output if the window isn't live.
16587
16588 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16589
16590         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16591         of 01/12/00: Moved SetFocus back here where it belongs.
16592
16593 2000-01-23  Andy Piper  <andy@xemacs.org>
16594
16595         * s/cygwin32.h: declare printer things.
16596
16597 2000-01-26  Andy Piper  <andy@xemacs.org>
16598
16599         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16600         Alexander.
16601
16602 2000-01-24  Andy Piper  <andy@xemacs.org>
16603
16604         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16605         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16606
16607         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16608
16609         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16610
16611         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16612
16613         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16614         (mswindows_output_display_block): Avoid local shadows.
16615
16616         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16617         (mswindows_enqueue_mouse_button_event): ditto.
16618         (mswindows_handle_gui_wm_command): remove declaration.
16619
16620         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16621         warnings.
16622
16623         * console-msw.h: Avoid shadows.
16624         (mswindows_get_toolbar_button_text):
16625         (emacs_mswindows_create_stream_pair):
16626         (emacs_mswindows_delete_stream_pair):
16627         (mswindows_handle_toolbar_wm_command): declare.
16628
16629         * device-msw.c (build_syscolor_string): Avoid shadows.
16630
16631 2000-01-23  Andy Piper  <andy@xemacs.org>
16632
16633         * glyphs-widget.c (widget_instantiate): reverse the items for
16634         layouts so that children are in the expected order.
16635
16636 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16637
16638         * ralloc.c: safe_bcopy ==> memmove
16639         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16640         * s/msdos.h: Remove BCOPY macros.
16641         * insdel.c (gap_right): Remove BCOPY conditional code.
16642         * insdel.c (gap_left): Remove BCOPY conditional code.
16643         XEmacs demands a working ANSI C compiler - hence memmove.
16644
16645         * regex.c (regex_compile): Remove accidental use of trigraphs.
16646
16647 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16648
16649         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16650         event timestamp.
16651
16652 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16653
16654         * event-msw.c (mswindows_drain_windows_queue): Added the
16655         parameter.
16656         (mswindows_need_event): Commented the call to
16657         mswindows_drain_windows_queue().
16658         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16659         only.
16660
16661         * console-msw.h: Moved a few function prototypes here from
16662         event-msw.c.
16663
16664         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16665         parameter from unsigned short to unsigned long.
16666         (Fmswindows_shell_execute): Added return value.
16667
16668 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16669
16670         * sysdep.c (init_system_name):
16671           process-unix.c (unix_canonicalized_host_name):
16672         Don't call freeaddrinfo() if getaddrinfo() fails.
16673
16674         * process-unix.c (unix_open_unix_network_stream):
16675         Moved the code to get a port # into address loop.
16676
16677 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16678
16679         * buffer.c (reinit_vars_of_buffer):
16680         The right place to initialize conversion_in_dynarr and
16681         conversion_out_dynarr.
16682
16683         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16684
16685         * process-unix.c (unix_canonicalize_host_name): Muleize.
16686         (unix_open_network_stream): Muleize.
16687
16688         * buffer.h: Fix up prototypes for ralloc.c functions.
16689
16690 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16691         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16692         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16693                 instead of gethostbyname()
16694         * process-unix.c: In unix_canonicalize_host_name() and
16695                 unix_open_network_stream(), add code to use getaddrinfo()
16696                 instead of gethostbyname().
16697
16698 2000-01-27  Daniel Pittman <daniel@danann.net>
16699
16700         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16701         libs when built with flat Athena.
16702
16703 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16704
16705         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16706         Use coding standards for function prototypes.
16707
16708 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16709
16710         * dialog-msw.c (push_lisp_string_as_unicode):
16711         * doc.c (unparesseuxify_doc_string):
16712         * dired.c (Fuser_name_completion_1):
16713         * dired.c (Fuser_name_all_completions):
16714         * dired.c (free_user_cache):
16715         * dired.c (user_name_completion):
16716         * console-x.c (get_display_arg_connection):
16717         * minibuf.c (clear_echo_area_internal):
16718         * minibuf.c (echo_area_append):
16719         * eldap.c (Fldap_open):
16720         * eldap.c (Fldap_search_internal):
16721         * frame-x.c (x_set_frame_text_value):
16722         * frame-x.c (x_set_frame_properties):
16723         * frame-x.c (x_create_widgets):
16724         * redisplay-tty.c (term_get_fkeys_1):
16725         * objects-x.c (x_parse_nearest_color):
16726         * objects-x.c (x_valid_color_name_p):
16727         * objects-x.c (x_initialize_font_instance):
16728         * objects-x.c (x_list_fonts):
16729         * objects-x.c (x_find_charset_font):
16730         * tooltalk.c (Fadd_tooltalk_message_arg):
16731         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16732         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16733         * process-unix.c (unix_create_process):
16734         * ntproc.c (sys_spawnve):
16735         * sound.c (Fplay_sound_file):
16736         * sound.c (Fplay_sound):
16737         * buffer.c (init_initial_directory):
16738         * buffer.c (init_buffer):
16739         * editfns.c (init_editfns):
16740         * editfns.c (Ftemp_directory):
16741         * editfns.c (Fuser_full_name):
16742         * editfns.c (uncache_home_directory):
16743         * editfns.c (get_home_directory):
16744         * editfns.c (Fuser_home_directory):
16745         * editfns.c (Fformat_time_string):
16746         * editfns.c (Fcurrent_time_string):
16747         * gui-x.c (button_item_to_widget_value):
16748         * database.c (Fopen_database):
16749         * event-Xt.c (x_to_emacs_keysym):
16750         * event-Xt.c (x_event_to_emacs_event):
16751         * event-Xt.c (describe_event_window):
16752         * event-msw.c (mswindows_wnd_proc):
16753         * glyphs-eimage.c (jpeg_instantiate):
16754         * glyphs-eimage.c (gif_instantiate):
16755         * glyphs-eimage.c (png_instantiate):
16756         * glyphs-eimage.c (tiff_instantiate):
16757         * glyphs-x.c (xbm_instantiate_1):
16758         * glyphs-x.c (x_xbm_instantiate):
16759         * glyphs-x.c (x_xface_instantiate):
16760         * glyphs-x.c (autodetect_instantiate):
16761         * glyphs-x.c (cursor_font_instantiate):
16762         * glyphs-x.c (x_widget_instantiate):
16763         * glyphs-x.c (x_widget_set_property):
16764         * glyphs-x.c (x_widget_property):
16765         * glyphs-x.c (BUILD_GLYPH_INST):
16766         * print.c (write_string_to_stdio_stream):
16767         * print.c (output_string):
16768         * print.c (Falternate_debugging_output):
16769         * print.c (Fexternal_debugging_output):
16770         * glyphs-msw.c (extract_xpm_color_names):
16771         * glyphs-msw.c (mswindows_xpm_instantiate):
16772         * glyphs-msw.c (bmp_instantiate):
16773         * glyphs-msw.c (resource_name_to_resource):
16774         * glyphs-msw.c (mswindows_resource_instantiate):
16775         * glyphs-msw.c (xbm_instantiate_1):
16776         * glyphs-msw.c (mswindows_xbm_instantiate):
16777         * glyphs-msw.c (mswindows_xface_instantiate):
16778         * glyphs-msw.c (mswindows_widget_instantiate):
16779         * glyphs-msw.c (add_tree_item):
16780         * glyphs-msw.c (add_tab_item):
16781         * glyphs-msw.c (mswindows_combo_box_instantiate):
16782         * glyphs-msw.c (mswindows_widget_property):
16783         * glyphs-msw.c (mswindows_combo_box_property):
16784         * glyphs-msw.c (mswindows_widget_set_property):
16785         * console.c (stuff_buffered_input):
16786         * objects-msw.c (mswindows_initialize_color_instance):
16787         * objects-msw.c (mswindows_valid_color_name_p):
16788         * objects-msw.c (mswindows_list_fonts):
16789         * objects-msw.c (mswindows_font_instance_truename):
16790         * bytecode.c (optimize_compiled_function):
16791         * select-x.c (symbol_to_x_atom):
16792         * select-x.c (x_atom_to_symbol):
16793         * select-x.c (hack_motif_clipboard_selection):
16794         * select-x.c (selection_data_to_lisp_data):
16795         * select-x.c (lisp_data_to_selection_data):
16796         * select-x.c (Fx_get_cutbuffer_internal):
16797         * select-x.c (Fx_store_cutbuffer_internal):
16798         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16799         * buffer.h (TO_INTERNAL_FORMAT): New function.
16800         * emacs.c (make_arg_list_1):
16801         * emacs.c (make_argc_argv):
16802         * emacs.c (main_1):
16803         * emacs.c (Fdump_emacs):
16804         * emacs.c (split_string_by_emchar_1):
16805         * file-coding.h:
16806         * lisp.h:
16807         * lstream.h:
16808         * symsinit.h:
16809         * device-x.c (x_init_device):
16810         * device-x.c (Fx_valid_keysym_name_p):
16811         * device-x.c (Fx_get_font_path):
16812         * device-x.c (Fx_set_font_path):
16813         * glyphs.c (bitmap_to_lisp_data):
16814         * glyphs.c (pixmap_to_lisp_data):
16815         * alloc.c (make_ext_string): Use coding system arguments.  Update
16816         all callers.
16817         * alloc.c (build_string):
16818         * callproc.c (child_setup):
16819         * callproc.c (init_callproc):
16820         * fileio.c (lisp_strerror):
16821         * fileio.c (directory_file_name):
16822         * fileio.c (Fexpand_file_name):
16823         * fileio.c (Ffile_truename):
16824         * fileio.c (Fsysnetunam):
16825         * fileio.c (Fdo_auto_save):
16826         * sysdep.c (sys_readdir):
16827         * tests.c: New file.  Allow adding C tests.
16828         Replace GET_* macros with a more comprehensible and flexible
16829         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16830         Modify all calls.
16831         Any coding system can be used to do format conversion.
16832         Eliminate enum external_data_format.
16833         Eliminate convert_to_external_format.
16834         Eliminate convert_to_internal_format.
16835         Make sure file-name, keyboard, terminal, and ctext are always
16836         defined as coding systems or aliases.  Make
16837         file-name-coding-system, terminal-coding-system, and
16838         keyboard-coding-system magical variables that are equivalent to
16839         defining the corresponding coding system aliases.
16840
16841         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16842         * file-coding.c (Fcoding_system_alias_p): New function.
16843         * file-coding.c (Fcoding_system_aliasee): New function.
16844         * file-coding.c (append_suffix_to_symbol): New function.
16845         * file-coding.c (dangling_coding_system_alias_p): New function.
16846         * file-coding.c (Ffind_coding_system):
16847         * file-coding.c (Fcopy_coding_system):
16848         * file-coding.c (encode_coding_no_conversion):
16849         * file-coding.c (syms_of_file_coding):
16850         * file-coding.c (vars_of_file_coding):
16851         Rewrite coding system alias code.
16852         Allow nested aliases, like symbolic links.
16853         Allow redefinition of coding system aliases.
16854         Prevent existence of dangling coding system aliases.
16855
16856         * dired.c (Fuser_name_completion_1):
16857         * dired.c (Fuser_name_all_completions):
16858         A crash would happen if user did QUIT in the middle of building
16859         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16860
16861         * lisp.h:
16862         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16863
16864         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16865         an unsigned char *.  Update all callers.
16866
16867 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16868
16869         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16870
16871 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16872
16873         * elhash.c (hentry_description): Use more portable definition.
16874         (resize_hash_table): Initialize new hentries using
16875         xnew_array_and_zero, thereby simplifying the code.
16876
16877         * mule-charset.c (make_charset): Make sure entire object is
16878         initialized, to avoid Purify warnings.
16879
16880         * alloc.c (resize_string): Fix unlikely crash with big strings.
16881
16882 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16883
16884         * realpath.c (xrealpath):
16885         Don't call getwd().
16886
16887 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16888
16889         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16890
16891 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16892
16893         * unexelfsgi.c (unexec): Change the way we decide which segment
16894         should be extended.
16895
16896         Assumption that .bss section should be outside the PT_LOADable
16897         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16898         it's present) is inside the 'data' segment. This would fail the
16899         test which was used to find a segment to grow and cover new
16900         heap. Instead of this assumption, I created another one - on IRIX
16901         the segment to grow should start below .bss and it's address
16902         should extent above the end of .bss. Once this segment is
16903         identified, it's grown to accommodate the new heap and new
16904         zero-length .bss section is added at the end of .data2.
16905
16906 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16907
16908         * eval.c (Feval): Wrong number of arguments should use original
16909         function, not the indirect_function version of it.
16910
16911 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16912
16913         * glyphs-x.c (x_button_instantiate): Don't add image if
16914         it is not a pixmap.
16915         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16916         is relative.
16917
16918 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16919
16920         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16921         declaration.
16922         (DEFVAR_INT_MAGIC): Ditto.
16923         (DEFVAR_BOOL_MAGIC): Ditto.
16924         * glyphs.h: Reindent backslash.
16925
16926 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16927
16928         * glyphs-widget.c (layout_query_geometry):
16929         (layout_layout): Use correct types for gheight, gwidth.
16930
16931 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16932
16933         * EmacsManager.c (QueryGeometry): Purified.
16934
16935 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16936
16937         * alloc.c (make_float): Make sure entire object is initialized, to
16938         avoid Purify warnings.
16939         (pdump_register_sub): Remove useless assignment.
16940         (pdump): Use xmalloc, not malloc.
16941         (pdump_load): Use xmalloc, not malloc.
16942
16943 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16944
16945         * callproc.c:
16946         * dired-msw.c:
16947         * fileio.c:
16948         * process-nt.c:
16949         * redisplay-msw.c:
16950         * sysdep.c: Removed redundant #include <windows.h>
16951
16952 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16953
16954         * frame.c (delete_frame_internal): Do not delete device when its
16955         implementation so declares.
16956         (delete_frame_internal): Set device selected frame to nil when
16957         last frame goes away.
16958
16959         * device-msw.c (msprinter_device_system_metrics): Implemented.
16960         (mswindows_device_system_metrics): Added 'device-dpi property.
16961
16962         * device.c: (Fdevice_printer_p): Added.
16963         Added 'offset-workspace device metric.
16964
16965         * console.h (device_metrics): Declared DM_offset_workspace.
16966
16967 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16968
16969         * fileio.c (Ffile_truename): Remove pointless and confusing
16970         initialization of elen.
16971
16972         * glyphs-widget.c: Compiler warning fixes.
16973
16974 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16975
16976         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16977         instead of a Lisp_Object as argument to make it consistent with
16978         the other LIVE_P macros.
16979         (CHECK_LIVE_PROCESS): New macro.
16980
16981         * process.c: Declare Qprocess_live_p.
16982         (Fprocess_live_p): New function.
16983         (create_process): Use PROCESS_LIVE_P.
16984         (read_process_output): Ditto.
16985         (set_process_filter): Ditto.
16986         (Fdelete_process): Ditto.
16987         (kill_buffer_processes): Ditto
16988         (process_send_signal): Use CHECK_LIVE_PROCESS.
16989         (Fprocess_input_coding_system): Check whether process is still
16990         alive (fix PR#1061).
16991         (Fprocess_output_coding_system): Ditto.
16992         (Fprocess_coding_system): Ditto.
16993         (Fset_process_input_coding_system): Ditto.
16994         (Fset_process_output_coding_system): Ditto.
16995
16996 2000-01-23  Andy Piper  <andy@xemacs.org>
16997
16998         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16999         layout and widget.
17000
17001         * glyphs.c (mark_image_instance): take into account changed
17002         image_instance format.
17003         (image_instance_equal): ditto.
17004         (image_instance_hash): ditto.
17005
17006         * glyphs-widget.c (widget_instantiate): Incorporate layout
17007         instantiation here. Delay layout of the layout until later.
17008         (layout_instantiate): deleted.
17009         (layout_query_geometry): new function. get the geometry of a
17010         layout.
17011         (layout_layout): layout a layout dynamically.
17012         (image_instantiator_widget): New function - splitting up
17013         image_instantiator_format_create_glyphs_widget for netwinder
17014         compilation.
17015         (image_instantiator_buttons):
17016         (image_instantiator_edit_fields):
17017         (image_instantiator_combo_box):
17018         (image_instantiator_scrollbar):
17019         (image_instantiator_progress_guage):
17020         (image_instantiator_tree_view):
17021         (image_instantiator_tab_control):
17022         (image_instantiator_labels):
17023         (image_instantiator_layout): ditto.
17024         (image_instantiator_format_create_glyphs_widget): Call preceding
17025         functions.
17026
17027 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17028
17029         * process.c (Fset_process_coding_system):
17030         * device-x.c (Fx_keysym_hash_table):
17031         Docstring fixes.
17032
17033         * lstream.c (Lstream_write): Return documented value, not 0.
17034
17035         * fileio.c (directory_file_name):
17036         (Fsubstitute_in_file_name):
17037         (Fsubstitute_insert_file_contents_internal):
17038         (Fwrite_region_internal):
17039         * emacs.c:
17040         * sysdep.c:
17041         * getloadavg.c:
17042         * systty.h:
17043         Remove vestigial APOLLO-conditional code.
17044
17045 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17046
17047         * getpagesize.h: Add guard macros.
17048         * libsst.h: Add guard macros.
17049         * libst.h: Add guard macros.
17050         * line-number.h: Add guard macros.
17051         * ndir.h: Add guard macros.
17052         * sysfloat.h: Add guard macros.
17053         * sysfile.h: Add guard macros.
17054         * sysproc.h: Add guard macros.
17055         * syswait.h: Add guard macros.
17056         * xintrinsic.h: Add guard macros.
17057         * xintrinsicp.h: Add guard macros.
17058         * xmmanager.h: Add guard macros.
17059         * xmmanagerp.h: Add guard macros.
17060         * xmprimitive.h: Add guard macros.
17061         * xmu.h: Add guard macros.
17062         * gpmevent.h: Add copyright statement. Add guard macros.
17063         * miscplay.h: Add guard macros.
17064         * *.h: Use consistent C-standards-approved guard macro names.
17065
17066         * opaque.c (make_opaque): Switch parameter order.
17067         * opaque.h (make_opaque): Switch parameter order.
17068         Update all callers.
17069         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17070
17071         * config.h.in (type_checking_assert): Added.
17072         (bufpos_checking_assert): Added.
17073
17074 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17075
17076         * alloc.c: Harmless pdump changes.
17077         - Use countof().
17078         - spell alignment correctly.
17079         * sysdep.c: Use countof()
17080
17081 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17082
17083         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17084         initially_selected_for_input() console method, default to 0.
17085         (semi_canonicalize_console_connection): Try to delegate to
17086         canonicalize_console_connection if no such console method.
17087         (canonicalize_console_connection): Vice versa.
17088         (print_console): Do not print nil connection.
17089
17090         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17091         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17092         (XDEVIMPF_FRAMELESS_OK): Added.
17093         (CONSOLE_INHERITS_METHOD): Added.
17094
17095         * console-msw.c (mswindows_canonicalize_console_connection):
17096         Added.
17097         (mswindows_canonicalize_device_connection): Added.
17098
17099         * console-msw.h (struct msprinter_device): Added this struct and
17100         accessor macros.
17101         (mswindows_device): Made fontlist a lisp object.
17102
17103         * device.c (semi_canonicalize_device_connection):  Try to delegate
17104         to canonicalize_device_connection if no such console method.
17105         (canonicalize_device_connection): Vice versa.
17106         (print_device): Do not print nil connection.
17107
17108         * device-msw.c (mswindows_init_device): Call InitCommonControls
17109         when have widgets.
17110         (mswindows_delete_device): Removed fontlist deallocation.
17111         (mswindows_mark_device): Added.
17112
17113         * events.c (event_equal): Added abort() at unreached code.
17114         (event_hash): Ditto.
17115
17116         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17117         fallback tags of Windows devices.
17118
17119         * general.c (syms_of_general): Initialized Qmsprinter.
17120
17121         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17122         of fallback tags of Windows devices.
17123
17124         * lisp.h: Declared Qmsprinter.
17125
17126         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17127         of strings.
17128         (mswindows_list_fonts): Ditto.
17129         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17130         that it can be used by both mswindows and msprinter devices.
17131         (initialize_font_instance): Added.
17132         (mswindows_initialize_font_instance): Use it.
17133         (msprinter_initialize_font_instance): Added.
17134
17135         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17136         and implementation flags check.
17137         (redisplay_without_hooks): Changed the call to the above.
17138         (Fredraw_device): Ditto.
17139         (Fredisplay_device): Ditto.
17140
17141         * redisplay-msw.c (get_frame_dc): Implemented.
17142         (get_frame_compdc): Implemented.
17143         (many functions): Use the two functions above to get device
17144         contexts, ether for a window or a printer.
17145
17146 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17147
17148         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17149         initialization here.
17150         (init_symbols_once_early): Call it.
17151         * emacs.c (main_1): Call it.
17152         * symsinit.h: Declare it.
17153
17154 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17155
17156         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17157         Lisp_Object.
17158         (pdump_backtrace): Ditto.
17159         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17160         (pdump_get_entry): Abort if trying to register a null pointer.
17161         (pdump_dump_data): Cleanup types when relocating.
17162         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17163         (pdump_dump_rtables): Remove bad casts.
17164         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17165         Lisp_Object instead of a EMACS_INT for the hashtable
17166         reorganization.
17167
17168 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17169
17170         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17171
17172         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17173
17174         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17175
17176         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17177
17178 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17179
17180         * faces.h (FACE_STRIKETHRU_P): Added.
17181
17182         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17183         of font variants.
17184
17185         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17186         (mswindows_set_dc_font): New function, aware of font variants,
17187         separated from mswindows_update_dc.
17188
17189         * objects-msw.h (struct mswindows_font_instance_data): Added
17190         definition.
17191
17192         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17193         cached fonts and the data structure.
17194         (mswindows_initialize_font_instance): Added creation of font data
17195         structure.
17196         (mswindows_print_font_instance): Print at least something.
17197         (mswindows_create_font_variant): Implemented.
17198         (mswindows_get_hfont): Implemented.
17199
17200 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17201
17202         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17203         prototyping problem with msvc.
17204
17205         * emacs.c (main_1): added syms_of_gui_mswindows() call
17206
17207         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17208         syms_of_gui_mswindows() function
17209
17210         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17211
17212 2000-01-18  Martin Buchholz <martin@xemacs.org>
17213
17214         * XEmacs 21.2.27 is released.
17215
17216 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17217
17218         * glyphs-eimage.c (struct tiff_error_struct):
17219         (tiff_error_func):
17220         (tiff_warning_func):
17221         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17222
17223         * unexmips.c:
17224         * unexhp9k3.c:
17225         * unexfreebsd.c:
17226         * unexec.c: Remove vestigial Lucid C code.
17227         * unexalpha.c:
17228         * unexaix.c:
17229         * termcap.c:
17230         * libsst.c: Ansify.
17231         Remove declarations of errno and strerror().
17232
17233         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17234
17235         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17236
17237 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17238
17239         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17240         Optimize.
17241
17242 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17243
17244         * md5.c:
17245         * file-coding.c:
17246         * file-coding.h:
17247         Change enum eol_type to eol_type_t.
17248
17249 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17250
17251         * gui.c (get_gui_callback): Check cons before accessing car.
17252
17253 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17254
17255         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17256         (XSETSPECIFIER_TYPE): Ditto.
17257
17258 2000-01-17  Didier Verna  <didier@xemacs.org>
17259
17260         * redisplay.c (generate_fstring_runes): compute string size in
17261         characters, not bytes.
17262
17263 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17264
17265         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17266
17267 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17268
17269         * print.c (print_error_message): Call print_prepare().
17270
17271 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17272
17273         * .dbxrc: Renamed from dbxrc.
17274
17275         * events.c (event_to_character):
17276         Use `assert (foo)' instead of `if (!foo) abort()'
17277
17278         * .gdbinit (xtype): Add documentation.
17279         * .gdbinit (check-temacs): New function.
17280         * .gdbinit (check-xemacs): New function.
17281         * dbxrc (check-xemacs): New function.
17282         * dbxrc (check-xemacs): New function.
17283
17284 2000-01-14  Andy Piper  <andy@xemacs.org>
17285
17286         * glyphs-widget.c (widget_query_geometry): Make sure that we
17287         calculate default dimensions correctly.
17288
17289 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17290
17291         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17292
17293         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17294         pdump_wire'd variable.
17295
17296         * emacs.c: (main_1): Conditionalized calls to
17297         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17298
17299 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17300
17301         * window.c (Fset_window_configuration):
17302         * sysdep.c (_start):
17303         * input-method-motif.c (res):
17304         * event-Xt.c (Xt_process_to_emacs_event):
17305         Simple compiler warning fixes.
17306
17307         * bytecode.c (funcall_compiled_function): Use the original
17308         function symbol on the backtrace list in preference to the
17309         compiled_function object in error messages.
17310
17311 2000-01-13  Andy Piper  <andy@xemacs.org>
17312
17313         * glyphs-x.c (update_widget_face): Make sure we update the widget
17314         background as well as foreground.
17315
17316 2000-01-13  Andy Piper  <andy@xemacs.org>
17317
17318         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17319         fields to subwindow.
17320         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17321         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17322         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17323         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17324
17325         * glyphs-widget.c (check_valid_tab_orientation): new function.
17326         (initialize_widget_image_instance): zero orientation and
17327         justification.
17328         (widget_instantiate): pick up orientation.
17329         (tab_control_query_geometry): return appropriate values for
17330         vertical tabs.
17331
17332         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17333         appropriate creation flags for left, right and bottom tabs.
17334
17335         * s/cygwin32.h: add tab definitions.
17336
17337 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17338
17339         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17340         frame upon hiding a subwindow.
17341         (mswindows_button_instantiate): Changed the push button style to
17342         BS_PUSHBUTTON.
17343         (mswindows_button_instantiate): Removed button BS_NOTIFY
17344         style.
17345         (mswindows_button_instantiate): Removed redundant check for
17346         a disabled gui item.
17347         (mswindows_button_instantiate): Made use of WS_TABSTOP
17348         consistent: "operable" controls (edit, button, tree, scroll) have
17349         this style, "display-only" ones (static, progress gauge) do
17350         not. This style is currently ignored by XEmacs though. Also,
17351         removed the WS_EX_CONTROLPARENT style - it is not for children,
17352         it is for their parents!
17353         (mswindows_edit_field_instantiate): Ditto.
17354         (mswindows_progress_gauge_instantiate): Ditto.
17355         (mswindows_tree_view_instantiate): Ditto.
17356         (mswindows_tab_control_instantiate): Ditto.
17357         (mswindows_scrollbar_instantiate): Ditto.
17358         (mswindows_combo_box_instantiate): Ditto.
17359         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17360         style to the "clip" window.
17361         (mswindows_button_instantiate): Removed compilation warning by
17362         equally typing terms of the ?: operator.
17363
17364 2000-01-12  Didier Verna  <didier@xemacs.org>
17365
17366         * redisplay.c (generate_fstring_runes): new parameter holding the
17367         last modeline-format extent.
17368         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17369         extent, fill the glyph block with it.
17370         (generate_fstring_runes): handle these parameters.
17371         (generate_formatted_string_db): ditto.
17372
17373         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17374         glyphs'extents in the modeline.
17375
17376 1999-01-11  Mike Woolley  <mike@bulsara.com>
17377
17378         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17379         256Mb, as a workaround for the non-starting problem many people
17380         have experienced.
17381
17382 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17383
17384         * console-tty.c (Fset_console_tty_output_coding_system):
17385         Force redrawing tty frame.
17386
17387 2000-01-10  Didier Verna  <didier@xemacs.org>
17388
17389         * redisplay.c (generate_fstring_runes): fix size computation bug.
17390
17391 2000-01-09  William M. Perry <wmperry@aventail.com>
17392
17393         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17394
17395 2000-01-09  Andy Piper  <andy@xemacs.org>
17396
17397         * glyphs-msw.c: index -> i to avoid shadows.
17398         (xbm_create_bitmap_from_data): make static.
17399         (check_valid_string_or_int): deleted.
17400         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17401
17402         * glyphs-x.c (x_update_subwindow): remove unused args.
17403
17404         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17405         back pointer - this is done in allocate_image_instance.
17406         (query_string_font): return Qnil to make the compiler happy.
17407         (unmap_subwindow): set to ~0 to make the compiler happy.
17408         (glyph_query_geometry): comment out until used.
17409         (glyph_layout): ditto.
17410
17411 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17412
17413         * insdel.c (signal_after_change): Remove extraneous unbind_to().