update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * text-coding.c (decode_add_er_char): Fix problem when a character
4         represented by an entity-reference is not defined.
5
6 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
9         Qrep_*.
10
11 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
14         (Kasagi).
15
16 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
19         is a relation feature.
20
21 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * chartab.c (syms_of_chartab): Define
24         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
25
26         * chartab.h (Q_denotational): New extern when UTF2000 or
27         HAVE_CONCORD is defined.
28         (Q_denotational_from): Likewise.
29         (Q_subsumptive): Likewise.
30         (Q_subsumptive_from): Likewise.
31
32 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * concord.c (concord_object_put): New function.
35         (Fconcord_object_put): Use `concord_object_put'.
36
37 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * concord.c (Fconcord_define_object): New function.
40         (syms_of_concord): Add new builtin function
41         `concord-define-object'.
42
43 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
46         (Kamo).
47
48 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * concord.c: Add EXFUN for Fconcord_object_get.
51         (Vconcord_genre_object_hash_table): New variable.
52         (concord_genre_cache_get_object): New function.
53         (concord_genre_cache_put_object): New function.
54         (Fconcord_make_object): Use object cache; put object-ID into `=id'
55         feature.
56         (Fconcord_object_put): Call `concord_index_sync' after
57         `concord_index_strid_put_obj'.
58         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
59
60 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * concord.c (Fconcord_decode_object): Do GCPRO for
63         Fconcord_make_object.
64         (func_for_each_object): Likewise; do GCPRO for
65         for_each_object_closure->function.
66         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
67         for_each_object_closure->function, for_each_object_closure->genre,
68         for_each_object_closure->ds and for_each_object_closure->ret.
69         (concord_object_validate): Do GCPRO for Fconcord_make_object.
70
71 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * concord.c: Add EXFUNs for Fconcord_decode_object and
74         Fconcord_object_put.
75         (Fconcord_make_object): Change order of arguments.
76         (Fconcord_decode_object): Modify for Fconcord_make_object.
77         (func_for_each_object): Likewise.
78         (concord_object_validate): Likewise.
79         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
80
81 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
84
85 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * concord.c (Fconcord_decode_object): Try to use readable print
88         form as a key of Concord-index.
89         (Fconcord_object_get): Try to use readable print form as an ID of
90         Concord-object.
91         (Fconcord_object_put): Try to use readable print form as an ID of
92         Concord-object and a feature value.
93         (Fconcord_object_spec): Try to use readable print form as an ID of
94         Concord-object.
95
96 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * concord.c (print_concord_object): Support readable form.
99
100 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
101
102         * emacs.c (main_1): Call `structure_type_create_concord' when
103         HAVE_CONCORD is defined.
104
105         * symsinit.h (structure_type_create_concord): New prototype.
106
107         * concord.c (Qconcord_object): New variable.
108         (Qgenre): Likewise.
109         (Q_id): Likewise.
110         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
111         for directory.
112         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
113         char*> for genre-name.
114         (Fconcord_feature_list): Likewise.
115         (Fconcord_make_object): Likewise.
116         (Fconcord_decode_object): Likewise; use <char*> instead of
117         <unsigned char*> for feature_name and strid.
118         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
119         c_obj and feature_name.
120         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
121         char*> for c_value.
122         (struct closure_for_object_spec): Use <char*> instead of <unsigned
123         char*> for member `object_id'.
124         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
125         char*> for feature-name.
126         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
127         for c_obj.
128         (func_for_each_object): Cast to avoid warnings.
129         (Fconcord_foreach_object_in_feature): Use <char*> instead of
130         <unsigned char*> for genre_name and feature_name.
131         (concord_name_validate): New function.
132         (concord_object_validate): Likewise.
133         (concord_object_instantiate): Likewise.
134         (syms_of_concord): Add new builtin symbols `concord-object',
135         `genre' and `=id'.
136         (structure_type_create_concord): New function.
137
138 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * concord.c (Vconcord_ds_hash_table): New variable.
141         (Vconcord_genre_hash_table): New variable.
142         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
143         (Fconcord_ds_directory): New function.
144         (Fconcord_assign_genre): New function.
145         (Fconcord_genre_directory): New function.
146         (Fconcord_genre_ds): New function.
147         (Fconcord_feature_list): Allow to omit `ds'.
148         (Fconcord_make_object): Likewise.
149         (Fconcord_decode_object): Likewise.
150         (Fconcord_foreach_object_in_feature): Likewise.
151         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
152         Fconcord_assign_genre, Fconcord_genre_directory and
153         Fconcord_genre_ds.
154         (vars_of_concord): Setup Vconcord_ds_hash_table and
155         Vconcord_genre_hash_table.
156
157 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * concord.c (struct closure_for_each_object): Add new member
160         `ret'.
161         (func_for_each_object): Setup the return value to
162         `for_each_object_closure->ret'.
163         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
164         returns the value instead of Qt.
165
166 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * concord.c: New file.
169
170 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
173         `lrecord_type_concord_object'.
174
175 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * symsinit.h (syms_of_concord): New prototype.
178         (vars_of_concord): New prototype.
179
180         * emacs.c (main_1): Setup symbols and variable about concord if
181         HAVE_CONCORD is defined.
182
183         * config.h.in (HAVE_CONCORD): New macro.
184
185 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
186
187         * chartab.c (Fput_char_attribute): For each character relation
188         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
189
190 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
191
192         * chartab.c (Fput_char_attribute): Use
193         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
194         calling `put_char_composition'.
195
196 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * chartab.c (Q_halfwidth_of): New variable.
199         (put_char_composition): Return `<-halfwidth' instead of
200         `=decomposition' for compatibility mapping to single character
201         tagged `narrow'.
202         (Fput_char_attribute): Convert char-specs in value of
203         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
204         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
205         for `<-halfwidth'.
206         (syms_of_chartab): Add new symbol `<-halfwidth'.
207
208 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * chartab.c (put_char_composition): Return
211         `<-formed@{isolated|initial|medial|final}' for compatibility
212         mapping to single character tagged
213         `{isolated|initial|medial|final}'.
214
215 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * chartab.c (Q_compat_of): Deleted.
218         (put_char_composition): Return `<-FOO' for compatibility mapping
219         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
220         of `symbol_name (XSYMBOL(...))'.
221         (Fput_char_attribute): Convert char-specs in value of
222         `{<-|->}font[^*]*' to characters and put reverse links.
223         (Fsave_char_attribute_table): Don't refer Q_compat_of.
224         (syms_of_chartab): Delete builtin symbol `<-compat'.
225
226 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * chartab.c (Q_circled_of): New variable.
229         (put_char_composition): Return `<-circled' instead of
230         `=decomposition' for compatibility mapping to single character
231         tagged `circle'.
232         (Fput_char_attribute): Convert char-specs in value of
233         `{<-|->}circled[^*]*' to characters and put reverse links.
234         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
235         for `<-circled'.
236         (syms_of_chartab): Add new symbol `<-circled'.
237
238 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * chartab.c (Qto_decomposition_at_circled): New variable.
241         (put_char_composition): Return `=>decomposition@circled' instead
242         of `=decomposition' for compatibility decomposition mapping tagged
243         `circle'.
244         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
245
246 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (Q_subscript_of): New variable.
249         (put_char_composition): Return `<-subscript' instead of
250         `=decomposition' for compatibility mapping to single character
251         tagged `sub'.
252         (Fput_char_attribute): Convert char-specs in value of
253         `{<-|->}subscript[^*]*' to characters and put reverse links.
254         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
255         for `<-subscript'.
256         (syms_of_chartab): Add new symbol `<-subscript'.
257
258 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
259
260         * chartab.c (Q_superscript_of): New variable.
261         (put_char_composition): Return `<-superscript' instead of
262         `=decomposition' for compatibility mapping to single character
263         tagged `super'.
264         (Fput_char_attribute): Convert char-specs in value of
265         `{<-|->}superscript[^*]*' to characters and put reverse links.
266         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
267         for `<-superscript'.
268         (syms_of_chartab): Add new symbol `<-superscript'.
269
270 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * chartab.c (Qto_decomposition_at_compat): Deleted.
273         (Qto_decomposition_at_superscript): New variable.
274         (put_char_composition): Use `=>decomposition@superscript' instead
275         of `=decomposition' for compatibility decomposition mapping tagged
276         `super'.
277         (Fput_char_attribute): Fix condition about `put_char_composition'.
278         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
279         add news symbol `=>decomposition@superscript'.
280
281 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
284         for compatibility decomposition mapping tagged FOO.
285         (Fput_char_attribute): Modify for `put_char_composition'.
286
287 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Qto_decomposition_at_compat): New variable.
290         (Q_compat_of): Renamed from `Q_compatibility_of'.
291         (put_char_composition): Rename `Q_compatibility_of' to
292         `Q_compat_of'; return `=>decomposition@compat' for compatibility
293         decomposition mapping.
294         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
295         `Q_compat_of'.
296         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
297         `<-compatibility' to `<-compat'.
298
299 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (Q_compatibility_of): New variable.
302         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
303         object is proved to be a cons cell; return `<-compatibility' if
304         the first element of argument `value' is `compat'.
305         (Fput_char_attribute): Eliminate the first value if
306         `put_char_composition' returns `<-compatibility'.
307         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
308         for `<-compatibility'.
309         (syms_of_chartab): Add new symbol `<-compatibility'.
310
311 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * chartab.c (Q_canonical): New variable.
314         (put_char_composition): Return a feature name: return
315         `->canonical' if argument `value' specifies single character.
316         (Fput_char_attribute): Use `put_char_composition' to determine
317         feature name for `=decomposition' or `->denotational'.
318         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
319         for `->canonical'.
320         (syms_of_chartab): Add new symbol `->canonical'.
321
322 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * chartab.c (Qmap_decomposition): New variable.
325         (Fput_char_attribute): Convert `->decomposition' to
326         `=decomposition'.
327         (syms_of_chartab): Add new symbol `=decomposition'.
328
329 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * chartab.c (Fget_range_char_table): Fix serious problem when
332         `range' is nil.
333
334 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * chartab.c (char_table_get_db): Use `read_from_c_string'.
337
338 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * lread.c (read_from_c_string): New function.
341
342         * lisp.h (read_from_c_string): New prototype.
343
344 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * chartab.c (Fput_char_attribute): Convert char-specs in value of
347         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
348         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
349         for `{<-|->}Oracle-Bones[^*]*'.
350
351 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
354         (Kizu).
355
356 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * text-coding.c (Qccs_priority_list): New variable in XEmacs
359         CHISE.
360         (Fmake_coding_system): Support new property `ccs-priority-list' in
361         XEmacs CHISE.
362         (Fcoding_system_property): Likewise.
363         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
364         Vdefault_coded_charset_priority_list in XEmacs CHISE.
365         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
366         XEmacs CHISE.
367         (complex_vars_of_file_coding): Define new coding-system-property
368         `ccs-priority-list' in XEmacs CHISE.
369
370         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
371
372 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
375         changed to normal function.
376         (encode_char_2): Likewise.
377
378         * mule-charset.c (decoding_table_put_char): Copied from
379         char-ucs.h; changed to normal function.
380         (encode_char_2): Likewise.
381
382 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
385         New extern.
386         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
387         (encode_char_2_search_children): New inline function.
388         (encode_char_2): Refer
389         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
390         and use `encode_char_2_search_children'.
391
392 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
393
394         * mule-charset.c
395         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
396         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
397         (vars_of_mule_charset): Add new variable
398         `display-coded-charset-priority-use-inheritance' and
399         `display-coded-charset-priority-use-hierarchy-order'.
400
401 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * char-ucs.h (Q_subsumptive): New extern.
404         (Q_denotational): Likewise.
405         (encode_char_2): Search children specified by `->subsumptive' and
406         `->denotational'.
407
408 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * mule-charset.c (complex_vars_of_mule_charset): Modify the
411         X-registry of `ucs-bmp'.
412
413 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c (char-variants): Refer `->subsumptive',
416         `->denotational' and `->identical' as same as `->ucs-unified'.
417
418 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * chartab.c (Fput_char_attribute): Convert char-specs in value of
421         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
422         links.
423
424 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * text-coding.c: Add EXFUN for `Fregexp_quote'.
427         (decode_add_er_char): Fix problem about infinite loop when a CCS
428         specified in `coded-charset-entity-reference-alist' is not
429         existed.
430
431 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * mule-charset.c (syms_of_mule_charset): Rename
434         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
435
436 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * fns.c (simplify_char_spec): Don't allocate new character-object
439         if specified char_spec does not have any CCS-features.
440
441         * chartab.h: Add EXFUN for Fdefine_char.
442
443         * chartab.c: Delete EXFUN for Fdefine_char.
444
445 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * fns.c (simplify_char_spec): Use Fdefine_char instead of
448         Ffind_char for char-spec.
449
450 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * lisp-disunion.h (XCHARVAL): Fix condition about
453         SIZEOF_EMACS_INT.
454
455 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
456
457         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
458         <int> for `code'.
459         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
460         point; use <Emchar> instead of <int> for character-id.
461
462 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
465         (make_char): Likewise.
466         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
467         environment.
468         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
469         instead of <int> as the type of return value; use <Lisp_Object>
470         instead of <Emchar> as the type of argument.
471         (XCHARVAL[macro version]): Cast the result into <Emchar>.
472
473         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
474         syntaxcode> instead of <int>.
475
476 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
477
478         * chartab.c (put_char_composition): Use DECODE_CHAR to get
479         character corresponding with UCS code point.
480         (Fput_char_attribute): Likewise.
481
482         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
483         character in the UCS decoding-table if the char-id is not equal to
484         the UCS code point.
485
486 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
489         for aliases; write `description'; write
490         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
491         not 0.
492
493 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * chartab.c (Fsave_char_attribute_table): Don't use
496         `save_charset_properties'.
497
498         * mule-charset.c (Fsave_charset_properties): Renamed from
499         `save_charset_properties' and changed to Lisp function again;
500         write property `type' as `CCS'; write properties `final-byte' and
501         `mother' if they exists.
502         (syms_of_mule_charset): Revive builtin function
503         `save-charset-properties' when HAVE_LIBCHISE is defined.
504
505 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
508         instead of Vexec_directory.
509         (char_attribute_system_db_file): Likewise.
510
511 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * chartab.c (Fsave_char_attribute_table): Use
514         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
515         defined.
516
517         * mule-charset.c (save_charset_properties): Renamed from
518         `Fsave_charset_properties'; changed to non-Lisp function.
519         (syms_of_mule_charset): Abolish builtin function
520         `save-charset-properties'.
521
522 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * mule-charset.c (Fsave_charset_properties): New function when
525         HAVE_LIBCHISE is defined.
526         (syms_of_mule_charset): Add new builtin function
527         `save-charset-properties' when HAVE_LIBCHISE is defined.
528
529 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
530
531         * chartab.c (Fput_char_attribute): Convert char-specs in value of
532         `{<-|->}ancient[^*]*' to characters and put reverse links.
533         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
534         for `{<-|->}ancient[^*]*'.
535
536 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * chartab.c (Fput_char_attribute): Convert char-specs in value of
539         `{<-|->}original[^*]*' to characters and put reverse links.
540         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
541         for `{<-|->}original[^*]*'.
542
543 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
546
547 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
548
549         * mule-charset.c (Qsystem_char_id): New variable.
550
551         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
552         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
553
554 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * chartab.c (Fput_char_attribute): When processing a reference of
557         a character, put into the end of the reversed reference of each
558         target character.
559
560 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * chartab.c (Q_same): Deleted.
563         (Q_same_of): Deleted.
564         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
565         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
566         for `{<-|->}same'.
567         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
568
569 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
570
571         * chartab.c (Q_vulgar): Deleted.
572         (Q_vulgar_of): Deleted.
573         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
574         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
575         for `{<-|->}vulgar'.
576         (syms_of_chartab): Don't define `{<-|->}vulgar'.
577
578 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
579
580         * chartab.c (Fput_char_attribute): Convert char-specs in value of
581         `{<-|->}wrong[^*]*' to characters and put reverse links.
582         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
583         for `{<-|->}wrong[^*]*'.
584
585 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * chartab.c (Q_vulgar): New variable.
588         (Q_vulgar_of): New variable.
589         (Fput_char_attribute): Convert char-specs in value of
590         `{->|<-}vulgar' to characters and put reverse links.
591         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
592         for `{->|<-}vulgar'.
593         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
594
595 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * text-coding.c (decode_add_er_char): Must to quote prefix string
598         as regexp.
599
600 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * mule-charset.c (put_char_ccs_code_point): Store characters of
603         =ucs whose code_points >= 0xF0000.
604
605 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
606
607         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
608         CHISE.
609         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
610         CHISE.
611         (complex_vars_of_mule_charset): Add new coded-charset
612         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
613         builtin characters over 0xEFFFF.
614
615         * chartab.c (syms_of_chartab): Don't define symbol
616         `system-char-id' in every case.
617
618         * char-ucs.h (Qsystem_char_id): New extern variable.
619         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
620
621 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * text-coding.c (char_encode_utf8): Try to use entity-references
624         for U-000F0000 ...  U-0010FFFF.
625
626 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
627
628         * text-coding.c (ER_BUF_SIZE): New macro.
629         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
630         `er_buf'.
631         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
632         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
633
634 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * chartab.c (find_char_feature_in_family): New function.
637         (Fchar_feature): Use `find_char_feature_in_family' with
638         `->identical', `<-subsumptive' and `<-denotational'.
639
640 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * text-coding.c (char_encode_as_entity_reference): Allow prefix
643         within 8 characters; fix infinite loop.
644
645 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (Q_same): New variable.
648         (Q_same_of): New variable.
649         (Fput_char_attribute): Convert char-specs in value of
650         `{->|<-}same' to characters and put reverse links.
651         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
652         for `{->|<-}same'.
653         (syms_of_chartab): Add new symbols `{->|<-}same'.
654
655 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * chartab.c (Q_component): New variable.
658         (Q_component_of): Likewise.
659         (Fput_char_attribute): Convert char-specs in value of
660         `{->|<-}ideographic-component-forms' to characters and put reverse
661         links.
662         (syms_of_chartab): Add new symbols
663         `{->|<-}ideographic-component-forms'.
664
665 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
666
667         * chartab.c (Q_identical): New variable.
668         (Q_identical_from): New variable.
669         (Fchar_feature): Regard `->identical' as a feature to find
670         ancestors.
671         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
672         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
673         for `{->|<-}identical'.
674         (syms_of_chartab): Add new symbols `{->|<-}identical'.
675
676 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * char-ucs.h (encode_char_2): New inline function.
679         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
680
681 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * chartab.c (Fput_char_attribute): Convert char-specs to
684         characters in value of `ideographic-structure'.
685         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
686         for `{<-|->}simplified(@...)'.
687         (Fdefine_char): Try to use predefined character's id.
688
689 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
690
691         * fns.c (simplify_char_spec): Try to convert builtin chars to
692         defined chars.
693
694 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * chartab.c (Fput_char_attribute): Convert char-specs in value of
697         `<-simplified[^*]*' to characters and put reverse links.
698
699 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * chartab.c (Q_subsumptive): Renamed from Q_unified.
702         (Q_subsumptive_from): Renamed from Q_unified_from.
703         (Fchar_feature): Use `Q_subsumptive_from' instead of
704         `Q_unified_from'.
705         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
706         `Q_unified'.
707         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
708         `<-unified' to `<-subsumptive'.
709
710 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
713         inheritance itself; fix typo; stop recursive search if cyclic
714         inheritance is found.
715
716 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * chartab.c (Q_denotational): New variable.
719         (Q_denotational_from): New variable.
720         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
721         (put_char_attribute): New function.
722         (Fput_char_attribute): Use `put_char_attribute'; regard
723         `->denotational' and `<-denotational' as same as `->unified' and
724         `<-unified'.
725         (syms_of_chartab): Add new symbols `->denotational' and
726         `<-denotational'.
727
728 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
731         `Fget_char_attribute'.
732         (Fchar_variants): Likewise.
733         (get_char_table): Likewise.
734         (Fchar_feature): New function.
735         (put_char_composition): Use `Fchar_feature' instead of
736         `Fget_char_attribute'.
737         (Fput_char_attribute): Likewise; don't put the target character
738         into its `->unified' value.
739         (syms_of_chartab): Add new builtin function `char-feature'.
740
741 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
744         `Fget_char_attribute'.
745         (char_encode_utf8): Likewise.
746
747         * chartab.h: Add an EXFUN for `Fchar_feature'.
748
749 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * chartab.c (Vnext_defined_char_id): New variable.
752         (Fput_char_attribute): Accept characters in `->unified'.
753         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
754         new characters which are not related with builtin char-id ranges.
755         (vars_of_chartab): Add new variable `next-defined-char-id'.
756
757 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * chartab.c (Q_unified): New variable.
760         (Q_unified_from): New variable.
761         (Fput_char_attribute): Add code for `->unified'.
762         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
763         XEmacs CHISE.
764
765 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * mule-charset.c (decode_ccs_conversion): New function.
768         (decode_defined_char): Use `decode_ccs_conversion'.
769         (decode_builtin_char): Likewise.
770
771 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * char-ucs.h: Change some charset-ids of private coded-charsets.
774
775 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
776
777         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
778         (char_encode_as_entity_reference): Likewise.
779         (decode_coding_big5): Modify for `decode_defined_char' and
780         `DECODE_CHAR'.
781         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
782         avoid compiler warning.
783         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
784
785         * mule-charset.c (decode_defined_char): Add new argument
786         `without_inheritance'.
787         (Fdecode_char): Add new optional argument `without_inheritance'.
788         (Fdecode_builtin_char): Modify for `Fdecode_char'.
789
790         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
791         (simplify_char_spec): Likewise.
792
793         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
794         setting.
795
796         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
797         (map_char_table): Likewise.
798         (Fdefine_char): Use `Fdecode_char' without inheritance.
799         (Ffind_char): Modify for `Fdecode_char'.
800
801         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
802
803         * char-ucs.h (decode_defined_char): Add new argument
804         `without_inheritance'.
805         (DECODE_CHAR): Likewise.
806         (MAKE_CHAR): Modify for `DECODE_CHAR'.
807
808 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * chartab.c (Vchise_system_db_directory): New variable.
811         (vars_of_chartab): Add new variable `chise-system-db-directory'.
812
813 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
814
815         * chartab.c: EXFUN `Fmount_char_attribute_table'.
816         (print_chartab_range): Don't define when `UTF2000' is defined.
817         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
818         `CHISE_DS_open'.
819
820 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
821
822         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
823         and optional argument `rehash' is specified, call
824         `open_chise_data_source_maybe' before
825         `chise_ds_foreach_char_feature_name' is called.
826
827 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * chartab.c (char_attribute_list_reset_map_func): New function
830         when HAVE_LIBCHISE is defined.
831         (Fchar_attribute_list): Add new optional argument `rehash' when
832         HAVE_LIBCHISE is defined.
833         (open_chise_data_source_maybe): Use "chise-db" instead of
834         "char-db".
835         (char_attribute_system_db_file): Likewise.
836         (Fload_char_attribute_table): Use
837         `chise_feature_foreach_char_with_value' instead of
838         `chise_char_feature_value_iterate'.
839
840 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * chartab.c (Vchise_db_directory): New variable.
843         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
844
845 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
848         instead of HAVE_CHISE to specify using with libchise.
849
850         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
851
852         * chartab.h: Don't use HAVE_CHISE_CLIENT.
853
854         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
855         defined or HAVE_LIBCHISE_LIBCHISE is defined.
856         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
857         is defined.
858         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
859         HAVE_CHISE to specify using with libchise.
860         (syms_of_chartab): Don't define symbol `system-char-id' when
861         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
862
863 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
866         specify CHISE DB support.
867         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
868         of `char_attribute_system_db_file' to check feature DB file.
869
870         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
871         HAVE_CHISE_CLIENT to specify CHISE DB support.
872
873         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
874         specify CHISE DB support.
875         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
876         not defined.
877         (Freset_char_attribute_table): Use `chise_feature_setup_db'
878         instead of `char_attribute_system_db_file' to check feature DB
879         file.
880
881 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
884         `HAVE_CHISE_CLIENT'.
885
886 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
889         (Fsave_charset_mapping_table): Don't use
890         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
891
892         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
893         (HAVE_LIBCHISE): New macro.
894
895         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
896
897         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
898         (Fsave_char_attribute_table): Don't use
899         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
900
901 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
904         defined.
905         (save_uint16_byte_table): Likewise.
906         (save_byte_table): Likewise.
907         (char_table_get_db): Use `chise_ds_load_char_feature_value'
908         instead of `chise_char_load_feature_value'.
909         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
910
911 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * chartab.h (struct Lisp_Char_Table): Delete member
914         `feature_table' if CHISE is defined.
915
916         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
917         (Fcopy_char_table): Likewise.
918         (char_table_open_db_maybe): Likewise.
919         (char_table_close_db_maybe): Likewise.
920         (char_table_get_db): Likewise.
921         (Fmount_char_attribute_table): Likewise.
922         (Fload_char_attribute_table): Likewise.
923
924 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
925
926         * mule-charset.c (load_char_decoding_entry_maybe): Use
927         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
928         `chise_ccs_decode'.
929
930 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
933         instead of `chise_open_data_source'.
934         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
935         `chise_ds_close'.
936
937 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
940         instead of `chise_ds_open_feature_table'.
941         (char_table_close_db_maybe): Don't use `chise_ft_close'.
942
943 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * mule-charset.c (Fsave_charset_mapping_table): Use
946         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
947         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
948         `chise_ccs_sync' instead of `chise_ccst_close'.
949         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
950
951         * chartab.c (open_chise_data_source_maybe): Modify for
952         `chise_open_data_source'.
953         (char_table_open_db_maybe): Modify for
954         `chise_ds_open_feature_table'.
955
956 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
957
958         * mule-charset.c (load_char_decoding_entry_maybe): Use
959         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
960         `chise_ccst_close'.
961
962 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
963
964         * mule-charset.c (Fsave_charset_mapping_table): Use
965         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
966         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
967         `chise_dt_put_char' and `chise_dt_close'.
968         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
969         `chise_ccs_decode' and `chise_ccst_close' instead of
970         `chise_ds_open_decoding_table', `chise_dt_get_char' and
971         `chise_dt_close'.
972
973         * chartab.c (char_table_get_db): Use
974         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
975         (load_char_attribute_table_map_func): Modify for
976         `chise_char_feature_value_iterate'.
977         (Fload_char_attribute_table): Use
978         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
979
980 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
983
984 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
985
986         * chartab.c (put_char_table): Modify for inherited coded-charsets
987         in XEmacs CHISE.
988
989 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * chartab.c (Fput_char_table_map_function): Fixed.
992         (word_boundary_p): Don't check charset in XEmacs CHISE.
993
994 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * mule-charset.c (Fsave_charset_mapping_table): Use
997         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
998         instead of `chise_open_decoding_table'; refer
999         `default_chise_data_source'; use `chise_dt_close' instead of
1000         `chise_close_decoding_table'.
1001         (load_char_decoding_entry_maybe): Likewise.
1002
1003         * chartab.c (default_chise_data_source): New variable when `CHISE'
1004         is defined.
1005         (Fcopy_char_table): `ct->ds' is deleted.
1006         (open_chise_data_source_maybe): New function.
1007         (Fclose_char_data_source): New function.
1008         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1009         use `chise_ds_open_feature_table' instead of
1010         `chise_open_feature_table'.
1011         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1012         `chise_close_feature_table'; `cit->ds' is deleted.
1013         (syms_of_chartab): Add new builtin function
1014         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1015
1016         * chartab.h (default_chise_data_source): New extern variable.
1017         (open_chise_data_source_maybe): New prototype.
1018         (struct Lisp_Char_Table): Delete `ds'.
1019
1020 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1021
1022         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1023         `CHISE' is defined.
1024
1025 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1026
1027         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1028         not defined; add code for non-libchise setting.
1029         (char_table_close_db_maybe): Likewise.
1030         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1031         defined.
1032         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1033         even if `CHISE' is not defined.
1034         (Freset_char_attribute_table): Likewise.
1035         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1036         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1037         `char_table_get_db'.
1038         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1039         `char_table_close_db_maybe' even if `CHISE' is not defined.
1040
1041 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1042
1043         * chartab.c (char_table_open_db_maybe): New function.
1044         (char_table_close_db_maybe): New function.
1045         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1046         (Freset_char_attribute_table): Likewise.
1047         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1048         `char_table_close_db_maybe'.
1049         (Fload_char_attribute_table): Likewise.
1050
1051 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1052
1053         * chartab.c: Don't include <chise.h> because it is included in
1054         chartab.h.
1055         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1056         defined.
1057         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1058         `CHISE' is defined.
1059         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1060         `CHISE' is defined.
1061         (Fclose_char_attribute_table): Close `ct->feature_table' and
1062         `ct->ds' when `CHISE' is defined.
1063         (Freset_char_attribute_table): Likewise.
1064         (load_char_attribute_maybe): Use `cit->ds' and
1065         `cit->feature_table' when `CHISE' is defined.
1066         (Fload_char_attribute_table): Likewise.
1067
1068         * chartab.h: Include <chise.h> when `CHISE' is defined.
1069         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1070         when `CHISE' is defined.
1071
1072 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1075         is defined.
1076         (char_table_description): Likewise.
1077         (Fmake_char_table): Likewise.
1078         (Fcopy_char_table): Likewise.
1079         (Fmount_char_attribute_table): Likewise.
1080         (Fclose_char_attribute_table): Likewise.
1081         (Freset_char_attribute_table): Likewise.
1082         (load_char_attribute_maybe): Likewise.
1083         (Fload_char_attribute_table): Likewise.
1084
1085         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1086         defined.
1087
1088 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1089
1090         * chartab.c (load_char_attribute_table_map_func): New function
1091         when CHISE is defined.
1092         (Qload_char_attribute_table_map_function): Don't define when CHISE
1093         is defined.
1094         (Fload_char_attribute_table_map_function): Likewise.
1095         (Fload_char_attribute_table): Use libchise when `CHISE' is
1096         defined.
1097         (syms_of_chartab): Don't define
1098         `load-char-attribute-table-map-function' when CHISE is defined.
1099
1100 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1101
1102         * chartab.c: Include <chise.h> when `CHISE' is defined.
1103         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1104
1105 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1106
1107         * mule-charset.c (charset_code_point): Fix problem when searching
1108         in mother CCS fails with `defined_only' mode.
1109
1110 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1113         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1114         (put_char_composition): Likewise.
1115         (Fput_char_attribute): Likewise.
1116         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1117
1118 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1119
1120         * chartab.c (Q_ucs): Deleted.
1121         (Fput_char_attribute): Don't refer `->ucs'.
1122         (Fdefine_char): Likewise.
1123         (Ffind_char): Likewise.
1124         (syms_of_chartab): Delete `->ucs'.
1125
1126 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * mule-charset.c (Qmap_cns11643_2): Renamed from
1129         `Qchinese_cns11643_2'.
1130         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1131         `chinese-cns11643-2'.
1132         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1133         `=cns11643-2'.
1134
1135 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1136
1137         * mule-charset.c (Qmap_cns11643_1): Renamed from
1138         `Qchinese_cns11643_1'.
1139         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1140         `chinese-cns11643-1'.
1141         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1142         `=cns11643-1'.
1143
1144 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1147         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1148         `chinese-gb12345'.
1149         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1150         `=gb12345'.
1151
1152 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1153
1154         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1155         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1156         `chinese-gb2312'.
1157         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1158         `=gb2312'.
1159
1160 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1163         (syms_of_mule_charset): Add new symbol `=big5' instead of
1164         `chinese-big5'.
1165         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1166
1167 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1170         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1171         `korean-ksc5601'.
1172         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1173         `=ks-x1001'.
1174
1175 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1176
1177         * mule-charset.c (Qmap_jis_x0212): Renamed from
1178         `Qjapanese_jisx0212'.
1179         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1180         `japanese-jisx0212'.
1181         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1182         `=jis-x0212'.
1183
1184 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1185
1186         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1187         `Qjapanese_jisx0208'.
1188         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1189         of `japanese-jisx0208'.
1190         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1191         `=jis-x0208-1983'.
1192
1193 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194
1195         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1196         `Qjapanese_jisx0208_1978'.
1197         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1198         of `japanese-jisx0208-1978'.
1199         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1200         `=jis-x0208-1978'.
1201
1202 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1203
1204         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1205         only for XEmacs CHISE.
1206
1207 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1208
1209         * char-ucs.h: Compact non-ISO-IR charset-ids.
1210         (LEADING_BYTE_UCS): Changed to -177.
1211         (LEADING_BYTE_CONTROL_1): Changed to -77.
1212         (LEADING_BYTE_UCS_BMP): Changed to -176.
1213         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1214
1215 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * mule-charset.c (Qiso_ir): New variable.
1218         (Fmake_charset): Recognise new property `iso-ir'.
1219         (syms_of_mule_charset): Add new symbol `iso-ir'.
1220
1221 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1222
1223         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1224         n to -n; charset-id of non ISO-IR sets are changed to positive
1225         numbers.
1226
1227 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1228
1229         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1230         for &MCS-XXXXXXXX; values.
1231
1232 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1233
1234         * mule.c (Vxemacs_chise_version): Renamed from
1235         `Vutf_2000_version'.
1236         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1237         `utf-2000-version' as an alias for `xemacs-chise-version'.
1238
1239 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1242         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1243         defined.
1244
1245         * config.h.in (CHISE): New macro.
1246
1247 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1248
1249         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1250         of `ucs'.
1251         (Qmap_ucs): New variable.
1252         (syms_of_mule_charset): Add new symbol `=ucs'.
1253         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1254
1255         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1256         (simplify_char_spec): Likewise.
1257
1258         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1259
1260         * char-ucs.h (Qmap_ucs): New extern variable.
1261
1262 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1263
1264         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1265         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1266         don't define it when UTF2000 is not defined.
1267         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1268         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1269         when UTF2000 is not defined.
1270         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1271         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1272
1273 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274
1275         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1276
1277         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1278         (Qucs_gb): Deleted.
1279         (syms_of_mule_charset): Delete `ucs-gb'.
1280         (complex_vars_of_mule_charset): Likewise.
1281
1282 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1285
1286         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1287         (Qucs_cns): Deleted.
1288         (syms_of_mule_charset): Delete `ucs-cns'.
1289         (complex_vars_of_mule_charset): Likewise.
1290
1291 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1294
1295         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1296         (Qucs_jis): Deleted.
1297         (syms_of_mule_charset): Delete `ucs-jis'.
1298         (complex_vars_of_mule_charset): Likewise.
1299
1300 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1301
1302         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1303
1304         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1305         (Qucs_ks): Deleted.
1306         (syms_of_mule_charset): Delete `ucs-ks'.
1307         (complex_vars_of_mule_charset): Likewise.
1308
1309 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1310
1311         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1312         (Qideograph_daikanwa_2): Deleted.
1313         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1314         (complex_vars_of_mule_charset): Likewise.
1315
1316         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1317         (LEADING_BYTE_DAIKANWA_1): Deleted.
1318         (LEADING_BYTE_DAIKANWA_2): Deleted.
1319         (MIN_CHAR_DAIKANWA): Deleted.
1320         (MAX_CHAR_DAIKANWA): Deleted.
1321
1322 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1323
1324         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1325         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1326         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1327
1328         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1329         (Vcharset_ideograph_daikanwa): Deleted.
1330         (Qideograph_hanziku_{1..12}): Deleted.
1331         (Qideograph_daikanwa): Deleted.
1332         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1333         Vcharset_ideograph_daikanwa.
1334         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1335         `ideograph-hanziku-{1..12}'.
1336         (complex_vars_of_mule_charset): Likewise.
1337
1338 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1341
1342         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1343         (Qideograph_gt_pj_{1..11}): Deleted.
1344         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1345         (complex_vars_of_mule_charset): Likewise.
1346
1347 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1350         (Vcharset_ideograph_gt): Deleted.
1351         (Qucs_big5): Deleted.
1352         (Qideograph_gt): Deleted.
1353         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1354         `ideograph-gt'.
1355         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1356         and `ideograph-gt'.
1357
1358         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1359         (LEADING_BYTE_GT): Deleted.
1360         (MIN_CHAR_GT): Deleted.
1361         (MAX_CHAR_GT): Deleted.
1362
1363 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1366
1367 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1368
1369         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1370         (save_uint16_byte_table): Likewise.
1371         (save_byte_table): Likewise; convert values by it.
1372         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1373         for `ideographic-structure'.
1374         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1375         as the filter for `ideographic-structure'.
1376
1377 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1378
1379         * chartab.c (put_char_composition): New function.
1380         (Fput_char_attribute): Use `put_char_composition'; use
1381         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1382
1383         * fns.c (simplify_char_spec): New function.
1384         (char_ref_simplify_spec): New function.
1385         (Fchar_refs_simplify_char_specs): New function.
1386         (syms_of_fns): Add new builtin function
1387         `char-refs-simplify-char-specs'.
1388
1389 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1392         (Qideograph_cbeta): Deleted.
1393         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1394         (complex_vars_of_mule_charset): Likewise.
1395
1396         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1397         (MIN_CHAR_CBETA): Comment out.
1398         (MAX_CHAR_CBETA): Likewise.
1399
1400 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1403         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1404         CHISE client feature.
1405
1406 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1407
1408         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1409
1410 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1411
1412         * mule-charset.c (charset_lookup_description_1): Use
1413         `NUM_LEADING_BYTES' in UTF-2000.
1414
1415 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * char-ucs.h (GC_CHARSETP): Deleted.
1418
1419 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420
1421         * char-ucs.h (MAX_CHAR_GT): Updated.
1422
1423 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1424
1425         * text-coding.c: Sync with XEmacs 21.4.10.
1426
1427 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * mule-charset.c (Vcharset_china3_jef): Deleted.
1430         (Qchina3_jef): Deleted.
1431         (syms_of_mule_charset): Don't define `china3-jef'.
1432         (complex_vars_of_mule_charset): Likewise.
1433
1434         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1435         (MIN_CHAR_CHINA3_JEF): Comment out.
1436         (MAX_CHAR_CHINA3_JEF): Comment out.
1437
1438 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (Vcharset_ucs_gb): New variable.
1441         (Qucs_gb): New variable.
1442         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1443         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1444
1445         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1446
1447 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1448
1449         * mule-charset.c (charset_code_point): if a coded-charset has a
1450         final-byte, don't inherit the builtin range of the mother CCS.
1451
1452 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * mule-charset.c (charset_code_point): Fix problem about
1455         inheritance.
1456
1457 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1458
1459         * mule-charset.c (decode_builtin_char): Reorganized.
1460
1461 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * text-coding.c (char_encode_as_entity_reference): Modify for
1464         `charset_code_point'.
1465         (char_encode_shift_jis): Likewise.
1466         (char_encode_big5): Likewise.
1467         (char_encode_utf8): Likewise.
1468         (char_encode_iso2022): Likewise.
1469
1470         * mule-charset.c (charset_code_point): Add new argument
1471         `defined_only'.
1472         (Fencode_char): Add new optional argument `defined_only'.
1473
1474         * chartab.c (put_char_table): Modify for `charset_code_point'.
1475
1476         * char-ucs.h (charset_code_point): Add new argument
1477         `defined_only'.
1478         (encode_char_1): Modify for `charset_code_point'.
1479
1480 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1481
1482         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1483         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1484
1485 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1488         (Qjis_x0208): Likewise.
1489         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1490         XCHARSET_FINAL(charset).
1491         (charset_code_point): Modify condition for final-byte based
1492         builtin-chars.
1493         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1494         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1495         in UTF-2000; specify `=jis-x0208' as the mother of
1496         `japanese-jisx0208-1978', `japanese-jisx0208' and
1497         `japanese-jisx0208-1990' in UTF-2000.
1498
1499 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1500
1501         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1502
1503 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * text-coding.c (decode_coding_utf16): Support UTF-16.
1506         (char_encode_utf16): Fixed.
1507
1508 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * text-coding.c (Qutf16): New variable in MULE.
1511         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1512         (Fcoding_system_type): Add `utf-16' in MULE.
1513         (struct detection_state): Add a structure for utf16 in MULE.
1514         (detect_coding_type): Setup st->utf16.mask in MULE.
1515         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1516         MULE.
1517         (reset_encoding_stream): Use `char_encode_utf16' and
1518         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1519         (detect_coding_utf16): New function [incomplete].
1520         (decode_coding_utf16): New function [support only UCS-2].
1521         (char_encode_utf16): New function.
1522         (char_finish_utf16): New function.
1523         (syms_of_file_coding): Add new symbol `utf-16'; setup
1524         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1525
1526         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1527         UTF-2000.
1528         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1529         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1530
1531 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1532
1533         * chartab.c (put_char_table): When a charset is specified as a
1534         range in UTF-2000, don't support builtin characters.
1535
1536 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * mule-charset.c (decode_defined_char): Don't refer external
1539         database if Qunbound or Qnil are found.
1540         (Fsave_charset_mapping_table): Don't define it if
1541         HAVE_CHISE_CLIENT is not defined.
1542         (Freset_charset_mapping_table): New function.
1543         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1544         found in external database.
1545         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1546         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1547         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1548
1549 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1550
1551         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1552         not.
1553
1554 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1555
1556         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1557         Q_lowercase, Q_uppercase in UTF-2000.
1558
1559         * chartab.c (get_char_table): Add special code for the standard
1560         case table to use character attribute `->downcase' and
1561         `->uppercase' for case operations in UTF-2000.
1562
1563         * casetab.c (Qflippedcase): New variable in UTF-2000.
1564         (Q_lowercase): Likewise.
1565         (Q_uppercase): Likewise.
1566         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1567         and `->uppercase' in UTF-2000.
1568         (complex_vars_of_casetab): Assign attribute name `downcase' to
1569         downcase and CANON table of Vstandard_case_table in UTF-2000;
1570         assign attribute name `flippedcase' to upcase and EQV table of
1571         Vstandard_case_table in UTF-2000.
1572
1573 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1574
1575         * text-coding.c (decode_add_er_char): Support isolated-chars.
1576         (char_encode_as_entity_reference): Likewise.
1577
1578 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1579
1580         * emacs.c (Vutf_2000_lisp_directory): New variable.
1581         (Vconfigure_utf_2000_lisp_directory): Likewise.
1582         (complex_vars_of_emacs): Add new variable
1583         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1584
1585 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1586
1587         * char-ucs.h (DECODE_CHAR): Delete special code for
1588         `chinese-big5-1' and `chinese-big5-2'.
1589
1590         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1591         (Qbig5_2): Likewise.
1592         (decode_defined_char): Support CONVERSION_BIG5_1 and
1593         CONVERSION_BIG5_2.
1594         (decode_builtin_char): Likewise.
1595         (charset_code_point): Likewise.
1596         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1597         'conversion in UTF-2000.
1598         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1599         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1600         `chinese-big5-2' as children of `chinese-big5'.
1601
1602         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1603         (CONVERSION_BIG5_2): New macro.
1604
1605 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1606
1607         * text-coding.c (char_encode_big5): Support entity-reference.
1608
1609 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1610
1611         * text-coding.c (char_encode_as_entity_reference): New function.
1612         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1613
1614 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1615
1616         * text-coding.c (decode_coding_big5): Support entity-reference
1617         decoding feature.
1618
1619 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * text-coding.c (allocate_coding_system): Initialize initial
1622         charsets for CODESYS_UTF8.
1623         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1624         charset-g2 for CODESYS_UTF8.
1625         (decode_coding_utf8): Use charset-g0.
1626         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1627         to force variants to map to UCS.
1628
1629 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1630
1631         * text-coding.c (Qutf_8_mcs): New variable.
1632         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1633         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1634         instead of `utf-8' in UTF-2000.
1635
1636 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1637
1638         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1639         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1640         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1641         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1642         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1643         CONVERSION_96x96x96x96 are introduced.
1644         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1645         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1646         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1647
1648         * char-ucs.h (CONVERSION_94): New macro.
1649         (CONVERSION_96): New macro.
1650         (CONVERSION_94x94): New macro.
1651         (CONVERSION_96x96): New macro.
1652         (CONVERSION_94x94x94): New macro.
1653         (CONVERSION_96x96x96): New macro.
1654         (CONVERSION_94x94x94x60): New macro.
1655         (CONVERSION_94x94x94x94): New macro.
1656         (CONVERSION_96x96x96x96): New macro.
1657
1658 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1659
1660         * chartab.c (Vcharacter_variant_table): Deleted.
1661         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1662         of `Vcharacter_variant_table'.
1663         (Fput_char_attribute): Likewise.
1664         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1665         (complex_vars_of_chartab): Likewise.
1666
1667 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1668
1669         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1670
1671         * fns.c (Qideographic_structure): New variable.
1672         (Qkeyword_char): New variable.
1673         (ids_format_unit): New function.
1674         (Fideographic_structure_to_ids): New function.
1675         (syms_of_fns): Add new symbols `ideographic-structure' and
1676         `:char'; add new builtin function `ideographic-structure-to-ids'.
1677
1678         * data.c (Fchar_ref_p): New function.
1679         (syms_of_data): Add new builtin function `char-ref-p'.
1680
1681         * chartab.h: Add an EXFUN for `Ffind_char'.
1682
1683 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * text-coding.c (Vcharacter_composition_table): Deleted.
1686         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1687         in every UTF-2000.
1688
1689         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1690         UTF-2000.
1691         (Vcharacter_composition_table): Deleted.
1692         (Fget_composite_char): Use the implementation for external-DB
1693         support in every UTF-2000.
1694         (Fput_char_attribute): Likewise.
1695         (char_attribute_system_db_file): Don't define if external-DB
1696         feature is not available.
1697         (Fsave_char_attribute_table): Likewise.
1698         (Fmount_char_attribute_table): Likewise.
1699         (Fclose_char_attribute_table): Likewise.
1700         (Freset_char_attribute_table): Likewise.
1701         (Fload_char_attribute_table): Likewise.
1702         (syms_of_chartab): Don't define `save-char-attribute-table',
1703         `mount-char-attribute-table', `reset-char-attribute-table',
1704         `close-char-attribute-table' and `load-char-attribute-table' if
1705         external-DB feature is not available.
1706         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1707
1708 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1709
1710         * text-coding.c (Qcomposition): Add extern if external-DB feature
1711         is supported.
1712         (Vcharacter_composition_table): Don't add extern if external-DB
1713         feature is supported.
1714         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1715         character composition rule if external-DB feature is supported.
1716
1717         * chartab.c (Vcharacter_composition_table): Don't define if
1718         external-DB feature is supported.
1719         (Qcomposition): New variable.
1720         (Fget_composite_char): New implementation for external-DB support.
1721         (Fput_char_attribute): Use `composition' property of each
1722         character instead of `Vcharacter_composition_table' to store
1723         character-composition rules if external-DB feature is supported.
1724         (syms_of_chartab): Add new symbol `composition'.
1725         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1726         external-DB feature is supported.
1727
1728 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1729
1730         * chartab.c (Vchar_db_stingy_mode): New variable.
1731         (load_char_attribute_maybe): Close database if
1732         Vchar_db_stingy_mode is not NIL.
1733         (Fload_char_attribute_table_map_function): Use
1734         `get_char_id_table_0' instead of `get_char_id_table'.
1735         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1736
1737         * chartab.h (get_char_id_table_0): New inline function.
1738         (get_char_id_table): Use `get_char_id_table_0'.
1739
1740 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1741
1742         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1743         and `COMPOSE_ADD_CHAR'.
1744         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1745
1746 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1747
1748         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1749         instead of `DECODE_ADD_UCS_CHAR'.
1750         (COMPOSE_ADD_CHAR): Likewise.
1751
1752 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1753
1754         * text-coding.c (decode_flush_er_chars): New inline function.
1755         (decode_add_er_char): New function.
1756         (decode_coding_utf8): Use `decode_flush_er_chars' and
1757         `decode_add_er_char'.
1758
1759 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1760
1761         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1762         done before `decode_output_utf8_partial_char'.
1763
1764         * mule-charset.c (complex_vars_of_mule_charset): Specify
1765         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1766         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1767
1768 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1769
1770         * mule-charset.c (decode_defined_char): New function; search
1771         mother.
1772         (decode_builtin_char): Don't search mother if
1773         XCHARSET_MAX_CODE(charset) == 0.
1774         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1775         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1776         (Fdecode_char): Use `decode_defined_char' instead of
1777         `DECODE_DEFINED_CHAR'.
1778         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1779         mother of `Vcharset_ucs_jis'.
1780
1781         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1782         instead of `DECODE_DEFINED_CHAR'.
1783
1784         * char-ucs.h (decode_defined_char): Renamed from
1785         `DECODE_DEFINED_CHAR'; changed to normal function.
1786         (DECODE_CHAR): Use `decode_defined_char' instead of
1787         `DECODE_DEFINED_CHAR'.
1788
1789         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1790
1791 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1794
1795         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1796         variable.
1797         (Quse_entity_reference): New variable.
1798         (Qd): New variable.
1799         (Qx): New variable.
1800         (QX): New variable.
1801         (coding_system_description): Add description for
1802         `ccs_priority_list'.
1803         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1804         (allocate_coding_system): Initialize `ccs_priority_list' in
1805         UTF-2000.
1806         (Fmake_coding_system): Add description about
1807         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1808         (codesys).
1809         (Fcoding_system_property): Accept `disable-composition' and
1810         `use-entity-reference' in UTF-2000.
1811         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1812         in UTF-2000.
1813         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1814         (decode_coding_utf8): Decode entity-reference if
1815         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1816         (char_encode_utf8): Encode non-Unicode characters as
1817         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1818         (str->codesys).
1819         (syms_of_file_coding): Add new symbols `use-entity-reference',
1820         `d', `x', `X'.
1821         (vars_of_file_coding): Add new variable
1822         `coded-charset-entity-reference-alist'.
1823         (complex_vars_of_file_coding): Declare `disable-composition' and
1824         `use-entity-reference' to be coding-system-properties in UTF-2000.
1825
1826         * file-coding.h (struct Lisp_Coding_System): Add new member
1827         `use_entity_reference' and `ccs_priority_list'.
1828         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1829         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1830         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1831
1832 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * chartab.c (save_uint8_byte_table): Don't clear the table.
1835         (save_uint16_byte_table): Likewise.
1836         (save_byte_table): Likewise.
1837         (Fmount_char_attribute_table): New function.
1838         (syms_of_chartab): Add new builtin function
1839         `mount-char-attribute-table'.
1840
1841 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1844         "w+" mode.
1845         (load_char_decoding_entry_maybe): Open database as read-only mode.
1846
1847         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1848         open database as "w+" mode.
1849         (load_char_attribute_maybe): Open database as read-only mode.
1850         (Fload_char_attribute_table): Likewise.
1851
1852 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1853
1854         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1855         (char_table_description): Delete member `db_file'.
1856         (Fmake_char_table): Don't refer `ct->db_file'.
1857         (Fcopy_char_table): Likewise.
1858         (Fsave_char_attribute_table): Likewise.
1859         (Fclose_char_attribute_table): Likewise.
1860         (Freset_char_attribute_table): Likewise.
1861         (load_char_attribute_maybe): Likewise.
1862         (Fload_char_attribute_table): Likewise.
1863
1864         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1865
1866 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1869         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1870         `ct->db' is living.
1871         (load_char_attribute_maybe): Likewise.
1872         (Fload_char_attribute_table): Likewise.
1873
1874 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1875
1876         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1877         `ct->db_file' unconditionally.
1878
1879 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1880
1881         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1882         UTF-2000.
1883         (char_table_description): Add description for `db_file' and `db'
1884         in UTF-2000.
1885         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1886         UTF-2000.
1887         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1888         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1889         (Fclose_char_attribute_table): New function.
1890         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1891         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1892         and `cit->db'.
1893         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1894         (syms_of_chartab): Add new builtin function
1895         `Fclose_char_attribute_table'.
1896
1897 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1898
1899         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1900         `db' in UTF-2000.
1901         (load_char_attribute_maybe): Change interface.
1902         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1903
1904 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1905
1906         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1907
1908 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909
1910         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1911         instead of `DECODE_CHAR' for mother; don't use special code for
1912         chinese-big5 to use code space of chinese-big5-1 and
1913         chinese-big5-2.
1914         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1915         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1916
1917         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1918         (MAX_CHAR_BIG5_CDP): Revival.
1919
1920 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1921
1922         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1923         the XLFD registry-encoding name of `chinese-big5'.
1924
1925 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1926
1927         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1928         (Qchinese_big5_cdp): Deleted.
1929         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1930         (complex_vars_of_mule_charset): Delete coded-charset
1931         `chinese-big5-cdp'.
1932
1933         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1934         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1935         `CHARSET_ID_OFFSET - n' for private CCS.
1936         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1937         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1938         of `MIN_LEADING_BYTE'.
1939         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1940         `(CHARSET_ID_OFFSET - 97)'.
1941         (MIN_CHAR_BIG5_CDP): Deleted.
1942         (MAX_CHAR_BIG5_CDP): Deleted.
1943
1944 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1945
1946         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1947
1948 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949
1950         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1951         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1952         chartab.c].
1953
1954         * chartab.c (Vutf_2000_version): Moved to mule.c.
1955         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1956
1957 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1958
1959         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1960         when HAVE_CHISE_CLIENT is not defined.
1961
1962         * mule.c (vars_of_mule): Provide feature `chise' when
1963         HAVE_CHISE_CLIENT is defined.
1964
1965 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1966
1967         * config.h.in (UTF2000): Add comment.
1968         (HAVE_CHISE_CLIENT): New macro.
1969
1970 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1971
1972         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1973         CONSP.
1974         (Fput_char_attribute): Likewise.
1975         (char_attribute_system_db_file): Encode file-name of attribute.
1976         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1977         the initial value.
1978
1979 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1980
1981         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1982         (Fsave_charset_mapping_table): Use
1983         `char_attribute_system_db_file'.
1984         (load_char_decoding_entry_maybe): Likewise.
1985
1986         * chartab.h (Qsystem_char_id): New external variable.
1987         (char_attribute_system_db_file): New prototype.
1988
1989         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1990         (char_attribute_system_db_file): New function.
1991         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1992         (Freset_char_attribute_table): Likewise.
1993         (load_char_attribute_maybe): Likewise.
1994         (Fload_char_attribute_table): Likewise.
1995         (syms_of_chartab): Add new symbol `system-char-id'.
1996
1997 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1998
1999         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2000         `XCHARSET_GRAPHIC(ccs)'.
2001
2002 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2003
2004         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2005
2006 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2007
2008         * chartab.c (Q_ucs_variants): New variable.
2009         (syms_of_chartab): Add new symbol `->ucs-variants'.
2010         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2011         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2012         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2013
2014         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2015
2016         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2017         `HAVE_DATABASE' is defined.
2018         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2019         `HAVE_DATABASE' is defined.
2020
2021 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2022
2023         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2024         attribute-table.
2025         (Freset_char_attribute_table): New function.
2026         (syms_of_chartab): Add new builtin function
2027         `reset-char-attribute-table'.
2028
2029 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2030
2031         * chartab.c (load_char_attribute_maybe): Don't make directories.
2032
2033 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2034
2035         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2036
2037         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2038         for decoding-table.
2039
2040 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2041
2042         * mule-charset.c (Fsave_charset_mapping_table): Use
2043         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2044
2045         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2046         instead of `XCHARSET_CHARS'.
2047
2048 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2049
2050         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2051         (XCHARSET_BYTE_SIZE): Likewise.
2052
2053         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2054         mule-charset.c].
2055         (XCHARSET_BYTE_SIZE): Likewise.
2056
2057 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2058
2059         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2060         data-directory to store database.
2061         (Fsave_char_attribute_table): Likewise.
2062         (load_char_attribute_maybe): Likewise.
2063         (Fload_char_attribute_table): Likewise.
2064
2065 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2066
2067         * mule-charset.c (Fsave_charset_mapping_table): New function.
2068         (syms_of_mule_charset): Add new builtin function
2069         `save-charset-mapping-table'.
2070
2071 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2072
2073         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2074         (get_ccs_octet_table): New inline function.
2075         (put_ccs_octet_table): Likewise.
2076         (decoding_table_put_char): Use `get_ccs_octet_table' and
2077         `put_ccs_octet_table'.
2078         (decoding_table_remove_char): Use `decoding_table_put_char'.
2079         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2080
2081         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2082         into encoding_table.
2083         (make_charset): Use Qunbound instead Qnil as initial value of
2084         decoding_table.
2085
2086 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2087
2088         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2089         element is Qunloaded.
2090         (map_over_uint16_byte_table): Likewise.
2091         (map_over_byte_table): Likewise.
2092         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2093         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2094         database support, load encoding-table of the specified
2095         coded-charset if it is not loaded yet.
2096         (save_uint8_byte_table): New function of UTF-2000 with external
2097         database support.
2098         (save_uint16_byte_table): Likewise.
2099         (save_byte_table): Likewise.
2100         (Fput_char_attribute): Don't store value into external database
2101         even if the external database feature is supported in UTF-2000;
2102         set `attribute' as name of char-table if the external database
2103         feature is supported.
2104         (Fsave_char_attribute_table): New function in UTF-2000.
2105         (syms_of_chartab): Add new builtin function
2106         `save-char-attribute-table' in UTF-2000.
2107
2108 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2109
2110         * chartab.c (char_attribute_table_to_put): New variable in
2111         UTF-2000.
2112         (Qput_char_table_map_function): Likewise.
2113         (value_to_put): Likewise.
2114         (Fput_char_table_map_function): New function in UTF-2000.
2115         (put_char_table): Use `Fmap_char_attribute' for
2116         CHARTAB_RANGE_CHARSET in UTF-2000.
2117         (Fput_char_attribute): Store symbol instead of string in
2118         `XCHAR_TABLE_NAME (table)'.
2119         (load_char_attribute_maybe): Likewise.
2120         (syms_of_chartab): Add new symbol/function
2121         `put-char-table-map-function'.
2122
2123 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2124
2125         * database.h: Add new EXFUN for `Fmap_database'.
2126
2127         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2128         (syms_of_database): Likewise.
2129
2130         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2131         UTF-2000.
2132         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2133         (XCHAR_TABLE_UNLOADED): Likewise.
2134
2135         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2136         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2137         HAVE_DATABASE is defined.
2138         (char_attribute_table_to_load): New variable of UTF-2000 with
2139         external database support.
2140         (Qload_char_attribute_table_map_function): Likewise.
2141         (Fload_char_attribute_table_map_function): New function of
2142         UTF-2000 with external database support.
2143         (Fload_char_attribute_table): New function of UTF-2000.
2144         (Fmap_char_attribute): Call Fload_char_attribute_table if
2145         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2146         (syms_of_chartab): Add new symbol and function
2147         `load-char-attribute-table-map-function' in UTF-2000 with external
2148         database support; add new function `load-char-attribute-table' in
2149         UTF-2000.
2150
2151 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * chartab.h (load_char_attribute_maybe): New prototype for
2154         UTF-2000 with DATABASE support.
2155         (get_char_id_table): Use `load_char_attribute_maybe' if
2156         HAVE_DATABASE is defined.
2157
2158         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2159         with DATABASE support.
2160
2161 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2162
2163         * chartab.c (Fput_char_attribute): Use S-expression as key of
2164         external database.
2165
2166         * chartab.h (get_char_id_table): Use S-expression as key of
2167         external database.
2168
2169 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2172         if an element is not loaded, load the corresponding attributes
2173         from an external database.
2174         (map_over_uint16_byte_table): Likewise.
2175         (map_over_byte_table): Likewise.
2176         (map_char_table): Modify for `map_over_uint8_byte_table',
2177         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2178         element is not loaded, load the corresponding attributes from an
2179         external database.
2180         (Fput_char_attribute): Change initial values to Qunloaded.
2181
2182         * chartab.h (get_char_id_table): If a character attribute is not
2183         loaded and the attribute value is not found in an external
2184         database, store Qunbound as the attribute value.
2185
2186 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2187
2188         * chartab.c (BT_UINT8_unloaded): New macro.
2189         (UINT8_VALUE_P): Accept Qunloaded.
2190         (UINT8_ENCODE): Likewise.
2191         (UINT8_DECODE): Likewise.
2192         (BT_UINT16_unloaded): New macro.
2193         (UINT16_VALUE_P): Accept Qunloaded.
2194         (UINT16_ENCODE): Likewise.
2195         (UINT16_DECODE): Likewise.
2196         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2197         BT_UINT16_unloaded.
2198         (mark_char_table): Mark `ct->name' in UTF-2000.
2199         (char_table_description): Add `name' in UTF-2000.
2200         (Fmake_char_table): Initialize `ct->name'.
2201         (Fcopy_char_table): Copy `ct->name'.
2202         (Fput_char_attribute): Store value into an external database if
2203         HAVE_DATABASE is defined.
2204
2205         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2206         UTF-2000.
2207         (CHAR_TABLE_NAME): New macro in UTF-2000.
2208         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2209         (get_char_id_table): Try to read an external database if Qunloaded
2210         is stored in a table.
2211
2212         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2213         Qunloaded.
2214
2215 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2216
2217         * database.h: Add EXFUN definitions for Fopen_database,
2218         Fput_database, Fget_database and Fclose_database.
2219
2220         * data.c (Qunloaded): New variable in UTF-2000.
2221
2222         * lisp.h (Qunloaded): New variable in UTF-2000.
2223
2224 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (put_char_ccs_code_point): Modify for
2227         `decoding_table_remove_char' and `decoding_table_put_char'.
2228         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2229
2230         * char-ucs.h (decoding_table_remove_char): Change arguments to
2231         hide decoding_table vector.
2232         (decoding_table_put_char): Likewise.
2233
2234 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * mule-charset.c (decoding_table_remove_char): Moved to
2237         char-ucs.h.
2238         (decoding_table_put_char): Likewise.
2239
2240         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2241         from mule-charset.c].
2242         (decoding_table_remove_char): New inline function [moved from
2243         mule-charset.c].
2244         (decoding_table_put_char): Likewise.
2245
2246 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2247
2248         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2249         extension.
2250
2251 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2252
2253         * mule-charset.c (decode_builtin_char): Support mother charsets.
2254
2255 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2256
2257         * mule-charset.c (Q94x94x60): New variable.
2258         (charset_code_point): Support conversion `94x94x60'.
2259         (Fmake_charset): Likewise.
2260         (syms_of_mule_charset): Add new symbol `94x94x60'.
2261
2262         * char-ucs.h (CONVERSION_94x94x60): New macro.
2263
2264 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2265
2266         * mule-charset.c (charset_code_point): Unify code about
2267         `code-offset'.
2268
2269 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2270
2271         * mule-charset.c (charset_code_point): Merge code about builtin
2272         characters into code about mother charsets; don't use
2273         `range_charset_code_point'.
2274         (range_charset_code_point): Deleted.
2275
2276 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2277
2278         * mule-charset.c (Qcode_offset): New variable.
2279         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2280         `max-code'; accept new property `code-offset'.
2281         (syms_of_mule_charset): Add new symbol `code-offset'.
2282
2283 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2284
2285         * mule-charset.c (range_charset_code_point): Fixed.
2286
2287 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2288
2289         * mule-charset.c (decode_builtin_char): Change semantics of
2290         code-offset of coded-charset.
2291         (charset_code_point): Likewise.
2292         (range_charset_code_point): Likewise.
2293         (complex_vars_of_mule_charset): Modify for the change.
2294
2295 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2296
2297         * mule-charset.c (Fencode_char): Reverse arguments.
2298
2299         * mule-charset.c (charset_code_point): Fixed.
2300
2301 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2302
2303         * mule-charset.c (Vcharset_mojikyo): Deleted.
2304         (Vcharset_mojikyo_2022_1): Deleted.
2305         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2306         (Qmin_code): New variable in UTF-2000.
2307         (Qmax_code): Likewise.
2308         (Qmother): Likewise.
2309         (Qconversion): Likewise.
2310         (Q94x60): Likewise.
2311         (Qmojikyo): Deleted.
2312         (Qmojikyo_2022_1): Deleted.
2313         (Qmojikyo_pj_{1..22}): Deleted.
2314         (mark_charset): Mark `cs->mother'.
2315         (charset_description): Add description for `mother'.
2316         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2317         new arguments `mother' and `conversion'; use
2318         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2319         (charset_code_point): Moved from char-ucs.h; support `mother'
2320         charset feature.
2321         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2322         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2323         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2324         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2325         allow 2 as the value of `graphic' in UTF-2000; add new properties
2326         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2327         require `final' in UTF-2000; modify for `make_charset'.
2328         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2329         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2330         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2331         (Fencode_char): New function.
2332         (syms_of_mule_charset): Add new builtin function `encode-char' in
2333         UTF-2000; add new symbols `min-code', `max-code', `mother',
2334         `conversion' and `94x60'; delete symbols `mojikyo',
2335         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2336         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2337         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2338         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2339
2340         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2341         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2342
2343         * char-ucs.h (Vcharset_mojikyo): Deleted.
2344         (Vcharset_mojikyo_2022_1): Deleted.
2345         (LEADING_BYTE_MOJIKYO): Deleted.
2346         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2347         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2348         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2349         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2350         add new member `mother'; add new member `conversion'.
2351         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2352         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2353         (CHARSET_MOTHER): New macro.
2354         (CHARSET_CONVERSION): New macro.
2355         (CONVERSION_IDENTICAL): New macro.
2356         (CONVERSION_94x60): New macro.
2357         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2358         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2359         (XCHARSET_MOTHER): New macro.
2360         (XCHARSET_CONVERSION): New macro.
2361         (MIN_CHAR_MOJIKYO): Deleted.
2362         (MAX_CHAR_MOJIKYO): Deleted.
2363         (DECODE_MOJIKYO_2022): Deleted.
2364         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2365         (charset_code_point): Changed to non-inline function.
2366         (encode_char_1): Use `charset_code_point'.
2367         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2368
2369 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370
2371         * lread.c (read_compiled_function): Fix prototype.
2372         (read_vector): Likewise.
2373
2374 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375
2376         * lrecord.h (struct lrecord_header): Delete `older'.
2377         (set_lheader_implementation): Delete code for `older'.
2378         (set_lheader_older_implementation): Deleted.
2379         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2380         (OLDER_RECORD_P): Deleted.
2381         (OLDER_RECORD_HEADER_P): Deleted.
2382         (alloc_older_lcrecord): Deleted.
2383         (alloc_older_lcrecord_type): Deleted.
2384
2385         * alloc.c (all_older_lcrecords): Deleted.
2386         (alloc_older_lcrecord): Deleted.
2387         (disksave_object_finalization_1): Delete code for older objects.
2388         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2389         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2390
2391 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2394         instead of `make_older_vector'.
2395         (put_char_ccs_code_point): Likewise.
2396         (mark_charset): Mark `cs->decoding_table'.
2397         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2398
2399         * lisp.h (make_older_vector): Deleted.
2400         (make_vector_newer): Deleted.
2401
2402         * config.h.in (HAVE_GGC): Deleted.
2403
2404         * alloc.c (make_older_vector): Deleted.
2405         (make_vector_newer_1): Deleted.
2406         (make_vector_newer): Deleted.
2407
2408 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2411         (Qideograph_daikanwa_2): New variable.
2412         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2413         (complex_vars_of_mule_charset): Add new coded-charset
2414         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2415         `LEADING_BYTE_DAIKANWA'.
2416
2417         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2418         (LEADING_BYTE_DAIKANWA_1): New macro.
2419         (LEADING_BYTE_DAIKANWA_2): New macro.
2420         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2421
2422 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * mule-charset.c (complex_vars_of_mule_charset): Change
2425         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2426         the second revised version.
2427
2428 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2429
2430         * mule-charset.c (Vcharset_ucs_smp): New variable.
2431         (Vcharset_ucs_sip): New variable.
2432         (Qucs_smp): New variable.
2433         (Qucs_sip): New variable.
2434         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2435         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2436         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2437         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2438         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2439         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2440
2441         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2442         (LEADING_BYTE_UCS_SIP): New macro.
2443         (MIN_CHAR_SMP): New macro.
2444         (MAX_CHAR_SMP): New macro.
2445         (MIN_CHAR_SIP): New macro.
2446         (MAX_CHAR_SIP): New macro.
2447
2448 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2449
2450         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2451         utf-2000.
2452
2453 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2454
2455         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2456         value; don't store value into `encoding_table' of `Lisp_Charset'.
2457         (mark_charset): `encoding_table' was deleted.
2458         (charset_description): Likewise.
2459         (make_charset): Likewise.
2460         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2461         `put_char_ccs_code_point'.
2462
2463         * chartab.h (Fput_char_attribute): New EXFUN.
2464
2465         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2466         is unified with normal symbol space.
2467         (Fget_char_attribute): Likewise.
2468         (Fput_char_attribute): Likewise; behavior of
2469         `put_char_ccs_code_point' is changed.
2470
2471         * char-ucs.h: Include "elhash.h".
2472         (Vchar_attribute_hash_table): New external variable.
2473         (struct Lisp_Charset): Delete `encoding_table'.
2474         (CHARSET_ENCODING_TABLE): New implementation; refer
2475         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2476         `Lisp_Charset'.
2477
2478 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2481         (cs) == 0.
2482
2483 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2484
2485         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2486         `chinese-big5'.
2487
2488 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2489
2490         * chartab.c (uint8_byte_table_description): New constant.
2491         (uint8-byte-table): Use `uint8_byte_table_description'.
2492         (uint16_byte_table_description): New constant.
2493         (uint16-byte-table): Use `uint16_byte_table_description'.
2494
2495 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2496
2497         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2498         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2499
2500 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2501
2502         * mule-charset.c (Vcharset_ucs_ks): New variable.
2503         (Qucs_ks): New variable.
2504         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2505         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2506
2507         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2508
2509 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2510
2511         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2512         (Fdecode_char): Likewise.
2513
2514         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2515         chartab.h.
2516         (Fdefine_char): Modify for Fdecode_char.
2517         (Ffind_char): Likewise.
2518
2519         * mule-charset.c (Fdecode_char): Add new optional argument
2520         `defined-only'.
2521         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2522
2523 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2526         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2527         (allocate_coding_system): Initialize initial-charsets of
2528         CODESYS_BIG5 in XEmacs UTF-2000.
2529         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2530         CODESYS_BIG5 in XEmacs UTF-2000.
2531         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2532         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2533
2534         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2535         variables.
2536         (Qideograph_hanziku_{1 .. 12}): Likewise.
2537         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2538         .. 12}'.
2539         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2540         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2541         `ideograph-hanziku-{1 .. 12}'.
2542
2543         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2544         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2545         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2546         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2547         (DECODE_DEFINED_CHAR): New inline function.
2548         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2549
2550 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2551
2552         * mule-charset.c (Vcharset_china3_jef): Renamed from
2553         `Vcharset_japanese_jef_china3'.
2554         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2555         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2556         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2557         (syms_of_mule_charset): Rename `china3-jef' from
2558         `japanese-jef-china3'.
2559         (complex_vars_of_mule_charset): Likewise; rename
2560         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2561
2562         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2563         `LEADING_BYTE_JEF_CHINA3'.
2564         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2565         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2566
2567 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2568
2569         * mule-charset.c (encode_builtin_char_1): Comment out special code
2570         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2571
2572         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2573         (MAX_CHAR_MOJIKYO_0): Comment out.
2574         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2575         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2576         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2577         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2578
2579 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2582         (Qideograph_cbeta): New variable.
2583         (encode_builtin_char_1): Comment out special code for
2584         coded-charset `mojikyo' and `japanese-jef-china3'.
2585         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2586         (complex_vars_of_mule_charset): Add new coded-charset
2587         `ideograph-cbeta'.
2588
2589         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2590         (MIN_CHAR_CBETA): New macro.
2591         (MAX_CHAR_CBETA): New macro.
2592
2593 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2594
2595         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2596         (LEADING_BYTE_JEF_CHINA3): New macro.
2597         (MIN_CHAR_JEF_CHINA3): New macro.
2598         (MAX_CHAR_JEF_CHINA3): Likewise.
2599         (DECODE_CHAR): Fixed.
2600
2601 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2602
2603         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2604         (Qjapanese_jef_china3): New variable.
2605         (encode_builtin_char_1): Support `japanese-jef-china3'.
2606         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2607         (complex_vars_of_mule_charset): Add new coded-charset
2608         `japanese-jef-china3'.
2609
2610 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2611
2612         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2613         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2614         94^4, 96^3, 96^4, 128^n and 256^n set.
2615         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2616         (map_char_table): Likewise.
2617
2618 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2621         UTF-2000.
2622
2623 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2624
2625         * chartab.h (get_char_id_table): New inline function.
2626
2627         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2628         function.
2629
2630 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2631
2632         * chartab.h (decode_char_table_range): New prototype in XEmacs
2633         UTF-2000.
2634         (put_char_id_table): New inline function in XEmacs UTF-2000.
2635
2636         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2637         function.
2638         (decode_char_table_range): Delete static declaration in XEmacs
2639         UTF-2000.
2640
2641 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2642
2643         * chartab.c (put_char_id_table): Use `put_char_table'.
2644
2645 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2648         (map_over_uint16_byte_table): Likewise.
2649         (map_over_byte_table): Likewise.
2650         (map_char_table): Modify for `map_over_uint8_byte_table',
2651         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2652         UTF-2000.
2653
2654 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655
2656         * chartab.c (struct map_char_table_for_charset_arg): New
2657         structure.
2658         (map_char_table_for_charset_fun): New function.
2659         (map_char_table): Use `map_char_table' for encoding_table of
2660         `range->charset'.
2661
2662 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663
2664         * chartab.c (map_char_table): Check a character is found in
2665         range->charset instead of non default value is defined in
2666         char-table when range is CHARTAB_RANGE_ROW.
2667
2668 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * chartab.c (map_char_id_table): Deleted.
2671         (Fmap_char_attribute): Use `map_char_table' instead of
2672         `map_char_id_table'.
2673
2674 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2677         UTF-2000.
2678         (update_syntax_table): Deleted in XEmacs UTF-2000.
2679
2680         * syntax.c (find_defun_start): Use `syntax_table' instead of
2681         `mirror_syntax_table' in XEmacs UTF-2000.
2682         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2683         UTF-2000.
2684         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2685         XEmacs UTF-2000.
2686         (Fmatching_paren): Likewise.
2687         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2688         in XEmacs UTF-2000.
2689         (find_start_of_comment): Likewise.
2690         (find_end_of_comment): Likewise.
2691         (Fforward_comment): Likewise.
2692         (scan_lists): Likewise.
2693         (char_quoted): Likewise.
2694         (Fbackward_prefix_chars): Likewise.
2695         (scan_sexps_forward): Likewise.
2696         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2697         (update_syntax_table): Likewise.
2698
2699         * search.c (skip_chars): Use `syntax_table' instead of
2700         `mirror_syntax_table' in XEmacs UTF-2000.
2701         (wordify): Likewise.
2702         (Freplace_match): Likewise.
2703
2704         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2705         `mirror_syntax_table' in XEmacs UTF-2000.
2706         (WORDCHAR_P_UNSAFE): Likewise.
2707         (re_match_2_internal): Likewise.
2708
2709         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2710         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2711
2712         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2713         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2714
2715         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2716         XEmacs UTF-2000.
2717
2718         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2719         UTF-2000.
2720         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2721         (char_table_description): Delete `mirror_table' in XEmacs
2722         UTF-2000.
2723         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2724         UTF-2000.
2725         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2726         (Fcopy_char_table): Likewise.
2727         (put_char_table): Don't call `update_syntax_table' in XEmacs
2728         UTF-2000.
2729
2730         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2731         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2732         (casify_region_internal): Likewise.
2733
2734         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2735
2736         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2737         `mirror_syntax_table' in XEmacs UTF-2000.
2738
2739         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2740         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2741         (Fexpand_abbrev): Likewise.
2742
2743 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2746
2747 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2748
2749         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2750         (map_over_uint16_byte_table): Likewise.
2751         (map_over_byte_table): Likewise.
2752         (get_char_id_table): Refer `cit->default_value'.
2753         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2754         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2755         of character-id ranges.
2756         (mark_char_table): Mark `ct->default_value'.
2757         (char_table_description): Add `default_value'.
2758         (fill_char_table): Use `default_value'.
2759         (decode_char_table_range): Decode `nil' as
2760         `CHARTAB_RANGE_DEFAULT'.
2761         (get_char_id_table): Refer `cit->default_value'.
2762         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2763         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2764         temporary hack; check value of char-table is bound or not.
2765         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2766
2767         * chartab.h (struct Lisp_Char_Table): Add new member
2768         `default_value' in XEmacs UTF-2000.
2769         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2770         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2771         UTF-2000.
2772
2773 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2774
2775         * chartab.h (Lisp_Char_ID_Table): Deleted.
2776
2777         * chartab.c (char_table_description): Fix typo.
2778         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2779         `Lisp_Char_ID_Table'.
2780
2781 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2782
2783         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2784         `CHAR_ID_TABLE_P'.
2785
2786         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2787         `CHAR_ID_TABLE_P'.
2788
2789         * chartab.h (XCHAR_ID_TABLE): Deleted.
2790         (XSETCHAR_ID_TABLE): Deleted.
2791         (CHAR_ID_TABLE_P): Deleted.
2792
2793         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2794         `CHAR_ID_TABLE_P'.
2795         (Fget_composite_char): Likewise.
2796         (put_char_table): Likewise.
2797         (add_char_attribute_alist_mapper): Fixed.
2798         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2799         `CHAR_ID_TABLE_P'.
2800         (Fget_char_attribute): Likewise.
2801         (Fget_char_attribute): Likewise.
2802         (Fmap_char_attribute): Likewise.
2803
2804         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2805         `CHAR_ID_TABLE_P'.
2806         (encode_char_1): Likewise.
2807
2808 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2811         `XCHAR_ID_TABLE'.
2812
2813         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2814         instead of `XCHAR_ID_TABLE'.
2815         (remove_char_ccs): Likewise.
2816
2817         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2818         `XCHAR_ID_TABLE'.
2819         (Fget_composite_char): Likewise.
2820         (Fchar_variants): Likewise.
2821         (put_char_table): Likewise.
2822         (add_char_attribute_alist_mapper): Likewise.
2823         (Fchar_attribute_alist): Likewise.
2824         (Fget_char_attribute): Likewise.
2825         (Fput_char_attribute): Likewise.
2826         (Fmap_char_attribute): Likewise.
2827         (Fmap_char_attribute): Likewise.
2828
2829         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2830         `XCHAR_ID_TABLE'.
2831         (encode_char_1): Likewise.
2832
2833 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2836         `Lisp_Char_ID_Table'.
2837         (mark_char_id_table): Deleted.
2838         (print_char_id_table): Likewise.
2839         (char_id_table_equal): Likewise.
2840         (char_id_table_hash): Likewise.
2841         (char_id_table_description): Likewise.
2842         (char_id_table): Likewise.
2843         (make_char_id_table): Use `Fmake_char_table' and
2844         `fill_char_table'.
2845         (get_char_id_table): Use `Lisp_Char_Table' instead of
2846         `Lisp_Char_ID_Table'.
2847         (put_char_id_table): Likewise.
2848         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2849         `XCHAR_ID_TABLE'.
2850         (Fremove_char_attribute): Likewise.
2851         (syms_of_chartab): Don't define type `char-id-table'.
2852
2853         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2854         (char_id_table): Likewise.
2855         (GC_CHAR_ID_TABLE_P): Likewise.
2856         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2857         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2858         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2859         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2860         (get_char_id_table): Use `Lisp_Char_Table' instead of
2861         `Lisp_Char_ID_Table'.
2862         (put_char_id_table_0): Likewise.
2863         (put_char_id_table): Likewise.
2864
2865 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2866
2867         * chartab.h: Lisp_Byte_Table related codes are moved from
2868         chartab.h.
2869
2870         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2871
2872 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2873
2874         * chartab.h: Don't include "chartab.h".
2875         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2876         (Lisp_Char_ID_Table): Likewise.
2877         (char_id_table): Likewise.
2878         (XCHAR_ID_TABLE): Likewise.
2879         (XSETCHAR_ID_TABLE): Likewise.
2880         (CHAR_ID_TABLE_P): Likewise.
2881         (GC_CHAR_ID_TABLE_P): Likewise.
2882         (get_char_id_table): Likewise.
2883
2884         * char-ucs.h: Include "chartab.h".
2885         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2886         (Lisp_Char_ID_Table): Likewise.
2887         (char_id_table): Likewise.
2888         (XCHAR_ID_TABLE): Likewise.
2889         (XSETCHAR_ID_TABLE): Likewise.
2890         (CHAR_ID_TABLE_P): Likewise.
2891         (GC_CHAR_ID_TABLE_P): Likewise.
2892         (get_char_id_table): Likewise.
2893
2894 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2895
2896         * chartab.c (copy_uint8_byte_table): New function.
2897         (copy_uint16_byte_table): New function.
2898         (copy_byte_table): New function.
2899         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2900         characters to call.
2901         (map_over_uint16_byte_table): Likewise.
2902         (map_over_byte_table): Likewise.
2903         (get_byte_table): Move prototype to chartab.h.
2904         (put_byte_table): Likewise.
2905         (put_char_id_table_0): Moved to chartab.h.
2906         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2907         (char_table_entry_equal): Likewise.
2908         (char_table_entry_hash): Likewise.
2909         (char_table_entry_description): Likewise.
2910         (char_table_entry): Likewise.
2911         (make_char_table_entry): Likewise.
2912         (copy_char_table_entry): Likewise.
2913         (get_non_ascii_char_table_value): Likewise.
2914         (map_over_charset_ascii): Likewise.
2915         (map_over_charset_control_1): Likewise.
2916         (map_over_charset_row): Likewise.
2917         (map_over_other_charset): Likewise.
2918         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2919         (print_char_table): Likewise.
2920         (char_table_equal): Likewise.
2921         (char_table_hash): Likewise.
2922         (char_table_description): Likewise.
2923         (fill_char_table): Likewise.
2924         (Fcopy_char_table): Likewise.
2925         (get_char_table): Likewise.
2926         (Fget_range_char_table): Likewise.
2927         (put_char_table): Likewise.
2928         (map_char_table): Likewise.
2929         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2930         UTF-2000.
2931
2932 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2933
2934         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2935         `Vauto_fill_chars' in XEmacs UTF-2000.
2936
2937         * chartab.h (get_byte_table): New prototype [moved from
2938         chartab.c].
2939         (put_byte_table): Likewise [moved from chartab.c].
2940         (put_char_id_table_0): New inline function [moved from chartab.c].
2941         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2942         (Lisp_Char_Table_Entry): Likewise.
2943         (char_table_entry): Likewise.
2944         (XCHAR_TABLE_ENTRY): Likewise.
2945         (XSETCHAR_TABLE_ENTRY): Likewise.
2946         (CHAR_TABLE_ENTRYP): Likewise.
2947         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2948         (NUM_ASCII_CHARS): Likewise.
2949         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2950         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2951
2952 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953
2954         * chartab.c (get_char_id_table): Change interface.
2955         (put_char_id_table_0): New function.
2956         (put_char_id_table): Change interface; new implementation.
2957         (Fget_composite_char): Modify for interface change of
2958         `get_char_id_table'.
2959         (Fchar_variants): Likewise.
2960         (add_char_attribute_alist_mapper): Likewise.
2961         (Fchar_attribute_alist): Likewise.
2962         (Fget_char_attribute): Likewise.
2963         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2964         as same as character as the first argument like `put-char-table';
2965         modify for interface change of `put_char_id_table'.
2966         (Fremove_char_attribute): Modify for interface change of
2967         `put_char_id_table'.
2968
2969 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * text-coding.c: Sync up with XEmacs 21.2.41.
2972         (COMPOSE_ADD_CHAR): Modify for interface change of
2973         `get_char_id_table'.
2974
2975         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2976         change of `put_char_id_table'.
2977         (remove_char_ccs): Likewise.
2978
2979         * chartab.h (put_char_id_table): Change interface.
2980
2981         * char-ucs.h (get_char_id_table): Change interface.
2982         (charset_code_point): Modify for interface change of
2983         `get_char_id_table'.
2984         (encode_char_1): Likewise.
2985
2986 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2987
2988         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2989         argument `ccs'.
2990         (map_over_uint16_byte_table): Likewise.
2991         (map_over_byte_table): Likewise.
2992         (map_char_id_table): Add new argument `range' like
2993         `map_char_table'.
2994         (Fmap_char_attribute): Add new argument `range' like
2995         `Fmap_char_table'.
2996
2997 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2998
2999         * chartab.c (map_over_uint8_byte_table): Change interface of
3000         mapping function to use struct chartab_range instead of Emchar.
3001         (map_over_uint16_byte_table): Likewise.
3002         (map_over_byte_table): Likewise.
3003         (map_char_id_table): Likewise.
3004         (struct slow_map_char_id_table_arg): Deleted.
3005         (slow_map_char_id_table_fun): Deleted.
3006         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3007         function `slow_map_char_table_fun' instead of struct
3008         `slow_map_char_id_table_arg' and function
3009         `slow_map_char_id_table_fun'.
3010
3011 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * mule-charset.c: Move char-it-table related codes to chartab.c.
3014         (Vutf_2000_version): Moved to chartab.c.
3015         (Fdefine_char): Likewise.
3016         (Ffind_char): Likewise.
3017         (syms_of_mule_charset): Move types `uint8-byte-table',
3018         `uint16-byte-table', `byte-table' and `char-id-table' to
3019         chartab.c; move functions `char_attribute_list,
3020         `find_char_attribute_table, `char_attribute_alist,
3021         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3022         `map_char_attribute, `define_char, `find_char, `char_variants and
3023         `get_composite_char to chartab.c; move symbols `=>ucs',
3024         `->decomposition', `compat', `isolated', `initial', `medial',
3025         `final', `vertical', `noBreak', `fraction', `super', `sub',
3026         `circle', `square', `wide', `narrow', `small' and `font' to
3027         chartab.c.
3028         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3029         setting codes for `Vcharacter_composition_table' and
3030         `Vcharacter_variant_table' to chartab.c.
3031         (complex_vars_of_mule_charset): Move setting code for
3032         `Vchar_attribute_hash_table' to chartab.c.
3033
3034         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3035         (make_char_id_table): New prototype.
3036         (put_char_id_table): Likewise.
3037         (Fget_char_attribute): Likewise.
3038
3039         * chartab.c: Move char-id-table related code from mule-charset.c.
3040         (Vutf_2000_version): Moved from mule-charset.c.
3041
3042         * char-ucs.h (Qucs): New external variable.
3043         (put_char_ccs_code_point): New prototype.
3044         (remove_char_ccs): Likewise.
3045
3046 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3047
3048         * mule-charset.c (Vcharset_ucs_jis): New variable.
3049         (Qucs_jis): Likewise.
3050         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3051         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3052
3053         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3054
3055 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3056
3057         * mule-charset.c (map_over_uint8_byte_table): New function.
3058         (map_over_uint16_byte_table): Likewise.
3059         (map_over_byte_table): Likewise.
3060         (map_char_id_table): Likewise.
3061         (slow_map_char_id_table_fun): Likewise.
3062         (Fmap_char_attribute): Likewise.
3063         (syms_of_mule_charset): Add new function `map-char-attribute'.
3064
3065 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3066
3067         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3068         (syms_of_mule_charset): Add new function `find-char'.
3069
3070 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3073         XEmacs UTF-2000.
3074         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3075         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3076         XEmacs UTF-2000.
3077         (complex_vars_of_mule_charset): Add new coded-charset
3078         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3079         `ideograph-gt-pj-*'.
3080
3081         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3082
3083 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * mule-charset.c (encode_builtin_char_1): Purge codes about
3086         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3087         {MIN|MAX}_CHAR_HEBREW.
3088         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3089         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3090
3091         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3092         (MAX_CHAR_GREEK): Purged.
3093         (MIN_CHAR_CYRILLIC): Purged.
3094         (MAX_CHAR_CYRILLIC): Purged.
3095         (MIN_CHAR_HEBREW): Commented out.
3096         (MAX_CHAR_HEBREW): Likewise.
3097
3098 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3099
3100         * mule-charset.c (Qto_ucs): New variable.
3101         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3102         (Fdefine_char): Likewise.
3103         (syms_of_mule_charset): Add new symbol `=>ucs'.
3104
3105 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3106
3107         * mule-charset.c (Fdecode_char): Fixed.
3108
3109 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3112         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3113         "tcvn5712-1".
3114
3115 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * mule-charset.c (Vcharset_ucs_big5): New variable.
3118         (Qucs_big5): Likewise.
3119         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3120         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3121
3122         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3123
3124 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3125
3126         * mule-charset.c (decode_builtin_char): Check Big5 code range
3127         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3128
3129 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3132         (Qchinese_gb12345): Likewise.
3133         (Fdecode_builtin_char): Fixed.
3134         (syms_of_mule_charset): Add `chinese-gb12345'.
3135         (complex_vars_of_mule_charset): Add coded-charset
3136         `chinese-gb12345'.
3137
3138         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3139         (LEADING_BYTE_CHINESE_GB12345): New macro.
3140
3141 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3144         and `latin-viscii-upper' for `latin-viscii'.
3145
3146 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3147
3148         * mule-charset.c (Fdecode_builtin_char): Comment out
3149         regularization code for ISO-IR GR representation.
3150
3151 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3152
3153         * mule-charset.c (decode_builtin_char): New function; renamed from
3154         `make_builtin_char'; return -1 instead of signal.
3155         (Fdecode_builtin_char): Use `decode_builtin_char'.
3156
3157         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3158         `make_builtin_char'.
3159         (DECODE_CHAR): Use `decode_builtin_char' instead of
3160         `make_builtin_char'; use mapping table of `chinese-big5' for
3161         `chinese-big5-{1,2}'.
3162
3163 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3164
3165         * text-coding.c (char_encode_big5): New function.
3166         (char_finish_big5): Likewise.
3167         (reset_encoding_stream): Use `char_encode_big5' and
3168         `char_finish_big5' for CODESYS_BIG5.
3169         (mule_encode): Don't use `encode_coding_big5'.
3170         (encode_coding_big5): Deleted.
3171
3172 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3173
3174         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3175         0x81- in XEmacs UTF-2000.
3176         (detect_coding_big5): Likewise.
3177
3178 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3179
3180         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3181         generate character-id if the CCS property does not have
3182         corresponding predefined character.
3183         (make_builtin_char): Return -1 if corresponding predefined
3184         character is not found.
3185         (Fdecode_char): Return nil if corresponding character is not
3186         found.
3187         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3188         don't map to builtin ucs space.
3189
3190 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3191
3192         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3193         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3194
3195 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3196
3197         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3198         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3199         (Qideograph_gt): Likewise.
3200         (Qideograph_gt_pj_{1..11}): Likewise.
3201         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3202         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3203         `ideograph-gt-pj-11'.
3204         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3205         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3206         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3207
3208         * char-ucs.h (LEADING_BYTE_GT): New macro.
3209         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3210         (MIN_CHAR_GT): Likewise.
3211         (MAX_CHAR_GT): Likewise.
3212
3213 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3214
3215         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3216         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3217
3218         * doprnt.c (unsigned_int_converters): Add `c'.
3219         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3220
3221         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3222         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3223         `MIN_CHAR_MOJIKYO'.
3224         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3225         (MAX_CHAR_MOJIKYO_0): New macro.
3226         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3227
3228 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * mule-charset.c (Fdefine_char): Delete cemented out code.
3231         (encode_builtin_char_1): Modify for new allocation of builtin
3232         Mojikyo characters.
3233
3234         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3235
3236 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3237
3238         * mule-charset.c (Vcharset_ucs_cns): New variable.
3239         (Qucs_cns): New variable.
3240         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3241         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3242
3243 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3244
3245         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3246
3247 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3248
3249         * search.c (search_buffer): Make `charset_base_code' as
3250         character-id >> 6 to eliminate the corresponding last byte in
3251         UTF-8 representation [I'm not sure it is right thing].
3252         (boyer_moore): Likewise.
3253
3254 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3255
3256         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3257         representation in MULE.
3258
3259 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3260
3261         * text-coding.c (Fmake_coding_system): Use
3262         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3263         `EXTERNAL_PROPERTY_LIST_LOOP'.
3264
3265 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3266
3267         * text-coding.c (decode_output_utf8_partial_char): New function.
3268         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3269
3270 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3271
3272         * text-coding.c (decode_coding_utf8): Output original byte
3273         sequence if it is broken; change order of conditions.
3274
3275         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3276         of conditions.
3277
3278         * mb-multibyte.h (BYTE_ASCII_P):
3279         Use bit ops for char-signedness safety.
3280         (BYTE_C0_P): Use bit ops for char-signedness safety.
3281         (BYTE_C1_P): Use bit ops for char-signedness safety.
3282
3283         * character.h: (XCHAR_OR_CHAR_INT):
3284         Always use inline function.
3285         Remove redundant type checking assert() - XINT will abort quite
3286         nicely.
3287
3288 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * text-coding.c: (Fencode_shift_jis_char):
3291         (Fencode_big5_char):
3292         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3293         Replace 0 with '\0' when working with bytes.
3294         Replace initial "(" with "\(" in docstrings.
3295
3296         (Fmake_coding_system):
3297         When type is ccl and value is vector, register it with a proper
3298         symbol.  And checks whether the given ccl program is valid.
3299         (mule_decode): When calling ccl_driver, if src indicates
3300         NULL pointer, set an empty string instead.
3301         (mule_encode): Likewise.
3302
3303         (detect_eol_type):
3304         (detect_coding_sjis):
3305         (decode_coding_sjis):
3306         (detect_coding_big5):
3307         (decode_coding_big5):
3308         (detect_coding_ucs4):
3309         (decode_coding_ucs4):
3310         (detect_coding_utf8):
3311         (decode_coding_utf8):
3312         (detect_coding_iso2022):
3313         (decode_coding_iso2022):
3314         (decode_coding_no_conversion):
3315         (mule_decode):
3316         Make all detecting and decoding functions take an Extbyte * arg.
3317         (text_encode_generic):
3318         (encode_coding_big5):
3319         (encode_coding_no_conversion):
3320         (mule_encode):
3321         Make all encoding functions take a Bufbyte * arg.
3322         Use size_t instead of unsigned int for memory sizes.
3323         Only cast to unsigned char whenever dereferencing Extbyte *.
3324
3325         (struct lrecord_description fcd_description_1): Use countof.
3326         (complex_vars_of_file_coding):
3327         Use countof instead of sizeof.
3328         Use CHECK_NATNUM instead of CHECK_INT.
3329
3330 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * mule-charset.c (Fget_char_attribute): Add new optional argument
3333         `default-value'.
3334         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3335         (remove_char_ccs): Likewise.
3336
3337 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3338
3339         * text-coding.c (char_encode_shift_jis): New implementation in
3340         UTF-2000.
3341         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3342         ...)'.
3343
3344         * mule-charset.c (Vcharset_chinese_big5): New variable in
3345         UTF-2000.
3346         (Qchinese_big5): New variable in UTF-2000.
3347         (BIG5_SAME_ROW): New macro in UTF-2000.
3348         (make_builtin_char): Use builtin characters of
3349         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3350         characters of `Vcharset_chinese_big5'.
3351         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3352         (complex_vars_of_mule_charset): Add new coded-charset
3353         `chinese-big5' in UTF-2000.
3354
3355         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3356         (Vcharset_chinese_big5): New external variable declaration.
3357         (Vcharset_japanese_jisx0208_1990): Likewise.
3358
3359 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3360
3361         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3362         function.
3363         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3364
3365 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3368         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3369         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3370         `mojikyo-pj-*'.
3371
3372 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3373
3374         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3375
3376 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3377
3378         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3379         to 0.17.
3380
3381 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3382
3383         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3384         for `CHARSET_BY_ATTRIBUTES'.
3385         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3386         `CHARSET_BY_ATTRIBUTES'.
3387
3388         * text-coding.c (struct decoding_stream): Rename member `CH' to
3389         `CPOS'.
3390         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3391         (decode_coding_sjis): Likewise.
3392         (decode_coding_big5): Likewise.
3393         (decode_coding_ucs4): Likewise.
3394         (decode_coding_utf8): Likewise.
3395         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3396         `CHARSET_BY_ATTRIBUTES'.
3397         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3398         `str->counter'; decode 3, 4 bytes sets.
3399         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3400         sets.
3401         (decode_coding_no_conversion): Use `str->cpos' instead of
3402         `str->ch'.
3403
3404         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3405         (Qmojikyo_2022_1): New variable.
3406         (make_charset): Don't use `CHARSET_TYPE_*'.
3407         (range_charset_code_point): Support coded-charset
3408         `mojikyo-2022-1'.
3409         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3410         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3411         `CHARSET_BY_ATTRIBUTES'.
3412         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3413         `CHARSET_BY_ATTRIBUTES'.
3414         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3415         (complex_vars_of_mule_charset): Add new coded-charset
3416         `mojikyo-2022-1'.
3417
3418         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3419         interface; changed to inline function.
3420
3421         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3422         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3423         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3424         (CHARSET_TYPE_94): Deleted.
3425         (CHARSET_TYPE_94X94): Deleted.
3426         (CHARSET_TYPE_96): Deleted.
3427         (CHARSET_TYPE_96X96): Deleted.
3428         (CHARSET_TYPE_128): Deleted.
3429         (CHARSET_TYPE_128X128): Deleted.
3430         (CHARSET_TYPE_256): Deleted.
3431         (CHARSET_TYPE_256X256): Deleted.
3432         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3433         to inline function.
3434         (DECODE_MOJIKYO_2022): New inline function.
3435         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3436         `Vcharset_mojikyo_2022_1'.
3437
3438 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3439
3440         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3441         instead of `EQ'.
3442         (put_byte_table): Likewise.
3443         (char_id_table_equal): Use `get_byte_table' [new implementation].
3444
3445 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3446
3447         * mule-charset.c: Include <limits.h> in UTF-2000.
3448         (BT_UINT8_MIN): New macro in UTF-2000.
3449         (BT_UINT8_MAX): New macro in UTF-2000.
3450         (BT_UINT8_t): New macro in UTF-2000.
3451         (BT_UINT8_nil): New macro in UTF-2000.
3452         (BT_UINT8_unbound): New macro in UTF-2000.
3453         (INT_UINT8_P): New inline function in UTF-2000.
3454         (UINT8_VALUE_P): New inline function in UTF-2000.
3455         (UINT8_ENCODE): New inline function in UTF-2000.
3456         (UINT8_DECODE): New inline function in UTF-2000.
3457         (mark_uint8_byte_table): New function in UTF-2000.
3458         (print_uint8_byte_table): New function in UTF-2000.
3459         (uint8_byte_table_equal): New function in UTF-2000.
3460         (uint8_byte_table_hash): New function in UTF-2000.
3461         (make_uint8_byte_table): New function in UTF-2000.
3462         (uint8_byte_table_same_value_p): New function in UTF-2000.
3463         (BT_UINT16_MIN): New macro in UTF-2000.
3464         (BT_UINT16_MAX): New macro in UTF-2000.
3465         (BT_UINT16_t): New macro in UTF-2000.
3466         (BT_UINT16_nil): New macro in UTF-2000.
3467         (BT_UINT16_unbound): New macro in UTF-2000.
3468         (INT_UINT16_P): New inline function in UTF-2000.
3469         (UINT16_VALUE_P): New inline function in UTF-2000.
3470         (UINT16_ENCODE): New inline function in UTF-2000.
3471         (UINT16_DECODE): New inline function in UTF-2000.
3472         (UINT8_TO_UINT16): New inline function in UTF-2000.
3473         (mark_uint16_byte_table): New function in UTF-2000.
3474         (print_uint16_byte_table): New function in UTF-2000.
3475         (uint16_byte_table_equal): New function in UTF-2000.
3476         (uint16_byte_table_hash): New function in UTF-2000.
3477         (make_uint16_byte_table): New function in UTF-2000.
3478         (uint16_byte_table_same_value_p): New function in UTF-2000.
3479         (print_byte_table): New function in UTF-2000.
3480         (byte-table): Use `print_byte_table' as printer.
3481         (make_byte_table): Delete second argument `older'.
3482         (byte_table_same_value_p): New function in UTF-2000.
3483         (copy_byte_table): Deleted.
3484         (get_byte_table): New function in UTF-2000.
3485         (put_byte_table): New function in UTF-2000.
3486         (print_char_id_table): New function in UTF-2000.
3487         (char-id-table): Use `print_char_id_table' as printer.
3488         (make_char_id_table): Delete second argument `older'.
3489         (get_char_id_table): Use `get_byte_table [new implementation].
3490         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3491         implementation].
3492         (Ffind_char_attribute_table): New function in UTF-2000.
3493         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3494         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3495         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3496         (syms_of_mule_charset): Add new function
3497         `find-char-attribute-table' in UTF-2000.
3498
3499         * lrecord.h (enum lrecord_type): Add
3500         `lrecord_type_uint16_byte_table' and
3501         `lrecord_type_uint8_byte_table'.
3502
3503         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3504         (Lisp_Uint8_Byte_Table): New type.
3505         (XUINT8_BYTE_TABLE): New macro.
3506         (XSETUINT8_BYTE_TABLE): New macro.
3507         (UINT8_BYTE_TABLE_P): New macro.
3508         (GC_UINT8_BYTE_TABLE_P): New macro.
3509         (struct Lisp_Uint16_Byte_Table): New structure.
3510         (Lisp_Uint16_Byte_Table): New type.
3511         (XUINT16_BYTE_TABLE): New macro.
3512         (XSETUINT16_BYTE_TABLE): New macro.
3513         (UINT16_BYTE_TABLE_P): New macro.
3514         (GC_UINT16_BYTE_TABLE_P): New macro.
3515
3516 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3517
3518         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3519         (Vcharacter_ideographic_strokes_table): Deleted.
3520         (Vcharacter_total_strokes_table): Deleted.
3521         (Vcharacter_morohashi_daikanwa_table): Deleted.
3522         (Vcharacter_decomposition_table): Deleted.
3523         (Qname): Deleted because it is duplicated.
3524         (Qideographic_radical): Deleted.
3525         (Qideographic_strokes): Deleted.
3526         (Qtotal_strokes): Deleted.
3527         (Qmorohashi_daikanwa): Deleted.
3528         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3529         `ideographic-radical', `ideographic-strokes', `total-strokes',
3530         `morohashi-daikanwa' and `->decomposition'.
3531         (Fget_char_attribute): Likewise.
3532         (Fput_char_attribute): Likewise; use `make-vector' instead of
3533         `make_older_vector' for `->decomposition' value.
3534         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3535         `ideograph-daikanwa'.
3536         (syms_of_mule_charset): Delete builtin symbols `name',
3537         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3538         `morohashi-daikanwa'.
3539         (vars_of_mule_charset): Don't setup
3540         `Vcharacter_ideographic_radical_table',
3541         `Vcharacter_ideographic_strokes_table',
3542         `Vcharacter_total_strokes_table',
3543         `Vcharacter_morohashi_daikanwa_table' and
3544         `Vcharacter_decomposition_table'.
3545
3546 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3547
3548         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3549         `make_older_vector', `make_vector_newer_1' and
3550         `make_vector_newer'.
3551
3552         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3553         `make_older_vector' and `make_vector_newer'.
3554
3555         * config.h.in (HAVE_GGC): New macro.
3556
3557 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3558
3559         * mule-charset.c (struct char_attribute_list_closure): New
3560         structure in UTF-2000.
3561         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3562         (Fchar_attribute_list): Likewise.
3563         (Fset_charset_mapping_table): Use `make_vector_newer'.
3564         (Fdecode_builtin_char): New function in UTF-2000.
3565         (syms_of_mule_charset): Add new function `char-attribute-list' and
3566         `decode-builtin-char' in UTF-2000.
3567
3568         * lisp.h (make_vector_newer): New prototype.
3569
3570         * alloc.c (make_vector_newer_1): New function.
3571         (make_vector_newer): New function.
3572
3573 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3574
3575         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3576         50100)'.
3577
3578 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3579
3580         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3581         (Vcharacter_attribute_table): Deleted.
3582         (Vcharacter_name_table): Deleted.
3583         (put_char_attribute): Deleted.
3584         (remove_char_attribute): Deleted.
3585         (struct char_attribute_alist_closure): New structure.
3586         (add_char_attribute_alist_mapper): New function.
3587         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3588         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3589         (Fget_char_attribute): Likewise.
3590         (Fput_char_attribute): Likewise.
3591         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3592         of `remove_char_attribute'.
3593         (Fdefine_char): Return character.
3594         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3595         and `Vcharacter_name_table'.
3596         (complex_vars_of_mule_charset): Likewise
3597         `Vchar_attribute_hash_table'.
3598
3599 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3600
3601         * character.h (CHARC_CHARSET): New macro.
3602         (CHARC_CHARSET_ID): New macro.
3603         (CHARC_CODE_POINT): New macro.
3604         (CHARC_COLUMNS): New macro.
3605         (CHARC_TO_CHAR): New inline function.
3606         (CHARC_EQ): New inline function.
3607         (CHARC_ASCII_EQ): New inline function.
3608         (CHARC_IS_SPACE): New inline function.
3609         (ASCII_TO_CHARC): New inline function.
3610
3611         * char-ucs.h (encode_char_2): Deleted.
3612         (ENCODE_CHAR): Use `encode_char_1' again.
3613         (breakup_char_1): Likewise.
3614         (CHAR_TO_CHARC): New inline function.
3615
3616         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3617
3618 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3619
3620         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3621         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3622         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3623         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3624         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3625         `CHARC_IS_SPACE'.
3626         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3627
3628         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3629         `CHARC_CODE_POINT'.
3630         (x_output_display_block): Use `CHARC_CHARSET' and
3631         `CHARC_ASCII_EQ'.
3632
3633         * redisplay-tty.c (tty_output_display_block): Use
3634         `CHARC_ASCII_EQ'.
3635         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3636
3637         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3638
3639         * insdel.c (find_charsets_in_charc_string): Use
3640         `CHARC_CHARSET_ID'.
3641         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3642         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3643         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3644         (convert_charc_string_into_malloced_string): Likewise.
3645
3646 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3647
3648         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3649         instead of <Emchar_dynarr *> for buf; use
3650         `convert_bufbyte_string_into_charc_dynarr' instead of
3651         `convert_bufbyte_string_into_emchar_dynarr'; use
3652         `find_charsets_in_charc_string' instead of
3653         `find_charsets_in_emchar_string'.
3654
3655         * redisplay.h:
3656         - Include "character.h".
3657         (struct rune): New member `cglyph'; delete member `chr'.
3658
3659         * redisplay.c (redisplay_text_width_charc_string): New function;
3660         delete `redisplay_text_width_emchar_string'.
3661         (rtw_charc_dynarr): New variable; renamed from
3662         `rtw_emchar_dynarr'.
3663         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3664         `rtw_emchar_dynarr'; use
3665         `convert_bufbyte_string_into_charc_dynarr' instead of
3666         `convert_bufbyte_string_into_emchar_dynarr'; use
3667         `redisplay_text_width_charc_string' instead of
3668         `redisplay_text_width_emchar_string'.
3669         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3670         instead of `rtw_emchar_dynarr'; use
3671         `convert_bufbyte_string_into_charc_dynarr' instead of
3672         `convert_bufbyte_string_into_emchar_dynarr'.
3673         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3674         `redisplay_text_width_charc_string' instead of
3675         `redisplay_text_width_emchar_string'.
3676         (create_text_block): Modify for <struct rune> change.
3677         (generate_formatted_string_db): Likewise.
3678         (create_string_text_block): Likewise.
3679         (pixel_to_glyph_translation): Likewise.
3680
3681         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3682         instead of <const Emchar *>.
3683         (x_text_width): Likewise.
3684         (x_output_display_block): Use <Charc_dynarr *> instead
3685         <Emchar_dynarr *>; modify for <structure rune> change.
3686         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3687         *>.
3688
3689         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3690         <const Emchar *>; use `charc_string_displayed_columns' instead of
3691         `emchar_string_displayed_columns'.
3692         (tty_output_display_block): Use <Charc_dynarr *> instead of
3693         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3694         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3695         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3696         `tty_output_emchar_dynarr_dynarr'.
3697         (tty_output_charc_dynarr): New function; delete
3698         `tty_output_charc_dynarr'.
3699
3700         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3701         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3702         <Emchar_dynarr *> for buf; use
3703         `convert_bufbyte_string_into_charc_dynarr' instead of
3704         `convert_bufbyte_string_into_emchar_dynarr'.
3705
3706         * frame.c (title_string_charc_dynarr): New variable; renamed from
3707         `title_string_emchar_dynarr'.
3708         (generate_title_string): Use `title_string_charc_dynarr' instead
3709         of `title_string_emchar_dynarr'; use
3710         `convert_charc_string_into_malloced_string' instead of
3711         `convert_emchar_string_into_malloced_string'.
3712         (init_frame): Use `title_string_charc_dynarr' instead of
3713         `title_string_emchar_dynarr'.
3714
3715         * console.h:
3716         - Include "character.h".
3717         (struct console_methods): Use <const Charc *> instead of <const
3718         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3719         <Emchar_dynarr *> in output_string_method.
3720
3721         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3722         <Emchar_dynarr *>.
3723
3724         * console-stream.c (stream_text_width): Use <const Charc *>
3725         instead of <const Emchar *>.
3726
3727         * character.h (Charc_dynarr): New type.
3728
3729         * char-ucs.h (structure Charc): New structure; define new type
3730         `Charc'.
3731
3732         * char-lb.h (DECODE_CHAR): New inline function.
3733         (encode_char_1): New inline function.
3734         (ENCODE_CHAR): New macro.
3735         (structure Charc): New structure; define new type `Charc'.
3736
3737         * char-1byte.h (Vcharset_control_1): New macro.
3738         (Vcharset_latin_iso8859_1): New macro.
3739         (DECODE_CHAR): New inline function.
3740         (encode_char_1): New inline function.
3741         (ENCODE_CHAR): New macro.
3742         (structure Charc): New structure; define new type `Charc'.
3743
3744         * insdel.c (find_charsets_in_charc_string): New function; delete
3745         `find_charsets_in_emchar_string'.
3746         (charc_string_displayed_columns): New function; delete
3747         `emchar_string_displayed_columns'.
3748         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3749         `convert_bufbyte_string_into_emchar_dynarr'.
3750         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3751         `convert_charc_string_into_bufbyte_dynarr'.
3752         (convert_charc_string_into_malloced_string): New function; delete
3753         `convert_charc_string_into_malloced_string'.
3754
3755         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3756         `find_charsets_in_emchar_string'.
3757         (charc_string_displayed_columns): New prototype; delete
3758         `emchar_string_displayed_columns'.
3759         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3760         `convert_charc_string_into_bufbyte_dynarr'.
3761         (convert_charc_string_into_malloced_string): New prototype; delete
3762         `convert_charc_string_into_malloced_string'.
3763
3764 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3765
3766         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3767
3768 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3769
3770         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3771
3772         * char-ucs.h: Use <short> for <Charset_ID>.
3773
3774         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3775         <Charset_ID>.
3776
3777 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3778
3779         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3780         to 0.16.
3781
3782 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3783
3784         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3785         variable.
3786         (Qmorohashi_daikanwa): New variable.
3787         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3788         for `morohashi-daikanwa' attribute.
3789         (Fget_char_attribute): Likewise.
3790         (Fput_char_attribute): Likewise.
3791         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3792         has the same value of `ideograph-daikanwa'.
3793         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3794         (vars_of_mule_charset): Setup
3795         `Vcharacter_morohashi_daikanwa_table'.
3796
3797 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3798
3799         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3800         attributes.
3801         (add_charset_to_list_mapper): Add `key' instead of
3802         `XCHARSET_NAME (value)' to return aliases.
3803
3804 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3805
3806         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3807         variable.
3808         (Vcharacter_ideographic_strokes_table): New variable.
3809         (Qideographic_radical): New variable.
3810         (Qideographic_strokes): New variable.
3811         (Fchar_attribute_alist): Use
3812         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3813         attribute; use `Vcharacter_ideographic_strokes_table' for
3814         `ideographic-strokes' attribute.
3815         (Fget_char_attribute): Likewise.
3816         (Fput_char_attribute): Likewise.
3817         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3818         `ideographic-strokes'.
3819         (vars_of_mule_charset): Setup
3820         `Vcharacter_ideographic_radical_table' and
3821         `Vcharacter_ideographic_strokes_table'.
3822
3823 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3824
3825         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3826         (Qtotal_strokes): New variable.
3827         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3828         `total-strokes' attribute.
3829         (Fget_char_attribute): Likewise.
3830         (Fput_char_attribute): Likewise.
3831         (syms_of_mule_charset): Add new symbol `total-strokes'.
3832         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3833
3834 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3835
3836         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3837         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3838         are found.
3839         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3840         `->decomposition' attribute.
3841         (Fput_char_attribute): Likewise.
3842         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3843
3844 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3845
3846         * mule-charset.c (decoding_table_check_elements): New function.
3847         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3848
3849 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3850
3851         * mule-charset.c (Fset_charset_mapping_table): Use
3852         `put_char_ccs_code_point'.
3853
3854 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3855
3856         * mule-charset.c (decoding_table_put_char): New inline function.
3857         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3858
3859 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3860
3861         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3862         (XCHARSET_BYTE_SIZE): New macro.
3863         (decoding_table_remove_char): New inline function.
3864         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3865         `decoding_table_remove_char'.
3866         (remove_char_ccs): Use `decoding_table_remove_char'.
3867         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3868
3869 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3870
3871         * mule-charset.c (Vcharacter_name_table): New variable.
3872         (Qname): New variable.
3873         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3874         attribute.
3875         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3876         `Vcharacter_name_table' for `name' attribute.
3877         (Fremove_char_attribute): Use function `remove_char_ccs'.
3878         (put_char_ccs_code_point): New function.
3879         (remove_char_ccs): New function.
3880         (syms_of_mule_charset): Add new symbol `name'.
3881         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3882
3883 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3884
3885         * mule-charset.c (make_byte_table): Add new argument `older'.
3886         (make_char_id_table): Likewise.
3887         (copy_char_id_table): Comment out because it is not used.
3888         (put_char_id_table): Modify for `make_byte_table'.
3889         (Fput_char_attribute): Make encoding_table as older object;
3890         inherit older bit of `Vcharacter_composition_table'.
3891         (mark_charset): Don't mark `cs->encoding_table'.
3892         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3893         normal object; make `Vcharacter_composition_table' as an older
3894         object; delete staticpro for `Vcharacter_composition_table'; make
3895         `Vcharacter_variant_table' as a normal object.
3896
3897         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3898         (mark_object): Don't check older object in UTF-2000.
3899
3900         * lrecord.h (struct lrecord_header): Add new member `older' in
3901         UTF-2000.
3902         (set_lheader_implementation): Setup `SLI_header->older' in
3903         UTF-2000.
3904         (set_lheader_older_implementation): New macro in UTF-2000.
3905         (OLDER_RECORD_P): New macro in UTF-2000.
3906         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3907         (alloc_older_lcrecord): New prototype in UTF-2000.
3908         (alloc_older_lcrecord_type): New macro in UTF-2000.
3909
3910 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3911
3912         * mule-charset.c (byte_table_description): Use
3913         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3914         (char_id_table_description): Delete bogus `, 1'.
3915         (Fget_char_attribute): Refer encoding_table of each coded-charset
3916         to get value of coded-charset attribute of a character.
3917         (Fput_char_attribute): Use `make_older_vector' instead of
3918         `make_vector'; use encoding_table of each coded-charset to store
3919         value of coded-charset attribute of a character.
3920         (Fremove_char_attribute): Use encoding_table of each coded-charset
3921         to store value of coded-charset attribute of a character.
3922         (mark_charset): Mark `cs->encoding_table'; don't mark
3923         `cs->decoding_table'.
3924         (charset_description): Add description of new member
3925         `encoding_table'.
3926         (make_charset): Initialize `encoding_table'.
3927
3928         * char-ucs.h (struct Lisp_Charset): Add new member
3929         `encoding_table'.
3930         (CHARSET_ENCODING_TABLE): New macro.
3931         (XCHARSET_ENCODING_TABLE): New macro.
3932         (charset_code_point): New implementation.
3933         (encode_char_1): Likewise.
3934
3935         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3936         (disksave_object_finalization_1): Call finalizers of
3937         `all_older_lcrecords' in UTF-2000.
3938         (make_older_vector): New function in UTF-2000.
3939         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3940         UTF-2000.
3941
3942         * lisp.h (make_older_vector): New prototype in UTF-2000.
3943
3944 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3945
3946         * lrecord.h (enum lrecord_type): Rename
3947         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3948
3949         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3950         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3951         `get_char_code_table'.
3952
3953         * mule-charset.c (mark_char_id_table): Renamed from
3954         `mark_char_code_table'.
3955         (char_id_table_equal): Renamed from `char_code_table_equal'.
3956         (char_id_table_hash): Renamed from `char_code_table_hash'.
3957         (make_char_id_table): Renamed from `make_char_code_table'.
3958         (copy_char_id_table): Renamed from `copy_char_code_table'.
3959         (get_char_id_table): Renamed from `get_char_code_table'.
3960         (put_char_id_table): Renamed from `put_char_code_table'.
3961         (to_char_id): Renamed from `to_char_code'.
3962
3963         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3964         `Lisp_Char_Code_Table'.
3965         (char_id_table): Renamed from `char_code_table'.
3966         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3967         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3968         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3969         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3970         (get_char_id_table): Renamed from `get_char_code_table'.
3971
3972 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3973
3974         * lrecord.h (enum lrecord_type): Rename
3975         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3976
3977         * mule-charset.c (mark_byte_table): Renamed from
3978         `mark_char_byte_table'.
3979         (byte_table_equal): Renamed from `char_byte_table_equal'.
3980         (byte_table_hash): Renamed from `byte_table_hash'.
3981         (make_byte_table): Renamed from `make_byte_table'.
3982         (copy_byte_table): Renamed from `copy_char_byte_table'.
3983
3984         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3985         `Lisp_Char_Byte_Table'.
3986         (byte_table): Renamed from `char_byte_table'.
3987         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3988         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3989         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3990         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3991
3992 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3993
3994         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3995         (dfc_convert_to_internal_format): Likewise.
3996         
3997         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3998         * text-coding.c (Fcoding_system_alias_p): New function.
3999         * text-coding.c (Fcoding_system_aliasee): New function.
4000         * text-coding.c (append_suffix_to_symbol): New function.
4001         * text-coding.c (dangling_coding_system_alias_p): New function.
4002         * text-coding.c (Ffind_coding_system):
4003         * text-coding.c (Fcopy_coding_system):
4004         * text-coding.c (encode_coding_no_conversion):
4005         * text-coding.c (syms_of_file_coding):
4006         * text-coding.c (vars_of_file_coding):
4007         Rewrite coding system alias code.
4008         Allow nested aliases, like symbolic links.
4009         Allow redefinition of coding system aliases.
4010         Prevent existence of dangling coding system aliases.
4011         Eliminate convert_to_external_format.
4012         Eliminate convert_to_internal_format.
4013         
4014         * text-coding.c: Change enum eol_type to eol_type_t.
4015
4016 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4017
4018         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4019         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4020
4021         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4022         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4023
4024 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4025
4026         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4027         `ideograph-daikanwa'.
4028
4029         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4030         (Vcharset_ucs_bmp): Likewise.
4031         (Vcharset_mojikyo): Add new extern variable definition.
4032         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4033         (Vcharset_latin_iso8859_3): Likewise.
4034         (Vcharset_latin_iso8859_4): Likewise.
4035         (Vcharset_latin_iso8859_9): Likewise.
4036         (Vcharset_latin_viscii_lower): Likewise.
4037         (Vcharset_latin_viscii_upper): Likewise.
4038         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4039         `mojikyo' code-point is used to decode.
4040         (encode_char_2): New function [to convert `mojikyo' code-point to
4041         Mojikyo font encoding].
4042         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4043         (breakup_char_1): Likewise.
4044         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4045
4046 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4047
4048         * text-coding.c (Fmake_coding_system): Add document about
4049         `disable-composition' property.
4050
4051 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4052
4053         * text-coding.c (Qdisable_composition): New variable; delete
4054         `Qcomposite'.
4055         (Fmake_coding_system): Add new property `disable-composite';
4056         delete property `composite'.
4057         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4058         instead of `!CODING_SYSTEM_COMPOSITE'.
4059         (syms_of_file_coding): Add new symbol `disable-composition';
4060         delete symbol `composite'.
4061
4062         * file-coding.h (struct Lisp_Coding_System): Add
4063         `disable_composition'; delete `enable_composition'.
4064         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4065         `CODING_SYSTEM_COMPOSITE'.
4066         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4067         `XCODING_SYSTEM_COMPOSITE'.
4068
4069 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4070
4071         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4072         to 0.15.
4073
4074 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4075
4076         * text-coding.c (Qcomposite): New variable.
4077         (Fmake_coding_system): Add new property `composite'.
4078         (struct decoding_stream): Add `combined_char_count',
4079         `combined_chars' and `combining_table' in UTF-2000.
4080         (COMPOSE_FLUSH_CHARS): New macro.
4081         (COMPOSE_ADD_CHAR): New macro.
4082         (reset_decoding_stream): Reset `str->combined_char_count' and
4083         `str->combining_table' in UTF-2000.
4084         (decode_coding_iso2022): Modify for character-decomposition.
4085         (syms_of_file_coding): Add new symbol `composite'.
4086
4087 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4088
4089         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4090         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4091         of `Vcharacter_composition_table' if `->decomposition' property
4092         has only 1 element.
4093         (Qlatin_tcvn5712): New variable.
4094         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4095         (complex_vars_of_mule_charset): Add new coded-charset
4096         `latin-tcvn5712'.
4097
4098         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4099
4100 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4101
4102         * file-coding.h (struct Lisp_Coding_System): Add
4103         `enable_composition'.
4104         (CODING_SYSTEM_COMPOSITE): New macro.
4105         (XCODING_SYSTEM_COMPOSITE): New macro.
4106
4107 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4108
4109         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4110
4111 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4112
4113         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4114         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4115
4116 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4117
4118         * mule-charset.c (Vcharset_mojikyo): New variable.
4119         (Fdefine_char): Don't use coded-charset which does not have
4120         non-builtin character range to allocate character-id.
4121         (Qmojikyo): New variable.
4122         (syms_of_mule_charset): Add new symbol `mojikyo'.
4123         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4124
4125         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4126         (LEADING_BYTE_MOJIKYO): New macro.
4127         (MIN_CHAR_MOJIKYO): New macro.
4128         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4129         (MAX_CHAR_MOJIKYO): New macro.
4130
4131 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4132
4133         * mule-charset.c (remove_char_attribute): Fixed.
4134
4135 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4136
4137         * mule-charset.c (remove_char_attribute): New function.
4138         (Fremove_char_attribute): New function.
4139         (encode_builtin_char_1): Comment out builtin-support for
4140         greek-iso8859-7 and cyrillic-iso8859-5.
4141         (Fdecode_char): Check `code' is an integer.
4142         (syms_of_mule_charset): Add `remove-char-attribute'.
4143         (MIN_CHAR_GREEK): Deleted.
4144         (MAX_CHAR_GREEK): Likewise.
4145         (MIN_CHAR_CYRILLIC): Likewise.
4146         (MAX_CHAR_CYRILLIC): Likewise.
4147         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4148         MAX_CHAR_GREEK for `greek-iso8859-7'.
4149
4150         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4151         (MAX_CHAR_GREEK): Likewise.
4152         (MIN_CHAR_CYRILLIC): Likewise.
4153         (MAX_CHAR_CYRILLIC): Likewise.
4154
4155 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4156
4157         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4158         format is used without `ucs' property.
4159         (Fdecode_char): Fix problem with GR representation.
4160         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4161         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4162
4163 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4164
4165         * mule-charset.c (make_builtin_char): New function.
4166         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4167         (Fset_charset_mapping_table): Modify for new representation of
4168         code-point.
4169         (Fdecode_char): New function.
4170         (syms_of_mule_charset): Add new builtin function `decode-char' in
4171         UTF-2000.
4172
4173         * char-ucs.h (make_builtin_char): New prototype.
4174         (DECODE_CHAR): New inline function.
4175         (MAKE_CHAR): Use `DECODE_CHAR'.
4176
4177 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4178
4179         * text-coding.c (parse_charset_conversion_specs): Use
4180         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4181         `XCHARSET_TYPE'.
4182         (iso2022_designate): Likewise.
4183
4184         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4185         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4186
4187         * mule-charset.c (Vcharset_ucs): New variable.
4188         (print_charset): Change design; use `CHARSET_CHARS' and
4189         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4190         (make_charset): Change signature to specify `chars' and
4191         `dimension' instead of `type'.
4192         (range_charset_code_point): Modify for 256^n-set.
4193         (encode_builtin_char_1): Encode as `ucs' in default.
4194         (Fmake_charset): Modify for `make_charset'.
4195         (Fmake_reverse_direction_charset): Likewise.
4196         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4197         UTF-2000.
4198         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4199         for `make_charset'.
4200
4201         * char-ucs.h (Vcharset_ucs): New variable.
4202         (LEADING_BYTE_UCS): New macro.
4203         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4204         and `chars' to `unsigned short' from `unsigned int'.
4205         (CHARSET_TYPE): Deleted.
4206         (XCHARSET_TYPE): Deleted.
4207
4208 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4209
4210         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4211
4212         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4213         (ENCODE_CHAR): New macro.
4214
4215 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4216
4217         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4218         to 0.14 (Kawachi-Katakami).
4219
4220 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4221
4222         * text-coding.c (char_encode_shift_jis): Modify for
4223         `charset_code_point'.
4224         (char_encode_iso2022): Likewise.
4225
4226         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4227         (integer) instead of list of <Lisp_Object>s (integers) as the
4228         format of code-point of a coded-charset.
4229         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4230         (encode_builtin_char_1): New function; delete
4231         `split_builtin_char'.
4232         (charset_code_point): Return <int> instead of <Lisp_Object>.
4233         (Fsplit_char): Don't use `SPLIT_CHAR'.
4234
4235         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4236         prototype for `split_builtin_char'.
4237         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4238         (charset_code_point): Likewise.
4239         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4240         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4241
4242 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4243
4244         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4245         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4246
4247 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4248
4249         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4250
4251         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4252         (MAX_CHAR_OBS_94x94): Deleted.
4253
4254 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4257
4258         * char-ucs.h (MAX_CHAR_BMP): New macro.
4259
4260 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4261
4262         * text-coding.c: Sync with r21-2-24.
4263
4264 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * file-coding.c: Modify for UTF-2000.
4267
4268 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4269
4270         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4271         to 0.13 (Takaida).
4272
4273 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4274
4275         * mule-charset.c (split_builtin_char): Delete builtin support for
4276         `katakana-jisx0201'.
4277         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4278         BMP area in builtin representation.
4279
4280         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4281         `Vcharset_katakana_jisx0201'.
4282
4283 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4284
4285         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4286         (Qisolated): New variable.
4287         (Qinitial): New variable.
4288         (Qmedial): New variable.
4289         (Qfinal): New variable.
4290         (Qvertical): New variable.
4291         (Qsmall): New variable.
4292         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4293         `Qvertical' and `Qsmall'.
4294         (Qmojikyo_pj_[1 .. 21]): New variable.
4295         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4296         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4297         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4298         .. 21]'.
4299
4300 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4301
4302         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4303         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4304         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4305
4306 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4307
4308         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4309         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4310         BMP.
4311         (Qjapanese_jisx0208_1990): New variable.
4312         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4313         (complex_vars_of_mule_charset): Add new coded-charset
4314         `japanese-jisx0208-1990'.
4315
4316         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4317         (MIN_CHAR_JIS_X0208_1990): New macro.
4318         (MAX_CHAR_JIS_X0208_1990): New macro.
4319
4320 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4321
4322         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4323         coded-charset is not found.
4324
4325 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4326
4327         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4328         (Fdefine_char): Use `Fmake_char'.
4329
4330 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4331
4332         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4333         (Vcharset_hiragana_jisx0208): Deleted.
4334         (Vcharset_katakana_jisx0208): Deleted.
4335         (Qideograph_daikanwa): New variable.
4336         (Qhiragana_jisx0208): Deleted.
4337         (Qkatakana_jisx0208): Deleted.
4338         (split_builtin_char): Split `ideograph-daikanwa'.
4339         (Fsplit_char): New implementation for UTF-2000.
4340         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4341         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4342         (complex_vars_of_mule_charset): Add new coded-charset
4343         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4344         `katakana-jisx0208'.
4345
4346         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4347         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4348         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4349         (MIN_CHAR_DAIKANWA): New macro.
4350         (MAX_CHAR_DAIKANWA): New macro.
4351
4352 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4353
4354         * data.c (Fstring_to_number): Don't recognize floating point if
4355         base is not 10.
4356
4357 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4358
4359         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4360
4361 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4362
4363         * mule-charset.c (Qsquare): New variable.
4364         (to_char_code): Add `Qsquare'.
4365         (syms_of_mule_charset): Add new symbol `square'.
4366
4367 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4368
4369         * mule-charset.c (Qcircle): New variable.
4370         (to_char_code): Add `Qcircle'.
4371         (syms_of_mule_charset): Add new symbol `circle'.
4372
4373 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4374
4375         * mule-charset.c (Qfont): New variable.
4376         (to_char_code): Add `Qfont'.
4377         (syms_of_mule_charset): Add new symbol `font'.
4378
4379 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4380
4381         * mule-charset.c (Qsub): New variable.
4382         (to_char_code): Add `Qsub'.
4383         (syms_of_mule_charset): Add new symbol `sub'.
4384
4385 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * mule-charset.c (Fput_char_attribute): Convert each element of
4388         VALUE to GL position if ATTRIBUTE is a GR-set,
4389
4390 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4393         coded-charset is a GR-set.
4394
4395 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4396
4397         * mule-charset.c (Fput_char_attribute): Check each element of
4398         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4399
4400 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4401
4402         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4403         UTF-2000.
4404         (Qethiopic_ucs): New variable in UTF-2000.
4405         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4406         (complex_vars_of_mule_charset): Add new coded-charset
4407         `ethiopic-ucs' in UTF-2000.
4408
4409         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4410         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4411         9)'.
4412         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4413         10)'.
4414         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4415
4416 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4417
4418         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4419         `ascii'.
4420
4421 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4422
4423         * mule-charset.c (Vcharacter_variant_table): New variable.
4424         (Q_ucs): New variable.
4425         (Fchar_variants): New function.
4426         (Fput_char_attribute): Register `->ucs' value to
4427         `Vcharacter_variant_table'.
4428         (syms_of_mule_charset): Add new function `char-variants' and new
4429         symbol `->ucs'.
4430         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4431
4432 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4433
4434         * mule-charset.c (get_char_code_table): Allow negative character
4435         code.
4436         (put_char_code_table): Likewise.
4437         (Vcharacter_composition_table): New variable.
4438         (Q_decomposition): New variable.
4439         (Qwide): New variable.
4440         (Qnarrow): New variable.
4441         (Qcompat): New variable.
4442         (QnoBreak): New variable.
4443         (Qsuper): New variable.
4444         (Qfraction): New variable.
4445         (to_char_code): New function.
4446         (Fget_composite_char): New function.
4447         (Fput_char_attribute): Register `->decomposition' value to
4448         `Vcharacter_composition_table'.
4449         (syms_of_mule_charset): Add new function `get-composite-char', new
4450         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4451         `super' and `fraction'.
4452         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4453
4454 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4455
4456         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4457         character; copy the return value.
4458
4459 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4460
4461         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4462
4463         * mule-charset.c (range_charset_code_point): Must use make_int.
4464         (split_builtin_char): New function.
4465
4466 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4467
4468         * mule-charset.c (char_byte_table): Change name from
4469         "char-code-table" to "char-byte-table".
4470         (mark_char_code_table): New function.
4471         (char_code_table_equal): New function.
4472         (char_code_table_hash): New function.
4473         (char_code_table_description): New constant.
4474         (char_code_table): New type.
4475         (make_char_code_table): New function.
4476         (copy_char_code_table): New function.
4477         (get_char_code_table): Modify for `char_code_table' type.
4478         (put_char_code_table): Likewise.
4479         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4480         (Kashiwara).
4481
4482         * char-ucs.h (char_code_table): New type.
4483         (XCHAR_CODE_TABLE): New macro.
4484         (XSETCHAR_CODE_TABLE): New macro.
4485         (CHAR_CODE_TABLE_P): New macro.
4486         (GC_CHAR_CODE_TABLE_P): New macro.
4487         (struct Lisp_Char_Code_Table): New structure.
4488
4489 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4490
4491         * mule-charset.c (Fmake_charset): Setup byte_offset for
4492         {94|96}^n-set.
4493
4494 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4495
4496         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4497         character.
4498
4499 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4500
4501         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4502         is found.
4503
4504 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4505
4506         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4507         charset, it is regarded as a charset.
4508         (put_char_attribute): New function in UTF-2000.
4509         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4510         charset, mapping-table of the charset is modified.
4511         (Fdefine_char): New function in UTF-2000.
4512         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4513         `Fput_char_attribute'.
4514         (syms_of_mule_charset): Add new function `define-char' and new
4515         symbol `ucs' in UTF-2000.
4516         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4517
4518 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4519
4520         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4521         non-UTF-2000 configuration.
4522
4523 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4524
4525         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4526         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4527
4528         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4529         deleted.
4530         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4531         (Fset_charset_mapping_table): Likewise.
4532
4533         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4534         (CHARSET_ENCODING_TABLE): Delete.
4535         (XCHARSET_ENCODING_TABLE): Delete.
4536         (charset_code_point): New interface.
4537
4538 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4539
4540         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4541         instead of `charset_get_byte1' and `charset_get_byte2'.
4542
4543         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4544         (charset_get_byte2): Deleted.
4545
4546 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4547
4548         * char-ucs.h (SPLIT_CHAR): New inline function.
4549         (breakup_char_1): Use `SPLIT_CHAR'.
4550
4551         * mule-charset.c (range_charset_code_point): New function.
4552         (charset_code_point): New function.
4553
4554         * char-ucs.h (range_charset_code_point): New interface.
4555         (breakup_char_1): Use `range_charset_code_point'.
4556
4557 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4558
4559         * mule-charset.c (Fmake_charset): Delete unused local variable
4560         `code_offset'.
4561
4562         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4563         (breakup_char_1): Find a charset and code-point in
4564         `Vcharacter_attribute_table'.
4565
4566 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4567
4568         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4569         to 0.10 (Yao).
4570
4571 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4572
4573         * mule-charset.c (Vcharacter_attribute_table): New variable.
4574         (Fchar_attribute_alist): New function.
4575         (Fget_char_attribute): New function.
4576         (Fput_char_attribute): New function.
4577         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4578         too.
4579         (syms_of_mule_charset): Add new function `char-attribute-alist',
4580         `get-char-attribute' and `put-char-attribute'.
4581         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4582
4583 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * mule-charset.c (Fmake_charset): Just use
4586         `get_unallocated_leading_byte'.
4587
4588         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4589         sets; don't use final-byte based number for private sets.
4590
4591 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4592
4593         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4594         integer.
4595
4596 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4597
4598         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4599         to 0.9.
4600
4601 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4602
4603         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4604         of `CHAR_LEADING_BYTE' in UTF-2000.
4605
4606         * insdel.c (find_charsets_in_bufbyte_string): Use
4607         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4608         (find_charsets_in_emchar_string): Likewise.
4609
4610         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4611         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4612
4613         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4614         (CHAR_CHARSET_ID): New macro.
4615
4616 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4617
4618         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4619         charset-id - MIN_LEADING_BYTE.
4620         (put_char_table): Likewise.
4621
4622 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4623
4624         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4625         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4626         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4627         (CHARSET_ID_OFFSET): New macro.
4628         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4629         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4630         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4631         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4632         4).
4633         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4634         5).
4635         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4636         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4637         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4638         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4639         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4640
4641 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4642
4643         * mule-charset.c (next_allocated_leading_byte): New variable in
4644         UTF-2000.
4645         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4646         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4647         (get_unallocated_leading_byte): Simply use
4648         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4649         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4650         UTF-2000.
4651
4652         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4653         (MAX_LEADING_BYTE_PRIVATE): New macro.
4654         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4655         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4656
4657 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4658
4659         * mule-charset.c (Fmake_charset): Allocate final-byte based
4660         charset-id for 94-set, 96-set and 94x94-set.
4661
4662 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4663
4664         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4665         ambiguous `else'.
4666         (Fmake_charset): Likewise.
4667         (complex_vars_of_mule_charset): Modify the font registry of
4668         `ucs-bmp' not to match `Ethiopic-Unicode'.
4669
4670 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4671
4672         * mule-charset.c (complex_vars_of_mule_charset): Add font
4673         registory of `ucs-bmp'.
4674
4675 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4676
4677         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4678         coded-charsets in `default-coded-charset-priority-list' when
4679         breaking up a character.
4680
4681         * mule-charset.c (Vcharset_latin_viscii): New variable.
4682         (Qlatin_viscii): New variable.
4683         (make_charset): Don't use `decoding_table'.
4684         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4685         byte_offset.
4686         (Fset_charset_mapping_table): New implementation.
4687         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4688         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4689         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4690         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4691         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4692         charset `latin_viscii'.
4693
4694         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4695         (CHARSET_TYPE_94X94): Change to 1 from 2.
4696         (CHARSET_TYPE_96): Change to 2 from 1.
4697         (CHARSET_TYPE_128): New macro.
4698         (CHARSET_TYPE_128X128): Change to 5 from 4.
4699         (CHARSET_TYPE_256): New macro.
4700         (CHARSET_TYPE_256X256): Change to 7 from 5.
4701         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4702
4703 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4704
4705         * text-coding.c (char_encode_shift_jis): Refer
4706         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4707         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4708
4709         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4710         (char_byte_table_equal): New function in UTF-2000.
4711         (char_byte_table_hash): New function in UTF-2000.
4712         (char_byte_table_description): New constant in UTF-2000.
4713         (char_byte_table): New type in UTF-2000.
4714         (make_char_byte_table): New function in UTF-2000.
4715         (copy_char_byte_table): New function in UTF-2000.
4716         (make_char_code_table): New macro in UTF-2000.
4717         (get_char_code_table): New function in UTF-2000.
4718         (put_char_code_table): New function in UTF-2000.
4719         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4720         (charset_description): Add setting in UTF-2000.
4721         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4722         `CHARSET_TO_BYTE1_TABLE(cs)'.
4723         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4724         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4725         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4726         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4727         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4728         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4729         `CHARSET_TO_BYTE2_TABLE(cs)'.
4730
4731         * char-ucs.h (char_byte_table): New type.
4732         (XCHAR_BYTE_TABLE): New macro.
4733         (XSETCHAR_BYTE_TABLE): New macro.
4734         (CHAR_BYTE_TABLE_P): New macro.
4735         (GC_CHAR_BYTE_TABLE_P): New macro.
4736         (struct Lisp_Char_Byte_Table): New structure.
4737         (get_char_code_table): New interface.
4738         (Emchar_to_byte_table): Deleted.
4739         (get_byte_from_character_table): Deleted.
4740         (struct Lisp_Charset): Add `encoding_table'; delete
4741         `to_byte1_table' and `to_byte2_table'.
4742         (CHARSET_ENCODING_TABLE): New macro.
4743         (CHARSET_TO_BYTE1_TABLE): Deleted.
4744         (CHARSET_TO_BYTE2_TABLE): Deleted.
4745         (XCHARSET_ENCODING_TABLE): New macro.
4746         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4747         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4748
4749 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4750
4751         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4752         `vietnamese-viscii-*'.
4753
4754 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4755
4756         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4757         (Qvietnamese_viscii_upper): New variable.
4758         (Fdefine_charset_alias): New function.
4759         (syms_of_mule_charset): Add new function `define-charset-alias'.
4760         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4761         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4762         `latin-viscii-*'.
4763
4764 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4765
4766         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4767         (MAX_CHAR_OBS_94x94): New macro.
4768         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4769         for 94x94 sets.
4770
4771         * mule-charset.c (put_byte_from_character_table): Change unit size
4772         from 128 to 256.
4773         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4774         not defined.
4775         (Fmake_reverse_direction_charset): Modify dummy argument of
4776         `make_charset' for non-UTF-2000 environment.
4777
4778 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4779
4780         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4781
4782         * mule-charset.c (destroy_byte_from_character_table): New macro.
4783         (latin_jisx0201_to_ucs): Deleted.
4784         (latin_iso8859_2_to_ucs): Deleted.
4785         (latin_iso8859_3_to_ucs): Deleted.
4786         (latin_iso8859_4_to_ucs): Deleted.
4787         (latin_iso8859_9_to_ucs): Deleted.
4788         (latin_viscii_lower_to_ucs): Deleted.
4789         (latin_viscii_upper_to_ucs): Deleted.
4790         (mark_charset): Mark `cs->decoding_table'.
4791         (Fcharset_mapping_table): Fix DOC-string.
4792         (Fset_charset_mapping_table): New function.
4793         (syms_of_mule_charset): Add nwe function
4794         `set-charset-mapping-table'.
4795         (complex_vars_of_mule_charset): Don't setup and use
4796         `latin_*_to_ucs'.
4797
4798 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4799
4800         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4801         charset.
4802
4803 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4804
4805         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4806         (Vcharset_katakana_jisx0208): New variable.
4807         (Qhiragana_jisx0208): New variable.
4808         (Qkatakana_jisx0208): New variable.
4809         (make_charset): Add new argument `byte_offset'.
4810         (charset_get_byte1): Modify for new coded-charset definition; use
4811         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4812         `XCHARSET_BYTE_OFFSET'.
4813         (Fmake_charset): Modify for `make_charset'.
4814         (Fmake_reverse_direction_charset): Likewise.
4815         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4816         `katakana-jisx0208'.
4817         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4818         `.'  in font registry of charset `katakana-jisx0201',
4819         `latin-jisx0201', `vietnamese-viscii-lower' and
4820         `vietnamese-viscii-upper'; modify DOC-string of charset
4821         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4822         registry of charset `japanese-jisx0208' not to use font for JIS
4823         X0208:1990; add new charset `hiragana-jisx0208' and
4824         `katakana-jisx0208'.
4825
4826         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4827         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4828         (struct Lisp_Charset): Add `byte_offset'.
4829         (CHARSET_BYTE_OFFSET): New macro.
4830         (XCHARSET_UCS_MIN): New macro.
4831         (XCHARSET_UCS_MAX): New macro.
4832         (XCHARSET_CODE_OFFSET): New macro.
4833         (XCHARSET_BYTE_OFFSET): New macro.
4834         (MIN_CHAR_HIRAGANA): New macro.
4835         (MAX_CHAR_HIRAGANA): New macro.
4836         (MIN_CHAR_KATAKANA): New macro.
4837         (MAX_CHAR_KATAKANA): New macro.
4838         (MAKE_CHAR): Modify for new coded-charset definition; use
4839         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4840         `XCHARSET_BYTE_OFFSET'.
4841
4842 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4843
4844         * mule-charset.c (CHAR96): Deleted.
4845         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4846         <Lisp_Object>.
4847         (latin_iso8859_2_to_ucs): Likewise.
4848         (latin_iso8859_3_to_ucs): Likewise.
4849         (latin_iso8859_4_to_ucs): Likewise.
4850         (latin_iso8859_9_to_ucs): Likewise.
4851         (latin_viscii_lower_to_ucs): Likewise.
4852         (latin_viscii_upper_to_ucs): Likewise.
4853         (latin_tcvn5712_to_ucs): Commented out.
4854         (make_charset): Change type of argument `decoding_table' from
4855         <Emchar*> to <Lisp_Object> [vector of characters].
4856         (Fmake_charset): Modify for `make_charset'.
4857         (Fmake_reverse_direction_charset): Likewise.
4858         (Fcharset_mapping_table): New function in UTF-2000.
4859         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4860         UTF-2000.
4861         (complex_vars_of_mule_charset): Modify for type change of
4862         `*_to_ucs'; modify for `make_charset'.
4863
4864         * char-ucs.h (struct Lisp_Charset): Change type of
4865         `decoding_table' from <Emchar*> to <Lisp_Object>.
4866         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4867
4868 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4869
4870         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4871         error with non-UTF-2000-Mule.
4872
4873 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4874
4875         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4876         in lisp again].
4877         (Vcharset_chinese_cns11643_4): Likewise.
4878         (Vcharset_chinese_cns11643_5): Likewise.
4879         (Vcharset_chinese_cns11643_6): Likewise.
4880         (Vcharset_chinese_cns11643_7): Likewise.
4881         (Qchinese_cns11643_3): Likewise.
4882         (Qchinese_cns11643_4): Likewise.
4883         (Qchinese_cns11643_5): Likewise.
4884         (Qchinese_cns11643_6): Likewise.
4885         (Qchinese_cns11643_7): Likewise.
4886         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4887         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4888         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4889         (complex_vars_of_mule_charset): Likewise.
4890
4891 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4892
4893         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4894         96-set.
4895         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4896         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4897
4898 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4899
4900         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4901         0xFF60.
4902         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4903         (breakup_char_1): Likewise.
4904
4905         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4906         one of them includes the specified character.
4907
4908 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4909
4910         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4911
4912 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4913
4914         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4915
4916 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4917
4918         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4919         definition for non-UTF-2000 Mule.
4920         (latin_iso8859_3_to_ucs): Likewise.
4921         (latin_iso8859_4_to_ucs): Likewise.
4922         (latin_iso8859_9_to_ucs): Likewise.
4923         (latin_jisx0201_to_ucs): Likewise.
4924         (MIN_CHAR_THAI): Likewise.
4925         (MAX_CHAR_THAI): Likewise.
4926         (MIN_CHAR_GREEK): Likewise.
4927         (MAX_CHAR_GREEK): Likewise.
4928         (MIN_CHAR_HEBREW): Likewise.
4929         (MAX_CHAR_HEBREW): Likewise.
4930         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4931         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4932         (MIN_CHAR_CYRILLIC): Likewise.
4933         (MAX_CHAR_CYRILLIC): Likewise.
4934
4935 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4936
4937         * char-ucs.h (breakup_char_1): Use
4938         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4939         thai-tis620 and katakana-jisx0201 area.
4940
4941 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4942
4943         * char-ucs.h (breakup_char_1): Use
4944         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4945         area.
4946
4947         * text-coding.c (reset_encoding_stream): Fixed.
4948         (char_encode_ucs4): Delete `& 255'.
4949
4950         * char-ucs.h (breakup_char_1): Use
4951         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4952
4953 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4954
4955         * file-coding.c (Fmake_coding_system): Don't set up
4956         `codesys->fixed.size'.
4957         (encode_coding_no_conversion): Don't refer
4958         `str->codesys->fixed.size'.
4959
4960 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4961
4962         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4963         (latin_a_char_to_byte1): Deleted.
4964         (latin_a_char_to_byte2): Deleted.
4965
4966 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4967
4968         * mule-charset.c (make_charset): Add new argument `ucs_min',
4969         `ucs_max' and `code_offset'.
4970         (charset_get_byte1): New implementation [delete specific charset
4971         depended implementations].
4972         (Fmake_charset): Modify for `make_charset'.
4973         (Fmake_reverse_direction_charset): Likewise.
4974         (complex_vars_of_mule_charset): Likewise.
4975
4976         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4977         `code_offset'.
4978         (CHARSET_UCS_MIN): New macro.
4979         (CHARSET_UCS_MAX): New macro.
4980         (CHARSET_CODE_OFFSET): New macro.
4981         (MAKE_CHAR): Delete charset depended definitions [except
4982         katakana-jisx0201].
4983
4984 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4985
4986         * char-ucs.h (breakup_char_1): Use
4987         `Vdefault_coded_charset_priority_list' for C0-Controls,
4988         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4989
4990 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4991
4992         * char-ucs.h (charset_get_byte1): New function.
4993         (XCHARSET_GET_BYTE1): Deleted.
4994         (charset_get_byte2): New function.
4995         (XCHARSET_GET_BYTE2): Deleted.
4996         (Vdefault_coded_charset_priority_list): New external variable.
4997         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4998         `Vdefault_preferred_coded_charset_list'.
4999
5000         * mule-charset.c (charset_get_byte1): New function.
5001         (charset_get_byte2): New function.
5002         (Vdefault_coded_charset_priority_list): New variable.
5003         (vars_of_mule_charset): Add new variable
5004         `default-coded-charset-priority-list'.
5005
5006 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5007
5008         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5009         (XCHARSET_GET_BYTE2): New inline function.
5010         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5011         `XCHARSET_GET_BYTE2'.
5012
5013 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5014
5015         * mule-charset.c (make_charset): Initialize
5016         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5017         NULL if table is not defined.
5018
5019 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5020
5021         * text-coding.c (char_encode_shift_jis): Use
5022         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5023         `ucs_to_latin_jisx0201'.
5024
5025         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5026         (ucs_to_latin_iso8859_2): Deleted.
5027         (ucs_to_latin_iso8859_3): Deleted.
5028         (ucs_to_latin_iso8859_4): Deleted.
5029         (ucs_to_latin_iso8859_9): Deleted.
5030         (ucs_to_latin_viscii_lower): Deleted.
5031         (ucs_to_latin_viscii_upper): Deleted.
5032         (ucs_to_latin_tcvn5712): Deleted.
5033         (make_charset): Add new argument `decoding_table'; set up
5034         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5035         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5036         `decoding_table' is defined in UTF-2000.
5037         (Fmake_charset): Modify for `make_charset'.
5038         (Fmake_reverse_direction_charset): Likewise.
5039         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5040         and `GENERATE_96_SET'.
5041
5042         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5043         (ucs_to_latin_jisx0201): Deleted.
5044         (latin_iso8859_2_to_ucs): Deleted.
5045         (ucs_to_latin_iso8859_2): Deleted.
5046         (latin_iso8859_3_to_ucs): Deleted.
5047         (ucs_to_latin_iso8859_3): Deleted.
5048         (latin_iso8859_4_to_ucs): Deleted.
5049         (ucs_to_latin_iso8859_4): Deleted.
5050         (latin_iso8859_9_to_ucs): Deleted.
5051         (ucs_to_latin_iso8859_9): Deleted.
5052         (latin_viscii_lower_to_ucs): Deleted.
5053         (ucs_to_latin_viscii_lower): Deleted.
5054         (latin_viscii_upper_to_ucs): Deleted.
5055         (ucs_to_latin_viscii_upper): Deleted.
5056         (struct Lisp_Charset): Renamed `encoding_table' to
5057         `to_byte1_table'; add `to_byte2_table'.
5058         (CHARSET_DECODING_TABLE): New macro.
5059         (CHARSET_TO_BYTE1_TABLE): New macro.
5060         (CHARSET_TO_BYTE2_TABLE): New macro.
5061         (XCHARSET_DECODING_TABLE): New macro.
5062         (XCHARSET_TO_BYTE1_TABLE): New macro.
5063         (XCHARSET_TO_BYTE2_TABLE): New macro.
5064         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5065         tables.
5066         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5067         don't use `ucs_to_*' tables.
5068
5069 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5070
5071         * text-coding.c (Fmake_coding_system): Don't set up
5072         `codesys->fixed.size'.
5073         (encode_coding_no_conversion): Use `if' instead of `switch'.
5074
5075         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5076
5077 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5078
5079         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5080         (Fmake_charset): Modify for `make_charset'.
5081         (Fmake_reverse_direction_charset): Likewise.
5082         (complex_vars_of_mule_charset): Likewise.
5083
5084 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5085
5086         * text-coding.c (char_encode_shift_jis): Use table
5087         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5088
5089 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5090
5091         * text-coding.c (text_encode_generic): Use `if' instead of
5092         `switch'.
5093         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5094         decode JIS-Latin.
5095
5096 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * text-coding.c (encode_coding_sjis): Deleted.
5099         (char_encode_shift_jis): New function.
5100         (char_finish_shift_jis): New function.
5101         (reset_encoding_stream): Set up `encode_char' and `finish' for
5102         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5103         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5104         (char_encode_utf8): Treat `eol_type'.
5105
5106 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5107
5108         * file-coding.c (decode_coding_iso2022): Use
5109         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5110
5111 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5112
5113         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5114         to 0.7 (Hirano).
5115
5116 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5117
5118         * char-lb.h (CHAR_COLUMNS): New macro.
5119
5120 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5121
5122         * text-coding.c (char_encode_ucs4): New function.
5123         (char_finish_ucs4): New function.
5124         (encode_coding_ucs4): Deleted.
5125         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5126         (text_encode_generic): Delete local variable `charset' and `half'.
5127         (ucs_to_mule_table): Deleted.
5128         (mule_to_ucs_table): Deleted.
5129         (Fset_ucs_char): Deleted.
5130         (ucs_to_char): Deleted.
5131         (Fucs_char): Deleted.
5132         (Fset_char_ucs): Deleted.
5133         (Fchar_ucs): Deleted.
5134         (decode_ucs4): Deleted.
5135         (mule_char_to_ucs4): Deleted.
5136         (encode_ucs4): Deleted.
5137         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5138         (decode_coding_utf8): Likewise.
5139         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5140         (char_encode_iso2022): Fixed.
5141         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5142         `Fset_char_ucs' and `Fchar_ucs'.
5143         (complex_vars_of_file_coding): Don't initialize
5144         `ucs_to_mule_table'.
5145
5146         * objects-tty.c (tty_initialize_font_instance): Don't use
5147         `XCHARSET_COLUMNS'.
5148
5149         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5150         UTF-2000.
5151
5152         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5153         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5154
5155         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5156         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5157         (emchar_string_displayed_columns): Likewise.
5158
5159         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5160         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5161         (string_column_at_point): Likewise.
5162         (Fmove_to_column): Likewise.
5163
5164         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5165         `encoding_table' and `decoding_table'.
5166         (CHARSET_REP_BYTES): Deleted.
5167         (XCHARSET_REP_BYTES): Deleted.
5168         (XCHARSET_COLUMNS): Deleted.
5169         (CHAR_COLUMNS): New macro.
5170         (lookup_composite_char): Deleted unconditionally.
5171         (composite_char_string): Likewise.
5172
5173 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5174
5175         * char-ucs.h (Emchar_to_byte_table): New type.
5176         (get_byte_from_character_table): New function interface.
5177         (Vcharset_latin_jisx0201): New variable.
5178         (latin_jisx0201_to_ucs): New variable.
5179         (ucs_to_latin_jisx0201): New variable.
5180         (Vcharset_latin_iso8859_2): New variable.
5181         (latin_iso8859_2_to_ucs): New variable.
5182         (ucs_to_latin_iso8859_2): New variable.
5183         (Vcharset_latin_iso8859_3): New variable.
5184         (latin_iso8859_3_to_ucs): New variable.
5185         (ucs_to_latin_iso8859_3): New variable.
5186         (Vcharset_latin_iso8859_4): New variable.
5187         (latin_iso8859_4_to_ucs): New variable.
5188         (ucs_to_latin_iso8859_4): New variable.
5189         (Vcharset_latin_iso8859_9): New variable.
5190         (latin_iso8859_9_to_ucs): New variable.
5191         (ucs_to_latin_iso8859_9): New variable.
5192         (Vcharset_latin_viscii_lower): New variable.
5193         (latin_viscii_lower_to_ucs): New variable.
5194         (ucs_to_latin_viscii_lower): New variable.
5195         (Vcharset_latin_viscii_upper): New variable.
5196         (latin_viscii_upper_to_ucs): New variable.
5197         (ucs_to_latin_viscii_upper): New variable.
5198         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5199         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5200         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5201         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5202         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5203         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5204         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5205         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5206         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5207         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5208
5209         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5210         (Vcharset_latin_viscii_upper): New variable.
5211         (make_byte_from_character_table): New function.
5212         (put_byte_from_character_table): New function.
5213         (get_byte_from_character_table): New function.
5214         (CHAR96): New macro.
5215         (ucs_to_latin_jisx0201): New variable.
5216         (latin_jisx0201_to_ucs): New variable.
5217         (ucs_to_latin_iso8859_2): New variable.
5218         (latin_iso8859_2_to_ucs): New variable.
5219         (ucs_to_latin_iso8859_3): New variable.
5220         (latin_iso8859_3_to_ucs): New variable.
5221         (ucs_to_latin_iso8859_4): New variable.
5222         (latin_iso8859_4_to_ucs): New variable.
5223         (ucs_to_latin_iso8859_9): New variable.
5224         (latin_iso8859_9_to_ucs): New variable.
5225         (ucs_to_latin_viscii_lower): New variable.
5226         (latin_viscii_lower_to_ucs): New variable.
5227         (ucs_to_latin_viscii_upper): New variable.
5228         (latin_viscii_upper_to_ucs): New variable.
5229         (ucs_to_latin_tcvn5712): New variable.
5230         (latin_tcvn5712_to_ucs): New variable.
5231         (Qlatin_viscii_lower): New variable.
5232         (Qlatin_viscii_upper): New variable.
5233         (syms_of_mule_charset): Set up new symbol
5234         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5235         (complex_vars_of_mule_charset): Set up new charset
5236         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5237         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5238         `ucs_to_<CHARSET>' tables.
5239
5240 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5241
5242         * text-coding.c: New file.
5243
5244 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5245
5246         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5247
5248         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5249         (MAKE_CHAR): Modify for `ucs-bmp'.
5250         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5251         non-MULE characters of BMP.
5252
5253 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5254
5255         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5256         to 0.6.
5257
5258 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5259
5260         * lstream.h:
5261         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5262         - Include character.h for `CHAR_ASCII_P'.
5263
5264         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5265
5266         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5267         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5268
5269         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5270         (BYTE_C0_P): Likewise.
5271         (BYTE_C1_P): Likewise.
5272         (Lstream_get_emchar_1): Likewise.
5273         (Lstream_fput_emchar): Likewise.
5274         (Lstream_funget_emchar): Likewise.
5275         (copy_internal_to_external): Likewise.
5276         (copy_external_to_internal): Likewise.
5277
5278         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5279         (BYTE_C0_P): Likewise.
5280         (BYTE_C1_P): Likewise.
5281         (Lstream_get_emchar_1): Likewise.
5282         (Lstream_fput_emchar): Likewise.
5283         (Lstream_funget_emchar): Likewise.
5284         (copy_internal_to_external): Likewise.
5285         (copy_external_to_internal): Likewise.
5286
5287         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5288         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5289
5290         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5291         (BYTE_ASCII_P): Moved to mb-1byte.h.
5292
5293 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5294
5295         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5296
5297         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5298         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5299         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5300         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5301         (VALIDATE_CHARPTR_FORWARD): Likewise.
5302         (simple_charptr_emchar): Moved to mb-multibyte.h.
5303         (simple_set_charptr_emchar): Likewise.
5304         (simple_charptr_copy_char): Likewise.
5305         (non_ascii_charptr_emchar): Likewise.
5306         (non_ascii_set_charptr_emchar): Likewise.
5307         (non_ascii_charptr_copy_char): Likewise.
5308         (charptr_emchar): Moved to mb-*byte.h.
5309         (set_charptr_emchar): Likewise.
5310         (charptr_copy_char): Likewise.
5311
5312         * mb-1byte.h, mb-multibyte.h: New files.
5313
5314 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5315
5316         * mb-utf-8.h (MULTIBYTE): New macro.
5317         (MAX_EMCHAR_LEN): Moved from buffer.h.
5318         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5319
5320         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5321
5322         * mb-lb.h, multibyte.h: New files.
5323
5324         * char-1byte.h (Charset_ID): Moved from buffer.h.
5325         (MIN_LEADING_BYTE): Likewise.
5326         (LEADING_BYTE_ASCII): Likewise.
5327         (NUM_LEADING_BYTES): Likewise.
5328         (CHARSETP): Likewise.
5329         (CHARSET_BY_LEADING_BYTE): Likewise.
5330         (XCHARSET_LEADING_BYTE): Likewise.
5331         (XCHARSET_GRAPHIC): Likewise.
5332         (XCHARSET_COLUMNS): Likewise.
5333         (XCHARSET_DIMENSION): Likewise.
5334         (CHAR_CHARSET): Likewise.
5335         (CHAR_LEADING_BYTE): Likewise.
5336         (BREAKUP_CHAR): Likewise.
5337         (Vcharset_ascii): Likewise.
5338
5339         * buffer.h: Include multibyte.h unconditionally.
5340         (VALID_CHARPTR_P): Moved to multibyte.h.
5341         (ASSERT_VALID_CHARPTR): Likewise.
5342         (REAL_INC_CHARPTR): Likewise.
5343         (REAL_INC_CHARBYTIND): Likewise.
5344         (REAL_DEC_CHARPTR): Likewise.
5345         (INC_CHARPTR): Likewise.
5346         (INC_CHARBYTIND): Likewise.
5347         (DEC_CHARPTR): Likewise.
5348         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5349         (VALIDATE_CHARPTR_FORWARD): Likewise.
5350         (charptr_n_addr): Likewise.
5351         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5352         (simple_charptr_emchar): Moved to multibyte.h.
5353         (simple_set_charptr_emchar): Likewise.
5354         (simple_charptr_copy_char): Likewise.
5355         (non_ascii_charptr_emchar): Likewise.
5356         (non_ascii_set_charptr_emchar): Likewise.
5357         (non_ascii_charptr_copy_char): Likewise.
5358         (charptr_emchar): Likewise.
5359         (set_charptr_emchar): Likewise.
5360         (charptr_copy_char): Likewise.
5361         (charptr_emchar_n): Likewise.
5362         (Charset_ID): Moved to char-1byte.h.
5363         (Vcharset_ascii): Likewise.
5364         (CHAR_CHARSET): Likewise.
5365         (CHAR_LEADING_BYTE): Likewise.
5366         (LEADING_BYTE_ASCII): Likewise.
5367         (NUM_LEADING_BYTES): Likewise.
5368         (MIN_LEADING_BYTE): Likewise.
5369         (CHARSETP): Likewise.
5370         (CHARSET_BY_LEADING_BYTE): Likewise.
5371         (XCHARSET_LEADING_BYTE): Likewise.
5372         (XCHARSET_GRAPHIC): Likewise.
5373         (XCHARSET_COLUMNS): Likewise.
5374         (XCHARSET_DIMENSION): Likewise.
5375         (BREAKUP_CHAR): Likewise.
5376
5377 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5378
5379         * character.h: Add document about interface for characters.
5380
5381         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5382         (MAKE_CHAR): Delete comment about
5383         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5384         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5385         (BREAKUP_CHAR): Modify name of arguments.
5386         (CHAR_CHARSET): Modify name of argument.
5387
5388         * buffer.h: Delete document about Emchar accessors.
5389
5390 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5391
5392         * character.h (CHAR_INTP): Moved from buffer.h
5393         (CHAR_OR_CHAR_INTP): Likewise.
5394         (XCHAR_OR_CHAR_INT): Likewise.
5395         (CHECK_CHAR_COERCE_INT): Likewise.
5396
5397         * buffer.h (CHAR_INTP): Moved to character.h
5398         (CHAR_OR_CHAR_INTP): Likewise.
5399         (XCHAR_OR_CHAR_INT): Likewise.
5400         (CHECK_CHAR_COERCE_INT): Likewise.
5401
5402 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5403
5404         * character.h:
5405         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5406         - Include char-1byte.h, char-lb.h or char-ucs.h.
5407
5408         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5409
5410         * buffer.h: Include character unconditionally.
5411         (valid_char_p): Moved to char-*.h.
5412         (non_ascii_valid_char_p): Moved to char-lb.h.
5413
5414         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5415
5416 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5417
5418         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5419         in UTF-2000 because it is not ported yet and not to use
5420         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5421         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5422         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5423
5424         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5425         (CHAR_ASCII_P): Moved from character.h.
5426
5427         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5428         (CHAR_ASCII_P): Likewise.
5429         (CHAR_FIELD1_MASK): Deleted.
5430         (CHAR_FIELD2_MASK): Deleted.
5431         (CHAR_FIELD3_MASK): Deleted.
5432         (MAX_CHAR_BASIC_LATIN): New macro.
5433         (CHAR_FIELD1): Deleted.
5434         (CHAR_FIELD2_INTERNAL): Deleted.
5435         (CHAR_FIELD3_INTERNAL): Deleted.
5436         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5437         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5438         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5439         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5440         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5441         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5442         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5443         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5444         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5445         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5446         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5447         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5448         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5449         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5450         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5451         (MIN_CHAR_COMPOSITION): Deleted.
5452         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5453         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5454
5455 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5456
5457         * buffer.h: Include mb-utf-8.h in UTF-2000.
5458
5459         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5460
5461         * mb-utf-8.h: New file.
5462
5463 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5464
5465         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5466         instead of `int'.
5467
5468         * mule-charset.h, buffer.h (Charset_ID): New type.
5469
5470 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5471
5472         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5473         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5474         instead of `MULE_CHAR_PRIVATE_OFFSET',
5475         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5476         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5477         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5478
5479         * character.h (Vcharset_japanese_jisx0212): New variable
5480         definition.
5481
5482 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5483
5484         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5485         (charset_by_attributes): Delete array about direction.
5486         (latin_a_char_to_charset): New variable in UTF-2000.
5487         (latin_a_char_to_byte1): New variable in UTF-2000.
5488         (latin_a_char_to_byte2): New variable in UTF-2000.
5489         (Qucs_bmp): New variable.
5490         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5491         `Bufbyte'.
5492         (next_allocated_2_byte_leading_byte): Likewise.
5493         (non_ascii_set_charptr_emchar): Likewise.
5494         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5495         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5496         `charset_by_attributes'.
5497         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5498         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5499         and `CHARSET_BY_LEADING_BYTE'.
5500         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5501         `utf-2000-version' to `vars_of_mule_charset'.
5502         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5503         define `leading-code-private-11' in UTF-2000; move setting of
5504         `utf-2000-version' from `syms_of_mule_charset'.
5505         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5506         UTF-2000.
5507
5508         * character.h (Charset_ID): New type.
5509         (LEADING_BYTE_UCS_BMP): New macro.
5510         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5511         (CHARSET_ID_OFFSET_94): New macro.
5512         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5513         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5514         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5515         final-byte.
5516         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5517         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5518         (CHARSET_ID_OFFSET_96): New macro.
5519         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5520         CHARSET_ID_OFFSET_96 and final-byte.
5521         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5522         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5523         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5524         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5525         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5526         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5527         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5528         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5529         (LEADING_BYTE_THAI_TIS620): Likewise.
5530         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5531         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5532         (CHARSET_ID_OFFSET_94x94): New macro.
5533         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5534         CHARSET_ID_OFFSET_94x94 and final-byte.
5535         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5536         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5537         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5538         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5539         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5540         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5541         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5542         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5543         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5544         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5545         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5546         (CHARSET_TYPE_128X128): New macro.
5547         (CHARSET_TYPE_256X256): New macro.
5548         (XCHARSET_PRIVATE_P): Delete unconditionally.
5549         (charset_by_attributes): Delete array about direction.
5550         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5551         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5552         (MIN_CHAR_94): New macro.
5553         (MAX_CHAR_94): New macro.
5554         (MIN_CHAR_96): New macro.
5555         (MAX_CHAR_96): New macro.
5556         (MIN_CHAR_94x94): New macro.
5557         (MAX_CHAR_94x94): New macro.
5558         (MIN_CHAR_96x96): New macro.
5559         (MAX_CHAR_96x96): New macro.
5560         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5561         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5562         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5563         - 32)'.
5564         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5565         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5566         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5567         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5568         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5569         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5570         `XCHARSET_LEADING_BYTE' to make code-point.
5571         (latin_a_char_to_charset): New variable.
5572         (latin_a_char_to_byte1): New variable.
5573         (latin_a_char_to_byte2): New variable.
5574         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5575         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5576         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5577
5578         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5579         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5580         (find_charsets_in_emchar_string): Likewise.
5581         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5582
5583         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5584         `int'.
5585         (decode_coding_iso2022): Likewise.
5586
5587         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5588         of `unsigned char'.
5589
5590         * redisplay.c (redisplay_text_width_emchar_string): Use
5591         `Charset_ID' instead of `unsigned char'.
5592         (redisplay_frame_text_width_string): Likewise.
5593
5594         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5595         `unsigned char'.
5596
5597         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5598         instead of `unsigned char'.
5599         (face_cachel_charset_font_metric_info): Likewise.
5600
5601         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5602         (get_non_ascii_char_table_value): Likewise.
5603         (get_char_table): Likewise.
5604         (put_char_table): Likewise.
5605         (map_over_other_charset): Likewise.
5606         (map_char_table): Likewise.
5607
5608         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5609         instead of `unsigned char'.
5610
5611 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5612
5613         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5614         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5615
5616         * mule-charset.c (leading_code_private_11): Don't define in
5617         UTF-2000.
5618
5619         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5620         in UTF-2000 because it is not ported yet and not to use
5621         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5622
5623 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5624
5625         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5626
5627 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5628
5629         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5630         in UTF-2000.
5631
5632         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5633         of unsigned char to store leading-byte.
5634
5635         * chartab.c (get_non_ascii_char_table_value): Don't use
5636         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5637
5638         * file-coding.c (encode_coding_big5): Delete bogus implementation
5639         in UTF2000.
5640
5641         * character.h (LEADING_BYTE_*): Delete definition for
5642         non-UTF-2000.
5643         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5644         (LEADING_BYTE_PREFIX_P): Deleted.
5645         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5646         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5647         (BUFBYTE_LEADING_BYTE_P): Deleted.
5648         (CHARSET_PRIVATE_P): Deleted unconditionally.
5649         (rep_bytes_by_first_byte): Deleted unconditionally.
5650         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5651         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5652         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5653         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5654         (CHAR_FIELD2): Deleted.
5655         (CHAR_FIELD3): Deleted.
5656         (MAKE_CHAR): Delete definition for non-UTF-2000.
5657         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5658         (breakup_char_1): New implementation.
5659         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5660         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5661
5662 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5663
5664         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5665         condition.
5666
5667 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5668
5669         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5670         (CHARSET_PRIVATE_P): Likewise.
5671         (XCHARSET_PRIVATE_P): Likewise.
5672         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5673
5674         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5675         UTF2000.
5676         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5677
5678 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5679
5680         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5681         (NUM_LEADING_BYTES): Changed from 128 to 256.
5682         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5683         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5684         UTF2000.
5685         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5686
5687         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5688         UTF2000.
5689         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5690         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5691         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5692         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5693         (Qchinese_cns11643_3): New variable in UTF2000.
5694         (Qchinese_cns11643_4): New variable in UTF2000.
5695         (Qchinese_cns11643_5): New variable in UTF2000.
5696         (Qchinese_cns11643_6): New variable in UTF2000.
5697         (Qchinese_cns11643_7): New variable in UTF2000.
5698         (syms_of_mule_charset): Define `chinese-cns11643-3',
5699         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5700         and `chinese-cns11643-7' in UTF2000.
5701         (vars_of_mule_charset): Initialize
5702         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5703         + 1 in UTF2000.
5704         (complex_vars_of_mule_charset): Setup charset
5705         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5706         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5707
5708 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5709
5710         * mule-charset.c: Move setting for `leading-code-private-11' from
5711         `syms_of_mule_charset' to `vars_of_mule_charset'.
5712
5713 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5714
5715         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5716         and `NUM_LEADING_BYTES' in assert.
5717
5718 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5719
5720         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5721         instead of 128.
5722         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5723         `NUM_LEADING_BYTES' instead of 128.
5724
5725 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5726
5727         * mule-charset.h (charset_by_leading_byte): Use
5728         `NUM_LEADING_BYTES' instead of 128.
5729         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5730
5731         * mule-charset.c (charset_by_leading_byte): Use
5732         `NUM_LEADING_BYTES' instead of 128.
5733         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5734
5735         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5736         128.
5737
5738 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5739
5740         * mule-charset.c (syms_of_mule_charset): Update to
5741         0.4 (Shin-Imamiya).
5742
5743 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5744
5745         * file-coding.c (encode_coding_sjis): New implementation for
5746         UTF2000.  (decode_coding_sjis): Ditto.
5747
5748 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5749
5750         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5751         Don't define in UTF2000.
5752
5753         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5754         defined.
5755
5756         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5757         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5758         MULE.
5759
5760 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5761
5762         * config.h.in (CHAR_IS_UCS4): New macro.
5763
5764         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5765         conventional MULE representation.
5766         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5767
5768         * mule-charset.h: Reverted to original.
5769
5770         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5771         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5772         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5773
5774         * character.h: New file.
5775
5776         * file-coding.c (Fmake_coding_system): Set 1 to
5777         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5778         defined.
5779         (encode_coding_no_conversion): New implementation for UTF2000.
5780
5781         * file-coding.h (struct Lisp_Coding_System): Add new member
5782         `fixed.size'.
5783
5784 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5785
5786         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5787         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5788         (encode_coding_iso2022): New implementation for UTF2000.
5789
5790 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5791
5792         * mule-canna.c (c2mu): New implementation for UTF2000.
5793         (m2c): Likewise.
5794
5795 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5796
5797         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5798
5799 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5800
5801         * file-coding.c (reset_encoding_stream): Set 0 to
5802         `str->iso2022.current_char_boundary' in UTF2000.
5803         (encode_utf8): Don't define in UTF2000.
5804         (encode_coding_utf8): New implementation for UTF-8 representation
5805         of UTF2000.
5806         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5807
5808 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5809
5810         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5811
5812         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5813         UTF2000.
5814         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5815
5816         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5817
5818         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5819         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5820         as UTF-8 in UTF2000.
5821         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5822         (non_ascii_valid_char_p): Don't define in UTF2000.
5823         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5824         (Lstream_get_emchar_1): Likewise.
5825         (utf-2000-version): New variable in UTF2000.
5826
5827         * lread.c (read_escape): Add new reader `u'.
5828
5829         * insdel.c (three_to_one_table): Don't define in UTF2000.
5830         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5831         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5832         UTF2000.
5833         (bytind_to_bufpos_func): Likewise.
5834         (buffer_mule_signal_inserted_region): Likewise.
5835         (vars_of_insdel): Don't initialize `three_to_one_table'.
5836         (init_buffer_text): Use `buf->text->mule_size' instead of
5837         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5838         UTF2000.
5839
5840         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5841         UTF-8 representation in UTF2000.
5842         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5843         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5844         (decode_coding_iso2022): Don't define local variable `lb' in
5845         UTF2000; don't use LEADING_BYTE in UTF2000; use
5846         `DECODE_ADD_UCS_CHAR' in UTF2000.
5847         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5848
5849         * config.h.in (UTF2000): New macro.
5850
5851         * buffer.h (struct buffer_text): Add new member `mule_size' and
5852         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5853         (valid_char_p): Return always 1 in UTF2000.
5854         (MAX_EMCHAR_LEN): 6 in UTF2000.
5855         (three_to_one_table): Don't define in UTF2000.
5856         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5857         UTF2000.
5858         (real_bytind_to_bufpos): Likewise.
5859
5860         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5861
5862 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5863
5864         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5865         representation change.
5866         (Vutf_2000_version): New variable.
5867         (leading_code_private_11): New variable.
5868         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5869         `leading-code-private-11'.
5870
5871         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5872         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5873         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5874         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5875         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5876         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5877         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5878         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5879         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5880         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5881         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5882         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5883         (MIN_CHAR_GREEK): New macro.
5884         (MAX_CHAR_GREEK): New macro.
5885         (MIN_CHAR_CYRILLIC): New macro.
5886         (MAX_CHAR_CYRILLIC): New macro.
5887         (MIN_CHAR_HEBREW): New macro.
5888         (MAX_CHAR_HEBREW): New macro.
5889         (MIN_CHAR_THAI): New macro.
5890         (MAX_CHAR_THAI): New macro.
5891         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5892         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5893         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5894         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5895         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5896         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5897         (CHAR_FIELD2): New inline function.
5898         (CHAR_FIELD3): New inline function.
5899         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5900         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5901         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5902         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5903         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5904         (MIN_CHAR_COMPOSITION): Likewise.
5905         (CHAR_LEADING_BYTE): Modified for character representation change.
5906         (MAKE_CHAR): Likewise.
5907
5908         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5909         (Vcharset_greek_iso8859_7): Likewise.
5910         (Vcharset_cyrillic_iso8859_5): Likewise.
5911         (Vcharset_hebrew_iso8859_8): Likewise.
5912         (Vcharset_thai_tis620): Likewise.
5913         (Vcharset_katakana_jisx0201): Likewise.
5914
5915 2007-10-07  Vin Shelton  <acs@xemacs.org>
5916
5917         * XEmacs 21.4.21 is released
5918
5919 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
5920
5921         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
5922
5923 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
5924
5925         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
5926         (png_instantiate): Initialize setjmp_buffer early, and avoid
5927         recursive entry to error handler.
5928
5929 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
5930
5931         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
5932         a typo fix.
5933
5934 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
5935
5936         * event-Xt.c (x_reset_modifier_mapping):
5937         * event-gtk.c (gtk_reset_modifier_mapping):
5938         Zero out the device's modifier map once we've freed it, to prevent
5939         a double free on a re-entrant call. 
5940
5941 2007-05-17  Vin Shelton  <acs@xemacs.org>
5942
5943         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
5944         64-bit linux.  Patch from Hans de Graaff.
5945
5946 2007-05-02  Vin Shelton  <acs@xemacs.org>
5947
5948         * dumper.c (pdump): Don't close pdump_fd (already closed by
5949         fclose() call.  Patch from Steve Higham.
5950         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
5951         already closed.  Patch inspired by Steve Higham.
5952
5953 2007-05-01  Vin Shelton  <acs@xemacs.org>
5954
5955         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
5956         (mswindows_fstat): Ditto.
5957         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
5958
5959 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
5960
5961         * postgresql.c: Update Steve Baur's email address by his request.
5962         * postgresql.h: Ditto.
5963
5964 2007-01-04  Vin Shelton  <acs@xemacs.org>
5965
5966         * fileio.c (check_writable): Check old-style readonly bit only for
5967         non-directories.
5968
5969 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
5970
5971         * src/fileio.c (check_writable): 
5972         Cope with the fact that the read-only attribute trumps Windows NTFS
5973         ACLS.
5974
5975
5976 2006-12-09  Vin Shelton  <acs@xemacs.org>
5977
5978         * XEmacs 21.4.20 is released
5979
5980 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
5981
5982         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
5983         relocated the definitions to be used sooner in file.
5984         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
5985         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
5986         overflow.
5987
5988 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
5989
5990         * sound.c (init_native_sound):
5991         Only X11 and GTK devices can possibly not be on the console of the
5992         associated machine. Fixes a crash when init_native_sound is called
5993         on a msprinter device. 
5994
5995 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
5996
5997         * buffer.c (buffer-file-name): Document invariant.
5998         (buffer-file-truename): Sync wording to buffer-file-name.
5999         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6000         and discussion.
6001
6002 2006-11-19  Benson Margulies  <benson@dchbk.us>
6003
6004         * fileio.c: Add code to use full Win32 API to check for write
6005         access.  Win32 has the general design policy that you aren't
6006         supposed to ask this question, since security checks change
6007         depending on asynchronous processes.  Nonetheless, there is a way,
6008         by acting as if we are a server doing interpretive access
6009         control.
6010
6011 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6012
6013         * bytecode.c: Use xnew_array instead of alloca.
6014
6015 2006-07-04  Vin Shelton  <acs@xemacs.org>
6016
6017         * redisplay-msw.c: Fix tiny, but crucial typo.
6018
6019 2006-06-22  Jerry James  <james@xemacs.org>
6020
6021         * EmacsShell-sub.c (ChangeManaged):
6022         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6023         NULL.
6024         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6025         checking if it is NULL.  Also fix a memory leak.
6026         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6027         dereference it, not the other way around.
6028         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6029         overflow check.
6030         * dumper.c (pdump_register_struct): Ditto.
6031         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6032         to (short) warnpath overflow warnpath.
6033         * extents.c (detach_all_extents): Call extent_list_delete_all with
6034         a non-NULL parameter only.
6035         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6036         NULL width and height.
6037         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6038         xic before checking if they are NULL.
6039         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6040         allocated array.
6041         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6042         * nas.c (Err): Fix a memory leak.
6043         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6044         Don't create the buffer if there is nothing to do.
6045         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6046         * redisplay-output.c (redisplay_output_layout): Ditto.
6047         * redisplay-tty.c (tty_output_display_block): Ditto.
6048         * redisplay-x.c (x_output_display_block): Ditto.
6049         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6050         dereference instance->scrollbar_data if it is NULL.
6051         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6052         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6053         for sb->scrollbar_data.
6054         * sound.c (init_native_sound): Avoid a buffer overflow by
6055         allocating a buffer with the appropriate size.
6056
6057 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6058
6059         * EmacsShell-sub.c (RootGeometryManager):
6060         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6061         Based on a suggestion by Francois L'Archeveque.
6062
6063 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6064
6065         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6066         current values found in GNU Emacs.
6067
6068 2006-03-17  Vin Shelton  <acs@xemacs.org>
6069
6070         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6071         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6072
6073         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6074         'hex_initialized' because it conflicts with 'initialized' in
6075         lisp.h.
6076
6077 2006-01-28  Vin Shelton  <acs@xemacs.org>
6078
6079         * XEmacs 21.4.19 is released
6080
6081 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6082
6083         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6084
6085 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6086
6087         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6088         5000 to INT_MAX.
6089
6090 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6091
6092         * database.c: Suppress compiler warning under Cygwin.
6093         * database.c: Removed __FreeBSD__ check, should be handled by
6094         HAVE_U_xxx_T defines.
6095
6096 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6097
6098         * console.c (stuff_buffered_input): Compile body only if
6099         HAVE_TTY.
6100
6101 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6102
6103         * callproc.c: #include sysdir.h, so that any appropriate Mule
6104         magic happens with the chdir() call when calling a subprocess. 
6105
6106 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6107
6108         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6109         * mule-ccl.c: Check that a character set exists before using it
6110         to create a character. 
6111
6112 2005-12-06  Vin Shelton  <acs@xemacs.org>
6113
6114         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6115         to INT_MAX.
6116
6117 2005-12-03  Vin Shelton <acs@xemacs.org>
6118
6119         * XEmacs 21.4.18 is released
6120
6121 2005-11-27  Kean Johnston <kean@armory.com>
6122
6123         * redisplay-tty.c (set_tty_modes):
6124         (reset_tty_modes): disable auto-margins if the terminal supports
6125         them.
6126         (init_tty_for_redisplay): fix cursor shape.
6127
6128 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6129
6130         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6131         for control-1 characters properly, both when reading multibyte
6132         characters and writing them. 
6133
6134 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6135
6136         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6137         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6138         were seeing with incremental selection transfer failing. 
6139
6140 2005-11-26  Vin Shelton  <acs@xemacs.org>
6141
6142         * callproc.c (Fold_call_process_internal): Create the buffer if it
6143         does not already exist.  The original patch came from Ben Wing in
6144         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6145
6146 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6147
6148         * callproc.c: Process-related docstring improvements spurred by
6149         Norbert Koch.
6150
6151 2005-11-25  Vin Shelton  <acs@xemacs.org>
6152
6153         * depend: Regenerated.
6154
6155 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6156
6157         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6158         says it clashes with a global with the same name.
6159
6160 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6161
6162         * sysdll.c (dll_open): Under MacOS X return NULL under the
6163         filename is NULL.  Fixes problems finding local symbols under 10.4
6164         (Tiger)
6165
6166 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6167         
6168         * config.h.in: New HAVE_U_INT*_T defines.
6169         
6170         * database.c: Only use u_int*_t typedefs if not already
6171         defined.
6172
6173 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6174
6175         * src/process-unix.c (unix_open_network_stream): moved
6176           'portbuf' buffer out of an inner block as it is used in the
6177           entire function. With gcc4, the stack may get corrupted
6178           after leaving this block. This patches adjusts the size of
6179           the used buffer also; static '128' bytes are far too much
6180           currently and might not suffice for future architectures
6181           (e.g. for 512 bit ones ;)). Instead of, use only the really
6182           required space (max octets * ln(256)/ln(10) chars + space
6183           for '\0' and the sign)
6184
6185 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6186
6187         * callproc.c: Include sysdir.h, so any necessary Mule processing
6188         is done on the current directory name before starting a new
6189         process.
6190
6191 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6192
6193         * chartab.c (Fchar_table_p):
6194         (Fget_range_char_table):
6195         (Fput_char_table):
6196         (Fmap_char_table):
6197         Describe range representation and fix typo.
6198
6199 2005-02-12  Vin Shelton  <acs@xemacs.org>
6200
6201         * emacs.c (shut_down_emacs): Advise users to send email to the
6202         xemacs-beta list instead of crashes@xemacs.org.
6203
6204 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6205
6206         * process-unix.c (unix_send_process): Flush the last chunk, even
6207         when the pipe is blocked.
6208
6209 2005-02-06  Vin Shelton <acs@xemacs.org>
6210
6211         * XEmacs 21.4.17 is released
6212
6213 2005-01-31  Ben Wing  <ben@xemacs.org>
6214
6215         * emacs.c:
6216         Define assert_failed() always.
6217         * lisp.h:
6218         Always define ABORT().
6219
6220 2005-01-25  Ben Wing  <ben@xemacs.org>
6221
6222         * Makefile.in.in:
6223         * Makefile.in.in (%.o):
6224         Don't compile executable as Windows (-mwindows) under Cygwin.
6225         Semi-recent changes to Cygwin's executable-startup handling make
6226         it impossible to access the TTY this way.
6227
6228         Don't use special linker file under Cygwin (cygwin.sc) except
6229         when non-PDUMP (even in this case it is highly questionable); you
6230         get errors like
6231
6232       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6233    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6234
6235 2005-01-29  Ben Wing  <ben@xemacs.org>
6236
6237         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6238
6239         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6240
6241 2005-01-29  Ben Wing  <ben@xemacs.org>
6242
6243         * bytecode.c (optimize_compiled_function):
6244         * print.c (FROB):
6245         * print.c (long_to_string):
6246         Add casts to avoid warning.
6247         
6248         * glyphs-eimage.c:
6249         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6250         #### The better solution is to move the TIFF and JPEG code to
6251         different files.
6252         
6253         * glyphs-msw.c (mswindows_xbm_instantiate):
6254         Define __STDC__ to avoid problems with compface.h.
6255         
6256         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6257         * EmacsShell-sub.c:
6258         * EmacsShell-sub.c (ABORT):
6259         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6260         * EmacsShell-sub.c (RootGeometryManager):
6261         * EmacsShell.c:
6262         * EmacsShell.c (ABORT):
6263         * EmacsShell.c (EmacsShellUpdateSizeHints):
6264         * alloc.c (free_lcrecord):
6265         * alloca.c (i00afunc):
6266         * buffer.c (delete_from_buffer_alist):
6267         * buffer.c (MARKED_SLOT):
6268         * bytecode.c (execute_rare_opcode):
6269         * bytecode.c (optimize_byte_code):
6270         * bytecode.c (Ffetch_bytecode):
6271         * chartab.c (char_table_type_to_symbol):
6272         * chartab.c (Freset_char_table):
6273         * chartab.c (decode_char_table_range):
6274         * chartab.c (Fget_range_char_table):
6275         * chartab.c (check_valid_char_table_value):
6276         * chartab.c (map_char_table):
6277         * chartab.c (slow_map_char_table_fun):
6278         * chartab.c (chartab_instantiate):
6279         * cm.c (cmcheckmagic):
6280         * console-msw.c (DHEADER):
6281         * console.c (MARKED_SLOT):
6282         * data.c (finish_marking_weak_lists):
6283         * data.c (encode_weak_list_type):
6284         * debug.h (DASSERT):
6285         * device-gtk.c (gtk_init_device):
6286         * device-msw.c (mswindows_get_default_margin):
6287         * device-tty.c (tty_init_device):
6288         * device-x.c (get_device_from_display):
6289         * device-x.c (x_get_visual_depth):
6290         * doprnt.c (parse_doprnt_spec):
6291         * doprnt.c (get_doprnt_args):
6292         * dumper.c (pdump_get_indirect_count):
6293         * dumper.c (pdump_register_sub):
6294         * dumper.c (pdump_register_object):
6295         * dumper.c (pdump_register_struct):
6296         * dumper.c (pdump_dump_data):
6297         * dumper.c (pdump_reloc_one):
6298         * elhash.c (print_hash_table):
6299         * elhash.c (make_standard_lisp_hash_table):
6300         * elhash.c (hash_table_instantiate):
6301         * emacs.c:
6302         * emacs.c (Fforce_debugging_signal):
6303         * emacs.c (sort_args):
6304         * emacs.c (main):
6305         * emacs.c (assert_failed):
6306         * eval.c (throw_or_bomb_out):
6307         * eval.c (signal_1):
6308         * eval.c (Fsignal):
6309         * event-Xt.c:
6310         * event-Xt.c (emacs_Xt_mapping_action):
6311         * event-Xt.c (Xt_process_to_emacs_event):
6312         * event-msw.c:
6313         * event-stream.c (check_event_stream_ok):
6314         * event-stream.c (Fadd_timeout):
6315         * event-stream.c (Fadd_async_timeout):
6316         * event-stream.c (Fdiscard_input):
6317         * event-stream.c (execute_internal_event):
6318         * event-stream.c (Frecent_keys):
6319         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6320         * event-stream.c (lookup_command_event):
6321         * event-unixoid.c (poll_fds_for_input):
6322         * events.c:
6323         * events.c (mark_event):
6324         * events.c (event_equal):
6325         * events.c (event_hash):
6326         * events.c (Fmake_event):
6327         * events.c (Fdeallocate_event):
6328         * events.c (event_chain_find_previous):
6329         * events.c (event_to_character):
6330         * events.c (format_event_object):
6331         * events.c (Fevent_type):
6332         * events.c (event_pixel_translation):
6333         * events.c (Fevent_properties):
6334         * extents.c (extent_in_region_p):
6335         * extents.c (print_extent):
6336         * extents.c (process_extents_for_insertion_mapper):
6337         * extents.c (report_extent_modification_mapper):
6338         * extents.c (glyph_layout_to_symbol):
6339         * faces.c (face_validate):
6340         * file-coding.c (eol_type_to_symbol):
6341         * file-coding.c (subsidiary_coding_system):
6342         * file-coding.c (Fcoding_system_type):
6343         * file-coding.c (Fcoding_system_property):
6344         * file-coding.c (mule_decode):
6345         * file-coding.c (mule_encode):
6346         * file-coding.c (encode_coding_ucs4):
6347         * file-coding.c (encode_coding_utf8):
6348         * file-coding.c (parse_iso2022_esc):
6349         * file-coding.c (encode_coding_iso2022):
6350         * fileio.c:
6351         * fns.c (concat):
6352         * fns.c (Fsubseq):
6353         * fns.c (mapcar1):
6354         * fns.c (Fbase64_encode_region):
6355         * fns.c (Fbase64_encode_string):
6356         * fns.c (Fbase64_decode_region):
6357         * fns.c (Fbase64_decode_string):
6358         * font-lock.c (find_context):
6359         * font-lock.c (context_to_symbol):
6360         * frame-gtk.c (gtk_set_frame_pointer):
6361         * frame-gtk.c (gtk_update_frame_external_traits):
6362         * frame-x.c (x_wm_mark_shell_size_user_specified):
6363         * frame-x.c (x_wm_mark_shell_position_user_specified):
6364         * frame-x.c (x_wm_set_shell_iconic_p):
6365         * frame-x.c (x_wm_set_cell_size):
6366         * frame-x.c (x_wm_set_variable_size):
6367         * frame-x.c (x_wm_store_class_hints):
6368         * frame-x.c (x_wm_maybe_store_wm_command):
6369         * frame-x.c (x_initialize_frame_size):
6370         * frame-x.c (x_update_frame_external_traits):
6371         * frame.c:
6372         * frame.c (delete_frame_internal):
6373         * frame.c (mouse_pixel_position_1):
6374         * frame.c (change_frame_size_1):
6375         * free-hook.c (check_free):
6376         * free-hook.c (check_realloc):
6377         * free-hook.c (note_block_input):
6378         * free-hook.c (log_gcpro):
6379         * gccache-gtk.c (gc_cache_lookup):
6380         * glyphs-eimage.c (tiff_memory_write):
6381         * glyphs-gtk.c (gtk_finalize_image_instance):
6382         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6383         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6384         * glyphs-gtk.c (gtk_xpm_instantiate):
6385         * glyphs-gtk.c (gtk_unmap_subwindow):
6386         * glyphs-gtk.c (gtk_map_subwindow):
6387         * glyphs-gtk.c (gtk_button_redisplay):
6388         * glyphs-msw.c:
6389         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6390         * glyphs-x.c (init_image_instance_from_xbm_inline):
6391         * glyphs-x.c (extract_xpm_color_names):
6392         * glyphs-x.c (x_xpm_instantiate):
6393         * glyphs.c (get_image_instantiator_governing_domain):
6394         * glyphs.c (print_image_instance):
6395         * glyphs.c (image_instance_equal):
6396         * glyphs.c (image_instance_hash):
6397         * glyphs.c (encode_image_instance_type):
6398         * glyphs.c (make_image_instance_1):
6399         * glyphs.c (inherit_instantiate):
6400         * glyphs.c (image_instantiate):
6401         * glyphs.c (allocate_glyph):
6402         * glyphs.c (Fglyph_type):
6403         * glyphs.c (redisplay_subwindow):
6404         * glyphs.c (display_table_entry):
6405         * gtk-glue.c (xemacs_list_to_gtklist):
6406         * gtk-glue.c (xemacs_gtklist_to_list):
6407         * gtk-glue.c (xemacs_list_to_array):
6408         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6409         * gutter.c (gutter_was_visible):
6410         * gutter.c (get_gutter_coords):
6411         * input-method-xlib.c (get_XIM_input):
6412         * insdel.c (bufpos_to_bytind_func):
6413         * insdel.c (bytind_to_bufpos_func):
6414         * insdel.c (move_gap):
6415         * intl.c (x_get_composed_input):
6416         * keymap.c (keymap_lookup_directly):
6417         * keymap.c (keymap_delete_inverse_internal):
6418         * keymap.c (ensure_meta_prefix_char_keymapp):
6419         * keymap.c (accessible_keymaps_mapper_1):
6420         * keymap.c (where_is_recursive_mapper):
6421         * lisp.h:
6422         * lisp.h (ABORT):
6423         * lread.c (read_atom):
6424         * lstream.c (Lstream_delete):
6425         * lstream.c (make_lisp_buffer_stream_1):
6426         * macros.c (pop_kbd_macro_event):
6427         * malloc.c (malloc):
6428         * malloc.c (free):
6429         * marker.c (bi_marker_position):
6430         * marker.c (set_bi_marker_position):
6431         * menubar-gtk.c (menu_descriptor_to_widget_1):
6432         * menubar-msw.c (prune_menubar):
6433         * menubar-x.c (set_frame_menubar):
6434         * mule-charset.c (get_unallocated_leading_byte):
6435         * mule-charset.h (CHAR_LEADING_BYTE):
6436         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6437         * nt.c (init_environment):
6438         * nt.c (generate_inode_val):
6439         * ntproc.c (delete_child):
6440         * ntproc.c (_sys_read_ahead):
6441         * ntproc.c (create_child):
6442         * objects.c (color_instantiate):
6443         * objects.c (font_instantiate):
6444         * objects.c (face_boolean_instantiate):
6445         * print.c (printing_major_badness):
6446         * process-nt.c (nt_send_process):
6447         * process-unix.c (unix_send_process):
6448         * process.c (get_process):
6449         * ralloc.c (obtain):
6450         * ralloc.c (relinquish):
6451         * ralloc.c (relocate_blocs):
6452         * ralloc.c (resize_bloc):
6453         * ralloc.c (r_alloc_free):
6454         * ralloc.c (r_re_alloc):
6455         * ralloc.c (r_alloc_thaw):
6456         * ralloc.c (init_ralloc):
6457         * ralloc.c (Free_Addr_Block):
6458         * ralloc.c (r_alloc):
6459         * redisplay-gtk.c (gtk_output_display_block):
6460         * redisplay-msw.c (mswindows_output_display_block):
6461         * redisplay-output.c (get_next_display_block):
6462         * redisplay-output.c (get_cursor_size_and_location):
6463         * redisplay-output.c (redisplay_output_layout):
6464         * redisplay-output.c (redisplay_clear_region):
6465         * redisplay-tty.c (tty_output_display_block):
6466         * redisplay-x.c (x_output_display_block):
6467         * redisplay.c (add_propagation_runes):
6468         * redisplay.c (add_glyph_rune):
6469         * redisplay.c (create_text_block):
6470         * redisplay.c (add_margin_runes):
6471         * redisplay.c (create_left_glyph_block):
6472         * redisplay.c (create_right_glyph_block):
6473         * redisplay.c (create_string_text_block):
6474         * redisplay.c (regenerate_window):
6475         * redisplay.c (REGEN_INC_FIND_START_END):
6476         * redisplay.c (redisplay_frame):
6477         * redisplay.c (point_in_line_start_cache):
6478         * regex.c:
6479         * regex.c (ABORT):
6480         * regex.c (re_compile_fastmap):
6481         * regex.c (re_match_2_internal):
6482         * regex.c (regerror):
6483         * scrollbar-gtk.c (gtk_scrollbar_loop):
6484         * scrollbar-gtk.c (scrollbar_cb):
6485         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6486         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6487         * scrollbar-x.c (x_update_scrollbar_instance_status):
6488         * scrollbar-x.c (x_scrollbar_loop):
6489         * scrollbar-x.c (x_update_frame_scrollbars):
6490         * search.c (search_command):
6491         * search.c (Fmatch_data):
6492         * select-x.c (motif_clipboard_cb):
6493         * signal.c (interrupt_signal):
6494         * specifier.c (specifier_add_spec):
6495         * specifier.c (specifier_instance_from_inst_list):
6496         * specifier.c (specifier_instance):
6497         * specifier.h:
6498         * specifier.h (struct specifier_methods):
6499         * strftime.c (add_num_time_t):
6500         * sunplay.c (init_device):
6501         * symbols.c (Fsetplist):
6502         * symbols.c (do_symval_forwarding):
6503         * symbols.c (store_symval_forwarding):
6504         * symbols.c (Fset):
6505         * symbols.c (Fbuilt_in_variable_type):
6506         * symbols.c (decode_magic_handler_type):
6507         * symbols.c (handler_type_from_function_symbol):
6508         * syntax.c (update_syntax_cache):
6509         * sysdep.c (init_baud_rate):
6510         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6511         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6512         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6513         * toolbar.c (get_toolbar_coords):
6514         * ui-gtk.c (build_gtk_boxed):
6515         * ui-gtk.c (describe_gtk_arg):
6516         * ui-gtk.c (gtk_type_to_lisp):
6517         * ui-gtk.c (lisp_to_gtk_type):
6518         * ui-gtk.c (lisp_to_gtk_ret_type):
6519         * ui-gtk.c (lisp_to_flag):
6520         * unexnt.c (read_in_bss):
6521         * unexnt.c (map_in_heap):
6522         * window.c (real_window):
6523         * window.c (window_display_lines):
6524         * window.c (window_display_buffer):
6525         * window.c (set_window_display_buffer):
6526         * window.c (window_modeline_height):
6527         * window.c (unshow_buffer):
6528         * window.c (window_loop):
6529         * window.c (Fget_lru_window):
6530         * window.c (Fsplit_window):
6531         * window.c (Fset_window_configuration):
6532         * window.c (saved_window_index):
6533         * xgccache.c (gc_cache_lookup):
6534         abort() -> ABORT().  Eliminate preprocessor games with abort()
6535         since it creates huge problems in VC7, solvable only by including
6536         massive amounts of files in every compile (and not worth it).
6537
6538         * sysdep.c:
6539         * sysproc.h:
6540         Inclusion of process.h does not need to be before lisp.h any more.
6541         Move later and remove comment about abort().
6542
6543 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6544
6545         * regex.c (re_match_2_internal):
6546         Correctly initialize loop which clears uninitialized registers.
6547
6548 2005-01-28  Vin Shelton  <acs@xemacs.org>
6549
6550         * sheap.c (more_static_core): Applied Ben's version of the long
6551         string patch.
6552
6553 2005-01-24  Vin Shelton  <acs@xemacs.org>
6554
6555         * sheap.c (more_static_core): Reformatted printf string so
6556         gcc-3.3.3 will compile this on Cygwin.
6557
6558 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6559
6560         * console.c (function_key_map): Reference `key-binding'.
6561
6562         * keymap.c (Vkey_translation_map): Improve docstring.
6563
6564 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6565
6566         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6567         * window.c (window_loop): [fix] Take into account
6568         `allow-deletion-of-last-visible-frame' variable.
6569         * window.c (replace-buffer-in-windows): Ditto.
6570
6571 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6572
6573         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6574
6575 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6576
6577         * event-gtk.c: Recognise AltGr as a valid modifier.
6578
6579 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6580
6581         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6582
6583 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6584
6585         Fix backreference bug caught by test suite.
6586
6587         * regex.c (regex_compile):
6588         Make backref duplicate internal register.
6589
6590 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6591
6592         Documentation, code clarification, and warning suppression.
6593         
6594         * regex.c (regex_compile):
6595         Improve comments.
6596         (re_match_2_internal):
6597         Improve comments and avoid redundant braces.  [Most of the big hunk
6598         at l. 4710 is indentation; use diff -w to see the real changes.]
6599         (alt_match_null_string_p):
6600         (common_op_match_null_string_p):
6601         Avoid shadowing global on Mac OS X 10.4, at least.
6602
6603 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6604
6605         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6606         introduced with shy groups fix).  [Already applied, probably
6607         with the second "fix shy groups" patch of 2004-10-07.] 
6608
6609 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6610
6611         From Andrey Slusar <anrays@gmail.com>:
6612
6613         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6614
6615 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6616
6617         * Makefile (RECURSIVE_MAKE): Removed.
6618         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6619         handling parallel builds.
6620
6621 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6622
6623         * Makefile.in.in: Enable support for parallel builds.
6624
6625 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6626
6627         From Andrey Slusar <anrays@gmail.com>:
6628
6629         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6630         FreeBSD version is >= 199701 _and_ < 600006.
6631
6632 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6633
6634         * scrollbar.c (compute_scrollbar_instance_usage):
6635         Only call device method compute_scrollbar_instance_usage() if it
6636         is defined.
6637
6638 2004-12-05  Vin Shelton <acs@xemacs.org>
6639
6640         * XEmacs 21.4.16 is released
6641
6642 2004-12-04  Vin Shelton  <acs@xemacs.org>
6643
6644         * depend: Regenerated.
6645
6646 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6647
6648         * regex.c (re_match_2_internal): Map internal to external
6649         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6650         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6651
6652 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6653
6654         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6655         to fix a crash.  Also, check the buffer is live and it
6656         really exists in buffer_list.  If the buffer is not in the list,
6657         prepend it.
6658
6659 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6660
6661         Fix shy groups by implementing recording of all groups for
6662         repetition and backtracking.  Backport from 21.5.
6663         
6664         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6665         external_to_internal_register, external_to_internal_register_size,
6666         and update comments for re_nsub.
6667
6668         * regex.c (re_opcode_t): Update comments.
6669         (print_compiled_pattern): Ouput external_to_internal_register,
6670         external_to_internal_register_size, and re_ngroups for debugging.
6671         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6672         (regex_compile): Update header comment.
6673         Ensure that all groups are recorded so that repeat matches and
6674         backtracking work correctly.  Comment related warning for groups >
6675         255.
6676         (re_search_2): Construct map of API indexes (which count only
6677         nonshy groups) to internal register numbers, and keep it updated.
6678
6679 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6680
6681         * frame-gtk.c (gtk_make_frame_visible):
6682         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6683         show/hide.  This is what X uses and is prevents previously hidden
6684         widgets from suddenly reappearing.
6685         * gtk-xemacs.c (gtk_xemacs_paint):
6686         * gtk-xemacs.c (gtk_xemacs_draw):
6687         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6688         drawable.
6689         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6690         size and location changes so that they can be seen before the next
6691         idle event.  Without this rapid changes to scrollbar properties
6692         are not seen.
6693
6694 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6695
6696         * console-gtk.h:
6697         * console-gtk.h (struct gtk_frame):
6698         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6699           Add hash tables track tab_control callback data.
6700           Added #defines for GTK object data names.
6701           Declaration of gtk_widget_to_frame().
6702         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6703         * frame-gtk.c (gtk_widget_to_frame): New.
6704         * frame-gtk.c (gtk_create_widgets):
6705         * frame-gtk.c (allocate_gtk_frame_struct):
6706         * frame-gtk.c (gtk_mark_frame):
6707         Manage frame callbakc hash tables.
6708         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6709         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6710         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6711         of widget size.
6712         * glyphs-gtk.c (gtk_widget_query_geometry): New
6713         * glyphs-gtk.c (gtk_register_gui_item): New
6714         * glyphs-gtk.c (gtk_add_tab_item): New
6715         * glyphs-gtk.c (gtk_tab_control_callback): New
6716         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6717         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6718         Use correct list when loading item.
6719         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6720         Register new methods.
6721         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6722         default size, for widgets.
6723         * gui-x.c:  Improved comment.
6724         * menubar-gtk.c (__generic_button_callback): Use
6725         gtk_widget_to_frame instead of __get_channel.
6726         * scrollbar-gtk.c:
6727         * ui-gtk.c: Use symbolic names for GTK object data.
6728
6729 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6730
6731         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6732
6733 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6734
6735         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6736
6737 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6738
6739         * malloc.c (morecore): siz is a long because in some architectures
6740         (eg ia-64) an int cannot hold the address range.  Additional patch
6741         from the SuSe distribution.
6742
6743 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6744
6745         * emacs.c:
6746         * malloc.c: lim_data is a long because in some architectures
6747         (eg ia-64) an int cannot hold the address range.
6748         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6749         instead of ulimit() because ulimit() always returns -1.
6750
6751 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6752
6753         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6754
6755 2004-06-11  David Kastrup  <dak@gnu.org>
6756
6757         * search.c (match_limit): Don't flag an error if match-data
6758         exceeding the allocated search_regs.num_regs gets requested, just
6759         return Qnil.
6760
6761 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6762
6763         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6764         replace symbolic color entries with the real colors specified in
6765         xpm-color-symbols, before passing the XPM to gtk.
6766         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6767         instead of a GTK specific field, so that it is used in by generic
6768         code.
6769
6770 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6771
6772        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6773         coredump from deref of NULL ptr (ExtData)
6774
6775 2004-04-19  Jerry James  <james@xemacs.org>
6776
6777         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6778         VALBITS to compute the location of the sign bit.
6779         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6780         of VALBITS with EMACS_INT_MAX.
6781         * events.c (Fevent_timestamp): Ditto.
6782         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6783         compute the halfway point to timestamp wraparound.
6784         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6785         EMACS_INT_MIN instead of using VALBITS.
6786         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6787         incorrect number with VALBITS.
6788         * fns.c (Frandom): Correct number of integer bits in docstring.
6789         Use INT_VALBITS instead of VALBITS to compute the denominator.
6790         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6791         build random numbers.
6792
6793 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6794         * event-gtk.c:
6795         * event-gtk.c (gtk_event_to_emacs_event):
6796         * menubar-gtk.c:
6797         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6798         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6799         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6800         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6801         * menubar-gtk.c (__activate_menu):
6802         * menubar-gtk.c (convert_underscores):
6803         * menubar-gtk.c (remove_underscores):
6804         * menubar-gtk.c (menu_convert):
6805         * menubar-gtk.c (menu_descriptor_to_widget_1):
6806         * menubar-gtk.c (menu_descriptor_to_widget):
6807         * menubar-gtk.c (menu_can_reuse_widget):
6808         * menubar-gtk.c (menu_create_menubar):
6809         * menubar-gtk.c (gtk_popup_menu):
6810         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6811         Added support for Gtk menu bar and menu item mnemonics.
6812
6813 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6814
6815         * sysdll.c: (dll_function): Added support for finding symbols in
6816         Darwin shared libraries as well in Darwin bundles.
6817         * sysdll.c (image_for_address): New
6818         * sysdll.c (my_find_image): New
6819         * sysdll.c (search_linked_libs): New
6820
6821 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6822
6823         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6824         return to GTK requires a different API to marshalling data to use
6825         as GTK parameters.
6826         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6827
6828 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6829
6830         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6831
6832 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6833
6834         * glyphs.c (process_image_string_instantiator):
6835         (Fset_console_type_image_conversion_list):
6836         Stop GCC from warning about shadowing of `exp'.
6837
6838         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6839
6840 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6841
6842         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6843
6844 2004-02-03  Vin Shelton  <acs@xemacs.org>
6845
6846         * glyphs.c (image_instance_layout): Remove pointless assertion.
6847         * regex.c (regex_grow_registers): Return type is void.
6848
6849 2004-02-02  Vin Shelton <acs@xemacs.org>
6850
6851         * XEmacs 21.4.15 is released
6852
6853 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6854
6855         * device-x.c (x_error_handler): Don't call stderr_out
6856
6857 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6858
6859         * buffer.c (other-buffer): Clarify documentation of order of
6860         arguments for FSF Emacs.
6861
6862 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6863
6864         * window.c (Fdelete_window): Dirty the mirror structure _before_
6865         marking the window deleted.
6866
6867 2003-09-15  Jerry James  <james@xemacs.org>
6868
6869         * event-msw.c (debug_mswin_messages): Conditionally compile
6870         messages missing from the Cygwin headers.
6871
6872 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6873
6874         * data.c (eq_with_ebola_notice): Fix typo in comment.
6875         (Ftrue_list_p): Improve docstring.
6876
6877 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6878
6879         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6880
6881 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         * search.c (trivial_regexp_p): Regexps containing "\{" are
6884         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6885         Stefan Monnier for suggesting a diagnosis.
6886
6887 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6888
6889         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6890
6891 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6892
6893         * search.c (Fsearch_forward):
6894         (Fsearch_backward):
6895         Document negative count.
6896
6897 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6898
6899         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6900
6901 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6902
6903         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6904
6905 2003-09-15  Vin Shelton  <acs@xemacs.org>
6906
6907         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6908         21.5.
6909
6910 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6911
6912         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6913         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6914         (re_match_2_internal): Use TRANSLATE instead of
6915         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6916         non-ASCII char case conversion.
6917
6918 2003-09-08  Mike Sperber  <mike@xemacs.org>
6919
6920         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6921         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6922
6923 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6924
6925        * .gdbinit (pobj): fix printing of symbol name.
6926
6927 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6928
6929         * frame-x.c (x_layout_widgets): When resizing is about to cause
6930         frame size slip, mark it for redisplay.
6931
6932 2003-08-18  Jerry James  <james@xemacs.org>
6933
6934         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6935
6936 2003-09-03  Vin Shelton <acs@xemacs.org>
6937
6938         * XEmacs 21.4.14 is released
6939
6940 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6941
6942         * config.h.in (REGEX_MALLOC): Make it configure'able.
6943
6944 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6945
6946         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6947         linking.
6948         * sysdll.c (dll_init):
6949         * sysdll.c (dll_open):
6950         * sysdll.c (dll_close):
6951         * sysdll.c (dll_function):
6952         * sysdll.c (dll_variable):
6953         * sysdll.c (dll_error):
6954         Add support for loading bundles using Darwin/MacOSX
6955         native API.
6956
6957 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6958
6959         * process.c (start-process-internal): Document coding systems.
6960
6961 2003-07-30  Jerry James  <james@xemacs.org>
6962
6963         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6964
6965 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6966
6967         * event-msw.c (mswindows_enqueue_mouse_button_event):
6968         * event-msw.c (mswindows_wnd_proc):
6969           enqueue button event when scrollwheel event isn't handled by 
6970           mswindows_handle_mousewheel_event, such as when the scrollbars
6971           are not showing.
6972
6973 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6974
6975         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6976
6977 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6978
6979         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6980
6981 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6982
6983         * regex.c (re_match_2_internal): Fix matching degenerate word
6984         boundaries.
6985
6986 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6987
6988         * XEmacs 21.4.13 is released
6989
6990 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6991
6992         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6993         * lisp.h (<inttypes.h>):
6994         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6995         the definition.
6996
6997 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6998
6999         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7000         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7001         Result: "temacs can only be run in -batch mode."
7002         Fix: Check xemacs executable candidate for directory-ness.
7003
7004 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7005
7006         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7007           they conflict with <sys/types.h>.
7008
7009 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7010
7011         * database.c: Berkeley DB wants __STDC__ to be defined.
7012
7013 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7014
7015         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7016
7017 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7018
7019         * process-unix.c (unix_send_process): Fix C++ compile error.
7020
7021 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7022
7023         * Added .dylib as an acceptable shared library file extension
7024         * to support MacOSX.
7025
7026 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7027
7028         * EmacsFrameP.h (EmacsFramePart):
7029         Kludge to allow compiling with Motif1, but linking with Motif2.
7030
7031 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7032
7033         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7034
7035
7036 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7037
7038         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7039
7040 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7041
7042         * sysdll.c: Included lisp.h to define needed alloca_array.
7043
7044 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7045
7046         Make XEmacs redisplay 10 times faster.
7047         If, that is, you're using a slow X connection and MoveOpaque.
7048         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7049         Use compress_motion = TRUE.
7050         * EmacsFrame.c (emacsFrameClassRec): 
7051         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7052         * EmacsManager.c (emacsManagerClassRec):
7053         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7054
7055 2003-01-30  Vin Shelton  <acs@xemacs.org>
7056
7057         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7058
7059 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7060
7061         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7062         Patch by Martin Buchholz.
7063
7064 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7065
7066         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7067         Thanks to icc for warning and Martin Buchholz for reporting.
7068
7069 2003-01-29  Vin Shelton <acs@xemacs.org>
7070
7071         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7072
7073         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7074         remember to multiply by the element size.
7075
7076 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7077
7078         * XEmacs 21.4.12 "Portable Code" is released.
7079
7080 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7081
7082         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7083         * s/cygwin.sc: new linker file.
7084
7085 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7086
7087         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7088
7089         * redisplay-x.c (x_output_string): Use X11-specified types.
7090         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7091         * emacs.c (__free_hook): Use typeof with Intel compiler.
7092         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7093
7094 2003-01-08  Andy Piper  <andy@xemacs.org>
7095
7096         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7097         reserve size during unexec().
7098
7099 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7100
7101         * process-unix.c (unix_create_process): Don't let outchannel block.
7102
7103 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7104
7105         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7106         Needed for IsBadReadPtr().
7107
7108 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7109
7110         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7111
7112 2002-12-14  Ben Wing  <ben@xemacs.org>
7113
7114         * callint.c: Declaration error.
7115         * dumper.c (pdump):
7116         * dumper.c (pdump_load): Warning fix.
7117         * process.c: GCPRO error.
7118         * glyphs.c (unmap_subwindow):
7119         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7120         * event-stream.c (maybe_kbd_translate): Wrong argument to
7121         character_to_event().
7122
7123         * alloc.c (garbage_collect_1):
7124         * emacs.c:
7125         * emacs.c (debug_can_access_memory):
7126         * emacs.c (fatal_error_signal):
7127         * emacs.c (mswindows_handle_hardware_exceptions):
7128         * emacs.c (main_1):
7129         * emacs.c (main):
7130         * emacs.c (assert_failed):
7131         * emacs.c (syms_of_emacs):
7132         * lisp.h:
7133         * print.c:
7134         * print.c (std_handle_out_va):
7135         * print.c (write_string_to_stdio_stream):
7136         * print.c (write_fmt_string):
7137         * print.c (printing_badness):
7138         * print.c (printing_major_badness):
7139         * print.c (print_internal):
7140         * print.c (debug_print_no_newline):
7141         * print.c (debug_backtrace):
7142         Be more defensive in handling bad values when printing.  Add code
7143         from trunk involving inhibit_non_essential_printing_operations.
7144         When going down or in debug_print(), don't do external conversion
7145         and such and try really, really hard when printing to avoid core
7146         dumping.  Add force-debugging-signal, debug_break().
7147
7148 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7149
7150         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7151         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7152
7153 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7154
7155         * database.c: Fix open_database. Berkeley DB API has changed in
7156         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7157
7158 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7159
7160         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7161
7162 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7163
7164         * event-Xt.c (Xt_timeout):
7165         (Xt_timeout_callback):
7166         (emacs_Xt_add_timeout):
7167         (emacs_Xt_remove_timeout):
7168         (Xt_timeout_to_emacs_event):
7169         Turn completed_timeouts from a stack into a queue.  Fixes
7170         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7171
7172 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7173
7174         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7175         * emacs.c (main): Assert that mmap'd allocation is disabled.
7176
7177 2002-10-14  Andy Piper  <andy@xemacs.org>
7178
7179         * glyphs-widget.c (layout_query_geometry): add in fiddle
7180         factor. Include border text in width layout calculation.
7181         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7182
7183 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7184
7185         * XEmacs 21.4.10 "Military Intelligence" is released.
7186
7187 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7188
7189         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7190         using the NAS private array SoundFileInfo that no longer exists in
7191         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7192         and earlier.  This is broken for some versions between 1.5a and
7193         1.5f.
7194
7195 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7196
7197         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7198
7199         * emacs.c (shut_down_emacs): Improve crash message.
7200
7201 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7202
7203         * file-coding.c (determine_real_coding_system): Check for coding
7204         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7205         shebangs and Python PEP 263.
7206
7207 2002-10-08  Andy Piper  <andy@xemacs.org>
7208
7209         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7210         if static sizes haven't been set.
7211
7212 2002-08-30  Mike Alexander  <mta@arbortext.com>
7213
7214         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7215         to close a socket.
7216
7217 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7218
7219         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7220
7221 2002-09-20  Mike Sperber <mike@xemacs.org>
7222
7223         (This partially gets back my patch from 2002-07-20 without the
7224         bug.)
7225         * callproc.c (child_setup): Remove Ben's comment noting confusion
7226         over the file descriptors >= 3: close_process_descs() doesn't
7227         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7228         * process-unix.c (unix_create_process): Call
7229         begin_dont_check_for_quit to inhibit unwanted interaction (and
7230         thus breaking of X event synchronicity) in the child.
7231
7232 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7233
7234         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7235         widget.
7236
7237 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7238
7239         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7240         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7241         the xemacs process did not exit, but looped infinitely here.  This
7242         fixes that problem.
7243
7244 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7245
7246         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7247         (find_context): Improve comments.
7248
7249         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7250         (re_match_2): An XCHAR_TABLE operation was missing.
7251
7252         Many of the following changes were inspired by Andy Piper's (now
7253         obsolete) patch to make syntax-table text property lookup optional.
7254
7255         [Documentation]
7256
7257         * syntax.h (top level): Document semantics of syntax flags.
7258         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7259         * syntax.c, syntax.h (top level): Document syntax cache better in
7260         comments.
7261
7262         [Instrument syntax caching (temporary change)]
7263
7264         * syntax.h (enum syntax_cache_statistics_functions, struct
7265         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7266         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7267         * syntax.c (scan_words, Fforward_comment, scan_lists,
7268         Fbackward_prefix_characters):
7269         * font-lock.c (find_context):
7270         Use them to instrument syntax caching. 
7271         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7272         syntax_cache_statistics_function_names): New type and variables.
7273         * syntax.c (update_syntax_cache): Update and report statistics.
7274
7275         [Major syntax cache optimizations]
7276
7277         syntax.c (lookup_syntax_properties): Default off.
7278
7279         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7280         * syntax.c (update_syntax_cache):
7281         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7282
7283         [Minor syntax cache optimizations and code clarifications]
7284
7285         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7286         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7287         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7288         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7289         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7290         (Code clarification.)
7291
7292         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7293         scan_lists): Compute code from syncode, use Boolean macros instead
7294         of redundant masking operations.  (Code clarification; any decent
7295         compiler can do this optimization.)
7296
7297         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7298         for clarity.
7299
7300         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7301         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7302         use F*_single_property_change instead of F*_extent_change.
7303         Currently F*_single_property_change is _much_ less efficient.
7304
7305         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7306         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7307         syntax_cache.object properly, don't leave Qt or Qnil.
7308         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7309         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7310         tests for Qt or Qnil.
7311
7312 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7313
7314         * redisplay.c (point_in_line_start_cache): 
7315         * extents.c (print_extent_1):
7316         Fix warnings.
7317
7318         * extents.c (Fset_extent_property): Document `syntax-table' property.
7319
7320         * extents.h (Fnext_single_property_change): EXFUN it.
7321
7322 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7323
7324         * search.c (clear_unused_search_regs): New static function.
7325         (search_buffer): 
7326         (simple_search): 
7327         (boyer_moore):
7328         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7329         Minor clarifications in comments.
7330
7331         * regex.c (re_match_2_internal): Ensure no stale submatches.
7332
7333 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7334
7335         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7336
7337 2002-08-29  Jerry James  <james@xemacs.org>
7338
7339         * lisp.h: structrures -> structures.
7340
7341 2002-06-03  Andy Piper  <andy@xemacs.org>
7342
7343         * frame.c (frame_conversion_internal): add conversion appropriate
7344         for setting frame dimensions in pixels.
7345
7346         * console.h (struct console_methods): add device-specific widget
7347         layout functions.
7348
7349         * emacs.c (main_1): initialize glyph vars.
7350
7351         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7352         (handle_focus_event_2): new function. Allow focus to
7353         be set to a particular window and widget.
7354         (enqueue_focus_event): new function. Create a
7355         synthetic focus event.
7356         (emacs_Xt_handle_magic_event): call
7357         handle_focus_event_2.
7358
7359         * frame.c (Fset_frame_pixel_height): new function. Allow
7360         pixel-based sizing. Does the right thing on character-oriented
7361         displays.
7362         (Fset_frame_pixel_width): ditto.
7363         (Fset_frame_pixel_size): ditto.
7364         (syms_of_frame): declare.
7365
7366         * general-slots.h: add :vertically-justify and
7367         :horizontally-justify.
7368
7369         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7370         (mswindows_widget_border_width): new function.
7371         (mswindows_combo_box_instantiate): set border widths.
7372         (console_type_create_glyphs_mswindows): declare.
7373
7374         * glyphs-widget.c:
7375         (check_valid_justification): allow vertical and horizontal
7376         justification.
7377         (widget_border_width): new function. Call device methods.
7378         (widget_instance_border_width): ditto.
7379         (logical_unit_height): new function. Determine the height of a
7380         logical-unit. Logical units are intended to provide grid-like
7381         layout for subcontrols in a layout. If the layout is
7382         :vertically-justify top then subcontrols will be positioned on
7383         logical-unit boundaries, thus allowing adjacent subcontrols to
7384         line up.
7385         (widget_logical_unit_height): ditto for widgets.
7386         (redisplay_widget): misc cleanup.
7387         (widget_spacing): new function. Call device specific
7388         methods. Intended to be the default gap between adjacent widgets.
7389         (widget_query_geometry): use new spacing functions to determine
7390         appropriate geometry.
7391         (initialize_widget_image_instance): initialize horizontal and
7392         vertical justification.
7393         (widget_instantiate): use logica-units where appropriate for
7394         sizing large widgets.
7395         (button_query_geometry): use widget_instance_border_width.
7396         (tree_view_query_geometry): ditto.
7397         (tab_control_query_geometry): ditto.
7398         (edit_field_query_geometry): new function.
7399         (layout_update): pick up :justify, :horizontally-justify and
7400         :vertically-justify none of which worked previously. :justify is
7401         used as a fallback for both horizontal and vertical justification.
7402         (layout_query_geometry): use logical units to size appropriately.
7403         (layout_layout): ditto.
7404         (Fwidget_logical_to_character_width): new function. Allow users to
7405         convert from logical units to characters so that frame sizes can
7406         be set appropriately.
7407         (Fwidget_logical_to_character_height): ditto.
7408         (syms_of_glyphs_widget): declare.
7409         (image_instantiator_edit_fields): add edit_field_query_geometry.
7410         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7411         :horizontally-justify.
7412         (specifier_vars_of_glyphs_widget): new function. Declare
7413         Vwidget_border_width which is not yet used.
7414
7415         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7416         (x_widget_border_width): new function.
7417         (x_widget_instantiate): create a sensible name for widgets.
7418         (console_type_create_glyphs_x): declare x_widget_border_width.
7419
7420         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7421         (struct Lisp_Image_Instance): add :vertically-justify and
7422         :horizontally-justify.
7423         (LAYOUT_JUSTIFY_TOP): new.
7424         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7425         (ROUND_UP): new macro. Round argument up to next integral
7426         interval.
7427
7428         * redisplay-output.c (redisplay_output_layout): misc formatting.
7429
7430         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7431
7432 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7433
7434         * XEmacs 21.4.9 "Informed Management" is released.
7435
7436 2002-08-19  Andy Piper  <andy@xemacs.org>
7437
7438         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7439         win32 format.
7440
7441         * realpath.c (xrealpath): normalize drive spec also so that dir
7442         sep chars are not mixed on cygwin.
7443
7444 2002-08-06  Jerry James  <james@xemacs.org>
7445
7446         * window.c (Fsplit_window): Count only half of the divider width
7447         against the left window when splitting horizontally. 
7448
7449 2002-06-24  Andy Piper  <andy@xemacs.org>
7450
7451         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7452         toolbar was cleared.
7453
7454         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7455         function. Split out from mswindows_output_frame_toolbars.
7456         (mswindows_output_frame_toolbars): move clear pieces to
7457         mswindows_output_frame_toolbars.
7458
7459         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7460         out from gtk_output_frame_toolbars.
7461         (gtk_output_frame_toolbars): move clear pieces to
7462         gtk_clear_frame_toolbars.
7463
7464         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7465         the frame is cleared. How this ever worked before is a mystery.
7466         (x_output_frame_toolbars): Only output toolbars.
7467         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7468
7469         * gutter.c (update_gutter_geometry):
7470         Mark frame layout changed.
7471         (update_frame_gutter_geometry, update_frame_gutters):
7472         Respect frame_layout_changed.
7473
7474         * console.h (struct console_methods): add
7475         clear_frame_toolbars_method.
7476
7477         * redisplay.c (redisplay_frame): call
7478         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7479
7480         * toolbar.h: declare update_frame_toolbars_geometry.
7481
7482         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7483         out from update_frame_toolbars.  Call clear_frame_toolbars.
7484         (update_frame_toolbars): only output, do not change geometry.
7485
7486         * redisplay.c: add frame_layout_changed.
7487
7488         * redisplay.h: add frame_layout_changed.
7489         (CLASS_RESET_CHANGED_FLAGS): set it.
7490         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7491         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7492         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7493
7494         * device.h (struct device): add frame_layout_changed.
7495         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7496
7497         * frame.h (struct frame): add frame_layout_changed.
7498         (MARK_FRAME_LAYOUT_CHANGED): new.
7499
7500 2002-06-30  Mike Alexander  <mta@arbortext.com>
7501
7502         * event-msw.c (mswindows_need_event): Don't wait for a new message
7503         if the queue is not empty.  Suggested by Paul Moore.
7504
7505 2002-06-12  Andy Piper  <andy@xemacs.org>
7506
7507         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7508         for printing on accurately.
7509
7510 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7511
7512         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7513         WM_ACTIVATE message. Make sure that the frame is visible if the
7514         window is visible. This seemss to fix the problem where XEmacs
7515         appears to freeze after switching desktops with certain virtual
7516         window managers.
7517         (debug_output_mswin_message): Added code to output message
7518         parameters for WM_WINDOWPOSCHANGED, 
7519         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7520
7521 2002-05-25  Andy Piper  <andy@xemacs.org>
7522
7523         * select-x.c (vars_of_select_x): Fix docstring of
7524         x-selection-strict-motif-ownership
7525
7526 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7527
7528         * keymap.c (get_keymap):
7529         Add comment about do_autoload GCPROs own args.
7530
7531 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7532
7533         * bytecode.c (execute_optimized_program): check_opcode ifdef
7534         ERROR_CHECK_BYTE_CODE.
7535
7536 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7537
7538         Thanks to Ben Wing and Michael Sperber.
7539
7540         * eval.c (Fcommand_execute):
7541         (Feval):
7542         (Ffuncall):
7543         (Fmacroexpand_internal):
7544         (function_argcount):
7545         callint.c (Fcall_interactively):
7546         Add comment about do_autoload GCPROs own args.
7547
7548         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7549
7550         * eval.c (Ffuncall): Extra braces to placate GCC.
7551
7552 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7553
7554         * backtrace.h (grow_specpdl):
7555         (SPECPDL_RESERVE):
7556         * EmacsFrame.c (EmacsFrameSetValues):
7557         * eval.c (grow_specpdl):
7558         * ExternalShell.c (hack_event_masks_1):
7559         * glyphs-x.c (convert_EImage_to_XImage): 
7560         (x_finalize_image_instance):
7561         * ralloc.c (page_size):
7562         (r_alloc_sbrk):
7563         * xgccache.c (gc_cache_hash):
7564         Fix unsigned comparison warnings.
7565
7566 2002-07-29  Jerry James  <james@xemacs.org>
7567
7568         * lread.c (locate_file): Any nonnegative return value indicates
7569         success if MODE is nonnegative.
7570
7571 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7572
7573         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7574         argument. 
7575
7576 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7577
7578         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7579
7580         * dumper.c (pdump_get_indirect_count):
7581         (pdump_scan_by_alignment):
7582         (pdump_dump_root_struct_ptrs):
7583         (pdump_dump_rtables):
7584         (pdump_dump_root_objects):
7585         (pdump):
7586         * nas.c (WaveOpenDataForReading):
7587         * fns.c (print_bit_vector):
7588         * font-lock.c (SINGLE_SYNTAX_STYLE):
7589         * glyphs.c (check_for_ignored_expose):
7590         (find_matching_subwindow):
7591         * glyphs-eimage.c:
7592         * imgproc.c (get_histogram):
7593         * redisplay.c (point_in_line_start_cache):
7594         * redisplay-output.c (redisplay_unmap_subwindows):
7595         * symbols.c (defsymbol_massage_name_1):
7596         (defkeyword_massage_name):
7597         (deferror_massage_name_and_message):
7598         * redisplay-x.c (x_output_string): 
7599         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7600         * frame.h (struct frame):
7601         * filelock.c (current_lock_owner):
7602         * doprnt.c (emacs_doprnt_1):
7603         * lisp.h (struct Lisp_Bit_Vector):
7604         (DO_REALLOC):
7605         Fix warnings.
7606
7607 2002-02-13  Ben Wing  <ben@xemacs.org>
7608
7609         * event-stream.c (reset_key_echo):
7610         * event-stream.c (reset_this_command_keys):
7611         * event-stream.c (execute_command_event):
7612         If console is dead as a result of C-x 5 0, then post-command stuff
7613         needs to be careful and do only non-console-specific stuff.
7614
7615 2002-07-01  Mike Sperber <mike@xemacs.org>
7616
7617         * process-unix.c (unix_send_process): Mark coding_outstream as
7618         non-open upon SIGPIPE.
7619
7620         * event-stream.c (Fnext_event): Reorder switch cases to something
7621         that makes sense.
7622
7623 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7624
7625         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7626         Don't bogusly reinitialize ascii_character property.
7627
7628 2002-07-08  Mike Sperber <mike@xemacs.org>
7629
7630         * process.c (Fstart_process_internal): Do error checking before we
7631         fork off the child, so the child can't muck with the state of the
7632         parent.
7633
7634 2002-07-08  Mike Sperber <mike@xemacs.org>
7635
7636         * ralloc.c (init_ralloc): Allocate properly for pdump.
7637
7638 2002-06-12  Andy Piper  <andy@xemacs.org>
7639
7640         * glyphs.c (query_string_geometry): check the string.
7641
7642         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7643         widget names.
7644
7645 2002-06-17  Jerry James  <james@xemacs.org>
7646
7647         * sysdll.c: Remove RTLD_GLOBAL initialization.
7648         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7649
7650 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7651
7652         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7653
7654 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7655
7656         * sysdep.c (sys_rename): Make sys_rename work for the case where
7657         Windows rename sets errno to EACCES if target file exists.
7658
7659 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7660
7661         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7662         Fix detection of metric units to work on Win95
7663
7664 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7665
7666         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7667
7668 2002-04-25  Andy Piper  <andy@xemacs.org>
7669
7670         * redisplay.c (create_text_block): Remove extra comment trailer.
7671
7672 2002-04-24  Andy Piper  <andy@xemacs.org>
7673
7674         * redisplay.c (create_text_block): Don't actually add propagation
7675         data if the line ends after we have added a glyph.
7676
7677 2002-04-22  Andy Piper  <andy@xemacs.org>
7678
7679         * extents.c (extent_fragment_update): check for glyphs we have
7680         previously displayed.
7681         * extents.c (print_extent_1): warning removal.
7682         * extents.h: change prototype.
7683         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7684         widths correctly for wide glyphs.
7685         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7686         * redisplay.c (prop_type): add PROP_GLYPH.
7687         * redisplay.c (struct prop_block): add glyph type
7688         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7689         to the propagation data.
7690         * redisplay.c (create_text_block): if there is a glyph in the
7691         propagation data use it to salt extent_fragment_update.
7692         * redisplay.c (create_string_text_block): ditto.
7693
7694 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7695
7696         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7697         * redisplay-output.c (compare_runes): Compare them.
7698         * redisplay.c: Update copyright date.
7699         * redisplay.c (pos_data): Add need_baseline_computation field.
7700         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7701         need_baseline_computation; zero yoffset. Set max_pixmap_height
7702         for all pixmaps, not just automatically positioned ones.
7703         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7704         * redisplay.c (calculate_baseline): New, compute textual baseline.
7705         * redisplay.c (add_glyph_rune): Call them.
7706         * redisplay.c (create_text_block): Likewise.
7707         * redisplay.c (create_overlay_glyph_block): Likewise.
7708         * redisplay.c (add_margin_runes): Likewise.
7709         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7710
7711         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7712         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7713         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7714         * redisplay-msw.c (mswindows_output_string): Likewise.
7715         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7716         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7717         * redisplay-x.c (x_output_display_block): Likewise.
7718
7719 2002-03-28  Ben Wing  <ben@xemacs.org>
7720
7721         * redisplay.c: Fixed bug in redisplay
7722         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7723         and down of the lines, since they're bigger than the line
7724         size. (It was seen most obviously when there's a horizontal scroll
7725         bar, e.g. do C-h a glyph or something like that.) The problem was
7726         that the glyph-contrib-p setting on glyphs was ignored even if it
7727         was set properly, which it wasn't until now.
7728
7729 2002-04-24  Andy Piper  <andy@xemacs.org>
7730
7731         * lisp.h (Dynarr_end): Fix definition.
7732
7733 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7734
7735         * redisplay.c (mark_redisplay): Remove call to
7736         update_frame_window_mirror.
7737
7738 2001-11-15  Andy Piper  <andy@xemacs.org>
7739
7740         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7741         cygwin (again).
7742
7743 2002-02-13  Andy Piper  <andy@xemacs.org>
7744
7745         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7746         we did in fact enqueue the XM_MAPFRAME event.
7747
7748 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7749
7750         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7751         to fix problem switching between virtual desktops under virtuawin
7752         virtual window manager.
7753
7754 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7755
7756         * event-msw.c: Typo fix.
7757         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7758         magic XM_MAPFRAME event has been sent.
7759
7760 2001-11-23  Andy Piper  <andy@xemacs.org>
7761
7762         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7763
7764 2001-11-21  Andy Piper  <andy@xemacs.org>
7765
7766         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7767         mouse events outside the frame.
7768
7769 2002-03-20  Andy Piper  <andy@xemacs.org>
7770
7771         * menubar-msw.c (mswindows_popup_menu): warning removal.
7772         * dialog-msw.c (dialog_popped_down): ditto.
7773
7774 2001-12-11  Andy Piper  <andy@xemacs.org>
7775
7776         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7777         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7778         popup_up_p.
7779         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7780         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7781         * menubar-msw.c (mswindows_popup_menu): ditto.
7782
7783 2001-10-29  Andy Piper  <andy@xemacs.org>
7784
7785         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7786         cancels.
7787
7788 2002-01-03  Andy Piper  <andy@xemacs.org>
7789
7790         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7791         letters.
7792         (xrealpath): ditto.
7793
7794 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7795
7796         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7797         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7798         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7799         Detect and handle case where machine is set up for metric units
7800
7801 2002-04-02  Andy Piper  <andy@xemacs.org>
7802
7803         * dired-msw.c (mswindows_get_files): 
7804         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7805         completely handled by XEmacs. Suggested by Thomas Vogler
7806         <mail@thomas-vogler.de>.
7807
7808 2001-11-14  Andy Piper  <andy@xemacs.org>
7809
7810         * nt.c (REG_ROOT): change registry key to XEmacs.
7811
7812 2002-04-27  Andy Piper  <andy@xemacs.org>
7813
7814         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7815
7816 2002-04-26  Andy Piper  <andy@xemacs.org>
7817
7818         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7819         behavior.
7820
7821 2002-03-14  Mike Alexander  <mta@arbortext.com>
7822
7823         * event-msw.c (mswindows_unwait_process): New, remove process from
7824         wait list
7825         * process-nt.c (nt_finalize_process_data): Call
7826         mswindows_unwait_process
7827         * console-msw.h: Declare mswindows_unwait_process
7828
7829 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7830
7831         * editfns.c (Fdecode_time):
7832         (Fformat_time_string):
7833         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7834         (make_time): Warning elimination (change arg name).
7835
7836 2001-11-24  Andy Piper  <andy@xemacs.org>
7837
7838         * window.c (Fsplit_window): Doc return type.
7839
7840 2002-04-01  Andy Piper  <andy@xemacs.org>
7841
7842         * emacs.c (Fkill_emacs): Only output message box in interactive
7843         mode.
7844
7845 2002-04-26  Andy Piper  <andy@xemacs.org>
7846  
7847         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7848         cygwin.
7849
7850 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7851
7852         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7853         bit platform.
7854
7855 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7856
7857         * XEmacs 21.4.8 "Honest Recruiter" is released.
7858
7859 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7860
7861         Supersedes 2002-04-17 patch.
7862
7863         * process.h (PROCESS_LIVE_P): Use the process status as
7864         evidence of health, not the state of the input stream.
7865         (PROCESS_READABLE_P): Say if the process is readable
7866         from. (It may be dead nonetheless.)
7867         (CHECK_READABLE_PROCESS): Test for that condition.
7868
7869         * process.c (create_process): Use PROCESS_READABLE_P.
7870         (read_process_output, set_process_filter): Likewise.
7871
7872         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7873         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7874
7875         This code is #if 0'd, this is not the time to add new functions:
7876
7877         * process.c (Fprocess_readable_p): Report readability status.
7878         * process.c (Qprocess_readable_p): New, associated symbol...
7879         * process.c (syms_of_process): ... initialize it.
7880
7881 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7882
7883         * XEmacs 21.4.7 "Economic Science" is released.
7884
7885 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7886
7887         * process.h (PROCESS_LIVE_P): Use the process status as
7888         evidence of health, not the state of the input stream.
7889
7890 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7891
7892         * sysdep.c (sys_siglist): change "signum" to "signal"
7893
7894 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7895
7896         * s/darwin.h: New file.
7897         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7898         
7899 2002-04-23  Andreas Jaeger  <aj@suse.de>
7900
7901         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7902         which use lib64 for 64-bit libs.
7903         (START_FILES): Likewise.
7904
7905 2002-02-11  Mike Sperber  <mike@xemacs.org>
7906
7907         * device-x.c: 
7908         (x_IO_error_handler):
7909         (x_init_device): Temporarily keep device in static variable
7910         `device_being_initialized' so we can recover gracefully from
7911         internal XOpenDevice failure.  (XOpenDevice is documented to
7912         return NULL on failure, but sometimes calls the IO error handler
7913         instead.)
7914
7915 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7916
7917         * dired.c (Ffile_name_all_completions): Change documentation --
7918         remove reference to completion-ignored-extensions.
7919         * dired.c (vars_of_dired): Change documentation for
7920         completion-ignored-extensions -- remove reference to
7921         file-name-all-completions.
7922
7923 2002-03-06  Jerry James  <james@xemacs.org>
7924
7925         * emodules.c (emodules_load): Fix multiple loading of same module.
7926
7927 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7928         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7929         RTLD_LAZY to avoid incorrect symbol binding when using nested
7930         shared libraries on Solaris.
7931
7932 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7933
7934         * fileio.c (Ffind_file_name_handler): Improve docstring.
7935
7936 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7937
7938         * fns.c (Fmapconcat): Improve docstring.
7939
7940 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7941
7942         * device-gtk.c: Add prototype for
7943         emacs_gtk_selection_clear_event_handle.
7944         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7945         selection.  Setup signal handler for "selection_clear_event"
7946         (emacs_gtk_selection_clear_event_handle).
7947
7948         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7949         other applications owning the clipboard (based on
7950         x_handle_selection_clear).
7951
7952 2001-12-23  William M. Perry  <wmperry@gnu.org>
7953
7954         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7955         
7956 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7957
7958         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7959
7960 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7961
7962         * XEmacs 21.4.6 "Common Lisp" is released.
7963
7964 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7965
7966         * search.c (Freplace_match): Add missing sub-expression functionality.
7967
7968         * buffer.c (decode_buffer): Add a check for pointer type to
7969         decode_buffer, before gcc's CSE optimization reorders a
7970         dereference in front of the allow_string test.
7971
7972 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7973
7974         * window.c (window_loop): Fix bug that sometimes prevented
7975         window_loop() from iterating across multiple devices.  Also, at
7976         Ben's request, changed infloop-detecting code to abort() instead
7977         of silently terminating window_loop().
7978
7979 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7980
7981         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7982         * editfns.c (make_time): New function.
7983         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7984         * lisp.h (make_time): Prototype and comment it.
7985         * dired.c (wasteful_word_to_lisp): Deprecate.
7986         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7987
7988 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7989
7990         * fileio.c (auto_save_1): Use current coding system, not
7991         escape-quoted.
7992
7993 2001-11-13  Ben Wing  <ben@xemacs.org>
7994
7995         * window.c:
7996         * window.c (window_truncation_on):
7997         * window.c (syms_of_window):
7998         truncate-partial-width-windows should respect the buffer being
7999         displayed, like other redisplay vars.
8000
8001 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8002
8003         * event-stream.c (Fread_key_sequence): save current buffer.
8004
8005 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8006
8007         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8008
8009 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8010
8011         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8012
8013 2001-10-26  Mike Alexander  <mta@arbortext.com>
8014
8015         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8016
8017 2001-10-25  Andy Piper  <andy@xemacs.org>
8018
8019         * ChangeLog:
8020         * dialog-msw.c (handle_directory_proc): new function.
8021          (handle_directory_dialog_box): new fucntion.
8022          (handle_file_dialog_box): use new directory dialog support.
8023          (mswindows_make_dialog_box_internal): ditto.
8024         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8025         handling.
8026         (mswindows_find_frame): make global.
8027         * fileio.c (Fexpand_file_name): build fix.
8028         * general-slots.h: add Qdirectory.
8029         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8030         handling.
8031         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8032         cygwin not leaving win32 paths unchanged.
8033         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8034         cygwin runtime to do path conversion.
8035         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8036         (syms_of_win32): add new function.
8037         * window.c (window_loop): build fix.
8038
8039 2001-10-15  Andy Piper  <andy@xemacs.org>
8040
8041         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8042
8043 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8044
8045         * XEmacs 21.4.5 "Civil Service" is released.
8046
8047 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8048
8049         * glyphs-x.c: Force buffer-tab highlight update when moving the
8050         buffer, avoiding an ugly black border, used for keyboard focus
8051         indication, on a widget that can never have keyboard focus, the
8052         buffer tab.
8053
8054 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8055
8056         * process-unix.c (unix_open_multicast_group): Remove too much
8057         conversion between host and network byte order.
8058
8059 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8060
8061         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8062         before replacing them.
8063
8064         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8065         operation.
8066
8067         * src/window.c (undedicate_windows): Use it.
8068         * src/window.h: Add prototype.
8069
8070 2001-09-17  Ben Wing  <ben@xemacs.org>
8071
8072         * fileio.c (normalize_filename):
8073         * fileio.c (Fexpand_file_name):
8074         Fix various C++ compile errors in Andy's recent code.
8075         
8076         * callint.c (Fcall_interactively):
8077         * editfns.c (Ftemp_directory):
8078         * editfns.c (Fuser_full_name):
8079         * emacs.c (argmatch):
8080         * lread.c (locate_file_map_suffixes):
8081         * redisplay-x.c (x_ring_bell):
8082         Fix sign-compare warnings.
8083         
8084 2001-09-08  Andy Piper  <andy@xemacs.org>
8085
8086         * fileio.c (normalize_filename): copied from nt.c
8087         * (Ffile_name_directory): enable win32 paths under cygwin.
8088         * (Ffile_name_nondirectory): ditto.
8089         * (directory_file_name): ditto.
8090         * (Fexpand_file_name): ditto.
8091         * (Ffile_truename): ditto.
8092         * (Fsubstitute_in_file_name): ditto.
8093         * (Ffile_name_absolute_p): ditto.
8094         * (Ffile_readable_p): ditto.
8095
8096 2001-09-08  Andy Piper  <andy@xemacs.org>
8097
8098         * device-msw.c (mswindows_finish_init_device): remove dde
8099         initialization.
8100         * device-msw.c (mswindows_init_dde): factor out from
8101         mswindows_finish_init_device()
8102         * device-msw.c (init_mswindows_very_early): new function
8103         initialize but don't enable dde.
8104         * emacs.c (main_1): call init_mswindows_very_early.
8105         * event-msw.c:
8106         * event-msw.c (mswindows_dde_callback): only execute when we are
8107         ready.
8108         * symsinit.h: declare init_mswindows_very_early.
8109
8110 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8111
8112         [sjt: This has been in 21.5 for months with no complaints.]
8113
8114         * console.h (struct console_methods): Added flags member.
8115         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8116         (CONMETH_IMPL_FLAG):
8117         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8118         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8119
8120         * device.c (window_system_pixelated_geometry): Use the above macros.
8121
8122         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8123         implememntation flag.
8124         * device.h (DEVICE_DISPLAY_P): Use it.
8125
8126         * frame.c (delete_frame_internal): Use the above macro.
8127
8128         * redisplay.c (redisplay_device): Use it.
8129         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8130         (redisplay_frame): Ditto.
8131
8132         * device-msw.c (mswindows_device_implementation_flags): Removed.
8133         (msprinter_device_implementation_flags): Removed.
8134         (console_type_create_device_mswindows): Removed references to
8135         implementation_flags methods, set implementation flags here.
8136         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8137
8138         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8139         (console_type_create_device_gtk): Removed method declaration.
8140         Added commented out statement which semantically matches the
8141         commented out statement in the above removed method.
8142
8143 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8144
8145         The attached patch fixes a few warnings. 
8146
8147         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8148         * src/frame-gtk.c: guard against GNOME calls in GTK only
8149         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8150         * src/select-gtk.c: prototype lisp_to_time
8151
8152 2001-06-08  Ben Wing  <ben@xemacs.org>
8153
8154         ------ gc-in-window-procedure fixes ------
8155         
8156         * alloc.c:
8157         * alloc.c (struct post_gc_action):
8158         * alloc.c (register_post_gc_action):
8159         * alloc.c (run_post_gc_actions):
8160         * alloc.c (garbage_collect_1):
8161         Create "post-gc actions", to avoid those dreaded "GC during window
8162         procedure" problems.
8163
8164         * event-msw.c:
8165         Abort, clean and simple, when GC in window procedure.  We want
8166         to flush these puppies out.
8167
8168         * glyphs-msw.c:
8169         * glyphs-msw.c (finalize_destroy_window):
8170         * glyphs-msw.c (mswindows_finalize_image_instance):
8171         Use a post-gc action when destroying subwindows.
8172
8173         * lisp.h:
8174         Declare register_post_gc_action().
8175
8176         * scrollbar-msw.c:
8177         * scrollbar-msw.c (unshow_that_mofo):
8178         Use a post-gc action when unshowing scrollbar windows, if in gc.
8179
8180         * redisplay.c (mark_redisplay):
8181         Add comment about the utter evilness of what's going down here.
8182
8183         ------ cygwin setitimer fixes ------
8184         
8185         * Makefile.in.in (sheap_objs):
8186         * Makefile.in.in (profile_objs):
8187         * Makefile.in.in (objs):
8188         Compile profile.c only when HAVE_SETITIMER.
8189         
8190         * nt.c (mswindows_sigset):
8191         * nt.c (mswindows_sighold):
8192         * nt.c (mswindows_sigrelse):
8193         * nt.c (mswindows_sigpause):
8194         * nt.c (mswindows_raise):
8195         * nt.c (close_file_data):
8196         Style fixes.
8197         
8198         * nt.c:
8199         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8200         
8201         * profile.c:
8202         * profile.c (Fstart_profiling):
8203         * profile.c (Fstop_profiling):
8204         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8205         instead of just plain setitimer().
8206         
8207         * signal.c:
8208         * signal.c (set_one_shot_timer):
8209         * signal.c (alarm):
8210         Define qxe_setitimer() as an encapsulation around setitimer() --
8211         call setitimer() directly unless Cygwin or MS Win, in which case
8212         we use our simulated version in win32.c.
8213         
8214         * systime.h:
8215         * systime.h (struct itimerval):
8216         * systime.h (ITIMER_REAL):
8217         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8218         comment about "qxe" and the policy regarding encapsulation.
8219
8220         * win32.c:
8221         * win32.c (setitimer_helper_proc):
8222         * win32.c (setitimer_helper_period):
8223         * win32.c (setitimer_helper):
8224         * win32.c (mswindows_setitimer):
8225         Move setitimer() emulation here, so Cygwin can use it.
8226         Rename a couple of functions and variables to be longer and more
8227         descriptive.  In setitimer_helper_proc(), send the signal
8228         using either mswindows_raise() or (on Cygwin) kill().  If for
8229         some reason we are still getting lockups, we'll change the kill()
8230         to directly invoke the signal handlers.
8231
8232         ------ windows shell fixes ------
8233         
8234         * callproc.c:
8235         * ntproc.c:
8236         Comments about how these two files must die.
8237
8238         * callproc.c (init_callproc):
8239         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8240         not just COMSPEC. (more correct and closer to FSF.) Don't
8241         force a value for SHELL into the environment. (Comments added
8242         to explain why not.)
8243         
8244         * nt.c (init_user_info):
8245         Don't shove a fabricated SHELL into the environment.  See above.
8246
8247 2001-06-01  Ben Wing  <ben@xemacs.org>
8248
8249         * Makefile.in.in (ldflags):
8250         eliminate that pesky "defaulting to 00401000" warning.
8251         * nt.h:
8252         eliminate warnings.
8253
8254 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8255
8256         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8257         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8258
8259 2001-04-24  Jerry James <james@xemacs.org>
8260
8261         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8262         correct order.
8263
8264 2001-06-01  Ben Wing  <ben@xemacs.org>
8265
8266         * event-msw.c (debug_mswin_messages):
8267         conditionalize the messages that were causing compile errors.
8268         (if only macros could generate #ifdef statements ...)
8269
8270 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8271
8272         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8273
8274 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8275
8276         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8277
8278 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8279
8280         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8281         * process-unix.c (unix_canonicalize_host_name):
8282         sysdep.c (init_system_name):
8283         Use it to conditionally support IPv6 canonicalization.
8284
8285 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8286
8287         * event-msw.c:
8288         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8289
8290 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8291
8292         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8293         attempt is made to scroll when no scroll bar is available.
8294
8295 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8296
8297         * input-method-motif.c (XIM_delete_frame): New callback.
8298         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8299         got deleted from 21.4.3.)
8300
8301 2001-06-01  Ben Wing  <ben@xemacs.org>
8302
8303         * nt.c (mswindows_utime):
8304         * nt.c (close_file_data):
8305         fix off-by-one-indirection error.
8306
8307 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8308
8309         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8310         because set_file_times() now takes Lisp_Object path, instead of
8311         char*.
8312         * nt.c: Include buffer.h.
8313         * nt.c (convert_from_time_t): New.
8314         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8315         not set mtime correctly.
8316         * nt.h: Declare mswindows_utime().
8317         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8318         path, instead of char*.
8319         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8320
8321 2001-05-30  Ben Wing  <ben@xemacs.org>
8322
8323         For 21.4:
8324
8325         (Stephen, just take all event-msw.c patches.  This includes
8326         the "iconify" fix below.)
8327
8328         * event-msw.c:
8329         * event-msw.c (mswindows_dequeue_dispatch_event):
8330         * event-msw.c (assert):
8331         * event-msw.c (emacs_mswindows_quit_p):
8332         * event-msw.c (debug_mswin_messages):
8333         * event-msw.c (debug_output_mswin_message):
8334         * event-msw.c (vars_of_event_mswindows):
8335         Fix yet more problems with C-g handling.
8336         Implement debug-mswindows-events.
8337         
8338 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8339
8340         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8341         
8342 2001-05-23  Ben Wing  <ben@xemacs.org>
8343
8344         * event-msw.c (winsock_writer):
8345         * event-msw.c (winsock_closer):
8346         prior kludgy code was clobbering the buffer, thinking it was
8347         "unused" space to store an unneeded return value; instead, use
8348         the variable we've already got staring us in the face.
8349
8350 2001-05-17  Andy Piper  <andy@xemacs.org>
8351
8352         * sysfile.h: don't assume that file attributes are boolean
8353
8354 2001-05-23  Ben Wing  <ben@xemacs.org>
8355
8356         * device-msw.c (msprinter_init_device):
8357         signal an error rather than crash with an unavailable network
8358         printer (from Mike Alexander).
8359         
8360         * event-msw.c:
8361         * event-msw.c (struct winsock_stream):
8362         * event-msw.c (winsock_writer):
8363         * event-msw.c (winsock_closer):
8364         * event-msw.c (make_winsock_stream_1):
8365         cleanup headers.  fix (hopefully) an error with data corruption
8366         when sending to a network connection.
8367
8368         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8369         to handle the ~user prefix by (a) always assuming we're referencing
8370         ourselves and not even verifying the user -- hence any file with
8371         a tilde as its first char is invalid! (b) if there wasn't a slash
8372         following the filename, the pointer was set *past* the end of
8373         file and we started reading from uninitialized memory.  Now we
8374         simply treat these as files, always.
8375
8376         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8377         
8378 2001-05-19  Ben Wing  <ben@xemacs.org>
8379
8380         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8381
8382         * process-nt.c:
8383         * process-nt.c (vars_of_process_nt):
8384         remove unused mswindows-quote-process-args.  rec for 21.4.
8385         
8386 2001-05-12  Ben Wing  <ben@xemacs.org>
8387
8388         * event-msw.c (mswindows_dde_callback):
8389         * event-msw.c (mswindows_wnd_proc):
8390         eliminate cygwin warnings.
8391
8392 2001-05-06  Ben Wing  <ben@xemacs.org>
8393
8394         * console-msw.h:
8395         * device-msw.c:
8396         * device-msw.c (print_dialog_worker):
8397         * device-msw.c (mswindows_handle_print_dialog_box):
8398         * device-msw.c (syms_of_device_mswindows):
8399         * dialog-msw.c (mswindows_make_dialog_box_internal):
8400         * general-slots.h:
8401         implement printing the selection when it's selected.
8402
8403 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8404
8405         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8406
8407 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8408
8409         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8410         EMACS_INT is signed.
8411
8412 2001-04-15  Michael Lausch  <mla@1012surf.net>
8413
8414         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8415         gtk_widget_request_size() to give scrollbar >0 width for
8416         GTK >1.2.8.
8417
8418 2001-05-30  William M. Perry  <wmperry@gnu.org>
8419
8420         * event-gtk.c: Check for buttons as modifier keys.
8421
8422 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8423
8424         * s\mingw32.h:
8425         Properly find MinGW's <process.h> inside Cygwin's restructured
8426         include directories.  Don't try to include <cygwin/version.h>
8427         since we are dropping support for MinGW in versions of Cygwin
8428         earlier than b21.
8429         * nt.c:
8430         Drop support for MinGW in versions of Cygwin before b21.
8431         * sysdep.c:
8432         Properly find MinGW's <process.h> inside Cygwin's restructured
8433         include directories.
8434         * syswindows.h:
8435         Drop support for MinGW in versions of Cygwin before b21.
8436         * unexcw.c:
8437         Even though a.out.h is no longer detected by configure, allow
8438         MinGW to use it until we figure out how to do the job with Win32.
8439
8440 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8441
8442         * syntax.c (find_start_of_comment):
8443         Fix `unbalanced parentheses' bug when dealing with mixed comment
8444         styles in c++/java/etc. mode
8445
8446 2001-05-29  Mike Alexander  <mta@arbortext.com>
8447
8448         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8449         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8450
8451 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8452
8453         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8454
8455 2001-03-31  Mike Sperber <mike@xemacs.org>
8456
8457         * search.c (Freplace_match): Support FSF-style specification of
8458         match subexpression when applied to a buffer.
8459
8460 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8461
8462         * event-stream.c (is_scrollbar_event): add missing semicolon
8463
8464 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8465
8466         * Makefile.in.in: Use TAR macro instead of hardcoding
8467           tar.  Allows use of GNU tar instead of system tar
8468
8469 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8470
8471         * event-stream.c (is_scrollbar_event): add missing semicolon
8472
8473 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8474
8475         * XEmacs 21.4.3 "Academic Rigor" is released.
8476
8477 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8478
8479         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8480
8481 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8482
8483         * buffer.c (Vcase_fold_search): Remove obsolete
8484           comment about non ASCII case-fold-search.  This
8485           bug has been fixed by case-table changes.
8486
8487 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8488
8489         * event-msw.c: Restore include of events-mod.h.
8490
8491 2001-04-22   zhaoway  <zw@debian.org>
8492
8493         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8494         !HAVE_SCROLLBARS.
8495
8496 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8497
8498         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8499
8500 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8501
8502         * mule-charset.c (Fmake_charset): Add missing else.
8503
8504 2001-04-23  Ben Wing  <ben@xemacs.org>
8505
8506         * event-msw.c (FAKE_MOD_QUIT):
8507         * event-msw.c (mswindows_dequeue_dispatch_event):
8508         * event-msw.c (mswindows_wnd_proc):
8509         * event-msw.c (emacs_mswindows_quit_p):
8510         Get critical quit working.
8511
8512 2001-05-05  Ben Wing  <ben@xemacs.org>
8513
8514         * console-msw.h:
8515         * device-msw.c:
8516         * device-msw.c (mswindows_get_default_margin):
8517         * frame-msw.c (mswindows_size_frame_internal):
8518         * frame-msw.c (msprinter_init_frame_1):
8519         * frame-msw.c (vars_of_frame_mswindows):
8520         Change top/bottom margin defaults to 0.5 inches.
8521
8522 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8523
8524         Fix link error with gcc 3.0 on Linux.
8525         * terminfo.c (UP): Remove.
8526         * terminfo.c (BC): Remove.
8527         * terminfo.c (PC): Remove.
8528         They weren't used, and in any case, these symbols should be
8529         defined in the *library*.
8530
8531 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8532
8533         * s/aix4.h: Fix crash with xlc -O3.
8534         Improve comment explaining how -O3 works.
8535
8536 2001-04-15  Ben Wing  <ben@xemacs.org>
8537
8538         * event-stream.c:
8539         * event-stream.c (Fnext_event):
8540         * event-stream.c (is_scrollbar_event):
8541         * event-stream.c (execute_command_event):
8542         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8543         crash' problem.  His fix introduces other problems.  We filter
8544         out scrollbar events specifically, making them somewhat invisible
8545         to command-building, and not appearing in `this-command-keys'.
8546         More work is still needed (see comments in event-stream.c), but
8547         this fixes all the major problems.
8548
8549 2001-04-20  Ben Wing  <ben@xemacs.org>
8550
8551         * .cvsignore: Added stuff for Windows.
8552
8553 2001-04-28  Ben Wing  <ben@xemacs.org>
8554
8555         * buffer.c (Ferase_buffer):
8556         * editfns.c (buffer_insert1):
8557         * editfns.c (Finsert_before_markers):
8558         * editfns.c (Finsert_string):
8559         * editfns.c (Finsert_char):
8560         * editfns.c (Fdelete_region):
8561         * editfns.c (Fwiden):
8562         * editfns.c (Fnarrow_to_region):
8563         remove bogus lines setting zmacs_region_stays to 0.
8564         
8565 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8566
8567         * process-unix.c (unix_open_network_stream): If connect() fails
8568         invalidate file descriptor after closing it.
8569
8570 2001-03-08  Mike Alexander  <mta@arbortext.com>
8571
8572         * event-msw.c (mswindows_need_event_in_modal_loop):
8573         Don't dispatch a message if we didn't get one.
8574         (mswindows_need_event):
8575         Terminate the correct process when one exits instead of the first
8576         one on Vprocess_list and look for process termination when in
8577         mswindows_protect_modal_loop.
8578
8579 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8580
8581         * XEmacs 21.4.1 "Copyleft" is released.
8582
8583 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8584
8585         * input-method-motif.c (XIM_delete_frame): New callback.
8586         (XIM_init_frame): Register it.
8587
8588 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8589
8590         * XEmacs 21.4.0 "Solid Vapor" is released.
8591
8592 2001-04-15  Ben Wing  <ben@xemacs.org>
8593
8594         * cmdloop.c (call_command_loop):
8595         Fix braino in bit-rotting code.
8596         
8597 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8598
8599         * extents.c (Fset_extent_endpoints): Force creation of extent info
8600         in buffer_or_string.
8601
8602         * extents.c (process_extents_for_insertion_mapper): Correctly
8603         check for open-open zero-length extents.
8604
8605 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8606
8607         * lisp.h: New typedefs Memory_count, Element_count.
8608         * regex.c:
8609         * regex.h:
8610         Sign-compare warning elimination: several unsigned -> signed.
8611         Based on work by Ben Wing <ben@xemacs.org>.
8612
8613 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8614
8615         * XEmacs 21.2.47 "Zephir" is released.
8616
8617 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8618
8619         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8620
8621 2001-04-03  Mike Sperber <mike@xemacs.org>
8622
8623         * search.c: Revert previous patch due because of release.
8624
8625 2001-03-30  Ben Wing  <ben@xemacs.org>
8626
8627         * s\cygwin32.h:
8628         Add missing killpg prototype.
8629
8630         * elhash.c:
8631         Add a comment about fixing problems when a new entry is added
8632         while mapping.
8633
8634         * frame-msw.c (mswindows_init_frame_1):
8635         Fix compile warnings.
8636
8637         * menubar.c (vars_of_menubar):
8638         Provide `menu-accelerator-support' to indicate that we properly
8639         support %_ in menu specifications, so that package code can
8640         conditionalize on this (and remove %_ from menu specifications
8641         on older versions).
8642
8643         * event-msw.c:
8644         * scrollbar-msw.c:
8645         * scrollbar-msw.c (can_scroll):
8646         * scrollbar-msw.h:
8647         Fix handling of mouse wheel under Windows to follow standards --
8648         now scrolls window under pointer, not selected window.
8649
8650 2001-03-31  Mike Sperber <mike@xemacs.org>
8651
8652         * search.c (Freplace_match): Support FSF-style specification of
8653         match subexpression when applied to a buffer.
8654
8655 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8656
8657         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8658         function to modify KEYMAP, so map over a copy of the hash table.
8659
8660 2001-03-21  Martin Buchholz <martin@xemacs.org>
8661
8662         * XEmacs 21.2.46 "Urania" is released.
8663
8664 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8665
8666         * realpath.c (xrealpath): Make file-truename work with symlinks to
8667         /cygdrive paths on cygwin. Always lowercase drive-letters on
8668         native windows.
8669         (cygwin_readlink): Don't try to find canonical filename unless
8670         file exists.
8671
8672 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8673
8674         * ChangeLog: Log GTK merge.
8675
8676         * dumper.c:
8677         * select-x.c:
8678         * specifier.c:
8679         * symeval.h:
8680         Revert gratuitous whitespace changes from GTK merge.
8681
8682         * emacs.c: Document end of complex #ifdef @ l. 1495.
8683
8684
8685 2001-03-12  Andy Piper  <andy@xemacs.org>
8686
8687         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8688         have to do likewise.
8689
8690 2001-03-12  Andy Piper  <andy@xemacs.org>
8691
8692         * sysdep.c: we only support mingw now.
8693
8694 2001-03-09  Andy Piper  <andy@xemacs.org>
8695
8696         * unexcw.c (copy_executable_and_dump_data_section): making approx
8697         overrun a warning only.
8698
8699 2001-03-10  William M. Perry  <wmperry@aventail.com>
8700
8701         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8702         satisfy Stephen's identical-after-cpp plea.
8703
8704 2001-03-02  Ben Wing  <ben@xemacs.org>
8705
8706         * cmds.c:
8707         * cmds.c (Fforward_char):
8708         * syntax.c:
8709         * window.c:
8710
8711         Augment documentation of the most common motion commands to make
8712         note of the shifted-motion support.
8713         
8714 2001-03-02  Ben Wing  <ben@xemacs.org>
8715
8716         * nt.c (mswindows_fstat):
8717         * nt.c (mswindows_stat):
8718         * search.c (boyer_moore):
8719         Fix compile warnings under Windows.
8720         
8721         * sysdep.c (sys_readdir):
8722         Fix buggy filename-conversion code under Mule.
8723
8724 2001-03-09  William M. Perry  <wmperry@aventail.com>
8725
8726         * Makefile.in.in:
8727         * config.h.in:
8728         * console.c:
8729         * console.h:
8730         * device.c:
8731         * device.h:
8732         * dragdrop.c:
8733         * emacs.c:
8734         * event-stream.c:
8735         * events.c:
8736         * events.h:
8737         * faces.c:
8738         * frame.h:
8739         * general-slots.h:
8740         * glyphs.c:
8741         * gutter.c:
8742         * inline.c:
8743         * lisp.h:
8744         * lrecord.h:
8745         * make-src-depend:
8746         * redisplay-output.c:
8747         * redisplay.c:
8748         * symsinit.h:
8749         * sysfile.h:
8750         * toolbar.c:
8751         * window.c:
8752         The Great GTK Merge.
8753
8754         * ChangeLog.GTK:
8755         * console-gtk.c:
8756         * console-gtk.h:
8757         * device-gtk.c:
8758         * emacs-marshals.c:
8759         * emacs-widget-accessors.c:
8760         * event-gtk.c:
8761         * frame-gtk.c:
8762         * gccache-gtk.c:
8763         * gccache-gtk.h:
8764         * glade.c:
8765         * glyphs-gtk.c:
8766         * glyphs-gtk.h:
8767         * gtk-glue.c:
8768         * gtk-xemacs.c:
8769         * gtk-xemacs.h:
8770         * gui-gtk.c:
8771         * gui-gtk.h:
8772         * menubar-gtk.c:
8773         * native-gtk-toolbar.c:
8774         * objects-gtk.c:
8775         * objects-gtk.h:
8776         * redisplay-gtk.c:
8777         * scrollbar-gtk.c:
8778         * scrollbar-gtk.h:
8779         * select-gtk.c:
8780         * toolbar-gtk.c:
8781         * ui-byhand.c:
8782         * ui-gtk.c:
8783         * ui-gtk.h:
8784         The Great GTK Merge: new files.
8785
8786 2001-02-26  Ben Wing  <ben@xemacs.org>
8787
8788         Reapplied Lstream change.
8789
8790 2001-02-26  Ben Wing  <ben@xemacs.org>
8791
8792         Undid the last change, since it is more controversial than I
8793         thought.  It should be back in at some point soon.
8794         
8795 2001-02-25  Ben Wing  <ben@xemacs.org>
8796
8797         * buffer.c:
8798         * callproc.c (Fold_call_process_internal):
8799         * event-msw.c (ntpipe_slurp_reader):
8800         * event-msw.c (ntpipe_shove_writer):
8801         * event-msw.c (winsock_reader):
8802         * event-msw.c (winsock_writer):
8803         * file-coding.c:
8804         * file-coding.c (detect_eol_type):
8805         * file-coding.c (detect_coding_type):
8806         * file-coding.c (determine_real_coding_system):
8807         * file-coding.c (Fdetect_coding_region):
8808         * file-coding.c (decoding_reader):
8809         * file-coding.c (decoding_writer):
8810         * file-coding.c (mule_decode):
8811         * file-coding.c (Fdecode_coding_region):
8812         * file-coding.c (encoding_reader):
8813         * file-coding.c (encoding_writer):
8814         * file-coding.c (mule_encode):
8815         * file-coding.c (Fencode_coding_region):
8816         * file-coding.c (detect_coding_sjis):
8817         * file-coding.c (decode_coding_sjis):
8818         * file-coding.c (encode_coding_sjis):
8819         * file-coding.c (detect_coding_big5):
8820         * file-coding.c (decode_coding_big5):
8821         * file-coding.c (encode_coding_big5):
8822         * file-coding.c (detect_coding_ucs4):
8823         * file-coding.c (decode_coding_ucs4):
8824         * file-coding.c (encode_coding_ucs4):
8825         * file-coding.c (detect_coding_utf8):
8826         * file-coding.c (decode_coding_utf8):
8827         * file-coding.c (encode_coding_utf8):
8828         * file-coding.c (detect_coding_iso2022):
8829         * file-coding.c (decode_coding_iso2022):
8830         * file-coding.c (encode_coding_iso2022):
8831         * file-coding.c (decode_coding_no_conversion):
8832         * file-coding.c (encode_coding_no_conversion):
8833         * glyphs-x.c (write_lisp_string_to_temp_file):
8834         * gpmevent.c (tty_get_foreign_selection):
8835         * lisp.h:
8836         * lstream.c:
8837         * lstream.c (Lstream_flush_out):
8838         * lstream.c (Lstream_adding):
8839         * lstream.c (Lstream_write_1):
8840         * lstream.c (Lstream_write):
8841         * lstream.c (Lstream_raw_read):
8842         * lstream.c (Lstream_read_more):
8843         * lstream.c (Lstream_read):
8844         * lstream.c (Lstream_unread):
8845         * lstream.c (Lstream_fputc):
8846         * lstream.c (stdio_reader):
8847         * lstream.c (stdio_writer):
8848         * lstream.c (filedesc_reader):
8849         * lstream.c (filedesc_writer):
8850         * lstream.c (lisp_string_reader):
8851         * lstream.c (struct fixed_buffer_stream):
8852         * lstream.c (make_fixed_buffer_input_stream):
8853         * lstream.c (make_fixed_buffer_output_stream):
8854         * lstream.c (fixed_buffer_reader):
8855         * lstream.c (fixed_buffer_writer):
8856         * lstream.c (struct resizing_buffer_stream):
8857         * lstream.c (resizing_buffer_writer):
8858         * lstream.c (dynarr_writer):
8859         * lstream.c (lisp_buffer_reader):
8860         * lstream.c (lisp_buffer_writer):
8861         * lstream.h:
8862         * lstream.h (lstream_implementation):
8863         * lstream.h (struct lstream):
8864         * md5.c (Fmd5):
8865         * process-nt.c (nt_send_process):
8866         * process-unix.c (unix_send_process):
8867         
8868         Correct Lstream lossage due to mixing of signed and unsigned
8869         quantities.  All Lstream uses of size_t and ssize_t are now a
8870         single signed data type Lstream_data_count.  This fixes problems
8871         under Windows with sending large quantities of data to a process,
8872         and may well fix other subtle bugs.
8873
8874 2001-02-23  Martin Buchholz <martin@xemacs.org>
8875
8876         * XEmacs 21.2.45 "Thelxepeia" is released.
8877
8878 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8879
8880         * lisp-union.h (XSETINT): 
8881         (XSETCHAR):
8882         (XSETOBJ): 
8883         Reverse previous change of 2001-02-06.
8884
8885 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8886
8887         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8888         buffers.
8889         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8890         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8891         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8892         * regex.c (POS_AS_IN_BUFFER): removed
8893         * regex.c (re_search_2):
8894         * regex.c (re_match_2):
8895         Don't use an offset of 1 when calculating buffer positions, since
8896         `BI_BUF_BEGV' does it already.
8897
8898 2001-02-18  Wim Dumon  <wim@easics.be>
8899
8900         * insdel.c (prepare_to_modify_buffer): Also check for
8901         supersession when clash-detection is enabled. 
8902
8903 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8904
8905         * regex.c (re_match_2_internal):
8906         Convert temp characters from 'const unsigned char' to 're_char'.
8907         Fix crashing bug with extended characters under mule.
8908         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8909         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8910         font-lock, pdump, and new syntax-table code.
8911         * syntax.c (find_start_of_comment):
8912         (find_end_of_comment):
8913         (forward-comment):
8914         Fix crashing bugs involving moving beyond end of buffer.
8915         * syntax.c (find_start_of_comment):
8916         Fixed logic to allow proper detection of cases where the same
8917         character is used to end both a two-char comment start and a
8918         two-char comment end sequence. Fixes `(forward-comment -1)'.
8919         * syntax.c (find_start_of_comment):
8920         Return position just past last comment-end character for all cases
8921         (previously was only done for two-char comment-end sequences).
8922         * syntax.c (forward-comment):
8923         Take value returned from `find_end_of_comment', rather than
8924         incrementing it.
8925         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8926         Properly deal with BUFFERP (syntax_cache.object)
8927
8928 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8929
8930         * alloc.c (Fgarbage_collect): 
8931         * alloc.c (make_bit_vector_from_byte_vector):
8932         -Wsign-compare-correctness.
8933
8934 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8935
8936         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8937         (XSETCHAR): Likewise.
8938         (XSETOBJ): Likewise.
8939
8940 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8941
8942         * mule-canna.c (canna-func-delete_previous): 
8943         Rename to canna-func-delete-previous.
8944
8945 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8946
8947         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8948
8949 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8950
8951         * font-lock.c (find_context): Fix C++ compile errors introduced by
8952         recent patch
8953
8954 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8955
8956         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8957         pragma, but earlier ones barf on the same pragma.
8958
8959 2001-02-06  Mike Sperber <mike@xemacs.org>
8960
8961         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8962         `configure-mule-lisp-directory'.
8963
8964 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8965
8966         Make sure dump-id.c is compiled in the same way as other .c's.
8967         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8968         * dump-id.h: Remove.
8969         * emacs.c: Move dump-id.h into dumper.h.
8970         * dumper.h: Move dump-id.h into dumper.h.
8971         * Makefile.in.in:
8972         Use standard .c.o rule for building dump-id.o.
8973         Remove preprocessor flags from link command.
8974         Add dump-id.o to ${otherobjs} if PDUMP.
8975
8976 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8977
8978         Port FSF 20.7 syntax table improvements.
8979         * syntax.c.
8980         * syntax.h.
8981
8982         Fixups for new syntax table stuff.
8983         * dired.c: Include syntax.c.
8984         (Fdirectory_files): Initialize regex_match_object and
8985         regex_emacs_buffer.
8986         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8987         and Fget_char_property.
8988
8989         Use ported FSF 20.7 syntax table improvements.
8990         * font-lock.c.
8991         * regex.c.
8992         * search.c.
8993         
8994 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8995
8996         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8997         Unixware's enum boolean from sys/types.h.
8998
8999 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9000
9001         Fix support for building with latest Purify.
9002         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9003         (PURIFY_FLAGS): Likewise.
9004
9005 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9006
9007         * fileio.c (lisp_string_set_file_times): New.
9008         * fileio.c (Fcopy_file): Use it.
9009         Fixes bug:
9010         (copy-file filename non-ascii-filename t t)
9011         ==> No such file or directory, non-ascii-filename
9012
9013 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9014
9015         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9016         USHRT_MAX seems clearer than ~0 anyways.
9017
9018 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9019
9020         dumper improvements.  Inspired by Olivier.
9021         * dumper.c (pdump_max_align): New.
9022         * dumper.c (pdump_add_entry): Use pdump_max_align.
9023         * dumper.c (pdump_get_entry_list): Likewise.
9024         * dumper.c (pdump_scan_by_alignment): Likewise.
9025         Don't iterate through unnecessary alignments.
9026         * dumper.c (pdump_file_get): No need to align result of malloc().
9027         * dumper.c (pdump_mallocadr): Remove.  
9028         The result of malloc() is guaranteed to be maximally aligned.
9029         * dumper.c: s/elmt/elt/g;
9030         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9031         * dumper.c (pdump_alert_undump_object): Likewise.
9032         * dumper.c (pdump_align_table): 
9033         Don't support alignments > 64.
9034         Store ALIGNOF's, not shift counts, in table.
9035
9036 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9037
9038         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9039         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9040         * systime.h: Use HAVE_UTIME.
9041         * sysdep.c (struct utimbuf): Remove.
9042         * sysdep.c (set_file_times): Prefer utime() to utimes().
9043         * config.h.in (HAVE_UTIME): New.
9044         * config.h.in (HAVE_UTIME_H): Remove.
9045         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9046
9047 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9048
9049         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9050
9051 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9052
9053         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9054
9055 2001-02-08  Martin Buchholz <martin@xemacs.org>
9056
9057         * XEmacs 21.2.44 "Thalia" is released.
9058
9059 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9060
9061         Fixes crashes in kill-emacs on some systems.
9062         * process-unix.c (unix_kill_child_process):
9063         It's OK for kill() to fail with ESRCH.
9064
9065 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9066
9067         Contortions to make .gdbinit tricks work on most systems.
9068         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9069         * alloc.c (dbg_valmask): Make non-const.
9070         * alloc.c (dbg_typemask): Make non-const.
9071         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9072         * alloc.c (dbg_valbits): Make non-const.
9073         * alloc.c (dbg_gctypebits): Make non-const.
9074         * .gdbinit (decode_object): Make it work with AIX cc.
9075
9076 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9077
9078         * elhash.c (make_general_lisp_hash_table):
9079         Use simpler and more efficient calloc to clear entries.
9080
9081 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9082
9083         * window.c (window_scroll): Work around an AIX C compiler bug.
9084         Fixes 'scroll-up' does nothing problem with xlC.
9085
9086 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9087
9088         * .gdbinit: Remove obsolete comment.
9089
9090 2001-01-31  Mike Alexander  <mta@arbortext.com>
9091
9092         * select.c (Fown_selection_internal): Set owned_p for device
9093         method correctly.
9094
9095 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9096
9097         Port to g++ 2.97.
9098         "not" cannot be used as a macro name as it is an operator in C++
9099         * config.h.in: Stop #defining `not'.
9100         * chartab.c (check_category_char): not ==> not_p
9101         * chartab.h: Likewise.
9102         * regex.c (re_match_2_internal): Likewise.
9103
9104 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9105
9106         * lisp-disunion.h: Fix up comments.
9107
9108 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9109
9110         * keymap.c (define_key_check_and_coerce_keysym):
9111         (syms_of_keymap):
9112         Support mouse-6 and mouse-7 bindings in the obvious way.
9113
9114 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9115
9116         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9117
9118 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9119
9120         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9121         Previous patch missed DEFVAR_INT_MAGIC.
9122         Make sure future DEFVAR_foo use correct types.
9123         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9124         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9125         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9126         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9127         * (DEFVAR_INT): Likewise.
9128         * redisplay.c (vertical_clip): Should be of type Fixnum.
9129         * redisplay.c (horizontal_clip): Likewise.
9130         * lisp.h (dump_add_opaque_int): New.
9131         (dump_add_opaque_fixnum): New.
9132
9133 2001-01-29  Andy Piper  <andy@xemacs.org>
9134
9135         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9136         since they can be eval'ed
9137
9138 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9139
9140         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9141         Oops, XEmacs redefines `class'.  Use `typename' instead.
9142
9143 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9144
9145         * dumper.c: Fix C++ compile errors.
9146
9147 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9148
9149         * tparam.c: Use correct prototypes.
9150
9151 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9152
9153         * sysproc.h: #include util.h for NetBSD's openpty.
9154
9155 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9156
9157         More 64-bit correctness.
9158         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9159         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9160         Fix up comments.
9161         This finally finishes the 64-bit SGI port.
9162         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9163         * symbols.c: Fix up comments and type casts.
9164         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9165         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9166         * symeval.h (Fixnum): New type.
9167         * symeval.h (symbol_value_type): Fix up comment.
9168
9169         * commands.h:
9170         * nt.c:
9171         * emacs.c:
9172         * data.c:
9173         * redisplay.c:
9174         * abbrev.c:
9175         * dired-msw.c:
9176         * event-Xt.c:
9177         * eldap.c:
9178         * window.c:
9179         * sound.c:
9180         * event-stream.c:
9181         * eval.c:
9182         * buffer.c:
9183         * mule-canna.c: A million DEFVAR_INTs here...
9184         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9185         * extents.c:
9186         * cmdloop.c:
9187         * lisp.h:
9188         * select-x.c:
9189         * console-x.h:
9190         * event-msw.c:
9191         * mule-wnnfns.c:
9192         * hpplay.c:
9193         * ralloc.c:
9194         * alloc.c:
9195         * keymap.c:
9196         * profile.c:
9197         s/int/Fixnum/g in DEFVAR_INT declarations.
9198
9199 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9200
9201         Port pdump to SGI alignment-sensitive environment.
9202         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9203         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9204         properly aligned.
9205         Define and use aligned reading and writing macros.
9206         Use buffered stdio instead of posix i/o for faster dumping.
9207         Eliminate kludgy 256 byte space for header.
9208         Read and write from dump file using structs for alignment safety.
9209         * dumper.c (pdump_align_stream): New.
9210         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9211         * dumper.c (PDUMP_READ_ALIGNED): New.
9212         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9213         * dumper.c (pdump_static_Lisp_Object): New struct.
9214         * dumper.c (pdump_static_pointer): New struct.
9215         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9216         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9217         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9218         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9219
9220         * dumper.c (pdump_backtrace):
9221         * dumper.c (pdump_get_indirect_count):
9222         * dumper.c (pdump_register_object):
9223         * dumper.c (pdump_register_struct):
9224         * dumper.c (pdump_reloc_one):
9225         * dumper.c (pdump_scan_by_alignment):
9226         * dumper.c (pdump_dump_from_root_struct_ptrs):
9227         * dumper.c (pdump_dump_opaques):
9228         * dumper.c (pdump_dump_rtables):
9229         * dumper.c (pdump_dump_from_root_objects):
9230         * dumper.c (pdump):
9231         * dumper.c (pdump_load_finish):
9232         Use aligned reading and writing.
9233
9234         * dumper.c (pdump_free): Make static.
9235         * dumper.c (pdump_hFile): Likewise.
9236         * dumper.c (pdump_hMap): Likewise.
9237
9238 2001-01-26  Martin Buchholz <martin@xemacs.org>
9239
9240         * XEmacs 21.2.43 "Terspichore" is released.
9241
9242 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9243
9244         Type fiddling for window_config.saved_windows_count
9245         * window.c (struct window_config): 
9246         Make saved_windows_count member unsigned.
9247         * window.c (sizeof_window_config_for_n_windows): 
9248         Make parameter unsigned.
9249         * window.c (mark_window_config):
9250         * window.c (window_config_equal):
9251         * window.c (free_window_configuration):
9252         * window.c (Fset_window_configuration):
9253         * window.c (count_windows):
9254         * window.c (Fcurrent_window_configuration):
9255         * window.c (reinit_vars_of_window):
9256         Update all callers and users.
9257
9258 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9259
9260         Alignment correctness for flexible arrays.
9261         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9262         Make alignment-correct. Add interesting comments.
9263         * alloc.c (size_vector):
9264         * alloc.c (make_vector_internal):
9265         * alloc.c (make_bit_vector_internal):
9266         * alloc.c (sweep_bit_vectors_1):
9267         * fns.c (size_bit_vector):
9268         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9269         * window.c (sizeof_window_config_for_n_windows): 
9270         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9271
9272 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9273
9274         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9275
9276 2001-01-23  Andy Piper  <andy@xemacs.org>
9277
9278         * select.c (Fown_selection_internal): pass owned_p
9279
9280         * select-msw.c (mswindows_own_selection): New Signature.
9281
9282         * console.h (struct console_methods): add owned_p to
9283         _own_selection.
9284
9285         * select-x.c (x_own_selection): pass owned_p
9286         (hack_motif_clipboard_selection): use owned_p
9287         (vars_of_select_x): new variable -
9288         x_selection_strict_motif_ownership.
9289
9290 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9291
9292         * specifier.h (specifier_data_offset): Remove pointless parens.
9293         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9294
9295 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9296
9297         Make Lisp_Object sizeof methods be alignment-correct.
9298         pdump must restore objects to the same alignment as the C compiler
9299         assumes.  It really matters on SGIs.
9300         * lstream.c (aligned_sizeof_lstream): New.
9301         (sizeof_lstream): Use aligned_sizeof_lstream.
9302         (Lstream_new): Likewise.
9303         * opaque.c (aligned_sizeof_opaque): New.
9304         (sizeof_opaque): Use aligned_sizeof_opaque.
9305         (make_opaque): Likewise.
9306         * specifier.c (aligned_sizeof_specifier): New.
9307         (sizeof_specifier): Use aligned_sizeof_specifier.
9308         (make_specifier_internal): Likewise.
9309
9310 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9311
9312         * lstream.h (struct lstream): Use max_align_t for trailing data.
9313         * specifier.h (struct Lisp_Specifier): Likewise.
9314
9315 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9316
9317         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9318         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9319         (CCL_SUSPEND): Likewise.
9320         (CCL_INVALID_CMD): Likewise.
9321         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9322         (ccl_driver): Likewise.
9323         (CCL_WRITE_CHAR): Macro hygiene.
9324         (CCL_WRITE_STRING): Macro hygiene.
9325
9326 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9327
9328         Port "portable" dumper to SunOS 4 and HP-UX.
9329         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9330         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9331         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9332
9333 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9334
9335         * lisp.h (ALIGNOF): A better definition for C++.
9336
9337 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9338
9339         Macro hygiene.
9340         Fix printf warnings: int format, long int arg.
9341         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9342         (PUSH_FAILURE_POINT): Use correct printf formats.
9343         (POP_FAILURE_POINT): Use correct printf formats.  
9344         Use do {...} while (0)
9345
9346 2001-01-20  Martin Buchholz <martin@xemacs.org>
9347
9348         * XEmacs 21.2.42 "Poseidon" is released.
9349
9350 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9351
9352         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9353
9354 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9355
9356         De-kludgify FIXED_TYPE free list frobbing.
9357         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9358         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9359         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9360         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9361         * alloc.c (LRECORD_FREE_P): New.
9362         * alloc.c (MARK_LRECORD_AS_FREE): New.
9363         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9364         * alloc.c (STRUCT_FREE_P): Deleted.
9365         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9366         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9367         * alloc.c (STRING_CHARS_FREE_P): New.
9368         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9369         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9370         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9371         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9372         * alloc.c (resize_string): Use new definitions.
9373         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9374         * alloc.c (verify_string_chars_integrity): Use new definitions.
9375         * alloc.c (compact_string_chars): Use new definitions.
9376         * alloc.c: Update monster comments.
9377         * lrecord.h (lrecord_type): Add some new lrecord types for
9378         alloc.c's use.
9379
9380 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9381
9382         Improve alignment hackery.
9383         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9384         (max_align_t): Moved from opaque.h - general purpose.
9385         (ALIGN_PTR): Use size_t, not long.
9386         * opaque.h (max_align_t): Move to lisp.h.
9387
9388 2001-01-18  Norbert Koch  <nk@LF.net>
9389
9390         * gui.h: Fix and add prototypes to fix build problems.
9391
9392 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9393
9394         temacs is going away, so `dump-temacs' is now a bad name.
9395         * .dbxrc (dump-temacs): Rename to `dmp'.
9396         * .gdbinit (dump-temacs): Rename to `dmp'.
9397
9398 2001-01-17  Andy Piper  <andy@xemacs.org>
9399
9400         * glyphs.c (print_image_instance): comment to make martin happy.
9401
9402         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9403         change.
9404
9405         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9406         activation.
9407         (mswindows_tab_control_redisplay): warning suppression.
9408
9409         * glyphs-widget.c (widget_update): re-write to cope with updated
9410         items.
9411         (widget_instantiate): use new gui_item functions.
9412         (tab_control_update): deleted.
9413         (progress_gauge_update): deleted.
9414         (image_instantiator_progress_guage): take out update reference.
9415         (image_instantiator_tree_view): ditto.
9416         (image_instantiator_tab_control): ditto.
9417
9418         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9419         Right the new way.
9420         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9421         return whether anything was changed.
9422         (update_gui_item_keywords): as it sounds.
9423
9424         * gui.h: declare widget_gui_parse_item_keywords.
9425
9426         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9427         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9428
9429 2001-01-17  Martin Buchholz <martin@xemacs.org>
9430
9431         * XEmacs 21.2.41 "Polyhymnia" is released.
9432
9433 2001-01-16  Didier Verna  <didier@xemacs.org>
9434
9435         * glyphs.c (image_instantiate): don't use fallbacks when
9436         instantiating a face's background pixmap by inheritance.
9437
9438 2001-01-14  Mike Sperber <mike@xemacs.org>
9439
9440         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9441         Conditionalize accordingly.
9442
9443 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9444
9445         * dumper.c (pdump_file_get): Fix a compiler warning.
9446
9447 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9448
9449         Make Purify happy when pdumping.
9450         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9451         iniitalizing all bits of new lisp object memory.
9452         * symbols.c (Fmake_local_variable): Likewise.
9453         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9454         * symbols.c (Fdefvaralias): Likewise.
9455         * mule-charset.c (vars_of_mule_charset): Likewise.
9456
9457 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9458         Add the `-nd' flag when running pre-dump operations under the debugger.
9459         * .dbxrc (run-temacs): Add `-nd'.
9460         * .dbxrc (update-elc): Likewise.
9461         * .dbxrc (dump-temacs): Likewise.
9462         * .gdbinit (run-temacs): Likewise.
9463         * .gdbinit (check-temacs): Likewise.
9464         * .gdbinit (update-elc): Likewise.
9465         * .gdbinit (dump-temacs): Likewise.
9466
9467 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9468
9469         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9470         export OBJECT_MODE=64
9471         configure --pdump --use-union-type=no
9472         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9473         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9474
9475         * miscplay.c (sndcnv8U_2mono):
9476         Avoid two uses of `++' in the same expression.
9477         Suppresses a GCC warning.
9478
9479 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9480
9481         Make sure future compilers don't miscompile alloc.c.
9482         * alloc.c:
9483         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9484         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9485
9486 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9487
9488         * dumper.c: A little post-pdump-rename comment fixup.
9489
9490 2001-01-09  Jerry James  <james@eecs.ku.edu>
9491
9492         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9493
9494 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9495
9496         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9497         script:
9498         #!/bin/sh
9499         replace_symbol () {
9500           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9501         }
9502
9503         replace_symbol pdump_wire_lists pdump_weak_object_chains
9504         replace_symbol pdump_wire_list dump_add_weak_object_chain
9505
9506         replace_symbol pdump_wires pdump_root_objects
9507         replace_symbol pdump_wire dump_add_root_object
9508
9509         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9510         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9511
9512         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9513         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9514         replace_symbol dumpstructinfo pdump_root_struct_ptr
9515         replace_symbol dumpstruct dump_add_root_struct_ptr
9516
9517         replace_symbol dumpopaque dump_add_opaque
9518         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9519         replace_symbol dumpopaqueinfos pdump_opaques
9520         replace_symbol dumpopaqueinfo pdump_opaque
9521
9522         replace_symbol nb_structdump nb_root_struct_ptrs
9523         replace_symbol nb_opaquedump nb_opaques
9524
9525         replace_symbol align_table pdump_align_table
9526         replace_symbol dump_header pdump_header
9527
9528         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9529         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9530
9531
9532 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9533
9534         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9535         optimizing bytecount_to_charcount().
9536
9537 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9538
9539         * config.h.in:
9540         (HAVE_DLFCN_H): Removed.
9541         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9542
9543 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9544
9545         Portable dumper maintainability improvements.
9546         * alloc.c (staticpro):
9547         * alloc.c (staticpro_nodump):
9548         * alloc.c (garbage_collect_1):
9549         * alloc.c (reinit_alloc_once_early):
9550         * alloc.c (init_alloc_once_early):
9551         * alloc.c: Move dumper functions to alloc.c.
9552         * dumper.c (pdump_backtrace):
9553         * dumper.c (pdump_dump_structs):
9554         * dumper.c (pdump_dump_opaques):
9555         * dumper.c (pdump_dump_rtables):
9556         * dumper.c (pdump_dump_wired):
9557         * dumper.c (pdump):
9558         * dumper.c (pdump_load_check):
9559         * dumper.c (pdump_load_finish):
9560         * dumper.c (pdump_file_unmap):
9561         * dumper.c (pdump_file_get):
9562         * dumper.c (pdump_resource_free):
9563         * dumper.c (pdump_resource_get):
9564         * dumper.c (pdump_file_free):
9565         * dumper.c (pdump_file_try):
9566         * dumper.c (pdump_load):
9567         Remove fixed size limits on staticpro(), staticpro_nodump(),
9568         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9569         Remove custom code for dumping lrecord_implementations_table - use
9570         dumpopaque instead.
9571         Remove (most of the) custom code for dumping staticpros - dump it
9572         like any other dynarr.
9573
9574         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9575         * dumper.c: Moved functions from alloc.c.
9576         * alloc.c (dumpstruct): Moved to dumper.c.
9577         * alloc.c (dumpopaque): Likewise.
9578         * alloc.c (pdump_wire): Likewise.
9579         * alloc.c (pdump_wire_list): Likewise.
9580
9581         * lisp.h (Dynarr_sizeof): New.
9582         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9583         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9584         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9585
9586         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9587         * lisp.h (dumpopaque): ditto.
9588         * lisp.h (pdump_wire): ditto.
9589         * lisp.h (pdump_wire_list): ditto.
9590
9591 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9592
9593         * make-src-depend (PrintPatternDeps):
9594         Use `sort' to make output independent of perl version.
9595
9596 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9597
9598         Port to Netbsd 1.5.
9599         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9600         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9601
9602 2001-01-03  Didier Verna  <didier@xemacs.org>
9603
9604         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9605         that `focus_frame' is alive before thinking of calling
9606         `redisplay_redraw_cursor' on it.
9607
9608 2001-01-08  Martin Buchholz <martin@xemacs.org>
9609
9610         * XEmacs 21.2.40 is released.
9611
9612 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9613
9614         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9615
9616 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9617
9618         * alloc.c (dbg_valmask): Make const.
9619         * alloc.c (dbg_typemask): Make const.
9620         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9621         * alloc.c (dbg_valbits): Make const.
9622         * alloc.c (dbg_gctypebits): Make const.
9623
9624 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9625
9626         * redisplay-x.c (x_bevel_area):
9627         redisplay.h (struct rune):
9628         Typo fixes in comments.
9629
9630 2001-01-05  Andy Piper  <andy@xemacs.org>
9631
9632         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9633         adjustment.
9634
9635         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9636
9637 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9638
9639         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9640
9641         * mule-ccl.c (stack_idx_of_map_multiple):
9642         Non const global data must not be initialized!
9643         Found by MIYASHITA Hisashi.
9644
9645 2001-01-02  Andy Piper  <andy@xemacs.org>
9646
9647         * frame.c (change_frame_size): make sure frame size is always
9648         marked as changed.
9649
9650         * glyphs.c (image_instance_layout): minor code reuse.
9651
9652         * window.c (Fcurrent_window_configuration): revert previous
9653         change.
9654
9655 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9656
9657         * glyphs.h:
9658         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9659
9660 2000-12-31  Andy Piper  <andy@xemacs.org>
9661
9662         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9663         when widget gets unmapped.
9664
9665         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9666         function. Make sure widgets losing focus don't just drop it.
9667         (handle_focus_event_1): record the widget with focus.
9668
9669 2000-12-31  Andy Piper  <andy@xemacs.org>
9670
9671         * window.c (allocate_window): use
9672         make_image_instance_cache_hash_table.
9673         (make_dummy_parent): ditto.
9674         (Fset_window_configuration): ditto.
9675
9676         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9677
9678         * glyphs.c (process_image_string_instantiator): use
9679         INSTANTIATOR_TYPE.
9680         (get_image_instantiator_governing_domain): ditto.
9681         (normalize_image_instantiator): ditto.
9682         (instantiate_image_instantiator): ditto.
9683         (make_image_instance_1): ditto.
9684         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9685         (instantiator_eq_equal): new function for use with instance hash
9686         tables.
9687         (instantiator_eq_hash): ditto.
9688         (make_image_instance_cache_hash_table): create a suitable hash
9689         table for storing image instances.
9690
9691         * elhash.h (hash_table_weakness): new internal weakness type
9692         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9693         declare new functions.
9694
9695         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9696         another weakness type for glyphs.
9697         (make_standard_lisp_hash_table): new function split out from
9698         make_general_lisp_hash_table.
9699         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9700         (hash_table_instantiate): ditto.
9701         (Fmake_hash_table): ditto.
9702
9703 2000-12-31  Martin Buchholz <martin@xemacs.org>
9704
9705         * XEmacs 21.2.39 is released.
9706
9707 2000-12-29  Andy Piper  <andy@xemacs.org>
9708
9709         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9710
9711         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9712         the frame has changed so that we pick up geometry changes such as
9713         menubar visibility.
9714
9715 2000-12-28  Andy Piper  <andy@xemacs.org>
9716
9717         * lastfile.c (my_ebss): make a char array so we can pad the
9718         bss. Fixes cygwin unexec.
9719
9720         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9721
9722 2000-12-26  Andy Piper  <andy@xemacs.org>
9723
9724         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9725         comments and try and be more precise about a non-/SIGIO world.
9726         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9727         SIGIO.
9728
9729         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9730         we don't normalize to zero width or height.
9731
9732 2000-12-24  Andy Piper  <andy@xemacs.org>
9733
9734         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9735
9736 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9737
9738         * s/sco5.h: SCO 5 has pty support.
9739
9740 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9741
9742         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9743         input-method-xlib.c contains whole contents of input-method-xfs.c,
9744         so we can use input-method-xlib.c's code for USE_XFONTSET
9745         using #ifdefs.
9746         * input-method-xfs.c: removed.
9747
9748 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9749
9750         * file-coding.h (enum coding_category_type): reorder enumerators to
9751         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9752         (now one greater than largest real coding_category_type enumerator).
9753         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9754         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9755         Fcoding_category_list, Fset_coding_priority_list,
9756         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9757         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9758
9759 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9760
9761         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9762         * redisplay-output.c (redisplay_output_window): Clear top of window
9763         when face is changed.
9764         * redisplay-x.c (x_redraw_exposed_window): Call
9765         redisplay_clear_top_of_window.
9766         * redisplay.h: Publish redisplay_clear_top_of_window.
9767
9768 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9769
9770         * buffer.c (Fkill_buffer): Map over all devices.
9771         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9772         (list_windows): New function.
9773         (list_all_windows): Ditto.
9774         (Freplace_buffer_in_windows): Use them.
9775
9776 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9777
9778         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9779         (Fopen_database): Use `db_create' instead of `db_open'.
9780         (syms_of_database): Initialize Qqueue.
9781
9782 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9783
9784         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9785         buffer_local_face_property.
9786         * buffer.h (struct buffer): New member buffer_local_face_property.
9787         * window.c (Fset_window_buffer):  Mark window's face as changed
9788         when buffer has buffer local face.
9789         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9790         * objects.c (color_after_change): Set buffer_local_face_property
9791         when locale of face specifier is buffer.
9792         * objects.c (font_after_change): Ditto.
9793         * objects.c (face_boolean_after_change): Ditto.
9794         * glyphs.c (image_after_change): Ditto.
9795
9796 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9797
9798         * nt.c (mswindows_fstat): Report file permissions, volume serial
9799         number, etc. Code adapted from FSF Emacs 20.7.
9800
9801 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9802
9803         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9804         of stat when we don't have symbolic links, to make sure
9805         mswindows_stat is called on mswindows.
9806
9807 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9808
9809         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9810
9811 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9812
9813         * doprnt.c (emacs_doprnt_1): More printing fixes.
9814         Make printing of numbers compatible with libc and FSF Emacs.
9815         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9816         Use the system printf to do most of the hard work of formatting,
9817         instead of doprnt_1().
9818         Calculate memory to allocate for format string.
9819         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9820         (doprnt_1): Cleaner code and documentation.
9821
9822 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9823
9824         * Makefile.in.in: Use the loop variable to install headers.
9825
9826 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9827
9828         * window.c (Fsplit_window): Don't invalidate face cache.
9829
9830 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9831
9832         * minibuf.c (Fall_completions): Undo the previous change
9833         which removed checking elements start with space.
9834
9835 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9836
9837         * mule-canna.c: Didier suppression.
9838
9839 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9840
9841         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9842         (warning suppression).  Add English comment translations.
9843
9844 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9845
9846         * unexelfsgi.c (unexec): Better test for mmap failure.
9847
9848 2000-12-05  Martin Buchholz <martin@xemacs.org>
9849
9850         * XEmacs 21.2.38 is released.
9851
9852 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9853
9854         * redisplay.c (bar-cursor): Make a user variable.
9855
9856         * symsinit.h: Add init_postgresql_from_environment.
9857
9858 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9859
9860         * regex.c: Convert to clean C.
9861
9862 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9863
9864         * realpath.c:
9865         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9866         initialization.
9867         (sys_readlink): renamed to system_readlink to avoid conflict with
9868         the other sys_readlink.
9869
9870 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9871
9872         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9873
9874 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9875
9876         * postgresql.c (init_postgresql_from_environment): new function.
9877         (vars_of_postgresql): Move code initializing Lisp variables out and
9878         into init_postgresql_from_environment.
9879         emacs.c (main_1): Call init_postgresql_from_environment if and only
9880         if running a dumped XEmacs.
9881
9882 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9883
9884         * buffer.c: Make find-file-compare-truenames default to true on
9885         windows.
9886
9887         * realpath.c (win32_abs_start):
9888         (cygwin_readlink):
9889         (win32_readlink): New functions.
9890         (xrealpath): Return really real filenames on windows.
9891
9892         * fileio.c (Ffile_truename): Make file-truename work on windows.
9893
9894 2000-11-29  Didier Verna  <didier@xemacs.org>
9895
9896         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9897         * faces.c (update_face_cachel_data): use it.
9898         * faces.c (add_face_cachel): use it. Complete background pixmap
9899         frobbing in face cache if `update_face_cachel_data' has not done so.
9900
9901 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9902
9903         * search.c (string_match_1): Don't set last_thing_searched
9904         when search failed.
9905
9906 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9907
9908         * buffer.c: Include casetab.h
9909         (common_init_complex_vars_of_buffer): Use new case-table object.
9910         * buffer.h: Include casetab.h
9911         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9912         (DOWNCASE_TABLE_OF): Ditto.
9913         * bufslots.h: Remove char-tables and add case-table.
9914         * casetab.c: Include casetab.h
9915         (CASE_TABLE_P): Removed.
9916         (mark_case_table): New function.
9917         (allocate_case_table): New function.
9918         (Fcase_table_p): Use new case-table.
9919         (case_table_char): New function.
9920         (Fget_case_table): Ditto.
9921         (Fput_case_table): Ditto.
9922         (Fput_case_table_pair): Ditto.
9923         (Fcopy_case_table): Ditto.
9924         (Fcurrent_case_table): Return case-table.
9925         (Fstandard_case_table): Return case-table.
9926         (Fset_case_table): Fix doc-string.
9927         (set_case_table): Use case-table
9928         (syms_of_casetab): DEFSUBR new functions.
9929         (complex_vars_of_casetab): Set up standard case-table.
9930         * casetab.h: New file.
9931         * editfns.c: Include casetab.h
9932         (Fcompare_buffer_substrings): Use case-table.
9933         * inline.c: Include casetab.h
9934         * lisp.h: Remove bogus extern.
9935         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9936         * search.c: Include casetab.h
9937         (TRANSLATE_ASCII): Removed.
9938         (TRANSLATE): Unconditionally translate character.
9939         (looking_at_1): Use case-table.
9940         (string_match_1): Ditto.
9941         (fast_string_match): Ditto.
9942         (search_command): Ditto.
9943         (search_buffer): Separate boyer_moore.  Check whether
9944         boyer_moore is possible.
9945         (simple_search): New function.
9946         (boyer_moore): Separated from search_buffer. Translate char.
9947
9948 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9949
9950         * regex.c (RE_TR_ASCII): Removed.
9951         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9952         (PATFETCH): Call PATFETCH_RAW.
9953         (PATFETCH_RAW): Fetch Emchar.
9954         (PATUNFETCH): Decrement charptr.
9955         (GET_BUFFER_SPACE): Rename b to buf_end.
9956         (BUF_PUSH): Ditto.
9957         (BUF_PUSH_2): Ditto.
9958         (BUF_PUSH_3): Ditto.
9959         (EXTEND_BUFFER): Ditto.
9960         (SET_LIST_BIT): Ditto.
9961         (regex_compile): Ditto.  Translate non ASCII char.
9962         (compile_range): Ditto.
9963         (re_search_2): Ditto.
9964         (re_match_2_internal): Compare Emchar.
9965         (bcmp_translate): Ditto.
9966
9967 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9968
9969         * lisp.h (basic char/int typedefs):  comment improvement.
9970
9971 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9972
9973         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9974         unstomp inhibit_site_lisp.  Improve comments.
9975
9976 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9977
9978         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9979
9980 2000-11-28  Andy Piper  <andy@xemacs.org>
9981
9982         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9983         clipped display for windows in the gutter also.
9984         (redisplay_display_boxes_in_window_p): change semantics of return
9985         codes to be more intuitive.
9986
9987         * gutter.h: declare display_boxes_in_gutter_p.
9988
9989         * gutter.c (display_boxes_in_gutter_p): new function for
9990         redisplay.
9991
9992 2000-11-22  Andy Piper  <andy@xemacs.org>
9993
9994         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9995         autodetect domain.
9996
9997 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9998
9999         * callproc.c (Fold_call_process_internal):
10000         * gpm.c (Freceive_gpm_event):
10001         (tty_get_foreign_selection): Might be just warning supression.
10002         * fileio.c (Fwrite_region_internal):
10003         (Fset_visited_file_modtime):
10004         * keymap.c (event_matches_key_specifier_p):
10005         Initialize GCPROed variable.
10006
10007         * menubar-x.c (command_builder_find_menu_accelerator):
10008         Initialize before use.
10009
10010 2000-11-23  Andy Piper  <andy@xemacs.org>
10011
10012         * unexcw.c (unexec): make the resulting executable executable.
10013
10014 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10015
10016         * doc.c (get_doc_string):
10017         Use size_t, not int, for result of XSTRING_LENGTH.
10018
10019         * cmds.c (Fdelete_char):
10020         * cmds.c (Fpoint_at_eol):
10021         * cmds.c (Fself_insert_command):
10022         Use EMACS_INT, not int, for result of XINT.
10023         Someday, someone will want to insert more than 2**31 identical characters.
10024
10025         * cmds.c (Fdelete_char):
10026         * cmds.c (Fdelete_backward_char):
10027         * syntax.c (Fforward_word):
10028         * syntax.c (Fforward_comment):
10029         Make COUNT argument optional, for consistency with forward-char et al.
10030
10031 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10032
10033         * lisp.h:
10034         * print.c (long_to_string):
10035         Return a useful value: the pointer at end of data written.
10036
10037         * doprnt.c:
10038         Use `static const char * const' for constant strings.
10039         (union printf_arg): Delete `i', `ui' members.
10040         (get_doprnt_args):
10041         (emacs_doprnt_1):
10042         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10043         Do all printf-ing via the `l' specifier.
10044         Use EMACS_INT instead of int.
10045         Optimize.
10046
10047 2000-11-20  Didier Verna  <didier@xemacs.org>
10048
10049         * faces.c (update_face_cachel_data): don't frob the background
10050         pixmap when the window is being created. The face is needed but
10051         does not exist yet.
10052
10053 2000-11-20  Andy Piper  <andy@xemacs.org>
10054
10055         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10056         messing with a debug environment.
10057
10058 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10059
10060         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10061
10062 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10063
10064         * casetab.c (Fcase_table_p): Fix compile error and crash.
10065
10066 2000-11-18  Philip Aston  <philipa@mail.com>
10067
10068         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10069
10070 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10071
10072         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10073         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10074
10075 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10076
10077         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10078         * unexelf.c: Use HAVE_ELF_H.
10079         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10080         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10081         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10082         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10083         for testing.
10084         So this is an unexelfsgi.c from a different line of development.
10085
10086 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10087
10088         * regex.c (RE_TR_ASCII): New function.
10089         (RE_TRANSLATE): Call it.
10090
10091 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10092
10093         * buffer.h (TRT_TABLE_OF): Remove assert.
10094         (IN_TRT_TABLE_DOMAIN): Removed.
10095
10096 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10097
10098         * free-hook.c (log_gcpro):
10099         (show_gcprohist): Add support for GCPRO5.
10100
10101 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10102
10103         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10104
10105 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10106
10107         * symeval.h: Declare flush_all_buffer_local_cache.
10108
10109         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10110         (flush_buffer_local_cache): Added.
10111         (flush_all_buffer_local_cache): Added.
10112
10113         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10114
10115         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10116         (pdump_dump_data): Ditto.
10117         (pdump_reloc_one): Ditto.
10118         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10119         before dumping.
10120
10121
10122 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10123
10124         * buffer.c: Remove if 0'ed entry.
10125         * buffer.h: Rewrite TRT to use char-table.
10126         * bufslots.h: Remove mirror tables.
10127         * casetab.c: Remove mirror tables.
10128         (CASE_TABLE_P): New macro.
10129         (Fcase_table_p): Element of a case table is string or char-table.
10130         (make_mirror_trt_table): Removed.
10131         (set_case_table): Setup char-table from strings for backward
10132         compatibility.
10133         * dired.c (Fdirectory_files):
10134         * dired-msw.c: (mswindows_get_files):
10135         * lisp.h: Change prototype of re_pattern_buffer.
10136         * regex.c: (RE_TRANSLATE): New macro.
10137         (TRANSLATE_P): Ditto.
10138         Change translate to type RE_TRANSLATE_TYPE.
10139         * regex.h: Define RE_TRANSLATE_TYPE
10140         * search.c (TRANSLATE): New macro.
10141         (TRANSLATE_ASCII): New macro.
10142         Translate table is changed to Lisp_Object.
10143         (signal_failure): Inhibit return.
10144
10145 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10146
10147         * device-msw.c:
10148         * eldap.c:
10149         * event-Xt.c:
10150         * event-stream.c:
10151         * print.c:
10152         Do UNGCPRO before return.
10153
10154 2000-11-14  Martin Buchholz <martin@xemacs.org>
10155
10156         * XEmacs 21.2.37 is released.
10157
10158 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10159
10160         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10161         Add comments about discarded return value.
10162
10163 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10164
10165         * callint.c:
10166         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10167
10168 2000-10-27  Andy Piper  <andy@xemacs.org>
10169
10170         * gutter.c (Fset_default_gutter_position): default left and right
10171         gutters to visible.
10172         (calculate_gutter_size): calculate resonable heuristic for left
10173         and right gutter sizes.
10174         (specifier_vars_of_gutter): change left and right gutter sizes to
10175         autodetect.
10176         (calculate_gutter_size_from_display_lines): new function.
10177         (output_gutter): check for resizing on left and right gutters.
10178         (clear_gutter): don't special case top and left gutters.
10179         (specifier_vars_of_gutter): use new signature for
10180         set_specifier_caching.
10181
10182         * glyphs-x.c (x_redisplay_widget): spelling fix.
10183         * glyphs.c (specifier_vars_of_glyphs):
10184         * menubar.c (specifier_vars_of_menubar):
10185         * redisplay.c (specifier_vars_of_redisplay):
10186         * toolbar.c (specifier_vars_of_toolbar):
10187         * window.c (specifier_vars_of_window):
10188         * scrollbar.c (specifier_vars_of_scrollbar):
10189         (complex_vars_of_scrollbar): use new signature for
10190         set_specifier_caching.
10191
10192         * specifier.c (set_specifier_caching): include recompute flag.
10193         (recompute_one_cached_specifier_in_window): always recompute if
10194         flag set.
10195         (recompute_one_cached_specifier_in_frame): ditto.
10196
10197         * specifier.h (struct specifier_caching): add recompute flag.
10198
10199 2000-10-24  Andy Piper  <andy@xemacs.org>
10200
10201         * unexcw.c (copy_executable_and_dump_data_section): add new
10202         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10203         5.0 happy.
10204
10205 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10206
10207         * console-x.h (x_device): New member modifier_release_time.
10208         * event-Xt.c (x_handle_sticky_modifiers):
10209         Bound interval modifier keys are sticky.
10210         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10211         * events.h: extern it.
10212
10213 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10214
10215         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10216
10217 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10218
10219         * event-stream.c (execute_command_event): Preserve current_events
10220         and the like when event is misc-user-event.
10221         Inhibit quit during the call to maybe_echo_keys.
10222
10223 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10224
10225         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10226         symlink when buffer is killed.
10227         (inhibit_clash_detection): New variable.
10228
10229 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10230
10231         * console.c (Fset_input_method): Trigger redisplay on tty.
10232
10233 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10234
10235         * process.c (Fprocess_status): Revert to previous behavior:
10236         (process-status "nosuchprocess") ==> nil
10237
10238 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10239
10240         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10241         Work around another GCC 2.95.2 optimizer bug.
10242
10243 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10244
10245         * process.c (Fget_process): Use LIST_LOOP_2.
10246         (kill_buffer_processes): Use LIST_LOOP_2.
10247
10248         * minibuf.c (Fall_completions):
10249         Delete old non-functional code for FSF fourth argument.
10250
10251         * frame.c (frame_matches_frame_spec):
10252         Renamed from `frame_matches_frametype'.  Update all callers.
10253         (device_matches_device_spec):
10254         Renamed from 'device_matches_console_spec'.  Update all callers.
10255
10256         * doc.c (Fsubstitute_command_keys):
10257         Remove buffer overflow crash.  Small code cleanups.
10258
10259         * casetab.c (check_case_table): Simpler code.
10260
10261         * window.c (Freplace_buffer_in_windows):
10262         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10263         (and similar implementation) as Fdelete_windows_on.
10264         Update all callers.
10265
10266         * alloc.c (Fmake_list):
10267         * alloc.c (make_vector):
10268         * alloc.c (Fmake_vector):
10269         * alloc.c (make_bit_vector):
10270         * alloc.c (Fmake_bit_vector):
10271         * alloc.c (Fbit_vector):
10272         * alloc.c (Fmake_string):
10273         * alloc.c (Fpurecopy):
10274         * alloc.c (Fmemory_limit):
10275         * buffer.c:
10276         * buffer.c (Fget_buffer):
10277         * buffer.c (Fkill_buffer):
10278         * buffer.c (complex_vars_of_buffer):
10279         * bytecode.c (Fcompiled_function_stack_depth):
10280         * callint.c (Fprefix_numeric_value):
10281         * event-stream.c:
10282         * event-stream.c (Fread_key_sequence):
10283         * casetab.c:
10284         * casetab.c (Fcase_table_p):
10285         * casetab.c (check_case_table):
10286         * casetab.c (Fset_case_table):
10287         * casetab.c (Fset_standard_case_table):
10288         * chartab.c:
10289         * chartab.c (Fchar_table_type):
10290         * chartab.c (Freset_char_table):
10291         * chartab.c (Fget_char_table):
10292         * chartab.c (Fget_range_char_table):
10293         * chartab.c (Fput_char_table):
10294         * chartab.c (Fmap_char_table):
10295         * chartab.c (Fcategory_table_p):
10296         * chartab.c (Fcheck_category_at):
10297         * chartab.c (Fchar_in_category_p):
10298         * chartab.c (Fcategory_table):
10299         * chartab.c (Fcopy_category_table):
10300         * chartab.c (Fset_category_table):
10301         * chartab.c (Fcategory_designator_p):
10302         * chartab.c (Fcategory_table_value_p):
10303         * cmds.c (Fdelete_char):
10304         * cmds.c (Fdelete_backward_char):
10305         * cmds.c (Fself_insert_command):
10306         * cmds.c (Fself_insert_internal):
10307         * console.c (Fvalid_console_type_p):
10308         * console.c (Fcdfw_console):
10309         * console.c (Fconsole_type):
10310         * console.c (Fconsole_name):
10311         * console.c (Fconsole_device_list):
10312         * console.c (Fconsole_on_window_system_p):
10313         * data.c:
10314         * data.c (Feq):
10315         * data.c (Fold_eq):
10316         * data.c (Fsubr_interactive):
10317         * data.c (Fchar_to_int):
10318         * data.c (Fint_to_char):
10319         * data.c (Fsetcar):
10320         * data.c (Fsetcdr):
10321         * data.c (Fnumber_to_string):
10322         * data.c (Fstring_to_number):
10323         * data.c (Frem):
10324         * database.c (mark_database):
10325         * database.c (finalize_database):
10326         * database.c (Fdatabase_live_p):
10327         * database.c (Fdatabasep):
10328         * device-x.c (Fx_get_resource):
10329         * device.c (Fdfw_device):
10330         * dired.c:
10331         * dired.c (Ffile_name_completion):
10332         * dired.c (Ffile_name_all_completions):
10333         * dired.c (Fuser_name_completion):
10334         * dired.c (Fuser_name_completion_1):
10335         * dired.c (Fuser_name_all_completions):
10336         * doc.c (Fdocumentation):
10337         * doc.c (Fdocumentation_property):
10338         * doc.c (Fsubstitute_command_keys):
10339         * editfns.c:
10340         * editfns.c (Fchar_to_string):
10341         * editfns.c (Fstring_to_char):
10342         * editfns.c (Ftemp_directory):
10343         * editfns.c (Finsert_char):
10344         * editfns.c (Fbuffer_substring_no_properties):
10345         * editfns.c (Fnarrow_to_region):
10346         * editfns.c (Fchar_equal):
10347         * editfns.c (Fchar_Equal):
10348         * editfns.c (Ftranspose_regions):
10349         * emacs.c (Fdump_emacs):
10350         * eval.c (Fthrow):
10351         * eval.c (Fcommand_execute):
10352         * eval.c (Fautoload):
10353         * eval.c (Fbacktrace):
10354         * eval.c (Fbacktrace_frame):
10355         * events.c:
10356         * events.c (Fcopy_event):
10357         * events.c (Fcharacter_to_event):
10358         * events.c (Fevent_button):
10359         * events.c (Fevent_process):
10360         * extents.c:
10361         * extents.c (Fnext_extent_change):
10362         * extents.c (Fextent_property):
10363         * faces.c (Ffacep):
10364         * faces.c (Fmake_face):
10365         * file-coding.c:
10366         * file-coding.c (Fencode_shift_jis_char):
10367         * file-coding.c (Fencode_big5_char):
10368         * fileio.c (Ffile_name_directory):
10369         * fileio.c (Ffile_name_nondirectory):
10370         * fileio.c (Ffile_name_as_directory):
10371         * fileio.c (Fdirectory_file_name):
10372         * fileio.c (Ffile_truename):
10373         * fileio.c (Fsubstitute_in_file_name):
10374         * fileio.c (Ffile_modes):
10375         * fileio.c (Fset_file_modes):
10376         * fileio.c (Fset_default_file_modes):
10377         * fileio.c (Fverify_visited_file_modtime):
10378         * floatfns.c (Facos):
10379         * floatfns.c (Fasin):
10380         * floatfns.c (Fatan):
10381         * floatfns.c (Fcos):
10382         * floatfns.c (Fsin):
10383         * floatfns.c (Ftan):
10384         * floatfns.c (Fbessel_j0):
10385         * floatfns.c (Fbessel_j1):
10386         * floatfns.c (Fbessel_jn):
10387         * floatfns.c (Fbessel_y0):
10388         * floatfns.c (Fbessel_y1):
10389         * floatfns.c (Fbessel_yn):
10390         * floatfns.c (Ferf):
10391         * floatfns.c (Ferfc):
10392         * floatfns.c (Flog_gamma):
10393         * floatfns.c (Fexp):
10394         * floatfns.c (Fexpt):
10395         * floatfns.c (Flog):
10396         * floatfns.c (Flog10):
10397         * floatfns.c (Fsqrt):
10398         * floatfns.c (Fcube_root):
10399         * floatfns.c (Facosh):
10400         * floatfns.c (Fasinh):
10401         * floatfns.c (Fatanh):
10402         * floatfns.c (Fcosh):
10403         * floatfns.c (Fsinh):
10404         * floatfns.c (Ftanh):
10405         * floatfns.c (Fabs):
10406         * floatfns.c (Ffloat):
10407         * floatfns.c (Flogb):
10408         * floatfns.c (Fceiling):
10409         * floatfns.c (Ffloor):
10410         * floatfns.c (Fround):
10411         * floatfns.c (Ftruncate):
10412         * floatfns.c (Ffceiling):
10413         * floatfns.c (Fffloor):
10414         * floatfns.c (Ffround):
10415         * floatfns.c (Fftruncate):
10416         * fns.c (Fstring_equal):
10417         * fns.c (Fstring_lessp):
10418         * fns.c (concat2):
10419         * fns.c (concat3):
10420         * fns.c (vconcat2):
10421         * fns.c (vconcat3):
10422         * fns.c (Fsubstring):
10423         * fns.c (Fassoc):
10424         * fns.c (Fold_assoc):
10425         * fns.c (assoc_no_quit):
10426         * fns.c (Fassq):
10427         * fns.c (Fold_assq):
10428         * fns.c (assq_no_quit):
10429         * fns.c (Frassoc):
10430         * fns.c (Fold_rassoc):
10431         * fns.c (Frassq):
10432         * fns.c (Fold_rassq):
10433         * fns.c (rassq_no_quit):
10434         * fns.c (Fremassoc):
10435         * fns.c (remassoc_no_quit):
10436         * fns.c (Fremassq):
10437         * fns.c (remassq_no_quit):
10438         * fns.c (Fremrassoc):
10439         * fns.c (Fremrassq):
10440         * fns.c (remrassq_no_quit):
10441         * fns.c (Fsort):
10442         * fns.c (Fplist_get):
10443         * fns.c (Fplist_put):
10444         * fns.c (Fplist_remprop):
10445         * fns.c (Fplist_member):
10446         * fns.c (Flax_plist_get):
10447         * fns.c (Flax_plist_put):
10448         * fns.c (Flax_plist_remprop):
10449         * fns.c (Flax_plist_member):
10450         * fns.c (Fequal):
10451         * fns.c (Fold_equal):
10452         * fns.c (Frequire):
10453         * fns.c (Fbase64_encode_region):
10454         * fns.c (Fbase64_encode_string):
10455         * fns.c (Fbase64_decode_region):
10456         * frame.c:
10457         * frame.c (frame_matches_frame_spec):
10458         * frame.c (device_matches_device_spec):
10459         * frame.c (next_frame):
10460         * frame.c (previous_frame):
10461         * frame.c (Fnext_frame):
10462         * frame.c (Fprevious_frame):
10463         * frame.c (Fframe_property):
10464         * frame.c (Fset_frame_height):
10465         * frame.c (Fset_frame_size):
10466         * frame.h:
10467         * glyphs.c:
10468         * glyphs.c (if):
10469         * glyphs.c (decode_error_behavior_flag):
10470         * glyphs.c (Fmake_image_instance):
10471         * indent.c (Findent_to):
10472         * intl.c (Fignore_defer_gettext):
10473         * keymap.c (Fkeymapp):
10474         * keymap.c (Flookup_key):
10475         * lread.c:
10476         * lread.c (Fload_internal):
10477         * lread.c (Feval_buffer):
10478         * lread.c (Feval_region):
10479         * macros.c (Fexecute_kbd_macro):
10480         * marker.c (set_marker_internal):
10481         * marker.c (Fset_marker):
10482         * marker.c (set_marker_restricted):
10483         * marker.c (Fcopy_marker):
10484         * marker.c (noseeum_copy_marker):
10485         * menubar.c:
10486         * menubar.c (Fpopup_menu):
10487         * minibuf.c:
10488         * mule-charset.c (Fcharset_name):
10489         * mule-charset.c (Fchar_charset):
10490         * mule-charset.c (Fchar_octet):
10491         * mule-charset.c (Fsplit_char):
10492         * mule-wnnfns.c (Fwnn_open):
10493         * mule-wnnfns.c (Fwnn_dict_comment):
10494         * mule-wnnfns.c (Fwnn_quit_henkan):
10495         * mule-wnnfns.c (Fwnn_word_toroku):
10496         * mule-wnnfns.c (Fwnn_word_sakujo):
10497         * mule-wnnfns.c (Fwnn_word_use):
10498         * mule-wnnfns.c (Fwnn_hindo_set):
10499         * objects.c:
10500         * objects.c (Fmake_color_instance):
10501         * objects.c (Fmake_font_instance):
10502         * print.c (Fwrite_char):
10503         * process.c:
10504         * process.c (mark_process):
10505         * process.c (print_process):
10506         * process.c (get_process_from_usid):
10507         * process.c (Fprocessp):
10508         * process.c (Fprocess_live_p):
10509         * process.c (Fget_process):
10510         * process.c (Fget_buffer_process):
10511         * process.c (get_process):
10512         * process.c (Fprocess_id):
10513         * process.c (Fprocess_name):
10514         * process.c (Fprocess_command):
10515         * process.c (init_process_io_handles):
10516         * process.c (start_process_unwind):
10517         * process.c (Fstart_process_internal):
10518         * process.c (Fopen_multicast_group_internal):
10519         * process.c (Fset_process_window_size):
10520         * process.c (read_process_output):
10521         * process.c (send_process):
10522         * process.c (Fprocess_tty_name):
10523         * process.c (Fset_process_buffer):
10524         * process.c (Fprocess_buffer):
10525         * process.c (Fprocess_mark):
10526         * process.c (set_process_filter):
10527         * process.c (Fset_process_filter):
10528         * process.c (Fprocess_filter):
10529         * process.c (Fprocess_send_region):
10530         * process.c (Fprocess_send_string):
10531         * process.c (exec_sentinel):
10532         * process.c (Fset_process_sentinel):
10533         * process.c (Fprocess_sentinel):
10534         * process.c (status_notify):
10535         * process.c (Fprocess_status):
10536         * process.c (Fprocess_exit_status):
10537         * process.c (process_send_signal):
10538         * process.c (Fprocess_send_eof):
10539         * process.c (deactivate_process):
10540         * process.c (remove_process):
10541         * process.c (Fdelete_process):
10542         * process.c (kill_buffer_processes):
10543         * process.c (Fprocess_kill_without_query):
10544         * process.c (Fprocess_kill_without_query_p):
10545         * rangetab.c:
10546         * rangetab.c (Fget_range_table):
10547         * rangetab.c (Fput_range_table):
10548         * rangetab.c (Fremove_range_table):
10549         * rangetab.c (Fclear_range_table):
10550         * search.c:
10551         * search.c (Fskip_chars_forward):
10552         * search.c (Fskip_chars_backward):
10553         * search.c (Fskip_syntax_forward):
10554         * search.c (Fskip_syntax_backward):
10555         * search.c (search_command):
10556         * search.c (Freplace_match):
10557         * search.c (Fregexp_quote):
10558         * select.c (Fown_selection_internal):
10559         * select.c (Fselection_owner_p):
10560         * select.c (Fselection_exists_p):
10561         * select.c (Fget_selection_internal):
10562         * specifier.c:
10563         * symbols.c:
10564         * symbols.c (Fintern):
10565         * symbols.c (Fintern_soft):
10566         * symbols.c (Funintern):
10567         * symbols.c (Fapropos_internal):
10568         * symbols.c (Fset_default):
10569         * syntax.c:
10570         * syntax.c (Fsyntax_table_p):
10571         * syntax.c (Fcopy_syntax_table):
10572         * syntax.c (Fset_syntax_table):
10573         * syntax.c (Fchar_syntax):
10574         * syntax.c (syntax_match):
10575         * syntax.c (Fmatching_paren):
10576         * syntax.c (Fforward_word):
10577         * syntax.c (scan_lists):
10578         * syntax.c (Fscan_lists):
10579         * syntax.c (Fscan_sexps):
10580         * syntax.c (Fparse_partial_sexp):
10581         * toolbar.c (Fcheck_toolbar_button_syntax):
10582         * tooltalk.doc:
10583         * window.c:
10584         * window.c (Fwindowp):
10585         * window.c (Fwindow_live_p):
10586         * window.c (Fwindow_point):
10587         * window.c (Fdelete_window):
10588         * window.c (Fnext_window):
10589         * window.c (Fprevious_window):
10590         * window.c (Fother_window):
10591         * window.c (window_loop):
10592         * window.c (Fget_lru_window):
10593         * window.c (Fsplit_window):
10594         * window.c (Fenlarge_window):
10595         * window.c (Fenlarge_window_pixels):
10596         * window.c (Fshrink_window):
10597         * window.c (Fshrink_window_pixels):
10598         * window.c (change_window_height):
10599         * window.c (Fwindow_configuration_p):
10600         * window.c (Fcurrent_window_configuration):
10601         * window.h:
10602         * casefiddle.c (casify_object):
10603         * casefiddle.c (Fupcase):
10604         * casefiddle.c (Fdowncase):
10605         * casefiddle.c (Fcapitalize):
10606         * casefiddle.c (Fupcase_initials):
10607         * casefiddle.c (casify_region_internal):
10608         * casefiddle.c (casify_region):
10609         * casefiddle.c (Fupcase_region):
10610         * casefiddle.c (Fdowncase_region):
10611         * casefiddle.c (Fcapitalize_region):
10612         * casefiddle.c (Fupcase_initials_region):
10613         * casefiddle.c (Fupcase_word):
10614         * casefiddle.c (Fdowncase_word):
10615         * casefiddle.c (Fcapitalize_word):
10616         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10617         Replace 0 with '\0' when working with bytes.
10618         Replace initial "(" with "\(" in docstrings.
10619
10620 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10621
10622         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10623
10624         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10625
10626 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10627
10628         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10629
10630 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10631
10632         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10633         correctly.
10634
10635 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10636
10637         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10638         (inhibit_auto_save_session): New variable.
10639         (vars_of_fileio): Declare and initialize them.
10640         * fileio.c (Fdo_auto_save): Don't create session file if
10641         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10642
10643 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10644
10645         * sgiplay.c (play_internal): C++ compilability.
10646         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10647         * callproc.c (Fold_call_process_internal):
10648         Remove unused vars `env', `first'.
10649         * scrollbar.c (update_scrollbar_instance):
10650         #### unused var `current_window'.
10651         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10652         etc. within #ifdef NOT_YET.
10653         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10654         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10655         * specifier.c (specifier_instance):
10656         #### unused var `tag'.
10657         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10658
10659 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10660
10661         * fns.c (Fbutlast):
10662         * fns.c (list_sort):
10663         * fns.c (Ffillarray):
10664         * fns.c (bytecode_nconc2):
10665         * fns.c (Fnconc):
10666         * fns.c (mapcar1):
10667         * fns.c (Fmapconcat):
10668         Be pedantically 64-bit correct.  For the time when someone will
10669         want to have a list with length > 2**32.
10670
10671         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10672         Work around MIPSpro compiler bug.
10673
10674         * process-unix.c (unix_kill_child_process): Add snarky comment.
10675         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10676
10677         * config.h.in: Oops, _getpt ==> _getpty
10678
10679 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10680
10681         * config.h.in:
10682         * regex.c:
10683         Use void*, not char*, as return type of alloca().
10684
10685         * alloc.c (free_marker): Side effect inside assert expression!
10686
10687 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10688
10689         * mule-charset.c (Fset_charset_ccl_program): To check
10690         if the given ccl program is valid, use setup_ccl_program()
10691         instead of CHECK_VECTOR().
10692         (Fmake_charset): Likewise.
10693
10694 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10695
10696         * faces.c (get_extent_fragment_face_cache_index):
10697         Fix cachel.merged_faces memory leak.
10698
10699 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10700
10701         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10702         Reset MSB of octets obtained by DECODE_SJIS
10703         because of the incompatibility with Emacs.
10704         (ccl_driver)<CCL_ENCODE_SJIS>:
10705         Set MSB of octets before passing them to
10706         ENCODE_SJIS because of the incompatibility
10707         with Emacs.
10708
10709 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10710
10711         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10712         (DECLARE_LRECORD): Undo the last change.
10713         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10714
10715 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10716
10717         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10718         the implementation to lrecord_implementations_table.
10719
10720 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10721
10722         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10723         initial value of `lrecord_type_##c_name' and
10724         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10725         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10726         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10727         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10728         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10729
10730 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10731
10732         * miscplay.c (sndcnv8S_2mono):
10733         (sndcnv2monounsigned):
10734         (sndcnvULaw_2linear):
10735         (sndcnv16swap):
10736         Remove implementation-defined behavior.
10737
10738 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10739
10740         * input-method-xlib.c: Warning suppression.
10741
10742 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10743
10744         * mule-ccl.c: Sync up with Emacs 21.0.90.
10745         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10746         Do nothing.
10747         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10748         Likewise.
10749         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10750         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10751         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10752         leading char belongs to official 2-dimensional charset.
10753         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10754         write the given character as is.  Otherwise,
10755         if it is a multibyte char, convert it by
10756         non_ascii_set_charptr_emchar, then write it.
10757         (CCL_WRITE_STRING): Likewise.
10758         (ccl_get_compiled_code): New function.
10759         (setup_ccl_program): When ccl_prog is invalid,
10760         return -1.
10761         (Fregister_code_conversion_map): New function.
10762         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10763
10764         * mule-ccl.h: Sync up with Emacs 21.0.90.
10765         (Fregister_ccl_program): export it.
10766
10767         * redisplay-msw.c (separate_textual_runs):
10768         If ccl program is not valid, don't do ccl conversion.
10769
10770         * redisplay-x.c (separate_textual_runs): Ditto.
10771
10772         * file-coding.c (Fmake_coding_system):
10773         When type is ccl and value is vector, register it
10774         with a proper symbol.  And checks whether the
10775         given ccl program is valid.
10776         (mule_decode): When calling ccl_driver, if src indicates
10777         NULL pointer, set an empty string instead.
10778         (mule_encode): Likewise.
10779
10780 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10781
10782         The following large batch of changes gets us back to a state of
10783         C++ compilability.  Extbyte is now a char, which means that
10784         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10785
10786         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10787
10788         * sound.c (Fplay_sound): Type correctness.
10789
10790         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10791         (x_get_window_property): Type correctness.
10792         (receive_incremental_selection): unsigned char ==> Extbyte
10793         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10794         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10795         (Fx_store_cutbuffer_internal): Type correctness.
10796
10797         * process-unix.c (try_to_initialize_subtty): Type correctness.
10798
10799         * objects-x.c (x_print_color_instance): Type correctness.
10800         (x_print_font_instance): Type correctness.
10801         (x_list_fonts): SExtbyte ==> Extbyte.
10802         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10803         (x_find_charset_font): SExtbyte ==> Extbyte.
10804         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10805         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10806         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10807         Use bufbyte_strcmp.
10808
10809         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10810         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10811         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10812         (BYTE_C0_P): Use bit ops for char-signedness safety.
10813         (BYTE_C1_P): Use bit ops for char-signedness safety.
10814         (CHARSET_BY_LEADING_BYTE):
10815         (CHARSET_BY_ATTRIBUTES):
10816         Always use inline function.
10817         Use type_checking_assert.
10818         Hide chlook.
10819
10820         * mule-charset.c (non_ascii_charptr_copy_char):
10821         Modify to work with both ASCII and non-ASCII characters.
10822         Improve docs and variable names.
10823         Replace over-clever fall-through switch with a simple loop.
10824         (Lstream_get_emchar_1):
10825         Replace over-clever fall-through switch with a simple loop.
10826
10827         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10828         Warning suppression.
10829
10830         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10831         the return value of Lstream_getc, which could be EOF as well.
10832
10833         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10834
10835         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10836         APIs can be used on Extbytes without casts.  Risky!
10837         (SExtbyte): Remove.
10838         (UExtbyte): Remove.
10839
10840         * input-method-xlib.c (XIM_init_device):
10841         Use Xlib.h instead of IntrinsicP.h.
10842         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10843         which will break in X11R7.
10844         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10845         to call XRegisterIMInstantiateCallback with correct types.
10846
10847         * gui-x.c (button_item_to_widget_value): Type correctness.
10848
10849         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10850
10851         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10852         (xbm_instantiate_1): Type correctness.
10853         (BUILD_GLYPH_INST):  Type correctness.
10854
10855         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10856
10857         * file-coding.c:
10858         (decode_coding_sjis):
10859         (decode_coding_big5):
10860         (decode_coding_ucs4):
10861         (decode_coding_utf8):
10862         (decode_coding_iso2022):
10863         (decode_coding_no_conversion):
10864         Make all decoding functions take an Extbyte * arg.
10865         (encode_coding_sjis):
10866         (encode_coding_big5):
10867         (encode_coding_ucs4):
10868         (encode_coding_utf8):
10869         (encode_coding_iso2022):
10870         (encode_coding_no_conversion):
10871         Make all encoding functions take a Bufbyte * arg.
10872         Use size_t instead of unsigned int for memory sizes.
10873         Only cast to unsigned char whenever dereferencing Extbyte *.
10874
10875         * doc.c (unparesseuxify_doc_string): Type correctness.
10876
10877         * console-x.c (split_up_display_spec):
10878         Rewrite without using details of internal string representation.
10879         (x_semi_canonicalize_device_connection): Type correctness.
10880
10881         * config.h.in:
10882         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10883         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10884         (HAVE_XFREE386): Removed.
10885
10886         * buffer.h (DEC_CHARPTR): `const' correctness.
10887         (bufbyte_strcmp): New.
10888         (bufbyte_memcmp): New.
10889
10890         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10891
10892         * buffer.h (XCHAR_OR_CHAR_INT):
10893         Always use inline function.
10894         Remove redundant type checking assert() - XINT will abort quite nicely.
10895
10896 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10897
10898         * search.c (Freplace_match): Set newtext to an empty string.
10899
10900 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10901
10902         * s/decosf1-3.h: Remove #include of stropts.h
10903         * s/ptx.h: Remove #include of stropts.h
10904         * s/usg5-4.h: Remove #include of stropts.h
10905         * sysproc.h:
10906         * config.h.in:
10907         Use stropts.h, not sys/stropts.h.
10908         Use strtio.h, not sys/strtio.h.
10909
10910 2000-10-04  Martin Buchholz <martin@xemacs.org>
10911
10912         * XEmacs 21.2.36 is released.
10913
10914 2000-09-21  Andy Piper  <andy@xemacs.org>
10915
10916         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10917         changes still involve copying the widget tree.
10918         (update_widget_face): make sure a change is register in the widget
10919         tree. Call update_tab_widget_face appropriately.
10920         (update_tab_widget_face): ditto.
10921         (x_tab_control_redisplay): make sure non-structural changes still
10922         involve copying the widget tree.
10923
10924 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10925
10926         * lread.c (locate_file): Check the path element is non-nil.
10927
10928 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10929
10930         * lisp.h: Warning suppression for SCO compilers.
10931
10932         * redisplay-tty.c (reset_tty_modes): Fix crash.
10933         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10934
10935 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10936
10937         Big signal/process handling overhaul.  Bugs fixed:
10938         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10939         M-x comint-kill-subjob should work for both values nil and t of
10940         process-connection-type. It was broken on most platforms.
10941         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10942         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10943         * process-unix.c: Signal/Process handling overhaul.
10944         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10945         (allocate_pty): Use all available modern methods of allocating
10946         ptys, falling back to old style BSD allocation as a last resort.
10947         Use allegedly more secure Unix98 pty allocation by default.
10948         (allocate_pty_the_old_fashioned_way): New. the last resort.
10949         (unix_create_process): Push ptem, ldterm, ttcompat where
10950         available.  Autoconfiscate.
10951         (try_to_initialize_subtty): New.
10952         (unix_kill_child_process): Proper signal handling for ptys on most
10953         platforms, using special knowledge of AIX, BSD, etc...
10954         (unix_create_process): Always disconnect_controlling_terminal() for
10955         subprocesses, whether using ptys or not.
10956         * process.h: Remove old getpt-dependent PTY code.
10957         * process.c (Fprocess_send_signal): New, obvious generic function.
10958         (decode_signal): New.
10959         (Finterrupt_process):
10960         (Fkill_process):
10961         (Fquit_process):
10962         (Fstop_process):
10963         (Fcontinue_process):
10964         (Fsignal_process): Use decode_signal.
10965         (process_send_signal):
10966         Many docstring corrections.
10967         Allow any signal to be sent to a process object.
10968         * config.h.in: Add symbols for big signal/process overhaul.
10969         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10970         * sysproc.h: Include process-related headers, where available:
10971         sys/stropts.h sys/strtio.h pty.h libutil.h
10972         * s/irix4-0.h:
10973         * s/irix5-0.h:
10974         * s/cygwin32.h:
10975         * s/gnu.h:
10976         * s/linux.h:
10977         * s/hpux.h:
10978         * s/aix3-1.h:
10979         Remove old S&M pty stuff.
10980         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10981         * systty.h: Simplify cpp hackery, improve comments.
10982         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10983
10984         * editfns.c (Fformat_time_string):
10985         Be a little more paranoid with the return value of ctime.
10986
10987         * fileio.c (check_executable):
10988         (check_writable):
10989         Use symbolic constants X_OK, W_OK.
10990
10991         * console-x.c (split_up_display_spec): Fix a warning.
10992
10993 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10994
10995         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10996         * ntproc.c (sys_spawnve): make_string ==> build_string
10997         Small clarity improvements.
10998
10999 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11000
11001         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11002
11003         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11004
11005         * config.h.in (HAVE_STRCASECMP): Remove.
11006
11007 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11008
11009         * redisplay-output.c (redisplay_output_pixmap):
11010         Cleaner and possibly more 64-bit correct code.
11011
11012 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11013
11014         * dumper.c (pdump_load_finish): move restoration of
11015         `noninteractive1' to emacs.c (main_1).
11016         * emacs.c (main_1): protect LISP-visible command-line flags
11017         from pdump_load().
11018
11019 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11020
11021         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11022         DUMP_TARGET instead of literal program names.
11023
11024 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11025
11026         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11027
11028 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11029
11030         * *: Spelling mega-patch
11031
11032 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11033
11034         * fns.c (bad_bad_turtle):
11035         Delete "Eek!" comment, since we fixed the bug to which it refers.
11036
11037 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11038
11039         * alloca.c: Replace REGISTER with register.
11040
11041 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11042
11043         * file-coding.c (ucs_to_char): Use countof.
11044
11045 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11046
11047         * file-coding.c: (ucs_to_char):
11048         (complex_vars_of_file_coding):
11049         Use countof instead of sizeof.
11050         Use CHECK_NATNUM instead of CHECK_INT.
11051
11052         * sysdep.c (strcasecmp): Remove.
11053         * device-x.c (ascii_strcasecmp): New.
11054         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11055         Avoid using non-standard non-portable strcasecmp.
11056
11057 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11058
11059         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11060         * font-lock.c: remove reference to emacsfns.h.
11061         * search.c: small doc improvement.
11062         * event-Xt.c: correct file names in comments.
11063         * console-x.h Correct file names in comments.
11064         * frame.c: Correct file names in comments.
11065         * event-stream.c: remove Energize from comments.
11066
11067 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11068
11069         * symeval.h (DEFERROR_STANDARD):
11070         (DEFERROR):
11071         (DEFSYMBOL):
11072         (DEFSYMBOL_NO_DUMP):
11073         (DEFSYMBOL_MULTIWORD_PREDICATE):
11074         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11075         (DEFKEYWORD):
11076         The construct &##name is not sensible C.
11077         Fixes compilation errors with Unixware native compiler.
11078
11079 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11080
11081         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11082         (next_frame_internal): Removed.  We now just have next_frame.
11083         (next_frame):
11084         Write a simpler and cleaner one-pass algorithm.
11085         Remove called_from_delete_device arg and #ifdefed-out code.
11086         (previous_frame):
11087         Renamed from prev_frame.  Update callers.
11088         Cleaned up to have an analogous implementation to next_frame.
11089         (other_visible_frames_internal): Remove the
11090         called_from_delete_device bogus arg, and hence, remove this
11091         function.  Just use other_visible_frames().
11092
11093         * window.c (Fnext_window):
11094         Prettify docstring.
11095         Since next_frame() is guaranteed to return a frame, remove check
11096         for nil inserted in previous patch.
11097         (Fprevious_window):
11098         Prettify docstring.
11099         Make code look more like Fnext_window.
11100         (window_loop):
11101         Respect the `console' arg when iterating through windows.
11102         Fixes bug: (get-buffer-window buffer t device) not respecting
11103         the `device' arg.
11104         This function needs more work, as others have pointed out.
11105
11106         * frame.h: Rename prev_frame to previous_frame.
11107         device_matches_console_spec no longer takes a `frame' arg.
11108
11109         * s/gnu.h:
11110         * s/linux.h:
11111         * s/hpux.h:
11112         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11113         From "Golubev I. N." <gin@mo.msk.ru>.
11114
11115         * make-src-depend: Fix typo.
11116
11117 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11118
11119         * window.c (Fnext_window):
11120         next_frame() might return nil, not a frame.
11121         Fixes this crash:
11122         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11123
11124         * frame.c (next_frame_internal):
11125         We've passed a frame if we've passed its device.
11126         Fixes this crash:
11127         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11128 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11129
11130 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11131
11132         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11133         Allow option to suppress accelerators in menu/dialog items.
11134         (populate_or_checksum_helper): Pass dialog title through above.
11135
11136 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11137
11138         * event-msw.c (mswindows_key_to_emacs_keysym):
11139         Add "pause" key, fix "menu" key.
11140
11141 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11142
11143         * eval.c (reinit_vars_of_eval):
11144         Increase max_lisp_eval_depth to 1000,
11145         required for thai-xtis.el to byte-compile under some circumstances.
11146
11147 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11148
11149         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11150         From Kenichi Handa.
11151
11152 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11153
11154         * make-src-depend: Make the generated Makefiles smaller.
11155
11156         * s/hpux.h (SETUP_SLAVE_PTY):
11157         Provide a %d in the format string for the errno argument.
11158
11159         * editfns.c (Ftemp_directory):
11160         Warning fix.
11161         Avoid buffer overrun on very long file name.
11162
11163         * input-method-xlib.c (XIM_init_device):
11164         6th parameter of XRegisterIMInstantiateCallback has different
11165         pointer types on different OSes, so simply cast to (void *).
11166
11167         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11168
11169         * sysdll.c (dll_open):
11170         shl_load will hang hard if passed a NULL filename.
11171         Simply return NULL for compatibility with dlopen.
11172         * sysdll.c: Conform to XEmacs coding standards.
11173
11174         * sysdep.c (get_pty_max_bytes):
11175         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11176
11177 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11178
11179         * tooltalk.c: Add #include <syssignal.h>
11180
11181 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11182
11183         * s/hpux.h: Don't use undefined function sigunblock().
11184
11185 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11186
11187         * config.h.in: Add HAVE_BALLOON_HELP.
11188         * emacs.c: Use HAVE_BALLOON_HELP.
11189         * Makefile.in.in (x_objs):
11190         Make Balloon Help conditional on finding shape.h.
11191
11192 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11193
11194         * syntax.c (regex_emacs_buffer_p): New variable.
11195         * syntax.h (regex_emacs_buffer_p): extern.
11196         * search.c (looking_at_1):
11197         (string_match_1):
11198         (fast_string_match):
11199         (search_buffer): Set regex_emacs_buffer_p.
11200         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11201         when before_dot, at_dot, after_dot.
11202
11203 2000-08-23  Andy Piper  <andy@xemacs.org>
11204
11205         * gui-x.c (popup_selection_callback): Only set action_occurred
11206         when we really have an image instance.
11207         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11208
11209 2000-08-23  Andy Piper  <andy@xemacs.org>
11210
11211         * gui-msw.c (mswindows_handle_gui_wm_command): set
11212         action_occurred.
11213         * gui-x.c (popup_selection_callback): ditto.
11214
11215         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11216         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11217         (struct Lisp_Image_Instance): add action_occurred flag.
11218
11219         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11220         (image_instance_changed): ditto.
11221         (reset_frame_subwindow_instance_cache): only unmap windows - do
11222         not remove them from the cache also.
11223
11224         * glyphs-widget.c (tab_control_update): better debug.
11225         (progress_gauge_update): ditto.
11226         (layout_update): ditto.
11227         (layout_instantiate): ditto.
11228         (tab_control_order_only_changed): cope with null pending items.
11229
11230         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11231         debug. Force selection of an item when an action occurred. Cope
11232         with null pending_items.
11233         (mswindows_progress_gauge_redisplay): better debug.
11234         * glyphs-x.c (x_tab_control_redisplay): ditto.
11235
11236         * redisplay.c (redisplay_frame): reset the frame cache if the
11237         frame is garbaged.
11238
11239         * window.c (Fset_window_configuration): potentially re-enable
11240         frame cache reset.
11241         (window_unmap_subwindows): need to finalize instances here since
11242         it is only used in mark_window_as_deleted.
11243
11244 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11245
11246         * nas.c (SndOpenDataForReading):
11247         nas.c (WaveOpenDataForReading):
11248         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11249         Somehow escaped from the 2000-08-14 patch.
11250
11251 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11252
11253         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11254         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11255
11256 2000-08-21  Andy Piper  <andy@xemacs.org>
11257
11258         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11259         window if it is not already displayed.
11260
11261         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11262         it is not already displayed.
11263
11264         * window.c (Fset_window_configuration): don't reset the frame
11265         cache.
11266
11267         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11268         instances from the frame cache if we are actually finalizing them.
11269         (reset_frame_subwindow_instance_cache): reset frame cache only
11270         after unmapping everything.
11271         (map_subwindow): set displayed flag after mapping.
11272
11273 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11274
11275         * data.c (indirect_function):
11276         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11277
11278         * eval.c (function_argcount):
11279         Use original function when signaling errors.
11280
11281 2000-08-18  Andy Piper  <andy@xemacs.org>
11282
11283         * frame.c (delete_frame_internal): use new
11284         free_frame_subwindow_instances name.
11285
11286         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11287         (add_tab_item): make return type correct.
11288         (mswindows_tab_control_instantiate): assert index of tab.
11289         (mswindows_tab_control_redisplay): Re-code to use
11290         gui_item_equal_sans_selected and gui_item_list_find_selected.
11291
11292         * glyphs-widget.c (tab_control_update): Correct comment.
11293
11294         * window.c (window_unmap_subwindows): use new
11295         unmap_subwindow_instance_cache_mapper.
11296         (window_unmap_subwindows_cache_mapper): deleted.
11297         (Fset_window_configuration): comparisons should now be with
11298         EQ. Preserve the subwindow instance cache across configuration
11299         changes.
11300         (allocate_window): ditto.
11301         (make_dummy_parent): ditto.
11302
11303         * glyphs.c (free_frame_subwindow_instances): rename from
11304         free_frame_subwindow_instance_cache. finalize all instances rather
11305         than just those in the display cache.
11306         (finalize_all_subwindow_instances): walk windows unmapping and
11307         finalizing subwindows.
11308         (unmap_subwindow_instance_cache_mapper): moved from
11309         window.c. Allow finalization as well as unmapping.
11310
11311         * gui.c (gui_item_list_find_selected): new function.
11312
11313         * gui.h (gui_item_list_find_selected): declare.
11314
11315         * glyphs-x.c (x_tab_control_redisplay): pick tab
11316         explicitly. Re-code to use gui_item_equal_sans_selected and
11317         gui_item_list_find_selected.
11318
11319         * glyphs-x.h: add lwlib-utils.h
11320
11321         * buffer.c (Frecord_buffer): undo previous change.
11322
11323 2000-08-09  Vin Shelton  <acs@xemacs.org>
11324
11325         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11326         possible.  Create temporary files more securely.  The patch was
11327         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11328         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11329         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11330         for details.
11331
11332 2000-08-07  Ben Wing  <ben@xemacs.org>
11333
11334         * getloadavg.c: remove duplicate (and windows-breaking)
11335         includes of fcntl.h and sys/file.h.
11336
11337         * nt.c: remove duplicate getloadavg() definition.
11338
11339         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11340         encodings.
11341
11342 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11343
11344         * eval.c (function_argcount): If function needs to be autoloaded
11345         actually use the loaded definition.
11346         GCPRO function.
11347
11348 2000-08-05  Ben Wing  <ben@xemacs.org>
11349
11350         * getloadavg.c: add prototype for getloadavg().  remove
11351         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11352         of the code).  remove duplicate header includes.
11353
11354         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11355
11356         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11357         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11358         useful load average.
11359
11360         * alloc.c (reinit_alloc_once_early): removed references to
11361         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11362         the lisp vars are the only things referencing the malloc_sbrk_*
11363         vars, and they were already if 0'd out.  these vars only exist
11364         in the older malloc.c, which is basically unused, and they're
11365         only for informational purposes.
11366
11367         * m\*.h: removed useless VIRT_ADDR_VARIES.
11368
11369         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11370
11371 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11372
11373         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11374         color if the image is a mono pixmap.
11375
11376 2000-07-30  Ben Wing  <ben@xemacs.org>
11377
11378         * Makefile.in.in (release):
11379         Remove stray @.
11380
11381         * buffer.c (directory_is_current_directory):
11382         * dired-msw.c (mswindows_get_files):
11383         * dired.c:
11384         * dired.c (Fdirectory_files):
11385         * dired.c (file_name_completion_stat):
11386         * dired.c (Ffile_attributes):
11387         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11388         preprocessor tricks, to avoid problems on some machines
11389         (e.g. SCO).
11390
11391         * callproc.c (egetenv): GC docs.
11392
11393         * console-msw.h:
11394         * console-msw.h (struct mswindows_dialog_id):
11395         * lrecord.h (lrecord_type):
11396         New object for use with MSW dialogs.
11397
11398         * console.h (struct console_methods):
11399         New enable/disable frame methods, for proper modal dialogs.
11400
11401         * device-msw.c (msprinter_default_printer): Fix to follow
11402         proper Mule conventions.
11403
11404         * device-msw.c:
11405         * device-msw.c (signal_open_printer_error):
11406         * device-msw.c (msprinter_init_device):
11407         * device-msw.c (ensure_not_printing):
11408         * device-msw.c (plist_get_margin):
11409         * device-msw.c (Fmsprinter_select_settings):
11410         * device-msw.c (finalize_devmode):
11411         * device-msw.c (Fmsprinter_settings_despecialize):
11412         * device-msw.c (signal_enum_priner_error):
11413         * extents.c (decode_extent):
11414         * extents.c (decode_map_extents_flags):
11415         * extents.c (decode_extent_at_flag):
11416         * extents.c (Fextent_at):
11417         * extents.c (Fextents_at):
11418         * extents.c (symbol_to_glyph_layout):
11419         [[[[2]]]] Use structured errors.
11420
11421         * dialog-msw.c:
11422         * dialog-msw.c (mswindows_is_dialog_msg):
11423         * dialog-msw.c (mark_mswindows_dialog_id):
11424         * dialog-msw.c (dialog_proc):
11425         * dialog-msw.c (handle_question_dialog_box):
11426         * dialog-msw.c (syms_of_dialog_mswindows):
11427         Define new object to clean up marking; use it as a dialog identifier.
11428         Call new delete-dialog-box-hook.
11429
11430         * dialog-x.c (dbox_selection_callback):
11431         * dialog-x.c (dbox_descriptor_to_widget_value):
11432         * dialog-x.c (x_make_dialog_box_internal):
11433         Call new delete-dialog-box-hook.
11434         Return an id.
11435
11436         * dialog.c:
11437         * dialog.c (syms_of_dialog):
11438         * dialog.c (vars_of_dialog):
11439         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11440
11441         * eval.c:
11442         * eval.c (signal_call_debugger):
11443         when noninteractive, output stack traces on the console instead
11444         of in a (never-seen) buffer.
11445
11446         * eval.c (signal_type_error):
11447         * eval.c (invalid_argument_2):
11448         * lisp.h:
11449         new funs for use w/structured errors.
11450
11451         * event-Xt.c:
11452         * event-Xt.c (x_to_emacs_keysym):
11453         * event-Xt.c (describe_event):
11454         * event-Xt.c (emacs_Xt_event_handler):
11455         * event-Xt.c (vars_of_event_Xt):
11456         * event-msw.c:
11457         * event-msw.c (mswindows_wnd_proc):
11458         * event-msw.c (vars_of_event_mswindows):
11459         rename {x,mswindows}-debug-events to debug-{}-events for
11460         consistency with other debug-foo variables.
11461
11462         * event-stream.c:
11463         document next-event more clearly.
11464
11465         * fileio.c (Ffile_name_directory):
11466         * fileio.c (Ffile_name_nondirectory):
11467         * fileio.c (Funhandled_file_name_directory):
11468         * fileio.c (file_name_as_directory):
11469         * fileio.c (Ffile_name_as_directory):
11470         * fileio.c (directory_file_name):
11471         * fileio.c (Fdirectory_file_name):
11472         * fileio.c (Fmake_temp_name):
11473         * fileio.c (Ffile_truename):
11474         * fileio.c (Fsubstitute_in_file_name):
11475         * fileio.c (expand_and_dir_to_file):
11476         * fileio.c (barf_or_query_if_file_exists):
11477         * fileio.c (check_executable):
11478         * fileio.c (Ffile_exists_p):
11479         * fileio.c (Ffile_writable_p):
11480         * fileio.c (Ffile_directory_p):
11481         * fileio.c (Ffile_regular_p):
11482         * fileio.c (Ffile_modes):
11483         * fileio.c (Ffile_newer_than_file_p):
11484         * fileio.c (Fverify_visited_file_modtime):
11485         * fileio.c (Fset_visited_file_modtime):
11486         * fileio.c (auto_save_1):
11487         (1). (2).
11488         fix up gcpro's.
11489
11490         * frame-msw.c:
11491         * frame-msw.c (mswindows_init_frame_1):
11492         * frame-msw.c (mswindows_enable_frame):
11493         * frame-msw.c (error_frame_unsizable):
11494         * frame-msw.c (msprinter_init_frame_1):
11495         * frame-msw.c (msprinter_init_frame_3):
11496         * frame-msw.c (console_type_create_frame_mswindows):
11497         (2).
11498         implement new enable/disable frame methods.
11499
11500         * frame-x.c:
11501         * frame-x.c (x_enable_frame):
11502         * frame-x.c (console_type_create_frame_x):
11503         implement new enable/disable frame methods.
11504
11505         * frame.c:
11506         * frame.c (Fdisable_frame):
11507         * frame.c (syms_of_frame):
11508         * frame.h (struct frame):
11509         implement new enable/disable frame methods/functions.
11510
11511         * general-slots.h:
11512         add initial-focus.
11513
11514         * glyphs-msw.c (mswindows_widget_instantiate):
11515         comment that initial-focus should be implemented.
11516
11517         * glyphs-widget.c:
11518         * glyphs-widget.c (check_valid_instantiator):
11519         * glyphs-widget.c (check_valid_orientation):
11520         * glyphs-widget.c (check_valid_tab_orientation):
11521         * glyphs-widget.c (check_valid_justification):
11522         * glyphs-widget.c (check_valid_border):
11523         * glyphs-widget.c (check_valid_callback):
11524         * glyphs-widget.c (check_valid_int_or_function):
11525         * glyphs-widget.c (check_valid_string_or_vector):
11526         * glyphs-widget.c (check_valid_item_list_1):
11527         * glyphs-widget.c (widget_validate):
11528         * glyphs-widget.c (combo_box_validate):
11529         * glyphs-widget.c (widget_instantiate):
11530         * glyphs-widget.c (syms_of_glyphs_widget):
11531         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11532         * glyphs-widget.c (image_instantiator_combo_box):
11533         * glyphs-widget.c (image_instantiator_scrollbar):
11534         * glyphs-widget.c (image_instantiator_tab_control):
11535         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11536         (2).
11537         support (unimplemented) keyword initial-focus.
11538         reindent long macros.
11539
11540         * glyphs-x.c (x_redisplay_widget):
11541         * glyphs-x.c (x_button_instantiate):
11542         * glyphs-x.c (x_button_redisplay):
11543         * glyphs-x.c (x_progress_gauge_instantiate):
11544         * glyphs-x.c (x_edit_field_instantiate):
11545         * glyphs-x.c (x_combo_box_instantiate):
11546         * glyphs-x.c (x_tab_control_instantiate):
11547         * glyphs-x.c (x_label_instantiate):
11548         * gui-x.c:
11549         * gui-x.c (button_item_to_widget_value):
11550         * gui-x.c (gui_items_to_widget_values_1):
11551         * gui-x.c (gui_item_children_to_widget_values):
11552         * gui-x.c (gui_items_to_widget_values):
11553         * gui-x.h:
11554         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11555         add new flag to gui-parsing routines to indicate whether
11556         accelerator specs should be supported.
11557
11558         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11559
11560         * glyphs.h (struct Lisp_Image_Instance):
11561         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11562         add initial-focus flag.
11563
11564         * gui.c:
11565         * gui.c (syms_of_gui):
11566         * gui.c (vars_of_gui):
11567         clean up menu-no-selection-hook.
11568
11569         * gui.h:
11570         support delete-dialog-box-hook.
11571
11572         * lread.c (Fload_internal):
11573         * lread.c (locate_file_in_directory_mapper):
11574         (1).
11575
11576         * lrecord.h:
11577         * lrecord.h (struct toolbar_button):
11578         * lrecord.h (syms_of_toolbar):
11579         document how to create a new object.
11580
11581         * menubar-msw.c (mswindows_char_is_accelerator):
11582         may be called on frames w/o menus.
11583
11584         * menubar.c (vars_of_menubar):
11585         clean up :filter docs.
11586
11587         * nt.c (readdir):
11588         * ntproc.c:
11589         (1).
11590
11591         * process-nt.c:
11592         * process-nt.c (validate_signal_number):
11593         * process-nt.c (signal_cannot_launch):
11594         * process-nt.c (nt_create_process):
11595         * process-nt.c (nt_send_process):
11596         * process-nt.c (nt_kill_child_process):
11597         * process-nt.c (nt_open_network_stream):
11598         * process-nt.c (syms_of_process_nt):
11599         (2).
11600         delete quote-handling.  call new lisp code that does it better.
11601
11602         * process-unix.c (connect_to_file_descriptor):
11603         * process-unix.c (allocate_pty):
11604         * process-unix.c (unix_send_process):
11605         * process-unix.c (unix_kill_child_process):
11606         * process-unix.c (unix_open_network_stream):
11607         * process-unix.c (unix_open_multicast_group):
11608         (1). (2).
11609
11610         * process.c:
11611         * process.c (Fstart_process_internal):
11612         (2).  need to canonicalize process path even if absolute.
11613
11614         * select-msw.c (symbol_to_ms_cf):
11615         * select-msw.c (ms_cf_to_symbol):
11616         * select-msw.c (cf_is_autofreed):
11617         * select-msw.c (mswindows_destroy_selection):
11618         * select.c:
11619         * select.c (syms_of_select):
11620         * select.h:
11621         support dibv5, fix bugs. (from Mike Alexander)
11622
11623         * select.c (Fget_selection_internal):
11624         * select.c (select_convert_out):
11625
11626         * sysdep.c:
11627         * sysdep.c (xemacs_stat):
11628         renamed.
11629
11630         * sysdep.c (mkdir):
11631         * sysdep.c (rmdir):
11632         but keep original stat() here because we provide encapsulation
11633         around these funs.
11634
11635         * sysfile.h:
11636         * sysfile.h (fstat):
11637         remove stat garbage.
11638
11639         * syswindows.h:
11640         fix X/MSW conflict.
11641         don't include tchar.h.  it's inappropriate because it makes
11642         compile-time distinctions when we want runtime distinctions.
11643         (we provide our own tchar replacements)
11644
11645         * toolbar.c:
11646         use default object printer for toolbar-button.
11647
11648         * unexcw.c:
11649         make sure we don't encapsulate.
11650
11651         * window.c (vars_of_window):
11652         emphasize that temp-buffer-show-hook is obsolete.
11653
11654 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11655
11656         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11657         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11658
11659         * events.c (Fevent_timestamp_lessp):
11660         Not 64-bit clean.  Use EMACS_INT, not int.
11661
11662 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11663
11664         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11665         unsigned int and changed the last enum to
11666         lrecord_type_last_built_in_type.
11667         (lrecord_implementations_table): changed prototype to know how
11668         long the array is supposed to be.
11669         (lrecord_type_count): new unsigned int to keep track of the
11670         current number of lisp lrecord types.
11671         (DEFINE_EXTERNAL_LRECORD):
11672         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11673         dynamic-modules to declare new lisp types. They are the same
11674         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11675         int for each new type, and increment lrecord_type_count by 1.
11676
11677         * alloc.c (lrecord_implementations_table): Changed to reference
11678         lrecord_type_last_built_in_type for the size of the array.
11679         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11680
11681 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11682
11683         * glyphs.h (check_valid_item_list): Renamed from
11684         check_valid_item_list_1.
11685
11686 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11687
11688         * select.c (Qselect_coerce): New.
11689         * select.c (Vselection_coercion_alist): New.
11690         * select.c (syms_of_select): Declare.
11691         * select.c (get-selection-internal): Use it.
11692         Use the new select-coerce functionality.
11693
11694         * select.c (select_coerce): New.
11695         * select.h (select_coerce): Declare.
11696         New function to coerce one type of data into another.
11697
11698 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11699
11700         * callproc.c (Fcall_process_internal):
11701         (Fcall_process_internal):
11702         * process-unix.c (unix_create_process):
11703         Save and restore the value of errno, so that error messages are accurate.
11704
11705 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11706
11707         * elhash.c (print_hash_table):
11708         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11709         Prettify docstrings and indentation.
11710
11711 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11712
11713         * window.c (Fwindow_pixel_edges): Subtract frame border and
11714         gutter size.
11715
11716 2000-07-31  Andy Piper  <andy@xemacs.org>
11717
11718         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11719         will acknowledge the change.
11720
11721         * glyphs.h: declare tab_control_order_only_changed.
11722
11723         * glyphs-x.c (x_tab_control_redisplay): use
11724         tab_control_order_only_changed.
11725
11726         * glyphs-widget.c (tab_control_order_only_changed): new function.
11727
11728         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11729         tab_control_order_only_changed.
11730
11731         * gui.c (gui_item_equal_sans_selected): new function.
11732         (gui_item_equal): use it.
11733
11734         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11735         :properties in favor of :items..
11736
11737         * glyphs-widget.c (check_valid_item_list): rename from
11738         check_valid_item_list_1.
11739         (check_valid_item_list_1): renamed.
11740         (combo_box_validate): deprecate :properties in favor of :items.
11741         (widget_instantiate): ditto.
11742         (tab_control_update): ditto.
11743         (image_instantiator_combo_box): ditto.
11744         (image_instantiator_tree_view): ditto.
11745         (image_instantiator_tab_control): ditto.
11746         (layout_post_instantiate): remove dead code.
11747
11748         * print.c (debug_print_no_newline): only write to debugger if in
11749         WIN32_NATIVE.
11750
11751         * elhash.c (Fmake_hash_table): update doc string.
11752
11753         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11754         messages whilst in GC. This at least stops XEmacs crashing but has
11755         the potential for wierd behaviour.
11756
11757 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11758
11759         * config.h.in:
11760         Make existence of s&m files optional.
11761
11762         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11763         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11764         * s/gnu.h: Remove HAVE_GETLOADAVG.
11765         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11766         * s/sol2.h: Remove HAVE_GETLOADAVG.
11767         * lisp.h: Remove getloadavg() declaration.
11768         * fns.c:
11769         Include <sys/loadavg.h> if available.
11770         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11771         * config.h.in:  Group together getloadavg()-related macros.
11772         Use only configure-time tests to detect getloadavg().
11773
11774 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11775
11776         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11777
11778 2000-07-25  Andy Piper  <andy@xemacs.org>
11779
11780         * syswindows.h: add tchar.h for native builds.
11781
11782         * frame.c (syms_of_frame): remove set-glyph-image.
11783
11784         * general-slots.h: add Qset_glyph_image.
11785
11786         * glyphs-widget.c (layout_update): add domain arg to
11787         set-glyph-image.
11788         (syms_of_glyphs_widget): remove set-glyph-image.
11789
11790 2000-07-23  Ben Wing  <ben@xemacs.org>
11791
11792         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11793         Vpopup_frame_list.
11794
11795 2000-07-22  Andy Piper  <andy@xemacs.org>
11796
11797         * symsinit.h: add syms_of_win32().
11798
11799         * gui-msw.c (syms_of_gui_mswindows): remove
11800         Fmswindows_shell_execute.
11801         (Fmswindows_shell_execute): moved to win32.c.
11802
11803         * emacs.c (main_1): add syms_of_win32 ().
11804
11805         * win32.c (init_potentially_nonexistent_functions): rewrite in
11806         compiler-friendly terms.
11807         (Fmswindows_shell_execute): move here from gui-msw.c.
11808         (syms_of_win32): new.
11809
11810         * device-msw.c (Fmswindows_printer_list): clean up args to
11811         EnumPrinters.
11812         Don't include tchar under cygwin or mingw.
11813         (msprinter_default_printer): make cygwin-friendly.
11814
11815 2000-07-21  Andy Piper  <andy@xemacs.org>
11816
11817         * glyphs-widget.c (image_instantiator_tree_view): use tab
11818         control's update function.
11819         (layout_property): new function. Retrieve items.
11820
11821         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11822         function. Re-populate the tree view from the pending items.
11823
11824         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11825         is designated the parent if the domain is an image instance. This
11826         is needed so that dirtiness can be cascade up the hierarchy and
11827         thus for layout children to be redisplayed correctly.
11828         (allocate_image_instance): rename glyph -> parent.
11829
11830         * redisplay.h: change redisplay_output_layout signature.
11831
11832         * redisplay-msw.c (mswindows_output_display_block): use domain
11833         arg.
11834
11835         * redisplay-x.c (x_output_display_block): use domain arg.
11836
11837 2000-07-10  Andy Piper  <andy@xemacs.org>
11838
11839         * window.c (Fset_window_configuration): add comment.
11840
11841         * redisplay-output.c (compare_runes):
11842         (redisplay_output_subwindow): redisplay rather than update subwindow.
11843         (redisplay_output_layout): ditto.
11844
11845         * redisplay-msw.c (mswindows_frame_output_end):
11846         (mswindows_frame_output_end): make defer window pos optional.
11847
11848         * lisp.h: add Flast.
11849
11850         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11851         normalize method. Change update method to be for changed
11852         instantiators. Add redisplay method. Change signature of layout
11853         method.
11854         (struct Lisp_Image_Instance): add instantiator.
11855         (IMAGE_INSTANCE_INSTANTIATOR): new.
11856         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11857         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11858         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11859
11860         * glyphs.c:
11861         (find_instantiator_differences): new function.
11862         (Fset_instantiator_property): new convenience function.
11863         (check_image_instance_structure): strictly check for vector
11864         instantiators.
11865         (normalize_image_instantiator): make non-static.
11866         (instantiate_image_instantiator): pass on dest_mask and use new
11867         signatures for image_instance_layout and friends.
11868         (mark_image_instance): mark the instantiator. Mark the subwindow
11869         face not the widget face.
11870         (image_instance_equal): add instantiator.
11871         (image_instance_hash): ditto.
11872         (allocate_image_instance): ditto.
11873         (Fset_image_instance_property): removed.
11874         (Fimage_instance_file_name): ditto.
11875         (Fcolorize_image_instance): ditto.
11876         (image_instance_layout): add offsets to be set.
11877         (update_image_instance): new function. update an image instance
11878         from its changed instantiator.
11879         (inherit_normalize): add dest_mask.
11880         (xbm_normalize): ditto.
11881         (xface_normalize): ditto.
11882         (xpm_normalize): ditto.
11883         (text_update): set_property -> update.
11884         (image_instantiate): use the glyph identity as a hash key, not the
11885         instantiator.
11886         (glyph_width): use new image_instance_layout signature.
11887         (glyph_ascent): ditto.
11888         (glyph_descent): ditto.
11889         (glyph_height): ditto.
11890         (glyph_query_geometry): ressurrect.
11891         (glyph_layout): ditto.
11892         (redisplay_subwindow): update -> redisplay.
11893         (syms_of_glyphs): add Fset_instantiator_property.
11894         (image_instantiator_format_create): set_property -> update.
11895
11896         * glyphs-x.c:
11897         (autodetect_normalize): add dest_maks to signature.
11898         (x_redisplay_subwindow): update -> redisplay.
11899         (x_redisplay_widget): ditto.
11900         (x_button_redisplay): ditto.
11901         (x_progress_gauge_redisplay): ditto.
11902         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11903         stacking order.
11904         (console_type_create_glyphs_x): update -> redisplay.
11905         (image_instantiator_format_create_glyphs_x): ditto.
11906
11907         * glyphs-widget.c:
11908         (check_valid_instantiator): disallow glyphs in the instantiator,
11909         they must now be vectors.
11910         (check_valid_instantiator_list): ditto.
11911         (glyph_instantiator_to_glyph): use internal symbol rather than
11912         intern.
11913         (widget_update): renamed from widget_set_property. Call cascaded
11914         update methods.
11915         (redisplay_widget): renamed from update_widget.
11916         (widget_layout): image_instance_layout now takes position as well
11917         as size.
11918         (widget_normalize): ditto.
11919         (widget_instantiate): ditto.
11920         (tab_control_query_geometry) ditto.:
11921         (tab_control_update): renamed from tab_control_set_property.
11922         (progress_gauge_update): set_property -> update.
11923         (layout_normalize): rewrite so that child instantiators are
11924         normalized also.
11925         (layout_update): new function. Create glyphs from the normalized
11926         children and cope with any other layout keywords. We do not
11927         instantiate children here that will be take care of by
11928         redisplay_output_layout.
11929         (layout_instantiate): call layout_update and not much else.
11930         (layout_post_instantiate): not sure whether this is needed
11931         anymore.
11932         (layout_query_geometry): query glyph geometry rather than
11933         image_instance geometry.
11934         (layout_layout): set offsets from pass in parameters. Use glyph
11935         geometry and layout functions rather than image instance ones.
11936         (native_layout_layout): ditto.
11937         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11938         (image_instantiator_widget): set_property -> update.
11939         (image_instantiator_buttons): ditto.
11940         (image_instantiator_progress_guage): ditto.
11941         (image_instantiator_tab_control): ditto.
11942         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11943         (image_instantiator_layout): add update method.
11944
11945         * glyphs-msw.c (bmp_normalize):
11946         (mswindows_resource_normalize): add dest_mask so that it can be
11947         proprogated by layout_normalize.
11948         (begin_defer_window_pos): make optional because it may not be the
11949         right thing to do and it introduces differences with X.
11950         (mswindows_unmap_subwindow): ditto.
11951         (mswindows_map_subwindow): ditto.
11952         (mswindows_redisplay_subwindow): renamed from
11953         mswindows_update_subwindow.
11954         (mswindows_redisplay_widget): ditto.
11955         (mswindows_button_redisplay): renamed from
11956         mswindows_button_update. Update is now what the instantiation
11957         function does for a changed instantiator.
11958         (mswindows_progress_gauge_instantiate): set the progress value
11959         here if appropriate.
11960         (mswindows_tab_control_redisplay): cope with re-ordering of the
11961         members of the tab widget by simply selecting the new top
11962         widget. This makes things appear ok if you click on a tab.
11963         (mswindows_combo_box_instantiate): image_instance_layout now takes
11964         position as well as size.
11965         (mswindows_progress_gauge_redisplay): renamed from
11966         mswindows_progress_gauge_update.
11967         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11968         (image_instantiator_format_create_glyphs_mswindows): ditto.
11969
11970         * glyphs-eimage.c (jpeg_normalize):
11971         (gif_normalize):
11972         (png_normalize):
11973         (tiff_normalize): add dest_mask so that it can be proprogated by
11974         layout_normalize.
11975
11976         * elhash.c:
11977         (print_hash_table):
11978         (hash_table_weakness_validate):
11979         (decode_hash_table_weakness):
11980         (Fhash_table_weakness):
11981         (Fhash_table_type):
11982         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11983
11984         * console.h (struct console_methods): move update_* to
11985         redisplay_*.
11986
11987 2000-07-20  Ben Wing  <ben@xemacs.org>
11988
11989         * *.[ch] (XSETOBJ): remove unused middle argument.
11990         lisp-disunion.h: correct wrap_object() to one argument.
11991
11992 2000-07-15  Ben Wing  <ben@xemacs.org>
11993
11994         * s/cygwin32.h:
11995         * s/cygwin32.h (CYGWIN_CONV_PATH):
11996         Add missing logb prototype for v1.1.
11997         Use post-b20 names and alias to pre-b20 names when pre-b20.
11998
11999         * s/windowsnt.h: [5].
12000
12001 2000-07-15  Ben Wing  <ben@xemacs.org>
12002
12003         * Makefile.in.in (x_objs):
12004         * Makefile.in.in (sheap_objs):
12005         * Makefile.in.in (objs):
12006         added win32.o, cosmetic cleanups.
12007
12008         * alloc.c (Fmake_byte_code):
12009         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12010         etc. macros which declare their own args now.
12011
12012         * alloc.c (syms_of_alloc):
12013         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12014
12015         * buffer.c:
12016         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12017
12018         * buffer.c (Fget_file_buffer):
12019         Fixed GCPRO problem.
12020
12021         * buffer.c (get_truename_buffer):
12022         Fixed comment about GC checking.
12023
12024         * buffer.c (syms_of_buffer):
12025         Undeclared those dedicated frame funs.
12026         [2].
12027
12028         * buffer.h:
12029         Define convenience macros for internal/external conversions.
12030         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12031         and Qenvironment_variable_encoding for cleaner code.
12032
12033         * bufslots.h:
12034         Remove dedicated-frame; in lisp.
12035
12036         * bytecode.c (funcall_compiled_function):
12037         [1].
12038
12039         * bytecode.c (syms_of_bytecode):
12040         [2].
12041
12042         * console-msw.c:
12043         * console-msw.c (mswindows_show_console): Rewrote.
12044
12045         * console-msw.c (Fmswindows_debugging_output): New.
12046         Sends to OutputDebugString (special MSWin debugger interface).
12047
12048         * console-msw.c (Fmswindows_message_box):
12049         Fixed stupid bugs so it works when called from kill-emacs.
12050
12051         * console-msw.c (syms_of_console_mswindows):
12052         Declare Fmswindows_debugging_output.
12053
12054         * console-msw.h:
12055         New MSWin prototypes.
12056
12057         * console-msw.h (struct mswindows_frame):
12058         New entry last-click-mods for improved button-modifier support.
12059
12060         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12061         New struct entry `popup' with corresponding accessor.
12062
12063         * console-x.c:
12064         * console-x.c (split_up_display_spec):
12065         * console-x.c (get_display_arg_connection):
12066         * console-x.c (x_semi_canonicalize_console_connection):
12067         * console-x.c (x_canonicalize_device_connection):
12068         [[[6]]]: Change char to more specific type.
12069         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12070
12071         * console-x.c (x_semi_canonicalize_console_connection):
12072         * console-x.c (x_canonicalize_device_connection):
12073         [[[9]]]: Fix up error signalling to use new structured error system.
12074
12075         * console-x.h:
12076         [[[4]]]: Define codesys aliases:
12077         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12078         Qx_color_name_encoding, Qx_display_name_encoding.
12079
12080         * console.h (struct console_methods):
12081         New method make_dialog_box_internal supersedes older
12082         popup_dialog_box method.
12083
12084         * data.c:
12085         Define many new errors, part of new structured errors.
12086
12087         * data.c (init_errors_once_early):
12088         * data.c (syms_of_data):
12089         [2].
12090
12091         * device-msw.c (mswindows_init_device):
12092         [[[5]]]: Cleanup to support NT 3.51.
12093
12094         * device-msw.c (decode_devmode): Cleanup.
12095
12096         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12097         * device-msw.c (mswindows_handle_print_dialog_box):
12098         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12099         * device-msw.c (syms_of_device_mswindows):
12100         Delete the dialog box primitives recently introduced by Kirill and
12101         instead interface to general dialog box interface.
12102
12103         * device-x.c:
12104         * device-x.c (compute_x_app_name):
12105         * device-x.c (x_init_device):
12106         * device-x.c (Fx_valid_keysym_name_p):
12107         * device-x.c (Fx_set_font_path):
12108         [6].
12109         [7].
12110
12111         * device.h (wrap_device): New.
12112         First of its kind; meant to replace XSETDEVICE.
12113
12114         * dialog-msw.c: Many file-dialog symbols.
12115
12116         * dialog-msw.c (mswindows_register_popup_frame): New.
12117         * dialog-msw.c (mswindows_is_dialog_msg): New.
12118         For supporting kbd traversal in dialog boxes.
12119
12120         * dialog-msw.c (dialog_proc):
12121         Support hitting ESC in dialogs.
12122
12123         * dialog-msw.c (struct):
12124         Common dialog box errors.
12125
12126         * dialog-msw.c (handle_file_dialog_box): New.
12127         Add file dialog code.
12128
12129         * dialog-msw.c (handle_question_dialog_box):
12130         Redo existing code to support new question dialog syntax.
12131
12132         * dialog-msw.c (console_type_create_dialog_mswindows):
12133         We support new dialog console method.
12134
12135         * dialog-msw.c (syms_of_dialog_mswindows):
12136         * dialog-msw.c (vars_of_dialog_mswindows):
12137         New file dialog symbols, vars.
12138
12139         * dialog-x.c:
12140         * dialog-x.c (maybe_run_dbox_text_callback):
12141         * dialog-x.c (dbox_descriptor_to_widget_value):
12142         * dialog-x.c (x_make_dialog_box_internal):
12143         * dialog-x.c (console_type_create_dialog_x):
12144         Mule-ize entire file.
12145         Redo to support question dialog syntax.
12146         [6].
12147
12148         * dialog.c:
12149         * dialog.c (Fmake_dialog_box_internal):
12150         * dialog.c (syms_of_dialog):
12151         Kill old popup-dialog-box, replace with new primitive.
12152         Just call device method or signal error.
12153
12154         * eldap.c (Fldap_open):
12155         * eldap.c (Fldap_search_basic):
12156         * eldap.c (Fldap_add):
12157         * eldap.c (Fldap_modify):
12158         [1].
12159         [7].
12160
12161         * emacs.c:
12162         * emacs.c (make_arg_list_1):
12163         * emacs.c (make_arg_list):
12164         Mule-ize call to dll_init().
12165         [6].
12166         [8].
12167
12168         * emacs.c (make_argc_argv):
12169         * emacs.c (free_argc_argv):
12170         * emacs.c (init_cmdargs):
12171         * emacs.c (main_1):
12172         * emacs.c (Fkill_emacs):
12173         * emacs.c (Fdump_emacs):
12174         Update comments about what can be used in syms_* etc.
12175         Call init_win32() when necessary.
12176         Fix up MS Win dialog box in kill-buffer to actually work right.
12177         [7].
12178
12179         * eval.c:
12180         * eval.c (For):
12181         * eval.c (Fand):
12182         * eval.c (Fprogn):
12183         * eval.c (Fprog1):
12184         * eval.c (Fprog2):
12185         * eval.c (FletX):
12186         * eval.c (Flet):
12187         * eval.c (condition_case_3):
12188         * eval.c (Feval):
12189         * eval.c (function_argcount):
12190         * eval.c (funcall_lambda):
12191         [1].
12192
12193         * eval.c (type_error): New.
12194         * eval.c (maybe_type_error): New.
12195         * eval.c (continuable_type_error): New.
12196         * eval.c (maybe_continuable_type_error): New.
12197         * eval.c (type_error_with_frob): New.
12198         * eval.c (maybe_type_error_with_frob): New.
12199         * eval.c (continuable_type_error_with_frob): New.
12200         * eval.c (maybe_continuable_type_error_with_frob): New.
12201         New functions for use with structured errors.
12202
12203         * event-Xt.c:
12204         * event-Xt.c (x_event_to_emacs_event):
12205         Buttons are now modifiers too.
12206
12207         * event-Xt.c (emacs_Xt_current_event_timestamp):
12208         Implement new event method.
12209         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12210
12211         * event-msw.c:
12212         * event-msw.c (ntpipe_shove_writer): [5].
12213         * event-msw.c (mswindows_enqueue_mouse_button_event):
12214         * event-msw.c (mswindows_drain_windows_queue):
12215         * event-msw.c (mswindows_wnd_proc): [7].
12216         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12217         * event-msw.c (mswindows_modifier_state):
12218         Throughout: support new button modifiers.
12219
12220         * event-msw.c (emacs_mswindows_current_event_timestamp):
12221         Implement new event method.
12222         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12223
12224         * event-stream.c:
12225         * event-stream.c (event_stream_current_event_timestamp): New.
12226         * event-stream.c (maybe_kbd_translate): New functionality.
12227         * event-stream.c (vars_of_event_stream):
12228         Document new kbd-translate-table functionality.
12229
12230         * event-stream.c (Fcurrent_event_timestamp): New.
12231         New primitive for use in fabricated events.
12232         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12233
12234         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12235
12236         * events.c:
12237         * events.c (Fmake_event):
12238         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12239         [1].
12240         [9].
12241
12242         * events.c (format_event_object): fix gcc warnings.
12243
12244         * events.c (Fevent_timestamp): Document new primitives.
12245
12246         * events.c (TIMESTAMP_HALFSPACE): New.
12247
12248         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12249         comparing timestamps correctly (half-space algorithm).
12250
12251         * events.c (Fevent_modifier_bits): Doc fix.
12252
12253         * events.c (Fevent_modifiers): Major doc addition.
12254         * events.c (event_x_y_pixel_internal): Typo fix.
12255         * events.c (syms_of_events): Declare new primitives.
12256
12257         * events.h:
12258         Update long comment for button modifiers, timestamps.
12259
12260         * events.h (struct event_stream):
12261         New current_event_timestamp method.
12262
12263         * extents.c:
12264         * extents.c (extent_in_region_p):
12265         * extents.c (decode_extent):
12266         * extents.c (Fset_extent_parent):
12267         * extents.c (decode_map_extents_flags):
12268         Fix gcc warnings.
12269         [9].
12270
12271         * extents.c (struct extent_at_arg):
12272         * extents.c (decode_extent_at_flag):
12273         * extents.c (extent_at_mapper):
12274         * extents.c (extent_at_bytind):
12275         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12276         * extents.c (Fextents_at): New primitive. [9].
12277         * extents.c (symbol_to_glyph_layout): [9].
12278         Support new primitive `extents-at'.
12279
12280
12281         * extents.c (get_text_property_bytind):
12282         extent_at_bytind has another arg.
12283         [9].
12284
12285         * extents.c (syms_of_extents): New primitive.
12286
12287         * file-coding.c (Fmake_coding_system): [1].
12288         * file-coding.c (subsidiary_coding_system): fix gcc warning
12289         * file-coding.c (syms_of_file_coding): [2].
12290
12291         * fileio.c (Fexpand_file_name):
12292         * fileio.c (Fsysnetunam):
12293         * fileio.c (Ffile_exists_p):
12294         * fileio.c (Ffile_executable_p):
12295         * fileio.c (Fverify_visited_file_modtime):
12296         Clean up GCPROing.
12297
12298         * fileio.c (syms_of_fileio): [2].
12299
12300         * filelock.c (lock_file_1):
12301         * filelock.c (current_lock_owner):
12302         * filelock.c (lock_if_free):
12303         * filelock.c (lock_file):
12304         * filelock.c (unlock_file):
12305         Clean up GCPROing.
12306
12307         * fns.c (concat): Fix gcc warning.
12308
12309         * fns.c (Fmember):
12310         * fns.c (Fold_member):
12311         * fns.c (Fmemq):
12312         * fns.c (Fold_memq):
12313         * fns.c (memq_no_quit):
12314         * fns.c (Fassoc):
12315         * fns.c (Fold_assoc):
12316         * fns.c (Fassq):
12317         * fns.c (Fold_assq):
12318         * fns.c (assq_no_quit):
12319         * fns.c (Frassoc):
12320         * fns.c (Fold_rassoc):
12321         * fns.c (Frassq):
12322         * fns.c (Fold_rassq):
12323         * fns.c (rassq_no_quit):
12324         * fns.c (Fdelete):
12325         * fns.c (Fold_delete):
12326         * fns.c (Fdelq):
12327         * fns.c (Fold_delq):
12328         * fns.c (delq_no_quit):
12329         * fns.c (Fremassoc):
12330         * fns.c (Fremassq):
12331         * fns.c (remassq_no_quit):
12332         * fns.c (Fremrassoc):
12333         * fns.c (Fremrassq):
12334         * fns.c (remrassq_no_quit):
12335         * fns.c (Freverse):
12336         * fns.c (mapcar1):
12337         [1].
12338
12339         * frame-msw.c (mswindows_init_frame_1):
12340         * frame-msw.c (mswindows_delete_frame):
12341         Register popups with dialog code so keyboard traversing works.
12342
12343         * frame-tty.c (tty_raise_frame_no_select): [1].
12344
12345         * frame-x.c:
12346         * frame-x.c (x_set_frame_text_value):
12347         * frame-x.c (x_set_frame_properties):
12348         * frame-x.c (x_create_widgets):
12349         [7].
12350
12351         * frame.c:
12352         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12353
12354         * frame.h (wrap_frame): New.
12355         Macro like wrap_device.
12356
12357         * general.c:
12358         * general.c (SYMBOL):
12359         * general.c (syms_of_general):
12360         Major reorg.  This is now just a wrapper and symbols themselves
12361         are listed in general-slots.h.
12362
12363         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12364         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12365
12366         * glyphs-msw.c (mswindows_native_layout_instantiate):
12367         Add DS_CONTROL so keyboard traversal will work.
12368
12369         * glyphs-widget.c:
12370         * glyphs-widget.c (syms_of_glyphs_widget):
12371         Move some symbols to general-slots.h.
12372
12373         * glyphs-x.c:
12374         * glyphs-x.c (xbm_instantiate_1):
12375         * glyphs-x.c (x_xbm_instantiate):
12376         * glyphs-x.c (x_xface_instantiate):
12377         * glyphs-x.c (autodetect_instantiate):
12378         * glyphs-x.c (cursor_font_instantiate):
12379         * glyphs-x.c (x_update_widget):
12380         * glyphs-x.c (x_widget_instantiate):
12381         * glyphs.c (bitmap_to_lisp_data):
12382         * glyphs.c (pixmap_to_lisp_data):
12383         [7].
12384
12385         * glyphs.c (syms_of_glyphs):
12386         [2].
12387
12388         * gui-x.c:
12389         * gui-x.c (print_widget_value):
12390         * gui-x.c (menu_separator_style_and_to_external):
12391         * gui-x.c (add_accel_and_to_external):
12392         * gui-x.c (button_item_to_widget_value):
12393         * gui-x.c (gui_items_to_widget_values_1):
12394         * gui-x.c (gui_items_to_widget_values):
12395         * gui-x.c (syms_of_gui_x):
12396         * gui-x.c (vars_of_gui_x):
12397         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12398         [9].
12399
12400         * gui-x.h:
12401         Muleize, prototype changes matching gui-x.c.
12402
12403         * gui.c:
12404         * gui.c (separator_string_p):
12405         * gui.c (gui_item_add_keyval_pair):
12406         * gui.c (make_gui_item_from_keywords_internal):
12407         * gui.c (signal_too_long_error):
12408         * gui.c (parse_gui_item_tree_item):
12409         * gui.c (syms_of_gui):
12410         * gui.c (vars_of_gui):
12411         * gui.h:
12412         menu-no-selection-hook moved here (used by MSWin).
12413         Move some symbols to general-slots.h.
12414         [6].
12415         [9].
12416
12417         * insdel.c (get_buffer_pos_char):
12418         * insdel.c (get_buffer_range_char):
12419         Add GC comments.
12420
12421         * keymap.c (keymap_lookup_directly):
12422         * keymap.c (keymap_store):
12423         * keymap.c (ensure_meta_prefix_char_keymapp):
12424         * keymap.c (describe_map):
12425         * keymap.h:
12426         Support new button modifiers.
12427
12428         * lisp-disunion.h (wrap_object):
12429         * lisp-disunion.h (XSETOBJ):
12430         Rename make_obj to wrap_object.
12431
12432         * lisp-union.h:
12433         * lisp-union.h (make_int):
12434         * lisp-union.h (make_char):
12435         Support wrap_object.
12436
12437         * lisp.h:
12438         * lisp.h (LIST_LOOP):
12439         * lisp.h (EXTERNAL_LIST_LOOP):
12440         * lisp.h (LIST_LOOP_2):
12441         * lisp.h (EXTERNAL_LIST_LOOP_1):
12442         * lisp.h (EXTERNAL_LIST_LOOP_2):
12443         * lisp.h (EXTERNAL_LIST_LOOP_3):
12444         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12445         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12446         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12447         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12448         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12449         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12450         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12451         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12452         * lisp.h (struct Lisp_Symbol):
12453         * lisp.h (maybe_continuable_error_with_frob):
12454         Fix up section comments.
12455         Add new types for char to indicate usage.
12456         Delete symbols auto-generated from general-slots.h.
12457         Add prototypes for structured error functions.
12458         Add long comments describing looping macros and change interface
12459         so that lvalues are automatically declared.
12460         Add NO_DECLARE macro in case callers want to declare lvalues
12461         themselves.
12462
12463         * lread.c (read_syntax_error):
12464         * lread.c (continuable_read_syntax_error):
12465         * lread.c (read_structure):
12466         * lread.c (sequence_reader):
12467         * lread.c (read_list_conser):
12468         * lread.c (read_compiled_function):
12469         Rename syntax_error and continuable_syntax_error to avoid clash
12470         with same-named structured error functions.
12471
12472         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12473         * menubar-msw.c (populate_menu_add_item):
12474         * menubar-msw.c (populate_or_checksum_helper):
12475         [5].
12476         [9].
12477
12478         * menubar-x.c:
12479         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12480         Mule-ize whole file.
12481
12482         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12483
12484         * mule-charset.c (Fmake_charset):
12485         * mule-wnnfns.c (Fwnn_set_param):
12486         [1].
12487
12488         * ntproc.c (create_child):
12489         * ntproc.c (Fwin32_set_current_locale):
12490         Add comments portending doom.
12491
12492         * objects-msw.c:
12493         * objects-msw.c (old_font_enum_callback_2):
12494         * objects-msw.c (font_enum_callback_1):
12495         * objects-msw.c (mswindows_enumerate_fonts):
12496         [5].
12497
12498         * objects-x.c:
12499         * objects-x.c (allocate_nearest_color):
12500         * objects-x.c (x_parse_nearest_color):
12501         * objects-x.c (x_initialize_color_instance):
12502         * objects-x.c (x_print_color_instance):
12503         * objects-x.c (x_finalize_color_instance):
12504         * objects-x.c (x_valid_color_name_p):
12505         * objects-x.c (x_initialize_font_instance):
12506         * objects-x.c (x_print_font_instance):
12507         * objects-x.c (valid_x_font_name_p):
12508         * objects-x.c (truename_via_FONT_prop):
12509         * objects-x.c (truename_via_random_props):
12510         * objects-x.c (truename_via_XListFonts):
12511         * objects-x.c (x_font_truename):
12512         * objects-x.c (x_font_instance_truename):
12513         * objects-x.c (x_font_instance_properties):
12514         * objects-x.c (x_list_fonts):
12515         * objects-x.c (x_find_charset_font):
12516         Mule-ize entire file.
12517         [7].
12518
12519         * objects-x.h:
12520         Mule-verify.
12521
12522         * print.c:
12523         * print.c (std_handle_out_external):
12524         * print.c (debug_print_no_newline):
12525         * print.c (syms_of_print):
12526         Output to all debugger kinds in debug-print.
12527         Fix console-output code under MSWin to actually work.
12528
12529         * process-nt.c (send_signal):
12530         * process-nt.c (nt_create_process):
12531         Use newer Unicode macros.
12532
12533         * process-unix.c (unix_create_process):
12534         * process-unix.c (unix_canonicalize_host_name):
12535         * process-unix.c (unix_open_network_stream):
12536         [7].
12537
12538         * scrollbar-x.c:
12539         Mule-verify.
12540
12541         * search.c (syms_of_search):
12542         [2].
12543
12544         * select-msw.c (mswindows_destroy_selection):
12545         Use LIST_LOOP_2.
12546
12547         * select-x.c (symbol_to_x_atom):
12548         [7].
12549
12550         * select.c (syms_of_select):
12551         [2].
12552
12553         * sound.c (Fplay_sound_file):
12554         [7].
12555
12556         * specifier.c:
12557         * specifier.c (decode_specifier_type):
12558         * specifier.c (Fvalid_specifier_locale_type_p):
12559         * specifier.c (check_valid_locale_or_locale_type):
12560         * specifier.c (decode_locale):
12561         * specifier.c (decode_locale_type):
12562         * specifier.c (decode_locale_list):
12563         * specifier.c (check_valid_domain):
12564         * specifier.c (decode_specifier_tag_set):
12565         * specifier.c (Fcanonicalize_tag_set):
12566         * specifier.c (Fdefine_specifier_tag):
12567         * specifier.c (Fspecifier_tag_predicate):
12568         * specifier.c (check_valid_inst_list):
12569         * specifier.c (check_valid_spec_list):
12570         * specifier.c (decode_how_to_add_specification):
12571         * specifier.c (check_modifiable_specifier):
12572         * specifier.c (specifier_add_spec):
12573         * specifier.c (boolean_validate):
12574         * specifier.c (display_table_validate):
12575         [9].
12576
12577         * specifier.c (syms_of_specifier):
12578         Move some symbols to general-slots.h.
12579         [2].
12580
12581         * symbols.c:
12582         * symbols.c (Fmapatoms):
12583         * symbols.c (Fapropos_internal):
12584         Add GCPROs.
12585
12586         * symbols.c (set_default_buffer_slot_variable):
12587         * symbols.c (set_default_console_slot_variable):
12588         [1].
12589
12590         * symbols.c (defsymbol_massage_name_1):
12591         * symbols.c (defkeyword_massage_name):
12592         * symbols.c (deferror_1):
12593         * symbols.c (deferror):
12594         * symbols.c (deferror_massage_name_and_message):
12595         * symeval.h:
12596         * symeval.h (DEFSYMBOL):
12597         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12598
12599         * symbols.c (syms_of_symbols):
12600         [2].
12601
12602         * symsinit.h:
12603         * symsinit.h (init_win32): New.
12604         Also new is syms_of_dialog_mswindows.
12605
12606         * syswindows.h:
12607         Add new Unicode macros, missing Cygwin wide-char functions,
12608         convenience conversion macros for Qmswindows_tstr, macros for
12609         encapsulating required MSWin <-> Cygwin filename conversions,
12610         prototype for dynamically-extracted (not in NT 3.51) functions.
12611
12612         * toolbar-x.c:
12613         Mule-verify.
12614
12615         * tooltalk.c (Fadd_tooltalk_message_arg):
12616         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12617         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12618         [7].
12619
12620         * tooltalk.c (syms_of_tooltalk):
12621         [2].
12622
12623         * unexnt.c:
12624         * unexnt.c (unexec):
12625         Fix up headers, declaration of unexec() to be more standard.
12626
12627 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12628
12629         * offix.h: Revert change to guard macros - they're used in offix.c!
12630
12631 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12632
12633         * lisp.h: Defsubred Fdelete.
12634
12635         * console-msw.h:  (msprinter_default_printer): Added.
12636
12637         * console-msw.c (msprinter_canonicalize_console_connection):
12638         (msprinter_canonicalize_device_connection): Added.
12639
12640         * device-msw.c (msprinter_default_printer):
12641         (Fmswingows_get_default_printer):
12642         (signal_enum_priner_error):
12643         (Fmswingows_printer_list): Added.
12644
12645 2000-07-19  Martin Buchholz <martin@xemacs.org>
12646
12647         * XEmacs 21.2.35 is released.
12648
12649 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12650
12651         * select-x.c (x_handle_selection_request):
12652         Text selected in xemacs and pasted into xterm failed to appear.
12653         Spelling fixes and cosmetic changes.
12654
12655 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12656
12657         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12658         XEmacs frame (fix for doubling chars in dialog boxes).
12659
12660 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12661
12662         * select.c (select_convert_in, select_convert_out):
12663         Don't call intern() every time.
12664
12665         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12666         * select.c (vars_of_select): Initialise them.
12667
12668 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12669
12670         * select.c (selection-coercible-types): New.
12671
12672         * select.c (own-selection-internal):
12673         * select.c (get-selection-internal):
12674         MULE bug fix - these should default to COMPOUND_TEXT and not
12675         STRING for MULE. I think.
12676
12677         * select.c (select_convert_out): Use selection-coercible-types
12678         to find types that we can attempt to perform coercions on.
12679
12680 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12681
12682         * mule-wnnfns.c:
12683         * mule-canna.c:
12684         Add coding: cookie to identify encoding.
12685
12686         * mule-canna.c (CANNA_mode_keys): make static.
12687         Use proper prototypes, even for functions of no arguments.
12688         Remove external prototype for Fding().
12689
12690         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12691
12692         * select.c (syms_of_select): Add missing DEFSUBR.
12693
12694 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12695
12696         * select.c (get_selection_internal, own_selection_internal):
12697         Make the type default to STRING, rather than placing a nil type
12698         into Vselection_alist.
12699
12700 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12701
12702         * gpmevent.c (tty_selection_exists_p):
12703         * gpmevent.c (tty_own_selection):
12704         Updated parameter lists.
12705
12706 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12707
12708         * select.h (selection-alist): Removed declaration.
12709
12710         * select.h (get_local_selection):
12711         * select.c (get_local_selection):
12712         Made static.
12713
12714         * select.h (convert_selection): Removed declaration.
12715         * select.c (convert_selection): Removed.
12716         This function belongs in Lisp.
12717
12718         * select.h (select_convert_in): Declare.
12719         * select.h (select_convert_out): Declare.
12720         * select.c (select_convert_in): New.
12721         * select.c (select_convert_out): New.
12722         New conversion functions for other files to call.
12723
12724         * select.h (select_notify_buffer_kill): Declare.
12725         * select.c (select_notify_buffer_kill): New.
12726         New functions that get called from kill-buffer.
12727
12728         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12729         X-specific lisp code.
12730
12731         * select.h: Declare some of the lisp-visible functions for
12732         external use.
12733
12734         * select.c (clean_local_selection_data): Removed. This was
12735         a disgusting function, and previously should have been in
12736         select-x.c in any case. The functionality is now provided
12737         in select-convert-from-integer (select.el).
12738
12739         * select.c (available-selection-types): Fixed stupidity where
12740         INTEGER and ATOM got added twice. Also add STRING when we see an
12741         extent.
12742
12743         * select.c (get-selection-internal): Removed symbol stripping. No
12744         longer causes conversion when data comes from the internal cache.
12745
12746         * select.c (syms_of_select): Added new functions.
12747
12748         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12749         error checking - previously this called abort!
12750
12751         * select-x.c (x_own_selection): Changed comment.
12752
12753         * select-x.c (x_handle_selection_request): Use select_convert_out.
12754         Don't mess with selection-alist; it's an internal variable of select.c.
12755
12756         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12757
12758         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12759         rather than messing with selection-alist.
12760
12761         * select-msw.c (mswindows_get_foreign_selection):
12762         Use TO_INTERNAL_FORMAT rather than hacking.
12763
12764 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12765
12766         * process-unix.c (unix_open_multicast_group):
12767         (unix_open_multicast_group): Remove useless casts.
12768
12769 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12770
12771         * sound.c (Fplay_sound): Fix `unused variable' warning.
12772
12773         * emacs.c (main): Use correct type for _environ on SCO5.
12774
12775 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12776
12777         * console.h (own_selection_method):
12778         * console.h (selection_exists_p_method):
12779         * console.h (available_selection_types_method): New.
12780         * console.h (register_selection_data_type_method): New.
12781         * console.h (selection_data_type_name): New.
12782
12783         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12784         function & alist to track GlobalAlloc()'d handles that need
12785         releasing when the clipboard data gets replaced or emptied.
12786
12787         * event-msw.c (mswindows_wnd_proc): Call it.
12788
12789         * lisp.h, general.c (Qappend): New symbol representing a
12790         `how-to-add' mode.
12791
12792         * select.c (own-selection-internal):
12793         * select.c (selection-exists-p):
12794         * select.c (available-selection-types): New.
12795         * select.c (register-selection-data-type): New.
12796         * select.c (selection-data-type-name): New.  New functions to deal
12797         with device-specific selection data formats.
12798         * select.c (selection-converter-out-alist): Renamed.
12799         * select.c (selection-converter-in-alist): New.
12800         * select.c (selection-appender-alist): New.  Added new alists.
12801         * select.c (syms_of_select, vars_of_select): Added new symbols &
12802         variables.
12803         * select.c (get_local_selection): Split.
12804         * select.c: Removed spurious type checking - selections may now be
12805         of any type, not just strings.
12806         * select.c (own-selection-internal):
12807
12808         * select.h, select.c (convert_selection): New. Created
12809         convert_selection() function based on get_local_selection().
12810         * select.h, select.c (QCF_*): New symbols representing mswindows
12811         clipboard formats.
12812         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12813         symbols representing `how-to-add' modes.
12814
12815         * select-msw.c (x_sym_p): New.
12816         * select-msw.c (symbol_to_ms_cf): New.
12817         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12818         symbols & clipboard formats. Can also handle string names.
12819         * select-msw.c (mswindows_own_selection):
12820         * select-msw.c (mswindows_selection_exists_p):
12821         Added `data-type' parameter. Use it.
12822         * select-msw.c (mswindows_available_selection_types): New.
12823         * select-msw.c (mswindows_register_selection_data_type): New.
12824         * select-msw.c (mswindows_selection_data_type_name): New.
12825         * select-msw.c (mswindows_own_selection):
12826         * select-msw.c (mswindows_get_foreign_selection):
12827         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12828         * select-msw.c (console_create_select_mswindows): Added new methods.
12829         * select-msw.c (mswindows_destroy_selection): New.
12830         * select-msw.c (Vhandle_alist): New list.
12831         * select-msw.c (mswindows_own_selection):
12832
12833         * select-x.c (x_own_selection):
12834         * select-x.c (x_selection_exists_p):
12835         * select-x.c: Added some comments about maybe using new
12836         functionality.
12837         * select-x.c (x_own_selection):
12838
12839         * specifier.c: Remove definition of Qappend (now in general.c)
12840         * specifier.c (syms_of_specifier): Remove Qappend.
12841
12842 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12843
12844         * config.h.in: Add socklen_t.
12845
12846         * s/decosf4-0.h: No special compiler flags needed or desired.
12847         In particular, undefine _BSD for DEC OSF 4.0.
12848
12849 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12850
12851         * redisplay-msw.c (msprinter_frame_output_end): Added.
12852         (console_type_create_redisplay_mswindows): Referred the above.
12853
12854         * frame.c (setup_frame_without_minibuffer): Do not create a
12855         default minibuffer frame on a printer device.
12856
12857         * frame-msw.c (apply_dc_geometry): Added.
12858         (msprinter_start_page):
12859         (msprinter_init_frame_3):
12860         (msprinter_eject_page): Use it.
12861
12862         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12863         and removed residual duplex and orientation properties.
12864
12865 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12866
12867         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12868
12869         * unexalpha.c: Remove system prototypes from C sources!
12870
12871 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12872
12873         * eval.c: Remove references to M-x edit-options in DEFUNs for
12874         `defvar' and `defconst'.
12875
12876 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12877
12878         * config.h.in: Remove SMART_INCLUDE hackery.
12879
12880         PostgreSQL hacking:
12881         * config.h.in: Don't use SMART_INCLUDE.
12882
12883         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12884         * inline.c: Simply #include "postgresql.h"
12885         * postgresql.c:
12886         - Don't use SMART_INCLUDE
12887         - Use simply "const".
12888         - Use standard doc string conventions.
12889         - Use correct type for result of PQstatus.
12890
12891 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12892
12893         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12894
12895         C++ compilation changes.
12896         * config.h.in (EXTERN_C): Define.
12897         * config.h.in (not): This is also a C++ keyword.
12898         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12899         * cm.c: Use EXTERN_C.
12900         * redisplay-tty.c: Use EXTERN_C.
12901         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12902
12903 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12904
12905         * general.c: Remove duplicate definition for Qfunction.
12906
12907 2000-07-08  Ben Wing  <ben@xemacs.org>
12908
12909         * device-msw.c (msprinter_init_device):
12910         * device-msw.c (sync_printer_with_devmode):
12911         * device-msw.c (handle_devmode_changes):
12912         * device-msw.c (print_dialog_worker):
12913         * device-msw.c (Fmsprinter_apply_settings):
12914         * device-msw.c (hash_devmode):
12915         * device-msw.c (Fmsprinter_settings_despecialize):
12916         use Qmswindows_tstr, not Qctext.
12917
12918         * vm-limit.c (check_memory_limits):
12919         avoid infinite loop printing warning messages.
12920
12921 2000-07-05  Craig Lanning  <lanning@scra.org>
12922
12923         * Makefile.in.in: Add support for including the Windows resources
12924         when building with the cygwin and mingw targets.
12925
12926         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12927         not set or not correct.
12928         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12929         (init_initial_directory): Don't try to use $PWD on the
12930         WIN32_NATIVE target.
12931
12932         * s\cygwin32.h:
12933         [[Add -mwindows to eliminate console window.]] not required --ben
12934         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12935         (MAIL_USE_POP): removed; now handled by configure.
12936
12937         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12938         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12939         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12940         (MAIL_USE_POP): removed; now handled by configure.
12941         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12942         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12943         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12944         constant string.
12945         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12946         up from <winsock.h> via systime.h.
12947         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12948         (getpagesize): from Dan Holmsand, added.
12949         Added #endif which was left dangling by Ben's mega patch; added
12950         comment to help prevent this in the future.
12951
12952         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12953
12954 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12955
12956         * console-msw.h (struct mswindows_device): Removed unnecessary
12957         cached device geometry values.
12958         Added update_tick and an accessor macro.
12959         (Lisp_Devmode): Added lrecord declaration.
12960         (struct msprinter_device): Contain devmode as a Lisp object.
12961         Added mswindows_get_selected_frame_hwnd();
12962
12963         * console.h (struct console_methods): Indentation nitpicking.
12964
12965         * device-msw.c (mswindows_init_device): Do not initialize geometry
12966         cache. Initialize update tick.
12967         (mswindows_device_system_metrics): Ask the device for its geometry.
12968         (global_free_2_maybe):
12969         (devmode_to_hglobal):
12970         (handle_printer_changes):
12971         (ensure_not_printing):
12972         (print_dialog_worker):
12973         (Fmsprinter_print_setup_dialog):
12974         (Fmsprinter_print_dialog):
12975         (plist_get_margin):
12976         (plist_set_margin):
12977         (Fmsprinter_page_setup_dialog): Added functions.
12978         (sync_printer_with_devmode):
12979         (handle_devmode_changes):
12980         (Fmsprinter_get_settings):
12981         (Fmsprinter_select_settings):
12982         (Fmsprinter_apply_settings):
12983         (allocate_devmode):
12984         (Fmsprinter_settings_copy):
12985         (Fmsprinter_settings_despecialize):
12986         (print_devmode):
12987         (finalize_devmode):
12988         (equal_devmode):
12989         (hash_devmode): Added functions
12990         (syms_of_device_mswindows): Init devmode lrecord class.
12991
12992         * device.h: Added an exfun for find-device.
12993
12994         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12995         geometry; although, recreate the device compatible DC.
12996
12997         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12998         (msprinter_init_frame_3):
12999         (msprinter_frame_property):
13000         (msprinter_internal_frame_property_p):
13001         (msprinter_frame_properties):
13002         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13003         print job properties (will move to device settings).
13004
13005         * lisp.h: Added symbols.
13006
13007         * general.c (syms_of_general): Declared them.
13008
13009         * hash.c (string_hash): Added.
13010
13011         * lrecord.h (lrecord_type): Added devmode lrecord type.
13012
13013 2000-07-02  Mike Sperber <mike@xemacs.org>
13014
13015         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13016         FreeBSD 4.0.
13017
13018 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13019
13020         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13021         integer.
13022
13023 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13024
13025         * data.c (Fstring_to_number): Don't recognize floating point if
13026         base is not 10.
13027
13028 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13029
13030         * glyphs-widget.c (tab_control_query_geometry):
13031         (widget_query_geometry):
13032         (button_query_geometry):
13033         * glyphs.c (text_query_geometry):
13034         Enforce type correctness.
13035
13036 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13037
13038         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13039         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13040
13041 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13042
13043         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13044         conflicts with gcc's fixincluded version of FOO.h.
13045
13046         * glyphs.h (image_instance_geometry): Remove trailing `,'
13047
13048 2000-06-08  Mike Alexander  <mta@arbortext.com>
13049
13050         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13051         (shove_thread): Don't write the same output twice
13052         (make_ntpipe_output_stream): Increase priority of shove thread
13053         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13054         chance to run
13055         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13056         it.
13057
13058 2000-06-12  Ben Wing  <ben@xemacs.org>
13059
13060         * s\mingw32.h (sigset):
13061         * s\windowsnt.h (sigset):
13062         rename msw_ to mswindows_ for consistency with general convention.
13063
13064 2000-06-12  Ben Wing  <ben@xemacs.org>
13065
13066         * console-msw.c:
13067         * console-msw.c (mswindows_get_console_hwnd):
13068         * console-msw.c (mswindows_ensure_console_allocated):
13069         * console-msw.c (mswindows_hide_console):
13070         * console-msw.c (mswindows_show_console):
13071         * console-msw.c (mswindows_ensure_console_buffered):
13072         * console-msw.c (mswindows_output_console_string):
13073         * console-msw.c (mswindows_windows9x_p):
13074         * console-msw.h:
13075         * device-msw.c (mswindows_get_workspace_coords):
13076         * device-msw.c (mswindows_device_system_metrics):
13077         * dialog-msw.c (mswindows_popup_dialog_box):
13078         * event-msw.c (mswindows_wnd_proc):
13079         * frame-msw.c (mswindows_size_frame_internal):
13080         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13081         * menubar-msw.c (displayable_menu_item):
13082         * menubar-msw.c (mswindows_char_is_accelerator):
13083         * nt.c:
13084         * nt.c (mswindows_sigset):
13085         * nt.c (mswindows_sigrelse):
13086         * nt.c (mswindows_sigpause):
13087         * nt.c (mswindows_raise):
13088         * nt.c (timer_proc):
13089         * ntproc.c:
13090         * ntproc.c (find_child_console):
13091         * ntproc.c (sys_kill):
13092         * print.c:
13093         * print.c (std_handle_out_external):
13094         * process-nt.c (find_child_console):
13095         * process-nt.c (send_signal_the_95_way):
13096         * process-nt.c (ensure_console_window_exists):
13097         * process-nt.c (nt_create_process):
13098         * syssignal.h:
13099         rename msw_ to mswindows_ for consistency with general convention.
13100
13101         * emacs.c:
13102         * dumper.c:
13103         include nt.h, not syswindows.h.
13104
13105         * nt.c (mswindows_fstat):
13106         * nt.c (mswindows_stat):
13107         prefix mswindows_ instead of attempting to directly override the
13108         library functions.  fix declarations.
13109
13110         * nt.h:
13111         include syswindows.h.  move some sysdep.h stuff here.
13112
13113         * ntheap.h:
13114         include syswindows.h, not <windows.h>.
13115
13116         * ntplay.c:
13117         clean up headers.
13118
13119         * sysdep.c:
13120         clean up headers.
13121
13122         * sysdep.c (sys_fstat):
13123         * sysdep.c (sys_stat):
13124         call mswindows versions when appropriate.
13125
13126         * sysdep.h:
13127         move mswin decls to nt.h.
13128
13129         * syswindows.h:
13130         add long comment describing appropriate use of the various windows
13131         headers.
13132
13133 2000-06-11  Ben Wing  <ben@xemacs.org>
13134
13135         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13136
13137 2000-06-10  Ben Wing  <ben@xemacs.org>
13138
13139         * Makefile.in.in (release):
13140         Correction to make sure xemacs.exe always dumped when correct.
13141
13142         * alloca.c:
13143         * balloon_help.c:
13144         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13145
13146         * buffer.c (set_buffer_internal):
13147         [[[[2]]]]: Remove HAVE_FEP code.
13148
13149         * buffer.c (init_initial_directory):
13150         [3].
13151
13152         * bytecode.c:
13153         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13154         individual files.
13155
13156         * callproc.c:
13157         * callproc.c (call_process_cleanup):
13158         * callproc.c (Fold_call_process_internal):
13159         * callproc.c (child_setup):
13160         * callproc.c (getenv_internal):
13161         * callproc.c (init_callproc):
13162         * callproc.c (vars_of_callproc):
13163         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13164         __CYGWIN32__ -> CYGWIN.
13165         DOS_NT -> WIN32_NATIVE.
13166         Remove MSDOS support/references, converting to WIN32_NATIVE
13167           where correct.
13168         __MINGW32__ -> MINGW.
13169         Fix windows.h includes.
13170         Remove bogus HAVE_NTGUI.
13171
13172         * config.h.in:
13173         [2].
13174
13175         * console-msw.c:
13176         mswindows_message_outputted added for use in allowing startup
13177         errors on the console to be seen.
13178
13179         * console-msw.c (msw_ensure_console_allocated):
13180         * console-msw.c (msw_output_console_string):
13181         * console-msw.c (DHEADER):
13182         * console-msw.c (DOPAQUE_DATA):
13183         * console-msw.c (DEVENT):
13184         * console-msw.c (DCONS):
13185         * console-msw.c (DCONSCDR):
13186         * console-msw.c (DSTRING):
13187         * console-msw.c (DVECTOR):
13188         * console-msw.c (DSYMBOL):
13189         * console-msw.c (DSYMNAME):
13190         Fix warnings.
13191
13192         * console-stream.c (stream_init_console):
13193         Fix text/binary problems.
13194
13195         * device-msw.c:
13196         * device-msw.c (mswindows_finish_init_device):
13197         * device-msw.c (mswindows_delete_device):
13198         [1].
13199
13200         * device.c (handle_asynch_device_change):
13201         [3].
13202
13203         * dgif_lib.c:
13204         * dgif_lib.c (DGifOpenFileName):
13205         * dgif_lib.c (DGifOpenFileHandle):
13206         * dgif_lib.c (DGifGetLine):
13207         * dgif_lib.c (DGifGetPixel):
13208         Added config.h/lisp.h, fix up includes.
13209         [1].
13210
13211         * dired-msw.c:
13212         [4].
13213
13214         * dired.c:
13215         * dired.c (file_name_completion):
13216         * dired.c (Ffile_attributes):
13217         * dired.c (syms_of_dired):
13218         [1].
13219
13220         * dumper.c:
13221         * dumper.c (pdump_file_unmap):
13222         * dumper.c (pdump_load):
13223         [1].
13224
13225         * editfns.c:
13226         * editfns.c (Ftemp_directory):
13227         * editfns.c (user_login_name):
13228         * editfns.c (Fuser_real_login_name):
13229         * editfns.c (get_home_directory):
13230         [1].
13231
13232         * elhash.c (finish_marking_weak_hash_tables):
13233         [[[[5]]]]: Fix GCC warnings.
13234
13235         * emacs.c:
13236         * emacs.c (mswindows_handle_hardware_exceptions):
13237         * emacs.c (make_arg_list_1):
13238         * emacs.c (main_1):
13239         * emacs.c (Fkill_emacs):
13240         * emacs.c (Fdump_emacs):
13241         [1].
13242         Fix problems with nested crashes, add long comment.
13243
13244         * event-Xt.c (init_event_Xt_late):
13245         [1].
13246
13247         * event-msw.c:
13248         * event-msw.c (mswindows_dde_callback):
13249         * event-msw.c (mswindows_handle_sticky_modifiers):
13250         * event-msw.c (mswindows_wnd_proc):
13251         [1].
13252         [5].
13253
13254         * events.c (character_to_event):
13255         [1].
13256
13257         * fileio.c:
13258         * fileio.c (Ffile_name_directory):
13259         * fileio.c (Ffile_name_nondirectory):
13260         * fileio.c (directory_file_name):
13261         * fileio.c (Fexpand_file_name):
13262         * fileio.c (Fsubstitute_in_file_name):
13263         * fileio.c (Ffile_name_absolute_p):
13264         * fileio.c (check_executable):
13265         * fileio.c (Ffile_readable_p):
13266         * fileio.c (Ffile_accessible_directory_p):
13267         * fileio.c (Ffile_modes):
13268         * fileio.c (Funix_sync):
13269         * fileio.c (vars_of_fileio):
13270         [1]. [4].
13271
13272         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13273
13274         Expand getdefdir defn.
13275         Fix bogus rename() comment.
13276
13277         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13278         to use standard XEmacs include files, e.g. sysfile.h, rather
13279         than system-specific includes.
13280
13281         * fns.c:
13282         * fns.c (Fsubseq):
13283         [5]. [6].
13284
13285         * frame.c (vars_of_frame):
13286         [1].
13287
13288         * getloadavg.c:
13289         * getloadavg.c (getloadavg):
13290         [1]. [6].
13291         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13292         (We don't use it elsewhere in the code; just add a comment.)
13293
13294         * gif_io.c:
13295         [6].
13296         Add config.h.
13297
13298         * glyphs-msw.c:
13299         * glyphs-msw.c (mswindows_resource_instantiate):
13300         [1].
13301
13302         * glyphs-x.c (x_native_layout_instantiate):
13303         [5].
13304
13305         * gui-msw.c (Fmswindows_shell_execute):
13306         [1].
13307
13308         * insdel.c:
13309         [4].
13310
13311         * lisp.h:
13312         [4]. [5].
13313
13314         * lread.c (locate_file_in_directory_mapper):
13315         [1].
13316
13317         * lstream.c:
13318         [4].
13319
13320         * mem-limits.h:
13321         * mem-limits.h (get_lim_data):
13322         [1].
13323
13324         * menubar-msw.c:
13325         [4].
13326
13327         * ndir.h:
13328         [1].
13329
13330         * nt.c:
13331         * nt.c (getwd):
13332         * nt.c (closedir):
13333         * nt.c (rva_to_section):
13334         * nt.c (mswindows_executable_type):
13335         [1]. [6].
13336         Fix closedir() defn.
13337
13338         * nt.h:
13339         [[[[8]]]]: *_OK defs moved to sysfile.h.
13340
13341         * ntproc.c:
13342         [6]. [7].
13343
13344         * objects-x.c:
13345         [4].
13346
13347         * print.c:
13348         * print.c (std_handle_out_external):
13349         [1]. [4].
13350
13351         * process-nt.c:
13352         * process-nt.c (nt_create_process):
13353         [6].
13354         try to fix process quoting somewhat.
13355
13356         * process-unix.c (unix_create_process):
13357         [1].
13358
13359         * process.c:
13360         * process.c (vars_of_process):
13361         Add Vnull_device.
13362
13363         * process.h:
13364         [1].
13365
13366         * realpath.c:
13367         * realpath.c (xrealpath):
13368         [1].
13369
13370         * redisplay-tty.c (init_tty_for_redisplay):
13371         [3].
13372
13373         * redisplay.c:
13374         [4]. [6].
13375
13376         * scrollbar-msw.c:
13377         [4].
13378
13379         * sheap.c:
13380         * sheap.c (more_static_core):
13381         * sheap.c (report_sheap_usage):
13382         [5]. [6].
13383
13384         * signal.c:
13385         * signal.c (alarm_signal):
13386         [1]. [6].
13387
13388         * sound.c:
13389         [6].
13390
13391         * strftime.c:
13392         * strftime.c (zone_name):
13393         [1]. [5].
13394
13395         * symsinit.h (init_sunpro):
13396         [1].
13397
13398         * syscommctrl.h:
13399         commctrl.h not in Cygwin b20.1.
13400
13401         * sysdep.c:
13402         * sysdep.c (endif):
13403         * sysdep.c (sys_subshell):
13404         * sysdep.c (init_baud_rate):
13405         * sysdep.c (emacs_get_tty):
13406         * sysdep.c (emacs_set_tty):
13407         * sysdep.c (tty_init_sys_modes_on_device):
13408         * sysdep.c (init_system_name):
13409         * sysdep.c (sys_open):
13410         * sysdep.c (interruptible_open):
13411         * sysdep.c (sys_fopen):
13412         * sysdep.c (sys_mkdir):
13413         * sysdep.c (sys_rename):
13414         * sysdep.c (get_process_times_1):
13415         [1]. [6].
13416
13417         * sysdep.h:
13418         [1].
13419
13420         * sysdir.h:
13421         * sysdir.h (DIRENTRY_NONEMPTY):
13422         [1]. [6].
13423
13424         * sysdll.c (dll_init):
13425         * sysdll.h:
13426         [1].
13427
13428         * sysfile.h:
13429         [1]. [6]. [8].
13430         added text/binary defs.
13431
13432         * sysfloat.h:
13433         [1].
13434
13435         * sysproc.h:
13436         * sysproc.h (EDESTADDRREQ):
13437         * sysproc.h (poll_fds_for_input):
13438         [1]. [6].
13439
13440         * syspwd.h:
13441         [6].
13442
13443         * syssignal.h:
13444         [1].
13445
13446         * systime.h:
13447         [1]. [6].
13448
13449         * systty.h:
13450         [1].
13451
13452         * syswindows.h:
13453         [1].
13454         Always define WIN32_LEAN_AND_MEAN.
13455
13456         * unexcw.c (unexec):
13457         [5].
13458
13459         * unexec.c:
13460         * unexec.c (copy_text_and_data):
13461         * unexec.c (adjust_lnnoptrs):
13462         [1].
13463
13464         * unexnt.c:
13465         * unexnt.c (_start):
13466         [1].
13467
13468 2000-06-07  Ben Wing  <ben@xemacs.org>
13469
13470         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13471         was used only as a model.  We've long since extracted any useful
13472         logic or code out of this. (I just did an exhaustive search.)
13473
13474         * s\msdos.h: Removed.
13475
13476         * s\windows95.h: Removed.
13477
13478 2000-06-10  Ben Wing  <ben@xemacs.org>
13479
13480         * s\cygwin32.h:
13481         [1]. [5].
13482         Don't use extern with fun defs.
13483
13484         * s\mingw32.h:
13485         [1]. [7].
13486         Remove nt\inc include.
13487         Remove getdisk, getdefdir. (The former is unused, the latter
13488         expanded in fileio.h.)
13489
13490         * s\windowsnt.h:
13491         * s\windowsnt.h (WIN32_NATIVE):
13492         * s\windowsnt.h (HAVE_STRCASECMP):
13493         [1]. [7].
13494         Add long comment about preprocessor changes.
13495         Remove getdisk, getdefdir. (The former is unused, the latter
13496         expanded in fileio.h.)
13497
13498 2000-06-10  Ben Wing  <ben@xemacs.org>
13499
13500         * m\arm.h:
13501         * m\delta.h:
13502         * m\intel386.h:
13503         * m\sequent.h:
13504         * m\template.h:
13505         * m\windowsnt.h:
13506         [1].
13507         Remove bogus/unused NO_SOCK_SIGIO.
13508
13509 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13510
13511         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13512         not an Emchar.
13513
13514 2000-06-04  Mike Sperber <mike@xemacs.org>
13515
13516         * casetab.c (set_case_table): For `set-standard-case-table',
13517         actually deposit the new case tables where the rest of XEmacs can
13518         see them.
13519
13520 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13521
13522         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13523
13524 2000-06-05  Ben Wing  <ben@xemacs.org>
13525
13526         * callproc.c (child_setup): Don't do close_load_descs() under
13527         MS Windows.  Put in a comment explaining why.
13528
13529 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13530
13531         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13532         Toolkit shell" which breaks `kill-compilation' on Windows NT
13533         native, retaining STDERR handling improvements.
13534
13535 2000-06-01  Andreas Jaeger  <aj@suse.de>
13536
13537         * s/s390.h: Support for S390, based on a patch by Martin
13538         Schwidefsky <schwidefsky@de.ibm.com>.
13539
13540 2000-05-30  Andy Piper  <andy@xemacs.org>
13541
13542         * window.c (allocate_window):
13543         (make_dummy_parent):
13544         (Fset_window_configuration): use new hashtable type.
13545
13546         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13547         (struct image_instantiator_methods):
13548         (struct Lisp_Image_Instance): make instance geometry signed.
13549
13550         * glyphs.c (instantiate_image_instantiator):
13551         (image_instance_query_geometry):
13552         (image_instance_layout):
13553         (image_instance_layout):
13554         (query_string_geometry):
13555         (text_query_geometry):
13556         (image_instantiate):
13557         (image_instantiate):
13558         (cache_subwindow_instance_in_frame_maybe):
13559         (subwindow_query_geometry): make instance geometry signed.
13560
13561         * glyphs-widget.c (widget_query_geometry):
13562         (widget_layout):
13563         (button_query_geometry):
13564         (tree_view_query_geometry):
13565         (tab_control_query_geometry):
13566         (layout_query_geometry):
13567         (layout_layout):
13568         (native_layout_layout): make instance geometry signed.
13569
13570 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13571
13572         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13573         constant.
13574
13575         * general.c (syms_of_general): Add Qfull_assoc symbol.
13576
13577         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13578         correctly.
13579         (decode_weak_list_type): Decode full-assoc type.
13580         (encode_weak_list_type): Encode full-assoc type.
13581         (Fmake_weak_list): Update doc string.
13582
13583 2000-05-30  Andy Piper  <andy@xemacs.org>
13584
13585         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13586
13587         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13588         (decode_hash_table_weakness): ditto.
13589         (Fhash_table_weakness): ditto.
13590         (Fhash_table_type): ditto.
13591         (finish_marking_weak_hash_tables): ditto.
13592         (hash_table_weakness_validate): ditto.
13593         (syms_of_elhash): ditto.
13594
13595 2000-05-28  Martin Buchholz <martin@xemacs.org>
13596
13597         * XEmacs 21.2.34 is released.
13598
13599 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13600
13601         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13602         start cache.
13603         (updating_line_start_cache): Gone.
13604         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13605         generic code to force a minimum of 1 line laid out in the
13606         CMOTION_DISP case.
13607
13608 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13609
13610         * glyphs.c (instantiate_image_instantiator): Check for initialized
13611         height & width no longer special cases IMAGE_NOTHING.
13612         (nothing_instantiate): Set height and width of instance.
13613
13614 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13615
13616         * unexelf.c (unexec): Search for ".data" section.
13617         Initialize new_data2_offset from old_data_index.
13618         Remove redundant check for ElfW.
13619
13620 2000-05-23  Andy Piper  <andy@xemacs.org>
13621
13622         * glyphs.c (get_image_instantiator_governing_domain): allow more
13623         specific domains as the governing domain rather than expecting an
13624         exact match. This fixes problems with layouts.
13625
13626 2000-05-22  Andy Piper  <andy@xemacs.org>
13627
13628         * redisplay-output.c (compare_runes): check for non-images
13629
13630         * glyphs.c (set_glyph_dirty_p): ditto.
13631         (update_glyph_cachel_data): ditto.
13632
13633         * glyphs-widget.c (layout_post_instantiate): ditto.
13634         (layout_post_instantiate): ditto.
13635
13636         * event-msw.c (mswindows_wnd_proc): warning removal.
13637
13638 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13639
13640         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13641
13642         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13643
13644         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13645
13646         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13647         (mswindows_executable_type): mingw32 now has enough headers for
13648         this to work.
13649
13650 2000-05-20  Andy Piper  <andy@xemacs.org>
13651
13652         * console-msw.c (mswindows_output_last_error): ; -> ,
13653
13654 2000-05-12  Andy Piper  <andy@xemacs.org>
13655
13656         * console-msw.c (FROB): compare ints with ints.
13657
13658 2000-05-11  Andy Piper  <andy@xemacs.org>
13659
13660         * glyphs-x.c (x_finalize_image_instance): make minimal build
13661         happy.
13662
13663 2000-05-20  Ben Wing  <ben@xemacs.org>
13664
13665         * event-Xt.c:
13666         * event-Xt.c (vars_of_event_Xt):
13667         move modifier-keys-are-sticky to event-stream.c.
13668
13669         * event-msw.c:
13670         * event-msw.c (mswindows_enqueue_mouse_button_event):
13671         * event-msw.c (key_needs_default_processing_p):
13672         * event-msw.c (XEMSW_LCONTROL):
13673         * event-msw.c (mswindows_handle_sticky_modifiers):
13674         * event-msw.c (FROB):
13675         * event-msw.c (clear_sticky_modifiers):
13676         * event-msw.c (output_modifier_keyboard_state):
13677         * event-msw.c (output_alt_keyboard_state):
13678         * event-msw.c (mswindows_wnd_proc):
13679         * event-msw.c (mswindows_modifier_state):
13680         * event-msw.c (emacs_mswindows_handle_magic_event):
13681         implement sticky modifiers.
13682
13683         * event-stream.c:
13684         * event-stream.c (vars_of_event_stream):
13685         move modifier-keys-are-sticky here.
13686
13687         * lisp.h:
13688         add CHECK_FUNCTION.
13689
13690         * rangetab.c:
13691         implement map-range-table.
13692
13693
13694 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13695
13696         * redisplay-tty.c (reset_tty_modes):
13697         (tty_redisplay_shutdown): Adjust argument type to
13698         tty_frame_output_end.
13699
13700 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13701
13702         * eval.c (Fbacktrace): Don't output a line with only right
13703         parenthesis.
13704
13705 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13706
13707         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13708         (Fpq_reset_poll): Ditto.
13709
13710 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13711
13712         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13713
13714 2000-05-16  Ben Wing  <ben@xemacs.org>
13715
13716         * buffer.c:
13717         * buffer.c (dfc_convert_to/from_internal_format):
13718         * buffer.c (reinit_vars_of_buffer):
13719         Fix conversion functions to allow reentrancy.
13720
13721         * console-msw.c:
13722         * console-msw.c (mswindows_output_last_error):
13723         New fun, generally useful -- output a human-readable
13724         version of GetLastError() on the console.
13725
13726         * console-msw.h:
13727         * console-msw.h (struct mswindows_frame):
13728         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13729
13730         * console-stream.c (stream_output_begin):
13731         * console-stream.c (stream_output_end):
13732         * console-stream.c (stream_output_vertical_divider):
13733         * console-stream.c (stream_clear_region):
13734         * console-stream.c (stream_flash):
13735         * console-stream.c (console_type_create_stream):
13736         Delete blank stream methods, not needed.
13737
13738         * console.h (struct console_methods):
13739         Split begin/end methods into window and frame.
13740
13741         * event-msw.c:
13742         * event-msw.c (mswindows_handle_paint):
13743         * event-msw.c (output_alt_keyboard_state):
13744         * event-msw.c (mswindows_wnd_proc):
13745         * event-msw.c (vars_of_event_mswindows):
13746         Comment about problems with ignored-expose.
13747         Define mswindows-debug-events; not really implemented.
13748
13749         * frame-msw.c (mswindows_init_frame_1):
13750         random cleanups.
13751
13752         * glyphs-msw.c:
13753         * glyphs-msw.c (begin_defer_window_pos):
13754         * glyphs-msw.c (mswindows_unmap_subwindow):
13755         * glyphs-msw.c (mswindows_map_subwindow):
13756         * glyphs-msw.c (mswindows_resize_subwindow):
13757         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13758
13759         * glyphs.c (make_image_instance_1):
13760         Fix crash.
13761
13762         * gutter.c (Fredisplay_gutter_area):
13763         Use new begin/end methods.
13764
13765         * lisp.h (Dynarr_new2):
13766         New creation fun.
13767
13768         * redisplay-msw.c:
13769         * redisplay-msw.c (mswindows_frame_output_begin):
13770         * redisplay-msw.c (mswindows_frame_output_end):
13771         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13772         New begin/end methods -- handle DeferWindowPos.
13773
13774         * redisplay-output.c (redisplay_move_cursor):
13775         * redisplay-output.c (redraw_cursor_in_window):
13776         * redisplay-output.c (redisplay_update_line):
13777         * redisplay-output.c (redisplay_output_window):
13778         New begin/end methods.
13779
13780         * redisplay-tty.c:
13781         * redisplay-tty.c (tty_frame_output_begin):
13782         * redisplay-tty.c (tty_frame_output_end):
13783         * redisplay-tty.c (console_type_create_redisplay_tty):
13784         New begin/end methods.
13785
13786         * redisplay-x.c:
13787         * redisplay-x.c (x_window_output_begin):
13788         * redisplay-x.c (x_window_output_end):
13789         * redisplay-x.c (console_type_create_redisplay_x):
13790         New begin/end methods.
13791
13792         * redisplay.c (redisplay_frame):
13793         * redisplay.c (Fredisplay_echo_area):
13794         New begin/end methods.
13795         use MAYBE_DEVMETH for clear_frame; it may not exist.
13796
13797         * window.h (WINDOW_XFRAME):
13798         WINDOW_XFOO macros -- get locale and decode struct pointer.
13799
13800
13801 2000-05-12  Ben Wing  <ben@xemacs.org>
13802
13803         * emacs.c:
13804         * emacs.c (ensure_no_quitting_from_now_on):
13805         * emacs.c (fatal_error_signal):
13806         * emacs.c (mswindows_handle_hardware_exceptions):
13807         * emacs.c (main):
13808         * emacs.c (Fkill_emacs):
13809         * emacs.c (shut_down_emacs):
13810         * emacs.c (assert_failed):
13811         various improvements in fatal error handling.
13812
13813         * eval.c:
13814         move preparing_for_armageddon to emacs.c.
13815
13816         * lisp.h:
13817         declare fatal_error_in_progress.
13818
13819         * print.c:
13820         * print.c (std_handle_out_external):
13821         * print.c (std_handle_out_va):
13822         * print.c (stderr_out):
13823         * print.c (stdout_out):
13824         use console under mswin when no standard output.
13825         don't do code conversion during fatal error.
13826
13827         * scrollbar.c (Fscrollbar_page_up):
13828         * scrollbar.c (Fscrollbar_page_down):
13829         fix missing else.  reindent.
13830
13831 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13832
13833         Emergency fix.
13834
13835         * glyphs.h (GLYPH_CACHEL_DESCENT):
13836         (GLYPH_CACHEL_DESCENT):
13837         (GLYPH_CACHEL_DESCENT):
13838         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13839         used in case these are inline functions.
13840         Use more absurd values to error check.
13841
13842         include window.h for error check functions.
13843
13844 2000-05-11  Ben Wing  <ben@xemacs.org>
13845
13846         * cmdloop.c (Freally_early_error_handler):
13847         Display message box under windows; otherwise, message will disappear
13848         before it can be viewed.
13849
13850         * console-msw.c:
13851         * console-msw.c (Fmswindows_message_box):
13852         * console-msw.c (FROB):
13853         * console-msw.c (syms_of_console_mswindows):
13854         Define new fun `mswindows-message-box'.
13855         #### I will merge this into `popup-dialog-box'; just give me
13856         a bit of time.
13857
13858         * general.c:
13859         * general.c (syms_of_general):
13860         Some new symbols used in `mswindows-message-box'.
13861
13862         * glyphs.c:
13863         * glyphs.c (Fset_image_instance_property):
13864         put warning in this fun.
13865
13866         * glyphs.h:
13867         * glyphs.h (GLYPH_CACHEL_WIDTH):
13868         * glyphs.h (GLYPH_CACHEL_ASCENT):
13869         * glyphs.h (GLYPH_CACHEL):
13870         * glyphs.h (GLYPH_CACHEL_GLYPH):
13871         define error-checking versions to try to catch a bug i've seen --
13872         redisplay gets in an infinite loop because the glyph width of the
13873         continuation glyph is 65535.
13874
13875         * lisp.h:
13876         Extern message-box stuff.
13877
13878         * window.c (allocate_window):
13879         * window.c (make_dummy_parent):
13880         * window.c (Fset_window_configuration):
13881         Use EQUAL not EQ for subwindow caches to make them work a bit
13882         better. (Something is still very broken.)
13883
13884
13885 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13886
13887         * glyphs.c (image_instantiate): Suppress gcc warnings.
13888         (Fmake_image_instance): Fix doc string.
13889         * specifier.c (Fmake_specifier): Ditto.
13890
13891 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13892
13893         * paths.h.in (PATH_LOCK): Removed.
13894         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13895         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13896
13897 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13898
13899         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13900         Document (featurep '(and xemacs 21.02)).
13901
13902 2000-05-09  Ben Wing  <ben@xemacs.org>
13903
13904         * buffer.c (complex_vars_of_buffer):
13905         update modeline-format doc.
13906
13907         * device.h:
13908         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13909
13910         * emacs.c:
13911         timeline of all released versions of Emacs, for use in creating
13912         authorship comments and in synching up.
13913
13914         * glyphs-widget.c (image_instantiator_buttons):
13915         * glyphs-widget.c (image_instantiator_edit_fields):
13916         * glyphs-widget.c (image_instantiator_combo_box):
13917         * glyphs-widget.c (image_instantiator_scrollbar):
13918         * glyphs-widget.c (image_instantiator_progress_guage):
13919         * glyphs-widget.c (image_instantiator_tree_view):
13920         * glyphs-widget.c (image_instantiator_tab_control):
13921         * glyphs-widget.c (image_instantiator_labels):
13922         * glyphs-widget.c (image_instantiator_layout):
13923         * glyphs-widget.c (image_instantiator_native_layout):
13924         rename decode_domain method to governing_domain.
13925
13926         * glyphs.c:
13927         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13928         * glyphs.c (add_entry_to_device_ii_format_list):
13929         make sure we don't put an entry more than once into the list.
13930         * glyphs.c (check_instance_cache_mapper):
13931         *************************************************************
13932         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13933         HAVE BEEN GETTING.
13934         *************************************************************
13935         * glyphs.c (get_image_instantiator_governing_domain):
13936         clean up, expand on new concept of governing domain.
13937         * glyphs.c (instantiate_image_instantiator):
13938         * glyphs.c (allocate_image_instance):
13939         use governing_domain instead of cache_domain in naming.
13940         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13941         * glyphs.c (make_image_instance_1):
13942         * glyphs.c (Fmake_image_instance):
13943         allow for any domain (not just device), and process the
13944         governing domain correctly.  very big doc fix.
13945         * glyphs.c (Fimage_instance_domain):
13946         new primitive, to retrieve the governing domain of an image instance.
13947         * glyphs.c (image_instantiate):
13948         use new governing_domain stuff.  this fixes a crash you could get
13949         by instantiating certain widget glyphs in frame locales. (should
13950         signal an error instead of crashing.)
13951         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13952         * glyphs.c (Fglyphp): clean up doc.
13953         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13954         * glyphs.c (syms_of_glyphs):
13955         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13956         * glyphs.c (image_instantiator_format_create): add some comments about
13957         bogus code.
13958         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13959         for current-display-table. (Apparently Hrjove implemented in 1998 a
13960         design I wrote up in 1996, but didn't update the doc string.)
13961
13962         * glyphs.h: clean up a doc string.
13963         * glyphs.h (governing_domain):
13964         * glyphs.h (struct image_instantiator_methods):
13965         changes for governing_domain stuff.
13966
13967         * gutter.c:
13968         * gutter.c (Fgutter_specifier_p):
13969         * gutter.c (Fgutter_size_specifier_p):
13970         * gutter.c (Fgutter_visible_specifier_p):
13971         * objects.c:
13972         * objects.c (Fcolor_specifier_p):
13973         * objects.c (Ffont_specifier_p):
13974         * objects.c (Fface_boolean_specifier_p):
13975         doc strings moved to make-*-specifier.
13976
13977         * redisplay.c (add_disp_table_entry_runes_1):
13978         * redisplay.c (generate_fstring_runes):
13979         * redisplay.c (screen):
13980         add random comments and doc strings.
13981
13982         * specifier.c:
13983         * specifier.c (Fmake_specifier):
13984         major overhaul of this doc string.
13985
13986         * specifier.c (Fvalid_specifier_domain_p):
13987         comment about the bogosity of image instances being domains.
13988         * specifier.c (decode_domain):
13989         now non-static, used in glyphs.c.
13990         * specifier.c (specifier_instance):
13991         comment about the bogosity of image instances being domains.
13992         * specifier.c (Fgeneric_specifier_p):
13993         move doc string to make-generic-specifier.
13994         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13995         rebackslashify.
13996
13997         * specifier.h:
13998         * specifier.h (DOMAIN_FRAME):
13999         * specifier.h (DOMAIN_LIVE_P):
14000         * specifier.h (DOMAIN_XDEVICE):
14001         rebackslashify.
14002         add comments about problems with these macros.
14003         prototype for decode_domain.
14004
14005         * toolbar.c:
14006         * toolbar.c (Ftoolbar_specifier_p):
14007         move doc string to `make-toolbar-specifier'.
14008
14009         * window.c (window_unmap_subwindows_cache_mapper):
14010         *************************************************************
14011         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14012         HAVE BEEN GETTING.
14013         *************************************************************
14014
14015 2000-05-09  Andy Piper  <andy@xemacs.org>
14016
14017         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14018
14019         * window.c (Fset_window_configuration): reset the frame subwindow
14020         cache and re-initialize the window subwindow caches.
14021
14022         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14023
14024 2000-05-09  Ben Wing  <ben@xemacs.org>
14025
14026         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14027         DWORD.
14028
14029 2000-04-26  Mike Woolley  <mike@bulsara.com>
14030
14031         * ntheap.c: Changed recreate_heap to limit the amount reserved
14032         for the heap to that which is actually available. Also now
14033         displays a message box (with some dignostics) in the event that
14034         it still can't start.
14035
14036 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14037
14038         * callproc.c (Fold_call_process_internal): GCPRO path
14039
14040 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14041
14042         Patch by Bill Perry.
14043
14044         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14045         back data instead of #ifdef.
14046         (Fscrollbar_page_down): ditto.
14047
14048 2000-05-07  Ben Wing  <ben@xemacs.org>
14049
14050         * buffer.h:
14051         Kludge for defining Qmswindows_tstr.
14052
14053         * nt.c:
14054         * nt.c (open_input_file):
14055         * nt.c (open_output_file):
14056         * nt.c (rva_to_section):
14057         * nt.c (mswindows_executable_type):
14058         Move all memory-mapped-file routines here (some were in unexnt.c,
14059         which is bad because they are used by process-nt.c, and unexnt
14060         won't be around when portable dumping).  Synched the above routines
14061         with FSF 20.6.
14062
14063         * nt.h:
14064         Removed ifdef'd out bogus code.
14065         Fixed some prototypes.
14066
14067         * nt.h (file_data):
14068         * nt.h (OFFSET_TO_RVA):
14069         * nt.h (RVA_TO_OFFSET):
14070         * nt.h (RVA_TO_PTR):
14071         Moved the memory-mapped-file structures, macros and prototypes
14072         here, to parallel nt.c.  ntheap.h should really be removed
14073         entirely, and it's a non-portable-dumper specific file.
14074
14075         * ntheap.h (round_to_next):
14076         Moved the memory-mapped-file structures, macros and prototypes
14077         to nt.h.
14078
14079         * ntproc.c (compare_env):
14080         Moved rva_to_section and mswindows_executable_type to nt.c.
14081         Moved compare_env to process-nt.c.
14082         ntproc.c will die, one day.
14083
14084         * ntproc.c (sys_spawnve):
14085         Account for win32_ -> mswindows_.
14086
14087         * process-nt.c:
14088         * process-nt.c (struct nt_process_data):
14089         * process-nt.c (ensure_console_window_exists):
14090         * process-nt.c (compare_env):
14091         * process-nt.c (nt_create_process):
14092         * process-nt.c (nt_kill_process_by_pid):
14093         * process-nt.c (syms_of_process_nt):
14094         * process-nt.c (vars_of_process_nt):
14095         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14096         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14097         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14098         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14099         Move compare_env here from ntproc.c.
14100
14101         * process.c (Fprocess_send_region):
14102         Takes an optional fourth argument, BUFFER, which should fix some
14103         problems with call-process.
14104
14105         * syscommctrl.h:
14106         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14107
14108         * syswindows.h:
14109         Move ICC_BAR_CLASSES to syscommctrl.h.
14110         Add preliminary macros for MSWindows/Mule.  More to come.
14111
14112         * unexnt.c:
14113         * unexnt.c (unexec):
14114         open_output_file moved to nt.c.
14115
14116
14117 2000-05-05  Andy Piper  <andy@xemacs.org>
14118
14119         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14120         instance from the frame cache also since GC may catch up too late
14121         to make frame deletion sane.
14122
14123 2000-05-04  Andy Piper  <andy@xemacs.org>
14124
14125         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14126         (x_finalize_image_instance): ungcpro on deletion.
14127
14128         * glyphs.c (image_instantiator_format_create): give pointers a
14129         query geometry method so that the geometry is at least set.
14130
14131         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14132         initialize layouts if using widgets.
14133
14134 2000-05-03  Andy Piper  <andy@xemacs.org>
14135
14136         * nt.c: remove bogus reference to sysmmsystem.h
14137
14138         * gui-x.c (popup_selection_callback): fix no selection abort.
14139
14140 2000-05-02  Andy Piper  <andy@xemacs.org>
14141
14142         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14143         (mswindows_widget_instantiate): ditto.
14144
14145         * glyphs-widget.c (initialize_widget_image_instance): initialize
14146         children correctly.
14147         (widget_instantiate): cope with children and items in the same
14148         instance.
14149
14150         * glyphs.c (mark_image_instance): cope with children as a first
14151         class member.
14152         (image_instance_equal): ditto.
14153         (image_instance_hash): ditto.
14154         (image_instance_changed): ditto.
14155
14156 2000-04-30  Andy Piper  <andy@xemacs.org>
14157
14158         * glyphs.c (subwindow_query_geometry): new function. Return some
14159         defaults.
14160         (subwindow_instantiate): don't assign dimensions if none have been
14161         given.
14162         (image_instantiator_format_create): add subwindow_query_geometry.
14163         (print_image_instance): cope with layouts as widgets.
14164
14165 2000-04-29  Andy Piper  <andy@xemacs.org>
14166
14167         * frame.c (delete_frame_internal): call
14168         free_frame_subwindow_instance_cache so that all subwindows are
14169         finalized before their parent.
14170         (mark_frame): remove subwindow_cachels.
14171         (Fmake_frame): remove subwindow_cachel manipulation.
14172         (allocate_frame_core): subwindow_instance_cache is a weak list.
14173         (delete_frame_internal): set subwindow_instance_cache to nil.
14174
14175         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14176         finalization safe.
14177         (mswindows_finalize_image_instance): use the device
14178         not the domain as the domain may have died already.
14179
14180         * glyphs-x.c (x_finalize_image_instance): ditto.
14181         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14182         HEIGHT.
14183
14184         * redisplay-output.c (redisplay_unmap_subwindows): update for
14185         subwindow instance cache as a weak list.
14186         (redisplay_unmap_subwindows_maybe): ditto.
14187         (redisplay_unmap_subwindows_except_us): ditto.
14188
14189         * glyphs.c (unmap_subwindow): error checking will check the domain
14190         so don't deal with it here. Don't use cachels anymore.
14191         (map_subwindow): ditto.
14192         (update_subwindow_cachel_data): remove old accessor names.
14193         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14194         (Fresize_subwindow): don't update cachel.
14195         (mark_subwindow_cachels):
14196         (update_subwindow_cachel_data):
14197         (add_subwindow_cachel):
14198         (get_subwindow_cachel_index):
14199         (update_subwindow_cachel):
14200         (reset_subwindow_cachels):
14201         (mark_subwindow_cachels_as_not_updated): deleted.
14202         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14203         subwindow instance to the frame cache.
14204         (find_matching_subwindow): update for subwindow instance cache as
14205         a weak list.
14206         (update_widget_instances): ditto.
14207         (image_instance_type_to_mask):inlined.
14208         (free_frame_subwindow_instance_cache): new function. finalize all
14209         subwindows that are instantiated.
14210
14211         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14212         of cachel information.
14213         (IMAGE_INSTANCE_DISPLAY_X):
14214         (IMAGE_INSTANCE_DISPLAY_Y):
14215         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14216         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14217         (XIMAGE_INSTANCE_DISPLAY_X):
14218         (XIMAGE_INSTANCE_DISPLAY_Y):
14219         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14220         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14221         remove subwindow_cachel structure and function references.
14222         (image_instance_type_to_mask): inline from glyphs.c
14223
14224         * redisplay.c (redisplay_frame): remove subwindow_cachel
14225         references.
14226
14227         * frame.h (struct frame): remove subwindow_cachels.
14228         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14229
14230         * frameslots.h: add subwindow_instance_cache.
14231
14232         * window.c (replace_window): check subwindow cache of replacement.
14233         (window_unmap_subwindows_cache_mapper):
14234         (window_unmap_subwindows): new functions. Unmap all subwindows
14235         cached on this window.
14236         (mark_window_as_deleted): unmap all subwindows.
14237
14238 2000-04-27  Andy Piper  <andy@xemacs.org>
14239
14240         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14241
14242         * glyphs-widget.c (widget_layout): return something.
14243         (layout_layout): return something. Fail if not initialized.
14244         (layout_query_geometry): ditto.
14245         (image_instantiator_native_layout): new function. Initialized the
14246         native layout type.
14247         (widget_instantiate): don't do layout stuff here.
14248
14249         * glyphs.c (instantiate_image_instantiator): reorded calling or
14250         instantiate and post_instantiate with layout in between.
14251         (image_instance_layout): be more selective about deciding whether
14252         the layout has been done or not.
14253
14254         * glyphs.h (struct image_instantiator_methods): return a value
14255         from layout_method.
14256
14257 2000-04-26  Andy Piper  <andy@xemacs.org>
14258
14259         * glyphs.c (allocate_image_instance): make initial width and
14260         height unspecified. Set initialized to 0.
14261
14262         * syscommctrl.h new file. Encapsulates commctrl.h.
14263
14264         * syswindows.h new file. Encapsulates windows.h.
14265
14266         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14267         * nt.c: ditto.
14268         * console-msw.h: ditto.
14269
14270         * redisplay-tty.c (tty_output_display_block): remove layout references.
14271
14272         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14273         window handle rather than just the frame.
14274
14275         * glyphs.c (mark_image_instance): remove layout references.
14276         (print_image_instance): ditto.
14277         (image_instance_equal): ditto.
14278         (image_instance_hash): ditto.
14279         (decode_image_instance_type): ditto.
14280         (encode_image_instance_type): ditto.
14281         (image_instantiate): ditto.
14282         (allocate_glyph): ditto.
14283         (Fimage_instance_height): ditto.
14284         (Fimage_instance_width): ditto.
14285         (update_subwindow): ditto.
14286
14287         * redisplay-x.c (x_output_display_block): recode for layouts as
14288         widgets.
14289
14290         * redisplay-output.c (redisplay_output_layout): recode for layouts
14291         as widgets.
14292         (compare_runes): remove layout references.
14293
14294         * redisplay-msw.c (mswindows_output_display_block): recode for
14295         layouts as widgets.
14296
14297         * glyphs-widget.c (image_instantiator_layout): remove
14298         layout_possible_dest_types.
14299         (layout_possible_dest_types): deleted.
14300
14301         * glyphs.h (image_instance_type): remove layout references.
14302         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14303         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14304         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14305
14306 2000-04-25  Andy Piper  <andy@xemacs.org>
14307
14308         * glyphs-widget.c (image_instantiator_buttons):
14309         (image_instantiator_edit_fields):
14310         (image_instantiator_combo_box):
14311         (image_instantiator_scrollbar):
14312         (image_instantiator_progress_guage):
14313         (image_instantiator_tree_view):
14314         (image_instantiator_tab_control):
14315         (image_instantiator_labels):
14316         (image_instantiator_layout): call default post_instantiate method.
14317         (widget_post_instantiate): new function. Simply lays out the
14318         widgets.
14319
14320         * glyphs.h (struct image_instantiator_methods): add
14321         post_instantiate method.
14322
14323         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14324         method calls.
14325
14326 2000-04-23  Andy Piper  <andy@xemacs.org>
14327
14328         * glyphs.h (struct image_instantiator_methods): add
14329         decode_domain_method.
14330         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14331         derived from the domain.
14332         (IMAGE_INSTANCE_FRAME): new accessor.
14333         (XIMAGE_INSTANCE_FRAME): ditto.
14334
14335         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14336         instead of _SUBWINDOW_FRAME.
14337         (finalize_image_instance): ditto.
14338         (Fimage_instance_foreground): ditto.
14339         (Fimage_instance_background): ditto.
14340         (image_instantiate): ditto.
14341         (update_subwindow_cachel): ditto.
14342         (update_subwindow): ditto.
14343         (unmap_subwindow): ditto.
14344         (map_subwindow): ditto
14345         (subwindow_instantiate): ditto.
14346         * glyphs-msw.c (mswindows_update_widget): ditto.
14347         (mswindows_progress_gauge_instantiate): ditto.
14348         (mswindows_tab_control_update): ditto.
14349         * glyphs-x.c (x_update_widget): ditto.
14350         (x_widget_instantiate): ditto.
14351         (x_tab_control_instantiate): ditto.
14352         (x_tab_control_update): ditto.
14353         * event-msw.c (mswindows_wnd_proc): ditto
14354
14355         * glyphs-widget.c (image_instantiator_layout): use
14356         subwindow_decode_domain.
14357         (image_instantiator_buttons): ditto.
14358         (image_instantiator_edit_fields): ditto.
14359         (image_instantiator_combo_box): ditto.
14360         (image_instantiator_scrollbar): ditto.
14361         (image_instantiator_progress_guage): ditto.
14362         (image_instantiator_tree_view): ditto.
14363         (image_instantiator_tab_control): ditto.
14364         (image_instantiator_labels): ditto.
14365         (image_instantiator_layout): ditto.
14366
14367         * glyphs.c: add instance error checking to many functions.
14368         (instantiate_image_instantiator): decode device from cache_domain.
14369         (image_instantiate): partially rewrite by using
14370         decode_image_instantiator_domain to determine what domain the
14371         instance needs to be cached in.
14372         (decode_image_instantiator_domain): new function. Determine what
14373         domain the image needs to be cached in.
14374         (check_window_subwindow_cache): new error checking function.
14375         (check_instance_cache_mapper): ditto.
14376         (check_image_instance_structure): ditto.
14377         (subwindow_decode_domain): new function. Encodes a window as a
14378         subwindow's cache domain.
14379         (image_instantiator_format_create): use it for text and
14380         subwindows.
14381
14382 2000-04-21  Andy Piper  <andy@xemacs.org>
14383
14384         * glyphs.c (image_instance_device): new function.
14385         (image_instance_frame): new function.
14386         (image_instance_window): new function.
14387         (image_instance_live_p): new function.
14388
14389         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14390         cache to nil.
14391
14392         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14393         (IMAGE_INSTANCE_DOMAIN): new accessor.
14394         (XIMAGE_INSTANCE_DOMAIN): ditto.
14395
14396         * glyphs-x.c (x_finalize_image_instance): device->domain.
14397
14398         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14399         (mswindows_finalize_image_instance): ditto.
14400
14401         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14402         (gif_instantiate): ditto.
14403         (png_instantiate): ditto.
14404         (tiff_instantiate): ditto.
14405
14406         * glyphs.c (instantiate_image_instantiator): use domain rather
14407         than device.
14408         (mark_image_instance): device -> domain.
14409         (print_image_instance): ditto.
14410         (finalize_image_instance): ditto.
14411         (image_instance_equal): ditto.
14412         (allocate_image_instance): ditto.
14413         (Fcolorize_image_instance): ditto.
14414         (query_string_geometry): ditto.
14415         (image_instantiate): ditto
14416         (query_string_font): ditto.
14417         (image_instantiate): ditto.
14418         (update_subwindow): ditto.
14419         (unmap_subwindow): ditto.
14420         (map_subwindow): ditto.
14421         (subwindow_instantiate): ditto.
14422
14423         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14424         (DOMAIN_FRAME): ditto.
14425         (DOMAIN_WINDOW): ditto.
14426         (DOMAIN_LIVE_P): ditto.
14427         (XDOMAIN_DEVICE): ditto.
14428         (XDOMAIN_FRAME): ditto.
14429         (XDOMAIN_WINDOW): ditto.
14430
14431         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14432         a valid specifier domain.
14433
14434 2000-04-19  Andy Piper  <andy@xemacs.org>
14435
14436         * glyphs-widget.c (syms_of_glyphs_widget): remove
14437         widget-callback-current-channel.
14438         (vars_of_glyphs_widget): ditto.
14439         * glyphs.h: ditto
14440
14441         * gui.c (get_gui_callback): revert to previous behaviour.
14442
14443 2000-04-18  Andy Piper  <andy@xemacs.org>
14444
14445         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14446         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14447         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14448
14449         * glyphs.c (image_instance_equal): add margin_width.
14450         (image_instance_hash): ditto.
14451
14452         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14453         (layout_query_geometry): ditto.
14454         (layout_layout): ditto.
14455         (syms_of_glyphs_widget): add margin-width.
14456         (image_instantiator_layout): allow margin-width.
14457
14458         * glyphs.c (update_widget_instances): make a normal function.
14459         (syms_of_glyphs): remove Qupdate_widget_instances.
14460         * glyphs.h: ditto.
14461
14462         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14463         so that we don't corrupt ideas about the last event or
14464         command. Remove widget-callback-current-channel fiddling.
14465         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14466
14467 2000-05-01  Martin Buchholz <martin@xemacs.org>
14468
14469         * XEmacs 21.2.33 is released.
14470
14471 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14472
14473         * make-src-depend: Allow dots in header file name.
14474
14475 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14476
14477         * mule-charset.h (struct charset_lookup): Add
14478         next_allocated_1_byte_leading_byte and
14479         next_allocated_2_byte_leading_byte.
14480         * mule-charset.c: Move above two variables so that those values
14481         will be dumped.
14482
14483 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14484
14485         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14486         when string length is zero.
14487         (find_charsets_in_emchar_string): Ditto.
14488
14489 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14490
14491         * lisp.h: extern Qdialog and Qmenubar.
14492
14493         * gui-x.c: added events.h.
14494                 also fixed typo which made the file uncompilable.
14495
14496         * general.c: Added Qmenubar and Qdialog
14497
14498 2000-04-28  Ben Wing  <ben@xemacs.org>
14499
14500         * frame-msw.c (mswindows_init_frame_1):
14501         * frame-msw.c (mswindows_mark_frame):
14502         * event-msw.c (mswindows_enqueue_dispatch_event):
14503         * console-msw.h:
14504         * console-msw.h (struct mswindows_frame):
14505         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14506         there are now three hash tables for callbacks.
14507         mswindows_enqueue_dispatch_event is no longer static.
14508
14509         * dialog-x.c (maybe_run_dbox_text_callback):
14510         * dialog-x.c (dbox_descriptor_to_widget_value):
14511         switch to new cons3 form for callbacks.
14512
14513         * glyphs-msw.c (mswindows_register_gui_item):
14514         * glyphs-msw.c (mswindows_widget_instantiate):
14515         * glyphs-msw.c (add_tree_item):
14516         * glyphs-msw.c (add_tab_item):
14517         new image instance parameter, so it can be passed to callback-ex.
14518         respect :callback-ex as well as :callback.
14519
14520         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14521         add :callback-ex.
14522
14523         * glyphs.c (print_image_instance):
14524         prettify, e.g. now prints widget type.
14525
14526         * gui-x.h:
14527         certain funs have new image instance parameter.
14528
14529         * gui.c:
14530         * gui.c (get_gui_callback):
14531         * gui.c (gui_item_add_keyval_pair):
14532         * gui.c (gui_item_init):
14533         * gui.c (gui_add_item_keywords_to_plist):
14534         * gui.c (mark_gui_item):
14535         * gui.c (gui_item_hash):
14536         * gui.c (gui_item_equal):
14537         * gui.c (copy_gui_item):
14538         * gui.c (syms_of_gui):
14539         recognize callback-ex in a number of places.
14540         also, fix the annoying "can't get out of yes-no dialog" bug.
14541
14542         * gui.h:
14543         * gui.h (struct Lisp_Gui_Item):
14544         recognize callback-ex in a number of places.
14545
14546         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14547         new parameter in button_item_to_widget_value.
14548
14549         * glyphs-x.c (x_update_widget):
14550         * glyphs-x.c (x_button_instantiate):
14551         * glyphs-x.c (x_button_update):
14552         * glyphs-x.c (x_progress_gauge_instantiate):
14553         * glyphs-x.c (x_edit_field_instantiate):
14554         * glyphs-x.c (x_combo_box_instantiate):
14555         * glyphs-x.c (x_tab_control_instantiate):
14556         * glyphs-x.c (x_label_instantiate):
14557         new image instance parameter in various places.
14558
14559         * event-Xt.c:
14560         * event-Xt.c (enqueue_Xt_dispatch_event):
14561         this fun gets exported.
14562
14563         * gui-msw.c:
14564         * gui-msw.c (mswindows_handle_gui_wm_command):
14565         handle both :callback and :callback-ex, and generate our own
14566         event because it's one of the callback-ex arguments.
14567
14568         * gui-x.c:
14569         * gui-x.c (popup_selection_callback):
14570         handle both :callback and :callback-ex, and generate our own
14571         event because it's one of the callback-ex arguments.
14572         * gui-x.c (button_item_to_widget_value):
14573         * gui-x.c (gui_items_to_widget_values_1):
14574         * gui-x.c (gui_item_children_to_widget_values):
14575         * gui-x.c (gui_items_to_widget_values):
14576         new image instance parameter in various places.
14577
14578         * fns.c (Freplace_list):
14579         fix small typo in doc string.
14580
14581         * lisp.h:
14582         declare enqueue_Xt_dispatch_event.
14583
14584 2000-04-28  Ben Wing  <ben@xemacs.org>
14585
14586         * buffer.c:
14587         * buffer.c (Frecord_buffer):
14588         * buffer.c (syms_of_buffer):
14589         delete record-buffer-hook.
14590
14591         * fns.c:
14592         * fns.c (Freplace_list):
14593         * fns.c (syms_of_fns):
14594         new primitive replace-list.
14595
14596         * frameslots.h:
14597         slot for old buffer-alist.
14598
14599         * lisp.h:
14600         exfun replace-list.
14601
14602         * redisplay.c:
14603         * redisplay.c (redisplay_frame):
14604         * redisplay.c (syms_of_redisplay):
14605         * redisplay.c (vars_of_redisplay):
14606         new hook buffer-list-changed-hook.
14607         call it.
14608
14609 2000-04-27  Ben Wing  <ben@xemacs.org>
14610
14611         * extents.h: extern in_modeline_generation.
14612
14613         * redisplay.c (generate_formatted_string_db): set
14614         in_modeline_generation.
14615
14616         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14617         flags if in modeline generation.  otherwise frame-modified-tick
14618         is ticked far too often.
14619         Declare in_modeline_generation.
14620
14621 2000-04-26  Ben Wing  <ben@xemacs.org>
14622
14623         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14624         option.
14625         (vars_of_emacs): add quick-build as an error-checking option.
14626         A bit kludgy, but there doesn't seem much point in creating
14627         a real var for this.
14628
14629         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14630
14631 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14632
14633         * redisplay.h (struct display_line): Add a new variable,
14634         line_continuation.
14635
14636         * redisplay.c (create_text_block): Set dl->line_continuation if
14637         the line continues.
14638         (create_string_text_block): Ditto.
14639         (regenerate_window_incrementally): Use line_continuation instead
14640         of searching continuation glyph.
14641         (add_margin_runes): Call add_glyph_rune.
14642         (add_glyph_rune): Handle margin glyph.
14643
14644 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14645
14646         * filelock.c (fill_in_lock_file_name):
14647         ANSIfy.
14648         Check for IS_ANY_SEP instead of '/'.
14649         (lock_file_1):
14650         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14651         Never check errno without first seeing that system call failed.
14652         (unlock_file): Add GCPRO.
14653         (Flock_buffer): Fix docstring.
14654         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14655
14656 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14657
14658         * sysdep.c (get_pty_max_bytes):
14659         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14660         strings longer than 252 bytes.
14661
14662         * md5.c: Unconditionally include ANSI header <limits.h>
14663
14664         * glyphs-x.c (convert_EImage_to_XImage):
14665         * lisp-union.h (union Lisp_Object):
14666         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14667
14668 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14669
14670         * filelock.c (current_lock_owner): Remove unused variable o, p.
14671
14672 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14673
14674         * callint.c: Remove multiply defined symbol Qlet
14675         (syms_of_callint): ditto.
14676
14677 2000-04-14  Andy Piper  <andy@xemacs.org>
14678
14679         * general.c (syms_of_general): add last-command, this-command, let
14680         and funcall.
14681
14682         * lisp.h: declare various symbols.
14683
14684         * glyphs.h: declare Qwidget_callback_current_channel;
14685
14686         * glyphs-widget.c (syms_of_glyphs_widget): add
14687         Qgui_callback_current_channel.
14688         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14689
14690         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14691         widget-callback-current-channel when invoking the interactive
14692         arg. Also bind last-command and next-command when invoking the
14693         widget updates.
14694         * gui-x.c (popup_selection_callback): ditto.
14695
14696         * gui.c (get_gui_callback): massage args so that we are always
14697         calling eval. This allows us to add our own variable bindings
14698         outside.
14699
14700         * glyphs-x.c (x_button_instantiate): use
14701         gui_items_to_widget_values since this is GC safe.
14702         (x_progress_gauge_instantiate): ditto.
14703         (x_edit_field_instantiate): ditto.
14704         (x_label_instantiate): ditto.
14705
14706         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14707         (emacs_Xt_event_widget_focus_out): new function
14708         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14709         focus.
14710         (emacs_Xt_event_add_widget_actions): new function. add focus
14711         functions as actions.
14712         (init_event_Xt_late): use it.
14713
14714 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14715
14716         * event-stream.c (Fdispatch_event): Doc fix.
14717
14718 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14719
14720         * postgresql.c: Remove all references to PQsetenv*.
14721
14722         * postgresql.h: Remove references to PGsetenvHandler object.
14723         * lrecord.h (lrecord_type): Ditto.
14724
14725 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14726
14727         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14728         real_heigh and real_width members, and accessor macros for these.
14729
14730         * glyphs-msw.c (init_image_instance_geometry): New function.
14731         (init_image_instance_from_dibitmap): Use it.
14732         (mswindows_resource_instantiate): Use it.
14733         (init_image_instance_from_xbm_inline): Use it.
14734         (mswindows_initialize_image_instance_mask): Use real bitmap
14735         geometry.
14736         (mswindows_create_resized_bitmap): Ditto.
14737         (mswindows_create_resized_mask): Ditto.
14738
14739         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14740         and bitmap to their surface size.
14741
14742 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14743
14744         * process-unix.c (unix_send_process): Guard against process MIA
14745         after Faccept_process_output.
14746
14747 2000-04-11  Ben Wing  <ben@xemacs.org>
14748
14749         * eval.c (unbind_to_hairy): fix brokenness introduced by
14750         nanosecond speed improvements.
14751
14752 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14753
14754         * sunplay.c (init_device): To play sounds correctly, the device
14755         apparently needs to be initialized at least once by XEmacs.  Make
14756         it so.
14757
14758 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14759
14760         * redisplay.c (add_margin_runes): Add text image glyph
14761           handling.
14762
14763 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14764
14765         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14766         gcc is newer than 2.5.
14767
14768 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14769
14770         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14771
14772         * fns.c (size_bit_vector):
14773         * alloc.c (size_vector):
14774         (make_vector_internal):
14775         (make_bit_vector_internal):
14776         (sweep_bit_vectors_1):
14777         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14778
14779 2000-04-06  Andy Piper  <andy@xemacs.org>
14780
14781         * gmalloc.c (malloc): undo previous change.
14782         (malloc): ditto.
14783         (free): ditto.
14784         (realloc): ditto.
14785
14786 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14787
14788         * line-number.c (buffer_line_number): Revert to former version.
14789
14790 2000-04-06  Andy Piper  <andy@xemacs.org>
14791
14792         * gmalloc.c (malloc): add error checking.
14793         (malloc): ditto.
14794         (free): ditto.
14795         (realloc): ditto.
14796
14797         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14798         button_item_to_widget_value arg.
14799
14800         * glyphs-x.c (x_button_instantiate): add extra
14801         button_item_to_widget_value arg.
14802         (x_progress_gauge_instantiate): ditto.
14803         (x_edit_field_instantiate): ditto.
14804         (x_label_instantiate): ditto.
14805
14806         * gui-x.c (gui_items_to_widget_values_1): add extra
14807         button_item_to_widget_value arg.
14808         (button_item_to_widget_value): add extra menu_item_p arg.
14809
14810         * gui-x.h: change signature of button_item_to_widget_value.
14811
14812         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14813         button_item_to_widget_value arg.
14814
14815 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14816
14817         * buffer.h (struct buffer): auto_save_modified should be long.
14818
14819 2000-04-05  Andy Piper  <andy@xemacs.org>
14820
14821         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14822         type.
14823         (button_query_geometry): give a little more room so that athena
14824         buttons fit.
14825
14826 2000-04-05  Andy Piper  <andy@xemacs.org>
14827
14828         * faces.c (complex_vars_of_faces): The widget face should inherit
14829         the font of the gui-element face.
14830
14831 2000-04-04  Andy Piper  <andy@xemacs.org>
14832
14833         * glyphs-x.c (x_button_update): new function. unconditionally
14834         update a button's state when the instance is dirty.
14835         (image_instantiator_format_create_glyphs_x): add x_button_update.
14836         (x_widget_instantiate): remove old resize cruft.
14837
14838 2000-04-02  Andy Piper  <andy@xemacs.org>
14839
14840         * frame.c (change_frame_size_1): The introduction of gutters means
14841         that we need to allow 0 as a potential frame dimension.
14842
14843 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14844
14845         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14846         image glyph if allow_cursor.
14847         (add_hscroll_rune): Don't allow cursor to border glyph.
14848         (create_text_block): Ditto.
14849
14850         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14851         text not in buffer.
14852         (redisplay_output_layout): Call ensure_face_cachel_complete for
14853         text image glyph.
14854
14855
14856 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14857
14858         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14859
14860         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14861         not in buffer
14862
14863         * redisplay-tty.c (tty_output_display_block): Delete the routine
14864         for text image glyph
14865         * redisplay-x.c (x_output_display_block): ditto
14866         * redisplay-msw.c (mswindows_output_display_block): ditto
14867
14868 2000-02-02  Mike Alexander  <mta@arbortext.com>
14869
14870         Note: Some of these were committed by accident as part of other
14871         patches.
14872
14873         * regex.c (regex_compile): Avoid compiler warnings.
14874
14875         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14876
14877         * nt.h: Declare term_ntproc correctly.
14878
14879         * nt.c: Remove incorrect declaration of get_home_directory which
14880         is declared correctly in lisp.h.
14881
14882         * keymap.c (get_keyelt): Avoid compiler warnings.
14883         (raw_lookup_key_mapper): Avoid compiler warnings.
14884
14885         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14886
14887         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14888
14889         * filemode.c (mode_string): Avoid compiler warnings.
14890
14891         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14892         avoid warning.
14893
14894         * events-mod.h: Undef some things that winuser.h defines differently.
14895
14896         * data.c (Faset): Avoid compiler warnings.
14897
14898         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14899
14900 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14901
14902         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14903         Fall through to simple beep on error.
14904         Replace "extern" by real header file.
14905
14906         * linuxplay.c: Use nativesound.h
14907         (play_sound_data): Return error code. Be less verbose on error.
14908
14909         * sunplay.c: Use nativesound.h
14910         (play_sound_data): Return error code. Be less verbose on error.
14911
14912         * ntplay.c: Use nativesound.h
14913         (play_sound_data): Return fake error code
14914
14915         * sgiplay.c: Use nativesound.h
14916         (play_sound_data): Return error code
14917
14918         * hpplay.c: Use nativesound.h, partially implement
14919         new error code. Break compilation until finished.
14920         (play_sound_data): error code.
14921
14922         * nativesound.h (play_sound_file):
14923           (play_sound_data): Prototype in new header.
14924
14925 2000-03-31  Andy Piper  <andy@xemacs.org>
14926
14927         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14928         for toggle and radio buttons.
14929         (image_instantiator_buttons): use it.
14930
14931 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14932
14933         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14934         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14935         found. Scrollbar event probably belonged to some old config.
14936
14937 2000-03-31  Andy Piper  <andy@xemacs.org>
14938
14939         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14940         than 1.
14941         (initialize_widget_image_instance): default layout to
14942         LAYOUT_HORIZONTAL rather than 0.
14943         (widget_instantiate): reverse the item list at the end rather than
14944         every iteration.
14945         (layout_layout): re-code for the border text at the front of the
14946         item list rather than at the end.
14947         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14948         provided by the user.
14949         (widget_query_geometry): comment.
14950
14951 2000-03-30  Andy Piper  <andy@xemacs.org>
14952
14953         * glyphs-widget.c (image_instantiator_layout): allow standard
14954         widget keywords in layouts.
14955
14956         * gutter.c (output_gutter): cope with nil gutter contents.
14957
14958         * frame.c (Fset_frame_properties): add gutter docs.
14959
14960 2000-03-29  Andy Piper  <andy@xemacs.org>
14961
14962         * toolbar-msw.c (TBSTYLE_FLAT): add.
14963         (mswindows_output_toolbar): minor fiddling.
14964
14965 2000-03-29  Andy Piper  <andy@xemacs.org>
14966
14967         * gutter.c (output_gutter): force gutter size recalculation if
14968         what we are trying to display won't fit.
14969         (update_gutter_geometry): new function. A per-gutter version of
14970         update_frame_gutter_geometry.
14971         (update_frame_gutter_geometry): use it.
14972         (redraw_exposed_gutter): add extra debugging output.
14973
14974 2000-03-28  Mike Alexander  <mta@arbortext.com>
14975
14976         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14977         (pdump_file_unmap): Implement it on Windows
14978         (pdump_file_get): Save alocated handles for pdump_file_unmap
14979
14980 2000-03-28  Andy Piper  <andy@xemacs.org>
14981
14982         * gui.c (get_gui_callback): treat Quit specially.
14983
14984 2000-03-27  Andy Piper  <andy@xemacs.org>
14985
14986         * glyphs.c (image_instantiate): be careful to check in the same
14987         way we assigned.
14988
14989 2000-03-27  Didier Verna  <didier@xemacs.org>
14990
14991         * config.h.in: define the proper SMART_INCLUDE macro.
14992         handle renaming of `foo_h_path' to `foo_h_file'.
14993
14994         * database.c: ditto.
14995
14996         * emacs.c: ditto.
14997
14998         * linuxplay.c: ditto.
14999
15000         * terminfo.c: ditto.
15001
15002         * tooltalk.h: ditto.
15003
15004 2000-03-27  Andy Piper  <andy@xemacs.org>
15005
15006         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15007         gets updated whenever the face might have changed.
15008
15009 2000-03-26  Mike Alexander  <mta@arbortext.com>
15010
15011         * dumper.c (pdump_resource_free): Fix the comment.
15012
15013 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15014
15015         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15016
15017 2000-03-22  Mike Alexander  <mta@arbortext.com>
15018
15019         * dumper.c: Include Windows headers on Windows
15020         (pdump_resource_free): Add a body to the function
15021         (pdump_load): exe_name -> exe_path and add some comments.
15022
15023 2000-03-25  Mike Alexander  <mta@arbortext.com>
15024
15025         * gui.c (copy_gui_item_tree): Return a value in all cases
15026
15027 2000-03-21  Didier Verna  <didier@xemacs.org>
15028
15029         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15030         lwlib/config.h.in.
15031         (SMART_INCLUDE): new macro.
15032         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15033         the proper location.
15034
15035         * postgresql.c: use it.
15036
15037         * inline.c: ditto.
15038
15039 2000-03-24  Andy Piper  <andy@xemacs.org>
15040
15041         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15042         do this.
15043
15044 2000-03-24  Andy Piper  <andy@xemacs.org>
15045
15046         * redisplay-output.c (compare_runes): use image_instance_changed
15047         to detect changes. Do not depend on glyphs_changed, only depend on
15048         dirtiness.
15049          (redisplay_output_layout): add debug messages.
15050         (compare_runes): ditto.
15051
15052         * glyphs.h: declare new functions.
15053         (struct Lisp_Image_Instance): remove percent and associated
15054         accessors.
15055
15056         * gui.h: declare new copying functions.
15057
15058         * gui.c (copy_gui_item_tree): new function.
15059         (copy_gui_item): new function.
15060         (gui_item_id_hash): revert to standard hash.
15061         (gui_item_hash): ditto.
15062         (gui_item_hash_internal): deleted.
15063         (mark_gui_item): mark value.
15064         (gui_item_add_keyval_pair): add value.
15065         (gui_item_init): ditto.
15066         (gui_add_item_keywords_to_plist): ditto.
15067         (gui_item_equal): ditto.
15068         (syms_of_gui): add Q_value.
15069
15070         * glyphs-x.c (x_progress_gauge_update): use pending items and
15071         value for setting the state.
15072         (x_update_widget): don't set items from pending here.
15073
15074         * glyphs-widget.c (update_widget): update items here.
15075         (progress_gauge_set_property): use items for storing value. Put
15076         new value in pending items.
15077
15078         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15079         items for new value. Convert percent -> value.
15080         (mswindows_tab_control_update): don't update items here.
15081
15082         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15083         (update_subwindow): ditto.
15084         (image_instance_changed): new function. Compare hash values and
15085         past and present widget items.
15086         (image_instantiate): We more careful about where we instantiate
15087         things.
15088         (image_instantiate): add error checking.
15089
15090         * gutter.c (syms_of_gutter): use -hook.
15091
15092 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15093
15094         * console-tty.c (Fset_console_tty_input_coding_system): Use
15095         Qkeyboard.
15096         (Fset_console_tty_output_coding_system): Use Qterminal.
15097         (tty_init_console): Use Qkeyboard and Qterminal.
15098
15099 2000-03-21  Ben Wing  <ben@xemacs.org>
15100
15101         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15102         From Mike Alexander <mta@arbortext.com>.
15103
15104 2000-03-21  Ben Wing  <ben@xemacs.org>
15105
15106         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15107         process brokenness.  Proper implementation to come.
15108         * callproc.c:
15109         Rename call-process-internal to old-call-process-internal.
15110         New impl. in process.el.
15111
15112 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15113
15114         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15115
15116 2000-03-20  Andy Piper  <andy@xemacs.org>
15117
15118         * glyphs.c (full_list_hash): make hashes of the same elements in
15119         different orders return different values.
15120
15121 2000-03-20  Martin Buchholz <martin@xemacs.org>
15122
15123         * XEmacs 21.2.32 is released.
15124
15125 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15126
15127         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15128         (DFC_MALLOC_USE_CONVERTED_DATA):
15129         Add aliasing-safe casts to allow use with char* or unsigned char*
15130         lvalues.
15131
15132         * eldap.c (Fldap_open):
15133         (Fldap_search_basic):
15134         (Fldap_add):
15135         (Fldap_modify):
15136         Make C++-compilable.
15137         Make sure GCPRO'ed variables are initialized.
15138         Use temp variables to avoid repeated calls to Flength.
15139
15140 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15141
15142         * sysfile.h:
15143         Make sure PATH_MAX is always defined.
15144         Include limits.h for PATH_MAX.
15145         Deprecate use of MAXPATHLEN.
15146
15147 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15148
15149         * emacs.c: Add reinit_vars_of_fileio.
15150         * symsinit.h: Add reinit_vars_of_fileio.
15151         * fileio.c (reinit_vars_of_fileio): New.
15152         * fileio.c (Fmake_temp_name):
15153         Initialize temp_name random number from microseconds to make
15154         collisions even less likely.  Initialize always at process startup
15155         time.  (make-temp-name) used to return the same file name twice in
15156         a row when PDUMP.
15157         Random stylistic fiddling.
15158         Comment fixes.
15159
15160 2000-03-20  Andy Piper  <andy@xemacs.org>
15161
15162         * glyphs.c (image_instantiate): allow text glyphs to be
15163         instantiated in the minibuffer window.
15164
15165 2000-03-19  Andy Piper  <andy@xemacs.org>
15166
15167         * glyphs.c (image_instance_hash): be careful about which items we
15168         hash on.
15169
15170         * glyphs-widget.c (tab_control_set_property): record into pending
15171         items rather than the actual items.
15172
15173         * glyphs-x.c (x_update_widget): use pending items to update with.
15174
15175         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15176         to update with.
15177
15178         * glyphs.c (mark_image_instance): mark pending items.
15179
15180         * window.c (Fset_window_configuration): record the buffer.
15181         (Fselect_window): totally revert previous change which breaks many
15182         things.
15183
15184 2000-03-18  Andy Piper  <andy@xemacs.org>
15185
15186         * glyphs-msw.c (mswindows_tab_control_update): force selected
15187         item.
15188
15189         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15190         window domain cache, otherwise we get inconsistencies at
15191         startup. There is something fishy at startup which can lead to the
15192         minibuffer being the selected window when the gutter content is
15193         instantiated.
15194
15195         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15196         gcpros.
15197         (parse_gui_item_tree_children): ditto.
15198         (parse_gui_item_tree_item): ditto.
15199
15200         * glyphs.c (Fupdate_widget_instances): return something.
15201
15202 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15203
15204         * window.c (Fselect_window): Undo 2000-03-17 change.
15205
15206 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15207
15208         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15209         against v7.0 libraries.  Insta-coredump city until the postgres
15210         folks fix it.
15211
15212 2000-03-17  Andy Piper  <andy@xemacs.org>
15213
15214         * faces.c (complex_vars_of_faces): don't give the widget face an
15215         inherited background pixmap.
15216
15217         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15218         selected item.
15219
15220         * event-stream.c (Fdispatch_non_command_events): return something.
15221
15222         * gutter.c (output_gutter): use widget face.
15223         (clear_gutter): ditto.
15224
15225         * NEWS: adjust again.
15226
15227         * window.c (Fselect_window): make sure this runs to completion to
15228         avoid oddities with Fset_window_configuration.
15229         (Fcurrent_window_configuration): in general do not save the
15230         minibuffer as the selected window.
15231
15232         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15233
15234 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15235
15236         * emacs.c (Frunning_temacs_p): Revert previous patch.
15237         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15238
15239 2000-03-16  Andy Piper  <andy@xemacs.org>
15240
15241         * glyphs-x.c (x_tab_control_update): if no widget values then
15242         return.
15243
15244         * NEWS: update for new features.
15245
15246         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15247         synthetic event to the native system.
15248         (reinit_vars_of_event_Xt): set force_event_pending to
15249         emacs_Xt_force_event_pending.
15250
15251         * events.h (struct event_stream): add force_event_pending.
15252
15253         * specifier.c (recompute_one_cached_specifier_in_window): add
15254         comment.
15255
15256         * redisplay.c (redisplay_frame): don't call
15257         update_frame_subwindows. Reset subwindow cachels when
15258         subwindows_changed, removing this was an optimization too far.
15259
15260         * redisplay-output.c (compare_runes): reorganize so that we catch
15261         glyph changes when we want them. Set optimize_output when this
15262         would help layouts.
15263         (redisplay_output_layout): remove frame_really_changed, use
15264         optimize_output instead.
15265
15266         * redisplay-msw.c (mswindows_output_display_block): reset
15267         optimize_output after outputting a glyph.
15268         * redisplay-x.c (x_output_display_block): ditto.
15269         * redisplay-tty.c (tty_output_display_block): ditto.
15270
15271         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15272         functions.
15273         (gutter_specs_changed): do specific gutter positions.
15274         (top_gutter_specs_changed): new function. Only update the
15275         specified gutter specs.
15276         (bottom_gutter_specs_changed): ditto.
15277         (left_gutter_specs_changed): ditto.
15278         (right_gutter_specs_changed): ditto.
15279
15280         * gui.c (gui_item_hash_internal): new function, does a real hash.
15281         (gui_item_id_hash): use it.
15282         (gui_item_hash): hash the eval'ed gui_item.
15283
15284         * gui-x.c (popup_selection_callback): send an eval event to call
15285         Fupdate_widget_instances.
15286
15287         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15288         to call Fupdate_widget_instances.
15289
15290         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15291         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15292
15293         * glyphs.c: (update_frame_subwindows): deleted.
15294         (Fupdate_widget_instances): new function for updating the dirty
15295         state of widgets that might have changed.
15296         (syms_of_glyphs): add Qupdate_widget_instances.
15297         (full_list_hash): hash a list completely.
15298         (image_instance_hash): use it for items and properties.
15299
15300         * frame-msw.c (mswindows_size_frame_internal): remove unused
15301         variable.
15302
15303         * faces.h (struct face_cachel): fix comment.
15304
15305         * event-stream.c (Fdispatch_non_command_events): new
15306         function. Process non-command events, forcing an event cycle
15307         beforehand.
15308         (syms_of_event_stream): declare.
15309         (event_stream_force_event_pending): new function. Force an event
15310         on the native event queue so that an event cycle will occur next
15311         time we check.
15312
15313         * event-msw.c:
15314         (struct ntpipe_shove_stream):
15315         (mswindows_enqueue_dispatch_event):
15316         (mswindows_dequeue_dispatch_event):
15317         (mswindows_cancel_dispatch_event):
15318         (mswindows_pump_outstanding_events):
15319         (mswindows_drain_windows_queue):
15320         (mswindows_handle_paint):
15321         (mswindows_wnd_proc):
15322         (mswindows_key_to_emacs_keysym):
15323         (get_process_input_waitable):
15324         (emacs_mswindows_delete_stream_pair): re-indent file.
15325         (mswindows_need_event): do not process further fds if the windows
15326         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15327         fixes the 100% cpu problem.
15328         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15329
15330 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15331
15332         * alloc.h: New.
15333         * dumper.h: New.
15334         * dumper.c: New.
15335
15336         * emacs.c: Moved dump file searching to dumper.c.
15337         (Frunning_temacs_p): Fixed.
15338
15339         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15340         last_lrecord_type_index_assigned.
15341
15342 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15343
15344         * symsinit.h: Added reinit parameter to init_console_stream
15345         declaration.
15346
15347         * lisp.h: Added file parameter to pdump_load declaration.
15348
15349         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15350         support.  Added dump file searching.
15351
15352         * config.h.in: Added EMACS_PROGNAME.
15353
15354         * console-stream.c (init_console_stream): Fix reinitialisation
15355         when running from temacs.
15356
15357         * alloc.c (pdump): Add id support.
15358         (pdump_load): Add file parameter and signature/id support.
15359
15360         * Makefile.in.in: Add full pdump support.
15361
15362 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15363
15364         * postgresql.c: Update documentation to reflect latest code
15365         status.
15366         (print_result): Show tuple counts in printed representation when
15367         appropriate.
15368         (Fpq_put_nbytes): MULE-ize.
15369         (Fpq_get_line_async): Ditto.
15370
15371 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15372
15373         * postgresql.c (Fpq_lo_import): Fix return value.
15374         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15375
15376 2000-03-13  Ben Wing  <ben@xemacs.org>
15377
15378         * alloc.c (pdump_load):
15379         Fix compile warning under mswin.
15380
15381 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15382
15383         * postgresql.c: Mule-ization, bug fixes.
15384         Use PG_CODING to encapsulate coding system name changes.
15385         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15386         (pg-coding-system): Create.
15387
15388         (Fpq_conn_defaults): Mule-ize.
15389         (Fpq_connectdb): Mule-ize & bug fix.
15390         (Fpq_connect_start): Mule-ize.
15391         (Fpq_set_client_encoding): Mule-ize.
15392         (Fpq_finish): Document `DEAD' connection status.
15393         (Fpq_clear): Ditto.
15394         (Fpq_pgconn): Mule-ize.
15395         (Fpq_exec): Mule-ize & bug fix.
15396         (Fpq_send_query): Ditto.
15397         (Fpq_get_result): Ditto.
15398         (Fpq_res_status): Mule-ize.
15399         (Fpq_result_error_message): Mule-ize.
15400         (Fpq_ntuples): fix comments.
15401         (Fpq_fname): Mule-ize.
15402         (Fpq_fnumber): Mule-ize.
15403         (Fpq_ftype): fix comments.
15404         (Fpq_get_value): Mule-ize.
15405         (Fpq_cmd_status): Ditto.
15406         (Fpq_cmd_tuples): Ditto.
15407         (Fpq_oid_value): Ditto.
15408         (Fpq_notifies): Ditto.
15409         (Fpq_lo_import): Ditto.
15410         (Fpq_lo_export): Ditto.
15411         (Fpq_get_line): Ditto.
15412         (Fpq_put_line): Mule-ize and bug fix.
15413         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15414
15415 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15416
15417         * postgresql.c (vars_of_postgresql): Mule-ize.
15418         (Fpq_conn_defaults): Ditto.
15419
15420 2000-03-12  Ben Wing  <ben@xemacs.org>
15421
15422         * alloc.c (Fmake_byte_code):
15423         * alloc.c (debug_string_purity_print):
15424         * alloc.c (pdump_backtrace):
15425         * alloc.c (pdump_get_indirect_count):
15426         * alloc.c (pdump_register_sub):
15427         * alloc.c (pdump_register_object):
15428         * alloc.c (pdump_register_struct):
15429         * alloc.c (pdump_dump_data):
15430         * alloc.c (pdump_reloc_one):
15431         Minor cleanups.
15432
15433         * console-msw.c:
15434         * console-msw.c (GetConsoleHwnd):
15435         * console-msw.c (msw_hide_console):
15436         * console-msw.c (msw_show_console):
15437         * console-msw.c (msw_ensure_console_buffered):
15438         * console-msw.c (msw_output_console_string):
15439         * console-msw.c (console_type_create_mswindows):
15440
15441         a) Added functions to manipulate the console window for use with
15442         shell support.
15443
15444         b) Added support for writing text to the console, which is now
15445         used under Windows when xemacs is not being run non-interactively,
15446         to write text that would otherwise be destined for stdout because
15447         under these circumstances, text written to stdout tends to
15448         disappear and not be seen.
15449
15450         * console-msw.h:
15451         * event-Xt.c:
15452         * event-Xt.c (x_event_to_emacs_event):
15453         * event-Xt.c (describe_event_window):
15454         * events-mod.h (XEMACS_MOD_CONTROL):
15455         * events.c:
15456         * events.c (Fmake_event):
15457         * events.c (character_to_event):
15458         * events.c (event_to_character):
15459         * events.c (format_event_object):
15460         * events.c (Fevent_modifiers):
15461         * events.h:
15462         * events.h (struct key_data):
15463         * events.h (struct button_data):
15464         * events.h (struct misc_user_data):
15465         * frame-x.c (Fcde_start_drag_internal):
15466         * frame-x.c (Foffix_start_drag_internal):
15467         * gpmevent.c (Freceive_gpm_event):
15468         * keymap.c:
15469         * keymap.c (bucky_sym_to_bucky_bit):
15470         * keymap.c (control_meta_superify):
15471         * keymap.c (make_key_description):
15472         * keymap.c (keymap_lookup_directly):
15473         * keymap.c (create_bucky_submap):
15474         * keymap.c (keymap_store):
15475         * keymap.c (define_key_check_and_coerce_keysym):
15476         * keymap.c (define_key_parser):
15477         * keymap.c (define_key_alternate_name):
15478         * keymap.c (Fdefine_key):
15479         * keymap.c (raw_lookup_key_mapper):
15480         * keymap.c (struct map_keymap_unsorted_closure):
15481         * keymap.c (map_keymap_unsorted_mapper):
15482         * keymap.c (map_keymap_sort_predicate):
15483         * keymap.c (map_keymap_sorted):
15484         * keymap.c (accessible_keymaps_mapper_1):
15485         * keymap.c (where_is_recursive_mapper):
15486         * keymap.c (describe_map_mapper):
15487         * keymap.c (describe_map_sort_predicate):
15488         * keymap.c (describe_map):
15489         * keymap.c (complex_vars_of_keymap):
15490         And a number of other files, the key modifier preprocessor
15491         constants that xemacs uses have names that conflict with constants
15492         defined under MS Windows for other purposes, so they were renamed
15493         to begin with the prefix XEMACS_. The variables that hold such
15494         modifiers were changed to consistently be of type int to fix
15495         various compile warnings.
15496
15497         * console.c (complex_vars_of_console):
15498         * device.c:
15499         * device-msw.c:
15500         * device-msw.c (mswindows_finish_init_device):
15501         * device-msw.c (msw_get_workspace_coords):
15502         * device-msw.c (mswindows_device_system_metrics):
15503         and various other files, added support for a new
15504         device property called offset-workspace which returns the position
15505         of the upper left corner of the workspace area and goes along with
15506         the existing size-workspace property.
15507
15508         * dialog-msw.c:
15509         * dialog-msw.c (push_bufbyte_string_as_unicode):
15510         * dialog-msw.c (mswindows_popup_dialog_box):
15511         Added support for XEmacs-style accelerator specifications in
15512         button text.  Note: I didn't add support for this under X Windows,
15513         and somebody needs to do this.
15514
15515         * dialog.c:
15516         * dialog.c (Fpopup_dialog_box):
15517         Documented the support for accelerators that was just mentioned.
15518
15519         editfns.c (get_home_directory): Changed behavior under Windows
15520         when HOME not defined; former behavior was irretrievably broken.
15521
15522         * emacs.c:
15523         * emacs.c (main_1):
15524         * emacs.c (main):
15525         * minibuf.c (clear_echo_area_internal):
15526         * minibuf.c (echo_area_append):
15527         * print.c:
15528         * print.c (std_handle_out_external):
15529         * print.c (std_handle_out_va):
15530         * print.c (fatal):
15531         * print.c (write_string_to_stdio_stream):
15532         * print.c (output_string):
15533         * print.c (debug_print):
15534         * print.c (debug_backtrace):
15535         * print.c (debug_short_backtrace):
15536         Cleaned up the code that prints text to stdout so that this can be
15537         changed to output into a console window instead under MS Windows,
15538         as described above.
15539
15540         * eval.c:
15541         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15542         * eval.c (internal_catch):
15543         * eval.c (unwind_to_catch):
15544         * eval.c (throw_or_bomb_out):
15545         * eval.c (condition_case_1):
15546         * eval.c (signal_1):
15547         * eval.c (check_error_state_sanity):
15548         * eval.c (call_with_suspended_errors_1):
15549         * eval.c (call_with_suspended_errors):
15550         * eval.c (reinit_vars_of_eval):
15551         Added code to catch throw loops and check for a pesky bug that may
15552         be gone now.
15553
15554         * event-msw.c:
15555         * event-msw.c (key_needs_default_processing_p):
15556         * event-msw.c (mswindows_wnd_proc):
15557         * event-msw.c (mswindows_modifier_state):
15558         * event-msw.c (emacs_mswindows_quit_p):
15559         * event-msw.c (vars_of_event_mswindows):
15560         a) Added support for using the alt key to select menu items as is
15561         standard under MS Windows.  This is controlled using the variable
15562         menu-accelerator-enabled, just like under X Windows.  There is an
15563         option on the options menu to turn this support on.  I really
15564         think that it should be on by default under Windows, but I'm not
15565         going to make this change yet.
15566
15567         b)  Added support for dynamic display size changes under Windows.
15568
15569         * event-stream.c:
15570         * event-stream.c (maybe_echo_keys):
15571         * event-stream.c (Fnext_event):
15572         * event-stream.c (command_builder_find_leaf):
15573         * event-stream.c (lookup_command_event):
15574         * event-stream.c (execute_command_event):
15575         * event-stream.c (pre_command_hook):
15576         * event-stream.c (post_command_hook):
15577         * event-stream.c (syms_of_event_stream):
15578         * event-stream.c (vars_of_event_stream):
15579         * event-stream.c (complex_vars_of_event_stream):
15580         * events.h (struct command_builder):
15581
15582         a) Tried to clean up a little bit the horribly written x-specific
15583         accelerator code that crept into this file.  I moved this code
15584         into menubar-x.c where it belongs. I also needed to move the
15585         command builder structure into the file events.h because it is
15586         accessed directly by this accelerator code.  What I didn't do, but
15587         which should be done at some point, is to properly abstract this
15588         code using device methods instead of the kludgy way that it
15589         currently hooks into the event code.
15590
15591         b) Added the lisp variables this-command-properties and
15592         last-command- properties, which should be used to synchronize two
15593         adjacent commands in preference to playing games with the variable
15594         this-command, which is typically what happens.
15595
15596         c) Added some slightly nasty code to hook into the lisp support
15597         for shifted- motion-key selection.  This is actually necessary for
15598         somewhat complicated reasons, which are described in
15599         simple.el. (NB: I think the proper thing would be to have the code
15600         that calls the pre and post command hooks also call out to generic
15601         lisp functions in simple.el, where all built-in stuff could be
15602         added.  I will think about this more.)
15603
15604         * event-unixoid.c (poll_fds_for_input):
15605         * lread.c (readchar):
15606         * redisplay-tty.c (tty_clear_frame):
15607         * redisplay-x.c (x_get_gc):
15608         * signal.c (interrupt_signal):
15609         And a whole bunch of other files: fixed up places that printed
15610         directly to stderr to instead call the function stderr_out so that
15611         the changes I made under Windows work correctly.
15612
15613         * filemode.c (mode_string):
15614         Warning fixes.
15615
15616         * frame-msw.c:
15617         * frame-msw.c (mswindows_size_frame_internal):
15618         Fixed the computation of frame size and position to keep the frame
15619         within the workspace area, rather than within the physical
15620         dimensions of the screen, so that the frame doesn't overlap window
15621         manager decorations, such as the start menu and toolbar, typically
15622         at the bottom of the screen.
15623
15624         * frame.c (vars_of_frame):
15625         Changed the default frame title format under MS Windows to consist
15626         of buffername-XEmacs, which is standard under MS Windows.  I think
15627         it might be a good idea to change this everywhere because I think
15628         it is superior to the current frame title format, but this is the
15629         kind of change that is likely to cause some people to get annoyed,
15630         so I'm not making it.
15631
15632         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15633
15634         * gui-msw.c (mswindows_handle_gui_wm_command):
15635         Fixed compile warnings.
15636
15637         * gui-x.c:
15638         * gui-x.c (strdup_and_add_accel):
15639         * gui-x.c (button_item_to_widget_value):
15640         * gui-x.h:
15641         Added code to automatically put an accelerator onto the beginning
15642         of menu items that don't have one as is now the standard, and is
15643         described more later.  Also fixed things so that the menu item
15644         name can be an evaluated expression, again a new standard.
15645
15646         * gui.c:
15647         * gui.c (gui_item_add_keyval_pair):
15648         * gui.c (make_gui_item_from_keywords_internal):
15649         * gui.c (gui_add_item_keywords_to_plist):
15650         * gui.c (gui_item_accelerator):
15651         * gui.c (gui_name_accelerator):
15652         * gui.c (gui_item_included_p):
15653         * gui.c (gui_item_display_flush_left):
15654         * gui.c (gui_item_display_flush_right):
15655         * gui.c (parse_gui_item_tree_item):
15656         * gui.c (parse_gui_item_tree_children):
15657         * gui.c (parse_gui_item_tree_list):
15658         Mule-ized.  Cleanup.  GCPRO addition.
15659
15660         * line-number.c (buffer_line_number):
15661         * lisp.h:
15662         * lisp.h (EMACS_INT_MAX):
15663         Added the manifest constant EMACS_INT_MIN corresponding to the
15664         existing constant EMACS_INT_MAX.  This is partially to fix compile
15665         warnings under Windows, and partly for cleanliness.
15666
15667         * menubar-msw.c:
15668         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15669         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15670         * menubar-msw.c (displayable_menu_item):
15671         * menubar-msw.c (populate_menu_add_item):
15672         * menubar-msw.c (populate_or_checksum_helper):
15673         * menubar-msw.c (populate_menu):
15674         * menubar-msw.c (update_frame_menubar_maybe):
15675         * menubar-msw.c (prune_menubar):
15676         * menubar-msw.c (msw_char_is_accelerator):
15677         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15678         * menubar-msw.c (mswindows_handle_wm_command):
15679         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15680         * menubar-msw.c (mswindows_handle_wm_initmenu):
15681         * menubar-msw.c (mswindows_update_frame_menubars):
15682         * menubar-msw.c (mswindows_free_frame_menubars):
15683         * menubar-msw.c (mswindows_popup_menu):
15684         Fixed a bug in handling accelerators where an extra character
15685         would be displayed in the menu item.  Also generalized the
15686         function displayable_menu_item because it is now used by the
15687         dialog box code as well.  And finally, added code in the functions
15688         that create the menubar to extract a list of accelerators for the
15689         top level menubar, which is used in the event code to determine
15690         whether a particular alt-key combination should be used to invoke
15691         a menu item, or should be passed through to access the standard
15692         XEmacs keymap binding for this key combination.
15693
15694         Much needed GCPROing.
15695
15696         * menubar-x.c:
15697         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15698         * menubar-x.c (menu_item_descriptor_to_widget_value):
15699         * menubar-x.c (restore_in_menu_callback):
15700         * menubar-x.c (x_popup_menu):
15701         * menubar-x.c (menu_move_up):
15702         * menubar-x.c (menu_move_down):
15703         * menubar-x.c (menu_move_left):
15704         * menubar-x.c (menu_move_right):
15705         * menubar-x.c (menu_select_item):
15706         * menubar-x.c (command_builder_operate_menu_accelerator):
15707         * menubar-x.c (menu_accelerator_junk_on_error):
15708         * menubar-x.c (command_builder_find_menu_accelerator):
15709         * menubar-x.c (Faccelerate_menu):
15710         * menubar.h:
15711         Moved a whole bunch of code here that was previously in
15712         event-stream.c as described above.  There is also code connected
15713         to the new standard of adding an accelerator to the beginning of
15714         menu items that don't have one as described above and below.
15715
15716         * menubar.c:
15717         * menubar.c (menu_parse_submenu_keywords):
15718         * menubar.c (Fmenu_find_real_submenu):
15719         * menubar.c (Fnormalize_menu_item_name):
15720         * menubar.c (syms_of_menubar):
15721         * menubar.c (vars_of_menubar):
15722         * menubar.c (complex_vars_of_menubar):
15723
15724         a) Cleaned up a bunch of documentation and improved it.
15725
15726         b) XEmacs now automatically adds an accelerator onto the beginning
15727         of any menu items that don't have one.  I did this because there
15728         will inevitably be some menu items on the main menubar that don't
15729         have accelerators on them because the package that adds that
15730         particular menu item hasn't yet been fixed up to have accelerators
15731         in them and it looked rather strange to have some items with and
15732         some items without accelerators, especially since even in items
15733         without accelerators, you can, at least under windows, still
15734         access the item through an accelerator corresponding to the first
15735         character in the item's name.  If people don't like this behavior,
15736         I can add a variable to turn it off optionally, but I'm not sure
15737         this is a good idea because we really do need to have accelerators
15738         on all of the menu items, and if a package doesn't like the
15739         accelerators being put on the first character, then it should put
15740         the accelerators where they belong.
15741
15742         c) I made a behavior change, which is that the descriptor that
15743         specifies the text of the menu item, which formerly was just a
15744         string, can now also be an evaluated expression.  This makes this
15745         descriptor parallel with all of the others, which could also be
15746         evaluated expressions.  This also obviates the need for the
15747         keyword :label, which was previously listed in the documentation
15748         as unimplemented, and which was for the same purpose.
15749
15750         d) GCPROing.
15751
15752         * ntproc.c:
15753         * ntproc.c (new_child):
15754         * ntproc.c (sys_spawnve):
15755         * ntproc.c (find_child_console):
15756         * ntproc.c (sys_kill):
15757         Fixed compile warnings.  By the way, this file should really go
15758         away entirely, and this will happen as soon as Kirill makes his
15759         final round of process cleanups, which affect the function
15760         call-process.
15761
15762         * process-nt.c:
15763         * process-nt.c (struct nt_process_data):
15764         * process-nt.c (find_process_from_pid):
15765         * process-nt.c (send_signal_the_nt_way):
15766         * process-nt.c (enable_child_signals):
15767         * process-nt.c (find_child_console):
15768         * process-nt.c (send_signal_the_95_way):
15769         * process-nt.c (nt_finalize_process_data):
15770         * process-nt.c (ensure_console_window_exists):
15771         * process-nt.c (nt_create_process):
15772         * process-nt.c (nt_kill_child_process):
15773         * process-nt.c (nt_kill_process_by_pid):
15774         * process-nt.c (nt_open_network_stream):
15775         * process-nt.c (vars_of_process_nt):
15776         Copied over code from Emacs 20.5 to correctly send signals to sub-
15777         processes under Windows 95.  Also added code to automatically
15778         create and hide console window when a sub-process is created under
15779         Windows 95, which obviates the need for the separate runemacs.exe
15780         executable, and finally implemented some variables that were
15781         implemented in Emacs 20.5, but previously not in XEmacs.  These
15782         include mswindows- start-process-share-console and
15783         mswindows-start-process-inherit-error-mode. (Both of these only
15784         apply to Windows 95.)
15785
15786         * regex.c (regex_compile): Fixed a compile warning.
15787
15788         * select-msw.c:
15789         * select-msw.c (mswindows_own_selection):
15790         * select-msw.c (mswindows_get_foreign_selection):
15791         * select-msw.c (mswindows_disown_selection):
15792         * select-msw.c (console_type_create_select_mswindows):
15793         * select-msw.c (syms_of_select_mswindows):
15794         Cleaned up the file and implemented the device method
15795         selection_exists_p, which had accidentally been left out.  Also
15796         removed four lisp functions that were remnants from before the
15797         time when the selection code was properly device abstracted.
15798         These functions are no longer needed because there are generic
15799         equivalents, and because they were added recently and don't exist
15800         in FSF Emacs, I don't think there's any problem with just deleting
15801         them.
15802
15803         * sysdep.c:
15804         * sysdep.c (sys_subshell):
15805         Fixed a compile warning, although in this case there's probably
15806         something wrong with this code, and it ought to be looked into
15807         more thoroughly by somebody who understands it.
15808
15809         * window.c:
15810         * window.c (Fwindow_text_area_height):
15811         * window.c (Fwindow_width):
15812         * window.c (Fwindow_full_width):
15813         * window.c (Fwindow_pixel_width):
15814         * window.c (debug_print_window):
15815         * window.c (syms_of_window):
15816         Added functions window-text-area-height and window-full-width,
15817         which are functions for returning various width and height
15818         characteristics of a window. (One of these functions is necessary
15819         for making the file dialog box work correctly, and the other one
15820         was added for completeness.)  Also added a table to the
15821         documentation for window-height which describes the entire scheme
15822         for accessing width and height characteristics of a window.
15823
15824 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15825
15826         * nt.c (fstat): Added a comment for another problem with
15827         non-encapsulated [f]stat(), reported by Adrian Aichner
15828         <aichner@ecf.teradyne.com>.
15829
15830 2000-03-11  Andy Piper  <andy@xemacs.org>
15831
15832         * window.c (make_dummy_parent): initialize subwindow instance
15833         cache.
15834         (Fset_window_configuration): zero extent_modiff.
15835
15836 2000-03-10  Andy Piper  <andy@xemacs.org>
15837
15838         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15839         more changes can be triggered.
15840         (Fredisplay_frame): ditto.
15841         (Fredraw_device): ditto.
15842         (Fredisplay_device): ditto.
15843         (redisplay_frame): make non-static.
15844         (redisplay_frame): call update_frame_gutter_geometry outside of
15845         display proper.
15846
15847         * gutter.h: declare update_frame_gutter_geometry.
15848
15849         * redisplay.h: declare redisplay_frame.
15850
15851         * gutter.c (update_frame_gutter_geometry): move geometry changes
15852         in update_frame_gutters here. Geometry changes can only occur
15853         outside of redisplay.
15854         (update_frame_gutters): remove geometry change code.
15855         (Fredisplay_gutter_area): make sure that we are in display when we
15856         update and that we have flushed any size changes.
15857
15858 2000-03-11  Andy Piper  <andy@xemacs.org>
15859
15860         * alloc.c (pdump_dump_data): remove i & count shadows.
15861
15862 2000-02-27  Mike Alexander  <mta@arbortext.com>
15863
15864         * sysdep.h: Declare pdump_read_file
15865
15866         * sysdep.c (pdump_read_file): New function
15867
15868         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15869         dump data
15870
15871 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15872
15873         * lrecord.h: add `lrecord_type_pgsetenv'.
15874
15875 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15876
15877         * symsinit.h: declare (vars|syms)_of* functions.
15878         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15879
15880 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15881
15882         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15883
15884         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15885         GCCs.
15886
15887         * emacs.c (main_1): Call postgres initialization code.
15888
15889         * postgresql.h: New file.  PostgreSQL RDBMS support.
15890         * postgresql.c: New file.
15891
15892 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15893
15894         * redisplay-output.c (redisplay_output_display_block): Disable
15895         redundant code.
15896
15897 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15898
15899         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15900         (Fcanna_henkan_next): Ditto.
15901         (Fcanna_bunsetu_henkou): Ditto.
15902         (Fcanna_henkan_kakutei): Ditto.
15903         (Fcanna_henkan_end): Ditto.
15904         (Fcanna_henkan_quit): Ditto.
15905         (Fcanna_henkan_next): Set retun value correctly.
15906         (c2mu): Use unsigned char instead of signed char.
15907
15908 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15909
15910         * emacs.c (main_1): Always call syms_of_gui.
15911         * inline.c: include gui.h
15912
15913 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15914
15915         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15916         converted to Lisp_Object.
15917         (Qtop_bottom): New variable.
15918         (syms_of_redisplay): Initialize it.
15919         * redisplay.h (Vvisible_bell): Ditto.
15920         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15921         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15922         only flash top and bottom.
15923
15924 2000-03-08  Andy Piper  <andy@xemacs.org>
15925
15926         * buffer.c (Frename_buffer): record new buffer name the right way.
15927
15928 2000-03-08  Andy Piper  <andy@xemacs.org>
15929
15930         * glyphs.c (update_subwindow): increase hash depth so that widget
15931         items get picked up properly.
15932
15933         * redisplay-output.c (compare_runes): increase hash depth so that
15934         widget items get picked up properly.
15935
15936 2000-03-08  Andy Piper  <andy@xemacs.org>
15937
15938         * gutter.c (output_gutter): add some debug.
15939
15940         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15941         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15942         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15943
15944         * redisplay-output.c (compare_runes): use display_hash to
15945         determine if glyphs really are not the same.
15946
15947         * glyphs.c (update_subwindow): check display_hash to see if
15948         anything really needs to be updated. If not then do
15949         nothing. Record the display_hash after updating.
15950         (image_instance_equal): compare the image_instance face also.
15951
15952 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15953
15954         * redisplay.h: Fix comment style.
15955
15956 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15957
15958         * consle-msw.h (struct mswindows_frame):
15959         Added new member paint_pending to indicate whether a WM_PAINT
15960         magic event has been queued for this frame.
15961
15962         * event-msw.c (mswindows_drain_windows_queue):
15963         Don't queue a WM_PAINT magic event if one is already queued.
15964         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15965
15966         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15967
15968 2000-03-07  Didier Verna  <didier@xemacs.org>
15969
15970         * dired.c: #include `regex.h' after `sysfile.h'.
15971
15972 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15973
15974         * sound.c (init_nas_sound): Fix compiler warning.
15975
15976         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15977         (FREE_STRUCT_P):
15978         (MARK_STRUCT_AS_FREE):
15979         (MARK_STRUCT_AS_NOT_FREE):
15980         Make `gcc -fstrict-aliasing' work properly.
15981
15982 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15983
15984         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15985         (mswindows_delete_device): Call CoUnnitialize().
15986
15987         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15988
15989 2000-02-25    <CraigL@DyCon.com>
15990
15991         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15992         <errno.h>.
15993
15994         * sysdep.c: This extern declaration for environ prevents MinGW
15995         from finding the variable in CRTDLL.DLL.
15996
15997         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15998         windows headers.
15999         (SHGFI_EXETYPE): ..
16000         (WM_MOUSEWHEEL): ..
16001         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16002         definitions.
16003         (MMRESULT): Removed, now defined in cygwin's windows headers.
16004         (TIMECAPS): ..
16005         (uid_t,gid_t,pid_t,ssize_t): ..
16006         (_timeb): Removed, MinGW defines both _timeb and timeb.
16007         (HAVE_H_ERRNO): Added.
16008         (HAVE_TZNAME): Added, configure is not detecting this.
16009
16010 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16011
16012         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16013         * syntax.c (syntax_match): Use it.
16014
16015         * cmds.c: Import auto-fill-chars from FSF Emacs.
16016         (Vauto_fill_chars): New variables.
16017         (internal_self_insert): Check Vauto_fill_chars.
16018         (vars_of_cmds):
16019         Declare auto-fill-chars as a Lisp variable and initialize it.
16020
16021 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16022
16023         * fileio.c (Fmake_symbolic_link):
16024         (Ffile_symlink_p):
16025         Run handlers even if local machine doesn't have symlinks.
16026
16027 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16028
16029         * event-msw.c (mswindows_drain_windows_queue):
16030         Don't generate paint magic events for non-XEmacs frames.
16031
16032 2000-03-05  Andy Piper  <andy@xemacs.org>
16033
16034         * redisplay.c (redisplay_frame): generate_displayable_area and
16035         friends assumes that we are not in GC, we therefore have to make
16036         sure that this doesn't happen.
16037
16038         * gutter.c (calculate_gutter_size): generate_displayable_area
16039         assumes that we are not in GC, we therefore have to make sure that
16040         this doesn't happen.
16041
16042 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16043
16044         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16045
16046 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16047
16048         * redisplay.c (regenerate_window): Make sure we set a sane value
16049         for end_pos even if we jump out of the loop.
16050         (regenerate_window): Answer Ben's question :-).
16051         (start_end_of_last_line): Add may_error argument.
16052         (start_of_last_line):
16053         (end_of_last_line): Pass may_error = 0.
16054         (end_of_last_line_may_error): New function.
16055         (pixel_to_glyph_translation): Use it, so we don't crash in
16056         event_to_glyph.
16057
16058 2000-03-04  Andy Piper  <andy@xemacs.org>
16059
16060         * window.h (struct window): add gutter_extent_modiff.
16061
16062         * window.c (allocate_window): zero out gutter_extent_modiff.
16063
16064         * redisplay.h: declare sync_display_line_structs.
16065
16066         * redisplay.c (add_glyph_rune): add a better comment.
16067
16068         * redisplay-output.c (sync_display_line_structs): made non-static.
16069         (compare_runes): remove unneccesary glyph cachel access.
16070
16071         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16072
16073         * gutter.c (output_gutter): don't output the gutter if extent
16074         changes only involve extents in buffers. use 4 sets of display
16075         lines.
16076         (gutter_extent_signal_changed_region_maybe): new function. Mark
16077         extents in gutters as changed.
16078         (update_frame_gutters): use 4 sets of display lines.
16079         (reset_gutter_display_lines): ditto.
16080         (free_frame_gutters): ditto.
16081         (redraw_exposed_gutter): force output of gutters.
16082
16083         * frame.h (struct frame): add 4 sets of gutter display lines.
16084
16085         * extents.c: (extent_changed_for_redisplay): signal changes to
16086         extents in strings in the gutter as well as extents in buffers.
16087
16088 2000-03-02  Andy Piper  <andy@xemacs.org>
16089
16090         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16091
16092         * frame.c (Fmake_frame): make sure the gutters get initialized
16093         after the frame is visible.
16094         (set_frame_selected_window): re-arrange compilation macros a
16095         little.
16096         (change_frame_size_1): mark gutters changed.
16097
16098         * device.c (Fset_device_class): mark gutters changed.
16099
16100 2000-03-01  Andy Piper  <andy@xemacs.org>
16101
16102         * window.c (window_top_frame_gutter_height): deleted.
16103         (window_bottom_frame_gutter_height): ditto.
16104         (window_left_frame_gutter_height): ditto.
16105         (window_right_frame_gutter_height): ditto.
16106         (window_top_gutter_height): don't use them.
16107         (window_bottom_gutter_height): ditto.
16108         (window_left_gutter_width): ditto.
16109         (window_right_gutter_width): ditto.
16110         (Fsplit_window): ditto.
16111         (Fwindow_pixel_edges): don't use border dimensions here.
16112
16113         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16114         (update_scrollbar_instance): ditto.
16115
16116         * redisplay.c (generate_modeline): don't take gutters into account.
16117         (generate_modeline): ditto.
16118         (redisplay_frame): small gutter display optimization.
16119
16120         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16121
16122         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16123         gutters into account.
16124
16125         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16126         for window position and type.
16127
16128         * gutter.c (get_gutter_coords): fix for frame gutters.
16129         (update_frame_gutters): update frame geometry if the gutters have
16130         changed.
16131         (init_frame_gutters): record current gutter geometries.
16132
16133         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16134         var.
16135         (mswindows_widget_instantiate): ditto.
16136
16137         * frame.h (struct frame): add current_gutter_bounds.
16138
16139         * frame.c (change_frame_size_1): position window and minibuffer
16140         appropriately taking into account the frame gutters.
16141
16142         * frame-x.c: (x_initialize_frame_size): take into account the
16143         frame gutters.
16144
16145 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16146
16147         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16148
16149 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16150
16151         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16152
16153 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16154
16155         * file-coding.c (reset_decoding_stream): Clear previous
16156         detection state when autodetect.
16157
16158 2000-02-29  Didier Verna  <didier@xemacs.org>
16159
16160         * extents.c (set_extent_glyph_1): don't require extents to be
16161         attached.
16162
16163 2000-02-27  Andy Piper  <andy@xemacs.org>
16164
16165         * gutter.c (Fset_default_gutter_position): don't default left and
16166         right gutter visibility to t.
16167         (Fset_default_gutter_position): run
16168         default-gutter-position-changed-hook.
16169         (syms_of_gutter): add default-gutter-position-changed-hook.
16170
16171 2000-02-26  Andy Piper  <andy@xemacs.org>
16172
16173         * specifier.c (Fmake_specifier): add gutter references.
16174
16175         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16176
16177         * lisp.h: declare Fvalid_plist_p.
16178
16179         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16180         as changed.
16181         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16182         well as its visibility so that it gets reconstructed.
16183         (construct_window_gutter_spec): new function. Construct a string
16184         to be displayed in the gutter from a plist of strings. Take care
16185         to only use elements that are declared as visible.
16186         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16187         WINDOW_GUTTER.
16188         (gutter_validate): allow plists of strings in the specifier.
16189         (gutter_specs_changed): construct the real_gutter from the gutter
16190         specs using construct_window_gutter_spec.
16191         (gutter_visible_validate): gutter-visible is a new specifier type.
16192         (Fgutter_visible_specifier_p): new function for the new specifier.
16193         (syms_of_gutter): declare gutter-visible and
16194         Fgutter_visible_specifier_p.
16195         (specifier_type_create_gutter): intitalize new gutter-visible
16196         specifier.
16197         (reinit_specifier_type_create_gutter): ditto.
16198         (specifier_vars_of_gutter): use new specifier type for gutter
16199         visibility.
16200         (init_frame_gutters): construct real_gutter correctly.
16201         (Fgutter_specifier_p): beef up documentation.
16202         (Fgutter_size_specifier_p): ditto.
16203
16204         * winslots.h: add real_gutter slots.
16205
16206 2000-02-25  Andy Piper  <andy@xemacs.org>
16207
16208         * device-msw.c: Be kind to older cygwin versions. From Raymond
16209         Toy <toy@rtp.ericsson.se>.
16210
16211         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16212         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16213
16214 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16215
16216         * elhash.c (MARK_OBJ): Practice macro hygiene.
16217
16218 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16219
16220         * miscplay.c: s/__inline__/inline/g;
16221         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16222         (get_device_compdc): INLINE ==> static inline
16223         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16224         find -name '*.h' | \
16225         xargs global-replace \
16226         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16227
16228 2000-02-25  Andy Piper  <andy@xemacs.org>
16229
16230         * window.c (window_top_frame_gutter_height): new function.
16231         (window_top_window_gutter_height): ditto.
16232         (window_top_gutter_height): use them.
16233         (window_bottom_frame_gutter_height): new function.
16234         (window_bottom_window_gutter_height): ditto.
16235         (window_bottom_gutter_height): use them.
16236         (window_left_window_gutter_width): new function.
16237         (window_left_frame_gutter_width): ditto.
16238         (window_left_gutter_width): use them.
16239         (window_right_window_gutter_width): new function.
16240         (window_right_frame_gutter_width): ditto.
16241         (window_right_gutter_width): use them.
16242         (window_pixel_height): new function. calulate window pixel height
16243         with frame gutter involvement.
16244         (Fsplit_window): calculate new sizes taking frame gutters into
16245         account.
16246         (window_char_height_to_pixel_height): don't include frame gutters.
16247         (window_char_height): use window_pixel_height.
16248         (window_pixheight): rename from window_pixel_height.
16249         (change_window_height): use it.
16250         (window_pixel_height_to_char_height): don't include frame gutters.
16251         (window_char_width_to_pixel_width): ditto.
16252
16253 2000-02-25  Andy Piper  <andy@xemacs.org>
16254
16255         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16256         if it is.
16257
16258 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16259
16260         * alloc.c (staticpro):
16261         (staticpro_nodump):
16262         (dumpstruct):
16263         (dumpopaque):
16264         (pdump_wire):
16265         (pdump_wire_list):
16266         (compact_string_chars):
16267         (pdump_dump_wired):
16268         Convert:  if (foo) abort();  ==>  assert (! foo);
16269
16270         * eldap.c (Fldap_search_basic):
16271         (Fldap_add):
16272         (Fldap_modify):
16273         (Fldap_delete):
16274         Fix compiler warnings, and possible crashes if (random) return
16275         value were to be used.
16276
16277 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16278
16279         * device-msw.c: Workaround ResetDC failure.
16280
16281         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16282         applying a devmode.
16283
16284         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16285         (mswindows_text_width): Do not start printer page.
16286
16287         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16288
16289         * glyphs-msw.c: Added image methods to msprinter console and
16290         msprinter-specific image instantiation.
16291
16292 2000-02-20  Mike Alexander  <mta@arbortext.com>
16293
16294         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16295         to avoid crashes when selection-sets-clipboard is on
16296         (mswindows_own_selection): ditto
16297
16298 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16299
16300         * glyphs-msw.c:
16301         * redisplay-msw.c (get_frame_dc):
16302         (get_frame_compdc):
16303         * console-msw.h:
16304         * device-msw.c (mswindows_init_device):
16305         (mswindows_delete_device):
16306         (msprinter_init_device):
16307         (msprinter_delete_device):
16308         * frame-msw.c (mswindows_init_frame_1):
16309         (mswindows_delete_frame):
16310         (msprinter_init_frame_3):
16311         (msprinter_delete_frame): Move compatible DC to device object from
16312         frame object, for both mswindows and msprinter. Only one at a time
16313         is needed, it is a real waste to have one per frame!
16314
16315 2000-02-23  Andy Piper  <andy@xemacs.org>
16316
16317         * glyphs.c: add dynamic width and height elements.
16318         (image_instance_equal): ditto.
16319
16320         * glyphs-widget.c (widget_query_geometry): calculate width and
16321         height dynamically if required.
16322         (initialize_widget_image_instance): initialize dynamic dimensions.
16323         (widget_instantiate): pick-up dynamic dimensions.
16324
16325         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16326         dynamic determination. Add appropriate macros.
16327
16328         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16329         dimensions safe.
16330         (WINDOW_GUTTER_SIZE): ditto.
16331         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16332
16333         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16334         inline.
16335         (get_frame_dc): ditto.
16336
16337         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16338         here.
16339
16340 2000-02-23  Martin Buchholz <martin@xemacs.org>
16341
16342         * XEmacs 21.2.31 is released.
16343
16344 2000-02-22  Ben Wing <ben@xemacs.org>
16345
16346         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16347
16348 2000-02-22  Andy Piper  <andy@xemacs.org>
16349
16350         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16351
16352 2000-02-21  Mike Sperber <mike@xemacs.org>
16353
16354         * .dbxrc:
16355         * .gdbinit:
16356         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16357         variables.
16358
16359 2000-02-21  Mike Sperber <mike@xemacs.org>
16360
16361         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16362
16363 2000-02-21  Martin Buchholz <martin@xemacs.org>
16364
16365         * XEmacs 21.2.30 is released.
16366
16367 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16368
16369         Performance hacking.
16370         * *.c (syms_of_*):
16371         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16372         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16373         * emacs.c (main_1):
16374         * lisp.h (DEFUN):
16375         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16376         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16377         * symeval.h (DEFVAR_SYMVAL_FWD):
16378         * symbols.c (guts_of_unbound_marker):
16379         Make all c_readonly objects also lisp_readonly and marked for life.
16380         * lrecord.h (struct lrecord_implementation):
16381         Document flags better.
16382         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16383         * lrecord.h (DECLARE_LRECORD):
16384         * lrecord.h (XSETRECORD):
16385         * lrecord.h (RECORDP):
16386         * lrecord.h (RECORD_TYPEP):
16387         * lrecord.h (RECORD_MARKER): New.
16388         * lrecord.h (error_check_*):
16389         * lrecord.h (CONCHECK_NONRECORD):
16390         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16391         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16392         * lrecord.h (set_lheader_implementation):
16393         * lrecord.h (enum lrecord_type): New.
16394         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16395         * alloc.c (disksave_object_finalization_1):
16396         * alloc.c (mark_object):
16397         * alloc.c (lrecord_type_index):
16398         * alloc.c (tick_lcrecord_stats):
16399         * alloc.c (Fgarbage_collect):
16400         * alloc.c (init_alloc_once_early):
16401         * alloc.c (pdump_load):
16402         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16403         * alloc.c (lrecord_type_index): Delete.
16404         Make lisp object type indexes be constant.
16405           Makes (byte-compile) 5% faster.
16406         Put all marker functions into their own array.
16407           Makes (garbage-collect) 5% faster.
16408         Optimize SYMBOL_VALUE_MAGIC_P.
16409           Makes (byte-compile) 2-3% faster.
16410         * config.h.in (gc_checking_assert): New.
16411         * alloc.c: Use gc_checking_assert().
16412         * .dbxrc: Make compatible with new object type implementation.
16413         * .gdbinit: Make compatible with new object type implementation.
16414         * alloc.c: Delete all symbols defined only for debugging, such as
16415         Lisp_Type_Vector and lrecord_charset.
16416
16417 2000-02-21  Andy Piper  <andy@xemacs.org>
16418
16419         * gui-msw.c (Fmswindows_shell_execute): fix file location
16420         problems.
16421
16422         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16423         unshowing so that set_window_buffer doesn't undo
16424         kill_buffer_hook's hard work.
16425
16426         * glyphs-widget.c (tab_control_query_geometry): don't count the
16427         first item when calculating geometry.
16428
16429         * glyphs.c (map_subwindow): remove redundant code.
16430         (update_frame_subwindows): be more circumspect about when to
16431         update subwindows.
16432
16433         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16434         when items haven't changed. Update faces if faces have changed as
16435         well as just the widget face.
16436         (x_tab_control_update): Update faces if faces have changed as well
16437         as just the widget face.
16438
16439 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16440
16441         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16442         registration.
16443         (build_syscolor_string): Use mswindows_color_to_string to try to
16444         get a named color.
16445         (mswindows_device_system_metrics): Reverse the foreground and
16446         background colors so that they match the documentation.
16447
16448         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16449         they match the default Windows palette.
16450         (mswindows_color_to_string): New function.
16451
16452 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16453
16454         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16455
16456 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16457
16458         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16459         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16460
16461         * symbols.c (init_symbols_once_early): Removed obsolete
16462         DATA_SEG_BITS related kludge.
16463         (defvar_magic): Ditto.
16464
16465         * malloc.c: Removed obsolete DATA_SEG_BITS
16466         * ralloc.c: Ditto.
16467         * mem-limits.h: Ditto.
16468
16469         * Makefile.in.in: Removed obsolete HAVE_SHM
16470         * emacs.c: Ditto.
16471
16472 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16473
16474         *  device-msw.c (mswindows_delete_device): Free DDE string
16475         handles.
16476
16477 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16478
16479         * keymap.c (get_keyelt):
16480         * unexnt.c (unexec):
16481         * vm-limit.c (memory_warnings):
16482         * ntheap.c (recreate_heap):
16483         * ntheap.h (UNINIT_PTR):
16484         * select-msw.c (Fmswindows_get_clipboard):
16485         (Fmswindows_set_clipboard):
16486         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16487         * objects-msw.c:
16488         * menubar-msw.c (displayable_menu_item):
16489         * glyphs-msw.c:
16490         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16491         * sysdep.c (sys_subshell):
16492         * process-nt.c (nt_create_process):
16493         * nt.c (normalize_filename):
16494         (dostounix_filename):
16495         (unixtodos_filename):
16496         * ntproc.c (win32_executable_type):
16497         * ntplay.c (play_sound_data_1):
16498         (play_sound_file):
16499         * editfns.c (get_home_directory):
16500         * event-msw.c (struct winsock_stream):
16501         (mswindows_dde_callback):
16502         * device-msw.c (msprinter_init_device):
16503         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16504
16505         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16506         mswindows_clear_toolbar were swapped!
16507
16508         * objects-msw.c:(colormap_t):
16509         (fontmap_t):
16510         * emacs.c (struct standard_args): Fixed const jumble.
16511
16512         * glyphs-widget.c (update_widget): Fixed comparison notation.
16513
16514         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16515
16516         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16517         __declspec(noreturn) syntax.
16518
16519 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16520
16521         * eldap.c (Fldap_open):
16522         (Fldap_search_basic):
16523         (Fldap_add):
16524         (Fldap_modify):
16525         Use new coding system conversion macros.
16526
16527 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16528
16529         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16530
16531 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16532
16533         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16534         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16535
16536         * eldap.c (Qadd, Qreplace): New constant symbols
16537         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16538         interruptions by XEmacs signals
16539         Remove unnecessary calls to slow_down_interrupts and
16540         speed_up_interrupts
16541         (Fldap_search_basic): Renamed from Fldap_search_internal
16542         Added new optional parameter VERBOSE that triggers the
16543         display of progress messages
16544         Remove unnecessary calls to slow_down_interrupts and
16545         speed_up_interrupts
16546         LDAP result code analysis rewritten
16547         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16548         (syms_of_eldap): Define the new symbols and functions
16549
16550
16551 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16552
16553         * realpath.c: Determine PATH_MAX maximally portably.
16554
16555         * insdel.c (bytecount_to_charcount): Optimize.
16556         The function used to be optimized for entirely ASCII sequences.
16557         Now it is optimized for successive characters from the same
16558         charset.  This also wins big for _mostly_ ASCII sequences.
16559
16560         * fileio.c (Ffile_truename): convert return from realpath() using
16561         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16562         - Rewrite GCPROing slightly.
16563
16564         * sysdep.c (sys_open): Do filename conversion, like all other
16565         sys_* functions.  Fixes bug:
16566         (let ((file-name-coding-system 'iso-8859-2))
16567            (write-region x y latin2-name))
16568         ==> writes filename using internal encoding.
16569
16570 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16571
16572         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16573         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16574         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16575         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16576         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16577         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16578         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16579         (CONST_IF_NOT_DEBUG): Delete.
16580         * alloc.c (this_one_is_unmarkable): Delete.
16581         (mark_object): Don't check for this_one_is_unmarkable. Use the
16582         c_readonly flag instead.
16583         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16584
16585 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16586
16587         * event-msw.c (mswindows_drain_windows_queue):
16588         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16589         away redundant repaint events.
16590
16591 2000-02-17  Andy Piper  <andy@xemacs.org>
16592
16593         * redisplay.h: declare mark_redisplay_structs.
16594
16595         * redisplay.c (redisplay_window):
16596         (redisplay_frame): don't check subwindows_state_changed.
16597         (mark_redisplay): mark gutters here.
16598
16599         * glyphs.c: (instantiate_image_instantiator): always layout if we
16600         haven't done so already.
16601         (allocate_image_instance): don't mark as dirty.
16602         (update_subwindow): bind inhibit_quit.
16603
16604         * gutter.c (mark_gutters): new function.
16605
16606         * glyphs-x.c (x_update_widget): Always resize to get round a
16607         widget bug.
16608
16609         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16610         breaking absolutely everything.
16611
16612         * gutter.h: declare mark_gutters.
16613
16614 2000-02-16  Martin Buchholz <martin@xemacs.org>
16615
16616         * XEmacs 21.2.29 is released.
16617
16618 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16619
16620         * fns.c (size_bit_vector): Fix computation of the size.
16621
16622 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16623
16624         * *.[ch]: Change CONST to const globally.
16625         find -name '*.[ch]' | \
16626         xargs global-replace \
16627         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16628         - Remove vestigial references to CONST_IS_LOSING
16629
16630 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16631
16632         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16633         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16634         events instead of dispatching them directly.
16635         (mswindows_handle_paint): New function to do repainting.
16636         (mswindows_wnd_proc):
16637         (emacs_mswindows_handle_magic_event): Call above function.
16638
16639 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16640
16641         * objects-msw.c (mswindows_create_font_variant): Return the new
16642         font handle.
16643         (initialize_font_instance): Get font metrics from the underlined
16644         variant of the font to cope with the case where the underlined
16645         font has a bigger descent.
16646
16647 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16648
16649         * gui.c (gui_item_accelerator): Return the first underlined
16650         character in item name.
16651
16652 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16653
16654         * lisp.h: Added Qprinter.
16655
16656         * general.c (syms_of_general): Initialized it.
16657
16658         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16659         (get_frame_dc):
16660         (get_frame_compdc): Made inline.
16661
16662         * console.h (struct console_methods): Added eject_page method.
16663
16664         * frame.h: Added FRAME_DISPLAY_P and friends.
16665         Aligned backslahes in many macros in more readable fashion.
16666         Added page_number to struct frame, and an accessor macro
16667         for it.
16668
16669         * defice.h: Added DEVICE_DISPLAY_P and friends.
16670
16671         * device.c (Fdevice_printer_p): Used these.
16672
16673         * frame.c (allocate_frame_core): Initialize page number.
16674         (Fprint_job_page_number):
16675         (Fprint_job_eject_page): Implemented.
16676
16677         * frame-msw.c (msprinter_eject_page): Added method.
16678         (msprinter_start_page): Added.
16679
16680         * window.c (Fwindow_truncated_p): Fixed docstring.
16681         (Fwindow_last_line_visible_height): Implemented.
16682
16683 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16684
16685         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16686
16687 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16688
16689         * syntax.c (scan_words): Always advance at least one character.
16690
16691 2000-02-13  Andy Piper  <andy@xemacs.org>
16692
16693         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16694         to make sure the glyph is in the cachels.
16695
16696         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16697         global image instance flag.
16698         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16699         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16700
16701         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16702         (Fset_image_instance_property): mark layout as changed.
16703         (invalidate_glyph_geometry_maybe): mark layout as changed.
16704         (glyph_width): use new NEEDS_LAYOUT macro.
16705         (glyph_ascent): ditto.
16706         (glyph_descent): ditto.
16707         (glyph_height): ditto.
16708         (image_instance_layout): mark layout as clean after laying out.
16709         (update_subwindow): don't mark layout as clean here.
16710
16711         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16712         should no longer be needed.
16713
16714         * glyphs-x.c (x_update_widget): sanitize asserts.
16715         (x_finalize_image_instance): sanitize assignment to widgets.
16716
16717         * glyphs-widget.c (widget_instantiate): don't need to clear the
16718         layout flag here.
16719
16720 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16721
16722         * sysdep.c (getcwd): Use standard prototype.
16723         * sysdep.h (getcwd): Use standard prototype.
16724
16725         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16726         (sequence, start, end).
16727         Remove redundant type checking.
16728         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16729         view of `caller-protects') to avoid a crash where the real fix was
16730         found elsewhere.
16731
16732 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16733
16734         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16735
16736         * s/sol2.h: Remove feature macro initialization.
16737
16738         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16739         (vector_hash): New.  Code from internal_hash.
16740         * lrecord.h:
16741         Fix up allocation subsystem comments.
16742
16743         * config.h.in: Add __EXTENSIONS__ for Solaris.
16744
16745         * systime.h (EMACS_GETTIMEOFDAY): New.
16746         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16747         Remove Solaris-specific code.
16748         Use void* for the (ignored) second arg for gettimeofday().
16749
16750         * elhash.c (hash_table_hash): Implement it, finally.
16751         * elhash.c:  Use hashcode_t.
16752
16753         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16754         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16755
16756         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16757         * fns.c (size_bit_vector):
16758         * alloc.c (size_vector):
16759         (make_vector_internal):
16760         (make_bit_vector_internal):
16761         (sweep_bit_vectors_1):
16762         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16763
16764 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16765
16766         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16767         Include strings.h to avoid warnings for bzero and strcasecmp.
16768
16769 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16770
16771         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16772         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16773
16774         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16775         sequence.
16776
16777 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16778
16779         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16780         use a value field instead.
16781         (symbol_value_forward_forward): Use value field.
16782         (DEFVAR_SYMVAL_FWD): Use value field.
16783         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16784         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16785         (DEFVAR_CONST_INT): Ditto.
16786         (DEFVAR_BOOL): Ditto.
16787         (DEFVAR_CONST_BOOL): Ditto.
16788         (DEFVAR_INT_MAGIC): Ditto.
16789         (DEFVAR_BOOL_MAGIC): Ditto.
16790
16791         * symbols.c (guts_of_unbound_marker): Use value field.
16792         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16793         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16794
16795         * lisp.h: Declare dumpopaque and noninteractive1.
16796
16797         * alloc.c (dumpopaque): Added.
16798         (pdump_dump_opaquevec): Added.
16799         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16800         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16801         noninteractive.
16802
16803 2000-02-10  Andy Piper  <andy@xemacs.org>
16804
16805         * glyphs.c (image_instance_layout): if the size changes, mark it
16806         as such.
16807
16808         * redisplay-output.c (redisplay_output_layout): Update the
16809         subwindow here.
16810         (redisplay_output_subwindow): ditto.
16811
16812         * glyphs.c (update_subwindow): make sure we reset flags for
16813         layouts as well as everything else.
16814
16815         * glyphs-widget.c (layout_layout): don't need to set the instances
16816         dimensions here.
16817
16818 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16819
16820         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16821         not HAVE_DLOPEN, which is a lower-level thing.
16822
16823         * .cvsignore: Ignore gmon.out
16824
16825 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16826
16827         * .cvsignore: Ignore portable dumper xemacs.dmp file
16828
16829 2000-02-09  Andy Piper  <andy@xemacs.org>
16830
16831         * redisplay-output.c (redisplay_output_layout): be more clever
16832         about when we output based on the changed flags.
16833
16834         * glyphs.h (struct image_instantiator_methods): add update_method.
16835         (struct Lisp_Image_Instance): add changed flags. Declare new
16836         macros for manipulating them.
16837
16838         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16839         (image_instance_parent_glyph): find an image_instance's parent
16840         glyph or image_instance.
16841         (image_instance_layout): mark the size as changed.
16842         (set_image_instance_dirty_p): new function. mark an image
16843         instance, plus all of its parents, as dirty.
16844         (Fset_image_instance_property): use it.
16845         (Fglyph_animated_timeout_handler): use it.
16846         (update_subwindow): call update_widget and device methods for
16847         update_subwindow. Mark all changed flags as clean.
16848         (Fresize_subwindow): mark size as changed.
16849
16850         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16851         failures.
16852         (x_update_subwindow): only resize subwindows here.
16853         (x_update_widget): new function. Update all changed properties of
16854         a widget.
16855         (x_resize_subwindow): deleted.
16856         (x_widget_set_property): deleted.
16857         (x_progress_gauge_set_property): deleted.
16858         (x_progress_gauge_update): new function. Implement recorded
16859         changes.
16860         (x_tab_control_update): ditto.
16861         (x_tab_control_set_property): deleted.
16862         (console_type_create_glyphs_x): declare new functions.
16863         (image_instantiator_format_create_glyphs_x): ditto.
16864
16865         * glyphs-widget.c (widget_set_property): mark text changed.
16866         (update_widget): new function. Update properties of a widget.
16867         (widget_instantiate): for layouts make sure we set their
16868         children's parent correctly.
16869         (tab_control_set_property): new function. Record changes that will
16870         take place under redisplay's control.
16871         (progress_gauge_set_property): ditto.
16872         (image_instantiator_progress_guage): declare new functions.
16873         (image_instantiator_tab_control): ditto.
16874
16875         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16876         now.
16877         (mswindows_update_widget): new function. Update all properties on
16878         a widget that have changed.
16879         (mswindows_button_update): new function. Update a button's set
16880         state.
16881         (mswindows_tab_control_update): new function. Update the items in
16882         a tab.
16883         (mswindows_tab_control_set_property): deleted.
16884         (mswindows_progress_gauge_update): new function. Update the
16885         progress gauge's progress.
16886         (mswindows_widget_set_property): deleted. This is all done
16887         asynchronously now.
16888         (mswindows_progress_gauge_set_property): ditto.
16889         (console_type_create_glyphs_mswindows): declare new methods.
16890         (image_instantiator_format_create_glyphs_mswindows): ditto.
16891
16892         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16893         (msprinter_set_frame_properties): ditto.
16894
16895         * console.h (struct console_methods): Add update_widget_method.
16896
16897 2000-02-09  Andy Piper  <andy@xemacs.org>
16898
16899         * gui-msw.c (Fmswindows_shell_execute): Make
16900         mswindows-shell-execute industrial strength.
16901
16902 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16903
16904         * lrecord.h: Make macro argument `props' match member function `plist'.
16905         * fns.c (Fget):
16906         * fns.c (Fput):
16907         * fns.c (Fremprop):
16908         * fns.c (Fobject_plist):
16909         * alloc.c:
16910         * symbols.c:
16911         Object property list frobbing cleanup.
16912         - Allow any lisp object (compared with `eq'), not just symbols, as
16913           keys in object plists.
16914         - Move symbol plist frobbing into symbols.c, where it belongs.
16915         - Move string plist frobbing into alloc.c, where it belongs.
16916         - Everything's an lrecord now, so no need to test for symbolp, etc.
16917         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16918
16919         * extents.c: Reorder code to remove declarations.
16920
16921         * frame.h (store_in_alist): Remove useless declaration.
16922
16923 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16924
16925         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16926         * config.h.in: Add HAVE_XCONVERTCASE.
16927
16928 2000-02-07  Andy Piper  <andy@xemacs.org>
16929
16930         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16931         it breaks many things.
16932
16933 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16934
16935         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16936         actually can start a common comment type.
16937         * src/syntax.h (SYNTAX_END_P): ditto for end.
16938
16939 2000-02-07  Martin Buchholz <martin@xemacs.org>
16940
16941         * XEmacs 21.2.28 is released.
16942
16943 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16944
16945         * event-Xt.c (x_keysym_to_character): New.
16946         (maybe_define_x_key_as_self_inserting_character): New.
16947         (x_has_keysym): New.
16948         Auto-define all keys on the keyboard as self-insert-key.
16949
16950 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16951
16952         * menubar.c (vars_of_menubar): A small code simplification.
16953
16954         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16955
16956         * ExternalShell.c:
16957         * ExternalClient.c:
16958         * EmacsShell-sub.c:
16959         * EmacsManager.c:
16960         * EmacsFrame.c:
16961         Use consistent style for specifying X resources.
16962
16963         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16964         This makes (dontusethis-set-symbol-value-handler) actually usable.
16965
16966         * lrecord.h (lrecord_decription_type):
16967         * alloc.c (pdump_register_sub):
16968         (pdump_dump_data):
16969         (pdump_reloc_one):
16970         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16971         Comply with XEmacs coding style.
16972         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16973         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16974
16975         * keymap.c (Faccessible_keymaps):
16976         Make (accessible-keymaps map "\C-h") do the Right Thing.
16977         Make (accessible-keymaps map []) do the Right Thing.
16978         Make (accessible-keymaps map "") do the Right Thing.
16979         (check_keymap_definition_loop): New function.
16980         (keymap_store_internal): Keep luser from shooting self in foot,
16981           via (define-key ctl-x-4-map "p" global-map).
16982         Remove fullness slot from struct Lisp_Keymap, since hash tables
16983         are now reliable.
16984         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16985
16986 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16987
16988         * redisplay.c (init_redisplay): Fix small memory leak.
16989         * elhash.h:
16990         * elhash.c (pdump_reorganize_hash_table):
16991         Rename from reorganize_hash_table. Change prototype.
16992         Reuse the original memory for hentries.  Save 100k.
16993         * alloc.c (PDUMP_READ): new macro.
16994         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16995         * alloc.c: No need to #ifndef before #undef.
16996
16997         * print.c: Allow debug_print() to print readably by modifying
16998         debug_print_readably.  Use consistent variable names.
16999
17000         * .dbxrc: Try to get things to work even if stopped in a function
17001         without source available by explicitly specifying source files.
17002 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17003
17004         * unexnt.c (_start): Removed bogus code which caused loading heap
17005         from differrent executable file.
17006         Removed bogus assignment to _fmode, which caused inconsistencies.
17007
17008 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17009
17010         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17011         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17012         Do not preliminary `#define signal sigset'.
17013
17014         * systime.h: Do not prototype environ on windows nt and cygwin,
17015         this conflicts with system header.
17016
17017         * syssignal.h: Use correct define for WINDOWSNT
17018
17019         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17020         with system header.
17021
17022         * sysdep.c (near start of file): Fixed commentary and rearranged
17023         ifdefs in readable order.
17024         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17025         (start_of_text):
17026         (end_of_text):
17027         (end_of_data): Do not compile in if using PDUMP.
17028
17029         * symsinit.h: Prototyped vars_of_nt().
17030
17031         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17032         (find_child_console): Use it.
17033         (sys_kill): Use it.
17034
17035         * ntheap.h: Do not extern os_subtype.
17036
17037         * ntheap.c (cache_system_info): Do not cache unneeded:
17038         nt_major_version, nt_minor_version and os_subtype.
17039         (recreate_heap): Do not compile in when PDUMPing.
17040
17041         * nt.c (geteuid and friends): Use the new varibale
17042         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17043         (init_user_info): Removed the above mentioned hackery.
17044         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17045         stat has been fixed in the C runtime.
17046         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17047
17048         * file-coding.c (struct file_coding_dump): Do not define
17049         ucs_to_mule_table in the struct if not MULE.
17050         (struct struct lrecord_description fcd_description_1): Do not dump
17051         the above.
17052
17053         * emacs.c (main_1): Call vars_of_nt().
17054         (right before Fdump_emacs_data): Don't need lastfile if using both
17055         portabe dumper and system malloc.
17056
17057         * alloc.c (Fmemory_limit): Conditionalized out.
17058         (pdump): Use OPEN_BINARY for the portable dump file.
17059         (pdump_load): Ditto.
17060
17061 2000-02-02  Mike Alexander  <mta@arbortext.com>
17062
17063         * nt.c (convert_time): Set tm_isdst before calling mktime and
17064         avoid calling it at all if the compiler supports 64 bit integers.
17065         Also initialize utc_base_ft before using it.
17066
17067 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17068
17069         * frame.c (change_frame_size_1): Take f->internal_border_width
17070         into consideration when calculating the width of the frame.
17071
17072 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17073
17074         * window.c (frame_min_height):
17075         (frame_size_valid_p):
17076         (frame_pixsize_valid_p): Added.
17077         (check_frame_size): Generalized.
17078
17079         * window.h: Prototyped the above.
17080
17081         * lisp.h:
17082         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17083         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17084         Deleted Vwin32_* and Vbinary_process_* unused variables.
17085
17086         * device-msw.c (msprinter_init_device): Do not get printer font
17087         list; Added DEVMODE functions.
17088
17089         * frame-msw.c: Added lots of printer code.
17090
17091         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17092         general.c.
17093
17094         * console-msw.h: Added more msprinter device private slots.
17095
17096 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17097
17098         * event-msw.c (key_needs_default_processing_p): Added.
17099         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17100
17101 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17102
17103         * glyphs.c (image_instance_layout): Mark image instance as clean
17104         after layout.
17105         (glyph_dirty_p): Removed redundant function.
17106         (invalidate_glyph_geometry_maybe): Added.
17107         (update_glyph_cachel_data): Call it.
17108
17109         * glyphs.h: Prototyped it.
17110
17111         * redisplay.c (add_glyph_rune): Call it.
17112         (redisplay_window): Reset glyphs cachels when frame faces have
17113         changed, thus forcing recomputation of built-in border glyphs.
17114
17115 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17116
17117         * Makefile.in.in: Make portable dumper and purify play well together.
17118         Add imperfect, but better than nothing, support for pdump.
17119         Remove xemacs.dmp when temacs is re-generated.
17120         Don't ignore errors when dumping xemacs.
17121
17122         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17123
17124 2000-01-28  Andy Piper  <andy@xemacs.org>
17125
17126         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17127         (setup_normal_frame): ditto.
17128         (setup_frame_without_minibuffer): ditto.
17129         (setup_minibuffer_frame): ditto.
17130         (delete_frame_internal): ditto.
17131         (Fmake_frame_invisible): ditto.
17132         (Ficonify_frame): ditto.
17133
17134         * window.h: change Fset_window_buffer signature.
17135
17136         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17137         (Fset_window_buffer): allow recording of buffer if the window is
17138         the selected window.
17139         (window_loop): Use new Fset_window signature.
17140
17141 2000-01-23  Daniel Pittman  <daniel@danann.net>
17142
17143         * config.h.in: Added template for `HAVE_ATHENA_3D'
17144
17145 2000-01-29  Andy Piper  <andy@xemacs.org>
17146
17147         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17148
17149         * gutter.c (output_gutter): Don't output if the window isn't live.
17150
17151 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17152
17153         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17154         of 01/12/00: Moved SetFocus back here where it belongs.
17155
17156 2000-01-23  Andy Piper  <andy@xemacs.org>
17157
17158         * s/cygwin32.h: declare printer things.
17159
17160 2000-01-26  Andy Piper  <andy@xemacs.org>
17161
17162         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17163         Alexander.
17164
17165 2000-01-24  Andy Piper  <andy@xemacs.org>
17166
17167         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17168         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17169
17170         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17171
17172         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17173
17174         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17175
17176         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17177         (mswindows_output_display_block): Avoid local shadows.
17178
17179         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17180         (mswindows_enqueue_mouse_button_event): ditto.
17181         (mswindows_handle_gui_wm_command): remove declaration.
17182
17183         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17184         warnings.
17185
17186         * console-msw.h: Avoid shadows.
17187         (mswindows_get_toolbar_button_text):
17188         (emacs_mswindows_create_stream_pair):
17189         (emacs_mswindows_delete_stream_pair):
17190         (mswindows_handle_toolbar_wm_command): declare.
17191
17192         * device-msw.c (build_syscolor_string): Avoid shadows.
17193
17194 2000-01-23  Andy Piper  <andy@xemacs.org>
17195
17196         * glyphs-widget.c (widget_instantiate): reverse the items for
17197         layouts so that children are in the expected order.
17198
17199 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17200
17201         * ralloc.c: safe_bcopy ==> memmove
17202         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17203         * s/msdos.h: Remove BCOPY macros.
17204         * insdel.c (gap_right): Remove BCOPY conditional code.
17205         * insdel.c (gap_left): Remove BCOPY conditional code.
17206         XEmacs demands a working ANSI C compiler - hence memmove.
17207
17208         * regex.c (regex_compile): Remove accidental use of trigraphs.
17209
17210 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17211
17212         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17213         event timestamp.
17214
17215 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17216
17217         * event-msw.c (mswindows_drain_windows_queue): Added the
17218         parameter.
17219         (mswindows_need_event): Commented the call to
17220         mswindows_drain_windows_queue().
17221         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17222         only.
17223
17224         * console-msw.h: Moved a few function prototypes here from
17225         event-msw.c.
17226
17227         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17228         parameter from unsigned short to unsigned long.
17229         (Fmswindows_shell_execute): Added return value.
17230
17231 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17232
17233         * sysdep.c (init_system_name):
17234           process-unix.c (unix_canonicalized_host_name):
17235         Don't call freeaddrinfo() if getaddrinfo() fails.
17236
17237         * process-unix.c (unix_open_unix_network_stream):
17238         Moved the code to get a port # into address loop.
17239
17240 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17241
17242         * buffer.c (reinit_vars_of_buffer):
17243         The right place to initialize conversion_in_dynarr and
17244         conversion_out_dynarr.
17245
17246         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17247
17248         * process-unix.c (unix_canonicalize_host_name): Muleize.
17249         (unix_open_network_stream): Muleize.
17250
17251         * buffer.h: Fix up prototypes for ralloc.c functions.
17252
17253 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17254         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17255         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17256                 instead of gethostbyname()
17257         * process-unix.c: In unix_canonicalize_host_name() and
17258                 unix_open_network_stream(), add code to use getaddrinfo()
17259                 instead of gethostbyname().
17260
17261 2000-01-27  Daniel Pittman <daniel@danann.net>
17262
17263         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17264         libs when built with flat Athena.
17265
17266 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17267
17268         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17269         Use coding standards for function prototypes.
17270
17271 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17272
17273         * dialog-msw.c (push_lisp_string_as_unicode):
17274         * doc.c (unparesseuxify_doc_string):
17275         * dired.c (Fuser_name_completion_1):
17276         * dired.c (Fuser_name_all_completions):
17277         * dired.c (free_user_cache):
17278         * dired.c (user_name_completion):
17279         * console-x.c (get_display_arg_connection):
17280         * minibuf.c (clear_echo_area_internal):
17281         * minibuf.c (echo_area_append):
17282         * eldap.c (Fldap_open):
17283         * eldap.c (Fldap_search_internal):
17284         * frame-x.c (x_set_frame_text_value):
17285         * frame-x.c (x_set_frame_properties):
17286         * frame-x.c (x_create_widgets):
17287         * redisplay-tty.c (term_get_fkeys_1):
17288         * objects-x.c (x_parse_nearest_color):
17289         * objects-x.c (x_valid_color_name_p):
17290         * objects-x.c (x_initialize_font_instance):
17291         * objects-x.c (x_list_fonts):
17292         * objects-x.c (x_find_charset_font):
17293         * tooltalk.c (Fadd_tooltalk_message_arg):
17294         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17295         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17296         * process-unix.c (unix_create_process):
17297         * ntproc.c (sys_spawnve):
17298         * sound.c (Fplay_sound_file):
17299         * sound.c (Fplay_sound):
17300         * buffer.c (init_initial_directory):
17301         * buffer.c (init_buffer):
17302         * editfns.c (init_editfns):
17303         * editfns.c (Ftemp_directory):
17304         * editfns.c (Fuser_full_name):
17305         * editfns.c (uncache_home_directory):
17306         * editfns.c (get_home_directory):
17307         * editfns.c (Fuser_home_directory):
17308         * editfns.c (Fformat_time_string):
17309         * editfns.c (Fcurrent_time_string):
17310         * gui-x.c (button_item_to_widget_value):
17311         * database.c (Fopen_database):
17312         * event-Xt.c (x_to_emacs_keysym):
17313         * event-Xt.c (x_event_to_emacs_event):
17314         * event-Xt.c (describe_event_window):
17315         * event-msw.c (mswindows_wnd_proc):
17316         * glyphs-eimage.c (jpeg_instantiate):
17317         * glyphs-eimage.c (gif_instantiate):
17318         * glyphs-eimage.c (png_instantiate):
17319         * glyphs-eimage.c (tiff_instantiate):
17320         * glyphs-x.c (xbm_instantiate_1):
17321         * glyphs-x.c (x_xbm_instantiate):
17322         * glyphs-x.c (x_xface_instantiate):
17323         * glyphs-x.c (autodetect_instantiate):
17324         * glyphs-x.c (cursor_font_instantiate):
17325         * glyphs-x.c (x_widget_instantiate):
17326         * glyphs-x.c (x_widget_set_property):
17327         * glyphs-x.c (x_widget_property):
17328         * glyphs-x.c (BUILD_GLYPH_INST):
17329         * print.c (write_string_to_stdio_stream):
17330         * print.c (output_string):
17331         * print.c (Falternate_debugging_output):
17332         * print.c (Fexternal_debugging_output):
17333         * glyphs-msw.c (extract_xpm_color_names):
17334         * glyphs-msw.c (mswindows_xpm_instantiate):
17335         * glyphs-msw.c (bmp_instantiate):
17336         * glyphs-msw.c (resource_name_to_resource):
17337         * glyphs-msw.c (mswindows_resource_instantiate):
17338         * glyphs-msw.c (xbm_instantiate_1):
17339         * glyphs-msw.c (mswindows_xbm_instantiate):
17340         * glyphs-msw.c (mswindows_xface_instantiate):
17341         * glyphs-msw.c (mswindows_widget_instantiate):
17342         * glyphs-msw.c (add_tree_item):
17343         * glyphs-msw.c (add_tab_item):
17344         * glyphs-msw.c (mswindows_combo_box_instantiate):
17345         * glyphs-msw.c (mswindows_widget_property):
17346         * glyphs-msw.c (mswindows_combo_box_property):
17347         * glyphs-msw.c (mswindows_widget_set_property):
17348         * console.c (stuff_buffered_input):
17349         * objects-msw.c (mswindows_initialize_color_instance):
17350         * objects-msw.c (mswindows_valid_color_name_p):
17351         * objects-msw.c (mswindows_list_fonts):
17352         * objects-msw.c (mswindows_font_instance_truename):
17353         * bytecode.c (optimize_compiled_function):
17354         * select-x.c (symbol_to_x_atom):
17355         * select-x.c (x_atom_to_symbol):
17356         * select-x.c (hack_motif_clipboard_selection):
17357         * select-x.c (selection_data_to_lisp_data):
17358         * select-x.c (lisp_data_to_selection_data):
17359         * select-x.c (Fx_get_cutbuffer_internal):
17360         * select-x.c (Fx_store_cutbuffer_internal):
17361         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17362         * buffer.h (TO_INTERNAL_FORMAT): New function.
17363         * emacs.c (make_arg_list_1):
17364         * emacs.c (make_argc_argv):
17365         * emacs.c (main_1):
17366         * emacs.c (Fdump_emacs):
17367         * emacs.c (split_string_by_emchar_1):
17368         * file-coding.h:
17369         * lisp.h:
17370         * lstream.h:
17371         * symsinit.h:
17372         * device-x.c (x_init_device):
17373         * device-x.c (Fx_valid_keysym_name_p):
17374         * device-x.c (Fx_get_font_path):
17375         * device-x.c (Fx_set_font_path):
17376         * glyphs.c (bitmap_to_lisp_data):
17377         * glyphs.c (pixmap_to_lisp_data):
17378         * alloc.c (make_ext_string): Use coding system arguments.  Update
17379         all callers.
17380         * alloc.c (build_string):
17381         * callproc.c (child_setup):
17382         * callproc.c (init_callproc):
17383         * fileio.c (lisp_strerror):
17384         * fileio.c (directory_file_name):
17385         * fileio.c (Fexpand_file_name):
17386         * fileio.c (Ffile_truename):
17387         * fileio.c (Fsysnetunam):
17388         * fileio.c (Fdo_auto_save):
17389         * sysdep.c (sys_readdir):
17390         * tests.c: New file.  Allow adding C tests.
17391         Replace GET_* macros with a more comprehensible and flexible
17392         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17393         Modify all calls.
17394         Any coding system can be used to do format conversion.
17395         Eliminate enum external_data_format.
17396         Eliminate convert_to_external_format.
17397         Eliminate convert_to_internal_format.
17398         Make sure file-name, keyboard, terminal, and ctext are always
17399         defined as coding systems or aliases.  Make
17400         file-name-coding-system, terminal-coding-system, and
17401         keyboard-coding-system magical variables that are equivalent to
17402         defining the corresponding coding system aliases.
17403
17404         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17405         * file-coding.c (Fcoding_system_alias_p): New function.
17406         * file-coding.c (Fcoding_system_aliasee): New function.
17407         * file-coding.c (append_suffix_to_symbol): New function.
17408         * file-coding.c (dangling_coding_system_alias_p): New function.
17409         * file-coding.c (Ffind_coding_system):
17410         * file-coding.c (Fcopy_coding_system):
17411         * file-coding.c (encode_coding_no_conversion):
17412         * file-coding.c (syms_of_file_coding):
17413         * file-coding.c (vars_of_file_coding):
17414         Rewrite coding system alias code.
17415         Allow nested aliases, like symbolic links.
17416         Allow redefinition of coding system aliases.
17417         Prevent existence of dangling coding system aliases.
17418
17419         * dired.c (Fuser_name_completion_1):
17420         * dired.c (Fuser_name_all_completions):
17421         A crash would happen if user did QUIT in the middle of building
17422         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17423
17424         * lisp.h:
17425         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17426
17427         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17428         an unsigned char *.  Update all callers.
17429
17430 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17431
17432         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17433
17434 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17435
17436         * elhash.c (hentry_description): Use more portable definition.
17437         (resize_hash_table): Initialize new hentries using
17438         xnew_array_and_zero, thereby simplifying the code.
17439
17440         * mule-charset.c (make_charset): Make sure entire object is
17441         initialized, to avoid Purify warnings.
17442
17443         * alloc.c (resize_string): Fix unlikely crash with big strings.
17444
17445 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17446
17447         * realpath.c (xrealpath):
17448         Don't call getwd().
17449
17450 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17451
17452         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17453
17454 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17455
17456         * unexelfsgi.c (unexec): Change the way we decide which segment
17457         should be extended.
17458
17459         Assumption that .bss section should be outside the PT_LOADable
17460         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17461         it's present) is inside the 'data' segment. This would fail the
17462         test which was used to find a segment to grow and cover new
17463         heap. Instead of this assumption, I created another one - on IRIX
17464         the segment to grow should start below .bss and it's address
17465         should extent above the end of .bss. Once this segment is
17466         identified, it's grown to accommodate the new heap and new
17467         zero-length .bss section is added at the end of .data2.
17468
17469 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17470
17471         * eval.c (Feval): Wrong number of arguments should use original
17472         function, not the indirect_function version of it.
17473
17474 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17475
17476         * glyphs-x.c (x_button_instantiate): Don't add image if
17477         it is not a pixmap.
17478         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17479         is relative.
17480
17481 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17482
17483         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17484         declaration.
17485         (DEFVAR_INT_MAGIC): Ditto.
17486         (DEFVAR_BOOL_MAGIC): Ditto.
17487         * glyphs.h: Reindent backslash.
17488
17489 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17490
17491         * glyphs-widget.c (layout_query_geometry):
17492         (layout_layout): Use correct types for gheight, gwidth.
17493
17494 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17495
17496         * EmacsManager.c (QueryGeometry): Purified.
17497
17498 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17499
17500         * alloc.c (make_float): Make sure entire object is initialized, to
17501         avoid Purify warnings.
17502         (pdump_register_sub): Remove useless assignment.
17503         (pdump): Use xmalloc, not malloc.
17504         (pdump_load): Use xmalloc, not malloc.
17505
17506 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17507
17508         * callproc.c:
17509         * dired-msw.c:
17510         * fileio.c:
17511         * process-nt.c:
17512         * redisplay-msw.c:
17513         * sysdep.c: Removed redundant #include <windows.h>
17514
17515 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17516
17517         * frame.c (delete_frame_internal): Do not delete device when its
17518         implementation so declares.
17519         (delete_frame_internal): Set device selected frame to nil when
17520         last frame goes away.
17521
17522         * device-msw.c (msprinter_device_system_metrics): Implemented.
17523         (mswindows_device_system_metrics): Added 'device-dpi property.
17524
17525         * device.c: (Fdevice_printer_p): Added.
17526         Added 'offset-workspace device metric.
17527
17528         * console.h (device_metrics): Declared DM_offset_workspace.
17529
17530 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17531
17532         * fileio.c (Ffile_truename): Remove pointless and confusing
17533         initialization of elen.
17534
17535         * glyphs-widget.c: Compiler warning fixes.
17536
17537 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17538
17539         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17540         instead of a Lisp_Object as argument to make it consistent with
17541         the other LIVE_P macros.
17542         (CHECK_LIVE_PROCESS): New macro.
17543
17544         * process.c: Declare Qprocess_live_p.
17545         (Fprocess_live_p): New function.
17546         (create_process): Use PROCESS_LIVE_P.
17547         (read_process_output): Ditto.
17548         (set_process_filter): Ditto.
17549         (Fdelete_process): Ditto.
17550         (kill_buffer_processes): Ditto
17551         (process_send_signal): Use CHECK_LIVE_PROCESS.
17552         (Fprocess_input_coding_system): Check whether process is still
17553         alive (fix PR#1061).
17554         (Fprocess_output_coding_system): Ditto.
17555         (Fprocess_coding_system): Ditto.
17556         (Fset_process_input_coding_system): Ditto.
17557         (Fset_process_output_coding_system): Ditto.
17558
17559 2000-01-23  Andy Piper  <andy@xemacs.org>
17560
17561         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17562         layout and widget.
17563
17564         * glyphs.c (mark_image_instance): take into account changed
17565         image_instance format.
17566         (image_instance_equal): ditto.
17567         (image_instance_hash): ditto.
17568
17569         * glyphs-widget.c (widget_instantiate): Incorporate layout
17570         instantiation here. Delay layout of the layout until later.
17571         (layout_instantiate): deleted.
17572         (layout_query_geometry): new function. get the geometry of a
17573         layout.
17574         (layout_layout): layout a layout dynamically.
17575         (image_instantiator_widget): New function - splitting up
17576         image_instantiator_format_create_glyphs_widget for netwinder
17577         compilation.
17578         (image_instantiator_buttons):
17579         (image_instantiator_edit_fields):
17580         (image_instantiator_combo_box):
17581         (image_instantiator_scrollbar):
17582         (image_instantiator_progress_guage):
17583         (image_instantiator_tree_view):
17584         (image_instantiator_tab_control):
17585         (image_instantiator_labels):
17586         (image_instantiator_layout): ditto.
17587         (image_instantiator_format_create_glyphs_widget): Call preceding
17588         functions.
17589
17590 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17591
17592         * process.c (Fset_process_coding_system):
17593         * device-x.c (Fx_keysym_hash_table):
17594         Docstring fixes.
17595
17596         * lstream.c (Lstream_write): Return documented value, not 0.
17597
17598         * fileio.c (directory_file_name):
17599         (Fsubstitute_in_file_name):
17600         (Fsubstitute_insert_file_contents_internal):
17601         (Fwrite_region_internal):
17602         * emacs.c:
17603         * sysdep.c:
17604         * getloadavg.c:
17605         * systty.h:
17606         Remove vestigial APOLLO-conditional code.
17607
17608 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17609
17610         * getpagesize.h: Add guard macros.
17611         * libsst.h: Add guard macros.
17612         * libst.h: Add guard macros.
17613         * line-number.h: Add guard macros.
17614         * ndir.h: Add guard macros.
17615         * sysfloat.h: Add guard macros.
17616         * sysfile.h: Add guard macros.
17617         * sysproc.h: Add guard macros.
17618         * syswait.h: Add guard macros.
17619         * xintrinsic.h: Add guard macros.
17620         * xintrinsicp.h: Add guard macros.
17621         * xmmanager.h: Add guard macros.
17622         * xmmanagerp.h: Add guard macros.
17623         * xmprimitive.h: Add guard macros.
17624         * xmu.h: Add guard macros.
17625         * gpmevent.h: Add copyright statement. Add guard macros.
17626         * miscplay.h: Add guard macros.
17627         * *.h: Use consistent C-standards-approved guard macro names.
17628
17629         * opaque.c (make_opaque): Switch parameter order.
17630         * opaque.h (make_opaque): Switch parameter order.
17631         Update all callers.
17632         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17633
17634         * config.h.in (type_checking_assert): Added.
17635         (bufpos_checking_assert): Added.
17636
17637 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17638
17639         * alloc.c: Harmless pdump changes.
17640         - Use countof().
17641         - spell alignment correctly.
17642         * sysdep.c: Use countof()
17643
17644 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17645
17646         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17647         initially_selected_for_input() console method, default to 0.
17648         (semi_canonicalize_console_connection): Try to delegate to
17649         canonicalize_console_connection if no such console method.
17650         (canonicalize_console_connection): Vice versa.
17651         (print_console): Do not print nil connection.
17652
17653         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17654         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17655         (XDEVIMPF_FRAMELESS_OK): Added.
17656         (CONSOLE_INHERITS_METHOD): Added.
17657
17658         * console-msw.c (mswindows_canonicalize_console_connection):
17659         Added.
17660         (mswindows_canonicalize_device_connection): Added.
17661
17662         * console-msw.h (struct msprinter_device): Added this struct and
17663         accessor macros.
17664         (mswindows_device): Made fontlist a lisp object.
17665
17666         * device.c (semi_canonicalize_device_connection):  Try to delegate
17667         to canonicalize_device_connection if no such console method.
17668         (canonicalize_device_connection): Vice versa.
17669         (print_device): Do not print nil connection.
17670
17671         * device-msw.c (mswindows_init_device): Call InitCommonControls
17672         when have widgets.
17673         (mswindows_delete_device): Removed fontlist deallocation.
17674         (mswindows_mark_device): Added.
17675
17676         * events.c (event_equal): Added abort() at unreached code.
17677         (event_hash): Ditto.
17678
17679         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17680         fallback tags of Windows devices.
17681
17682         * general.c (syms_of_general): Initialized Qmsprinter.
17683
17684         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17685         of fallback tags of Windows devices.
17686
17687         * lisp.h: Declared Qmsprinter.
17688
17689         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17690         of strings.
17691         (mswindows_list_fonts): Ditto.
17692         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17693         that it can be used by both mswindows and msprinter devices.
17694         (initialize_font_instance): Added.
17695         (mswindows_initialize_font_instance): Use it.
17696         (msprinter_initialize_font_instance): Added.
17697
17698         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17699         and implementation flags check.
17700         (redisplay_without_hooks): Changed the call to the above.
17701         (Fredraw_device): Ditto.
17702         (Fredisplay_device): Ditto.
17703
17704         * redisplay-msw.c (get_frame_dc): Implemented.
17705         (get_frame_compdc): Implemented.
17706         (many functions): Use the two functions above to get device
17707         contexts, ether for a window or a printer.
17708
17709 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17710
17711         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17712         initialization here.
17713         (init_symbols_once_early): Call it.
17714         * emacs.c (main_1): Call it.
17715         * symsinit.h: Declare it.
17716
17717 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17718
17719         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17720         Lisp_Object.
17721         (pdump_backtrace): Ditto.
17722         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17723         (pdump_get_entry): Abort if trying to register a null pointer.
17724         (pdump_dump_data): Cleanup types when relocating.
17725         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17726         (pdump_dump_rtables): Remove bad casts.
17727         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17728         Lisp_Object instead of a EMACS_INT for the hashtable
17729         reorganization.
17730
17731 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17732
17733         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17734
17735         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17736
17737         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17738
17739         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17740
17741 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17742
17743         * faces.h (FACE_STRIKETHRU_P): Added.
17744
17745         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17746         of font variants.
17747
17748         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17749         (mswindows_set_dc_font): New function, aware of font variants,
17750         separated from mswindows_update_dc.
17751
17752         * objects-msw.h (struct mswindows_font_instance_data): Added
17753         definition.
17754
17755         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17756         cached fonts and the data structure.
17757         (mswindows_initialize_font_instance): Added creation of font data
17758         structure.
17759         (mswindows_print_font_instance): Print at least something.
17760         (mswindows_create_font_variant): Implemented.
17761         (mswindows_get_hfont): Implemented.
17762
17763 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17764
17765         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17766         prototyping problem with msvc.
17767
17768         * emacs.c (main_1): added syms_of_gui_mswindows() call
17769
17770         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17771         syms_of_gui_mswindows() function
17772
17773         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17774
17775 2000-01-18  Martin Buchholz <martin@xemacs.org>
17776
17777         * XEmacs 21.2.27 is released.
17778
17779 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17780
17781         * glyphs-eimage.c (struct tiff_error_struct):
17782         (tiff_error_func):
17783         (tiff_warning_func):
17784         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17785
17786         * unexmips.c:
17787         * unexhp9k3.c:
17788         * unexfreebsd.c:
17789         * unexec.c: Remove vestigial Lucid C code.
17790         * unexalpha.c:
17791         * unexaix.c:
17792         * termcap.c:
17793         * libsst.c: Ansify.
17794         Remove declarations of errno and strerror().
17795
17796         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17797
17798         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17799
17800 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17801
17802         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17803         Optimize.
17804
17805 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17806
17807         * md5.c:
17808         * file-coding.c:
17809         * file-coding.h:
17810         Change enum eol_type to eol_type_t.
17811
17812 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17813
17814         * gui.c (get_gui_callback): Check cons before accessing car.
17815
17816 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17817
17818         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17819         (XSETSPECIFIER_TYPE): Ditto.
17820
17821 2000-01-17  Didier Verna  <didier@xemacs.org>
17822
17823         * redisplay.c (generate_fstring_runes): compute string size in
17824         characters, not bytes.
17825
17826 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17827
17828         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17829
17830 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17831
17832         * print.c (print_error_message): Call print_prepare().
17833
17834 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17835
17836         * .dbxrc: Renamed from dbxrc.
17837
17838         * events.c (event_to_character):
17839         Use `assert (foo)' instead of `if (!foo) abort()'
17840
17841         * .gdbinit (xtype): Add documentation.
17842         * .gdbinit (check-temacs): New function.
17843         * .gdbinit (check-xemacs): New function.
17844         * dbxrc (check-xemacs): New function.
17845         * dbxrc (check-xemacs): New function.
17846
17847 2000-01-14  Andy Piper  <andy@xemacs.org>
17848
17849         * glyphs-widget.c (widget_query_geometry): Make sure that we
17850         calculate default dimensions correctly.
17851
17852 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17853
17854         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17855
17856         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17857         pdump_wire'd variable.
17858
17859         * emacs.c: (main_1): Conditionalized calls to
17860         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17861
17862 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17863
17864         * window.c (Fset_window_configuration):
17865         * sysdep.c (_start):
17866         * input-method-motif.c (res):
17867         * event-Xt.c (Xt_process_to_emacs_event):
17868         Simple compiler warning fixes.
17869
17870         * bytecode.c (funcall_compiled_function): Use the original
17871         function symbol on the backtrace list in preference to the
17872         compiled_function object in error messages.
17873
17874 2000-01-13  Andy Piper  <andy@xemacs.org>
17875
17876         * glyphs-x.c (update_widget_face): Make sure we update the widget
17877         background as well as foreground.
17878
17879 2000-01-13  Andy Piper  <andy@xemacs.org>
17880
17881         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17882         fields to subwindow.
17883         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17884         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17885         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17886         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17887
17888         * glyphs-widget.c (check_valid_tab_orientation): new function.
17889         (initialize_widget_image_instance): zero orientation and
17890         justification.
17891         (widget_instantiate): pick up orientation.
17892         (tab_control_query_geometry): return appropriate values for
17893         vertical tabs.
17894
17895         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17896         appropriate creation flags for left, right and bottom tabs.
17897
17898         * s/cygwin32.h: add tab definitions.
17899
17900 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17901
17902         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17903         frame upon hiding a subwindow.
17904         (mswindows_button_instantiate): Changed the push button style to
17905         BS_PUSHBUTTON.
17906         (mswindows_button_instantiate): Removed button BS_NOTIFY
17907         style.
17908         (mswindows_button_instantiate): Removed redundant check for
17909         a disabled gui item.
17910         (mswindows_button_instantiate): Made use of WS_TABSTOP
17911         consistent: "operable" controls (edit, button, tree, scroll) have
17912         this style, "display-only" ones (static, progress gauge) do
17913         not. This style is currently ignored by XEmacs though. Also,
17914         removed the WS_EX_CONTROLPARENT style - it is not for children,
17915         it is for their parents!
17916         (mswindows_edit_field_instantiate): Ditto.
17917         (mswindows_progress_gauge_instantiate): Ditto.
17918         (mswindows_tree_view_instantiate): Ditto.
17919         (mswindows_tab_control_instantiate): Ditto.
17920         (mswindows_scrollbar_instantiate): Ditto.
17921         (mswindows_combo_box_instantiate): Ditto.
17922         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17923         style to the "clip" window.
17924         (mswindows_button_instantiate): Removed compilation warning by
17925         equally typing terms of the ?: operator.
17926
17927 2000-01-12  Didier Verna  <didier@xemacs.org>
17928
17929         * redisplay.c (generate_fstring_runes): new parameter holding the
17930         last modeline-format extent.
17931         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17932         extent, fill the glyph block with it.
17933         (generate_fstring_runes): handle these parameters.
17934         (generate_formatted_string_db): ditto.
17935
17936         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17937         glyphs'extents in the modeline.
17938
17939 1999-01-11  Mike Woolley  <mike@bulsara.com>
17940
17941         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17942         256Mb, as a workaround for the non-starting problem many people
17943         have experienced.
17944
17945 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17946
17947         * console-tty.c (Fset_console_tty_output_coding_system):
17948         Force redrawing tty frame.
17949
17950 2000-01-10  Didier Verna  <didier@xemacs.org>
17951
17952         * redisplay.c (generate_fstring_runes): fix size computation bug.
17953
17954 2000-01-09  William M. Perry <wmperry@aventail.com>
17955
17956         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17957
17958 2000-01-09  Andy Piper  <andy@xemacs.org>
17959
17960         * glyphs-msw.c: index -> i to avoid shadows.
17961         (xbm_create_bitmap_from_data): make static.
17962         (check_valid_string_or_int): deleted.
17963         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17964
17965         * glyphs-x.c (x_update_subwindow): remove unused args.
17966
17967         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17968         back pointer - this is done in allocate_image_instance.
17969         (query_string_font): return Qnil to make the compiler happy.
17970         (unmap_subwindow): set to ~0 to make the compiler happy.
17971         (glyph_query_geometry): comment out until used.
17972         (glyph_layout): ditto.
17973
17974 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17975
17976         * insdel.c (signal_after_change): Remove extraneous unbind_to().