Sync up with r21-4-21-chise-0_24-5.
[chise/xemacs-chise.git] / src / ChangeLog
1 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (func_for_each_object): Fix bug about GC-protection.
4
5 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * concord.c (Fconcord_object_put): Check argument FEATURE is a
8         symbol.
9
10 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * text-coding.c (struct decoding_stream): Add new member
13         `bom_flag' in XEmacs CHISE.
14         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
15         in XEmacs CHISE.
16
17 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * mule-charset.c: Move definition of `=jis-x0208@1978' to
20         lisp/mule/mule-conf.el.
21
22 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
25         (make_charset): Add new argument `partial'.
26         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
27         (Fmake_reverse_direction_charset): Modify for `make_charset'.
28         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
29         CHISE.
30         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
31         `=jis-x0208' as a partial coded-charset.
32
33 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * text-coding.c (decode_add_er_char): Fix problem when a character
36         represented by an entity-reference is not defined.
37
38 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
41         Qrep_*.
42
43 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
46         (Kasagi).
47
48 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
51         is a relation feature.
52
53 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * chartab.c (syms_of_chartab): Define
56         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
57
58         * chartab.h (Q_denotational): New extern when UTF2000 or
59         HAVE_CONCORD is defined.
60         (Q_denotational_from): Likewise.
61         (Q_subsumptive): Likewise.
62         (Q_subsumptive_from): Likewise.
63
64 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * concord.c (concord_object_put): New function.
67         (Fconcord_object_put): Use `concord_object_put'.
68
69 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * concord.c (Fconcord_define_object): New function.
72         (syms_of_concord): Add new builtin function
73         `concord-define-object'.
74
75 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
78         (Kamo).
79
80 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * concord.c: Add EXFUN for Fconcord_object_get.
83         (Vconcord_genre_object_hash_table): New variable.
84         (concord_genre_cache_get_object): New function.
85         (concord_genre_cache_put_object): New function.
86         (Fconcord_make_object): Use object cache; put object-ID into `=id'
87         feature.
88         (Fconcord_object_put): Call `concord_index_sync' after
89         `concord_index_strid_put_obj'.
90         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
91
92 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * concord.c (Fconcord_decode_object): Do GCPRO for
95         Fconcord_make_object.
96         (func_for_each_object): Likewise; do GCPRO for
97         for_each_object_closure->function.
98         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
99         for_each_object_closure->function, for_each_object_closure->genre,
100         for_each_object_closure->ds and for_each_object_closure->ret.
101         (concord_object_validate): Do GCPRO for Fconcord_make_object.
102
103 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * concord.c: Add EXFUNs for Fconcord_decode_object and
106         Fconcord_object_put.
107         (Fconcord_make_object): Change order of arguments.
108         (Fconcord_decode_object): Modify for Fconcord_make_object.
109         (func_for_each_object): Likewise.
110         (concord_object_validate): Likewise.
111         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
112
113 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
116
117 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * concord.c (Fconcord_decode_object): Try to use readable print
120         form as a key of Concord-index.
121         (Fconcord_object_get): Try to use readable print form as an ID of
122         Concord-object.
123         (Fconcord_object_put): Try to use readable print form as an ID of
124         Concord-object and a feature value.
125         (Fconcord_object_spec): Try to use readable print form as an ID of
126         Concord-object.
127
128 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * concord.c (print_concord_object): Support readable form.
131
132 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
133
134         * emacs.c (main_1): Call `structure_type_create_concord' when
135         HAVE_CONCORD is defined.
136
137         * symsinit.h (structure_type_create_concord): New prototype.
138
139         * concord.c (Qconcord_object): New variable.
140         (Qgenre): Likewise.
141         (Q_id): Likewise.
142         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
143         for directory.
144         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
145         char*> for genre-name.
146         (Fconcord_feature_list): Likewise.
147         (Fconcord_make_object): Likewise.
148         (Fconcord_decode_object): Likewise; use <char*> instead of
149         <unsigned char*> for feature_name and strid.
150         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
151         c_obj and feature_name.
152         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
153         char*> for c_value.
154         (struct closure_for_object_spec): Use <char*> instead of <unsigned
155         char*> for member `object_id'.
156         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
157         char*> for feature-name.
158         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
159         for c_obj.
160         (func_for_each_object): Cast to avoid warnings.
161         (Fconcord_foreach_object_in_feature): Use <char*> instead of
162         <unsigned char*> for genre_name and feature_name.
163         (concord_name_validate): New function.
164         (concord_object_validate): Likewise.
165         (concord_object_instantiate): Likewise.
166         (syms_of_concord): Add new builtin symbols `concord-object',
167         `genre' and `=id'.
168         (structure_type_create_concord): New function.
169
170 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * concord.c (Vconcord_ds_hash_table): New variable.
173         (Vconcord_genre_hash_table): New variable.
174         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
175         (Fconcord_ds_directory): New function.
176         (Fconcord_assign_genre): New function.
177         (Fconcord_genre_directory): New function.
178         (Fconcord_genre_ds): New function.
179         (Fconcord_feature_list): Allow to omit `ds'.
180         (Fconcord_make_object): Likewise.
181         (Fconcord_decode_object): Likewise.
182         (Fconcord_foreach_object_in_feature): Likewise.
183         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
184         Fconcord_assign_genre, Fconcord_genre_directory and
185         Fconcord_genre_ds.
186         (vars_of_concord): Setup Vconcord_ds_hash_table and
187         Vconcord_genre_hash_table.
188
189 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * concord.c (struct closure_for_each_object): Add new member
192         `ret'.
193         (func_for_each_object): Setup the return value to
194         `for_each_object_closure->ret'.
195         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
196         returns the value instead of Qt.
197
198 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * concord.c: New file.
201
202 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
205         `lrecord_type_concord_object'.
206
207 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * symsinit.h (syms_of_concord): New prototype.
210         (vars_of_concord): New prototype.
211
212         * emacs.c (main_1): Setup symbols and variable about concord if
213         HAVE_CONCORD is defined.
214
215         * config.h.in (HAVE_CONCORD): New macro.
216
217 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * chartab.c (Fput_char_attribute): For each character relation
220         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
221
222 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * chartab.c (Fput_char_attribute): Use
225         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
226         calling `put_char_composition'.
227
228 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Q_halfwidth_of): New variable.
231         (put_char_composition): Return `<-halfwidth' instead of
232         `=decomposition' for compatibility mapping to single character
233         tagged `narrow'.
234         (Fput_char_attribute): Convert char-specs in value of
235         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
236         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
237         for `<-halfwidth'.
238         (syms_of_chartab): Add new symbol `<-halfwidth'.
239
240 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * chartab.c (put_char_composition): Return
243         `<-formed@{isolated|initial|medial|final}' for compatibility
244         mapping to single character tagged
245         `{isolated|initial|medial|final}'.
246
247 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * chartab.c (Q_compat_of): Deleted.
250         (put_char_composition): Return `<-FOO' for compatibility mapping
251         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
252         of `symbol_name (XSYMBOL(...))'.
253         (Fput_char_attribute): Convert char-specs in value of
254         `{<-|->}font[^*]*' to characters and put reverse links.
255         (Fsave_char_attribute_table): Don't refer Q_compat_of.
256         (syms_of_chartab): Delete builtin symbol `<-compat'.
257
258 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
259
260         * chartab.c (Q_circled_of): New variable.
261         (put_char_composition): Return `<-circled' instead of
262         `=decomposition' for compatibility mapping to single character
263         tagged `circle'.
264         (Fput_char_attribute): Convert char-specs in value of
265         `{<-|->}circled[^*]*' to characters and put reverse links.
266         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
267         for `<-circled'.
268         (syms_of_chartab): Add new symbol `<-circled'.
269
270 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * chartab.c (Qto_decomposition_at_circled): New variable.
273         (put_char_composition): Return `=>decomposition@circled' instead
274         of `=decomposition' for compatibility decomposition mapping tagged
275         `circle'.
276         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
277
278 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * chartab.c (Q_subscript_of): New variable.
281         (put_char_composition): Return `<-subscript' instead of
282         `=decomposition' for compatibility mapping to single character
283         tagged `sub'.
284         (Fput_char_attribute): Convert char-specs in value of
285         `{<-|->}subscript[^*]*' to characters and put reverse links.
286         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
287         for `<-subscript'.
288         (syms_of_chartab): Add new symbol `<-subscript'.
289
290 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
291
292         * chartab.c (Q_superscript_of): New variable.
293         (put_char_composition): Return `<-superscript' instead of
294         `=decomposition' for compatibility mapping to single character
295         tagged `super'.
296         (Fput_char_attribute): Convert char-specs in value of
297         `{<-|->}superscript[^*]*' to characters and put reverse links.
298         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
299         for `<-superscript'.
300         (syms_of_chartab): Add new symbol `<-superscript'.
301
302 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * chartab.c (Qto_decomposition_at_compat): Deleted.
305         (Qto_decomposition_at_superscript): New variable.
306         (put_char_composition): Use `=>decomposition@superscript' instead
307         of `=decomposition' for compatibility decomposition mapping tagged
308         `super'.
309         (Fput_char_attribute): Fix condition about `put_char_composition'.
310         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
311         add news symbol `=>decomposition@superscript'.
312
313 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
316         for compatibility decomposition mapping tagged FOO.
317         (Fput_char_attribute): Modify for `put_char_composition'.
318
319 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * chartab.c (Qto_decomposition_at_compat): New variable.
322         (Q_compat_of): Renamed from `Q_compatibility_of'.
323         (put_char_composition): Rename `Q_compatibility_of' to
324         `Q_compat_of'; return `=>decomposition@compat' for compatibility
325         decomposition mapping.
326         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
327         `Q_compat_of'.
328         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
329         `<-compatibility' to `<-compat'.
330
331 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * chartab.c (Q_compatibility_of): New variable.
334         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
335         object is proved to be a cons cell; return `<-compatibility' if
336         the first element of argument `value' is `compat'.
337         (Fput_char_attribute): Eliminate the first value if
338         `put_char_composition' returns `<-compatibility'.
339         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
340         for `<-compatibility'.
341         (syms_of_chartab): Add new symbol `<-compatibility'.
342
343 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * chartab.c (Q_canonical): New variable.
346         (put_char_composition): Return a feature name: return
347         `->canonical' if argument `value' specifies single character.
348         (Fput_char_attribute): Use `put_char_composition' to determine
349         feature name for `=decomposition' or `->denotational'.
350         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
351         for `->canonical'.
352         (syms_of_chartab): Add new symbol `->canonical'.
353
354 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * chartab.c (Qmap_decomposition): New variable.
357         (Fput_char_attribute): Convert `->decomposition' to
358         `=decomposition'.
359         (syms_of_chartab): Add new symbol `=decomposition'.
360
361 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * chartab.c (Fget_range_char_table): Fix serious problem when
364         `range' is nil.
365
366 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * chartab.c (char_table_get_db): Use `read_from_c_string'.
369
370 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
371
372         * lread.c (read_from_c_string): New function.
373
374         * lisp.h (read_from_c_string): New prototype.
375
376 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Fput_char_attribute): Convert char-specs in value of
379         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
380         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
381         for `{<-|->}Oracle-Bones[^*]*'.
382
383 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
386         (Kizu).
387
388 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * text-coding.c (Qccs_priority_list): New variable in XEmacs
391         CHISE.
392         (Fmake_coding_system): Support new property `ccs-priority-list' in
393         XEmacs CHISE.
394         (Fcoding_system_property): Likewise.
395         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
396         Vdefault_coded_charset_priority_list in XEmacs CHISE.
397         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
398         XEmacs CHISE.
399         (complex_vars_of_file_coding): Define new coding-system-property
400         `ccs-priority-list' in XEmacs CHISE.
401
402         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
403
404 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
405
406         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
407         changed to normal function.
408         (encode_char_2): Likewise.
409
410         * mule-charset.c (decoding_table_put_char): Copied from
411         char-ucs.h; changed to normal function.
412         (encode_char_2): Likewise.
413
414 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
417         New extern.
418         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
419         (encode_char_2_search_children): New inline function.
420         (encode_char_2): Refer
421         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
422         and use `encode_char_2_search_children'.
423
424 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * mule-charset.c
427         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
428         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
429         (vars_of_mule_charset): Add new variable
430         `display-coded-charset-priority-use-inheritance' and
431         `display-coded-charset-priority-use-hierarchy-order'.
432
433 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * char-ucs.h (Q_subsumptive): New extern.
436         (Q_denotational): Likewise.
437         (encode_char_2): Search children specified by `->subsumptive' and
438         `->denotational'.
439
440 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * mule-charset.c (complex_vars_of_mule_charset): Modify the
443         X-registry of `ucs-bmp'.
444
445 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * chartab.c (char-variants): Refer `->subsumptive',
448         `->denotational' and `->identical' as same as `->ucs-unified'.
449
450 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * chartab.c (Fput_char_attribute): Convert char-specs in value of
453         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
454         links.
455
456 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * text-coding.c: Add EXFUN for `Fregexp_quote'.
459         (decode_add_er_char): Fix problem about infinite loop when a CCS
460         specified in `coded-charset-entity-reference-alist' is not
461         existed.
462
463 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * mule-charset.c (syms_of_mule_charset): Rename
466         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
467
468 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
469
470         * fns.c (simplify_char_spec): Don't allocate new character-object
471         if specified char_spec does not have any CCS-features.
472
473         * chartab.h: Add EXFUN for Fdefine_char.
474
475         * chartab.c: Delete EXFUN for Fdefine_char.
476
477 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
478
479         * fns.c (simplify_char_spec): Use Fdefine_char instead of
480         Ffind_char for char-spec.
481
482 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * lisp-disunion.h (XCHARVAL): Fix condition about
485         SIZEOF_EMACS_INT.
486
487 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
490         <int> for `code'.
491         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
492         point; use <Emchar> instead of <int> for character-id.
493
494 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
497         (make_char): Likewise.
498         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
499         environment.
500         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
501         instead of <int> as the type of return value; use <Lisp_Object>
502         instead of <Emchar> as the type of argument.
503         (XCHARVAL[macro version]): Cast the result into <Emchar>.
504
505         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
506         syntaxcode> instead of <int>.
507
508 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * chartab.c (put_char_composition): Use DECODE_CHAR to get
511         character corresponding with UCS code point.
512         (Fput_char_attribute): Likewise.
513
514         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
515         character in the UCS decoding-table if the char-id is not equal to
516         the UCS code point.
517
518 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
521         for aliases; write `description'; write
522         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
523         not 0.
524
525 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
526
527         * chartab.c (Fsave_char_attribute_table): Don't use
528         `save_charset_properties'.
529
530         * mule-charset.c (Fsave_charset_properties): Renamed from
531         `save_charset_properties' and changed to Lisp function again;
532         write property `type' as `CCS'; write properties `final-byte' and
533         `mother' if they exists.
534         (syms_of_mule_charset): Revive builtin function
535         `save-charset-properties' when HAVE_LIBCHISE is defined.
536
537 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
538
539         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
540         instead of Vexec_directory.
541         (char_attribute_system_db_file): Likewise.
542
543 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * chartab.c (Fsave_char_attribute_table): Use
546         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
547         defined.
548
549         * mule-charset.c (save_charset_properties): Renamed from
550         `Fsave_charset_properties'; changed to non-Lisp function.
551         (syms_of_mule_charset): Abolish builtin function
552         `save-charset-properties'.
553
554 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * mule-charset.c (Fsave_charset_properties): New function when
557         HAVE_LIBCHISE is defined.
558         (syms_of_mule_charset): Add new builtin function
559         `save-charset-properties' when HAVE_LIBCHISE is defined.
560
561 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
562
563         * chartab.c (Fput_char_attribute): Convert char-specs in value of
564         `{<-|->}ancient[^*]*' to characters and put reverse links.
565         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
566         for `{<-|->}ancient[^*]*'.
567
568 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * chartab.c (Fput_char_attribute): Convert char-specs in value of
571         `{<-|->}original[^*]*' to characters and put reverse links.
572         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
573         for `{<-|->}original[^*]*'.
574
575 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
578
579 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * mule-charset.c (Qsystem_char_id): New variable.
582
583         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
584         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
585
586 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
587
588         * chartab.c (Fput_char_attribute): When processing a reference of
589         a character, put into the end of the reversed reference of each
590         target character.
591
592 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * chartab.c (Q_same): Deleted.
595         (Q_same_of): Deleted.
596         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
597         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
598         for `{<-|->}same'.
599         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
600
601 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * chartab.c (Q_vulgar): Deleted.
604         (Q_vulgar_of): Deleted.
605         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
606         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
607         for `{<-|->}vulgar'.
608         (syms_of_chartab): Don't define `{<-|->}vulgar'.
609
610 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
611
612         * chartab.c (Fput_char_attribute): Convert char-specs in value of
613         `{<-|->}wrong[^*]*' to characters and put reverse links.
614         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
615         for `{<-|->}wrong[^*]*'.
616
617 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * chartab.c (Q_vulgar): New variable.
620         (Q_vulgar_of): New variable.
621         (Fput_char_attribute): Convert char-specs in value of
622         `{->|<-}vulgar' to characters and put reverse links.
623         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
624         for `{->|<-}vulgar'.
625         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
626
627 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * text-coding.c (decode_add_er_char): Must to quote prefix string
630         as regexp.
631
632 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * mule-charset.c (put_char_ccs_code_point): Store characters of
635         =ucs whose code_points >= 0xF0000.
636
637 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
640         CHISE.
641         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
642         CHISE.
643         (complex_vars_of_mule_charset): Add new coded-charset
644         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
645         builtin characters over 0xEFFFF.
646
647         * chartab.c (syms_of_chartab): Don't define symbol
648         `system-char-id' in every case.
649
650         * char-ucs.h (Qsystem_char_id): New extern variable.
651         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
652
653 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
654
655         * text-coding.c (char_encode_utf8): Try to use entity-references
656         for U-000F0000 ...  U-0010FFFF.
657
658 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * text-coding.c (ER_BUF_SIZE): New macro.
661         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
662         `er_buf'.
663         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
664         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
665
666 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * chartab.c (find_char_feature_in_family): New function.
669         (Fchar_feature): Use `find_char_feature_in_family' with
670         `->identical', `<-subsumptive' and `<-denotational'.
671
672 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * text-coding.c (char_encode_as_entity_reference): Allow prefix
675         within 8 characters; fix infinite loop.
676
677 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * chartab.c (Q_same): New variable.
680         (Q_same_of): New variable.
681         (Fput_char_attribute): Convert char-specs in value of
682         `{->|<-}same' to characters and put reverse links.
683         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
684         for `{->|<-}same'.
685         (syms_of_chartab): Add new symbols `{->|<-}same'.
686
687 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * chartab.c (Q_component): New variable.
690         (Q_component_of): Likewise.
691         (Fput_char_attribute): Convert char-specs in value of
692         `{->|<-}ideographic-component-forms' to characters and put reverse
693         links.
694         (syms_of_chartab): Add new symbols
695         `{->|<-}ideographic-component-forms'.
696
697 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
698
699         * chartab.c (Q_identical): New variable.
700         (Q_identical_from): New variable.
701         (Fchar_feature): Regard `->identical' as a feature to find
702         ancestors.
703         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
704         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
705         for `{->|<-}identical'.
706         (syms_of_chartab): Add new symbols `{->|<-}identical'.
707
708 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * char-ucs.h (encode_char_2): New inline function.
711         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
712
713 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * chartab.c (Fput_char_attribute): Convert char-specs to
716         characters in value of `ideographic-structure'.
717         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
718         for `{<-|->}simplified(@...)'.
719         (Fdefine_char): Try to use predefined character's id.
720
721 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * fns.c (simplify_char_spec): Try to convert builtin chars to
724         defined chars.
725
726 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * chartab.c (Fput_char_attribute): Convert char-specs in value of
729         `<-simplified[^*]*' to characters and put reverse links.
730
731 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * chartab.c (Q_subsumptive): Renamed from Q_unified.
734         (Q_subsumptive_from): Renamed from Q_unified_from.
735         (Fchar_feature): Use `Q_subsumptive_from' instead of
736         `Q_unified_from'.
737         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
738         `Q_unified'.
739         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
740         `<-unified' to `<-subsumptive'.
741
742 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
745         inheritance itself; fix typo; stop recursive search if cyclic
746         inheritance is found.
747
748 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * chartab.c (Q_denotational): New variable.
751         (Q_denotational_from): New variable.
752         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
753         (put_char_attribute): New function.
754         (Fput_char_attribute): Use `put_char_attribute'; regard
755         `->denotational' and `<-denotational' as same as `->unified' and
756         `<-unified'.
757         (syms_of_chartab): Add new symbols `->denotational' and
758         `<-denotational'.
759
760 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
763         `Fget_char_attribute'.
764         (Fchar_variants): Likewise.
765         (get_char_table): Likewise.
766         (Fchar_feature): New function.
767         (put_char_composition): Use `Fchar_feature' instead of
768         `Fget_char_attribute'.
769         (Fput_char_attribute): Likewise; don't put the target character
770         into its `->unified' value.
771         (syms_of_chartab): Add new builtin function `char-feature'.
772
773 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
776         `Fget_char_attribute'.
777         (char_encode_utf8): Likewise.
778
779         * chartab.h: Add an EXFUN for `Fchar_feature'.
780
781 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * chartab.c (Vnext_defined_char_id): New variable.
784         (Fput_char_attribute): Accept characters in `->unified'.
785         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
786         new characters which are not related with builtin char-id ranges.
787         (vars_of_chartab): Add new variable `next-defined-char-id'.
788
789 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * chartab.c (Q_unified): New variable.
792         (Q_unified_from): New variable.
793         (Fput_char_attribute): Add code for `->unified'.
794         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
795         XEmacs CHISE.
796
797 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * mule-charset.c (decode_ccs_conversion): New function.
800         (decode_defined_char): Use `decode_ccs_conversion'.
801         (decode_builtin_char): Likewise.
802
803 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * char-ucs.h: Change some charset-ids of private coded-charsets.
806
807 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
808
809         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
810         (char_encode_as_entity_reference): Likewise.
811         (decode_coding_big5): Modify for `decode_defined_char' and
812         `DECODE_CHAR'.
813         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
814         avoid compiler warning.
815         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
816
817         * mule-charset.c (decode_defined_char): Add new argument
818         `without_inheritance'.
819         (Fdecode_char): Add new optional argument `without_inheritance'.
820         (Fdecode_builtin_char): Modify for `Fdecode_char'.
821
822         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
823         (simplify_char_spec): Likewise.
824
825         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
826         setting.
827
828         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
829         (map_char_table): Likewise.
830         (Fdefine_char): Use `Fdecode_char' without inheritance.
831         (Ffind_char): Modify for `Fdecode_char'.
832
833         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
834
835         * char-ucs.h (decode_defined_char): Add new argument
836         `without_inheritance'.
837         (DECODE_CHAR): Likewise.
838         (MAKE_CHAR): Modify for `DECODE_CHAR'.
839
840 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * chartab.c (Vchise_system_db_directory): New variable.
843         (vars_of_chartab): Add new variable `chise-system-db-directory'.
844
845 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * chartab.c: EXFUN `Fmount_char_attribute_table'.
848         (print_chartab_range): Don't define when `UTF2000' is defined.
849         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
850         `CHISE_DS_open'.
851
852 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
853
854         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
855         and optional argument `rehash' is specified, call
856         `open_chise_data_source_maybe' before
857         `chise_ds_foreach_char_feature_name' is called.
858
859 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (char_attribute_list_reset_map_func): New function
862         when HAVE_LIBCHISE is defined.
863         (Fchar_attribute_list): Add new optional argument `rehash' when
864         HAVE_LIBCHISE is defined.
865         (open_chise_data_source_maybe): Use "chise-db" instead of
866         "char-db".
867         (char_attribute_system_db_file): Likewise.
868         (Fload_char_attribute_table): Use
869         `chise_feature_foreach_char_with_value' instead of
870         `chise_char_feature_value_iterate'.
871
872 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * chartab.c (Vchise_db_directory): New variable.
875         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
876
877 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
880         instead of HAVE_CHISE to specify using with libchise.
881
882         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
883
884         * chartab.h: Don't use HAVE_CHISE_CLIENT.
885
886         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
887         defined or HAVE_LIBCHISE_LIBCHISE is defined.
888         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
889         is defined.
890         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
891         HAVE_CHISE to specify using with libchise.
892         (syms_of_chartab): Don't define symbol `system-char-id' when
893         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
894
895 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
898         specify CHISE DB support.
899         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
900         of `char_attribute_system_db_file' to check feature DB file.
901
902         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
903         HAVE_CHISE_CLIENT to specify CHISE DB support.
904
905         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
906         specify CHISE DB support.
907         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
908         not defined.
909         (Freset_char_attribute_table): Use `chise_feature_setup_db'
910         instead of `char_attribute_system_db_file' to check feature DB
911         file.
912
913 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
916         `HAVE_CHISE_CLIENT'.
917
918 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
921         (Fsave_charset_mapping_table): Don't use
922         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
923
924         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
925         (HAVE_LIBCHISE): New macro.
926
927         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
928
929         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
930         (Fsave_char_attribute_table): Don't use
931         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
932
933 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
936         defined.
937         (save_uint16_byte_table): Likewise.
938         (save_byte_table): Likewise.
939         (char_table_get_db): Use `chise_ds_load_char_feature_value'
940         instead of `chise_char_load_feature_value'.
941         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
942
943 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * chartab.h (struct Lisp_Char_Table): Delete member
946         `feature_table' if CHISE is defined.
947
948         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
949         (Fcopy_char_table): Likewise.
950         (char_table_open_db_maybe): Likewise.
951         (char_table_close_db_maybe): Likewise.
952         (char_table_get_db): Likewise.
953         (Fmount_char_attribute_table): Likewise.
954         (Fload_char_attribute_table): Likewise.
955
956 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * mule-charset.c (load_char_decoding_entry_maybe): Use
959         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
960         `chise_ccs_decode'.
961
962 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
965         instead of `chise_open_data_source'.
966         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
967         `chise_ds_close'.
968
969 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
970
971         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
972         instead of `chise_ds_open_feature_table'.
973         (char_table_close_db_maybe): Don't use `chise_ft_close'.
974
975 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * mule-charset.c (Fsave_charset_mapping_table): Use
978         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
979         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
980         `chise_ccs_sync' instead of `chise_ccst_close'.
981         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
982
983         * chartab.c (open_chise_data_source_maybe): Modify for
984         `chise_open_data_source'.
985         (char_table_open_db_maybe): Modify for
986         `chise_ds_open_feature_table'.
987
988 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
989
990         * mule-charset.c (load_char_decoding_entry_maybe): Use
991         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
992         `chise_ccst_close'.
993
994 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * mule-charset.c (Fsave_charset_mapping_table): Use
997         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
998         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
999         `chise_dt_put_char' and `chise_dt_close'.
1000         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1001         `chise_ccs_decode' and `chise_ccst_close' instead of
1002         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1003         `chise_dt_close'.
1004
1005         * chartab.c (char_table_get_db): Use
1006         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1007         (load_char_attribute_table_map_func): Modify for
1008         `chise_char_feature_value_iterate'.
1009         (Fload_char_attribute_table): Use
1010         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1011
1012 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1013
1014         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1015
1016 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1017
1018         * chartab.c (put_char_table): Modify for inherited coded-charsets
1019         in XEmacs CHISE.
1020
1021 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1022
1023         * chartab.c (Fput_char_table_map_function): Fixed.
1024         (word_boundary_p): Don't check charset in XEmacs CHISE.
1025
1026 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * mule-charset.c (Fsave_charset_mapping_table): Use
1029         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1030         instead of `chise_open_decoding_table'; refer
1031         `default_chise_data_source'; use `chise_dt_close' instead of
1032         `chise_close_decoding_table'.
1033         (load_char_decoding_entry_maybe): Likewise.
1034
1035         * chartab.c (default_chise_data_source): New variable when `CHISE'
1036         is defined.
1037         (Fcopy_char_table): `ct->ds' is deleted.
1038         (open_chise_data_source_maybe): New function.
1039         (Fclose_char_data_source): New function.
1040         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1041         use `chise_ds_open_feature_table' instead of
1042         `chise_open_feature_table'.
1043         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1044         `chise_close_feature_table'; `cit->ds' is deleted.
1045         (syms_of_chartab): Add new builtin function
1046         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1047
1048         * chartab.h (default_chise_data_source): New extern variable.
1049         (open_chise_data_source_maybe): New prototype.
1050         (struct Lisp_Char_Table): Delete `ds'.
1051
1052 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1053
1054         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1055         `CHISE' is defined.
1056
1057 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1060         not defined; add code for non-libchise setting.
1061         (char_table_close_db_maybe): Likewise.
1062         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1063         defined.
1064         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1065         even if `CHISE' is not defined.
1066         (Freset_char_attribute_table): Likewise.
1067         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1068         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1069         `char_table_get_db'.
1070         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1071         `char_table_close_db_maybe' even if `CHISE' is not defined.
1072
1073 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1074
1075         * chartab.c (char_table_open_db_maybe): New function.
1076         (char_table_close_db_maybe): New function.
1077         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1078         (Freset_char_attribute_table): Likewise.
1079         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1080         `char_table_close_db_maybe'.
1081         (Fload_char_attribute_table): Likewise.
1082
1083 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1084
1085         * chartab.c: Don't include <chise.h> because it is included in
1086         chartab.h.
1087         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1088         defined.
1089         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1090         `CHISE' is defined.
1091         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1092         `CHISE' is defined.
1093         (Fclose_char_attribute_table): Close `ct->feature_table' and
1094         `ct->ds' when `CHISE' is defined.
1095         (Freset_char_attribute_table): Likewise.
1096         (load_char_attribute_maybe): Use `cit->ds' and
1097         `cit->feature_table' when `CHISE' is defined.
1098         (Fload_char_attribute_table): Likewise.
1099
1100         * chartab.h: Include <chise.h> when `CHISE' is defined.
1101         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1102         when `CHISE' is defined.
1103
1104 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1105
1106         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1107         is defined.
1108         (char_table_description): Likewise.
1109         (Fmake_char_table): Likewise.
1110         (Fcopy_char_table): Likewise.
1111         (Fmount_char_attribute_table): Likewise.
1112         (Fclose_char_attribute_table): Likewise.
1113         (Freset_char_attribute_table): Likewise.
1114         (load_char_attribute_maybe): Likewise.
1115         (Fload_char_attribute_table): Likewise.
1116
1117         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1118         defined.
1119
1120 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * chartab.c (load_char_attribute_table_map_func): New function
1123         when CHISE is defined.
1124         (Qload_char_attribute_table_map_function): Don't define when CHISE
1125         is defined.
1126         (Fload_char_attribute_table_map_function): Likewise.
1127         (Fload_char_attribute_table): Use libchise when `CHISE' is
1128         defined.
1129         (syms_of_chartab): Don't define
1130         `load-char-attribute-table-map-function' when CHISE is defined.
1131
1132 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * chartab.c: Include <chise.h> when `CHISE' is defined.
1135         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1136
1137 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule-charset.c (charset_code_point): Fix problem when searching
1140         in mother CCS fails with `defined_only' mode.
1141
1142 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1145         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1146         (put_char_composition): Likewise.
1147         (Fput_char_attribute): Likewise.
1148         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1149
1150 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1151
1152         * chartab.c (Q_ucs): Deleted.
1153         (Fput_char_attribute): Don't refer `->ucs'.
1154         (Fdefine_char): Likewise.
1155         (Ffind_char): Likewise.
1156         (syms_of_chartab): Delete `->ucs'.
1157
1158 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1159
1160         * mule-charset.c (Qmap_cns11643_2): Renamed from
1161         `Qchinese_cns11643_2'.
1162         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1163         `chinese-cns11643-2'.
1164         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1165         `=cns11643-2'.
1166
1167 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1168
1169         * mule-charset.c (Qmap_cns11643_1): Renamed from
1170         `Qchinese_cns11643_1'.
1171         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1172         `chinese-cns11643-1'.
1173         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1174         `=cns11643-1'.
1175
1176 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1177
1178         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1179         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1180         `chinese-gb12345'.
1181         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1182         `=gb12345'.
1183
1184 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1185
1186         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1187         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1188         `chinese-gb2312'.
1189         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1190         `=gb2312'.
1191
1192 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1193
1194         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1195         (syms_of_mule_charset): Add new symbol `=big5' instead of
1196         `chinese-big5'.
1197         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1198
1199 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1200
1201         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1202         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1203         `korean-ksc5601'.
1204         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1205         `=ks-x1001'.
1206
1207 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1208
1209         * mule-charset.c (Qmap_jis_x0212): Renamed from
1210         `Qjapanese_jisx0212'.
1211         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1212         `japanese-jisx0212'.
1213         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1214         `=jis-x0212'.
1215
1216 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1217
1218         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1219         `Qjapanese_jisx0208'.
1220         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1221         of `japanese-jisx0208'.
1222         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1223         `=jis-x0208-1983'.
1224
1225 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1228         `Qjapanese_jisx0208_1978'.
1229         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1230         of `japanese-jisx0208-1978'.
1231         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1232         `=jis-x0208-1978'.
1233
1234 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1235
1236         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1237         only for XEmacs CHISE.
1238
1239 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * char-ucs.h: Compact non-ISO-IR charset-ids.
1242         (LEADING_BYTE_UCS): Changed to -177.
1243         (LEADING_BYTE_CONTROL_1): Changed to -77.
1244         (LEADING_BYTE_UCS_BMP): Changed to -176.
1245         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1246
1247 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248
1249         * mule-charset.c (Qiso_ir): New variable.
1250         (Fmake_charset): Recognise new property `iso-ir'.
1251         (syms_of_mule_charset): Add new symbol `iso-ir'.
1252
1253 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1254
1255         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1256         n to -n; charset-id of non ISO-IR sets are changed to positive
1257         numbers.
1258
1259 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1260
1261         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1262         for &MCS-XXXXXXXX; values.
1263
1264 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1265
1266         * mule.c (Vxemacs_chise_version): Renamed from
1267         `Vutf_2000_version'.
1268         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1269         `utf-2000-version' as an alias for `xemacs-chise-version'.
1270
1271 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1272
1273         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1274         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1275         defined.
1276
1277         * config.h.in (CHISE): New macro.
1278
1279 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1280
1281         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1282         of `ucs'.
1283         (Qmap_ucs): New variable.
1284         (syms_of_mule_charset): Add new symbol `=ucs'.
1285         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1286
1287         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1288         (simplify_char_spec): Likewise.
1289
1290         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1291
1292         * char-ucs.h (Qmap_ucs): New extern variable.
1293
1294 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295
1296         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1297         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1298         don't define it when UTF2000 is not defined.
1299         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1300         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1301         when UTF2000 is not defined.
1302         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1303         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1304
1305 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1308
1309         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1310         (Qucs_gb): Deleted.
1311         (syms_of_mule_charset): Delete `ucs-gb'.
1312         (complex_vars_of_mule_charset): Likewise.
1313
1314 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1315
1316         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1317
1318         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1319         (Qucs_cns): Deleted.
1320         (syms_of_mule_charset): Delete `ucs-cns'.
1321         (complex_vars_of_mule_charset): Likewise.
1322
1323 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324
1325         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1326
1327         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1328         (Qucs_jis): Deleted.
1329         (syms_of_mule_charset): Delete `ucs-jis'.
1330         (complex_vars_of_mule_charset): Likewise.
1331
1332 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1333
1334         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1335
1336         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1337         (Qucs_ks): Deleted.
1338         (syms_of_mule_charset): Delete `ucs-ks'.
1339         (complex_vars_of_mule_charset): Likewise.
1340
1341 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1344         (Qideograph_daikanwa_2): Deleted.
1345         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1346         (complex_vars_of_mule_charset): Likewise.
1347
1348         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1349         (LEADING_BYTE_DAIKANWA_1): Deleted.
1350         (LEADING_BYTE_DAIKANWA_2): Deleted.
1351         (MIN_CHAR_DAIKANWA): Deleted.
1352         (MAX_CHAR_DAIKANWA): Deleted.
1353
1354 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1355
1356         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1357         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1358         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1359
1360         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1361         (Vcharset_ideograph_daikanwa): Deleted.
1362         (Qideograph_hanziku_{1..12}): Deleted.
1363         (Qideograph_daikanwa): Deleted.
1364         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1365         Vcharset_ideograph_daikanwa.
1366         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1367         `ideograph-hanziku-{1..12}'.
1368         (complex_vars_of_mule_charset): Likewise.
1369
1370 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1371
1372         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1373
1374         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1375         (Qideograph_gt_pj_{1..11}): Deleted.
1376         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1377         (complex_vars_of_mule_charset): Likewise.
1378
1379 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1382         (Vcharset_ideograph_gt): Deleted.
1383         (Qucs_big5): Deleted.
1384         (Qideograph_gt): Deleted.
1385         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1386         `ideograph-gt'.
1387         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1388         and `ideograph-gt'.
1389
1390         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1391         (LEADING_BYTE_GT): Deleted.
1392         (MIN_CHAR_GT): Deleted.
1393         (MAX_CHAR_GT): Deleted.
1394
1395 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1396
1397         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1398
1399 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1400
1401         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1402         (save_uint16_byte_table): Likewise.
1403         (save_byte_table): Likewise; convert values by it.
1404         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1405         for `ideographic-structure'.
1406         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1407         as the filter for `ideographic-structure'.
1408
1409 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1410
1411         * chartab.c (put_char_composition): New function.
1412         (Fput_char_attribute): Use `put_char_composition'; use
1413         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1414
1415         * fns.c (simplify_char_spec): New function.
1416         (char_ref_simplify_spec): New function.
1417         (Fchar_refs_simplify_char_specs): New function.
1418         (syms_of_fns): Add new builtin function
1419         `char-refs-simplify-char-specs'.
1420
1421 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1422
1423         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1424         (Qideograph_cbeta): Deleted.
1425         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1426         (complex_vars_of_mule_charset): Likewise.
1427
1428         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1429         (MIN_CHAR_CBETA): Comment out.
1430         (MAX_CHAR_CBETA): Likewise.
1431
1432 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1433
1434         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1435         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1436         CHISE client feature.
1437
1438 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1439
1440         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1441
1442 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1443
1444         * mule-charset.c (charset_lookup_description_1): Use
1445         `NUM_LEADING_BYTES' in UTF-2000.
1446
1447 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1448
1449         * char-ucs.h (GC_CHARSETP): Deleted.
1450
1451 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452
1453         * char-ucs.h (MAX_CHAR_GT): Updated.
1454
1455 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * text-coding.c: Sync with XEmacs 21.4.10.
1458
1459 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460
1461         * mule-charset.c (Vcharset_china3_jef): Deleted.
1462         (Qchina3_jef): Deleted.
1463         (syms_of_mule_charset): Don't define `china3-jef'.
1464         (complex_vars_of_mule_charset): Likewise.
1465
1466         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1467         (MIN_CHAR_CHINA3_JEF): Comment out.
1468         (MAX_CHAR_CHINA3_JEF): Comment out.
1469
1470 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (Vcharset_ucs_gb): New variable.
1473         (Qucs_gb): New variable.
1474         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1475         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1476
1477         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1478
1479 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1480
1481         * mule-charset.c (charset_code_point): if a coded-charset has a
1482         final-byte, don't inherit the builtin range of the mother CCS.
1483
1484 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1485
1486         * mule-charset.c (charset_code_point): Fix problem about
1487         inheritance.
1488
1489 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * mule-charset.c (decode_builtin_char): Reorganized.
1492
1493 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * text-coding.c (char_encode_as_entity_reference): Modify for
1496         `charset_code_point'.
1497         (char_encode_shift_jis): Likewise.
1498         (char_encode_big5): Likewise.
1499         (char_encode_utf8): Likewise.
1500         (char_encode_iso2022): Likewise.
1501
1502         * mule-charset.c (charset_code_point): Add new argument
1503         `defined_only'.
1504         (Fencode_char): Add new optional argument `defined_only'.
1505
1506         * chartab.c (put_char_table): Modify for `charset_code_point'.
1507
1508         * char-ucs.h (charset_code_point): Add new argument
1509         `defined_only'.
1510         (encode_char_1): Modify for `charset_code_point'.
1511
1512 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513
1514         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1515         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1516
1517 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1518
1519         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1520         (Qjis_x0208): Likewise.
1521         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1522         XCHARSET_FINAL(charset).
1523         (charset_code_point): Modify condition for final-byte based
1524         builtin-chars.
1525         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1526         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1527         in UTF-2000; specify `=jis-x0208' as the mother of
1528         `japanese-jisx0208-1978', `japanese-jisx0208' and
1529         `japanese-jisx0208-1990' in UTF-2000.
1530
1531 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1532
1533         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1534
1535 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536
1537         * text-coding.c (decode_coding_utf16): Support UTF-16.
1538         (char_encode_utf16): Fixed.
1539
1540 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1541
1542         * text-coding.c (Qutf16): New variable in MULE.
1543         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1544         (Fcoding_system_type): Add `utf-16' in MULE.
1545         (struct detection_state): Add a structure for utf16 in MULE.
1546         (detect_coding_type): Setup st->utf16.mask in MULE.
1547         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1548         MULE.
1549         (reset_encoding_stream): Use `char_encode_utf16' and
1550         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1551         (detect_coding_utf16): New function [incomplete].
1552         (decode_coding_utf16): New function [support only UCS-2].
1553         (char_encode_utf16): New function.
1554         (char_finish_utf16): New function.
1555         (syms_of_file_coding): Add new symbol `utf-16'; setup
1556         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1557
1558         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1559         UTF-2000.
1560         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1561         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1562
1563 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * chartab.c (put_char_table): When a charset is specified as a
1566         range in UTF-2000, don't support builtin characters.
1567
1568 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1569
1570         * mule-charset.c (decode_defined_char): Don't refer external
1571         database if Qunbound or Qnil are found.
1572         (Fsave_charset_mapping_table): Don't define it if
1573         HAVE_CHISE_CLIENT is not defined.
1574         (Freset_charset_mapping_table): New function.
1575         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1576         found in external database.
1577         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1578         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1579         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1580
1581 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1582
1583         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1584         not.
1585
1586 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1587
1588         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1589         Q_lowercase, Q_uppercase in UTF-2000.
1590
1591         * chartab.c (get_char_table): Add special code for the standard
1592         case table to use character attribute `->downcase' and
1593         `->uppercase' for case operations in UTF-2000.
1594
1595         * casetab.c (Qflippedcase): New variable in UTF-2000.
1596         (Q_lowercase): Likewise.
1597         (Q_uppercase): Likewise.
1598         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1599         and `->uppercase' in UTF-2000.
1600         (complex_vars_of_casetab): Assign attribute name `downcase' to
1601         downcase and CANON table of Vstandard_case_table in UTF-2000;
1602         assign attribute name `flippedcase' to upcase and EQV table of
1603         Vstandard_case_table in UTF-2000.
1604
1605 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * text-coding.c (decode_add_er_char): Support isolated-chars.
1608         (char_encode_as_entity_reference): Likewise.
1609
1610 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1611
1612         * emacs.c (Vutf_2000_lisp_directory): New variable.
1613         (Vconfigure_utf_2000_lisp_directory): Likewise.
1614         (complex_vars_of_emacs): Add new variable
1615         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1616
1617 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1618
1619         * char-ucs.h (DECODE_CHAR): Delete special code for
1620         `chinese-big5-1' and `chinese-big5-2'.
1621
1622         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1623         (Qbig5_2): Likewise.
1624         (decode_defined_char): Support CONVERSION_BIG5_1 and
1625         CONVERSION_BIG5_2.
1626         (decode_builtin_char): Likewise.
1627         (charset_code_point): Likewise.
1628         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1629         'conversion in UTF-2000.
1630         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1631         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1632         `chinese-big5-2' as children of `chinese-big5'.
1633
1634         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1635         (CONVERSION_BIG5_2): New macro.
1636
1637 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1638
1639         * text-coding.c (char_encode_big5): Support entity-reference.
1640
1641 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1642
1643         * text-coding.c (char_encode_as_entity_reference): New function.
1644         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1645
1646 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1647
1648         * text-coding.c (decode_coding_big5): Support entity-reference
1649         decoding feature.
1650
1651 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * text-coding.c (allocate_coding_system): Initialize initial
1654         charsets for CODESYS_UTF8.
1655         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1656         charset-g2 for CODESYS_UTF8.
1657         (decode_coding_utf8): Use charset-g0.
1658         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1659         to force variants to map to UCS.
1660
1661 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * text-coding.c (Qutf_8_mcs): New variable.
1664         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1665         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1666         instead of `utf-8' in UTF-2000.
1667
1668 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1669
1670         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1671         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1672         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1673         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1674         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1675         CONVERSION_96x96x96x96 are introduced.
1676         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1677         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1678         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1679
1680         * char-ucs.h (CONVERSION_94): New macro.
1681         (CONVERSION_96): New macro.
1682         (CONVERSION_94x94): New macro.
1683         (CONVERSION_96x96): New macro.
1684         (CONVERSION_94x94x94): New macro.
1685         (CONVERSION_96x96x96): New macro.
1686         (CONVERSION_94x94x94x60): New macro.
1687         (CONVERSION_94x94x94x94): New macro.
1688         (CONVERSION_96x96x96x96): New macro.
1689
1690 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1691
1692         * chartab.c (Vcharacter_variant_table): Deleted.
1693         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1694         of `Vcharacter_variant_table'.
1695         (Fput_char_attribute): Likewise.
1696         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1697         (complex_vars_of_chartab): Likewise.
1698
1699 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1700
1701         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1702
1703         * fns.c (Qideographic_structure): New variable.
1704         (Qkeyword_char): New variable.
1705         (ids_format_unit): New function.
1706         (Fideographic_structure_to_ids): New function.
1707         (syms_of_fns): Add new symbols `ideographic-structure' and
1708         `:char'; add new builtin function `ideographic-structure-to-ids'.
1709
1710         * data.c (Fchar_ref_p): New function.
1711         (syms_of_data): Add new builtin function `char-ref-p'.
1712
1713         * chartab.h: Add an EXFUN for `Ffind_char'.
1714
1715 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * text-coding.c (Vcharacter_composition_table): Deleted.
1718         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1719         in every UTF-2000.
1720
1721         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1722         UTF-2000.
1723         (Vcharacter_composition_table): Deleted.
1724         (Fget_composite_char): Use the implementation for external-DB
1725         support in every UTF-2000.
1726         (Fput_char_attribute): Likewise.
1727         (char_attribute_system_db_file): Don't define if external-DB
1728         feature is not available.
1729         (Fsave_char_attribute_table): Likewise.
1730         (Fmount_char_attribute_table): Likewise.
1731         (Fclose_char_attribute_table): Likewise.
1732         (Freset_char_attribute_table): Likewise.
1733         (Fload_char_attribute_table): Likewise.
1734         (syms_of_chartab): Don't define `save-char-attribute-table',
1735         `mount-char-attribute-table', `reset-char-attribute-table',
1736         `close-char-attribute-table' and `load-char-attribute-table' if
1737         external-DB feature is not available.
1738         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1739
1740 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1741
1742         * text-coding.c (Qcomposition): Add extern if external-DB feature
1743         is supported.
1744         (Vcharacter_composition_table): Don't add extern if external-DB
1745         feature is supported.
1746         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1747         character composition rule if external-DB feature is supported.
1748
1749         * chartab.c (Vcharacter_composition_table): Don't define if
1750         external-DB feature is supported.
1751         (Qcomposition): New variable.
1752         (Fget_composite_char): New implementation for external-DB support.
1753         (Fput_char_attribute): Use `composition' property of each
1754         character instead of `Vcharacter_composition_table' to store
1755         character-composition rules if external-DB feature is supported.
1756         (syms_of_chartab): Add new symbol `composition'.
1757         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1758         external-DB feature is supported.
1759
1760 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1761
1762         * chartab.c (Vchar_db_stingy_mode): New variable.
1763         (load_char_attribute_maybe): Close database if
1764         Vchar_db_stingy_mode is not NIL.
1765         (Fload_char_attribute_table_map_function): Use
1766         `get_char_id_table_0' instead of `get_char_id_table'.
1767         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1768
1769         * chartab.h (get_char_id_table_0): New inline function.
1770         (get_char_id_table): Use `get_char_id_table_0'.
1771
1772 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1773
1774         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1775         and `COMPOSE_ADD_CHAR'.
1776         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1777
1778 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1779
1780         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1781         instead of `DECODE_ADD_UCS_CHAR'.
1782         (COMPOSE_ADD_CHAR): Likewise.
1783
1784 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1785
1786         * text-coding.c (decode_flush_er_chars): New inline function.
1787         (decode_add_er_char): New function.
1788         (decode_coding_utf8): Use `decode_flush_er_chars' and
1789         `decode_add_er_char'.
1790
1791 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1792
1793         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1794         done before `decode_output_utf8_partial_char'.
1795
1796         * mule-charset.c (complex_vars_of_mule_charset): Specify
1797         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1798         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1799
1800 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1801
1802         * mule-charset.c (decode_defined_char): New function; search
1803         mother.
1804         (decode_builtin_char): Don't search mother if
1805         XCHARSET_MAX_CODE(charset) == 0.
1806         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1807         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1808         (Fdecode_char): Use `decode_defined_char' instead of
1809         `DECODE_DEFINED_CHAR'.
1810         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1811         mother of `Vcharset_ucs_jis'.
1812
1813         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1814         instead of `DECODE_DEFINED_CHAR'.
1815
1816         * char-ucs.h (decode_defined_char): Renamed from
1817         `DECODE_DEFINED_CHAR'; changed to normal function.
1818         (DECODE_CHAR): Use `decode_defined_char' instead of
1819         `DECODE_DEFINED_CHAR'.
1820
1821         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1822
1823 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1826
1827         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1828         variable.
1829         (Quse_entity_reference): New variable.
1830         (Qd): New variable.
1831         (Qx): New variable.
1832         (QX): New variable.
1833         (coding_system_description): Add description for
1834         `ccs_priority_list'.
1835         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1836         (allocate_coding_system): Initialize `ccs_priority_list' in
1837         UTF-2000.
1838         (Fmake_coding_system): Add description about
1839         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1840         (codesys).
1841         (Fcoding_system_property): Accept `disable-composition' and
1842         `use-entity-reference' in UTF-2000.
1843         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1844         in UTF-2000.
1845         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1846         (decode_coding_utf8): Decode entity-reference if
1847         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1848         (char_encode_utf8): Encode non-Unicode characters as
1849         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1850         (str->codesys).
1851         (syms_of_file_coding): Add new symbols `use-entity-reference',
1852         `d', `x', `X'.
1853         (vars_of_file_coding): Add new variable
1854         `coded-charset-entity-reference-alist'.
1855         (complex_vars_of_file_coding): Declare `disable-composition' and
1856         `use-entity-reference' to be coding-system-properties in UTF-2000.
1857
1858         * file-coding.h (struct Lisp_Coding_System): Add new member
1859         `use_entity_reference' and `ccs_priority_list'.
1860         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1861         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1862         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1863
1864 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1865
1866         * chartab.c (save_uint8_byte_table): Don't clear the table.
1867         (save_uint16_byte_table): Likewise.
1868         (save_byte_table): Likewise.
1869         (Fmount_char_attribute_table): New function.
1870         (syms_of_chartab): Add new builtin function
1871         `mount-char-attribute-table'.
1872
1873 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874
1875         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1876         "w+" mode.
1877         (load_char_decoding_entry_maybe): Open database as read-only mode.
1878
1879         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1880         open database as "w+" mode.
1881         (load_char_attribute_maybe): Open database as read-only mode.
1882         (Fload_char_attribute_table): Likewise.
1883
1884 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1887         (char_table_description): Delete member `db_file'.
1888         (Fmake_char_table): Don't refer `ct->db_file'.
1889         (Fcopy_char_table): Likewise.
1890         (Fsave_char_attribute_table): Likewise.
1891         (Fclose_char_attribute_table): Likewise.
1892         (Freset_char_attribute_table): Likewise.
1893         (load_char_attribute_maybe): Likewise.
1894         (Fload_char_attribute_table): Likewise.
1895
1896         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1897
1898 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1899
1900         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1901         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1902         `ct->db' is living.
1903         (load_char_attribute_maybe): Likewise.
1904         (Fload_char_attribute_table): Likewise.
1905
1906 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1907
1908         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1909         `ct->db_file' unconditionally.
1910
1911 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1912
1913         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1914         UTF-2000.
1915         (char_table_description): Add description for `db_file' and `db'
1916         in UTF-2000.
1917         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1918         UTF-2000.
1919         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1920         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1921         (Fclose_char_attribute_table): New function.
1922         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1923         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1924         and `cit->db'.
1925         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1926         (syms_of_chartab): Add new builtin function
1927         `Fclose_char_attribute_table'.
1928
1929 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1930
1931         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1932         `db' in UTF-2000.
1933         (load_char_attribute_maybe): Change interface.
1934         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1935
1936 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1937
1938         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1939
1940 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1943         instead of `DECODE_CHAR' for mother; don't use special code for
1944         chinese-big5 to use code space of chinese-big5-1 and
1945         chinese-big5-2.
1946         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1947         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1948
1949         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1950         (MAX_CHAR_BIG5_CDP): Revival.
1951
1952 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1955         the XLFD registry-encoding name of `chinese-big5'.
1956
1957 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1958
1959         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1960         (Qchinese_big5_cdp): Deleted.
1961         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1962         (complex_vars_of_mule_charset): Delete coded-charset
1963         `chinese-big5-cdp'.
1964
1965         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1966         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1967         `CHARSET_ID_OFFSET - n' for private CCS.
1968         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1969         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1970         of `MIN_LEADING_BYTE'.
1971         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1972         `(CHARSET_ID_OFFSET - 97)'.
1973         (MIN_CHAR_BIG5_CDP): Deleted.
1974         (MAX_CHAR_BIG5_CDP): Deleted.
1975
1976 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1979
1980 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1983         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1984         chartab.c].
1985
1986         * chartab.c (Vutf_2000_version): Moved to mule.c.
1987         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1988
1989 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1990
1991         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1992         when HAVE_CHISE_CLIENT is not defined.
1993
1994         * mule.c (vars_of_mule): Provide feature `chise' when
1995         HAVE_CHISE_CLIENT is defined.
1996
1997 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1998
1999         * config.h.in (UTF2000): Add comment.
2000         (HAVE_CHISE_CLIENT): New macro.
2001
2002 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2003
2004         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2005         CONSP.
2006         (Fput_char_attribute): Likewise.
2007         (char_attribute_system_db_file): Encode file-name of attribute.
2008         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2009         the initial value.
2010
2011 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2012
2013         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2014         (Fsave_charset_mapping_table): Use
2015         `char_attribute_system_db_file'.
2016         (load_char_decoding_entry_maybe): Likewise.
2017
2018         * chartab.h (Qsystem_char_id): New external variable.
2019         (char_attribute_system_db_file): New prototype.
2020
2021         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2022         (char_attribute_system_db_file): New function.
2023         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2024         (Freset_char_attribute_table): Likewise.
2025         (load_char_attribute_maybe): Likewise.
2026         (Fload_char_attribute_table): Likewise.
2027         (syms_of_chartab): Add new symbol `system-char-id'.
2028
2029 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2030
2031         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2032         `XCHARSET_GRAPHIC(ccs)'.
2033
2034 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2037
2038 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2039
2040         * chartab.c (Q_ucs_variants): New variable.
2041         (syms_of_chartab): Add new symbol `->ucs-variants'.
2042         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2043         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2044         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2045
2046         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2047
2048         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2049         `HAVE_DATABASE' is defined.
2050         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2051         `HAVE_DATABASE' is defined.
2052
2053 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2054
2055         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2056         attribute-table.
2057         (Freset_char_attribute_table): New function.
2058         (syms_of_chartab): Add new builtin function
2059         `reset-char-attribute-table'.
2060
2061 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2062
2063         * chartab.c (load_char_attribute_maybe): Don't make directories.
2064
2065 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2066
2067         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2068
2069         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2070         for decoding-table.
2071
2072 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2073
2074         * mule-charset.c (Fsave_charset_mapping_table): Use
2075         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2076
2077         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2078         instead of `XCHARSET_CHARS'.
2079
2080 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2081
2082         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2083         (XCHARSET_BYTE_SIZE): Likewise.
2084
2085         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2086         mule-charset.c].
2087         (XCHARSET_BYTE_SIZE): Likewise.
2088
2089 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2090
2091         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2092         data-directory to store database.
2093         (Fsave_char_attribute_table): Likewise.
2094         (load_char_attribute_maybe): Likewise.
2095         (Fload_char_attribute_table): Likewise.
2096
2097 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2098
2099         * mule-charset.c (Fsave_charset_mapping_table): New function.
2100         (syms_of_mule_charset): Add new builtin function
2101         `save-charset-mapping-table'.
2102
2103 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2104
2105         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2106         (get_ccs_octet_table): New inline function.
2107         (put_ccs_octet_table): Likewise.
2108         (decoding_table_put_char): Use `get_ccs_octet_table' and
2109         `put_ccs_octet_table'.
2110         (decoding_table_remove_char): Use `decoding_table_put_char'.
2111         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2112
2113         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2114         into encoding_table.
2115         (make_charset): Use Qunbound instead Qnil as initial value of
2116         decoding_table.
2117
2118 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2119
2120         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2121         element is Qunloaded.
2122         (map_over_uint16_byte_table): Likewise.
2123         (map_over_byte_table): Likewise.
2124         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2125         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2126         database support, load encoding-table of the specified
2127         coded-charset if it is not loaded yet.
2128         (save_uint8_byte_table): New function of UTF-2000 with external
2129         database support.
2130         (save_uint16_byte_table): Likewise.
2131         (save_byte_table): Likewise.
2132         (Fput_char_attribute): Don't store value into external database
2133         even if the external database feature is supported in UTF-2000;
2134         set `attribute' as name of char-table if the external database
2135         feature is supported.
2136         (Fsave_char_attribute_table): New function in UTF-2000.
2137         (syms_of_chartab): Add new builtin function
2138         `save-char-attribute-table' in UTF-2000.
2139
2140 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2141
2142         * chartab.c (char_attribute_table_to_put): New variable in
2143         UTF-2000.
2144         (Qput_char_table_map_function): Likewise.
2145         (value_to_put): Likewise.
2146         (Fput_char_table_map_function): New function in UTF-2000.
2147         (put_char_table): Use `Fmap_char_attribute' for
2148         CHARTAB_RANGE_CHARSET in UTF-2000.
2149         (Fput_char_attribute): Store symbol instead of string in
2150         `XCHAR_TABLE_NAME (table)'.
2151         (load_char_attribute_maybe): Likewise.
2152         (syms_of_chartab): Add new symbol/function
2153         `put-char-table-map-function'.
2154
2155 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2156
2157         * database.h: Add new EXFUN for `Fmap_database'.
2158
2159         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2160         (syms_of_database): Likewise.
2161
2162         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2163         UTF-2000.
2164         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2165         (XCHAR_TABLE_UNLOADED): Likewise.
2166
2167         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2168         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2169         HAVE_DATABASE is defined.
2170         (char_attribute_table_to_load): New variable of UTF-2000 with
2171         external database support.
2172         (Qload_char_attribute_table_map_function): Likewise.
2173         (Fload_char_attribute_table_map_function): New function of
2174         UTF-2000 with external database support.
2175         (Fload_char_attribute_table): New function of UTF-2000.
2176         (Fmap_char_attribute): Call Fload_char_attribute_table if
2177         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2178         (syms_of_chartab): Add new symbol and function
2179         `load-char-attribute-table-map-function' in UTF-2000 with external
2180         database support; add new function `load-char-attribute-table' in
2181         UTF-2000.
2182
2183 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * chartab.h (load_char_attribute_maybe): New prototype for
2186         UTF-2000 with DATABASE support.
2187         (get_char_id_table): Use `load_char_attribute_maybe' if
2188         HAVE_DATABASE is defined.
2189
2190         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2191         with DATABASE support.
2192
2193 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * chartab.c (Fput_char_attribute): Use S-expression as key of
2196         external database.
2197
2198         * chartab.h (get_char_id_table): Use S-expression as key of
2199         external database.
2200
2201 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2204         if an element is not loaded, load the corresponding attributes
2205         from an external database.
2206         (map_over_uint16_byte_table): Likewise.
2207         (map_over_byte_table): Likewise.
2208         (map_char_table): Modify for `map_over_uint8_byte_table',
2209         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2210         element is not loaded, load the corresponding attributes from an
2211         external database.
2212         (Fput_char_attribute): Change initial values to Qunloaded.
2213
2214         * chartab.h (get_char_id_table): If a character attribute is not
2215         loaded and the attribute value is not found in an external
2216         database, store Qunbound as the attribute value.
2217
2218 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2219
2220         * chartab.c (BT_UINT8_unloaded): New macro.
2221         (UINT8_VALUE_P): Accept Qunloaded.
2222         (UINT8_ENCODE): Likewise.
2223         (UINT8_DECODE): Likewise.
2224         (BT_UINT16_unloaded): New macro.
2225         (UINT16_VALUE_P): Accept Qunloaded.
2226         (UINT16_ENCODE): Likewise.
2227         (UINT16_DECODE): Likewise.
2228         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2229         BT_UINT16_unloaded.
2230         (mark_char_table): Mark `ct->name' in UTF-2000.
2231         (char_table_description): Add `name' in UTF-2000.
2232         (Fmake_char_table): Initialize `ct->name'.
2233         (Fcopy_char_table): Copy `ct->name'.
2234         (Fput_char_attribute): Store value into an external database if
2235         HAVE_DATABASE is defined.
2236
2237         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2238         UTF-2000.
2239         (CHAR_TABLE_NAME): New macro in UTF-2000.
2240         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2241         (get_char_id_table): Try to read an external database if Qunloaded
2242         is stored in a table.
2243
2244         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2245         Qunloaded.
2246
2247 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2248
2249         * database.h: Add EXFUN definitions for Fopen_database,
2250         Fput_database, Fget_database and Fclose_database.
2251
2252         * data.c (Qunloaded): New variable in UTF-2000.
2253
2254         * lisp.h (Qunloaded): New variable in UTF-2000.
2255
2256 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * mule-charset.c (put_char_ccs_code_point): Modify for
2259         `decoding_table_remove_char' and `decoding_table_put_char'.
2260         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2261
2262         * char-ucs.h (decoding_table_remove_char): Change arguments to
2263         hide decoding_table vector.
2264         (decoding_table_put_char): Likewise.
2265
2266 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2267
2268         * mule-charset.c (decoding_table_remove_char): Moved to
2269         char-ucs.h.
2270         (decoding_table_put_char): Likewise.
2271
2272         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2273         from mule-charset.c].
2274         (decoding_table_remove_char): New inline function [moved from
2275         mule-charset.c].
2276         (decoding_table_put_char): Likewise.
2277
2278 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2279
2280         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2281         extension.
2282
2283 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2284
2285         * mule-charset.c (decode_builtin_char): Support mother charsets.
2286
2287 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2288
2289         * mule-charset.c (Q94x94x60): New variable.
2290         (charset_code_point): Support conversion `94x94x60'.
2291         (Fmake_charset): Likewise.
2292         (syms_of_mule_charset): Add new symbol `94x94x60'.
2293
2294         * char-ucs.h (CONVERSION_94x94x60): New macro.
2295
2296 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2297
2298         * mule-charset.c (charset_code_point): Unify code about
2299         `code-offset'.
2300
2301 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2302
2303         * mule-charset.c (charset_code_point): Merge code about builtin
2304         characters into code about mother charsets; don't use
2305         `range_charset_code_point'.
2306         (range_charset_code_point): Deleted.
2307
2308 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2309
2310         * mule-charset.c (Qcode_offset): New variable.
2311         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2312         `max-code'; accept new property `code-offset'.
2313         (syms_of_mule_charset): Add new symbol `code-offset'.
2314
2315 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * mule-charset.c (range_charset_code_point): Fixed.
2318
2319 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * mule-charset.c (decode_builtin_char): Change semantics of
2322         code-offset of coded-charset.
2323         (charset_code_point): Likewise.
2324         (range_charset_code_point): Likewise.
2325         (complex_vars_of_mule_charset): Modify for the change.
2326
2327 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * mule-charset.c (Fencode_char): Reverse arguments.
2330
2331         * mule-charset.c (charset_code_point): Fixed.
2332
2333 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2334
2335         * mule-charset.c (Vcharset_mojikyo): Deleted.
2336         (Vcharset_mojikyo_2022_1): Deleted.
2337         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2338         (Qmin_code): New variable in UTF-2000.
2339         (Qmax_code): Likewise.
2340         (Qmother): Likewise.
2341         (Qconversion): Likewise.
2342         (Q94x60): Likewise.
2343         (Qmojikyo): Deleted.
2344         (Qmojikyo_2022_1): Deleted.
2345         (Qmojikyo_pj_{1..22}): Deleted.
2346         (mark_charset): Mark `cs->mother'.
2347         (charset_description): Add description for `mother'.
2348         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2349         new arguments `mother' and `conversion'; use
2350         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2351         (charset_code_point): Moved from char-ucs.h; support `mother'
2352         charset feature.
2353         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2354         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2355         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2356         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2357         allow 2 as the value of `graphic' in UTF-2000; add new properties
2358         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2359         require `final' in UTF-2000; modify for `make_charset'.
2360         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2361         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2362         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2363         (Fencode_char): New function.
2364         (syms_of_mule_charset): Add new builtin function `encode-char' in
2365         UTF-2000; add new symbols `min-code', `max-code', `mother',
2366         `conversion' and `94x60'; delete symbols `mojikyo',
2367         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2368         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2369         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2370         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2371
2372         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2373         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2374
2375         * char-ucs.h (Vcharset_mojikyo): Deleted.
2376         (Vcharset_mojikyo_2022_1): Deleted.
2377         (LEADING_BYTE_MOJIKYO): Deleted.
2378         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2379         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2380         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2381         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2382         add new member `mother'; add new member `conversion'.
2383         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2384         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2385         (CHARSET_MOTHER): New macro.
2386         (CHARSET_CONVERSION): New macro.
2387         (CONVERSION_IDENTICAL): New macro.
2388         (CONVERSION_94x60): New macro.
2389         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2390         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2391         (XCHARSET_MOTHER): New macro.
2392         (XCHARSET_CONVERSION): New macro.
2393         (MIN_CHAR_MOJIKYO): Deleted.
2394         (MAX_CHAR_MOJIKYO): Deleted.
2395         (DECODE_MOJIKYO_2022): Deleted.
2396         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2397         (charset_code_point): Changed to non-inline function.
2398         (encode_char_1): Use `charset_code_point'.
2399         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2400
2401 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2402
2403         * lread.c (read_compiled_function): Fix prototype.
2404         (read_vector): Likewise.
2405
2406 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2407
2408         * lrecord.h (struct lrecord_header): Delete `older'.
2409         (set_lheader_implementation): Delete code for `older'.
2410         (set_lheader_older_implementation): Deleted.
2411         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2412         (OLDER_RECORD_P): Deleted.
2413         (OLDER_RECORD_HEADER_P): Deleted.
2414         (alloc_older_lcrecord): Deleted.
2415         (alloc_older_lcrecord_type): Deleted.
2416
2417         * alloc.c (all_older_lcrecords): Deleted.
2418         (alloc_older_lcrecord): Deleted.
2419         (disksave_object_finalization_1): Delete code for older objects.
2420         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2421         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2422
2423 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2424
2425         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2426         instead of `make_older_vector'.
2427         (put_char_ccs_code_point): Likewise.
2428         (mark_charset): Mark `cs->decoding_table'.
2429         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2430
2431         * lisp.h (make_older_vector): Deleted.
2432         (make_vector_newer): Deleted.
2433
2434         * config.h.in (HAVE_GGC): Deleted.
2435
2436         * alloc.c (make_older_vector): Deleted.
2437         (make_vector_newer_1): Deleted.
2438         (make_vector_newer): Deleted.
2439
2440 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2441
2442         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2443         (Qideograph_daikanwa_2): New variable.
2444         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2445         (complex_vars_of_mule_charset): Add new coded-charset
2446         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2447         `LEADING_BYTE_DAIKANWA'.
2448
2449         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2450         (LEADING_BYTE_DAIKANWA_1): New macro.
2451         (LEADING_BYTE_DAIKANWA_2): New macro.
2452         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2453
2454 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2455
2456         * mule-charset.c (complex_vars_of_mule_charset): Change
2457         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2458         the second revised version.
2459
2460 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461
2462         * mule-charset.c (Vcharset_ucs_smp): New variable.
2463         (Vcharset_ucs_sip): New variable.
2464         (Qucs_smp): New variable.
2465         (Qucs_sip): New variable.
2466         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2467         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2468         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2469         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2470         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2471         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2472
2473         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2474         (LEADING_BYTE_UCS_SIP): New macro.
2475         (MIN_CHAR_SMP): New macro.
2476         (MAX_CHAR_SMP): New macro.
2477         (MIN_CHAR_SIP): New macro.
2478         (MAX_CHAR_SIP): New macro.
2479
2480 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2481
2482         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2483         utf-2000.
2484
2485 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486
2487         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2488         value; don't store value into `encoding_table' of `Lisp_Charset'.
2489         (mark_charset): `encoding_table' was deleted.
2490         (charset_description): Likewise.
2491         (make_charset): Likewise.
2492         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2493         `put_char_ccs_code_point'.
2494
2495         * chartab.h (Fput_char_attribute): New EXFUN.
2496
2497         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2498         is unified with normal symbol space.
2499         (Fget_char_attribute): Likewise.
2500         (Fput_char_attribute): Likewise; behavior of
2501         `put_char_ccs_code_point' is changed.
2502
2503         * char-ucs.h: Include "elhash.h".
2504         (Vchar_attribute_hash_table): New external variable.
2505         (struct Lisp_Charset): Delete `encoding_table'.
2506         (CHARSET_ENCODING_TABLE): New implementation; refer
2507         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2508         `Lisp_Charset'.
2509
2510 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2511
2512         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2513         (cs) == 0.
2514
2515 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2516
2517         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2518         `chinese-big5'.
2519
2520 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2521
2522         * chartab.c (uint8_byte_table_description): New constant.
2523         (uint8-byte-table): Use `uint8_byte_table_description'.
2524         (uint16_byte_table_description): New constant.
2525         (uint16-byte-table): Use `uint16_byte_table_description'.
2526
2527 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2528
2529         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2530         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2531
2532 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2533
2534         * mule-charset.c (Vcharset_ucs_ks): New variable.
2535         (Qucs_ks): New variable.
2536         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2537         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2538
2539         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2540
2541 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2544         (Fdecode_char): Likewise.
2545
2546         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2547         chartab.h.
2548         (Fdefine_char): Modify for Fdecode_char.
2549         (Ffind_char): Likewise.
2550
2551         * mule-charset.c (Fdecode_char): Add new optional argument
2552         `defined-only'.
2553         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2554
2555 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2558         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2559         (allocate_coding_system): Initialize initial-charsets of
2560         CODESYS_BIG5 in XEmacs UTF-2000.
2561         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2562         CODESYS_BIG5 in XEmacs UTF-2000.
2563         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2564         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2565
2566         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2567         variables.
2568         (Qideograph_hanziku_{1 .. 12}): Likewise.
2569         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2570         .. 12}'.
2571         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2572         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2573         `ideograph-hanziku-{1 .. 12}'.
2574
2575         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2576         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2577         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2578         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2579         (DECODE_DEFINED_CHAR): New inline function.
2580         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2581
2582 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * mule-charset.c (Vcharset_china3_jef): Renamed from
2585         `Vcharset_japanese_jef_china3'.
2586         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2587         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2588         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2589         (syms_of_mule_charset): Rename `china3-jef' from
2590         `japanese-jef-china3'.
2591         (complex_vars_of_mule_charset): Likewise; rename
2592         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2593
2594         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2595         `LEADING_BYTE_JEF_CHINA3'.
2596         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2597         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2598
2599 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * mule-charset.c (encode_builtin_char_1): Comment out special code
2602         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2603
2604         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2605         (MAX_CHAR_MOJIKYO_0): Comment out.
2606         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2607         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2608         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2609         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2610
2611 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2614         (Qideograph_cbeta): New variable.
2615         (encode_builtin_char_1): Comment out special code for
2616         coded-charset `mojikyo' and `japanese-jef-china3'.
2617         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2618         (complex_vars_of_mule_charset): Add new coded-charset
2619         `ideograph-cbeta'.
2620
2621         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2622         (MIN_CHAR_CBETA): New macro.
2623         (MAX_CHAR_CBETA): New macro.
2624
2625 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2628         (LEADING_BYTE_JEF_CHINA3): New macro.
2629         (MIN_CHAR_JEF_CHINA3): New macro.
2630         (MAX_CHAR_JEF_CHINA3): Likewise.
2631         (DECODE_CHAR): Fixed.
2632
2633 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2634
2635         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2636         (Qjapanese_jef_china3): New variable.
2637         (encode_builtin_char_1): Support `japanese-jef-china3'.
2638         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2639         (complex_vars_of_mule_charset): Add new coded-charset
2640         `japanese-jef-china3'.
2641
2642 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2643
2644         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2645         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2646         94^4, 96^3, 96^4, 128^n and 256^n set.
2647         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2648         (map_char_table): Likewise.
2649
2650 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2651
2652         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2653         UTF-2000.
2654
2655 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2656
2657         * chartab.h (get_char_id_table): New inline function.
2658
2659         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2660         function.
2661
2662 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663
2664         * chartab.h (decode_char_table_range): New prototype in XEmacs
2665         UTF-2000.
2666         (put_char_id_table): New inline function in XEmacs UTF-2000.
2667
2668         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2669         function.
2670         (decode_char_table_range): Delete static declaration in XEmacs
2671         UTF-2000.
2672
2673 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2674
2675         * chartab.c (put_char_id_table): Use `put_char_table'.
2676
2677 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2678
2679         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2680         (map_over_uint16_byte_table): Likewise.
2681         (map_over_byte_table): Likewise.
2682         (map_char_table): Modify for `map_over_uint8_byte_table',
2683         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2684         UTF-2000.
2685
2686 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2687
2688         * chartab.c (struct map_char_table_for_charset_arg): New
2689         structure.
2690         (map_char_table_for_charset_fun): New function.
2691         (map_char_table): Use `map_char_table' for encoding_table of
2692         `range->charset'.
2693
2694 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2695
2696         * chartab.c (map_char_table): Check a character is found in
2697         range->charset instead of non default value is defined in
2698         char-table when range is CHARTAB_RANGE_ROW.
2699
2700 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * chartab.c (map_char_id_table): Deleted.
2703         (Fmap_char_attribute): Use `map_char_table' instead of
2704         `map_char_id_table'.
2705
2706 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2709         UTF-2000.
2710         (update_syntax_table): Deleted in XEmacs UTF-2000.
2711
2712         * syntax.c (find_defun_start): Use `syntax_table' instead of
2713         `mirror_syntax_table' in XEmacs UTF-2000.
2714         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2715         UTF-2000.
2716         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2717         XEmacs UTF-2000.
2718         (Fmatching_paren): Likewise.
2719         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2720         in XEmacs UTF-2000.
2721         (find_start_of_comment): Likewise.
2722         (find_end_of_comment): Likewise.
2723         (Fforward_comment): Likewise.
2724         (scan_lists): Likewise.
2725         (char_quoted): Likewise.
2726         (Fbackward_prefix_chars): Likewise.
2727         (scan_sexps_forward): Likewise.
2728         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2729         (update_syntax_table): Likewise.
2730
2731         * search.c (skip_chars): Use `syntax_table' instead of
2732         `mirror_syntax_table' in XEmacs UTF-2000.
2733         (wordify): Likewise.
2734         (Freplace_match): Likewise.
2735
2736         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2737         `mirror_syntax_table' in XEmacs UTF-2000.
2738         (WORDCHAR_P_UNSAFE): Likewise.
2739         (re_match_2_internal): Likewise.
2740
2741         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2742         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2743
2744         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2745         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2746
2747         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2748         XEmacs UTF-2000.
2749
2750         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2751         UTF-2000.
2752         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2753         (char_table_description): Delete `mirror_table' in XEmacs
2754         UTF-2000.
2755         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2756         UTF-2000.
2757         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2758         (Fcopy_char_table): Likewise.
2759         (put_char_table): Don't call `update_syntax_table' in XEmacs
2760         UTF-2000.
2761
2762         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2763         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2764         (casify_region_internal): Likewise.
2765
2766         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2767
2768         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2769         `mirror_syntax_table' in XEmacs UTF-2000.
2770
2771         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2772         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2773         (Fexpand_abbrev): Likewise.
2774
2775 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2776
2777         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2778
2779 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2780
2781         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2782         (map_over_uint16_byte_table): Likewise.
2783         (map_over_byte_table): Likewise.
2784         (get_char_id_table): Refer `cit->default_value'.
2785         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2786         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2787         of character-id ranges.
2788         (mark_char_table): Mark `ct->default_value'.
2789         (char_table_description): Add `default_value'.
2790         (fill_char_table): Use `default_value'.
2791         (decode_char_table_range): Decode `nil' as
2792         `CHARTAB_RANGE_DEFAULT'.
2793         (get_char_id_table): Refer `cit->default_value'.
2794         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2795         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2796         temporary hack; check value of char-table is bound or not.
2797         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2798
2799         * chartab.h (struct Lisp_Char_Table): Add new member
2800         `default_value' in XEmacs UTF-2000.
2801         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2802         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2803         UTF-2000.
2804
2805 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2806
2807         * chartab.h (Lisp_Char_ID_Table): Deleted.
2808
2809         * chartab.c (char_table_description): Fix typo.
2810         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2811         `Lisp_Char_ID_Table'.
2812
2813 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2816         `CHAR_ID_TABLE_P'.
2817
2818         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2819         `CHAR_ID_TABLE_P'.
2820
2821         * chartab.h (XCHAR_ID_TABLE): Deleted.
2822         (XSETCHAR_ID_TABLE): Deleted.
2823         (CHAR_ID_TABLE_P): Deleted.
2824
2825         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2826         `CHAR_ID_TABLE_P'.
2827         (Fget_composite_char): Likewise.
2828         (put_char_table): Likewise.
2829         (add_char_attribute_alist_mapper): Fixed.
2830         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2831         `CHAR_ID_TABLE_P'.
2832         (Fget_char_attribute): Likewise.
2833         (Fget_char_attribute): Likewise.
2834         (Fmap_char_attribute): Likewise.
2835
2836         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2837         `CHAR_ID_TABLE_P'.
2838         (encode_char_1): Likewise.
2839
2840 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2841
2842         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2843         `XCHAR_ID_TABLE'.
2844
2845         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2846         instead of `XCHAR_ID_TABLE'.
2847         (remove_char_ccs): Likewise.
2848
2849         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2850         `XCHAR_ID_TABLE'.
2851         (Fget_composite_char): Likewise.
2852         (Fchar_variants): Likewise.
2853         (put_char_table): Likewise.
2854         (add_char_attribute_alist_mapper): Likewise.
2855         (Fchar_attribute_alist): Likewise.
2856         (Fget_char_attribute): Likewise.
2857         (Fput_char_attribute): Likewise.
2858         (Fmap_char_attribute): Likewise.
2859         (Fmap_char_attribute): Likewise.
2860
2861         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2862         `XCHAR_ID_TABLE'.
2863         (encode_char_1): Likewise.
2864
2865 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2866
2867         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2868         `Lisp_Char_ID_Table'.
2869         (mark_char_id_table): Deleted.
2870         (print_char_id_table): Likewise.
2871         (char_id_table_equal): Likewise.
2872         (char_id_table_hash): Likewise.
2873         (char_id_table_description): Likewise.
2874         (char_id_table): Likewise.
2875         (make_char_id_table): Use `Fmake_char_table' and
2876         `fill_char_table'.
2877         (get_char_id_table): Use `Lisp_Char_Table' instead of
2878         `Lisp_Char_ID_Table'.
2879         (put_char_id_table): Likewise.
2880         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2881         `XCHAR_ID_TABLE'.
2882         (Fremove_char_attribute): Likewise.
2883         (syms_of_chartab): Don't define type `char-id-table'.
2884
2885         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2886         (char_id_table): Likewise.
2887         (GC_CHAR_ID_TABLE_P): Likewise.
2888         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2889         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2890         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2891         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2892         (get_char_id_table): Use `Lisp_Char_Table' instead of
2893         `Lisp_Char_ID_Table'.
2894         (put_char_id_table_0): Likewise.
2895         (put_char_id_table): Likewise.
2896
2897 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2898
2899         * chartab.h: Lisp_Byte_Table related codes are moved from
2900         chartab.h.
2901
2902         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2903
2904 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2905
2906         * chartab.h: Don't include "chartab.h".
2907         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2908         (Lisp_Char_ID_Table): Likewise.
2909         (char_id_table): Likewise.
2910         (XCHAR_ID_TABLE): Likewise.
2911         (XSETCHAR_ID_TABLE): Likewise.
2912         (CHAR_ID_TABLE_P): Likewise.
2913         (GC_CHAR_ID_TABLE_P): Likewise.
2914         (get_char_id_table): Likewise.
2915
2916         * char-ucs.h: Include "chartab.h".
2917         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2918         (Lisp_Char_ID_Table): Likewise.
2919         (char_id_table): Likewise.
2920         (XCHAR_ID_TABLE): Likewise.
2921         (XSETCHAR_ID_TABLE): Likewise.
2922         (CHAR_ID_TABLE_P): Likewise.
2923         (GC_CHAR_ID_TABLE_P): Likewise.
2924         (get_char_id_table): Likewise.
2925
2926 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2927
2928         * chartab.c (copy_uint8_byte_table): New function.
2929         (copy_uint16_byte_table): New function.
2930         (copy_byte_table): New function.
2931         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2932         characters to call.
2933         (map_over_uint16_byte_table): Likewise.
2934         (map_over_byte_table): Likewise.
2935         (get_byte_table): Move prototype to chartab.h.
2936         (put_byte_table): Likewise.
2937         (put_char_id_table_0): Moved to chartab.h.
2938         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2939         (char_table_entry_equal): Likewise.
2940         (char_table_entry_hash): Likewise.
2941         (char_table_entry_description): Likewise.
2942         (char_table_entry): Likewise.
2943         (make_char_table_entry): Likewise.
2944         (copy_char_table_entry): Likewise.
2945         (get_non_ascii_char_table_value): Likewise.
2946         (map_over_charset_ascii): Likewise.
2947         (map_over_charset_control_1): Likewise.
2948         (map_over_charset_row): Likewise.
2949         (map_over_other_charset): Likewise.
2950         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2951         (print_char_table): Likewise.
2952         (char_table_equal): Likewise.
2953         (char_table_hash): Likewise.
2954         (char_table_description): Likewise.
2955         (fill_char_table): Likewise.
2956         (Fcopy_char_table): Likewise.
2957         (get_char_table): Likewise.
2958         (Fget_range_char_table): Likewise.
2959         (put_char_table): Likewise.
2960         (map_char_table): Likewise.
2961         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2962         UTF-2000.
2963
2964 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2965
2966         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2967         `Vauto_fill_chars' in XEmacs UTF-2000.
2968
2969         * chartab.h (get_byte_table): New prototype [moved from
2970         chartab.c].
2971         (put_byte_table): Likewise [moved from chartab.c].
2972         (put_char_id_table_0): New inline function [moved from chartab.c].
2973         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2974         (Lisp_Char_Table_Entry): Likewise.
2975         (char_table_entry): Likewise.
2976         (XCHAR_TABLE_ENTRY): Likewise.
2977         (XSETCHAR_TABLE_ENTRY): Likewise.
2978         (CHAR_TABLE_ENTRYP): Likewise.
2979         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2980         (NUM_ASCII_CHARS): Likewise.
2981         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2982         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2983
2984 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2985
2986         * chartab.c (get_char_id_table): Change interface.
2987         (put_char_id_table_0): New function.
2988         (put_char_id_table): Change interface; new implementation.
2989         (Fget_composite_char): Modify for interface change of
2990         `get_char_id_table'.
2991         (Fchar_variants): Likewise.
2992         (add_char_attribute_alist_mapper): Likewise.
2993         (Fchar_attribute_alist): Likewise.
2994         (Fget_char_attribute): Likewise.
2995         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2996         as same as character as the first argument like `put-char-table';
2997         modify for interface change of `put_char_id_table'.
2998         (Fremove_char_attribute): Modify for interface change of
2999         `put_char_id_table'.
3000
3001 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * text-coding.c: Sync up with XEmacs 21.2.41.
3004         (COMPOSE_ADD_CHAR): Modify for interface change of
3005         `get_char_id_table'.
3006
3007         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3008         change of `put_char_id_table'.
3009         (remove_char_ccs): Likewise.
3010
3011         * chartab.h (put_char_id_table): Change interface.
3012
3013         * char-ucs.h (get_char_id_table): Change interface.
3014         (charset_code_point): Modify for interface change of
3015         `get_char_id_table'.
3016         (encode_char_1): Likewise.
3017
3018 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3019
3020         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3021         argument `ccs'.
3022         (map_over_uint16_byte_table): Likewise.
3023         (map_over_byte_table): Likewise.
3024         (map_char_id_table): Add new argument `range' like
3025         `map_char_table'.
3026         (Fmap_char_attribute): Add new argument `range' like
3027         `Fmap_char_table'.
3028
3029 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * chartab.c (map_over_uint8_byte_table): Change interface of
3032         mapping function to use struct chartab_range instead of Emchar.
3033         (map_over_uint16_byte_table): Likewise.
3034         (map_over_byte_table): Likewise.
3035         (map_char_id_table): Likewise.
3036         (struct slow_map_char_id_table_arg): Deleted.
3037         (slow_map_char_id_table_fun): Deleted.
3038         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3039         function `slow_map_char_table_fun' instead of struct
3040         `slow_map_char_id_table_arg' and function
3041         `slow_map_char_id_table_fun'.
3042
3043 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3044
3045         * mule-charset.c: Move char-it-table related codes to chartab.c.
3046         (Vutf_2000_version): Moved to chartab.c.
3047         (Fdefine_char): Likewise.
3048         (Ffind_char): Likewise.
3049         (syms_of_mule_charset): Move types `uint8-byte-table',
3050         `uint16-byte-table', `byte-table' and `char-id-table' to
3051         chartab.c; move functions `char_attribute_list,
3052         `find_char_attribute_table, `char_attribute_alist,
3053         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3054         `map_char_attribute, `define_char, `find_char, `char_variants and
3055         `get_composite_char to chartab.c; move symbols `=>ucs',
3056         `->decomposition', `compat', `isolated', `initial', `medial',
3057         `final', `vertical', `noBreak', `fraction', `super', `sub',
3058         `circle', `square', `wide', `narrow', `small' and `font' to
3059         chartab.c.
3060         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3061         setting codes for `Vcharacter_composition_table' and
3062         `Vcharacter_variant_table' to chartab.c.
3063         (complex_vars_of_mule_charset): Move setting code for
3064         `Vchar_attribute_hash_table' to chartab.c.
3065
3066         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3067         (make_char_id_table): New prototype.
3068         (put_char_id_table): Likewise.
3069         (Fget_char_attribute): Likewise.
3070
3071         * chartab.c: Move char-id-table related code from mule-charset.c.
3072         (Vutf_2000_version): Moved from mule-charset.c.
3073
3074         * char-ucs.h (Qucs): New external variable.
3075         (put_char_ccs_code_point): New prototype.
3076         (remove_char_ccs): Likewise.
3077
3078 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3079
3080         * mule-charset.c (Vcharset_ucs_jis): New variable.
3081         (Qucs_jis): Likewise.
3082         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3083         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3084
3085         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3086
3087 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3088
3089         * mule-charset.c (map_over_uint8_byte_table): New function.
3090         (map_over_uint16_byte_table): Likewise.
3091         (map_over_byte_table): Likewise.
3092         (map_char_id_table): Likewise.
3093         (slow_map_char_id_table_fun): Likewise.
3094         (Fmap_char_attribute): Likewise.
3095         (syms_of_mule_charset): Add new function `map-char-attribute'.
3096
3097 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3098
3099         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3100         (syms_of_mule_charset): Add new function `find-char'.
3101
3102 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3103
3104         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3105         XEmacs UTF-2000.
3106         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3107         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3108         XEmacs UTF-2000.
3109         (complex_vars_of_mule_charset): Add new coded-charset
3110         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3111         `ideograph-gt-pj-*'.
3112
3113         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3114
3115 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * mule-charset.c (encode_builtin_char_1): Purge codes about
3118         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3119         {MIN|MAX}_CHAR_HEBREW.
3120         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3121         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3122
3123         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3124         (MAX_CHAR_GREEK): Purged.
3125         (MIN_CHAR_CYRILLIC): Purged.
3126         (MAX_CHAR_CYRILLIC): Purged.
3127         (MIN_CHAR_HEBREW): Commented out.
3128         (MAX_CHAR_HEBREW): Likewise.
3129
3130 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3131
3132         * mule-charset.c (Qto_ucs): New variable.
3133         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3134         (Fdefine_char): Likewise.
3135         (syms_of_mule_charset): Add new symbol `=>ucs'.
3136
3137 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3138
3139         * mule-charset.c (Fdecode_char): Fixed.
3140
3141 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3144         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3145         "tcvn5712-1".
3146
3147 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3148
3149         * mule-charset.c (Vcharset_ucs_big5): New variable.
3150         (Qucs_big5): Likewise.
3151         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3152         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3153
3154         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3155
3156 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3157
3158         * mule-charset.c (decode_builtin_char): Check Big5 code range
3159         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3160
3161 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3162
3163         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3164         (Qchinese_gb12345): Likewise.
3165         (Fdecode_builtin_char): Fixed.
3166         (syms_of_mule_charset): Add `chinese-gb12345'.
3167         (complex_vars_of_mule_charset): Add coded-charset
3168         `chinese-gb12345'.
3169
3170         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3171         (LEADING_BYTE_CHINESE_GB12345): New macro.
3172
3173 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3174
3175         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3176         and `latin-viscii-upper' for `latin-viscii'.
3177
3178 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3179
3180         * mule-charset.c (Fdecode_builtin_char): Comment out
3181         regularization code for ISO-IR GR representation.
3182
3183 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3184
3185         * mule-charset.c (decode_builtin_char): New function; renamed from
3186         `make_builtin_char'; return -1 instead of signal.
3187         (Fdecode_builtin_char): Use `decode_builtin_char'.
3188
3189         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3190         `make_builtin_char'.
3191         (DECODE_CHAR): Use `decode_builtin_char' instead of
3192         `make_builtin_char'; use mapping table of `chinese-big5' for
3193         `chinese-big5-{1,2}'.
3194
3195 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3196
3197         * text-coding.c (char_encode_big5): New function.
3198         (char_finish_big5): Likewise.
3199         (reset_encoding_stream): Use `char_encode_big5' and
3200         `char_finish_big5' for CODESYS_BIG5.
3201         (mule_encode): Don't use `encode_coding_big5'.
3202         (encode_coding_big5): Deleted.
3203
3204 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3205
3206         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3207         0x81- in XEmacs UTF-2000.
3208         (detect_coding_big5): Likewise.
3209
3210 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3211
3212         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3213         generate character-id if the CCS property does not have
3214         corresponding predefined character.
3215         (make_builtin_char): Return -1 if corresponding predefined
3216         character is not found.
3217         (Fdecode_char): Return nil if corresponding character is not
3218         found.
3219         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3220         don't map to builtin ucs space.
3221
3222 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3223
3224         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3225         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3226
3227 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3228
3229         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3230         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3231         (Qideograph_gt): Likewise.
3232         (Qideograph_gt_pj_{1..11}): Likewise.
3233         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3234         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3235         `ideograph-gt-pj-11'.
3236         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3237         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3238         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3239
3240         * char-ucs.h (LEADING_BYTE_GT): New macro.
3241         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3242         (MIN_CHAR_GT): Likewise.
3243         (MAX_CHAR_GT): Likewise.
3244
3245 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3246
3247         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3248         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3249
3250         * doprnt.c (unsigned_int_converters): Add `c'.
3251         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3252
3253         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3254         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3255         `MIN_CHAR_MOJIKYO'.
3256         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3257         (MAX_CHAR_MOJIKYO_0): New macro.
3258         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3259
3260 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * mule-charset.c (Fdefine_char): Delete cemented out code.
3263         (encode_builtin_char_1): Modify for new allocation of builtin
3264         Mojikyo characters.
3265
3266         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3267
3268 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3269
3270         * mule-charset.c (Vcharset_ucs_cns): New variable.
3271         (Qucs_cns): New variable.
3272         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3273         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3274
3275 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3276
3277         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3278
3279 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3280
3281         * search.c (search_buffer): Make `charset_base_code' as
3282         character-id >> 6 to eliminate the corresponding last byte in
3283         UTF-8 representation [I'm not sure it is right thing].
3284         (boyer_moore): Likewise.
3285
3286 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3287
3288         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3289         representation in MULE.
3290
3291 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3292
3293         * text-coding.c (Fmake_coding_system): Use
3294         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3295         `EXTERNAL_PROPERTY_LIST_LOOP'.
3296
3297 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3298
3299         * text-coding.c (decode_output_utf8_partial_char): New function.
3300         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3301
3302 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3303
3304         * text-coding.c (decode_coding_utf8): Output original byte
3305         sequence if it is broken; change order of conditions.
3306
3307         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3308         of conditions.
3309
3310         * mb-multibyte.h (BYTE_ASCII_P):
3311         Use bit ops for char-signedness safety.
3312         (BYTE_C0_P): Use bit ops for char-signedness safety.
3313         (BYTE_C1_P): Use bit ops for char-signedness safety.
3314
3315         * character.h: (XCHAR_OR_CHAR_INT):
3316         Always use inline function.
3317         Remove redundant type checking assert() - XINT will abort quite
3318         nicely.
3319
3320 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3321
3322         * text-coding.c: (Fencode_shift_jis_char):
3323         (Fencode_big5_char):
3324         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3325         Replace 0 with '\0' when working with bytes.
3326         Replace initial "(" with "\(" in docstrings.
3327
3328         (Fmake_coding_system):
3329         When type is ccl and value is vector, register it with a proper
3330         symbol.  And checks whether the given ccl program is valid.
3331         (mule_decode): When calling ccl_driver, if src indicates
3332         NULL pointer, set an empty string instead.
3333         (mule_encode): Likewise.
3334
3335         (detect_eol_type):
3336         (detect_coding_sjis):
3337         (decode_coding_sjis):
3338         (detect_coding_big5):
3339         (decode_coding_big5):
3340         (detect_coding_ucs4):
3341         (decode_coding_ucs4):
3342         (detect_coding_utf8):
3343         (decode_coding_utf8):
3344         (detect_coding_iso2022):
3345         (decode_coding_iso2022):
3346         (decode_coding_no_conversion):
3347         (mule_decode):
3348         Make all detecting and decoding functions take an Extbyte * arg.
3349         (text_encode_generic):
3350         (encode_coding_big5):
3351         (encode_coding_no_conversion):
3352         (mule_encode):
3353         Make all encoding functions take a Bufbyte * arg.
3354         Use size_t instead of unsigned int for memory sizes.
3355         Only cast to unsigned char whenever dereferencing Extbyte *.
3356
3357         (struct lrecord_description fcd_description_1): Use countof.
3358         (complex_vars_of_file_coding):
3359         Use countof instead of sizeof.
3360         Use CHECK_NATNUM instead of CHECK_INT.
3361
3362 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * mule-charset.c (Fget_char_attribute): Add new optional argument
3365         `default-value'.
3366         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3367         (remove_char_ccs): Likewise.
3368
3369 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3370
3371         * text-coding.c (char_encode_shift_jis): New implementation in
3372         UTF-2000.
3373         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3374         ...)'.
3375
3376         * mule-charset.c (Vcharset_chinese_big5): New variable in
3377         UTF-2000.
3378         (Qchinese_big5): New variable in UTF-2000.
3379         (BIG5_SAME_ROW): New macro in UTF-2000.
3380         (make_builtin_char): Use builtin characters of
3381         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3382         characters of `Vcharset_chinese_big5'.
3383         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3384         (complex_vars_of_mule_charset): Add new coded-charset
3385         `chinese-big5' in UTF-2000.
3386
3387         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3388         (Vcharset_chinese_big5): New external variable declaration.
3389         (Vcharset_japanese_jisx0208_1990): Likewise.
3390
3391 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3392
3393         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3394         function.
3395         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3396
3397 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3400         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3401         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3402         `mojikyo-pj-*'.
3403
3404 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3405
3406         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3407
3408 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3409
3410         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3411         to 0.17.
3412
3413 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3414
3415         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3416         for `CHARSET_BY_ATTRIBUTES'.
3417         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3418         `CHARSET_BY_ATTRIBUTES'.
3419
3420         * text-coding.c (struct decoding_stream): Rename member `CH' to
3421         `CPOS'.
3422         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3423         (decode_coding_sjis): Likewise.
3424         (decode_coding_big5): Likewise.
3425         (decode_coding_ucs4): Likewise.
3426         (decode_coding_utf8): Likewise.
3427         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3428         `CHARSET_BY_ATTRIBUTES'.
3429         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3430         `str->counter'; decode 3, 4 bytes sets.
3431         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3432         sets.
3433         (decode_coding_no_conversion): Use `str->cpos' instead of
3434         `str->ch'.
3435
3436         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3437         (Qmojikyo_2022_1): New variable.
3438         (make_charset): Don't use `CHARSET_TYPE_*'.
3439         (range_charset_code_point): Support coded-charset
3440         `mojikyo-2022-1'.
3441         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3442         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3443         `CHARSET_BY_ATTRIBUTES'.
3444         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3445         `CHARSET_BY_ATTRIBUTES'.
3446         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3447         (complex_vars_of_mule_charset): Add new coded-charset
3448         `mojikyo-2022-1'.
3449
3450         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3451         interface; changed to inline function.
3452
3453         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3454         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3455         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3456         (CHARSET_TYPE_94): Deleted.
3457         (CHARSET_TYPE_94X94): Deleted.
3458         (CHARSET_TYPE_96): Deleted.
3459         (CHARSET_TYPE_96X96): Deleted.
3460         (CHARSET_TYPE_128): Deleted.
3461         (CHARSET_TYPE_128X128): Deleted.
3462         (CHARSET_TYPE_256): Deleted.
3463         (CHARSET_TYPE_256X256): Deleted.
3464         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3465         to inline function.
3466         (DECODE_MOJIKYO_2022): New inline function.
3467         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3468         `Vcharset_mojikyo_2022_1'.
3469
3470 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3471
3472         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3473         instead of `EQ'.
3474         (put_byte_table): Likewise.
3475         (char_id_table_equal): Use `get_byte_table' [new implementation].
3476
3477 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3478
3479         * mule-charset.c: Include <limits.h> in UTF-2000.
3480         (BT_UINT8_MIN): New macro in UTF-2000.
3481         (BT_UINT8_MAX): New macro in UTF-2000.
3482         (BT_UINT8_t): New macro in UTF-2000.
3483         (BT_UINT8_nil): New macro in UTF-2000.
3484         (BT_UINT8_unbound): New macro in UTF-2000.
3485         (INT_UINT8_P): New inline function in UTF-2000.
3486         (UINT8_VALUE_P): New inline function in UTF-2000.
3487         (UINT8_ENCODE): New inline function in UTF-2000.
3488         (UINT8_DECODE): New inline function in UTF-2000.
3489         (mark_uint8_byte_table): New function in UTF-2000.
3490         (print_uint8_byte_table): New function in UTF-2000.
3491         (uint8_byte_table_equal): New function in UTF-2000.
3492         (uint8_byte_table_hash): New function in UTF-2000.
3493         (make_uint8_byte_table): New function in UTF-2000.
3494         (uint8_byte_table_same_value_p): New function in UTF-2000.
3495         (BT_UINT16_MIN): New macro in UTF-2000.
3496         (BT_UINT16_MAX): New macro in UTF-2000.
3497         (BT_UINT16_t): New macro in UTF-2000.
3498         (BT_UINT16_nil): New macro in UTF-2000.
3499         (BT_UINT16_unbound): New macro in UTF-2000.
3500         (INT_UINT16_P): New inline function in UTF-2000.
3501         (UINT16_VALUE_P): New inline function in UTF-2000.
3502         (UINT16_ENCODE): New inline function in UTF-2000.
3503         (UINT16_DECODE): New inline function in UTF-2000.
3504         (UINT8_TO_UINT16): New inline function in UTF-2000.
3505         (mark_uint16_byte_table): New function in UTF-2000.
3506         (print_uint16_byte_table): New function in UTF-2000.
3507         (uint16_byte_table_equal): New function in UTF-2000.
3508         (uint16_byte_table_hash): New function in UTF-2000.
3509         (make_uint16_byte_table): New function in UTF-2000.
3510         (uint16_byte_table_same_value_p): New function in UTF-2000.
3511         (print_byte_table): New function in UTF-2000.
3512         (byte-table): Use `print_byte_table' as printer.
3513         (make_byte_table): Delete second argument `older'.
3514         (byte_table_same_value_p): New function in UTF-2000.
3515         (copy_byte_table): Deleted.
3516         (get_byte_table): New function in UTF-2000.
3517         (put_byte_table): New function in UTF-2000.
3518         (print_char_id_table): New function in UTF-2000.
3519         (char-id-table): Use `print_char_id_table' as printer.
3520         (make_char_id_table): Delete second argument `older'.
3521         (get_char_id_table): Use `get_byte_table [new implementation].
3522         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3523         implementation].
3524         (Ffind_char_attribute_table): New function in UTF-2000.
3525         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3526         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3527         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3528         (syms_of_mule_charset): Add new function
3529         `find-char-attribute-table' in UTF-2000.
3530
3531         * lrecord.h (enum lrecord_type): Add
3532         `lrecord_type_uint16_byte_table' and
3533         `lrecord_type_uint8_byte_table'.
3534
3535         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3536         (Lisp_Uint8_Byte_Table): New type.
3537         (XUINT8_BYTE_TABLE): New macro.
3538         (XSETUINT8_BYTE_TABLE): New macro.
3539         (UINT8_BYTE_TABLE_P): New macro.
3540         (GC_UINT8_BYTE_TABLE_P): New macro.
3541         (struct Lisp_Uint16_Byte_Table): New structure.
3542         (Lisp_Uint16_Byte_Table): New type.
3543         (XUINT16_BYTE_TABLE): New macro.
3544         (XSETUINT16_BYTE_TABLE): New macro.
3545         (UINT16_BYTE_TABLE_P): New macro.
3546         (GC_UINT16_BYTE_TABLE_P): New macro.
3547
3548 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3549
3550         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3551         (Vcharacter_ideographic_strokes_table): Deleted.
3552         (Vcharacter_total_strokes_table): Deleted.
3553         (Vcharacter_morohashi_daikanwa_table): Deleted.
3554         (Vcharacter_decomposition_table): Deleted.
3555         (Qname): Deleted because it is duplicated.
3556         (Qideographic_radical): Deleted.
3557         (Qideographic_strokes): Deleted.
3558         (Qtotal_strokes): Deleted.
3559         (Qmorohashi_daikanwa): Deleted.
3560         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3561         `ideographic-radical', `ideographic-strokes', `total-strokes',
3562         `morohashi-daikanwa' and `->decomposition'.
3563         (Fget_char_attribute): Likewise.
3564         (Fput_char_attribute): Likewise; use `make-vector' instead of
3565         `make_older_vector' for `->decomposition' value.
3566         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3567         `ideograph-daikanwa'.
3568         (syms_of_mule_charset): Delete builtin symbols `name',
3569         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3570         `morohashi-daikanwa'.
3571         (vars_of_mule_charset): Don't setup
3572         `Vcharacter_ideographic_radical_table',
3573         `Vcharacter_ideographic_strokes_table',
3574         `Vcharacter_total_strokes_table',
3575         `Vcharacter_morohashi_daikanwa_table' and
3576         `Vcharacter_decomposition_table'.
3577
3578 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3579
3580         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3581         `make_older_vector', `make_vector_newer_1' and
3582         `make_vector_newer'.
3583
3584         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3585         `make_older_vector' and `make_vector_newer'.
3586
3587         * config.h.in (HAVE_GGC): New macro.
3588
3589 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3590
3591         * mule-charset.c (struct char_attribute_list_closure): New
3592         structure in UTF-2000.
3593         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3594         (Fchar_attribute_list): Likewise.
3595         (Fset_charset_mapping_table): Use `make_vector_newer'.
3596         (Fdecode_builtin_char): New function in UTF-2000.
3597         (syms_of_mule_charset): Add new function `char-attribute-list' and
3598         `decode-builtin-char' in UTF-2000.
3599
3600         * lisp.h (make_vector_newer): New prototype.
3601
3602         * alloc.c (make_vector_newer_1): New function.
3603         (make_vector_newer): New function.
3604
3605 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3606
3607         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3608         50100)'.
3609
3610 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3611
3612         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3613         (Vcharacter_attribute_table): Deleted.
3614         (Vcharacter_name_table): Deleted.
3615         (put_char_attribute): Deleted.
3616         (remove_char_attribute): Deleted.
3617         (struct char_attribute_alist_closure): New structure.
3618         (add_char_attribute_alist_mapper): New function.
3619         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3620         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3621         (Fget_char_attribute): Likewise.
3622         (Fput_char_attribute): Likewise.
3623         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3624         of `remove_char_attribute'.
3625         (Fdefine_char): Return character.
3626         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3627         and `Vcharacter_name_table'.
3628         (complex_vars_of_mule_charset): Likewise
3629         `Vchar_attribute_hash_table'.
3630
3631 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3632
3633         * character.h (CHARC_CHARSET): New macro.
3634         (CHARC_CHARSET_ID): New macro.
3635         (CHARC_CODE_POINT): New macro.
3636         (CHARC_COLUMNS): New macro.
3637         (CHARC_TO_CHAR): New inline function.
3638         (CHARC_EQ): New inline function.
3639         (CHARC_ASCII_EQ): New inline function.
3640         (CHARC_IS_SPACE): New inline function.
3641         (ASCII_TO_CHARC): New inline function.
3642
3643         * char-ucs.h (encode_char_2): Deleted.
3644         (ENCODE_CHAR): Use `encode_char_1' again.
3645         (breakup_char_1): Likewise.
3646         (CHAR_TO_CHARC): New inline function.
3647
3648         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3649
3650 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3651
3652         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3653         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3654         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3655         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3656         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3657         `CHARC_IS_SPACE'.
3658         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3659
3660         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3661         `CHARC_CODE_POINT'.
3662         (x_output_display_block): Use `CHARC_CHARSET' and
3663         `CHARC_ASCII_EQ'.
3664
3665         * redisplay-tty.c (tty_output_display_block): Use
3666         `CHARC_ASCII_EQ'.
3667         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3668
3669         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3670
3671         * insdel.c (find_charsets_in_charc_string): Use
3672         `CHARC_CHARSET_ID'.
3673         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3674         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3675         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3676         (convert_charc_string_into_malloced_string): Likewise.
3677
3678 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3679
3680         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3681         instead of <Emchar_dynarr *> for buf; use
3682         `convert_bufbyte_string_into_charc_dynarr' instead of
3683         `convert_bufbyte_string_into_emchar_dynarr'; use
3684         `find_charsets_in_charc_string' instead of
3685         `find_charsets_in_emchar_string'.
3686
3687         * redisplay.h:
3688         - Include "character.h".
3689         (struct rune): New member `cglyph'; delete member `chr'.
3690
3691         * redisplay.c (redisplay_text_width_charc_string): New function;
3692         delete `redisplay_text_width_emchar_string'.
3693         (rtw_charc_dynarr): New variable; renamed from
3694         `rtw_emchar_dynarr'.
3695         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3696         `rtw_emchar_dynarr'; use
3697         `convert_bufbyte_string_into_charc_dynarr' instead of
3698         `convert_bufbyte_string_into_emchar_dynarr'; use
3699         `redisplay_text_width_charc_string' instead of
3700         `redisplay_text_width_emchar_string'.
3701         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3702         instead of `rtw_emchar_dynarr'; use
3703         `convert_bufbyte_string_into_charc_dynarr' instead of
3704         `convert_bufbyte_string_into_emchar_dynarr'.
3705         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3706         `redisplay_text_width_charc_string' instead of
3707         `redisplay_text_width_emchar_string'.
3708         (create_text_block): Modify for <struct rune> change.
3709         (generate_formatted_string_db): Likewise.
3710         (create_string_text_block): Likewise.
3711         (pixel_to_glyph_translation): Likewise.
3712
3713         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3714         instead of <const Emchar *>.
3715         (x_text_width): Likewise.
3716         (x_output_display_block): Use <Charc_dynarr *> instead
3717         <Emchar_dynarr *>; modify for <structure rune> change.
3718         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3719         *>.
3720
3721         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3722         <const Emchar *>; use `charc_string_displayed_columns' instead of
3723         `emchar_string_displayed_columns'.
3724         (tty_output_display_block): Use <Charc_dynarr *> instead of
3725         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3726         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3727         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3728         `tty_output_emchar_dynarr_dynarr'.
3729         (tty_output_charc_dynarr): New function; delete
3730         `tty_output_charc_dynarr'.
3731
3732         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3733         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3734         <Emchar_dynarr *> for buf; use
3735         `convert_bufbyte_string_into_charc_dynarr' instead of
3736         `convert_bufbyte_string_into_emchar_dynarr'.
3737
3738         * frame.c (title_string_charc_dynarr): New variable; renamed from
3739         `title_string_emchar_dynarr'.
3740         (generate_title_string): Use `title_string_charc_dynarr' instead
3741         of `title_string_emchar_dynarr'; use
3742         `convert_charc_string_into_malloced_string' instead of
3743         `convert_emchar_string_into_malloced_string'.
3744         (init_frame): Use `title_string_charc_dynarr' instead of
3745         `title_string_emchar_dynarr'.
3746
3747         * console.h:
3748         - Include "character.h".
3749         (struct console_methods): Use <const Charc *> instead of <const
3750         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3751         <Emchar_dynarr *> in output_string_method.
3752
3753         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3754         <Emchar_dynarr *>.
3755
3756         * console-stream.c (stream_text_width): Use <const Charc *>
3757         instead of <const Emchar *>.
3758
3759         * character.h (Charc_dynarr): New type.
3760
3761         * char-ucs.h (structure Charc): New structure; define new type
3762         `Charc'.
3763
3764         * char-lb.h (DECODE_CHAR): New inline function.
3765         (encode_char_1): New inline function.
3766         (ENCODE_CHAR): New macro.
3767         (structure Charc): New structure; define new type `Charc'.
3768
3769         * char-1byte.h (Vcharset_control_1): New macro.
3770         (Vcharset_latin_iso8859_1): New macro.
3771         (DECODE_CHAR): New inline function.
3772         (encode_char_1): New inline function.
3773         (ENCODE_CHAR): New macro.
3774         (structure Charc): New structure; define new type `Charc'.
3775
3776         * insdel.c (find_charsets_in_charc_string): New function; delete
3777         `find_charsets_in_emchar_string'.
3778         (charc_string_displayed_columns): New function; delete
3779         `emchar_string_displayed_columns'.
3780         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3781         `convert_bufbyte_string_into_emchar_dynarr'.
3782         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3783         `convert_charc_string_into_bufbyte_dynarr'.
3784         (convert_charc_string_into_malloced_string): New function; delete
3785         `convert_charc_string_into_malloced_string'.
3786
3787         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3788         `find_charsets_in_emchar_string'.
3789         (charc_string_displayed_columns): New prototype; delete
3790         `emchar_string_displayed_columns'.
3791         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3792         `convert_charc_string_into_bufbyte_dynarr'.
3793         (convert_charc_string_into_malloced_string): New prototype; delete
3794         `convert_charc_string_into_malloced_string'.
3795
3796 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3797
3798         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3799
3800 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3801
3802         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3803
3804         * char-ucs.h: Use <short> for <Charset_ID>.
3805
3806         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3807         <Charset_ID>.
3808
3809 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3810
3811         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3812         to 0.16.
3813
3814 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3815
3816         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3817         variable.
3818         (Qmorohashi_daikanwa): New variable.
3819         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3820         for `morohashi-daikanwa' attribute.
3821         (Fget_char_attribute): Likewise.
3822         (Fput_char_attribute): Likewise.
3823         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3824         has the same value of `ideograph-daikanwa'.
3825         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3826         (vars_of_mule_charset): Setup
3827         `Vcharacter_morohashi_daikanwa_table'.
3828
3829 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3830
3831         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3832         attributes.
3833         (add_charset_to_list_mapper): Add `key' instead of
3834         `XCHARSET_NAME (value)' to return aliases.
3835
3836 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3837
3838         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3839         variable.
3840         (Vcharacter_ideographic_strokes_table): New variable.
3841         (Qideographic_radical): New variable.
3842         (Qideographic_strokes): New variable.
3843         (Fchar_attribute_alist): Use
3844         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3845         attribute; use `Vcharacter_ideographic_strokes_table' for
3846         `ideographic-strokes' attribute.
3847         (Fget_char_attribute): Likewise.
3848         (Fput_char_attribute): Likewise.
3849         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3850         `ideographic-strokes'.
3851         (vars_of_mule_charset): Setup
3852         `Vcharacter_ideographic_radical_table' and
3853         `Vcharacter_ideographic_strokes_table'.
3854
3855 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3856
3857         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3858         (Qtotal_strokes): New variable.
3859         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3860         `total-strokes' attribute.
3861         (Fget_char_attribute): Likewise.
3862         (Fput_char_attribute): Likewise.
3863         (syms_of_mule_charset): Add new symbol `total-strokes'.
3864         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3865
3866 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3867
3868         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3869         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3870         are found.
3871         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3872         `->decomposition' attribute.
3873         (Fput_char_attribute): Likewise.
3874         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3875
3876 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3877
3878         * mule-charset.c (decoding_table_check_elements): New function.
3879         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3880
3881 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3882
3883         * mule-charset.c (Fset_charset_mapping_table): Use
3884         `put_char_ccs_code_point'.
3885
3886 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3887
3888         * mule-charset.c (decoding_table_put_char): New inline function.
3889         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3890
3891 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3892
3893         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3894         (XCHARSET_BYTE_SIZE): New macro.
3895         (decoding_table_remove_char): New inline function.
3896         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3897         `decoding_table_remove_char'.
3898         (remove_char_ccs): Use `decoding_table_remove_char'.
3899         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3900
3901 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3902
3903         * mule-charset.c (Vcharacter_name_table): New variable.
3904         (Qname): New variable.
3905         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3906         attribute.
3907         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3908         `Vcharacter_name_table' for `name' attribute.
3909         (Fremove_char_attribute): Use function `remove_char_ccs'.
3910         (put_char_ccs_code_point): New function.
3911         (remove_char_ccs): New function.
3912         (syms_of_mule_charset): Add new symbol `name'.
3913         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3914
3915 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3916
3917         * mule-charset.c (make_byte_table): Add new argument `older'.
3918         (make_char_id_table): Likewise.
3919         (copy_char_id_table): Comment out because it is not used.
3920         (put_char_id_table): Modify for `make_byte_table'.
3921         (Fput_char_attribute): Make encoding_table as older object;
3922         inherit older bit of `Vcharacter_composition_table'.
3923         (mark_charset): Don't mark `cs->encoding_table'.
3924         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3925         normal object; make `Vcharacter_composition_table' as an older
3926         object; delete staticpro for `Vcharacter_composition_table'; make
3927         `Vcharacter_variant_table' as a normal object.
3928
3929         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3930         (mark_object): Don't check older object in UTF-2000.
3931
3932         * lrecord.h (struct lrecord_header): Add new member `older' in
3933         UTF-2000.
3934         (set_lheader_implementation): Setup `SLI_header->older' in
3935         UTF-2000.
3936         (set_lheader_older_implementation): New macro in UTF-2000.
3937         (OLDER_RECORD_P): New macro in UTF-2000.
3938         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3939         (alloc_older_lcrecord): New prototype in UTF-2000.
3940         (alloc_older_lcrecord_type): New macro in UTF-2000.
3941
3942 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3943
3944         * mule-charset.c (byte_table_description): Use
3945         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3946         (char_id_table_description): Delete bogus `, 1'.
3947         (Fget_char_attribute): Refer encoding_table of each coded-charset
3948         to get value of coded-charset attribute of a character.
3949         (Fput_char_attribute): Use `make_older_vector' instead of
3950         `make_vector'; use encoding_table of each coded-charset to store
3951         value of coded-charset attribute of a character.
3952         (Fremove_char_attribute): Use encoding_table of each coded-charset
3953         to store value of coded-charset attribute of a character.
3954         (mark_charset): Mark `cs->encoding_table'; don't mark
3955         `cs->decoding_table'.
3956         (charset_description): Add description of new member
3957         `encoding_table'.
3958         (make_charset): Initialize `encoding_table'.
3959
3960         * char-ucs.h (struct Lisp_Charset): Add new member
3961         `encoding_table'.
3962         (CHARSET_ENCODING_TABLE): New macro.
3963         (XCHARSET_ENCODING_TABLE): New macro.
3964         (charset_code_point): New implementation.
3965         (encode_char_1): Likewise.
3966
3967         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3968         (disksave_object_finalization_1): Call finalizers of
3969         `all_older_lcrecords' in UTF-2000.
3970         (make_older_vector): New function in UTF-2000.
3971         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3972         UTF-2000.
3973
3974         * lisp.h (make_older_vector): New prototype in UTF-2000.
3975
3976 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3977
3978         * lrecord.h (enum lrecord_type): Rename
3979         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3980
3981         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3982         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3983         `get_char_code_table'.
3984
3985         * mule-charset.c (mark_char_id_table): Renamed from
3986         `mark_char_code_table'.
3987         (char_id_table_equal): Renamed from `char_code_table_equal'.
3988         (char_id_table_hash): Renamed from `char_code_table_hash'.
3989         (make_char_id_table): Renamed from `make_char_code_table'.
3990         (copy_char_id_table): Renamed from `copy_char_code_table'.
3991         (get_char_id_table): Renamed from `get_char_code_table'.
3992         (put_char_id_table): Renamed from `put_char_code_table'.
3993         (to_char_id): Renamed from `to_char_code'.
3994
3995         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3996         `Lisp_Char_Code_Table'.
3997         (char_id_table): Renamed from `char_code_table'.
3998         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3999         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4000         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4001         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4002         (get_char_id_table): Renamed from `get_char_code_table'.
4003
4004 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4005
4006         * lrecord.h (enum lrecord_type): Rename
4007         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4008
4009         * mule-charset.c (mark_byte_table): Renamed from
4010         `mark_char_byte_table'.
4011         (byte_table_equal): Renamed from `char_byte_table_equal'.
4012         (byte_table_hash): Renamed from `byte_table_hash'.
4013         (make_byte_table): Renamed from `make_byte_table'.
4014         (copy_byte_table): Renamed from `copy_char_byte_table'.
4015
4016         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4017         `Lisp_Char_Byte_Table'.
4018         (byte_table): Renamed from `char_byte_table'.
4019         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4020         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4021         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4022         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4023
4024 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4025
4026         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4027         (dfc_convert_to_internal_format): Likewise.
4028         
4029         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4030         * text-coding.c (Fcoding_system_alias_p): New function.
4031         * text-coding.c (Fcoding_system_aliasee): New function.
4032         * text-coding.c (append_suffix_to_symbol): New function.
4033         * text-coding.c (dangling_coding_system_alias_p): New function.
4034         * text-coding.c (Ffind_coding_system):
4035         * text-coding.c (Fcopy_coding_system):
4036         * text-coding.c (encode_coding_no_conversion):
4037         * text-coding.c (syms_of_file_coding):
4038         * text-coding.c (vars_of_file_coding):
4039         Rewrite coding system alias code.
4040         Allow nested aliases, like symbolic links.
4041         Allow redefinition of coding system aliases.
4042         Prevent existence of dangling coding system aliases.
4043         Eliminate convert_to_external_format.
4044         Eliminate convert_to_internal_format.
4045         
4046         * text-coding.c: Change enum eol_type to eol_type_t.
4047
4048 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4049
4050         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4051         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4052
4053         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4054         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4055
4056 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4057
4058         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4059         `ideograph-daikanwa'.
4060
4061         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4062         (Vcharset_ucs_bmp): Likewise.
4063         (Vcharset_mojikyo): Add new extern variable definition.
4064         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4065         (Vcharset_latin_iso8859_3): Likewise.
4066         (Vcharset_latin_iso8859_4): Likewise.
4067         (Vcharset_latin_iso8859_9): Likewise.
4068         (Vcharset_latin_viscii_lower): Likewise.
4069         (Vcharset_latin_viscii_upper): Likewise.
4070         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4071         `mojikyo' code-point is used to decode.
4072         (encode_char_2): New function [to convert `mojikyo' code-point to
4073         Mojikyo font encoding].
4074         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4075         (breakup_char_1): Likewise.
4076         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4077
4078 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4079
4080         * text-coding.c (Fmake_coding_system): Add document about
4081         `disable-composition' property.
4082
4083 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4084
4085         * text-coding.c (Qdisable_composition): New variable; delete
4086         `Qcomposite'.
4087         (Fmake_coding_system): Add new property `disable-composite';
4088         delete property `composite'.
4089         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4090         instead of `!CODING_SYSTEM_COMPOSITE'.
4091         (syms_of_file_coding): Add new symbol `disable-composition';
4092         delete symbol `composite'.
4093
4094         * file-coding.h (struct Lisp_Coding_System): Add
4095         `disable_composition'; delete `enable_composition'.
4096         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4097         `CODING_SYSTEM_COMPOSITE'.
4098         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4099         `XCODING_SYSTEM_COMPOSITE'.
4100
4101 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4102
4103         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4104         to 0.15.
4105
4106 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4107
4108         * text-coding.c (Qcomposite): New variable.
4109         (Fmake_coding_system): Add new property `composite'.
4110         (struct decoding_stream): Add `combined_char_count',
4111         `combined_chars' and `combining_table' in UTF-2000.
4112         (COMPOSE_FLUSH_CHARS): New macro.
4113         (COMPOSE_ADD_CHAR): New macro.
4114         (reset_decoding_stream): Reset `str->combined_char_count' and
4115         `str->combining_table' in UTF-2000.
4116         (decode_coding_iso2022): Modify for character-decomposition.
4117         (syms_of_file_coding): Add new symbol `composite'.
4118
4119 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4120
4121         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4122         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4123         of `Vcharacter_composition_table' if `->decomposition' property
4124         has only 1 element.
4125         (Qlatin_tcvn5712): New variable.
4126         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4127         (complex_vars_of_mule_charset): Add new coded-charset
4128         `latin-tcvn5712'.
4129
4130         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4131
4132 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4133
4134         * file-coding.h (struct Lisp_Coding_System): Add
4135         `enable_composition'.
4136         (CODING_SYSTEM_COMPOSITE): New macro.
4137         (XCODING_SYSTEM_COMPOSITE): New macro.
4138
4139 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4140
4141         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4142
4143 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4144
4145         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4146         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4147
4148 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4149
4150         * mule-charset.c (Vcharset_mojikyo): New variable.
4151         (Fdefine_char): Don't use coded-charset which does not have
4152         non-builtin character range to allocate character-id.
4153         (Qmojikyo): New variable.
4154         (syms_of_mule_charset): Add new symbol `mojikyo'.
4155         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4156
4157         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4158         (LEADING_BYTE_MOJIKYO): New macro.
4159         (MIN_CHAR_MOJIKYO): New macro.
4160         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4161         (MAX_CHAR_MOJIKYO): New macro.
4162
4163 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4164
4165         * mule-charset.c (remove_char_attribute): Fixed.
4166
4167 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4168
4169         * mule-charset.c (remove_char_attribute): New function.
4170         (Fremove_char_attribute): New function.
4171         (encode_builtin_char_1): Comment out builtin-support for
4172         greek-iso8859-7 and cyrillic-iso8859-5.
4173         (Fdecode_char): Check `code' is an integer.
4174         (syms_of_mule_charset): Add `remove-char-attribute'.
4175         (MIN_CHAR_GREEK): Deleted.
4176         (MAX_CHAR_GREEK): Likewise.
4177         (MIN_CHAR_CYRILLIC): Likewise.
4178         (MAX_CHAR_CYRILLIC): Likewise.
4179         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4180         MAX_CHAR_GREEK for `greek-iso8859-7'.
4181
4182         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4183         (MAX_CHAR_GREEK): Likewise.
4184         (MIN_CHAR_CYRILLIC): Likewise.
4185         (MAX_CHAR_CYRILLIC): Likewise.
4186
4187 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4188
4189         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4190         format is used without `ucs' property.
4191         (Fdecode_char): Fix problem with GR representation.
4192         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4193         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4194
4195 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * mule-charset.c (make_builtin_char): New function.
4198         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4199         (Fset_charset_mapping_table): Modify for new representation of
4200         code-point.
4201         (Fdecode_char): New function.
4202         (syms_of_mule_charset): Add new builtin function `decode-char' in
4203         UTF-2000.
4204
4205         * char-ucs.h (make_builtin_char): New prototype.
4206         (DECODE_CHAR): New inline function.
4207         (MAKE_CHAR): Use `DECODE_CHAR'.
4208
4209 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4210
4211         * text-coding.c (parse_charset_conversion_specs): Use
4212         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4213         `XCHARSET_TYPE'.
4214         (iso2022_designate): Likewise.
4215
4216         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4217         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4218
4219         * mule-charset.c (Vcharset_ucs): New variable.
4220         (print_charset): Change design; use `CHARSET_CHARS' and
4221         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4222         (make_charset): Change signature to specify `chars' and
4223         `dimension' instead of `type'.
4224         (range_charset_code_point): Modify for 256^n-set.
4225         (encode_builtin_char_1): Encode as `ucs' in default.
4226         (Fmake_charset): Modify for `make_charset'.
4227         (Fmake_reverse_direction_charset): Likewise.
4228         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4229         UTF-2000.
4230         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4231         for `make_charset'.
4232
4233         * char-ucs.h (Vcharset_ucs): New variable.
4234         (LEADING_BYTE_UCS): New macro.
4235         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4236         and `chars' to `unsigned short' from `unsigned int'.
4237         (CHARSET_TYPE): Deleted.
4238         (XCHARSET_TYPE): Deleted.
4239
4240 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4241
4242         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4243
4244         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4245         (ENCODE_CHAR): New macro.
4246
4247 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4248
4249         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4250         to 0.14 (Kawachi-Katakami).
4251
4252 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4253
4254         * text-coding.c (char_encode_shift_jis): Modify for
4255         `charset_code_point'.
4256         (char_encode_iso2022): Likewise.
4257
4258         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4259         (integer) instead of list of <Lisp_Object>s (integers) as the
4260         format of code-point of a coded-charset.
4261         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4262         (encode_builtin_char_1): New function; delete
4263         `split_builtin_char'.
4264         (charset_code_point): Return <int> instead of <Lisp_Object>.
4265         (Fsplit_char): Don't use `SPLIT_CHAR'.
4266
4267         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4268         prototype for `split_builtin_char'.
4269         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4270         (charset_code_point): Likewise.
4271         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4272         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4273
4274 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4275
4276         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4277         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4278
4279 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4280
4281         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4282
4283         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4284         (MAX_CHAR_OBS_94x94): Deleted.
4285
4286 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4287
4288         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4289
4290         * char-ucs.h (MAX_CHAR_BMP): New macro.
4291
4292 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4293
4294         * text-coding.c: Sync with r21-2-24.
4295
4296 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4297
4298         * file-coding.c: Modify for UTF-2000.
4299
4300 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4301
4302         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4303         to 0.13 (Takaida).
4304
4305 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4306
4307         * mule-charset.c (split_builtin_char): Delete builtin support for
4308         `katakana-jisx0201'.
4309         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4310         BMP area in builtin representation.
4311
4312         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4313         `Vcharset_katakana_jisx0201'.
4314
4315 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4316
4317         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4318         (Qisolated): New variable.
4319         (Qinitial): New variable.
4320         (Qmedial): New variable.
4321         (Qfinal): New variable.
4322         (Qvertical): New variable.
4323         (Qsmall): New variable.
4324         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4325         `Qvertical' and `Qsmall'.
4326         (Qmojikyo_pj_[1 .. 21]): New variable.
4327         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4328         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4329         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4330         .. 21]'.
4331
4332 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4333
4334         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4335         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4336         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4337
4338 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4339
4340         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4341         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4342         BMP.
4343         (Qjapanese_jisx0208_1990): New variable.
4344         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4345         (complex_vars_of_mule_charset): Add new coded-charset
4346         `japanese-jisx0208-1990'.
4347
4348         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4349         (MIN_CHAR_JIS_X0208_1990): New macro.
4350         (MAX_CHAR_JIS_X0208_1990): New macro.
4351
4352 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4353
4354         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4355         coded-charset is not found.
4356
4357 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4358
4359         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4360         (Fdefine_char): Use `Fmake_char'.
4361
4362 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4363
4364         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4365         (Vcharset_hiragana_jisx0208): Deleted.
4366         (Vcharset_katakana_jisx0208): Deleted.
4367         (Qideograph_daikanwa): New variable.
4368         (Qhiragana_jisx0208): Deleted.
4369         (Qkatakana_jisx0208): Deleted.
4370         (split_builtin_char): Split `ideograph-daikanwa'.
4371         (Fsplit_char): New implementation for UTF-2000.
4372         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4373         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4374         (complex_vars_of_mule_charset): Add new coded-charset
4375         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4376         `katakana-jisx0208'.
4377
4378         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4379         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4380         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4381         (MIN_CHAR_DAIKANWA): New macro.
4382         (MAX_CHAR_DAIKANWA): New macro.
4383
4384 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4385
4386         * data.c (Fstring_to_number): Don't recognize floating point if
4387         base is not 10.
4388
4389 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4390
4391         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4392
4393 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4394
4395         * mule-charset.c (Qsquare): New variable.
4396         (to_char_code): Add `Qsquare'.
4397         (syms_of_mule_charset): Add new symbol `square'.
4398
4399 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4400
4401         * mule-charset.c (Qcircle): New variable.
4402         (to_char_code): Add `Qcircle'.
4403         (syms_of_mule_charset): Add new symbol `circle'.
4404
4405 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4406
4407         * mule-charset.c (Qfont): New variable.
4408         (to_char_code): Add `Qfont'.
4409         (syms_of_mule_charset): Add new symbol `font'.
4410
4411 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * mule-charset.c (Qsub): New variable.
4414         (to_char_code): Add `Qsub'.
4415         (syms_of_mule_charset): Add new symbol `sub'.
4416
4417 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * mule-charset.c (Fput_char_attribute): Convert each element of
4420         VALUE to GL position if ATTRIBUTE is a GR-set,
4421
4422 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4423
4424         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4425         coded-charset is a GR-set.
4426
4427 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4428
4429         * mule-charset.c (Fput_char_attribute): Check each element of
4430         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4431
4432 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4433
4434         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4435         UTF-2000.
4436         (Qethiopic_ucs): New variable in UTF-2000.
4437         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4438         (complex_vars_of_mule_charset): Add new coded-charset
4439         `ethiopic-ucs' in UTF-2000.
4440
4441         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4442         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4443         9)'.
4444         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4445         10)'.
4446         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4447
4448 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4449
4450         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4451         `ascii'.
4452
4453 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4454
4455         * mule-charset.c (Vcharacter_variant_table): New variable.
4456         (Q_ucs): New variable.
4457         (Fchar_variants): New function.
4458         (Fput_char_attribute): Register `->ucs' value to
4459         `Vcharacter_variant_table'.
4460         (syms_of_mule_charset): Add new function `char-variants' and new
4461         symbol `->ucs'.
4462         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4463
4464 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4465
4466         * mule-charset.c (get_char_code_table): Allow negative character
4467         code.
4468         (put_char_code_table): Likewise.
4469         (Vcharacter_composition_table): New variable.
4470         (Q_decomposition): New variable.
4471         (Qwide): New variable.
4472         (Qnarrow): New variable.
4473         (Qcompat): New variable.
4474         (QnoBreak): New variable.
4475         (Qsuper): New variable.
4476         (Qfraction): New variable.
4477         (to_char_code): New function.
4478         (Fget_composite_char): New function.
4479         (Fput_char_attribute): Register `->decomposition' value to
4480         `Vcharacter_composition_table'.
4481         (syms_of_mule_charset): Add new function `get-composite-char', new
4482         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4483         `super' and `fraction'.
4484         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4485
4486 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4489         character; copy the return value.
4490
4491 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4494
4495         * mule-charset.c (range_charset_code_point): Must use make_int.
4496         (split_builtin_char): New function.
4497
4498 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4499
4500         * mule-charset.c (char_byte_table): Change name from
4501         "char-code-table" to "char-byte-table".
4502         (mark_char_code_table): New function.
4503         (char_code_table_equal): New function.
4504         (char_code_table_hash): New function.
4505         (char_code_table_description): New constant.
4506         (char_code_table): New type.
4507         (make_char_code_table): New function.
4508         (copy_char_code_table): New function.
4509         (get_char_code_table): Modify for `char_code_table' type.
4510         (put_char_code_table): Likewise.
4511         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4512         (Kashiwara).
4513
4514         * char-ucs.h (char_code_table): New type.
4515         (XCHAR_CODE_TABLE): New macro.
4516         (XSETCHAR_CODE_TABLE): New macro.
4517         (CHAR_CODE_TABLE_P): New macro.
4518         (GC_CHAR_CODE_TABLE_P): New macro.
4519         (struct Lisp_Char_Code_Table): New structure.
4520
4521 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4522
4523         * mule-charset.c (Fmake_charset): Setup byte_offset for
4524         {94|96}^n-set.
4525
4526 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4527
4528         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4529         character.
4530
4531 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4532
4533         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4534         is found.
4535
4536 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4537
4538         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4539         charset, it is regarded as a charset.
4540         (put_char_attribute): New function in UTF-2000.
4541         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4542         charset, mapping-table of the charset is modified.
4543         (Fdefine_char): New function in UTF-2000.
4544         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4545         `Fput_char_attribute'.
4546         (syms_of_mule_charset): Add new function `define-char' and new
4547         symbol `ucs' in UTF-2000.
4548         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4549
4550 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4551
4552         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4553         non-UTF-2000 configuration.
4554
4555 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4556
4557         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4558         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4559
4560         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4561         deleted.
4562         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4563         (Fset_charset_mapping_table): Likewise.
4564
4565         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4566         (CHARSET_ENCODING_TABLE): Delete.
4567         (XCHARSET_ENCODING_TABLE): Delete.
4568         (charset_code_point): New interface.
4569
4570 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4573         instead of `charset_get_byte1' and `charset_get_byte2'.
4574
4575         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4576         (charset_get_byte2): Deleted.
4577
4578 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4579
4580         * char-ucs.h (SPLIT_CHAR): New inline function.
4581         (breakup_char_1): Use `SPLIT_CHAR'.
4582
4583         * mule-charset.c (range_charset_code_point): New function.
4584         (charset_code_point): New function.
4585
4586         * char-ucs.h (range_charset_code_point): New interface.
4587         (breakup_char_1): Use `range_charset_code_point'.
4588
4589 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4590
4591         * mule-charset.c (Fmake_charset): Delete unused local variable
4592         `code_offset'.
4593
4594         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4595         (breakup_char_1): Find a charset and code-point in
4596         `Vcharacter_attribute_table'.
4597
4598 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4599
4600         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4601         to 0.10 (Yao).
4602
4603 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4604
4605         * mule-charset.c (Vcharacter_attribute_table): New variable.
4606         (Fchar_attribute_alist): New function.
4607         (Fget_char_attribute): New function.
4608         (Fput_char_attribute): New function.
4609         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4610         too.
4611         (syms_of_mule_charset): Add new function `char-attribute-alist',
4612         `get-char-attribute' and `put-char-attribute'.
4613         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4614
4615 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4616
4617         * mule-charset.c (Fmake_charset): Just use
4618         `get_unallocated_leading_byte'.
4619
4620         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4621         sets; don't use final-byte based number for private sets.
4622
4623 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4624
4625         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4626         integer.
4627
4628 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4629
4630         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4631         to 0.9.
4632
4633 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4634
4635         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4636         of `CHAR_LEADING_BYTE' in UTF-2000.
4637
4638         * insdel.c (find_charsets_in_bufbyte_string): Use
4639         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4640         (find_charsets_in_emchar_string): Likewise.
4641
4642         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4643         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4644
4645         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4646         (CHAR_CHARSET_ID): New macro.
4647
4648 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4649
4650         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4651         charset-id - MIN_LEADING_BYTE.
4652         (put_char_table): Likewise.
4653
4654 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4655
4656         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4657         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4658         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4659         (CHARSET_ID_OFFSET): New macro.
4660         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4661         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4662         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4663         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4664         4).
4665         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4666         5).
4667         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4668         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4669         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4670         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4671         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4672
4673 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4674
4675         * mule-charset.c (next_allocated_leading_byte): New variable in
4676         UTF-2000.
4677         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4678         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4679         (get_unallocated_leading_byte): Simply use
4680         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4681         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4682         UTF-2000.
4683
4684         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4685         (MAX_LEADING_BYTE_PRIVATE): New macro.
4686         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4687         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4688
4689 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4690
4691         * mule-charset.c (Fmake_charset): Allocate final-byte based
4692         charset-id for 94-set, 96-set and 94x94-set.
4693
4694 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4695
4696         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4697         ambiguous `else'.
4698         (Fmake_charset): Likewise.
4699         (complex_vars_of_mule_charset): Modify the font registry of
4700         `ucs-bmp' not to match `Ethiopic-Unicode'.
4701
4702 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4703
4704         * mule-charset.c (complex_vars_of_mule_charset): Add font
4705         registory of `ucs-bmp'.
4706
4707 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4708
4709         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4710         coded-charsets in `default-coded-charset-priority-list' when
4711         breaking up a character.
4712
4713         * mule-charset.c (Vcharset_latin_viscii): New variable.
4714         (Qlatin_viscii): New variable.
4715         (make_charset): Don't use `decoding_table'.
4716         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4717         byte_offset.
4718         (Fset_charset_mapping_table): New implementation.
4719         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4720         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4721         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4722         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4723         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4724         charset `latin_viscii'.
4725
4726         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4727         (CHARSET_TYPE_94X94): Change to 1 from 2.
4728         (CHARSET_TYPE_96): Change to 2 from 1.
4729         (CHARSET_TYPE_128): New macro.
4730         (CHARSET_TYPE_128X128): Change to 5 from 4.
4731         (CHARSET_TYPE_256): New macro.
4732         (CHARSET_TYPE_256X256): Change to 7 from 5.
4733         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4734
4735 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4736
4737         * text-coding.c (char_encode_shift_jis): Refer
4738         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4739         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4740
4741         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4742         (char_byte_table_equal): New function in UTF-2000.
4743         (char_byte_table_hash): New function in UTF-2000.
4744         (char_byte_table_description): New constant in UTF-2000.
4745         (char_byte_table): New type in UTF-2000.
4746         (make_char_byte_table): New function in UTF-2000.
4747         (copy_char_byte_table): New function in UTF-2000.
4748         (make_char_code_table): New macro in UTF-2000.
4749         (get_char_code_table): New function in UTF-2000.
4750         (put_char_code_table): New function in UTF-2000.
4751         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4752         (charset_description): Add setting in UTF-2000.
4753         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4754         `CHARSET_TO_BYTE1_TABLE(cs)'.
4755         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4756         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4757         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4758         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4759         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4760         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4761         `CHARSET_TO_BYTE2_TABLE(cs)'.
4762
4763         * char-ucs.h (char_byte_table): New type.
4764         (XCHAR_BYTE_TABLE): New macro.
4765         (XSETCHAR_BYTE_TABLE): New macro.
4766         (CHAR_BYTE_TABLE_P): New macro.
4767         (GC_CHAR_BYTE_TABLE_P): New macro.
4768         (struct Lisp_Char_Byte_Table): New structure.
4769         (get_char_code_table): New interface.
4770         (Emchar_to_byte_table): Deleted.
4771         (get_byte_from_character_table): Deleted.
4772         (struct Lisp_Charset): Add `encoding_table'; delete
4773         `to_byte1_table' and `to_byte2_table'.
4774         (CHARSET_ENCODING_TABLE): New macro.
4775         (CHARSET_TO_BYTE1_TABLE): Deleted.
4776         (CHARSET_TO_BYTE2_TABLE): Deleted.
4777         (XCHARSET_ENCODING_TABLE): New macro.
4778         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4779         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4780
4781 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4782
4783         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4784         `vietnamese-viscii-*'.
4785
4786 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4787
4788         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4789         (Qvietnamese_viscii_upper): New variable.
4790         (Fdefine_charset_alias): New function.
4791         (syms_of_mule_charset): Add new function `define-charset-alias'.
4792         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4793         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4794         `latin-viscii-*'.
4795
4796 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4797
4798         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4799         (MAX_CHAR_OBS_94x94): New macro.
4800         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4801         for 94x94 sets.
4802
4803         * mule-charset.c (put_byte_from_character_table): Change unit size
4804         from 128 to 256.
4805         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4806         not defined.
4807         (Fmake_reverse_direction_charset): Modify dummy argument of
4808         `make_charset' for non-UTF-2000 environment.
4809
4810 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4811
4812         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4813
4814         * mule-charset.c (destroy_byte_from_character_table): New macro.
4815         (latin_jisx0201_to_ucs): Deleted.
4816         (latin_iso8859_2_to_ucs): Deleted.
4817         (latin_iso8859_3_to_ucs): Deleted.
4818         (latin_iso8859_4_to_ucs): Deleted.
4819         (latin_iso8859_9_to_ucs): Deleted.
4820         (latin_viscii_lower_to_ucs): Deleted.
4821         (latin_viscii_upper_to_ucs): Deleted.
4822         (mark_charset): Mark `cs->decoding_table'.
4823         (Fcharset_mapping_table): Fix DOC-string.
4824         (Fset_charset_mapping_table): New function.
4825         (syms_of_mule_charset): Add nwe function
4826         `set-charset-mapping-table'.
4827         (complex_vars_of_mule_charset): Don't setup and use
4828         `latin_*_to_ucs'.
4829
4830 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4831
4832         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4833         charset.
4834
4835 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4836
4837         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4838         (Vcharset_katakana_jisx0208): New variable.
4839         (Qhiragana_jisx0208): New variable.
4840         (Qkatakana_jisx0208): New variable.
4841         (make_charset): Add new argument `byte_offset'.
4842         (charset_get_byte1): Modify for new coded-charset definition; use
4843         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4844         `XCHARSET_BYTE_OFFSET'.
4845         (Fmake_charset): Modify for `make_charset'.
4846         (Fmake_reverse_direction_charset): Likewise.
4847         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4848         `katakana-jisx0208'.
4849         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4850         `.'  in font registry of charset `katakana-jisx0201',
4851         `latin-jisx0201', `vietnamese-viscii-lower' and
4852         `vietnamese-viscii-upper'; modify DOC-string of charset
4853         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4854         registry of charset `japanese-jisx0208' not to use font for JIS
4855         X0208:1990; add new charset `hiragana-jisx0208' and
4856         `katakana-jisx0208'.
4857
4858         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4859         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4860         (struct Lisp_Charset): Add `byte_offset'.
4861         (CHARSET_BYTE_OFFSET): New macro.
4862         (XCHARSET_UCS_MIN): New macro.
4863         (XCHARSET_UCS_MAX): New macro.
4864         (XCHARSET_CODE_OFFSET): New macro.
4865         (XCHARSET_BYTE_OFFSET): New macro.
4866         (MIN_CHAR_HIRAGANA): New macro.
4867         (MAX_CHAR_HIRAGANA): New macro.
4868         (MIN_CHAR_KATAKANA): New macro.
4869         (MAX_CHAR_KATAKANA): New macro.
4870         (MAKE_CHAR): Modify for new coded-charset definition; use
4871         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4872         `XCHARSET_BYTE_OFFSET'.
4873
4874 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4875
4876         * mule-charset.c (CHAR96): Deleted.
4877         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4878         <Lisp_Object>.
4879         (latin_iso8859_2_to_ucs): Likewise.
4880         (latin_iso8859_3_to_ucs): Likewise.
4881         (latin_iso8859_4_to_ucs): Likewise.
4882         (latin_iso8859_9_to_ucs): Likewise.
4883         (latin_viscii_lower_to_ucs): Likewise.
4884         (latin_viscii_upper_to_ucs): Likewise.
4885         (latin_tcvn5712_to_ucs): Commented out.
4886         (make_charset): Change type of argument `decoding_table' from
4887         <Emchar*> to <Lisp_Object> [vector of characters].
4888         (Fmake_charset): Modify for `make_charset'.
4889         (Fmake_reverse_direction_charset): Likewise.
4890         (Fcharset_mapping_table): New function in UTF-2000.
4891         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4892         UTF-2000.
4893         (complex_vars_of_mule_charset): Modify for type change of
4894         `*_to_ucs'; modify for `make_charset'.
4895
4896         * char-ucs.h (struct Lisp_Charset): Change type of
4897         `decoding_table' from <Emchar*> to <Lisp_Object>.
4898         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4899
4900 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4901
4902         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4903         error with non-UTF-2000-Mule.
4904
4905 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4906
4907         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4908         in lisp again].
4909         (Vcharset_chinese_cns11643_4): Likewise.
4910         (Vcharset_chinese_cns11643_5): Likewise.
4911         (Vcharset_chinese_cns11643_6): Likewise.
4912         (Vcharset_chinese_cns11643_7): Likewise.
4913         (Qchinese_cns11643_3): Likewise.
4914         (Qchinese_cns11643_4): Likewise.
4915         (Qchinese_cns11643_5): Likewise.
4916         (Qchinese_cns11643_6): Likewise.
4917         (Qchinese_cns11643_7): Likewise.
4918         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4919         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4920         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4921         (complex_vars_of_mule_charset): Likewise.
4922
4923 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4924
4925         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4926         96-set.
4927         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4928         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4929
4930 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4931
4932         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4933         0xFF60.
4934         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4935         (breakup_char_1): Likewise.
4936
4937         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4938         one of them includes the specified character.
4939
4940 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4941
4942         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4943
4944 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4945
4946         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4947
4948 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4949
4950         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4951         definition for non-UTF-2000 Mule.
4952         (latin_iso8859_3_to_ucs): Likewise.
4953         (latin_iso8859_4_to_ucs): Likewise.
4954         (latin_iso8859_9_to_ucs): Likewise.
4955         (latin_jisx0201_to_ucs): Likewise.
4956         (MIN_CHAR_THAI): Likewise.
4957         (MAX_CHAR_THAI): Likewise.
4958         (MIN_CHAR_GREEK): Likewise.
4959         (MAX_CHAR_GREEK): Likewise.
4960         (MIN_CHAR_HEBREW): Likewise.
4961         (MAX_CHAR_HEBREW): Likewise.
4962         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4963         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4964         (MIN_CHAR_CYRILLIC): Likewise.
4965         (MAX_CHAR_CYRILLIC): Likewise.
4966
4967 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4968
4969         * char-ucs.h (breakup_char_1): Use
4970         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4971         thai-tis620 and katakana-jisx0201 area.
4972
4973 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4974
4975         * char-ucs.h (breakup_char_1): Use
4976         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4977         area.
4978
4979         * text-coding.c (reset_encoding_stream): Fixed.
4980         (char_encode_ucs4): Delete `& 255'.
4981
4982         * char-ucs.h (breakup_char_1): Use
4983         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4984
4985 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4986
4987         * file-coding.c (Fmake_coding_system): Don't set up
4988         `codesys->fixed.size'.
4989         (encode_coding_no_conversion): Don't refer
4990         `str->codesys->fixed.size'.
4991
4992 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4993
4994         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4995         (latin_a_char_to_byte1): Deleted.
4996         (latin_a_char_to_byte2): Deleted.
4997
4998 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4999
5000         * mule-charset.c (make_charset): Add new argument `ucs_min',
5001         `ucs_max' and `code_offset'.
5002         (charset_get_byte1): New implementation [delete specific charset
5003         depended implementations].
5004         (Fmake_charset): Modify for `make_charset'.
5005         (Fmake_reverse_direction_charset): Likewise.
5006         (complex_vars_of_mule_charset): Likewise.
5007
5008         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5009         `code_offset'.
5010         (CHARSET_UCS_MIN): New macro.
5011         (CHARSET_UCS_MAX): New macro.
5012         (CHARSET_CODE_OFFSET): New macro.
5013         (MAKE_CHAR): Delete charset depended definitions [except
5014         katakana-jisx0201].
5015
5016 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5017
5018         * char-ucs.h (breakup_char_1): Use
5019         `Vdefault_coded_charset_priority_list' for C0-Controls,
5020         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5021
5022 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5023
5024         * char-ucs.h (charset_get_byte1): New function.
5025         (XCHARSET_GET_BYTE1): Deleted.
5026         (charset_get_byte2): New function.
5027         (XCHARSET_GET_BYTE2): Deleted.
5028         (Vdefault_coded_charset_priority_list): New external variable.
5029         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5030         `Vdefault_preferred_coded_charset_list'.
5031
5032         * mule-charset.c (charset_get_byte1): New function.
5033         (charset_get_byte2): New function.
5034         (Vdefault_coded_charset_priority_list): New variable.
5035         (vars_of_mule_charset): Add new variable
5036         `default-coded-charset-priority-list'.
5037
5038 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5039
5040         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5041         (XCHARSET_GET_BYTE2): New inline function.
5042         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5043         `XCHARSET_GET_BYTE2'.
5044
5045 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5046
5047         * mule-charset.c (make_charset): Initialize
5048         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5049         NULL if table is not defined.
5050
5051 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5052
5053         * text-coding.c (char_encode_shift_jis): Use
5054         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5055         `ucs_to_latin_jisx0201'.
5056
5057         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5058         (ucs_to_latin_iso8859_2): Deleted.
5059         (ucs_to_latin_iso8859_3): Deleted.
5060         (ucs_to_latin_iso8859_4): Deleted.
5061         (ucs_to_latin_iso8859_9): Deleted.
5062         (ucs_to_latin_viscii_lower): Deleted.
5063         (ucs_to_latin_viscii_upper): Deleted.
5064         (ucs_to_latin_tcvn5712): Deleted.
5065         (make_charset): Add new argument `decoding_table'; set up
5066         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5067         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5068         `decoding_table' is defined in UTF-2000.
5069         (Fmake_charset): Modify for `make_charset'.
5070         (Fmake_reverse_direction_charset): Likewise.
5071         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5072         and `GENERATE_96_SET'.
5073
5074         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5075         (ucs_to_latin_jisx0201): Deleted.
5076         (latin_iso8859_2_to_ucs): Deleted.
5077         (ucs_to_latin_iso8859_2): Deleted.
5078         (latin_iso8859_3_to_ucs): Deleted.
5079         (ucs_to_latin_iso8859_3): Deleted.
5080         (latin_iso8859_4_to_ucs): Deleted.
5081         (ucs_to_latin_iso8859_4): Deleted.
5082         (latin_iso8859_9_to_ucs): Deleted.
5083         (ucs_to_latin_iso8859_9): Deleted.
5084         (latin_viscii_lower_to_ucs): Deleted.
5085         (ucs_to_latin_viscii_lower): Deleted.
5086         (latin_viscii_upper_to_ucs): Deleted.
5087         (ucs_to_latin_viscii_upper): Deleted.
5088         (struct Lisp_Charset): Renamed `encoding_table' to
5089         `to_byte1_table'; add `to_byte2_table'.
5090         (CHARSET_DECODING_TABLE): New macro.
5091         (CHARSET_TO_BYTE1_TABLE): New macro.
5092         (CHARSET_TO_BYTE2_TABLE): New macro.
5093         (XCHARSET_DECODING_TABLE): New macro.
5094         (XCHARSET_TO_BYTE1_TABLE): New macro.
5095         (XCHARSET_TO_BYTE2_TABLE): New macro.
5096         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5097         tables.
5098         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5099         don't use `ucs_to_*' tables.
5100
5101 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5102
5103         * text-coding.c (Fmake_coding_system): Don't set up
5104         `codesys->fixed.size'.
5105         (encode_coding_no_conversion): Use `if' instead of `switch'.
5106
5107         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5108
5109 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5110
5111         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5112         (Fmake_charset): Modify for `make_charset'.
5113         (Fmake_reverse_direction_charset): Likewise.
5114         (complex_vars_of_mule_charset): Likewise.
5115
5116 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5117
5118         * text-coding.c (char_encode_shift_jis): Use table
5119         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5120
5121 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5122
5123         * text-coding.c (text_encode_generic): Use `if' instead of
5124         `switch'.
5125         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5126         decode JIS-Latin.
5127
5128 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5129
5130         * text-coding.c (encode_coding_sjis): Deleted.
5131         (char_encode_shift_jis): New function.
5132         (char_finish_shift_jis): New function.
5133         (reset_encoding_stream): Set up `encode_char' and `finish' for
5134         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5135         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5136         (char_encode_utf8): Treat `eol_type'.
5137
5138 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5139
5140         * file-coding.c (decode_coding_iso2022): Use
5141         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5142
5143 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5144
5145         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5146         to 0.7 (Hirano).
5147
5148 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5149
5150         * char-lb.h (CHAR_COLUMNS): New macro.
5151
5152 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5153
5154         * text-coding.c (char_encode_ucs4): New function.
5155         (char_finish_ucs4): New function.
5156         (encode_coding_ucs4): Deleted.
5157         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5158         (text_encode_generic): Delete local variable `charset' and `half'.
5159         (ucs_to_mule_table): Deleted.
5160         (mule_to_ucs_table): Deleted.
5161         (Fset_ucs_char): Deleted.
5162         (ucs_to_char): Deleted.
5163         (Fucs_char): Deleted.
5164         (Fset_char_ucs): Deleted.
5165         (Fchar_ucs): Deleted.
5166         (decode_ucs4): Deleted.
5167         (mule_char_to_ucs4): Deleted.
5168         (encode_ucs4): Deleted.
5169         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5170         (decode_coding_utf8): Likewise.
5171         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5172         (char_encode_iso2022): Fixed.
5173         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5174         `Fset_char_ucs' and `Fchar_ucs'.
5175         (complex_vars_of_file_coding): Don't initialize
5176         `ucs_to_mule_table'.
5177
5178         * objects-tty.c (tty_initialize_font_instance): Don't use
5179         `XCHARSET_COLUMNS'.
5180
5181         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5182         UTF-2000.
5183
5184         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5185         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5186
5187         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5188         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5189         (emchar_string_displayed_columns): Likewise.
5190
5191         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5192         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5193         (string_column_at_point): Likewise.
5194         (Fmove_to_column): Likewise.
5195
5196         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5197         `encoding_table' and `decoding_table'.
5198         (CHARSET_REP_BYTES): Deleted.
5199         (XCHARSET_REP_BYTES): Deleted.
5200         (XCHARSET_COLUMNS): Deleted.
5201         (CHAR_COLUMNS): New macro.
5202         (lookup_composite_char): Deleted unconditionally.
5203         (composite_char_string): Likewise.
5204
5205 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5206
5207         * char-ucs.h (Emchar_to_byte_table): New type.
5208         (get_byte_from_character_table): New function interface.
5209         (Vcharset_latin_jisx0201): New variable.
5210         (latin_jisx0201_to_ucs): New variable.
5211         (ucs_to_latin_jisx0201): New variable.
5212         (Vcharset_latin_iso8859_2): New variable.
5213         (latin_iso8859_2_to_ucs): New variable.
5214         (ucs_to_latin_iso8859_2): New variable.
5215         (Vcharset_latin_iso8859_3): New variable.
5216         (latin_iso8859_3_to_ucs): New variable.
5217         (ucs_to_latin_iso8859_3): New variable.
5218         (Vcharset_latin_iso8859_4): New variable.
5219         (latin_iso8859_4_to_ucs): New variable.
5220         (ucs_to_latin_iso8859_4): New variable.
5221         (Vcharset_latin_iso8859_9): New variable.
5222         (latin_iso8859_9_to_ucs): New variable.
5223         (ucs_to_latin_iso8859_9): New variable.
5224         (Vcharset_latin_viscii_lower): New variable.
5225         (latin_viscii_lower_to_ucs): New variable.
5226         (ucs_to_latin_viscii_lower): New variable.
5227         (Vcharset_latin_viscii_upper): New variable.
5228         (latin_viscii_upper_to_ucs): New variable.
5229         (ucs_to_latin_viscii_upper): New variable.
5230         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5231         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5232         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5233         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5234         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5235         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5236         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5237         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5238         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5239         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5240
5241         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5242         (Vcharset_latin_viscii_upper): New variable.
5243         (make_byte_from_character_table): New function.
5244         (put_byte_from_character_table): New function.
5245         (get_byte_from_character_table): New function.
5246         (CHAR96): New macro.
5247         (ucs_to_latin_jisx0201): New variable.
5248         (latin_jisx0201_to_ucs): New variable.
5249         (ucs_to_latin_iso8859_2): New variable.
5250         (latin_iso8859_2_to_ucs): New variable.
5251         (ucs_to_latin_iso8859_3): New variable.
5252         (latin_iso8859_3_to_ucs): New variable.
5253         (ucs_to_latin_iso8859_4): New variable.
5254         (latin_iso8859_4_to_ucs): New variable.
5255         (ucs_to_latin_iso8859_9): New variable.
5256         (latin_iso8859_9_to_ucs): New variable.
5257         (ucs_to_latin_viscii_lower): New variable.
5258         (latin_viscii_lower_to_ucs): New variable.
5259         (ucs_to_latin_viscii_upper): New variable.
5260         (latin_viscii_upper_to_ucs): New variable.
5261         (ucs_to_latin_tcvn5712): New variable.
5262         (latin_tcvn5712_to_ucs): New variable.
5263         (Qlatin_viscii_lower): New variable.
5264         (Qlatin_viscii_upper): New variable.
5265         (syms_of_mule_charset): Set up new symbol
5266         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5267         (complex_vars_of_mule_charset): Set up new charset
5268         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5269         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5270         `ucs_to_<CHARSET>' tables.
5271
5272 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5273
5274         * text-coding.c: New file.
5275
5276 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5277
5278         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5279
5280         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5281         (MAKE_CHAR): Modify for `ucs-bmp'.
5282         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5283         non-MULE characters of BMP.
5284
5285 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5286
5287         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5288         to 0.6.
5289
5290 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5291
5292         * lstream.h:
5293         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5294         - Include character.h for `CHAR_ASCII_P'.
5295
5296         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5297
5298         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5299         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5300
5301         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5302         (BYTE_C0_P): Likewise.
5303         (BYTE_C1_P): Likewise.
5304         (Lstream_get_emchar_1): Likewise.
5305         (Lstream_fput_emchar): Likewise.
5306         (Lstream_funget_emchar): Likewise.
5307         (copy_internal_to_external): Likewise.
5308         (copy_external_to_internal): Likewise.
5309
5310         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5311         (BYTE_C0_P): Likewise.
5312         (BYTE_C1_P): Likewise.
5313         (Lstream_get_emchar_1): Likewise.
5314         (Lstream_fput_emchar): Likewise.
5315         (Lstream_funget_emchar): Likewise.
5316         (copy_internal_to_external): Likewise.
5317         (copy_external_to_internal): Likewise.
5318
5319         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5320         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5321
5322         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5323         (BYTE_ASCII_P): Moved to mb-1byte.h.
5324
5325 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5326
5327         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5328
5329         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5330         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5331         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5332         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5333         (VALIDATE_CHARPTR_FORWARD): Likewise.
5334         (simple_charptr_emchar): Moved to mb-multibyte.h.
5335         (simple_set_charptr_emchar): Likewise.
5336         (simple_charptr_copy_char): Likewise.
5337         (non_ascii_charptr_emchar): Likewise.
5338         (non_ascii_set_charptr_emchar): Likewise.
5339         (non_ascii_charptr_copy_char): Likewise.
5340         (charptr_emchar): Moved to mb-*byte.h.
5341         (set_charptr_emchar): Likewise.
5342         (charptr_copy_char): Likewise.
5343
5344         * mb-1byte.h, mb-multibyte.h: New files.
5345
5346 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5347
5348         * mb-utf-8.h (MULTIBYTE): New macro.
5349         (MAX_EMCHAR_LEN): Moved from buffer.h.
5350         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5351
5352         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5353
5354         * mb-lb.h, multibyte.h: New files.
5355
5356         * char-1byte.h (Charset_ID): Moved from buffer.h.
5357         (MIN_LEADING_BYTE): Likewise.
5358         (LEADING_BYTE_ASCII): Likewise.
5359         (NUM_LEADING_BYTES): Likewise.
5360         (CHARSETP): Likewise.
5361         (CHARSET_BY_LEADING_BYTE): Likewise.
5362         (XCHARSET_LEADING_BYTE): Likewise.
5363         (XCHARSET_GRAPHIC): Likewise.
5364         (XCHARSET_COLUMNS): Likewise.
5365         (XCHARSET_DIMENSION): Likewise.
5366         (CHAR_CHARSET): Likewise.
5367         (CHAR_LEADING_BYTE): Likewise.
5368         (BREAKUP_CHAR): Likewise.
5369         (Vcharset_ascii): Likewise.
5370
5371         * buffer.h: Include multibyte.h unconditionally.
5372         (VALID_CHARPTR_P): Moved to multibyte.h.
5373         (ASSERT_VALID_CHARPTR): Likewise.
5374         (REAL_INC_CHARPTR): Likewise.
5375         (REAL_INC_CHARBYTIND): Likewise.
5376         (REAL_DEC_CHARPTR): Likewise.
5377         (INC_CHARPTR): Likewise.
5378         (INC_CHARBYTIND): Likewise.
5379         (DEC_CHARPTR): Likewise.
5380         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5381         (VALIDATE_CHARPTR_FORWARD): Likewise.
5382         (charptr_n_addr): Likewise.
5383         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5384         (simple_charptr_emchar): Moved to multibyte.h.
5385         (simple_set_charptr_emchar): Likewise.
5386         (simple_charptr_copy_char): Likewise.
5387         (non_ascii_charptr_emchar): Likewise.
5388         (non_ascii_set_charptr_emchar): Likewise.
5389         (non_ascii_charptr_copy_char): Likewise.
5390         (charptr_emchar): Likewise.
5391         (set_charptr_emchar): Likewise.
5392         (charptr_copy_char): Likewise.
5393         (charptr_emchar_n): Likewise.
5394         (Charset_ID): Moved to char-1byte.h.
5395         (Vcharset_ascii): Likewise.
5396         (CHAR_CHARSET): Likewise.
5397         (CHAR_LEADING_BYTE): Likewise.
5398         (LEADING_BYTE_ASCII): Likewise.
5399         (NUM_LEADING_BYTES): Likewise.
5400         (MIN_LEADING_BYTE): Likewise.
5401         (CHARSETP): Likewise.
5402         (CHARSET_BY_LEADING_BYTE): Likewise.
5403         (XCHARSET_LEADING_BYTE): Likewise.
5404         (XCHARSET_GRAPHIC): Likewise.
5405         (XCHARSET_COLUMNS): Likewise.
5406         (XCHARSET_DIMENSION): Likewise.
5407         (BREAKUP_CHAR): Likewise.
5408
5409 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5410
5411         * character.h: Add document about interface for characters.
5412
5413         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5414         (MAKE_CHAR): Delete comment about
5415         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5416         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5417         (BREAKUP_CHAR): Modify name of arguments.
5418         (CHAR_CHARSET): Modify name of argument.
5419
5420         * buffer.h: Delete document about Emchar accessors.
5421
5422 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5423
5424         * character.h (CHAR_INTP): Moved from buffer.h
5425         (CHAR_OR_CHAR_INTP): Likewise.
5426         (XCHAR_OR_CHAR_INT): Likewise.
5427         (CHECK_CHAR_COERCE_INT): Likewise.
5428
5429         * buffer.h (CHAR_INTP): Moved to character.h
5430         (CHAR_OR_CHAR_INTP): Likewise.
5431         (XCHAR_OR_CHAR_INT): Likewise.
5432         (CHECK_CHAR_COERCE_INT): Likewise.
5433
5434 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5435
5436         * character.h:
5437         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5438         - Include char-1byte.h, char-lb.h or char-ucs.h.
5439
5440         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5441
5442         * buffer.h: Include character unconditionally.
5443         (valid_char_p): Moved to char-*.h.
5444         (non_ascii_valid_char_p): Moved to char-lb.h.
5445
5446         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5447
5448 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5449
5450         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5451         in UTF-2000 because it is not ported yet and not to use
5452         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5453         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5454         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5455
5456         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5457         (CHAR_ASCII_P): Moved from character.h.
5458
5459         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5460         (CHAR_ASCII_P): Likewise.
5461         (CHAR_FIELD1_MASK): Deleted.
5462         (CHAR_FIELD2_MASK): Deleted.
5463         (CHAR_FIELD3_MASK): Deleted.
5464         (MAX_CHAR_BASIC_LATIN): New macro.
5465         (CHAR_FIELD1): Deleted.
5466         (CHAR_FIELD2_INTERNAL): Deleted.
5467         (CHAR_FIELD3_INTERNAL): Deleted.
5468         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5469         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5470         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5471         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5472         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5473         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5474         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5475         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5476         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5477         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5478         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5479         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5480         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5481         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5482         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5483         (MIN_CHAR_COMPOSITION): Deleted.
5484         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5485         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5486
5487 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5488
5489         * buffer.h: Include mb-utf-8.h in UTF-2000.
5490
5491         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5492
5493         * mb-utf-8.h: New file.
5494
5495 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5496
5497         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5498         instead of `int'.
5499
5500         * mule-charset.h, buffer.h (Charset_ID): New type.
5501
5502 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5503
5504         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5505         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5506         instead of `MULE_CHAR_PRIVATE_OFFSET',
5507         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5508         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5509         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5510
5511         * character.h (Vcharset_japanese_jisx0212): New variable
5512         definition.
5513
5514 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5515
5516         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5517         (charset_by_attributes): Delete array about direction.
5518         (latin_a_char_to_charset): New variable in UTF-2000.
5519         (latin_a_char_to_byte1): New variable in UTF-2000.
5520         (latin_a_char_to_byte2): New variable in UTF-2000.
5521         (Qucs_bmp): New variable.
5522         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5523         `Bufbyte'.
5524         (next_allocated_2_byte_leading_byte): Likewise.
5525         (non_ascii_set_charptr_emchar): Likewise.
5526         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5527         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5528         `charset_by_attributes'.
5529         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5530         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5531         and `CHARSET_BY_LEADING_BYTE'.
5532         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5533         `utf-2000-version' to `vars_of_mule_charset'.
5534         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5535         define `leading-code-private-11' in UTF-2000; move setting of
5536         `utf-2000-version' from `syms_of_mule_charset'.
5537         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5538         UTF-2000.
5539
5540         * character.h (Charset_ID): New type.
5541         (LEADING_BYTE_UCS_BMP): New macro.
5542         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5543         (CHARSET_ID_OFFSET_94): New macro.
5544         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5545         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5546         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5547         final-byte.
5548         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5549         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5550         (CHARSET_ID_OFFSET_96): New macro.
5551         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5552         CHARSET_ID_OFFSET_96 and final-byte.
5553         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5554         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5555         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5556         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5557         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5558         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5559         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5560         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5561         (LEADING_BYTE_THAI_TIS620): Likewise.
5562         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5563         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5564         (CHARSET_ID_OFFSET_94x94): New macro.
5565         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5566         CHARSET_ID_OFFSET_94x94 and final-byte.
5567         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5568         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5569         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5570         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5571         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5572         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5573         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5574         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5575         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5576         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5577         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5578         (CHARSET_TYPE_128X128): New macro.
5579         (CHARSET_TYPE_256X256): New macro.
5580         (XCHARSET_PRIVATE_P): Delete unconditionally.
5581         (charset_by_attributes): Delete array about direction.
5582         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5583         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5584         (MIN_CHAR_94): New macro.
5585         (MAX_CHAR_94): New macro.
5586         (MIN_CHAR_96): New macro.
5587         (MAX_CHAR_96): New macro.
5588         (MIN_CHAR_94x94): New macro.
5589         (MAX_CHAR_94x94): New macro.
5590         (MIN_CHAR_96x96): New macro.
5591         (MAX_CHAR_96x96): New macro.
5592         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5593         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5594         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5595         - 32)'.
5596         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5597         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5598         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5599         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5600         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5601         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5602         `XCHARSET_LEADING_BYTE' to make code-point.
5603         (latin_a_char_to_charset): New variable.
5604         (latin_a_char_to_byte1): New variable.
5605         (latin_a_char_to_byte2): New variable.
5606         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5607         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5608         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5609
5610         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5611         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5612         (find_charsets_in_emchar_string): Likewise.
5613         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5614
5615         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5616         `int'.
5617         (decode_coding_iso2022): Likewise.
5618
5619         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5620         of `unsigned char'.
5621
5622         * redisplay.c (redisplay_text_width_emchar_string): Use
5623         `Charset_ID' instead of `unsigned char'.
5624         (redisplay_frame_text_width_string): Likewise.
5625
5626         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5627         `unsigned char'.
5628
5629         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5630         instead of `unsigned char'.
5631         (face_cachel_charset_font_metric_info): Likewise.
5632
5633         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5634         (get_non_ascii_char_table_value): Likewise.
5635         (get_char_table): Likewise.
5636         (put_char_table): Likewise.
5637         (map_over_other_charset): Likewise.
5638         (map_char_table): Likewise.
5639
5640         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5641         instead of `unsigned char'.
5642
5643 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5644
5645         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5646         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5647
5648         * mule-charset.c (leading_code_private_11): Don't define in
5649         UTF-2000.
5650
5651         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5652         in UTF-2000 because it is not ported yet and not to use
5653         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5654
5655 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5656
5657         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5658
5659 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5660
5661         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5662         in UTF-2000.
5663
5664         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5665         of unsigned char to store leading-byte.
5666
5667         * chartab.c (get_non_ascii_char_table_value): Don't use
5668         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5669
5670         * file-coding.c (encode_coding_big5): Delete bogus implementation
5671         in UTF2000.
5672
5673         * character.h (LEADING_BYTE_*): Delete definition for
5674         non-UTF-2000.
5675         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5676         (LEADING_BYTE_PREFIX_P): Deleted.
5677         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5678         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5679         (BUFBYTE_LEADING_BYTE_P): Deleted.
5680         (CHARSET_PRIVATE_P): Deleted unconditionally.
5681         (rep_bytes_by_first_byte): Deleted unconditionally.
5682         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5683         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5684         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5685         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5686         (CHAR_FIELD2): Deleted.
5687         (CHAR_FIELD3): Deleted.
5688         (MAKE_CHAR): Delete definition for non-UTF-2000.
5689         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5690         (breakup_char_1): New implementation.
5691         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5692         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5693
5694 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5695
5696         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5697         condition.
5698
5699 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5700
5701         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5702         (CHARSET_PRIVATE_P): Likewise.
5703         (XCHARSET_PRIVATE_P): Likewise.
5704         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5705
5706         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5707         UTF2000.
5708         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5709
5710 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5711
5712         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5713         (NUM_LEADING_BYTES): Changed from 128 to 256.
5714         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5715         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5716         UTF2000.
5717         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5718
5719         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5720         UTF2000.
5721         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5722         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5723         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5724         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5725         (Qchinese_cns11643_3): New variable in UTF2000.
5726         (Qchinese_cns11643_4): New variable in UTF2000.
5727         (Qchinese_cns11643_5): New variable in UTF2000.
5728         (Qchinese_cns11643_6): New variable in UTF2000.
5729         (Qchinese_cns11643_7): New variable in UTF2000.
5730         (syms_of_mule_charset): Define `chinese-cns11643-3',
5731         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5732         and `chinese-cns11643-7' in UTF2000.
5733         (vars_of_mule_charset): Initialize
5734         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5735         + 1 in UTF2000.
5736         (complex_vars_of_mule_charset): Setup charset
5737         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5738         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5739
5740 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5741
5742         * mule-charset.c: Move setting for `leading-code-private-11' from
5743         `syms_of_mule_charset' to `vars_of_mule_charset'.
5744
5745 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5746
5747         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5748         and `NUM_LEADING_BYTES' in assert.
5749
5750 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5751
5752         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5753         instead of 128.
5754         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5755         `NUM_LEADING_BYTES' instead of 128.
5756
5757 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5758
5759         * mule-charset.h (charset_by_leading_byte): Use
5760         `NUM_LEADING_BYTES' instead of 128.
5761         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5762
5763         * mule-charset.c (charset_by_leading_byte): Use
5764         `NUM_LEADING_BYTES' instead of 128.
5765         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5766
5767         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5768         128.
5769
5770 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5771
5772         * mule-charset.c (syms_of_mule_charset): Update to
5773         0.4 (Shin-Imamiya).
5774
5775 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5776
5777         * file-coding.c (encode_coding_sjis): New implementation for
5778         UTF2000.  (decode_coding_sjis): Ditto.
5779
5780 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5781
5782         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5783         Don't define in UTF2000.
5784
5785         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5786         defined.
5787
5788         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5789         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5790         MULE.
5791
5792 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5793
5794         * config.h.in (CHAR_IS_UCS4): New macro.
5795
5796         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5797         conventional MULE representation.
5798         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5799
5800         * mule-charset.h: Reverted to original.
5801
5802         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5803         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5804         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5805
5806         * character.h: New file.
5807
5808         * file-coding.c (Fmake_coding_system): Set 1 to
5809         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5810         defined.
5811         (encode_coding_no_conversion): New implementation for UTF2000.
5812
5813         * file-coding.h (struct Lisp_Coding_System): Add new member
5814         `fixed.size'.
5815
5816 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5817
5818         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5819         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5820         (encode_coding_iso2022): New implementation for UTF2000.
5821
5822 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5823
5824         * mule-canna.c (c2mu): New implementation for UTF2000.
5825         (m2c): Likewise.
5826
5827 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5828
5829         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5830
5831 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5832
5833         * file-coding.c (reset_encoding_stream): Set 0 to
5834         `str->iso2022.current_char_boundary' in UTF2000.
5835         (encode_utf8): Don't define in UTF2000.
5836         (encode_coding_utf8): New implementation for UTF-8 representation
5837         of UTF2000.
5838         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5839
5840 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5841
5842         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5843
5844         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5845         UTF2000.
5846         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5847
5848         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5849
5850         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5851         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5852         as UTF-8 in UTF2000.
5853         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5854         (non_ascii_valid_char_p): Don't define in UTF2000.
5855         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5856         (Lstream_get_emchar_1): Likewise.
5857         (utf-2000-version): New variable in UTF2000.
5858
5859         * lread.c (read_escape): Add new reader `u'.
5860
5861         * insdel.c (three_to_one_table): Don't define in UTF2000.
5862         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5863         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5864         UTF2000.
5865         (bytind_to_bufpos_func): Likewise.
5866         (buffer_mule_signal_inserted_region): Likewise.
5867         (vars_of_insdel): Don't initialize `three_to_one_table'.
5868         (init_buffer_text): Use `buf->text->mule_size' instead of
5869         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5870         UTF2000.
5871
5872         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5873         UTF-8 representation in UTF2000.
5874         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5875         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5876         (decode_coding_iso2022): Don't define local variable `lb' in
5877         UTF2000; don't use LEADING_BYTE in UTF2000; use
5878         `DECODE_ADD_UCS_CHAR' in UTF2000.
5879         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5880
5881         * config.h.in (UTF2000): New macro.
5882
5883         * buffer.h (struct buffer_text): Add new member `mule_size' and
5884         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5885         (valid_char_p): Return always 1 in UTF2000.
5886         (MAX_EMCHAR_LEN): 6 in UTF2000.
5887         (three_to_one_table): Don't define in UTF2000.
5888         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5889         UTF2000.
5890         (real_bytind_to_bufpos): Likewise.
5891
5892         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5893
5894 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5895
5896         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5897         representation change.
5898         (Vutf_2000_version): New variable.
5899         (leading_code_private_11): New variable.
5900         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5901         `leading-code-private-11'.
5902
5903         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5904         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5905         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5906         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5907         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5908         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5909         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5910         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5911         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5912         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5913         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5914         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5915         (MIN_CHAR_GREEK): New macro.
5916         (MAX_CHAR_GREEK): New macro.
5917         (MIN_CHAR_CYRILLIC): New macro.
5918         (MAX_CHAR_CYRILLIC): New macro.
5919         (MIN_CHAR_HEBREW): New macro.
5920         (MAX_CHAR_HEBREW): New macro.
5921         (MIN_CHAR_THAI): New macro.
5922         (MAX_CHAR_THAI): New macro.
5923         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5924         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5925         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5926         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5927         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5928         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5929         (CHAR_FIELD2): New inline function.
5930         (CHAR_FIELD3): New inline function.
5931         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5932         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5933         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5934         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5935         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5936         (MIN_CHAR_COMPOSITION): Likewise.
5937         (CHAR_LEADING_BYTE): Modified for character representation change.
5938         (MAKE_CHAR): Likewise.
5939
5940         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5941         (Vcharset_greek_iso8859_7): Likewise.
5942         (Vcharset_cyrillic_iso8859_5): Likewise.
5943         (Vcharset_hebrew_iso8859_8): Likewise.
5944         (Vcharset_thai_tis620): Likewise.
5945         (Vcharset_katakana_jisx0201): Likewise.
5946
5947 2007-10-07  Vin Shelton  <acs@xemacs.org>
5948
5949         * XEmacs 21.4.21 is released
5950
5951 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
5952
5953         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
5954
5955 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
5956
5957         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
5958         (png_instantiate): Initialize setjmp_buffer early, and avoid
5959         recursive entry to error handler.
5960
5961 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
5962
5963         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
5964         a typo fix.
5965
5966 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
5967
5968         * event-Xt.c (x_reset_modifier_mapping):
5969         * event-gtk.c (gtk_reset_modifier_mapping):
5970         Zero out the device's modifier map once we've freed it, to prevent
5971         a double free on a re-entrant call. 
5972
5973 2007-05-17  Vin Shelton  <acs@xemacs.org>
5974
5975         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
5976         64-bit linux.  Patch from Hans de Graaff.
5977
5978 2007-05-02  Vin Shelton  <acs@xemacs.org>
5979
5980         * dumper.c (pdump): Don't close pdump_fd (already closed by
5981         fclose() call.  Patch from Steve Higham.
5982         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
5983         already closed.  Patch inspired by Steve Higham.
5984
5985 2007-05-01  Vin Shelton  <acs@xemacs.org>
5986
5987         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
5988         (mswindows_fstat): Ditto.
5989         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
5990
5991 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
5992
5993         * postgresql.c: Update Steve Baur's email address by his request.
5994         * postgresql.h: Ditto.
5995
5996 2007-01-04  Vin Shelton  <acs@xemacs.org>
5997
5998         * fileio.c (check_writable): Check old-style readonly bit only for
5999         non-directories.
6000
6001 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6002
6003         * src/fileio.c (check_writable): 
6004         Cope with the fact that the read-only attribute trumps Windows NTFS
6005         ACLS.
6006
6007
6008 2006-12-09  Vin Shelton  <acs@xemacs.org>
6009
6010         * XEmacs 21.4.20 is released
6011
6012 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6013
6014         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6015         relocated the definitions to be used sooner in file.
6016         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6017         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6018         overflow.
6019
6020 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6021
6022         * sound.c (init_native_sound):
6023         Only X11 and GTK devices can possibly not be on the console of the
6024         associated machine. Fixes a crash when init_native_sound is called
6025         on a msprinter device. 
6026
6027 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6028
6029         * buffer.c (buffer-file-name): Document invariant.
6030         (buffer-file-truename): Sync wording to buffer-file-name.
6031         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6032         and discussion.
6033
6034 2006-11-19  Benson Margulies  <benson@dchbk.us>
6035
6036         * fileio.c: Add code to use full Win32 API to check for write
6037         access.  Win32 has the general design policy that you aren't
6038         supposed to ask this question, since security checks change
6039         depending on asynchronous processes.  Nonetheless, there is a way,
6040         by acting as if we are a server doing interpretive access
6041         control.
6042
6043 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6044
6045         * bytecode.c: Use xnew_array instead of alloca.
6046
6047 2006-07-04  Vin Shelton  <acs@xemacs.org>
6048
6049         * redisplay-msw.c: Fix tiny, but crucial typo.
6050
6051 2006-06-22  Jerry James  <james@xemacs.org>
6052
6053         * EmacsShell-sub.c (ChangeManaged):
6054         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6055         NULL.
6056         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6057         checking if it is NULL.  Also fix a memory leak.
6058         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6059         dereference it, not the other way around.
6060         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6061         overflow check.
6062         * dumper.c (pdump_register_struct): Ditto.
6063         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6064         to (short) warnpath overflow warnpath.
6065         * extents.c (detach_all_extents): Call extent_list_delete_all with
6066         a non-NULL parameter only.
6067         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6068         NULL width and height.
6069         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6070         xic before checking if they are NULL.
6071         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6072         allocated array.
6073         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6074         * nas.c (Err): Fix a memory leak.
6075         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6076         Don't create the buffer if there is nothing to do.
6077         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6078         * redisplay-output.c (redisplay_output_layout): Ditto.
6079         * redisplay-tty.c (tty_output_display_block): Ditto.
6080         * redisplay-x.c (x_output_display_block): Ditto.
6081         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6082         dereference instance->scrollbar_data if it is NULL.
6083         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6084         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6085         for sb->scrollbar_data.
6086         * sound.c (init_native_sound): Avoid a buffer overflow by
6087         allocating a buffer with the appropriate size.
6088
6089 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6090
6091         * EmacsShell-sub.c (RootGeometryManager):
6092         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6093         Based on a suggestion by Francois L'Archeveque.
6094
6095 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6096
6097         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6098         current values found in GNU Emacs.
6099
6100 2006-03-17  Vin Shelton  <acs@xemacs.org>
6101
6102         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6103         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6104
6105         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6106         'hex_initialized' because it conflicts with 'initialized' in
6107         lisp.h.
6108
6109 2006-01-28  Vin Shelton  <acs@xemacs.org>
6110
6111         * XEmacs 21.4.19 is released
6112
6113 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6114
6115         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6116
6117 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6118
6119         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6120         5000 to INT_MAX.
6121
6122 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6123
6124         * database.c: Suppress compiler warning under Cygwin.
6125         * database.c: Removed __FreeBSD__ check, should be handled by
6126         HAVE_U_xxx_T defines.
6127
6128 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6129
6130         * console.c (stuff_buffered_input): Compile body only if
6131         HAVE_TTY.
6132
6133 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6134
6135         * callproc.c: #include sysdir.h, so that any appropriate Mule
6136         magic happens with the chdir() call when calling a subprocess. 
6137
6138 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6139
6140         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6141         * mule-ccl.c: Check that a character set exists before using it
6142         to create a character. 
6143
6144 2005-12-06  Vin Shelton  <acs@xemacs.org>
6145
6146         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6147         to INT_MAX.
6148
6149 2005-12-03  Vin Shelton <acs@xemacs.org>
6150
6151         * XEmacs 21.4.18 is released
6152
6153 2005-11-27  Kean Johnston <kean@armory.com>
6154
6155         * redisplay-tty.c (set_tty_modes):
6156         (reset_tty_modes): disable auto-margins if the terminal supports
6157         them.
6158         (init_tty_for_redisplay): fix cursor shape.
6159
6160 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6161
6162         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6163         for control-1 characters properly, both when reading multibyte
6164         characters and writing them. 
6165
6166 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6167
6168         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6169         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6170         were seeing with incremental selection transfer failing. 
6171
6172 2005-11-26  Vin Shelton  <acs@xemacs.org>
6173
6174         * callproc.c (Fold_call_process_internal): Create the buffer if it
6175         does not already exist.  The original patch came from Ben Wing in
6176         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6177
6178 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6179
6180         * callproc.c: Process-related docstring improvements spurred by
6181         Norbert Koch.
6182
6183 2005-11-25  Vin Shelton  <acs@xemacs.org>
6184
6185         * depend: Regenerated.
6186
6187 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6188
6189         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6190         says it clashes with a global with the same name.
6191
6192 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6193
6194         * sysdll.c (dll_open): Under MacOS X return NULL under the
6195         filename is NULL.  Fixes problems finding local symbols under 10.4
6196         (Tiger)
6197
6198 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6199         
6200         * config.h.in: New HAVE_U_INT*_T defines.
6201         
6202         * database.c: Only use u_int*_t typedefs if not already
6203         defined.
6204
6205 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6206
6207         * src/process-unix.c (unix_open_network_stream): moved
6208           'portbuf' buffer out of an inner block as it is used in the
6209           entire function. With gcc4, the stack may get corrupted
6210           after leaving this block. This patches adjusts the size of
6211           the used buffer also; static '128' bytes are far too much
6212           currently and might not suffice for future architectures
6213           (e.g. for 512 bit ones ;)). Instead of, use only the really
6214           required space (max octets * ln(256)/ln(10) chars + space
6215           for '\0' and the sign)
6216
6217 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6218
6219         * callproc.c: Include sysdir.h, so any necessary Mule processing
6220         is done on the current directory name before starting a new
6221         process.
6222
6223 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6224
6225         * chartab.c (Fchar_table_p):
6226         (Fget_range_char_table):
6227         (Fput_char_table):
6228         (Fmap_char_table):
6229         Describe range representation and fix typo.
6230
6231 2005-02-12  Vin Shelton  <acs@xemacs.org>
6232
6233         * emacs.c (shut_down_emacs): Advise users to send email to the
6234         xemacs-beta list instead of crashes@xemacs.org.
6235
6236 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6237
6238         * process-unix.c (unix_send_process): Flush the last chunk, even
6239         when the pipe is blocked.
6240
6241 2005-02-06  Vin Shelton <acs@xemacs.org>
6242
6243         * XEmacs 21.4.17 is released
6244
6245 2005-01-31  Ben Wing  <ben@xemacs.org>
6246
6247         * emacs.c:
6248         Define assert_failed() always.
6249         * lisp.h:
6250         Always define ABORT().
6251
6252 2005-01-25  Ben Wing  <ben@xemacs.org>
6253
6254         * Makefile.in.in:
6255         * Makefile.in.in (%.o):
6256         Don't compile executable as Windows (-mwindows) under Cygwin.
6257         Semi-recent changes to Cygwin's executable-startup handling make
6258         it impossible to access the TTY this way.
6259
6260         Don't use special linker file under Cygwin (cygwin.sc) except
6261         when non-PDUMP (even in this case it is highly questionable); you
6262         get errors like
6263
6264       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6265    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6266
6267 2005-01-29  Ben Wing  <ben@xemacs.org>
6268
6269         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6270
6271         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6272
6273 2005-01-29  Ben Wing  <ben@xemacs.org>
6274
6275         * bytecode.c (optimize_compiled_function):
6276         * print.c (FROB):
6277         * print.c (long_to_string):
6278         Add casts to avoid warning.
6279         
6280         * glyphs-eimage.c:
6281         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6282         #### The better solution is to move the TIFF and JPEG code to
6283         different files.
6284         
6285         * glyphs-msw.c (mswindows_xbm_instantiate):
6286         Define __STDC__ to avoid problems with compface.h.
6287         
6288         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6289         * EmacsShell-sub.c:
6290         * EmacsShell-sub.c (ABORT):
6291         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6292         * EmacsShell-sub.c (RootGeometryManager):
6293         * EmacsShell.c:
6294         * EmacsShell.c (ABORT):
6295         * EmacsShell.c (EmacsShellUpdateSizeHints):
6296         * alloc.c (free_lcrecord):
6297         * alloca.c (i00afunc):
6298         * buffer.c (delete_from_buffer_alist):
6299         * buffer.c (MARKED_SLOT):
6300         * bytecode.c (execute_rare_opcode):
6301         * bytecode.c (optimize_byte_code):
6302         * bytecode.c (Ffetch_bytecode):
6303         * chartab.c (char_table_type_to_symbol):
6304         * chartab.c (Freset_char_table):
6305         * chartab.c (decode_char_table_range):
6306         * chartab.c (Fget_range_char_table):
6307         * chartab.c (check_valid_char_table_value):
6308         * chartab.c (map_char_table):
6309         * chartab.c (slow_map_char_table_fun):
6310         * chartab.c (chartab_instantiate):
6311         * cm.c (cmcheckmagic):
6312         * console-msw.c (DHEADER):
6313         * console.c (MARKED_SLOT):
6314         * data.c (finish_marking_weak_lists):
6315         * data.c (encode_weak_list_type):
6316         * debug.h (DASSERT):
6317         * device-gtk.c (gtk_init_device):
6318         * device-msw.c (mswindows_get_default_margin):
6319         * device-tty.c (tty_init_device):
6320         * device-x.c (get_device_from_display):
6321         * device-x.c (x_get_visual_depth):
6322         * doprnt.c (parse_doprnt_spec):
6323         * doprnt.c (get_doprnt_args):
6324         * dumper.c (pdump_get_indirect_count):
6325         * dumper.c (pdump_register_sub):
6326         * dumper.c (pdump_register_object):
6327         * dumper.c (pdump_register_struct):
6328         * dumper.c (pdump_dump_data):
6329         * dumper.c (pdump_reloc_one):
6330         * elhash.c (print_hash_table):
6331         * elhash.c (make_standard_lisp_hash_table):
6332         * elhash.c (hash_table_instantiate):
6333         * emacs.c:
6334         * emacs.c (Fforce_debugging_signal):
6335         * emacs.c (sort_args):
6336         * emacs.c (main):
6337         * emacs.c (assert_failed):
6338         * eval.c (throw_or_bomb_out):
6339         * eval.c (signal_1):
6340         * eval.c (Fsignal):
6341         * event-Xt.c:
6342         * event-Xt.c (emacs_Xt_mapping_action):
6343         * event-Xt.c (Xt_process_to_emacs_event):
6344         * event-msw.c:
6345         * event-stream.c (check_event_stream_ok):
6346         * event-stream.c (Fadd_timeout):
6347         * event-stream.c (Fadd_async_timeout):
6348         * event-stream.c (Fdiscard_input):
6349         * event-stream.c (execute_internal_event):
6350         * event-stream.c (Frecent_keys):
6351         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6352         * event-stream.c (lookup_command_event):
6353         * event-unixoid.c (poll_fds_for_input):
6354         * events.c:
6355         * events.c (mark_event):
6356         * events.c (event_equal):
6357         * events.c (event_hash):
6358         * events.c (Fmake_event):
6359         * events.c (Fdeallocate_event):
6360         * events.c (event_chain_find_previous):
6361         * events.c (event_to_character):
6362         * events.c (format_event_object):
6363         * events.c (Fevent_type):
6364         * events.c (event_pixel_translation):
6365         * events.c (Fevent_properties):
6366         * extents.c (extent_in_region_p):
6367         * extents.c (print_extent):
6368         * extents.c (process_extents_for_insertion_mapper):
6369         * extents.c (report_extent_modification_mapper):
6370         * extents.c (glyph_layout_to_symbol):
6371         * faces.c (face_validate):
6372         * file-coding.c (eol_type_to_symbol):
6373         * file-coding.c (subsidiary_coding_system):
6374         * file-coding.c (Fcoding_system_type):
6375         * file-coding.c (Fcoding_system_property):
6376         * file-coding.c (mule_decode):
6377         * file-coding.c (mule_encode):
6378         * file-coding.c (encode_coding_ucs4):
6379         * file-coding.c (encode_coding_utf8):
6380         * file-coding.c (parse_iso2022_esc):
6381         * file-coding.c (encode_coding_iso2022):
6382         * fileio.c:
6383         * fns.c (concat):
6384         * fns.c (Fsubseq):
6385         * fns.c (mapcar1):
6386         * fns.c (Fbase64_encode_region):
6387         * fns.c (Fbase64_encode_string):
6388         * fns.c (Fbase64_decode_region):
6389         * fns.c (Fbase64_decode_string):
6390         * font-lock.c (find_context):
6391         * font-lock.c (context_to_symbol):
6392         * frame-gtk.c (gtk_set_frame_pointer):
6393         * frame-gtk.c (gtk_update_frame_external_traits):
6394         * frame-x.c (x_wm_mark_shell_size_user_specified):
6395         * frame-x.c (x_wm_mark_shell_position_user_specified):
6396         * frame-x.c (x_wm_set_shell_iconic_p):
6397         * frame-x.c (x_wm_set_cell_size):
6398         * frame-x.c (x_wm_set_variable_size):
6399         * frame-x.c (x_wm_store_class_hints):
6400         * frame-x.c (x_wm_maybe_store_wm_command):
6401         * frame-x.c (x_initialize_frame_size):
6402         * frame-x.c (x_update_frame_external_traits):
6403         * frame.c:
6404         * frame.c (delete_frame_internal):
6405         * frame.c (mouse_pixel_position_1):
6406         * frame.c (change_frame_size_1):
6407         * free-hook.c (check_free):
6408         * free-hook.c (check_realloc):
6409         * free-hook.c (note_block_input):
6410         * free-hook.c (log_gcpro):
6411         * gccache-gtk.c (gc_cache_lookup):
6412         * glyphs-eimage.c (tiff_memory_write):
6413         * glyphs-gtk.c (gtk_finalize_image_instance):
6414         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6415         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6416         * glyphs-gtk.c (gtk_xpm_instantiate):
6417         * glyphs-gtk.c (gtk_unmap_subwindow):
6418         * glyphs-gtk.c (gtk_map_subwindow):
6419         * glyphs-gtk.c (gtk_button_redisplay):
6420         * glyphs-msw.c:
6421         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6422         * glyphs-x.c (init_image_instance_from_xbm_inline):
6423         * glyphs-x.c (extract_xpm_color_names):
6424         * glyphs-x.c (x_xpm_instantiate):
6425         * glyphs.c (get_image_instantiator_governing_domain):
6426         * glyphs.c (print_image_instance):
6427         * glyphs.c (image_instance_equal):
6428         * glyphs.c (image_instance_hash):
6429         * glyphs.c (encode_image_instance_type):
6430         * glyphs.c (make_image_instance_1):
6431         * glyphs.c (inherit_instantiate):
6432         * glyphs.c (image_instantiate):
6433         * glyphs.c (allocate_glyph):
6434         * glyphs.c (Fglyph_type):
6435         * glyphs.c (redisplay_subwindow):
6436         * glyphs.c (display_table_entry):
6437         * gtk-glue.c (xemacs_list_to_gtklist):
6438         * gtk-glue.c (xemacs_gtklist_to_list):
6439         * gtk-glue.c (xemacs_list_to_array):
6440         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6441         * gutter.c (gutter_was_visible):
6442         * gutter.c (get_gutter_coords):
6443         * input-method-xlib.c (get_XIM_input):
6444         * insdel.c (bufpos_to_bytind_func):
6445         * insdel.c (bytind_to_bufpos_func):
6446         * insdel.c (move_gap):
6447         * intl.c (x_get_composed_input):
6448         * keymap.c (keymap_lookup_directly):
6449         * keymap.c (keymap_delete_inverse_internal):
6450         * keymap.c (ensure_meta_prefix_char_keymapp):
6451         * keymap.c (accessible_keymaps_mapper_1):
6452         * keymap.c (where_is_recursive_mapper):
6453         * lisp.h:
6454         * lisp.h (ABORT):
6455         * lread.c (read_atom):
6456         * lstream.c (Lstream_delete):
6457         * lstream.c (make_lisp_buffer_stream_1):
6458         * macros.c (pop_kbd_macro_event):
6459         * malloc.c (malloc):
6460         * malloc.c (free):
6461         * marker.c (bi_marker_position):
6462         * marker.c (set_bi_marker_position):
6463         * menubar-gtk.c (menu_descriptor_to_widget_1):
6464         * menubar-msw.c (prune_menubar):
6465         * menubar-x.c (set_frame_menubar):
6466         * mule-charset.c (get_unallocated_leading_byte):
6467         * mule-charset.h (CHAR_LEADING_BYTE):
6468         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6469         * nt.c (init_environment):
6470         * nt.c (generate_inode_val):
6471         * ntproc.c (delete_child):
6472         * ntproc.c (_sys_read_ahead):
6473         * ntproc.c (create_child):
6474         * objects.c (color_instantiate):
6475         * objects.c (font_instantiate):
6476         * objects.c (face_boolean_instantiate):
6477         * print.c (printing_major_badness):
6478         * process-nt.c (nt_send_process):
6479         * process-unix.c (unix_send_process):
6480         * process.c (get_process):
6481         * ralloc.c (obtain):
6482         * ralloc.c (relinquish):
6483         * ralloc.c (relocate_blocs):
6484         * ralloc.c (resize_bloc):
6485         * ralloc.c (r_alloc_free):
6486         * ralloc.c (r_re_alloc):
6487         * ralloc.c (r_alloc_thaw):
6488         * ralloc.c (init_ralloc):
6489         * ralloc.c (Free_Addr_Block):
6490         * ralloc.c (r_alloc):
6491         * redisplay-gtk.c (gtk_output_display_block):
6492         * redisplay-msw.c (mswindows_output_display_block):
6493         * redisplay-output.c (get_next_display_block):
6494         * redisplay-output.c (get_cursor_size_and_location):
6495         * redisplay-output.c (redisplay_output_layout):
6496         * redisplay-output.c (redisplay_clear_region):
6497         * redisplay-tty.c (tty_output_display_block):
6498         * redisplay-x.c (x_output_display_block):
6499         * redisplay.c (add_propagation_runes):
6500         * redisplay.c (add_glyph_rune):
6501         * redisplay.c (create_text_block):
6502         * redisplay.c (add_margin_runes):
6503         * redisplay.c (create_left_glyph_block):
6504         * redisplay.c (create_right_glyph_block):
6505         * redisplay.c (create_string_text_block):
6506         * redisplay.c (regenerate_window):
6507         * redisplay.c (REGEN_INC_FIND_START_END):
6508         * redisplay.c (redisplay_frame):
6509         * redisplay.c (point_in_line_start_cache):
6510         * regex.c:
6511         * regex.c (ABORT):
6512         * regex.c (re_compile_fastmap):
6513         * regex.c (re_match_2_internal):
6514         * regex.c (regerror):
6515         * scrollbar-gtk.c (gtk_scrollbar_loop):
6516         * scrollbar-gtk.c (scrollbar_cb):
6517         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6518         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6519         * scrollbar-x.c (x_update_scrollbar_instance_status):
6520         * scrollbar-x.c (x_scrollbar_loop):
6521         * scrollbar-x.c (x_update_frame_scrollbars):
6522         * search.c (search_command):
6523         * search.c (Fmatch_data):
6524         * select-x.c (motif_clipboard_cb):
6525         * signal.c (interrupt_signal):
6526         * specifier.c (specifier_add_spec):
6527         * specifier.c (specifier_instance_from_inst_list):
6528         * specifier.c (specifier_instance):
6529         * specifier.h:
6530         * specifier.h (struct specifier_methods):
6531         * strftime.c (add_num_time_t):
6532         * sunplay.c (init_device):
6533         * symbols.c (Fsetplist):
6534         * symbols.c (do_symval_forwarding):
6535         * symbols.c (store_symval_forwarding):
6536         * symbols.c (Fset):
6537         * symbols.c (Fbuilt_in_variable_type):
6538         * symbols.c (decode_magic_handler_type):
6539         * symbols.c (handler_type_from_function_symbol):
6540         * syntax.c (update_syntax_cache):
6541         * sysdep.c (init_baud_rate):
6542         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6543         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6544         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6545         * toolbar.c (get_toolbar_coords):
6546         * ui-gtk.c (build_gtk_boxed):
6547         * ui-gtk.c (describe_gtk_arg):
6548         * ui-gtk.c (gtk_type_to_lisp):
6549         * ui-gtk.c (lisp_to_gtk_type):
6550         * ui-gtk.c (lisp_to_gtk_ret_type):
6551         * ui-gtk.c (lisp_to_flag):
6552         * unexnt.c (read_in_bss):
6553         * unexnt.c (map_in_heap):
6554         * window.c (real_window):
6555         * window.c (window_display_lines):
6556         * window.c (window_display_buffer):
6557         * window.c (set_window_display_buffer):
6558         * window.c (window_modeline_height):
6559         * window.c (unshow_buffer):
6560         * window.c (window_loop):
6561         * window.c (Fget_lru_window):
6562         * window.c (Fsplit_window):
6563         * window.c (Fset_window_configuration):
6564         * window.c (saved_window_index):
6565         * xgccache.c (gc_cache_lookup):
6566         abort() -> ABORT().  Eliminate preprocessor games with abort()
6567         since it creates huge problems in VC7, solvable only by including
6568         massive amounts of files in every compile (and not worth it).
6569
6570         * sysdep.c:
6571         * sysproc.h:
6572         Inclusion of process.h does not need to be before lisp.h any more.
6573         Move later and remove comment about abort().
6574
6575 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6576
6577         * regex.c (re_match_2_internal):
6578         Correctly initialize loop which clears uninitialized registers.
6579
6580 2005-01-28  Vin Shelton  <acs@xemacs.org>
6581
6582         * sheap.c (more_static_core): Applied Ben's version of the long
6583         string patch.
6584
6585 2005-01-24  Vin Shelton  <acs@xemacs.org>
6586
6587         * sheap.c (more_static_core): Reformatted printf string so
6588         gcc-3.3.3 will compile this on Cygwin.
6589
6590 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6591
6592         * console.c (function_key_map): Reference `key-binding'.
6593
6594         * keymap.c (Vkey_translation_map): Improve docstring.
6595
6596 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6597
6598         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6599         * window.c (window_loop): [fix] Take into account
6600         `allow-deletion-of-last-visible-frame' variable.
6601         * window.c (replace-buffer-in-windows): Ditto.
6602
6603 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6604
6605         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6606
6607 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6608
6609         * event-gtk.c: Recognise AltGr as a valid modifier.
6610
6611 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6612
6613         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6614
6615 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6616
6617         Fix backreference bug caught by test suite.
6618
6619         * regex.c (regex_compile):
6620         Make backref duplicate internal register.
6621
6622 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6623
6624         Documentation, code clarification, and warning suppression.
6625         
6626         * regex.c (regex_compile):
6627         Improve comments.
6628         (re_match_2_internal):
6629         Improve comments and avoid redundant braces.  [Most of the big hunk
6630         at l. 4710 is indentation; use diff -w to see the real changes.]
6631         (alt_match_null_string_p):
6632         (common_op_match_null_string_p):
6633         Avoid shadowing global on Mac OS X 10.4, at least.
6634
6635 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6636
6637         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6638         introduced with shy groups fix).  [Already applied, probably
6639         with the second "fix shy groups" patch of 2004-10-07.] 
6640
6641 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6642
6643         From Andrey Slusar <anrays@gmail.com>:
6644
6645         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6646
6647 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6648
6649         * Makefile (RECURSIVE_MAKE): Removed.
6650         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6651         handling parallel builds.
6652
6653 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6654
6655         * Makefile.in.in: Enable support for parallel builds.
6656
6657 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6658
6659         From Andrey Slusar <anrays@gmail.com>:
6660
6661         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6662         FreeBSD version is >= 199701 _and_ < 600006.
6663
6664 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6665
6666         * scrollbar.c (compute_scrollbar_instance_usage):
6667         Only call device method compute_scrollbar_instance_usage() if it
6668         is defined.
6669
6670 2004-12-05  Vin Shelton <acs@xemacs.org>
6671
6672         * XEmacs 21.4.16 is released
6673
6674 2004-12-04  Vin Shelton  <acs@xemacs.org>
6675
6676         * depend: Regenerated.
6677
6678 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6679
6680         * regex.c (re_match_2_internal): Map internal to external
6681         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6682         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6683
6684 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6685
6686         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6687         to fix a crash.  Also, check the buffer is live and it
6688         really exists in buffer_list.  If the buffer is not in the list,
6689         prepend it.
6690
6691 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6692
6693         Fix shy groups by implementing recording of all groups for
6694         repetition and backtracking.  Backport from 21.5.
6695         
6696         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6697         external_to_internal_register, external_to_internal_register_size,
6698         and update comments for re_nsub.
6699
6700         * regex.c (re_opcode_t): Update comments.
6701         (print_compiled_pattern): Ouput external_to_internal_register,
6702         external_to_internal_register_size, and re_ngroups for debugging.
6703         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6704         (regex_compile): Update header comment.
6705         Ensure that all groups are recorded so that repeat matches and
6706         backtracking work correctly.  Comment related warning for groups >
6707         255.
6708         (re_search_2): Construct map of API indexes (which count only
6709         nonshy groups) to internal register numbers, and keep it updated.
6710
6711 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6712
6713         * frame-gtk.c (gtk_make_frame_visible):
6714         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6715         show/hide.  This is what X uses and is prevents previously hidden
6716         widgets from suddenly reappearing.
6717         * gtk-xemacs.c (gtk_xemacs_paint):
6718         * gtk-xemacs.c (gtk_xemacs_draw):
6719         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6720         drawable.
6721         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6722         size and location changes so that they can be seen before the next
6723         idle event.  Without this rapid changes to scrollbar properties
6724         are not seen.
6725
6726 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6727
6728         * console-gtk.h:
6729         * console-gtk.h (struct gtk_frame):
6730         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6731           Add hash tables track tab_control callback data.
6732           Added #defines for GTK object data names.
6733           Declaration of gtk_widget_to_frame().
6734         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6735         * frame-gtk.c (gtk_widget_to_frame): New.
6736         * frame-gtk.c (gtk_create_widgets):
6737         * frame-gtk.c (allocate_gtk_frame_struct):
6738         * frame-gtk.c (gtk_mark_frame):
6739         Manage frame callbakc hash tables.
6740         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6741         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6742         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6743         of widget size.
6744         * glyphs-gtk.c (gtk_widget_query_geometry): New
6745         * glyphs-gtk.c (gtk_register_gui_item): New
6746         * glyphs-gtk.c (gtk_add_tab_item): New
6747         * glyphs-gtk.c (gtk_tab_control_callback): New
6748         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6749         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6750         Use correct list when loading item.
6751         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6752         Register new methods.
6753         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6754         default size, for widgets.
6755         * gui-x.c:  Improved comment.
6756         * menubar-gtk.c (__generic_button_callback): Use
6757         gtk_widget_to_frame instead of __get_channel.
6758         * scrollbar-gtk.c:
6759         * ui-gtk.c: Use symbolic names for GTK object data.
6760
6761 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6762
6763         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6764
6765 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6766
6767         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6768
6769 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6770
6771         * malloc.c (morecore): siz is a long because in some architectures
6772         (eg ia-64) an int cannot hold the address range.  Additional patch
6773         from the SuSe distribution.
6774
6775 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6776
6777         * emacs.c:
6778         * malloc.c: lim_data is a long because in some architectures
6779         (eg ia-64) an int cannot hold the address range.
6780         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6781         instead of ulimit() because ulimit() always returns -1.
6782
6783 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6784
6785         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6786
6787 2004-06-11  David Kastrup  <dak@gnu.org>
6788
6789         * search.c (match_limit): Don't flag an error if match-data
6790         exceeding the allocated search_regs.num_regs gets requested, just
6791         return Qnil.
6792
6793 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6794
6795         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6796         replace symbolic color entries with the real colors specified in
6797         xpm-color-symbols, before passing the XPM to gtk.
6798         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6799         instead of a GTK specific field, so that it is used in by generic
6800         code.
6801
6802 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6803
6804        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6805         coredump from deref of NULL ptr (ExtData)
6806
6807 2004-04-19  Jerry James  <james@xemacs.org>
6808
6809         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6810         VALBITS to compute the location of the sign bit.
6811         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6812         of VALBITS with EMACS_INT_MAX.
6813         * events.c (Fevent_timestamp): Ditto.
6814         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6815         compute the halfway point to timestamp wraparound.
6816         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6817         EMACS_INT_MIN instead of using VALBITS.
6818         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6819         incorrect number with VALBITS.
6820         * fns.c (Frandom): Correct number of integer bits in docstring.
6821         Use INT_VALBITS instead of VALBITS to compute the denominator.
6822         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6823         build random numbers.
6824
6825 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6826         * event-gtk.c:
6827         * event-gtk.c (gtk_event_to_emacs_event):
6828         * menubar-gtk.c:
6829         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6830         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6831         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6832         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6833         * menubar-gtk.c (__activate_menu):
6834         * menubar-gtk.c (convert_underscores):
6835         * menubar-gtk.c (remove_underscores):
6836         * menubar-gtk.c (menu_convert):
6837         * menubar-gtk.c (menu_descriptor_to_widget_1):
6838         * menubar-gtk.c (menu_descriptor_to_widget):
6839         * menubar-gtk.c (menu_can_reuse_widget):
6840         * menubar-gtk.c (menu_create_menubar):
6841         * menubar-gtk.c (gtk_popup_menu):
6842         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6843         Added support for Gtk menu bar and menu item mnemonics.
6844
6845 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6846
6847         * sysdll.c: (dll_function): Added support for finding symbols in
6848         Darwin shared libraries as well in Darwin bundles.
6849         * sysdll.c (image_for_address): New
6850         * sysdll.c (my_find_image): New
6851         * sysdll.c (search_linked_libs): New
6852
6853 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6854
6855         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6856         return to GTK requires a different API to marshalling data to use
6857         as GTK parameters.
6858         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6859
6860 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6861
6862         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6863
6864 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6865
6866         * glyphs.c (process_image_string_instantiator):
6867         (Fset_console_type_image_conversion_list):
6868         Stop GCC from warning about shadowing of `exp'.
6869
6870         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6871
6872 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6873
6874         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6875
6876 2004-02-03  Vin Shelton  <acs@xemacs.org>
6877
6878         * glyphs.c (image_instance_layout): Remove pointless assertion.
6879         * regex.c (regex_grow_registers): Return type is void.
6880
6881 2004-02-02  Vin Shelton <acs@xemacs.org>
6882
6883         * XEmacs 21.4.15 is released
6884
6885 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6886
6887         * device-x.c (x_error_handler): Don't call stderr_out
6888
6889 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6890
6891         * buffer.c (other-buffer): Clarify documentation of order of
6892         arguments for FSF Emacs.
6893
6894 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6895
6896         * window.c (Fdelete_window): Dirty the mirror structure _before_
6897         marking the window deleted.
6898
6899 2003-09-15  Jerry James  <james@xemacs.org>
6900
6901         * event-msw.c (debug_mswin_messages): Conditionally compile
6902         messages missing from the Cygwin headers.
6903
6904 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6905
6906         * data.c (eq_with_ebola_notice): Fix typo in comment.
6907         (Ftrue_list_p): Improve docstring.
6908
6909 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6910
6911         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6912
6913 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6914
6915         * search.c (trivial_regexp_p): Regexps containing "\{" are
6916         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6917         Stefan Monnier for suggesting a diagnosis.
6918
6919 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6920
6921         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6922
6923 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6924
6925         * search.c (Fsearch_forward):
6926         (Fsearch_backward):
6927         Document negative count.
6928
6929 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6930
6931         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6932
6933 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6934
6935         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6936
6937 2003-09-15  Vin Shelton  <acs@xemacs.org>
6938
6939         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6940         21.5.
6941
6942 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6943
6944         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6945         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6946         (re_match_2_internal): Use TRANSLATE instead of
6947         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6948         non-ASCII char case conversion.
6949
6950 2003-09-08  Mike Sperber  <mike@xemacs.org>
6951
6952         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6953         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6954
6955 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6956
6957        * .gdbinit (pobj): fix printing of symbol name.
6958
6959 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6960
6961         * frame-x.c (x_layout_widgets): When resizing is about to cause
6962         frame size slip, mark it for redisplay.
6963
6964 2003-08-18  Jerry James  <james@xemacs.org>
6965
6966         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6967
6968 2003-09-03  Vin Shelton <acs@xemacs.org>
6969
6970         * XEmacs 21.4.14 is released
6971
6972 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6973
6974         * config.h.in (REGEX_MALLOC): Make it configure'able.
6975
6976 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6977
6978         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6979         linking.
6980         * sysdll.c (dll_init):
6981         * sysdll.c (dll_open):
6982         * sysdll.c (dll_close):
6983         * sysdll.c (dll_function):
6984         * sysdll.c (dll_variable):
6985         * sysdll.c (dll_error):
6986         Add support for loading bundles using Darwin/MacOSX
6987         native API.
6988
6989 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6990
6991         * process.c (start-process-internal): Document coding systems.
6992
6993 2003-07-30  Jerry James  <james@xemacs.org>
6994
6995         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6996
6997 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6998
6999         * event-msw.c (mswindows_enqueue_mouse_button_event):
7000         * event-msw.c (mswindows_wnd_proc):
7001           enqueue button event when scrollwheel event isn't handled by 
7002           mswindows_handle_mousewheel_event, such as when the scrollbars
7003           are not showing.
7004
7005 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7006
7007         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7008
7009 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7010
7011         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7012
7013 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7014
7015         * regex.c (re_match_2_internal): Fix matching degenerate word
7016         boundaries.
7017
7018 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7019
7020         * XEmacs 21.4.13 is released
7021
7022 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7023
7024         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7025         * lisp.h (<inttypes.h>):
7026         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7027         the definition.
7028
7029 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7030
7031         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7032         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7033         Result: "temacs can only be run in -batch mode."
7034         Fix: Check xemacs executable candidate for directory-ness.
7035
7036 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7037
7038         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7039           they conflict with <sys/types.h>.
7040
7041 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7042
7043         * database.c: Berkeley DB wants __STDC__ to be defined.
7044
7045 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7046
7047         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7048
7049 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7050
7051         * process-unix.c (unix_send_process): Fix C++ compile error.
7052
7053 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7054
7055         * Added .dylib as an acceptable shared library file extension
7056         * to support MacOSX.
7057
7058 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7059
7060         * EmacsFrameP.h (EmacsFramePart):
7061         Kludge to allow compiling with Motif1, but linking with Motif2.
7062
7063 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7064
7065         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7066
7067
7068 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7069
7070         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7071
7072 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7073
7074         * sysdll.c: Included lisp.h to define needed alloca_array.
7075
7076 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7077
7078         Make XEmacs redisplay 10 times faster.
7079         If, that is, you're using a slow X connection and MoveOpaque.
7080         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7081         Use compress_motion = TRUE.
7082         * EmacsFrame.c (emacsFrameClassRec): 
7083         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7084         * EmacsManager.c (emacsManagerClassRec):
7085         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7086
7087 2003-01-30  Vin Shelton  <acs@xemacs.org>
7088
7089         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7090
7091 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7092
7093         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7094         Patch by Martin Buchholz.
7095
7096 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7097
7098         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7099         Thanks to icc for warning and Martin Buchholz for reporting.
7100
7101 2003-01-29  Vin Shelton <acs@xemacs.org>
7102
7103         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7104
7105         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7106         remember to multiply by the element size.
7107
7108 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7109
7110         * XEmacs 21.4.12 "Portable Code" is released.
7111
7112 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7113
7114         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7115         * s/cygwin.sc: new linker file.
7116
7117 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7118
7119         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7120
7121         * redisplay-x.c (x_output_string): Use X11-specified types.
7122         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7123         * emacs.c (__free_hook): Use typeof with Intel compiler.
7124         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7125
7126 2003-01-08  Andy Piper  <andy@xemacs.org>
7127
7128         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7129         reserve size during unexec().
7130
7131 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7132
7133         * process-unix.c (unix_create_process): Don't let outchannel block.
7134
7135 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7136
7137         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7138         Needed for IsBadReadPtr().
7139
7140 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7141
7142         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7143
7144 2002-12-14  Ben Wing  <ben@xemacs.org>
7145
7146         * callint.c: Declaration error.
7147         * dumper.c (pdump):
7148         * dumper.c (pdump_load): Warning fix.
7149         * process.c: GCPRO error.
7150         * glyphs.c (unmap_subwindow):
7151         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7152         * event-stream.c (maybe_kbd_translate): Wrong argument to
7153         character_to_event().
7154
7155         * alloc.c (garbage_collect_1):
7156         * emacs.c:
7157         * emacs.c (debug_can_access_memory):
7158         * emacs.c (fatal_error_signal):
7159         * emacs.c (mswindows_handle_hardware_exceptions):
7160         * emacs.c (main_1):
7161         * emacs.c (main):
7162         * emacs.c (assert_failed):
7163         * emacs.c (syms_of_emacs):
7164         * lisp.h:
7165         * print.c:
7166         * print.c (std_handle_out_va):
7167         * print.c (write_string_to_stdio_stream):
7168         * print.c (write_fmt_string):
7169         * print.c (printing_badness):
7170         * print.c (printing_major_badness):
7171         * print.c (print_internal):
7172         * print.c (debug_print_no_newline):
7173         * print.c (debug_backtrace):
7174         Be more defensive in handling bad values when printing.  Add code
7175         from trunk involving inhibit_non_essential_printing_operations.
7176         When going down or in debug_print(), don't do external conversion
7177         and such and try really, really hard when printing to avoid core
7178         dumping.  Add force-debugging-signal, debug_break().
7179
7180 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7181
7182         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7183         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7184
7185 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7186
7187         * database.c: Fix open_database. Berkeley DB API has changed in
7188         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7189
7190 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7191
7192         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7193
7194 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7195
7196         * event-Xt.c (Xt_timeout):
7197         (Xt_timeout_callback):
7198         (emacs_Xt_add_timeout):
7199         (emacs_Xt_remove_timeout):
7200         (Xt_timeout_to_emacs_event):
7201         Turn completed_timeouts from a stack into a queue.  Fixes
7202         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7203
7204 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7205
7206         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7207         * emacs.c (main): Assert that mmap'd allocation is disabled.
7208
7209 2002-10-14  Andy Piper  <andy@xemacs.org>
7210
7211         * glyphs-widget.c (layout_query_geometry): add in fiddle
7212         factor. Include border text in width layout calculation.
7213         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7214
7215 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7216
7217         * XEmacs 21.4.10 "Military Intelligence" is released.
7218
7219 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7220
7221         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7222         using the NAS private array SoundFileInfo that no longer exists in
7223         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7224         and earlier.  This is broken for some versions between 1.5a and
7225         1.5f.
7226
7227 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7228
7229         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7230
7231         * emacs.c (shut_down_emacs): Improve crash message.
7232
7233 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7234
7235         * file-coding.c (determine_real_coding_system): Check for coding
7236         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7237         shebangs and Python PEP 263.
7238
7239 2002-10-08  Andy Piper  <andy@xemacs.org>
7240
7241         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7242         if static sizes haven't been set.
7243
7244 2002-08-30  Mike Alexander  <mta@arbortext.com>
7245
7246         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7247         to close a socket.
7248
7249 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7252
7253 2002-09-20  Mike Sperber <mike@xemacs.org>
7254
7255         (This partially gets back my patch from 2002-07-20 without the
7256         bug.)
7257         * callproc.c (child_setup): Remove Ben's comment noting confusion
7258         over the file descriptors >= 3: close_process_descs() doesn't
7259         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7260         * process-unix.c (unix_create_process): Call
7261         begin_dont_check_for_quit to inhibit unwanted interaction (and
7262         thus breaking of X event synchronicity) in the child.
7263
7264 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7265
7266         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7267         widget.
7268
7269 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7270
7271         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7272         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7273         the xemacs process did not exit, but looped infinitely here.  This
7274         fixes that problem.
7275
7276 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7277
7278         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7279         (find_context): Improve comments.
7280
7281         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7282         (re_match_2): An XCHAR_TABLE operation was missing.
7283
7284         Many of the following changes were inspired by Andy Piper's (now
7285         obsolete) patch to make syntax-table text property lookup optional.
7286
7287         [Documentation]
7288
7289         * syntax.h (top level): Document semantics of syntax flags.
7290         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7291         * syntax.c, syntax.h (top level): Document syntax cache better in
7292         comments.
7293
7294         [Instrument syntax caching (temporary change)]
7295
7296         * syntax.h (enum syntax_cache_statistics_functions, struct
7297         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7298         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7299         * syntax.c (scan_words, Fforward_comment, scan_lists,
7300         Fbackward_prefix_characters):
7301         * font-lock.c (find_context):
7302         Use them to instrument syntax caching. 
7303         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7304         syntax_cache_statistics_function_names): New type and variables.
7305         * syntax.c (update_syntax_cache): Update and report statistics.
7306
7307         [Major syntax cache optimizations]
7308
7309         syntax.c (lookup_syntax_properties): Default off.
7310
7311         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7312         * syntax.c (update_syntax_cache):
7313         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7314
7315         [Minor syntax cache optimizations and code clarifications]
7316
7317         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7318         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7319         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7320         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7321         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7322         (Code clarification.)
7323
7324         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7325         scan_lists): Compute code from syncode, use Boolean macros instead
7326         of redundant masking operations.  (Code clarification; any decent
7327         compiler can do this optimization.)
7328
7329         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7330         for clarity.
7331
7332         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7333         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7334         use F*_single_property_change instead of F*_extent_change.
7335         Currently F*_single_property_change is _much_ less efficient.
7336
7337         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7338         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7339         syntax_cache.object properly, don't leave Qt or Qnil.
7340         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7341         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7342         tests for Qt or Qnil.
7343
7344 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7345
7346         * redisplay.c (point_in_line_start_cache): 
7347         * extents.c (print_extent_1):
7348         Fix warnings.
7349
7350         * extents.c (Fset_extent_property): Document `syntax-table' property.
7351
7352         * extents.h (Fnext_single_property_change): EXFUN it.
7353
7354 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7355
7356         * search.c (clear_unused_search_regs): New static function.
7357         (search_buffer): 
7358         (simple_search): 
7359         (boyer_moore):
7360         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7361         Minor clarifications in comments.
7362
7363         * regex.c (re_match_2_internal): Ensure no stale submatches.
7364
7365 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7366
7367         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7368
7369 2002-08-29  Jerry James  <james@xemacs.org>
7370
7371         * lisp.h: structrures -> structures.
7372
7373 2002-06-03  Andy Piper  <andy@xemacs.org>
7374
7375         * frame.c (frame_conversion_internal): add conversion appropriate
7376         for setting frame dimensions in pixels.
7377
7378         * console.h (struct console_methods): add device-specific widget
7379         layout functions.
7380
7381         * emacs.c (main_1): initialize glyph vars.
7382
7383         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7384         (handle_focus_event_2): new function. Allow focus to
7385         be set to a particular window and widget.
7386         (enqueue_focus_event): new function. Create a
7387         synthetic focus event.
7388         (emacs_Xt_handle_magic_event): call
7389         handle_focus_event_2.
7390
7391         * frame.c (Fset_frame_pixel_height): new function. Allow
7392         pixel-based sizing. Does the right thing on character-oriented
7393         displays.
7394         (Fset_frame_pixel_width): ditto.
7395         (Fset_frame_pixel_size): ditto.
7396         (syms_of_frame): declare.
7397
7398         * general-slots.h: add :vertically-justify and
7399         :horizontally-justify.
7400
7401         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7402         (mswindows_widget_border_width): new function.
7403         (mswindows_combo_box_instantiate): set border widths.
7404         (console_type_create_glyphs_mswindows): declare.
7405
7406         * glyphs-widget.c:
7407         (check_valid_justification): allow vertical and horizontal
7408         justification.
7409         (widget_border_width): new function. Call device methods.
7410         (widget_instance_border_width): ditto.
7411         (logical_unit_height): new function. Determine the height of a
7412         logical-unit. Logical units are intended to provide grid-like
7413         layout for subcontrols in a layout. If the layout is
7414         :vertically-justify top then subcontrols will be positioned on
7415         logical-unit boundaries, thus allowing adjacent subcontrols to
7416         line up.
7417         (widget_logical_unit_height): ditto for widgets.
7418         (redisplay_widget): misc cleanup.
7419         (widget_spacing): new function. Call device specific
7420         methods. Intended to be the default gap between adjacent widgets.
7421         (widget_query_geometry): use new spacing functions to determine
7422         appropriate geometry.
7423         (initialize_widget_image_instance): initialize horizontal and
7424         vertical justification.
7425         (widget_instantiate): use logica-units where appropriate for
7426         sizing large widgets.
7427         (button_query_geometry): use widget_instance_border_width.
7428         (tree_view_query_geometry): ditto.
7429         (tab_control_query_geometry): ditto.
7430         (edit_field_query_geometry): new function.
7431         (layout_update): pick up :justify, :horizontally-justify and
7432         :vertically-justify none of which worked previously. :justify is
7433         used as a fallback for both horizontal and vertical justification.
7434         (layout_query_geometry): use logical units to size appropriately.
7435         (layout_layout): ditto.
7436         (Fwidget_logical_to_character_width): new function. Allow users to
7437         convert from logical units to characters so that frame sizes can
7438         be set appropriately.
7439         (Fwidget_logical_to_character_height): ditto.
7440         (syms_of_glyphs_widget): declare.
7441         (image_instantiator_edit_fields): add edit_field_query_geometry.
7442         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7443         :horizontally-justify.
7444         (specifier_vars_of_glyphs_widget): new function. Declare
7445         Vwidget_border_width which is not yet used.
7446
7447         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7448         (x_widget_border_width): new function.
7449         (x_widget_instantiate): create a sensible name for widgets.
7450         (console_type_create_glyphs_x): declare x_widget_border_width.
7451
7452         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7453         (struct Lisp_Image_Instance): add :vertically-justify and
7454         :horizontally-justify.
7455         (LAYOUT_JUSTIFY_TOP): new.
7456         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7457         (ROUND_UP): new macro. Round argument up to next integral
7458         interval.
7459
7460         * redisplay-output.c (redisplay_output_layout): misc formatting.
7461
7462         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7463
7464 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7465
7466         * XEmacs 21.4.9 "Informed Management" is released.
7467
7468 2002-08-19  Andy Piper  <andy@xemacs.org>
7469
7470         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7471         win32 format.
7472
7473         * realpath.c (xrealpath): normalize drive spec also so that dir
7474         sep chars are not mixed on cygwin.
7475
7476 2002-08-06  Jerry James  <james@xemacs.org>
7477
7478         * window.c (Fsplit_window): Count only half of the divider width
7479         against the left window when splitting horizontally. 
7480
7481 2002-06-24  Andy Piper  <andy@xemacs.org>
7482
7483         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7484         toolbar was cleared.
7485
7486         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7487         function. Split out from mswindows_output_frame_toolbars.
7488         (mswindows_output_frame_toolbars): move clear pieces to
7489         mswindows_output_frame_toolbars.
7490
7491         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7492         out from gtk_output_frame_toolbars.
7493         (gtk_output_frame_toolbars): move clear pieces to
7494         gtk_clear_frame_toolbars.
7495
7496         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7497         the frame is cleared. How this ever worked before is a mystery.
7498         (x_output_frame_toolbars): Only output toolbars.
7499         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7500
7501         * gutter.c (update_gutter_geometry):
7502         Mark frame layout changed.
7503         (update_frame_gutter_geometry, update_frame_gutters):
7504         Respect frame_layout_changed.
7505
7506         * console.h (struct console_methods): add
7507         clear_frame_toolbars_method.
7508
7509         * redisplay.c (redisplay_frame): call
7510         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7511
7512         * toolbar.h: declare update_frame_toolbars_geometry.
7513
7514         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7515         out from update_frame_toolbars.  Call clear_frame_toolbars.
7516         (update_frame_toolbars): only output, do not change geometry.
7517
7518         * redisplay.c: add frame_layout_changed.
7519
7520         * redisplay.h: add frame_layout_changed.
7521         (CLASS_RESET_CHANGED_FLAGS): set it.
7522         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7523         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7524         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7525
7526         * device.h (struct device): add frame_layout_changed.
7527         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7528
7529         * frame.h (struct frame): add frame_layout_changed.
7530         (MARK_FRAME_LAYOUT_CHANGED): new.
7531
7532 2002-06-30  Mike Alexander  <mta@arbortext.com>
7533
7534         * event-msw.c (mswindows_need_event): Don't wait for a new message
7535         if the queue is not empty.  Suggested by Paul Moore.
7536
7537 2002-06-12  Andy Piper  <andy@xemacs.org>
7538
7539         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7540         for printing on accurately.
7541
7542 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7543
7544         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7545         WM_ACTIVATE message. Make sure that the frame is visible if the
7546         window is visible. This seemss to fix the problem where XEmacs
7547         appears to freeze after switching desktops with certain virtual
7548         window managers.
7549         (debug_output_mswin_message): Added code to output message
7550         parameters for WM_WINDOWPOSCHANGED, 
7551         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7552
7553 2002-05-25  Andy Piper  <andy@xemacs.org>
7554
7555         * select-x.c (vars_of_select_x): Fix docstring of
7556         x-selection-strict-motif-ownership
7557
7558 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7559
7560         * keymap.c (get_keymap):
7561         Add comment about do_autoload GCPROs own args.
7562
7563 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7564
7565         * bytecode.c (execute_optimized_program): check_opcode ifdef
7566         ERROR_CHECK_BYTE_CODE.
7567
7568 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7569
7570         Thanks to Ben Wing and Michael Sperber.
7571
7572         * eval.c (Fcommand_execute):
7573         (Feval):
7574         (Ffuncall):
7575         (Fmacroexpand_internal):
7576         (function_argcount):
7577         callint.c (Fcall_interactively):
7578         Add comment about do_autoload GCPROs own args.
7579
7580         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7581
7582         * eval.c (Ffuncall): Extra braces to placate GCC.
7583
7584 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7585
7586         * backtrace.h (grow_specpdl):
7587         (SPECPDL_RESERVE):
7588         * EmacsFrame.c (EmacsFrameSetValues):
7589         * eval.c (grow_specpdl):
7590         * ExternalShell.c (hack_event_masks_1):
7591         * glyphs-x.c (convert_EImage_to_XImage): 
7592         (x_finalize_image_instance):
7593         * ralloc.c (page_size):
7594         (r_alloc_sbrk):
7595         * xgccache.c (gc_cache_hash):
7596         Fix unsigned comparison warnings.
7597
7598 2002-07-29  Jerry James  <james@xemacs.org>
7599
7600         * lread.c (locate_file): Any nonnegative return value indicates
7601         success if MODE is nonnegative.
7602
7603 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7604
7605         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7606         argument. 
7607
7608 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7609
7610         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7611
7612         * dumper.c (pdump_get_indirect_count):
7613         (pdump_scan_by_alignment):
7614         (pdump_dump_root_struct_ptrs):
7615         (pdump_dump_rtables):
7616         (pdump_dump_root_objects):
7617         (pdump):
7618         * nas.c (WaveOpenDataForReading):
7619         * fns.c (print_bit_vector):
7620         * font-lock.c (SINGLE_SYNTAX_STYLE):
7621         * glyphs.c (check_for_ignored_expose):
7622         (find_matching_subwindow):
7623         * glyphs-eimage.c:
7624         * imgproc.c (get_histogram):
7625         * redisplay.c (point_in_line_start_cache):
7626         * redisplay-output.c (redisplay_unmap_subwindows):
7627         * symbols.c (defsymbol_massage_name_1):
7628         (defkeyword_massage_name):
7629         (deferror_massage_name_and_message):
7630         * redisplay-x.c (x_output_string): 
7631         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7632         * frame.h (struct frame):
7633         * filelock.c (current_lock_owner):
7634         * doprnt.c (emacs_doprnt_1):
7635         * lisp.h (struct Lisp_Bit_Vector):
7636         (DO_REALLOC):
7637         Fix warnings.
7638
7639 2002-02-13  Ben Wing  <ben@xemacs.org>
7640
7641         * event-stream.c (reset_key_echo):
7642         * event-stream.c (reset_this_command_keys):
7643         * event-stream.c (execute_command_event):
7644         If console is dead as a result of C-x 5 0, then post-command stuff
7645         needs to be careful and do only non-console-specific stuff.
7646
7647 2002-07-01  Mike Sperber <mike@xemacs.org>
7648
7649         * process-unix.c (unix_send_process): Mark coding_outstream as
7650         non-open upon SIGPIPE.
7651
7652         * event-stream.c (Fnext_event): Reorder switch cases to something
7653         that makes sense.
7654
7655 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7656
7657         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7658         Don't bogusly reinitialize ascii_character property.
7659
7660 2002-07-08  Mike Sperber <mike@xemacs.org>
7661
7662         * process.c (Fstart_process_internal): Do error checking before we
7663         fork off the child, so the child can't muck with the state of the
7664         parent.
7665
7666 2002-07-08  Mike Sperber <mike@xemacs.org>
7667
7668         * ralloc.c (init_ralloc): Allocate properly for pdump.
7669
7670 2002-06-12  Andy Piper  <andy@xemacs.org>
7671
7672         * glyphs.c (query_string_geometry): check the string.
7673
7674         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7675         widget names.
7676
7677 2002-06-17  Jerry James  <james@xemacs.org>
7678
7679         * sysdll.c: Remove RTLD_GLOBAL initialization.
7680         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7681
7682 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7683
7684         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7685
7686 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7687
7688         * sysdep.c (sys_rename): Make sys_rename work for the case where
7689         Windows rename sets errno to EACCES if target file exists.
7690
7691 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7692
7693         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7694         Fix detection of metric units to work on Win95
7695
7696 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7697
7698         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7699
7700 2002-04-25  Andy Piper  <andy@xemacs.org>
7701
7702         * redisplay.c (create_text_block): Remove extra comment trailer.
7703
7704 2002-04-24  Andy Piper  <andy@xemacs.org>
7705
7706         * redisplay.c (create_text_block): Don't actually add propagation
7707         data if the line ends after we have added a glyph.
7708
7709 2002-04-22  Andy Piper  <andy@xemacs.org>
7710
7711         * extents.c (extent_fragment_update): check for glyphs we have
7712         previously displayed.
7713         * extents.c (print_extent_1): warning removal.
7714         * extents.h: change prototype.
7715         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7716         widths correctly for wide glyphs.
7717         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7718         * redisplay.c (prop_type): add PROP_GLYPH.
7719         * redisplay.c (struct prop_block): add glyph type
7720         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7721         to the propagation data.
7722         * redisplay.c (create_text_block): if there is a glyph in the
7723         propagation data use it to salt extent_fragment_update.
7724         * redisplay.c (create_string_text_block): ditto.
7725
7726 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7727
7728         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7729         * redisplay-output.c (compare_runes): Compare them.
7730         * redisplay.c: Update copyright date.
7731         * redisplay.c (pos_data): Add need_baseline_computation field.
7732         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7733         need_baseline_computation; zero yoffset. Set max_pixmap_height
7734         for all pixmaps, not just automatically positioned ones.
7735         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7736         * redisplay.c (calculate_baseline): New, compute textual baseline.
7737         * redisplay.c (add_glyph_rune): Call them.
7738         * redisplay.c (create_text_block): Likewise.
7739         * redisplay.c (create_overlay_glyph_block): Likewise.
7740         * redisplay.c (add_margin_runes): Likewise.
7741         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7742
7743         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7744         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7745         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7746         * redisplay-msw.c (mswindows_output_string): Likewise.
7747         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7748         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7749         * redisplay-x.c (x_output_display_block): Likewise.
7750
7751 2002-03-28  Ben Wing  <ben@xemacs.org>
7752
7753         * redisplay.c: Fixed bug in redisplay
7754         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7755         and down of the lines, since they're bigger than the line
7756         size. (It was seen most obviously when there's a horizontal scroll
7757         bar, e.g. do C-h a glyph or something like that.) The problem was
7758         that the glyph-contrib-p setting on glyphs was ignored even if it
7759         was set properly, which it wasn't until now.
7760
7761 2002-04-24  Andy Piper  <andy@xemacs.org>
7762
7763         * lisp.h (Dynarr_end): Fix definition.
7764
7765 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7766
7767         * redisplay.c (mark_redisplay): Remove call to
7768         update_frame_window_mirror.
7769
7770 2001-11-15  Andy Piper  <andy@xemacs.org>
7771
7772         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7773         cygwin (again).
7774
7775 2002-02-13  Andy Piper  <andy@xemacs.org>
7776
7777         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7778         we did in fact enqueue the XM_MAPFRAME event.
7779
7780 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7781
7782         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7783         to fix problem switching between virtual desktops under virtuawin
7784         virtual window manager.
7785
7786 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7787
7788         * event-msw.c: Typo fix.
7789         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7790         magic XM_MAPFRAME event has been sent.
7791
7792 2001-11-23  Andy Piper  <andy@xemacs.org>
7793
7794         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7795
7796 2001-11-21  Andy Piper  <andy@xemacs.org>
7797
7798         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7799         mouse events outside the frame.
7800
7801 2002-03-20  Andy Piper  <andy@xemacs.org>
7802
7803         * menubar-msw.c (mswindows_popup_menu): warning removal.
7804         * dialog-msw.c (dialog_popped_down): ditto.
7805
7806 2001-12-11  Andy Piper  <andy@xemacs.org>
7807
7808         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7809         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7810         popup_up_p.
7811         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7812         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7813         * menubar-msw.c (mswindows_popup_menu): ditto.
7814
7815 2001-10-29  Andy Piper  <andy@xemacs.org>
7816
7817         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7818         cancels.
7819
7820 2002-01-03  Andy Piper  <andy@xemacs.org>
7821
7822         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7823         letters.
7824         (xrealpath): ditto.
7825
7826 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7827
7828         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7829         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7830         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7831         Detect and handle case where machine is set up for metric units
7832
7833 2002-04-02  Andy Piper  <andy@xemacs.org>
7834
7835         * dired-msw.c (mswindows_get_files): 
7836         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7837         completely handled by XEmacs. Suggested by Thomas Vogler
7838         <mail@thomas-vogler.de>.
7839
7840 2001-11-14  Andy Piper  <andy@xemacs.org>
7841
7842         * nt.c (REG_ROOT): change registry key to XEmacs.
7843
7844 2002-04-27  Andy Piper  <andy@xemacs.org>
7845
7846         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7847
7848 2002-04-26  Andy Piper  <andy@xemacs.org>
7849
7850         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7851         behavior.
7852
7853 2002-03-14  Mike Alexander  <mta@arbortext.com>
7854
7855         * event-msw.c (mswindows_unwait_process): New, remove process from
7856         wait list
7857         * process-nt.c (nt_finalize_process_data): Call
7858         mswindows_unwait_process
7859         * console-msw.h: Declare mswindows_unwait_process
7860
7861 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7862
7863         * editfns.c (Fdecode_time):
7864         (Fformat_time_string):
7865         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7866         (make_time): Warning elimination (change arg name).
7867
7868 2001-11-24  Andy Piper  <andy@xemacs.org>
7869
7870         * window.c (Fsplit_window): Doc return type.
7871
7872 2002-04-01  Andy Piper  <andy@xemacs.org>
7873
7874         * emacs.c (Fkill_emacs): Only output message box in interactive
7875         mode.
7876
7877 2002-04-26  Andy Piper  <andy@xemacs.org>
7878  
7879         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7880         cygwin.
7881
7882 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7883
7884         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7885         bit platform.
7886
7887 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7888
7889         * XEmacs 21.4.8 "Honest Recruiter" is released.
7890
7891 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7892
7893         Supersedes 2002-04-17 patch.
7894
7895         * process.h (PROCESS_LIVE_P): Use the process status as
7896         evidence of health, not the state of the input stream.
7897         (PROCESS_READABLE_P): Say if the process is readable
7898         from. (It may be dead nonetheless.)
7899         (CHECK_READABLE_PROCESS): Test for that condition.
7900
7901         * process.c (create_process): Use PROCESS_READABLE_P.
7902         (read_process_output, set_process_filter): Likewise.
7903
7904         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7905         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7906
7907         This code is #if 0'd, this is not the time to add new functions:
7908
7909         * process.c (Fprocess_readable_p): Report readability status.
7910         * process.c (Qprocess_readable_p): New, associated symbol...
7911         * process.c (syms_of_process): ... initialize it.
7912
7913 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7914
7915         * XEmacs 21.4.7 "Economic Science" is released.
7916
7917 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7918
7919         * process.h (PROCESS_LIVE_P): Use the process status as
7920         evidence of health, not the state of the input stream.
7921
7922 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7923
7924         * sysdep.c (sys_siglist): change "signum" to "signal"
7925
7926 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7927
7928         * s/darwin.h: New file.
7929         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7930         
7931 2002-04-23  Andreas Jaeger  <aj@suse.de>
7932
7933         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7934         which use lib64 for 64-bit libs.
7935         (START_FILES): Likewise.
7936
7937 2002-02-11  Mike Sperber  <mike@xemacs.org>
7938
7939         * device-x.c: 
7940         (x_IO_error_handler):
7941         (x_init_device): Temporarily keep device in static variable
7942         `device_being_initialized' so we can recover gracefully from
7943         internal XOpenDevice failure.  (XOpenDevice is documented to
7944         return NULL on failure, but sometimes calls the IO error handler
7945         instead.)
7946
7947 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7948
7949         * dired.c (Ffile_name_all_completions): Change documentation --
7950         remove reference to completion-ignored-extensions.
7951         * dired.c (vars_of_dired): Change documentation for
7952         completion-ignored-extensions -- remove reference to
7953         file-name-all-completions.
7954
7955 2002-03-06  Jerry James  <james@xemacs.org>
7956
7957         * emodules.c (emodules_load): Fix multiple loading of same module.
7958
7959 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7960         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7961         RTLD_LAZY to avoid incorrect symbol binding when using nested
7962         shared libraries on Solaris.
7963
7964 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7965
7966         * fileio.c (Ffind_file_name_handler): Improve docstring.
7967
7968 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7969
7970         * fns.c (Fmapconcat): Improve docstring.
7971
7972 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7973
7974         * device-gtk.c: Add prototype for
7975         emacs_gtk_selection_clear_event_handle.
7976         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7977         selection.  Setup signal handler for "selection_clear_event"
7978         (emacs_gtk_selection_clear_event_handle).
7979
7980         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7981         other applications owning the clipboard (based on
7982         x_handle_selection_clear).
7983
7984 2001-12-23  William M. Perry  <wmperry@gnu.org>
7985
7986         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7987         
7988 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7989
7990         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7991
7992 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7993
7994         * XEmacs 21.4.6 "Common Lisp" is released.
7995
7996 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7997
7998         * search.c (Freplace_match): Add missing sub-expression functionality.
7999
8000         * buffer.c (decode_buffer): Add a check for pointer type to
8001         decode_buffer, before gcc's CSE optimization reorders a
8002         dereference in front of the allow_string test.
8003
8004 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8005
8006         * window.c (window_loop): Fix bug that sometimes prevented
8007         window_loop() from iterating across multiple devices.  Also, at
8008         Ben's request, changed infloop-detecting code to abort() instead
8009         of silently terminating window_loop().
8010
8011 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8012
8013         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8014         * editfns.c (make_time): New function.
8015         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8016         * lisp.h (make_time): Prototype and comment it.
8017         * dired.c (wasteful_word_to_lisp): Deprecate.
8018         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8019
8020 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8021
8022         * fileio.c (auto_save_1): Use current coding system, not
8023         escape-quoted.
8024
8025 2001-11-13  Ben Wing  <ben@xemacs.org>
8026
8027         * window.c:
8028         * window.c (window_truncation_on):
8029         * window.c (syms_of_window):
8030         truncate-partial-width-windows should respect the buffer being
8031         displayed, like other redisplay vars.
8032
8033 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8034
8035         * event-stream.c (Fread_key_sequence): save current buffer.
8036
8037 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8038
8039         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8040
8041 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8042
8043         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8044
8045 2001-10-26  Mike Alexander  <mta@arbortext.com>
8046
8047         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8048
8049 2001-10-25  Andy Piper  <andy@xemacs.org>
8050
8051         * ChangeLog:
8052         * dialog-msw.c (handle_directory_proc): new function.
8053          (handle_directory_dialog_box): new fucntion.
8054          (handle_file_dialog_box): use new directory dialog support.
8055          (mswindows_make_dialog_box_internal): ditto.
8056         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8057         handling.
8058         (mswindows_find_frame): make global.
8059         * fileio.c (Fexpand_file_name): build fix.
8060         * general-slots.h: add Qdirectory.
8061         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8062         handling.
8063         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8064         cygwin not leaving win32 paths unchanged.
8065         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8066         cygwin runtime to do path conversion.
8067         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8068         (syms_of_win32): add new function.
8069         * window.c (window_loop): build fix.
8070
8071 2001-10-15  Andy Piper  <andy@xemacs.org>
8072
8073         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8074
8075 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8076
8077         * XEmacs 21.4.5 "Civil Service" is released.
8078
8079 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8080
8081         * glyphs-x.c: Force buffer-tab highlight update when moving the
8082         buffer, avoiding an ugly black border, used for keyboard focus
8083         indication, on a widget that can never have keyboard focus, the
8084         buffer tab.
8085
8086 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8087
8088         * process-unix.c (unix_open_multicast_group): Remove too much
8089         conversion between host and network byte order.
8090
8091 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8092
8093         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8094         before replacing them.
8095
8096         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8097         operation.
8098
8099         * src/window.c (undedicate_windows): Use it.
8100         * src/window.h: Add prototype.
8101
8102 2001-09-17  Ben Wing  <ben@xemacs.org>
8103
8104         * fileio.c (normalize_filename):
8105         * fileio.c (Fexpand_file_name):
8106         Fix various C++ compile errors in Andy's recent code.
8107         
8108         * callint.c (Fcall_interactively):
8109         * editfns.c (Ftemp_directory):
8110         * editfns.c (Fuser_full_name):
8111         * emacs.c (argmatch):
8112         * lread.c (locate_file_map_suffixes):
8113         * redisplay-x.c (x_ring_bell):
8114         Fix sign-compare warnings.
8115         
8116 2001-09-08  Andy Piper  <andy@xemacs.org>
8117
8118         * fileio.c (normalize_filename): copied from nt.c
8119         * (Ffile_name_directory): enable win32 paths under cygwin.
8120         * (Ffile_name_nondirectory): ditto.
8121         * (directory_file_name): ditto.
8122         * (Fexpand_file_name): ditto.
8123         * (Ffile_truename): ditto.
8124         * (Fsubstitute_in_file_name): ditto.
8125         * (Ffile_name_absolute_p): ditto.
8126         * (Ffile_readable_p): ditto.
8127
8128 2001-09-08  Andy Piper  <andy@xemacs.org>
8129
8130         * device-msw.c (mswindows_finish_init_device): remove dde
8131         initialization.
8132         * device-msw.c (mswindows_init_dde): factor out from
8133         mswindows_finish_init_device()
8134         * device-msw.c (init_mswindows_very_early): new function
8135         initialize but don't enable dde.
8136         * emacs.c (main_1): call init_mswindows_very_early.
8137         * event-msw.c:
8138         * event-msw.c (mswindows_dde_callback): only execute when we are
8139         ready.
8140         * symsinit.h: declare init_mswindows_very_early.
8141
8142 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8143
8144         [sjt: This has been in 21.5 for months with no complaints.]
8145
8146         * console.h (struct console_methods): Added flags member.
8147         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8148         (CONMETH_IMPL_FLAG):
8149         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8150         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8151
8152         * device.c (window_system_pixelated_geometry): Use the above macros.
8153
8154         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8155         implememntation flag.
8156         * device.h (DEVICE_DISPLAY_P): Use it.
8157
8158         * frame.c (delete_frame_internal): Use the above macro.
8159
8160         * redisplay.c (redisplay_device): Use it.
8161         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8162         (redisplay_frame): Ditto.
8163
8164         * device-msw.c (mswindows_device_implementation_flags): Removed.
8165         (msprinter_device_implementation_flags): Removed.
8166         (console_type_create_device_mswindows): Removed references to
8167         implementation_flags methods, set implementation flags here.
8168         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8169
8170         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8171         (console_type_create_device_gtk): Removed method declaration.
8172         Added commented out statement which semantically matches the
8173         commented out statement in the above removed method.
8174
8175 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8176
8177         The attached patch fixes a few warnings. 
8178
8179         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8180         * src/frame-gtk.c: guard against GNOME calls in GTK only
8181         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8182         * src/select-gtk.c: prototype lisp_to_time
8183
8184 2001-06-08  Ben Wing  <ben@xemacs.org>
8185
8186         ------ gc-in-window-procedure fixes ------
8187         
8188         * alloc.c:
8189         * alloc.c (struct post_gc_action):
8190         * alloc.c (register_post_gc_action):
8191         * alloc.c (run_post_gc_actions):
8192         * alloc.c (garbage_collect_1):
8193         Create "post-gc actions", to avoid those dreaded "GC during window
8194         procedure" problems.
8195
8196         * event-msw.c:
8197         Abort, clean and simple, when GC in window procedure.  We want
8198         to flush these puppies out.
8199
8200         * glyphs-msw.c:
8201         * glyphs-msw.c (finalize_destroy_window):
8202         * glyphs-msw.c (mswindows_finalize_image_instance):
8203         Use a post-gc action when destroying subwindows.
8204
8205         * lisp.h:
8206         Declare register_post_gc_action().
8207
8208         * scrollbar-msw.c:
8209         * scrollbar-msw.c (unshow_that_mofo):
8210         Use a post-gc action when unshowing scrollbar windows, if in gc.
8211
8212         * redisplay.c (mark_redisplay):
8213         Add comment about the utter evilness of what's going down here.
8214
8215         ------ cygwin setitimer fixes ------
8216         
8217         * Makefile.in.in (sheap_objs):
8218         * Makefile.in.in (profile_objs):
8219         * Makefile.in.in (objs):
8220         Compile profile.c only when HAVE_SETITIMER.
8221         
8222         * nt.c (mswindows_sigset):
8223         * nt.c (mswindows_sighold):
8224         * nt.c (mswindows_sigrelse):
8225         * nt.c (mswindows_sigpause):
8226         * nt.c (mswindows_raise):
8227         * nt.c (close_file_data):
8228         Style fixes.
8229         
8230         * nt.c:
8231         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8232         
8233         * profile.c:
8234         * profile.c (Fstart_profiling):
8235         * profile.c (Fstop_profiling):
8236         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8237         instead of just plain setitimer().
8238         
8239         * signal.c:
8240         * signal.c (set_one_shot_timer):
8241         * signal.c (alarm):
8242         Define qxe_setitimer() as an encapsulation around setitimer() --
8243         call setitimer() directly unless Cygwin or MS Win, in which case
8244         we use our simulated version in win32.c.
8245         
8246         * systime.h:
8247         * systime.h (struct itimerval):
8248         * systime.h (ITIMER_REAL):
8249         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8250         comment about "qxe" and the policy regarding encapsulation.
8251
8252         * win32.c:
8253         * win32.c (setitimer_helper_proc):
8254         * win32.c (setitimer_helper_period):
8255         * win32.c (setitimer_helper):
8256         * win32.c (mswindows_setitimer):
8257         Move setitimer() emulation here, so Cygwin can use it.
8258         Rename a couple of functions and variables to be longer and more
8259         descriptive.  In setitimer_helper_proc(), send the signal
8260         using either mswindows_raise() or (on Cygwin) kill().  If for
8261         some reason we are still getting lockups, we'll change the kill()
8262         to directly invoke the signal handlers.
8263
8264         ------ windows shell fixes ------
8265         
8266         * callproc.c:
8267         * ntproc.c:
8268         Comments about how these two files must die.
8269
8270         * callproc.c (init_callproc):
8271         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8272         not just COMSPEC. (more correct and closer to FSF.) Don't
8273         force a value for SHELL into the environment. (Comments added
8274         to explain why not.)
8275         
8276         * nt.c (init_user_info):
8277         Don't shove a fabricated SHELL into the environment.  See above.
8278
8279 2001-06-01  Ben Wing  <ben@xemacs.org>
8280
8281         * Makefile.in.in (ldflags):
8282         eliminate that pesky "defaulting to 00401000" warning.
8283         * nt.h:
8284         eliminate warnings.
8285
8286 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8287
8288         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8289         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8290
8291 2001-04-24  Jerry James <james@xemacs.org>
8292
8293         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8294         correct order.
8295
8296 2001-06-01  Ben Wing  <ben@xemacs.org>
8297
8298         * event-msw.c (debug_mswin_messages):
8299         conditionalize the messages that were causing compile errors.
8300         (if only macros could generate #ifdef statements ...)
8301
8302 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8303
8304         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8305
8306 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8307
8308         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8309
8310 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8311
8312         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8313         * process-unix.c (unix_canonicalize_host_name):
8314         sysdep.c (init_system_name):
8315         Use it to conditionally support IPv6 canonicalization.
8316
8317 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8318
8319         * event-msw.c:
8320         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8321
8322 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8323
8324         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8325         attempt is made to scroll when no scroll bar is available.
8326
8327 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8328
8329         * input-method-motif.c (XIM_delete_frame): New callback.
8330         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8331         got deleted from 21.4.3.)
8332
8333 2001-06-01  Ben Wing  <ben@xemacs.org>
8334
8335         * nt.c (mswindows_utime):
8336         * nt.c (close_file_data):
8337         fix off-by-one-indirection error.
8338
8339 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8340
8341         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8342         because set_file_times() now takes Lisp_Object path, instead of
8343         char*.
8344         * nt.c: Include buffer.h.
8345         * nt.c (convert_from_time_t): New.
8346         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8347         not set mtime correctly.
8348         * nt.h: Declare mswindows_utime().
8349         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8350         path, instead of char*.
8351         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8352
8353 2001-05-30  Ben Wing  <ben@xemacs.org>
8354
8355         For 21.4:
8356
8357         (Stephen, just take all event-msw.c patches.  This includes
8358         the "iconify" fix below.)
8359
8360         * event-msw.c:
8361         * event-msw.c (mswindows_dequeue_dispatch_event):
8362         * event-msw.c (assert):
8363         * event-msw.c (emacs_mswindows_quit_p):
8364         * event-msw.c (debug_mswin_messages):
8365         * event-msw.c (debug_output_mswin_message):
8366         * event-msw.c (vars_of_event_mswindows):
8367         Fix yet more problems with C-g handling.
8368         Implement debug-mswindows-events.
8369         
8370 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8371
8372         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8373         
8374 2001-05-23  Ben Wing  <ben@xemacs.org>
8375
8376         * event-msw.c (winsock_writer):
8377         * event-msw.c (winsock_closer):
8378         prior kludgy code was clobbering the buffer, thinking it was
8379         "unused" space to store an unneeded return value; instead, use
8380         the variable we've already got staring us in the face.
8381
8382 2001-05-17  Andy Piper  <andy@xemacs.org>
8383
8384         * sysfile.h: don't assume that file attributes are boolean
8385
8386 2001-05-23  Ben Wing  <ben@xemacs.org>
8387
8388         * device-msw.c (msprinter_init_device):
8389         signal an error rather than crash with an unavailable network
8390         printer (from Mike Alexander).
8391         
8392         * event-msw.c:
8393         * event-msw.c (struct winsock_stream):
8394         * event-msw.c (winsock_writer):
8395         * event-msw.c (winsock_closer):
8396         * event-msw.c (make_winsock_stream_1):
8397         cleanup headers.  fix (hopefully) an error with data corruption
8398         when sending to a network connection.
8399
8400         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8401         to handle the ~user prefix by (a) always assuming we're referencing
8402         ourselves and not even verifying the user -- hence any file with
8403         a tilde as its first char is invalid! (b) if there wasn't a slash
8404         following the filename, the pointer was set *past* the end of
8405         file and we started reading from uninitialized memory.  Now we
8406         simply treat these as files, always.
8407
8408         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8409         
8410 2001-05-19  Ben Wing  <ben@xemacs.org>
8411
8412         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8413
8414         * process-nt.c:
8415         * process-nt.c (vars_of_process_nt):
8416         remove unused mswindows-quote-process-args.  rec for 21.4.
8417         
8418 2001-05-12  Ben Wing  <ben@xemacs.org>
8419
8420         * event-msw.c (mswindows_dde_callback):
8421         * event-msw.c (mswindows_wnd_proc):
8422         eliminate cygwin warnings.
8423
8424 2001-05-06  Ben Wing  <ben@xemacs.org>
8425
8426         * console-msw.h:
8427         * device-msw.c:
8428         * device-msw.c (print_dialog_worker):
8429         * device-msw.c (mswindows_handle_print_dialog_box):
8430         * device-msw.c (syms_of_device_mswindows):
8431         * dialog-msw.c (mswindows_make_dialog_box_internal):
8432         * general-slots.h:
8433         implement printing the selection when it's selected.
8434
8435 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8436
8437         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8438
8439 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8440
8441         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8442         EMACS_INT is signed.
8443
8444 2001-04-15  Michael Lausch  <mla@1012surf.net>
8445
8446         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8447         gtk_widget_request_size() to give scrollbar >0 width for
8448         GTK >1.2.8.
8449
8450 2001-05-30  William M. Perry  <wmperry@gnu.org>
8451
8452         * event-gtk.c: Check for buttons as modifier keys.
8453
8454 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8455
8456         * s\mingw32.h:
8457         Properly find MinGW's <process.h> inside Cygwin's restructured
8458         include directories.  Don't try to include <cygwin/version.h>
8459         since we are dropping support for MinGW in versions of Cygwin
8460         earlier than b21.
8461         * nt.c:
8462         Drop support for MinGW in versions of Cygwin before b21.
8463         * sysdep.c:
8464         Properly find MinGW's <process.h> inside Cygwin's restructured
8465         include directories.
8466         * syswindows.h:
8467         Drop support for MinGW in versions of Cygwin before b21.
8468         * unexcw.c:
8469         Even though a.out.h is no longer detected by configure, allow
8470         MinGW to use it until we figure out how to do the job with Win32.
8471
8472 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8473
8474         * syntax.c (find_start_of_comment):
8475         Fix `unbalanced parentheses' bug when dealing with mixed comment
8476         styles in c++/java/etc. mode
8477
8478 2001-05-29  Mike Alexander  <mta@arbortext.com>
8479
8480         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8481         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8482
8483 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8484
8485         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8486
8487 2001-03-31  Mike Sperber <mike@xemacs.org>
8488
8489         * search.c (Freplace_match): Support FSF-style specification of
8490         match subexpression when applied to a buffer.
8491
8492 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8493
8494         * event-stream.c (is_scrollbar_event): add missing semicolon
8495
8496 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8497
8498         * Makefile.in.in: Use TAR macro instead of hardcoding
8499           tar.  Allows use of GNU tar instead of system tar
8500
8501 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8502
8503         * event-stream.c (is_scrollbar_event): add missing semicolon
8504
8505 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8506
8507         * XEmacs 21.4.3 "Academic Rigor" is released.
8508
8509 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8510
8511         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8512
8513 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8514
8515         * buffer.c (Vcase_fold_search): Remove obsolete
8516           comment about non ASCII case-fold-search.  This
8517           bug has been fixed by case-table changes.
8518
8519 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8520
8521         * event-msw.c: Restore include of events-mod.h.
8522
8523 2001-04-22   zhaoway  <zw@debian.org>
8524
8525         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8526         !HAVE_SCROLLBARS.
8527
8528 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8529
8530         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8531
8532 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8533
8534         * mule-charset.c (Fmake_charset): Add missing else.
8535
8536 2001-04-23  Ben Wing  <ben@xemacs.org>
8537
8538         * event-msw.c (FAKE_MOD_QUIT):
8539         * event-msw.c (mswindows_dequeue_dispatch_event):
8540         * event-msw.c (mswindows_wnd_proc):
8541         * event-msw.c (emacs_mswindows_quit_p):
8542         Get critical quit working.
8543
8544 2001-05-05  Ben Wing  <ben@xemacs.org>
8545
8546         * console-msw.h:
8547         * device-msw.c:
8548         * device-msw.c (mswindows_get_default_margin):
8549         * frame-msw.c (mswindows_size_frame_internal):
8550         * frame-msw.c (msprinter_init_frame_1):
8551         * frame-msw.c (vars_of_frame_mswindows):
8552         Change top/bottom margin defaults to 0.5 inches.
8553
8554 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8555
8556         Fix link error with gcc 3.0 on Linux.
8557         * terminfo.c (UP): Remove.
8558         * terminfo.c (BC): Remove.
8559         * terminfo.c (PC): Remove.
8560         They weren't used, and in any case, these symbols should be
8561         defined in the *library*.
8562
8563 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8564
8565         * s/aix4.h: Fix crash with xlc -O3.
8566         Improve comment explaining how -O3 works.
8567
8568 2001-04-15  Ben Wing  <ben@xemacs.org>
8569
8570         * event-stream.c:
8571         * event-stream.c (Fnext_event):
8572         * event-stream.c (is_scrollbar_event):
8573         * event-stream.c (execute_command_event):
8574         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8575         crash' problem.  His fix introduces other problems.  We filter
8576         out scrollbar events specifically, making them somewhat invisible
8577         to command-building, and not appearing in `this-command-keys'.
8578         More work is still needed (see comments in event-stream.c), but
8579         this fixes all the major problems.
8580
8581 2001-04-20  Ben Wing  <ben@xemacs.org>
8582
8583         * .cvsignore: Added stuff for Windows.
8584
8585 2001-04-28  Ben Wing  <ben@xemacs.org>
8586
8587         * buffer.c (Ferase_buffer):
8588         * editfns.c (buffer_insert1):
8589         * editfns.c (Finsert_before_markers):
8590         * editfns.c (Finsert_string):
8591         * editfns.c (Finsert_char):
8592         * editfns.c (Fdelete_region):
8593         * editfns.c (Fwiden):
8594         * editfns.c (Fnarrow_to_region):
8595         remove bogus lines setting zmacs_region_stays to 0.
8596         
8597 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8598
8599         * process-unix.c (unix_open_network_stream): If connect() fails
8600         invalidate file descriptor after closing it.
8601
8602 2001-03-08  Mike Alexander  <mta@arbortext.com>
8603
8604         * event-msw.c (mswindows_need_event_in_modal_loop):
8605         Don't dispatch a message if we didn't get one.
8606         (mswindows_need_event):
8607         Terminate the correct process when one exits instead of the first
8608         one on Vprocess_list and look for process termination when in
8609         mswindows_protect_modal_loop.
8610
8611 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8612
8613         * XEmacs 21.4.1 "Copyleft" is released.
8614
8615 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8616
8617         * input-method-motif.c (XIM_delete_frame): New callback.
8618         (XIM_init_frame): Register it.
8619
8620 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8621
8622         * XEmacs 21.4.0 "Solid Vapor" is released.
8623
8624 2001-04-15  Ben Wing  <ben@xemacs.org>
8625
8626         * cmdloop.c (call_command_loop):
8627         Fix braino in bit-rotting code.
8628         
8629 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8630
8631         * extents.c (Fset_extent_endpoints): Force creation of extent info
8632         in buffer_or_string.
8633
8634         * extents.c (process_extents_for_insertion_mapper): Correctly
8635         check for open-open zero-length extents.
8636
8637 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8638
8639         * lisp.h: New typedefs Memory_count, Element_count.
8640         * regex.c:
8641         * regex.h:
8642         Sign-compare warning elimination: several unsigned -> signed.
8643         Based on work by Ben Wing <ben@xemacs.org>.
8644
8645 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8646
8647         * XEmacs 21.2.47 "Zephir" is released.
8648
8649 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8650
8651         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8652
8653 2001-04-03  Mike Sperber <mike@xemacs.org>
8654
8655         * search.c: Revert previous patch due because of release.
8656
8657 2001-03-30  Ben Wing  <ben@xemacs.org>
8658
8659         * s\cygwin32.h:
8660         Add missing killpg prototype.
8661
8662         * elhash.c:
8663         Add a comment about fixing problems when a new entry is added
8664         while mapping.
8665
8666         * frame-msw.c (mswindows_init_frame_1):
8667         Fix compile warnings.
8668
8669         * menubar.c (vars_of_menubar):
8670         Provide `menu-accelerator-support' to indicate that we properly
8671         support %_ in menu specifications, so that package code can
8672         conditionalize on this (and remove %_ from menu specifications
8673         on older versions).
8674
8675         * event-msw.c:
8676         * scrollbar-msw.c:
8677         * scrollbar-msw.c (can_scroll):
8678         * scrollbar-msw.h:
8679         Fix handling of mouse wheel under Windows to follow standards --
8680         now scrolls window under pointer, not selected window.
8681
8682 2001-03-31  Mike Sperber <mike@xemacs.org>
8683
8684         * search.c (Freplace_match): Support FSF-style specification of
8685         match subexpression when applied to a buffer.
8686
8687 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8688
8689         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8690         function to modify KEYMAP, so map over a copy of the hash table.
8691
8692 2001-03-21  Martin Buchholz <martin@xemacs.org>
8693
8694         * XEmacs 21.2.46 "Urania" is released.
8695
8696 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8697
8698         * realpath.c (xrealpath): Make file-truename work with symlinks to
8699         /cygdrive paths on cygwin. Always lowercase drive-letters on
8700         native windows.
8701         (cygwin_readlink): Don't try to find canonical filename unless
8702         file exists.
8703
8704 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8705
8706         * ChangeLog: Log GTK merge.
8707
8708         * dumper.c:
8709         * select-x.c:
8710         * specifier.c:
8711         * symeval.h:
8712         Revert gratuitous whitespace changes from GTK merge.
8713
8714         * emacs.c: Document end of complex #ifdef @ l. 1495.
8715
8716
8717 2001-03-12  Andy Piper  <andy@xemacs.org>
8718
8719         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8720         have to do likewise.
8721
8722 2001-03-12  Andy Piper  <andy@xemacs.org>
8723
8724         * sysdep.c: we only support mingw now.
8725
8726 2001-03-09  Andy Piper  <andy@xemacs.org>
8727
8728         * unexcw.c (copy_executable_and_dump_data_section): making approx
8729         overrun a warning only.
8730
8731 2001-03-10  William M. Perry  <wmperry@aventail.com>
8732
8733         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8734         satisfy Stephen's identical-after-cpp plea.
8735
8736 2001-03-02  Ben Wing  <ben@xemacs.org>
8737
8738         * cmds.c:
8739         * cmds.c (Fforward_char):
8740         * syntax.c:
8741         * window.c:
8742
8743         Augment documentation of the most common motion commands to make
8744         note of the shifted-motion support.
8745         
8746 2001-03-02  Ben Wing  <ben@xemacs.org>
8747
8748         * nt.c (mswindows_fstat):
8749         * nt.c (mswindows_stat):
8750         * search.c (boyer_moore):
8751         Fix compile warnings under Windows.
8752         
8753         * sysdep.c (sys_readdir):
8754         Fix buggy filename-conversion code under Mule.
8755
8756 2001-03-09  William M. Perry  <wmperry@aventail.com>
8757
8758         * Makefile.in.in:
8759         * config.h.in:
8760         * console.c:
8761         * console.h:
8762         * device.c:
8763         * device.h:
8764         * dragdrop.c:
8765         * emacs.c:
8766         * event-stream.c:
8767         * events.c:
8768         * events.h:
8769         * faces.c:
8770         * frame.h:
8771         * general-slots.h:
8772         * glyphs.c:
8773         * gutter.c:
8774         * inline.c:
8775         * lisp.h:
8776         * lrecord.h:
8777         * make-src-depend:
8778         * redisplay-output.c:
8779         * redisplay.c:
8780         * symsinit.h:
8781         * sysfile.h:
8782         * toolbar.c:
8783         * window.c:
8784         The Great GTK Merge.
8785
8786         * ChangeLog.GTK:
8787         * console-gtk.c:
8788         * console-gtk.h:
8789         * device-gtk.c:
8790         * emacs-marshals.c:
8791         * emacs-widget-accessors.c:
8792         * event-gtk.c:
8793         * frame-gtk.c:
8794         * gccache-gtk.c:
8795         * gccache-gtk.h:
8796         * glade.c:
8797         * glyphs-gtk.c:
8798         * glyphs-gtk.h:
8799         * gtk-glue.c:
8800         * gtk-xemacs.c:
8801         * gtk-xemacs.h:
8802         * gui-gtk.c:
8803         * gui-gtk.h:
8804         * menubar-gtk.c:
8805         * native-gtk-toolbar.c:
8806         * objects-gtk.c:
8807         * objects-gtk.h:
8808         * redisplay-gtk.c:
8809         * scrollbar-gtk.c:
8810         * scrollbar-gtk.h:
8811         * select-gtk.c:
8812         * toolbar-gtk.c:
8813         * ui-byhand.c:
8814         * ui-gtk.c:
8815         * ui-gtk.h:
8816         The Great GTK Merge: new files.
8817
8818 2001-02-26  Ben Wing  <ben@xemacs.org>
8819
8820         Reapplied Lstream change.
8821
8822 2001-02-26  Ben Wing  <ben@xemacs.org>
8823
8824         Undid the last change, since it is more controversial than I
8825         thought.  It should be back in at some point soon.
8826         
8827 2001-02-25  Ben Wing  <ben@xemacs.org>
8828
8829         * buffer.c:
8830         * callproc.c (Fold_call_process_internal):
8831         * event-msw.c (ntpipe_slurp_reader):
8832         * event-msw.c (ntpipe_shove_writer):
8833         * event-msw.c (winsock_reader):
8834         * event-msw.c (winsock_writer):
8835         * file-coding.c:
8836         * file-coding.c (detect_eol_type):
8837         * file-coding.c (detect_coding_type):
8838         * file-coding.c (determine_real_coding_system):
8839         * file-coding.c (Fdetect_coding_region):
8840         * file-coding.c (decoding_reader):
8841         * file-coding.c (decoding_writer):
8842         * file-coding.c (mule_decode):
8843         * file-coding.c (Fdecode_coding_region):
8844         * file-coding.c (encoding_reader):
8845         * file-coding.c (encoding_writer):
8846         * file-coding.c (mule_encode):
8847         * file-coding.c (Fencode_coding_region):
8848         * file-coding.c (detect_coding_sjis):
8849         * file-coding.c (decode_coding_sjis):
8850         * file-coding.c (encode_coding_sjis):
8851         * file-coding.c (detect_coding_big5):
8852         * file-coding.c (decode_coding_big5):
8853         * file-coding.c (encode_coding_big5):
8854         * file-coding.c (detect_coding_ucs4):
8855         * file-coding.c (decode_coding_ucs4):
8856         * file-coding.c (encode_coding_ucs4):
8857         * file-coding.c (detect_coding_utf8):
8858         * file-coding.c (decode_coding_utf8):
8859         * file-coding.c (encode_coding_utf8):
8860         * file-coding.c (detect_coding_iso2022):
8861         * file-coding.c (decode_coding_iso2022):
8862         * file-coding.c (encode_coding_iso2022):
8863         * file-coding.c (decode_coding_no_conversion):
8864         * file-coding.c (encode_coding_no_conversion):
8865         * glyphs-x.c (write_lisp_string_to_temp_file):
8866         * gpmevent.c (tty_get_foreign_selection):
8867         * lisp.h:
8868         * lstream.c:
8869         * lstream.c (Lstream_flush_out):
8870         * lstream.c (Lstream_adding):
8871         * lstream.c (Lstream_write_1):
8872         * lstream.c (Lstream_write):
8873         * lstream.c (Lstream_raw_read):
8874         * lstream.c (Lstream_read_more):
8875         * lstream.c (Lstream_read):
8876         * lstream.c (Lstream_unread):
8877         * lstream.c (Lstream_fputc):
8878         * lstream.c (stdio_reader):
8879         * lstream.c (stdio_writer):
8880         * lstream.c (filedesc_reader):
8881         * lstream.c (filedesc_writer):
8882         * lstream.c (lisp_string_reader):
8883         * lstream.c (struct fixed_buffer_stream):
8884         * lstream.c (make_fixed_buffer_input_stream):
8885         * lstream.c (make_fixed_buffer_output_stream):
8886         * lstream.c (fixed_buffer_reader):
8887         * lstream.c (fixed_buffer_writer):
8888         * lstream.c (struct resizing_buffer_stream):
8889         * lstream.c (resizing_buffer_writer):
8890         * lstream.c (dynarr_writer):
8891         * lstream.c (lisp_buffer_reader):
8892         * lstream.c (lisp_buffer_writer):
8893         * lstream.h:
8894         * lstream.h (lstream_implementation):
8895         * lstream.h (struct lstream):
8896         * md5.c (Fmd5):
8897         * process-nt.c (nt_send_process):
8898         * process-unix.c (unix_send_process):
8899         
8900         Correct Lstream lossage due to mixing of signed and unsigned
8901         quantities.  All Lstream uses of size_t and ssize_t are now a
8902         single signed data type Lstream_data_count.  This fixes problems
8903         under Windows with sending large quantities of data to a process,
8904         and may well fix other subtle bugs.
8905
8906 2001-02-23  Martin Buchholz <martin@xemacs.org>
8907
8908         * XEmacs 21.2.45 "Thelxepeia" is released.
8909
8910 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8911
8912         * lisp-union.h (XSETINT): 
8913         (XSETCHAR):
8914         (XSETOBJ): 
8915         Reverse previous change of 2001-02-06.
8916
8917 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8918
8919         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8920         buffers.
8921         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8922         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8923         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8924         * regex.c (POS_AS_IN_BUFFER): removed
8925         * regex.c (re_search_2):
8926         * regex.c (re_match_2):
8927         Don't use an offset of 1 when calculating buffer positions, since
8928         `BI_BUF_BEGV' does it already.
8929
8930 2001-02-18  Wim Dumon  <wim@easics.be>
8931
8932         * insdel.c (prepare_to_modify_buffer): Also check for
8933         supersession when clash-detection is enabled. 
8934
8935 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8936
8937         * regex.c (re_match_2_internal):
8938         Convert temp characters from 'const unsigned char' to 're_char'.
8939         Fix crashing bug with extended characters under mule.
8940         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8941         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8942         font-lock, pdump, and new syntax-table code.
8943         * syntax.c (find_start_of_comment):
8944         (find_end_of_comment):
8945         (forward-comment):
8946         Fix crashing bugs involving moving beyond end of buffer.
8947         * syntax.c (find_start_of_comment):
8948         Fixed logic to allow proper detection of cases where the same
8949         character is used to end both a two-char comment start and a
8950         two-char comment end sequence. Fixes `(forward-comment -1)'.
8951         * syntax.c (find_start_of_comment):
8952         Return position just past last comment-end character for all cases
8953         (previously was only done for two-char comment-end sequences).
8954         * syntax.c (forward-comment):
8955         Take value returned from `find_end_of_comment', rather than
8956         incrementing it.
8957         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8958         Properly deal with BUFFERP (syntax_cache.object)
8959
8960 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8961
8962         * alloc.c (Fgarbage_collect): 
8963         * alloc.c (make_bit_vector_from_byte_vector):
8964         -Wsign-compare-correctness.
8965
8966 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8967
8968         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8969         (XSETCHAR): Likewise.
8970         (XSETOBJ): Likewise.
8971
8972 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8973
8974         * mule-canna.c (canna-func-delete_previous): 
8975         Rename to canna-func-delete-previous.
8976
8977 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8978
8979         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8980
8981 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8982
8983         * font-lock.c (find_context): Fix C++ compile errors introduced by
8984         recent patch
8985
8986 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8987
8988         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8989         pragma, but earlier ones barf on the same pragma.
8990
8991 2001-02-06  Mike Sperber <mike@xemacs.org>
8992
8993         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8994         `configure-mule-lisp-directory'.
8995
8996 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8997
8998         Make sure dump-id.c is compiled in the same way as other .c's.
8999         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9000         * dump-id.h: Remove.
9001         * emacs.c: Move dump-id.h into dumper.h.
9002         * dumper.h: Move dump-id.h into dumper.h.
9003         * Makefile.in.in:
9004         Use standard .c.o rule for building dump-id.o.
9005         Remove preprocessor flags from link command.
9006         Add dump-id.o to ${otherobjs} if PDUMP.
9007
9008 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9009
9010         Port FSF 20.7 syntax table improvements.
9011         * syntax.c.
9012         * syntax.h.
9013
9014         Fixups for new syntax table stuff.
9015         * dired.c: Include syntax.c.
9016         (Fdirectory_files): Initialize regex_match_object and
9017         regex_emacs_buffer.
9018         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9019         and Fget_char_property.
9020
9021         Use ported FSF 20.7 syntax table improvements.
9022         * font-lock.c.
9023         * regex.c.
9024         * search.c.
9025         
9026 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9027
9028         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9029         Unixware's enum boolean from sys/types.h.
9030
9031 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9032
9033         Fix support for building with latest Purify.
9034         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9035         (PURIFY_FLAGS): Likewise.
9036
9037 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9038
9039         * fileio.c (lisp_string_set_file_times): New.
9040         * fileio.c (Fcopy_file): Use it.
9041         Fixes bug:
9042         (copy-file filename non-ascii-filename t t)
9043         ==> No such file or directory, non-ascii-filename
9044
9045 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9046
9047         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9048         USHRT_MAX seems clearer than ~0 anyways.
9049
9050 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9051
9052         dumper improvements.  Inspired by Olivier.
9053         * dumper.c (pdump_max_align): New.
9054         * dumper.c (pdump_add_entry): Use pdump_max_align.
9055         * dumper.c (pdump_get_entry_list): Likewise.
9056         * dumper.c (pdump_scan_by_alignment): Likewise.
9057         Don't iterate through unnecessary alignments.
9058         * dumper.c (pdump_file_get): No need to align result of malloc().
9059         * dumper.c (pdump_mallocadr): Remove.  
9060         The result of malloc() is guaranteed to be maximally aligned.
9061         * dumper.c: s/elmt/elt/g;
9062         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9063         * dumper.c (pdump_alert_undump_object): Likewise.
9064         * dumper.c (pdump_align_table): 
9065         Don't support alignments > 64.
9066         Store ALIGNOF's, not shift counts, in table.
9067
9068 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9069
9070         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9071         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9072         * systime.h: Use HAVE_UTIME.
9073         * sysdep.c (struct utimbuf): Remove.
9074         * sysdep.c (set_file_times): Prefer utime() to utimes().
9075         * config.h.in (HAVE_UTIME): New.
9076         * config.h.in (HAVE_UTIME_H): Remove.
9077         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9078
9079 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9080
9081         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9082
9083 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9084
9085         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9086
9087 2001-02-08  Martin Buchholz <martin@xemacs.org>
9088
9089         * XEmacs 21.2.44 "Thalia" is released.
9090
9091 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9092
9093         Fixes crashes in kill-emacs on some systems.
9094         * process-unix.c (unix_kill_child_process):
9095         It's OK for kill() to fail with ESRCH.
9096
9097 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9098
9099         Contortions to make .gdbinit tricks work on most systems.
9100         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9101         * alloc.c (dbg_valmask): Make non-const.
9102         * alloc.c (dbg_typemask): Make non-const.
9103         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9104         * alloc.c (dbg_valbits): Make non-const.
9105         * alloc.c (dbg_gctypebits): Make non-const.
9106         * .gdbinit (decode_object): Make it work with AIX cc.
9107
9108 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9109
9110         * elhash.c (make_general_lisp_hash_table):
9111         Use simpler and more efficient calloc to clear entries.
9112
9113 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9114
9115         * window.c (window_scroll): Work around an AIX C compiler bug.
9116         Fixes 'scroll-up' does nothing problem with xlC.
9117
9118 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9119
9120         * .gdbinit: Remove obsolete comment.
9121
9122 2001-01-31  Mike Alexander  <mta@arbortext.com>
9123
9124         * select.c (Fown_selection_internal): Set owned_p for device
9125         method correctly.
9126
9127 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9128
9129         Port to g++ 2.97.
9130         "not" cannot be used as a macro name as it is an operator in C++
9131         * config.h.in: Stop #defining `not'.
9132         * chartab.c (check_category_char): not ==> not_p
9133         * chartab.h: Likewise.
9134         * regex.c (re_match_2_internal): Likewise.
9135
9136 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9137
9138         * lisp-disunion.h: Fix up comments.
9139
9140 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9141
9142         * keymap.c (define_key_check_and_coerce_keysym):
9143         (syms_of_keymap):
9144         Support mouse-6 and mouse-7 bindings in the obvious way.
9145
9146 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9147
9148         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9149
9150 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9151
9152         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9153         Previous patch missed DEFVAR_INT_MAGIC.
9154         Make sure future DEFVAR_foo use correct types.
9155         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9156         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9157         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9158         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9159         * (DEFVAR_INT): Likewise.
9160         * redisplay.c (vertical_clip): Should be of type Fixnum.
9161         * redisplay.c (horizontal_clip): Likewise.
9162         * lisp.h (dump_add_opaque_int): New.
9163         (dump_add_opaque_fixnum): New.
9164
9165 2001-01-29  Andy Piper  <andy@xemacs.org>
9166
9167         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9168         since they can be eval'ed
9169
9170 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9171
9172         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9173         Oops, XEmacs redefines `class'.  Use `typename' instead.
9174
9175 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9176
9177         * dumper.c: Fix C++ compile errors.
9178
9179 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9180
9181         * tparam.c: Use correct prototypes.
9182
9183 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9184
9185         * sysproc.h: #include util.h for NetBSD's openpty.
9186
9187 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9188
9189         More 64-bit correctness.
9190         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9191         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9192         Fix up comments.
9193         This finally finishes the 64-bit SGI port.
9194         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9195         * symbols.c: Fix up comments and type casts.
9196         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9197         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9198         * symeval.h (Fixnum): New type.
9199         * symeval.h (symbol_value_type): Fix up comment.
9200
9201         * commands.h:
9202         * nt.c:
9203         * emacs.c:
9204         * data.c:
9205         * redisplay.c:
9206         * abbrev.c:
9207         * dired-msw.c:
9208         * event-Xt.c:
9209         * eldap.c:
9210         * window.c:
9211         * sound.c:
9212         * event-stream.c:
9213         * eval.c:
9214         * buffer.c:
9215         * mule-canna.c: A million DEFVAR_INTs here...
9216         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9217         * extents.c:
9218         * cmdloop.c:
9219         * lisp.h:
9220         * select-x.c:
9221         * console-x.h:
9222         * event-msw.c:
9223         * mule-wnnfns.c:
9224         * hpplay.c:
9225         * ralloc.c:
9226         * alloc.c:
9227         * keymap.c:
9228         * profile.c:
9229         s/int/Fixnum/g in DEFVAR_INT declarations.
9230
9231 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9232
9233         Port pdump to SGI alignment-sensitive environment.
9234         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9235         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9236         properly aligned.
9237         Define and use aligned reading and writing macros.
9238         Use buffered stdio instead of posix i/o for faster dumping.
9239         Eliminate kludgy 256 byte space for header.
9240         Read and write from dump file using structs for alignment safety.
9241         * dumper.c (pdump_align_stream): New.
9242         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9243         * dumper.c (PDUMP_READ_ALIGNED): New.
9244         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9245         * dumper.c (pdump_static_Lisp_Object): New struct.
9246         * dumper.c (pdump_static_pointer): New struct.
9247         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9248         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9249         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9250         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9251
9252         * dumper.c (pdump_backtrace):
9253         * dumper.c (pdump_get_indirect_count):
9254         * dumper.c (pdump_register_object):
9255         * dumper.c (pdump_register_struct):
9256         * dumper.c (pdump_reloc_one):
9257         * dumper.c (pdump_scan_by_alignment):
9258         * dumper.c (pdump_dump_from_root_struct_ptrs):
9259         * dumper.c (pdump_dump_opaques):
9260         * dumper.c (pdump_dump_rtables):
9261         * dumper.c (pdump_dump_from_root_objects):
9262         * dumper.c (pdump):
9263         * dumper.c (pdump_load_finish):
9264         Use aligned reading and writing.
9265
9266         * dumper.c (pdump_free): Make static.
9267         * dumper.c (pdump_hFile): Likewise.
9268         * dumper.c (pdump_hMap): Likewise.
9269
9270 2001-01-26  Martin Buchholz <martin@xemacs.org>
9271
9272         * XEmacs 21.2.43 "Terspichore" is released.
9273
9274 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9275
9276         Type fiddling for window_config.saved_windows_count
9277         * window.c (struct window_config): 
9278         Make saved_windows_count member unsigned.
9279         * window.c (sizeof_window_config_for_n_windows): 
9280         Make parameter unsigned.
9281         * window.c (mark_window_config):
9282         * window.c (window_config_equal):
9283         * window.c (free_window_configuration):
9284         * window.c (Fset_window_configuration):
9285         * window.c (count_windows):
9286         * window.c (Fcurrent_window_configuration):
9287         * window.c (reinit_vars_of_window):
9288         Update all callers and users.
9289
9290 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9291
9292         Alignment correctness for flexible arrays.
9293         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9294         Make alignment-correct. Add interesting comments.
9295         * alloc.c (size_vector):
9296         * alloc.c (make_vector_internal):
9297         * alloc.c (make_bit_vector_internal):
9298         * alloc.c (sweep_bit_vectors_1):
9299         * fns.c (size_bit_vector):
9300         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9301         * window.c (sizeof_window_config_for_n_windows): 
9302         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9303
9304 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9305
9306         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9307
9308 2001-01-23  Andy Piper  <andy@xemacs.org>
9309
9310         * select.c (Fown_selection_internal): pass owned_p
9311
9312         * select-msw.c (mswindows_own_selection): New Signature.
9313
9314         * console.h (struct console_methods): add owned_p to
9315         _own_selection.
9316
9317         * select-x.c (x_own_selection): pass owned_p
9318         (hack_motif_clipboard_selection): use owned_p
9319         (vars_of_select_x): new variable -
9320         x_selection_strict_motif_ownership.
9321
9322 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9323
9324         * specifier.h (specifier_data_offset): Remove pointless parens.
9325         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9326
9327 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9328
9329         Make Lisp_Object sizeof methods be alignment-correct.
9330         pdump must restore objects to the same alignment as the C compiler
9331         assumes.  It really matters on SGIs.
9332         * lstream.c (aligned_sizeof_lstream): New.
9333         (sizeof_lstream): Use aligned_sizeof_lstream.
9334         (Lstream_new): Likewise.
9335         * opaque.c (aligned_sizeof_opaque): New.
9336         (sizeof_opaque): Use aligned_sizeof_opaque.
9337         (make_opaque): Likewise.
9338         * specifier.c (aligned_sizeof_specifier): New.
9339         (sizeof_specifier): Use aligned_sizeof_specifier.
9340         (make_specifier_internal): Likewise.
9341
9342 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9343
9344         * lstream.h (struct lstream): Use max_align_t for trailing data.
9345         * specifier.h (struct Lisp_Specifier): Likewise.
9346
9347 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9348
9349         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9350         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9351         (CCL_SUSPEND): Likewise.
9352         (CCL_INVALID_CMD): Likewise.
9353         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9354         (ccl_driver): Likewise.
9355         (CCL_WRITE_CHAR): Macro hygiene.
9356         (CCL_WRITE_STRING): Macro hygiene.
9357
9358 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9359
9360         Port "portable" dumper to SunOS 4 and HP-UX.
9361         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9362         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9363         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9364
9365 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9366
9367         * lisp.h (ALIGNOF): A better definition for C++.
9368
9369 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9370
9371         Macro hygiene.
9372         Fix printf warnings: int format, long int arg.
9373         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9374         (PUSH_FAILURE_POINT): Use correct printf formats.
9375         (POP_FAILURE_POINT): Use correct printf formats.  
9376         Use do {...} while (0)
9377
9378 2001-01-20  Martin Buchholz <martin@xemacs.org>
9379
9380         * XEmacs 21.2.42 "Poseidon" is released.
9381
9382 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9383
9384         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9385
9386 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9387
9388         De-kludgify FIXED_TYPE free list frobbing.
9389         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9390         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9391         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9392         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9393         * alloc.c (LRECORD_FREE_P): New.
9394         * alloc.c (MARK_LRECORD_AS_FREE): New.
9395         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9396         * alloc.c (STRUCT_FREE_P): Deleted.
9397         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9398         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9399         * alloc.c (STRING_CHARS_FREE_P): New.
9400         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9401         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9402         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9403         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9404         * alloc.c (resize_string): Use new definitions.
9405         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9406         * alloc.c (verify_string_chars_integrity): Use new definitions.
9407         * alloc.c (compact_string_chars): Use new definitions.
9408         * alloc.c: Update monster comments.
9409         * lrecord.h (lrecord_type): Add some new lrecord types for
9410         alloc.c's use.
9411
9412 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9413
9414         Improve alignment hackery.
9415         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9416         (max_align_t): Moved from opaque.h - general purpose.
9417         (ALIGN_PTR): Use size_t, not long.
9418         * opaque.h (max_align_t): Move to lisp.h.
9419
9420 2001-01-18  Norbert Koch  <nk@LF.net>
9421
9422         * gui.h: Fix and add prototypes to fix build problems.
9423
9424 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9425
9426         temacs is going away, so `dump-temacs' is now a bad name.
9427         * .dbxrc (dump-temacs): Rename to `dmp'.
9428         * .gdbinit (dump-temacs): Rename to `dmp'.
9429
9430 2001-01-17  Andy Piper  <andy@xemacs.org>
9431
9432         * glyphs.c (print_image_instance): comment to make martin happy.
9433
9434         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9435         change.
9436
9437         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9438         activation.
9439         (mswindows_tab_control_redisplay): warning suppression.
9440
9441         * glyphs-widget.c (widget_update): re-write to cope with updated
9442         items.
9443         (widget_instantiate): use new gui_item functions.
9444         (tab_control_update): deleted.
9445         (progress_gauge_update): deleted.
9446         (image_instantiator_progress_guage): take out update reference.
9447         (image_instantiator_tree_view): ditto.
9448         (image_instantiator_tab_control): ditto.
9449
9450         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9451         Right the new way.
9452         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9453         return whether anything was changed.
9454         (update_gui_item_keywords): as it sounds.
9455
9456         * gui.h: declare widget_gui_parse_item_keywords.
9457
9458         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9459         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9460
9461 2001-01-17  Martin Buchholz <martin@xemacs.org>
9462
9463         * XEmacs 21.2.41 "Polyhymnia" is released.
9464
9465 2001-01-16  Didier Verna  <didier@xemacs.org>
9466
9467         * glyphs.c (image_instantiate): don't use fallbacks when
9468         instantiating a face's background pixmap by inheritance.
9469
9470 2001-01-14  Mike Sperber <mike@xemacs.org>
9471
9472         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9473         Conditionalize accordingly.
9474
9475 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9476
9477         * dumper.c (pdump_file_get): Fix a compiler warning.
9478
9479 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9480
9481         Make Purify happy when pdumping.
9482         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9483         iniitalizing all bits of new lisp object memory.
9484         * symbols.c (Fmake_local_variable): Likewise.
9485         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9486         * symbols.c (Fdefvaralias): Likewise.
9487         * mule-charset.c (vars_of_mule_charset): Likewise.
9488
9489 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9490         Add the `-nd' flag when running pre-dump operations under the debugger.
9491         * .dbxrc (run-temacs): Add `-nd'.
9492         * .dbxrc (update-elc): Likewise.
9493         * .dbxrc (dump-temacs): Likewise.
9494         * .gdbinit (run-temacs): Likewise.
9495         * .gdbinit (check-temacs): Likewise.
9496         * .gdbinit (update-elc): Likewise.
9497         * .gdbinit (dump-temacs): Likewise.
9498
9499 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9500
9501         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9502         export OBJECT_MODE=64
9503         configure --pdump --use-union-type=no
9504         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9505         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9506
9507         * miscplay.c (sndcnv8U_2mono):
9508         Avoid two uses of `++' in the same expression.
9509         Suppresses a GCC warning.
9510
9511 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9512
9513         Make sure future compilers don't miscompile alloc.c.
9514         * alloc.c:
9515         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9516         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9517
9518 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9519
9520         * dumper.c: A little post-pdump-rename comment fixup.
9521
9522 2001-01-09  Jerry James  <james@eecs.ku.edu>
9523
9524         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9525
9526 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9527
9528         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9529         script:
9530         #!/bin/sh
9531         replace_symbol () {
9532           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9533         }
9534
9535         replace_symbol pdump_wire_lists pdump_weak_object_chains
9536         replace_symbol pdump_wire_list dump_add_weak_object_chain
9537
9538         replace_symbol pdump_wires pdump_root_objects
9539         replace_symbol pdump_wire dump_add_root_object
9540
9541         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9542         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9543
9544         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9545         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9546         replace_symbol dumpstructinfo pdump_root_struct_ptr
9547         replace_symbol dumpstruct dump_add_root_struct_ptr
9548
9549         replace_symbol dumpopaque dump_add_opaque
9550         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9551         replace_symbol dumpopaqueinfos pdump_opaques
9552         replace_symbol dumpopaqueinfo pdump_opaque
9553
9554         replace_symbol nb_structdump nb_root_struct_ptrs
9555         replace_symbol nb_opaquedump nb_opaques
9556
9557         replace_symbol align_table pdump_align_table
9558         replace_symbol dump_header pdump_header
9559
9560         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9561         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9562
9563
9564 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9565
9566         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9567         optimizing bytecount_to_charcount().
9568
9569 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9570
9571         * config.h.in:
9572         (HAVE_DLFCN_H): Removed.
9573         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9574
9575 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9576
9577         Portable dumper maintainability improvements.
9578         * alloc.c (staticpro):
9579         * alloc.c (staticpro_nodump):
9580         * alloc.c (garbage_collect_1):
9581         * alloc.c (reinit_alloc_once_early):
9582         * alloc.c (init_alloc_once_early):
9583         * alloc.c: Move dumper functions to alloc.c.
9584         * dumper.c (pdump_backtrace):
9585         * dumper.c (pdump_dump_structs):
9586         * dumper.c (pdump_dump_opaques):
9587         * dumper.c (pdump_dump_rtables):
9588         * dumper.c (pdump_dump_wired):
9589         * dumper.c (pdump):
9590         * dumper.c (pdump_load_check):
9591         * dumper.c (pdump_load_finish):
9592         * dumper.c (pdump_file_unmap):
9593         * dumper.c (pdump_file_get):
9594         * dumper.c (pdump_resource_free):
9595         * dumper.c (pdump_resource_get):
9596         * dumper.c (pdump_file_free):
9597         * dumper.c (pdump_file_try):
9598         * dumper.c (pdump_load):
9599         Remove fixed size limits on staticpro(), staticpro_nodump(),
9600         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9601         Remove custom code for dumping lrecord_implementations_table - use
9602         dumpopaque instead.
9603         Remove (most of the) custom code for dumping staticpros - dump it
9604         like any other dynarr.
9605
9606         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9607         * dumper.c: Moved functions from alloc.c.
9608         * alloc.c (dumpstruct): Moved to dumper.c.
9609         * alloc.c (dumpopaque): Likewise.
9610         * alloc.c (pdump_wire): Likewise.
9611         * alloc.c (pdump_wire_list): Likewise.
9612
9613         * lisp.h (Dynarr_sizeof): New.
9614         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9615         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9616         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9617
9618         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9619         * lisp.h (dumpopaque): ditto.
9620         * lisp.h (pdump_wire): ditto.
9621         * lisp.h (pdump_wire_list): ditto.
9622
9623 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9624
9625         * make-src-depend (PrintPatternDeps):
9626         Use `sort' to make output independent of perl version.
9627
9628 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9629
9630         Port to Netbsd 1.5.
9631         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9632         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9633
9634 2001-01-03  Didier Verna  <didier@xemacs.org>
9635
9636         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9637         that `focus_frame' is alive before thinking of calling
9638         `redisplay_redraw_cursor' on it.
9639
9640 2001-01-08  Martin Buchholz <martin@xemacs.org>
9641
9642         * XEmacs 21.2.40 is released.
9643
9644 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9645
9646         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9647
9648 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9649
9650         * alloc.c (dbg_valmask): Make const.
9651         * alloc.c (dbg_typemask): Make const.
9652         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9653         * alloc.c (dbg_valbits): Make const.
9654         * alloc.c (dbg_gctypebits): Make const.
9655
9656 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9657
9658         * redisplay-x.c (x_bevel_area):
9659         redisplay.h (struct rune):
9660         Typo fixes in comments.
9661
9662 2001-01-05  Andy Piper  <andy@xemacs.org>
9663
9664         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9665         adjustment.
9666
9667         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9668
9669 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9670
9671         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9672
9673         * mule-ccl.c (stack_idx_of_map_multiple):
9674         Non const global data must not be initialized!
9675         Found by MIYASHITA Hisashi.
9676
9677 2001-01-02  Andy Piper  <andy@xemacs.org>
9678
9679         * frame.c (change_frame_size): make sure frame size is always
9680         marked as changed.
9681
9682         * glyphs.c (image_instance_layout): minor code reuse.
9683
9684         * window.c (Fcurrent_window_configuration): revert previous
9685         change.
9686
9687 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9688
9689         * glyphs.h:
9690         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9691
9692 2000-12-31  Andy Piper  <andy@xemacs.org>
9693
9694         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9695         when widget gets unmapped.
9696
9697         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9698         function. Make sure widgets losing focus don't just drop it.
9699         (handle_focus_event_1): record the widget with focus.
9700
9701 2000-12-31  Andy Piper  <andy@xemacs.org>
9702
9703         * window.c (allocate_window): use
9704         make_image_instance_cache_hash_table.
9705         (make_dummy_parent): ditto.
9706         (Fset_window_configuration): ditto.
9707
9708         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9709
9710         * glyphs.c (process_image_string_instantiator): use
9711         INSTANTIATOR_TYPE.
9712         (get_image_instantiator_governing_domain): ditto.
9713         (normalize_image_instantiator): ditto.
9714         (instantiate_image_instantiator): ditto.
9715         (make_image_instance_1): ditto.
9716         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9717         (instantiator_eq_equal): new function for use with instance hash
9718         tables.
9719         (instantiator_eq_hash): ditto.
9720         (make_image_instance_cache_hash_table): create a suitable hash
9721         table for storing image instances.
9722
9723         * elhash.h (hash_table_weakness): new internal weakness type
9724         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9725         declare new functions.
9726
9727         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9728         another weakness type for glyphs.
9729         (make_standard_lisp_hash_table): new function split out from
9730         make_general_lisp_hash_table.
9731         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9732         (hash_table_instantiate): ditto.
9733         (Fmake_hash_table): ditto.
9734
9735 2000-12-31  Martin Buchholz <martin@xemacs.org>
9736
9737         * XEmacs 21.2.39 is released.
9738
9739 2000-12-29  Andy Piper  <andy@xemacs.org>
9740
9741         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9742
9743         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9744         the frame has changed so that we pick up geometry changes such as
9745         menubar visibility.
9746
9747 2000-12-28  Andy Piper  <andy@xemacs.org>
9748
9749         * lastfile.c (my_ebss): make a char array so we can pad the
9750         bss. Fixes cygwin unexec.
9751
9752         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9753
9754 2000-12-26  Andy Piper  <andy@xemacs.org>
9755
9756         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9757         comments and try and be more precise about a non-/SIGIO world.
9758         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9759         SIGIO.
9760
9761         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9762         we don't normalize to zero width or height.
9763
9764 2000-12-24  Andy Piper  <andy@xemacs.org>
9765
9766         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9767
9768 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9769
9770         * s/sco5.h: SCO 5 has pty support.
9771
9772 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9773
9774         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9775         input-method-xlib.c contains whole contents of input-method-xfs.c,
9776         so we can use input-method-xlib.c's code for USE_XFONTSET
9777         using #ifdefs.
9778         * input-method-xfs.c: removed.
9779
9780 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9781
9782         * file-coding.h (enum coding_category_type): reorder enumerators to
9783         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9784         (now one greater than largest real coding_category_type enumerator).
9785         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9786         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9787         Fcoding_category_list, Fset_coding_priority_list,
9788         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9789         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9790
9791 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9792
9793         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9794         * redisplay-output.c (redisplay_output_window): Clear top of window
9795         when face is changed.
9796         * redisplay-x.c (x_redraw_exposed_window): Call
9797         redisplay_clear_top_of_window.
9798         * redisplay.h: Publish redisplay_clear_top_of_window.
9799
9800 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9801
9802         * buffer.c (Fkill_buffer): Map over all devices.
9803         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9804         (list_windows): New function.
9805         (list_all_windows): Ditto.
9806         (Freplace_buffer_in_windows): Use them.
9807
9808 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9809
9810         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9811         (Fopen_database): Use `db_create' instead of `db_open'.
9812         (syms_of_database): Initialize Qqueue.
9813
9814 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9815
9816         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9817         buffer_local_face_property.
9818         * buffer.h (struct buffer): New member buffer_local_face_property.
9819         * window.c (Fset_window_buffer):  Mark window's face as changed
9820         when buffer has buffer local face.
9821         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9822         * objects.c (color_after_change): Set buffer_local_face_property
9823         when locale of face specifier is buffer.
9824         * objects.c (font_after_change): Ditto.
9825         * objects.c (face_boolean_after_change): Ditto.
9826         * glyphs.c (image_after_change): Ditto.
9827
9828 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9829
9830         * nt.c (mswindows_fstat): Report file permissions, volume serial
9831         number, etc. Code adapted from FSF Emacs 20.7.
9832
9833 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9834
9835         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9836         of stat when we don't have symbolic links, to make sure
9837         mswindows_stat is called on mswindows.
9838
9839 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9840
9841         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9842
9843 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9844
9845         * doprnt.c (emacs_doprnt_1): More printing fixes.
9846         Make printing of numbers compatible with libc and FSF Emacs.
9847         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9848         Use the system printf to do most of the hard work of formatting,
9849         instead of doprnt_1().
9850         Calculate memory to allocate for format string.
9851         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9852         (doprnt_1): Cleaner code and documentation.
9853
9854 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9855
9856         * Makefile.in.in: Use the loop variable to install headers.
9857
9858 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9859
9860         * window.c (Fsplit_window): Don't invalidate face cache.
9861
9862 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9863
9864         * minibuf.c (Fall_completions): Undo the previous change
9865         which removed checking elements start with space.
9866
9867 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9868
9869         * mule-canna.c: Didier suppression.
9870
9871 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9872
9873         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9874         (warning suppression).  Add English comment translations.
9875
9876 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9877
9878         * unexelfsgi.c (unexec): Better test for mmap failure.
9879
9880 2000-12-05  Martin Buchholz <martin@xemacs.org>
9881
9882         * XEmacs 21.2.38 is released.
9883
9884 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9885
9886         * redisplay.c (bar-cursor): Make a user variable.
9887
9888         * symsinit.h: Add init_postgresql_from_environment.
9889
9890 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9891
9892         * regex.c: Convert to clean C.
9893
9894 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9895
9896         * realpath.c:
9897         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9898         initialization.
9899         (sys_readlink): renamed to system_readlink to avoid conflict with
9900         the other sys_readlink.
9901
9902 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9903
9904         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9905
9906 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9907
9908         * postgresql.c (init_postgresql_from_environment): new function.
9909         (vars_of_postgresql): Move code initializing Lisp variables out and
9910         into init_postgresql_from_environment.
9911         emacs.c (main_1): Call init_postgresql_from_environment if and only
9912         if running a dumped XEmacs.
9913
9914 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9915
9916         * buffer.c: Make find-file-compare-truenames default to true on
9917         windows.
9918
9919         * realpath.c (win32_abs_start):
9920         (cygwin_readlink):
9921         (win32_readlink): New functions.
9922         (xrealpath): Return really real filenames on windows.
9923
9924         * fileio.c (Ffile_truename): Make file-truename work on windows.
9925
9926 2000-11-29  Didier Verna  <didier@xemacs.org>
9927
9928         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9929         * faces.c (update_face_cachel_data): use it.
9930         * faces.c (add_face_cachel): use it. Complete background pixmap
9931         frobbing in face cache if `update_face_cachel_data' has not done so.
9932
9933 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9934
9935         * search.c (string_match_1): Don't set last_thing_searched
9936         when search failed.
9937
9938 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9939
9940         * buffer.c: Include casetab.h
9941         (common_init_complex_vars_of_buffer): Use new case-table object.
9942         * buffer.h: Include casetab.h
9943         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9944         (DOWNCASE_TABLE_OF): Ditto.
9945         * bufslots.h: Remove char-tables and add case-table.
9946         * casetab.c: Include casetab.h
9947         (CASE_TABLE_P): Removed.
9948         (mark_case_table): New function.
9949         (allocate_case_table): New function.
9950         (Fcase_table_p): Use new case-table.
9951         (case_table_char): New function.
9952         (Fget_case_table): Ditto.
9953         (Fput_case_table): Ditto.
9954         (Fput_case_table_pair): Ditto.
9955         (Fcopy_case_table): Ditto.
9956         (Fcurrent_case_table): Return case-table.
9957         (Fstandard_case_table): Return case-table.
9958         (Fset_case_table): Fix doc-string.
9959         (set_case_table): Use case-table
9960         (syms_of_casetab): DEFSUBR new functions.
9961         (complex_vars_of_casetab): Set up standard case-table.
9962         * casetab.h: New file.
9963         * editfns.c: Include casetab.h
9964         (Fcompare_buffer_substrings): Use case-table.
9965         * inline.c: Include casetab.h
9966         * lisp.h: Remove bogus extern.
9967         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9968         * search.c: Include casetab.h
9969         (TRANSLATE_ASCII): Removed.
9970         (TRANSLATE): Unconditionally translate character.
9971         (looking_at_1): Use case-table.
9972         (string_match_1): Ditto.
9973         (fast_string_match): Ditto.
9974         (search_command): Ditto.
9975         (search_buffer): Separate boyer_moore.  Check whether
9976         boyer_moore is possible.
9977         (simple_search): New function.
9978         (boyer_moore): Separated from search_buffer. Translate char.
9979
9980 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9981
9982         * regex.c (RE_TR_ASCII): Removed.
9983         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9984         (PATFETCH): Call PATFETCH_RAW.
9985         (PATFETCH_RAW): Fetch Emchar.
9986         (PATUNFETCH): Decrement charptr.
9987         (GET_BUFFER_SPACE): Rename b to buf_end.
9988         (BUF_PUSH): Ditto.
9989         (BUF_PUSH_2): Ditto.
9990         (BUF_PUSH_3): Ditto.
9991         (EXTEND_BUFFER): Ditto.
9992         (SET_LIST_BIT): Ditto.
9993         (regex_compile): Ditto.  Translate non ASCII char.
9994         (compile_range): Ditto.
9995         (re_search_2): Ditto.
9996         (re_match_2_internal): Compare Emchar.
9997         (bcmp_translate): Ditto.
9998
9999 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10000
10001         * lisp.h (basic char/int typedefs):  comment improvement.
10002
10003 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10004
10005         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10006         unstomp inhibit_site_lisp.  Improve comments.
10007
10008 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10009
10010         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10011
10012 2000-11-28  Andy Piper  <andy@xemacs.org>
10013
10014         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10015         clipped display for windows in the gutter also.
10016         (redisplay_display_boxes_in_window_p): change semantics of return
10017         codes to be more intuitive.
10018
10019         * gutter.h: declare display_boxes_in_gutter_p.
10020
10021         * gutter.c (display_boxes_in_gutter_p): new function for
10022         redisplay.
10023
10024 2000-11-22  Andy Piper  <andy@xemacs.org>
10025
10026         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10027         autodetect domain.
10028
10029 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10030
10031         * callproc.c (Fold_call_process_internal):
10032         * gpm.c (Freceive_gpm_event):
10033         (tty_get_foreign_selection): Might be just warning supression.
10034         * fileio.c (Fwrite_region_internal):
10035         (Fset_visited_file_modtime):
10036         * keymap.c (event_matches_key_specifier_p):
10037         Initialize GCPROed variable.
10038
10039         * menubar-x.c (command_builder_find_menu_accelerator):
10040         Initialize before use.
10041
10042 2000-11-23  Andy Piper  <andy@xemacs.org>
10043
10044         * unexcw.c (unexec): make the resulting executable executable.
10045
10046 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10047
10048         * doc.c (get_doc_string):
10049         Use size_t, not int, for result of XSTRING_LENGTH.
10050
10051         * cmds.c (Fdelete_char):
10052         * cmds.c (Fpoint_at_eol):
10053         * cmds.c (Fself_insert_command):
10054         Use EMACS_INT, not int, for result of XINT.
10055         Someday, someone will want to insert more than 2**31 identical characters.
10056
10057         * cmds.c (Fdelete_char):
10058         * cmds.c (Fdelete_backward_char):
10059         * syntax.c (Fforward_word):
10060         * syntax.c (Fforward_comment):
10061         Make COUNT argument optional, for consistency with forward-char et al.
10062
10063 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10064
10065         * lisp.h:
10066         * print.c (long_to_string):
10067         Return a useful value: the pointer at end of data written.
10068
10069         * doprnt.c:
10070         Use `static const char * const' for constant strings.
10071         (union printf_arg): Delete `i', `ui' members.
10072         (get_doprnt_args):
10073         (emacs_doprnt_1):
10074         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10075         Do all printf-ing via the `l' specifier.
10076         Use EMACS_INT instead of int.
10077         Optimize.
10078
10079 2000-11-20  Didier Verna  <didier@xemacs.org>
10080
10081         * faces.c (update_face_cachel_data): don't frob the background
10082         pixmap when the window is being created. The face is needed but
10083         does not exist yet.
10084
10085 2000-11-20  Andy Piper  <andy@xemacs.org>
10086
10087         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10088         messing with a debug environment.
10089
10090 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10091
10092         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10093
10094 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10095
10096         * casetab.c (Fcase_table_p): Fix compile error and crash.
10097
10098 2000-11-18  Philip Aston  <philipa@mail.com>
10099
10100         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10101
10102 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10103
10104         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10105         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10106
10107 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10108
10109         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10110         * unexelf.c: Use HAVE_ELF_H.
10111         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10112         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10113         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10114         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10115         for testing.
10116         So this is an unexelfsgi.c from a different line of development.
10117
10118 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10119
10120         * regex.c (RE_TR_ASCII): New function.
10121         (RE_TRANSLATE): Call it.
10122
10123 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10124
10125         * buffer.h (TRT_TABLE_OF): Remove assert.
10126         (IN_TRT_TABLE_DOMAIN): Removed.
10127
10128 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10129
10130         * free-hook.c (log_gcpro):
10131         (show_gcprohist): Add support for GCPRO5.
10132
10133 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10134
10135         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10136
10137 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10138
10139         * symeval.h: Declare flush_all_buffer_local_cache.
10140
10141         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10142         (flush_buffer_local_cache): Added.
10143         (flush_all_buffer_local_cache): Added.
10144
10145         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10146
10147         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10148         (pdump_dump_data): Ditto.
10149         (pdump_reloc_one): Ditto.
10150         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10151         before dumping.
10152
10153
10154 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10155
10156         * buffer.c: Remove if 0'ed entry.
10157         * buffer.h: Rewrite TRT to use char-table.
10158         * bufslots.h: Remove mirror tables.
10159         * casetab.c: Remove mirror tables.
10160         (CASE_TABLE_P): New macro.
10161         (Fcase_table_p): Element of a case table is string or char-table.
10162         (make_mirror_trt_table): Removed.
10163         (set_case_table): Setup char-table from strings for backward
10164         compatibility.
10165         * dired.c (Fdirectory_files):
10166         * dired-msw.c: (mswindows_get_files):
10167         * lisp.h: Change prototype of re_pattern_buffer.
10168         * regex.c: (RE_TRANSLATE): New macro.
10169         (TRANSLATE_P): Ditto.
10170         Change translate to type RE_TRANSLATE_TYPE.
10171         * regex.h: Define RE_TRANSLATE_TYPE
10172         * search.c (TRANSLATE): New macro.
10173         (TRANSLATE_ASCII): New macro.
10174         Translate table is changed to Lisp_Object.
10175         (signal_failure): Inhibit return.
10176
10177 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10178
10179         * device-msw.c:
10180         * eldap.c:
10181         * event-Xt.c:
10182         * event-stream.c:
10183         * print.c:
10184         Do UNGCPRO before return.
10185
10186 2000-11-14  Martin Buchholz <martin@xemacs.org>
10187
10188         * XEmacs 21.2.37 is released.
10189
10190 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10191
10192         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10193         Add comments about discarded return value.
10194
10195 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10196
10197         * callint.c:
10198         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10199
10200 2000-10-27  Andy Piper  <andy@xemacs.org>
10201
10202         * gutter.c (Fset_default_gutter_position): default left and right
10203         gutters to visible.
10204         (calculate_gutter_size): calculate resonable heuristic for left
10205         and right gutter sizes.
10206         (specifier_vars_of_gutter): change left and right gutter sizes to
10207         autodetect.
10208         (calculate_gutter_size_from_display_lines): new function.
10209         (output_gutter): check for resizing on left and right gutters.
10210         (clear_gutter): don't special case top and left gutters.
10211         (specifier_vars_of_gutter): use new signature for
10212         set_specifier_caching.
10213
10214         * glyphs-x.c (x_redisplay_widget): spelling fix.
10215         * glyphs.c (specifier_vars_of_glyphs):
10216         * menubar.c (specifier_vars_of_menubar):
10217         * redisplay.c (specifier_vars_of_redisplay):
10218         * toolbar.c (specifier_vars_of_toolbar):
10219         * window.c (specifier_vars_of_window):
10220         * scrollbar.c (specifier_vars_of_scrollbar):
10221         (complex_vars_of_scrollbar): use new signature for
10222         set_specifier_caching.
10223
10224         * specifier.c (set_specifier_caching): include recompute flag.
10225         (recompute_one_cached_specifier_in_window): always recompute if
10226         flag set.
10227         (recompute_one_cached_specifier_in_frame): ditto.
10228
10229         * specifier.h (struct specifier_caching): add recompute flag.
10230
10231 2000-10-24  Andy Piper  <andy@xemacs.org>
10232
10233         * unexcw.c (copy_executable_and_dump_data_section): add new
10234         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10235         5.0 happy.
10236
10237 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10238
10239         * console-x.h (x_device): New member modifier_release_time.
10240         * event-Xt.c (x_handle_sticky_modifiers):
10241         Bound interval modifier keys are sticky.
10242         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10243         * events.h: extern it.
10244
10245 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10246
10247         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10248
10249 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10250
10251         * event-stream.c (execute_command_event): Preserve current_events
10252         and the like when event is misc-user-event.
10253         Inhibit quit during the call to maybe_echo_keys.
10254
10255 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10256
10257         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10258         symlink when buffer is killed.
10259         (inhibit_clash_detection): New variable.
10260
10261 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10262
10263         * console.c (Fset_input_method): Trigger redisplay on tty.
10264
10265 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10266
10267         * process.c (Fprocess_status): Revert to previous behavior:
10268         (process-status "nosuchprocess") ==> nil
10269
10270 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10271
10272         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10273         Work around another GCC 2.95.2 optimizer bug.
10274
10275 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10276
10277         * process.c (Fget_process): Use LIST_LOOP_2.
10278         (kill_buffer_processes): Use LIST_LOOP_2.
10279
10280         * minibuf.c (Fall_completions):
10281         Delete old non-functional code for FSF fourth argument.
10282
10283         * frame.c (frame_matches_frame_spec):
10284         Renamed from `frame_matches_frametype'.  Update all callers.
10285         (device_matches_device_spec):
10286         Renamed from 'device_matches_console_spec'.  Update all callers.
10287
10288         * doc.c (Fsubstitute_command_keys):
10289         Remove buffer overflow crash.  Small code cleanups.
10290
10291         * casetab.c (check_case_table): Simpler code.
10292
10293         * window.c (Freplace_buffer_in_windows):
10294         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10295         (and similar implementation) as Fdelete_windows_on.
10296         Update all callers.
10297
10298         * alloc.c (Fmake_list):
10299         * alloc.c (make_vector):
10300         * alloc.c (Fmake_vector):
10301         * alloc.c (make_bit_vector):
10302         * alloc.c (Fmake_bit_vector):
10303         * alloc.c (Fbit_vector):
10304         * alloc.c (Fmake_string):
10305         * alloc.c (Fpurecopy):
10306         * alloc.c (Fmemory_limit):
10307         * buffer.c:
10308         * buffer.c (Fget_buffer):
10309         * buffer.c (Fkill_buffer):
10310         * buffer.c (complex_vars_of_buffer):
10311         * bytecode.c (Fcompiled_function_stack_depth):
10312         * callint.c (Fprefix_numeric_value):
10313         * event-stream.c:
10314         * event-stream.c (Fread_key_sequence):
10315         * casetab.c:
10316         * casetab.c (Fcase_table_p):
10317         * casetab.c (check_case_table):
10318         * casetab.c (Fset_case_table):
10319         * casetab.c (Fset_standard_case_table):
10320         * chartab.c:
10321         * chartab.c (Fchar_table_type):
10322         * chartab.c (Freset_char_table):
10323         * chartab.c (Fget_char_table):
10324         * chartab.c (Fget_range_char_table):
10325         * chartab.c (Fput_char_table):
10326         * chartab.c (Fmap_char_table):
10327         * chartab.c (Fcategory_table_p):
10328         * chartab.c (Fcheck_category_at):
10329         * chartab.c (Fchar_in_category_p):
10330         * chartab.c (Fcategory_table):
10331         * chartab.c (Fcopy_category_table):
10332         * chartab.c (Fset_category_table):
10333         * chartab.c (Fcategory_designator_p):
10334         * chartab.c (Fcategory_table_value_p):
10335         * cmds.c (Fdelete_char):
10336         * cmds.c (Fdelete_backward_char):
10337         * cmds.c (Fself_insert_command):
10338         * cmds.c (Fself_insert_internal):
10339         * console.c (Fvalid_console_type_p):
10340         * console.c (Fcdfw_console):
10341         * console.c (Fconsole_type):
10342         * console.c (Fconsole_name):
10343         * console.c (Fconsole_device_list):
10344         * console.c (Fconsole_on_window_system_p):
10345         * data.c:
10346         * data.c (Feq):
10347         * data.c (Fold_eq):
10348         * data.c (Fsubr_interactive):
10349         * data.c (Fchar_to_int):
10350         * data.c (Fint_to_char):
10351         * data.c (Fsetcar):
10352         * data.c (Fsetcdr):
10353         * data.c (Fnumber_to_string):
10354         * data.c (Fstring_to_number):
10355         * data.c (Frem):
10356         * database.c (mark_database):
10357         * database.c (finalize_database):
10358         * database.c (Fdatabase_live_p):
10359         * database.c (Fdatabasep):
10360         * device-x.c (Fx_get_resource):
10361         * device.c (Fdfw_device):
10362         * dired.c:
10363         * dired.c (Ffile_name_completion):
10364         * dired.c (Ffile_name_all_completions):
10365         * dired.c (Fuser_name_completion):
10366         * dired.c (Fuser_name_completion_1):
10367         * dired.c (Fuser_name_all_completions):
10368         * doc.c (Fdocumentation):
10369         * doc.c (Fdocumentation_property):
10370         * doc.c (Fsubstitute_command_keys):
10371         * editfns.c:
10372         * editfns.c (Fchar_to_string):
10373         * editfns.c (Fstring_to_char):
10374         * editfns.c (Ftemp_directory):
10375         * editfns.c (Finsert_char):
10376         * editfns.c (Fbuffer_substring_no_properties):
10377         * editfns.c (Fnarrow_to_region):
10378         * editfns.c (Fchar_equal):
10379         * editfns.c (Fchar_Equal):
10380         * editfns.c (Ftranspose_regions):
10381         * emacs.c (Fdump_emacs):
10382         * eval.c (Fthrow):
10383         * eval.c (Fcommand_execute):
10384         * eval.c (Fautoload):
10385         * eval.c (Fbacktrace):
10386         * eval.c (Fbacktrace_frame):
10387         * events.c:
10388         * events.c (Fcopy_event):
10389         * events.c (Fcharacter_to_event):
10390         * events.c (Fevent_button):
10391         * events.c (Fevent_process):
10392         * extents.c:
10393         * extents.c (Fnext_extent_change):
10394         * extents.c (Fextent_property):
10395         * faces.c (Ffacep):
10396         * faces.c (Fmake_face):
10397         * file-coding.c:
10398         * file-coding.c (Fencode_shift_jis_char):
10399         * file-coding.c (Fencode_big5_char):
10400         * fileio.c (Ffile_name_directory):
10401         * fileio.c (Ffile_name_nondirectory):
10402         * fileio.c (Ffile_name_as_directory):
10403         * fileio.c (Fdirectory_file_name):
10404         * fileio.c (Ffile_truename):
10405         * fileio.c (Fsubstitute_in_file_name):
10406         * fileio.c (Ffile_modes):
10407         * fileio.c (Fset_file_modes):
10408         * fileio.c (Fset_default_file_modes):
10409         * fileio.c (Fverify_visited_file_modtime):
10410         * floatfns.c (Facos):
10411         * floatfns.c (Fasin):
10412         * floatfns.c (Fatan):
10413         * floatfns.c (Fcos):
10414         * floatfns.c (Fsin):
10415         * floatfns.c (Ftan):
10416         * floatfns.c (Fbessel_j0):
10417         * floatfns.c (Fbessel_j1):
10418         * floatfns.c (Fbessel_jn):
10419         * floatfns.c (Fbessel_y0):
10420         * floatfns.c (Fbessel_y1):
10421         * floatfns.c (Fbessel_yn):
10422         * floatfns.c (Ferf):
10423         * floatfns.c (Ferfc):
10424         * floatfns.c (Flog_gamma):
10425         * floatfns.c (Fexp):
10426         * floatfns.c (Fexpt):
10427         * floatfns.c (Flog):
10428         * floatfns.c (Flog10):
10429         * floatfns.c (Fsqrt):
10430         * floatfns.c (Fcube_root):
10431         * floatfns.c (Facosh):
10432         * floatfns.c (Fasinh):
10433         * floatfns.c (Fatanh):
10434         * floatfns.c (Fcosh):
10435         * floatfns.c (Fsinh):
10436         * floatfns.c (Ftanh):
10437         * floatfns.c (Fabs):
10438         * floatfns.c (Ffloat):
10439         * floatfns.c (Flogb):
10440         * floatfns.c (Fceiling):
10441         * floatfns.c (Ffloor):
10442         * floatfns.c (Fround):
10443         * floatfns.c (Ftruncate):
10444         * floatfns.c (Ffceiling):
10445         * floatfns.c (Fffloor):
10446         * floatfns.c (Ffround):
10447         * floatfns.c (Fftruncate):
10448         * fns.c (Fstring_equal):
10449         * fns.c (Fstring_lessp):
10450         * fns.c (concat2):
10451         * fns.c (concat3):
10452         * fns.c (vconcat2):
10453         * fns.c (vconcat3):
10454         * fns.c (Fsubstring):
10455         * fns.c (Fassoc):
10456         * fns.c (Fold_assoc):
10457         * fns.c (assoc_no_quit):
10458         * fns.c (Fassq):
10459         * fns.c (Fold_assq):
10460         * fns.c (assq_no_quit):
10461         * fns.c (Frassoc):
10462         * fns.c (Fold_rassoc):
10463         * fns.c (Frassq):
10464         * fns.c (Fold_rassq):
10465         * fns.c (rassq_no_quit):
10466         * fns.c (Fremassoc):
10467         * fns.c (remassoc_no_quit):
10468         * fns.c (Fremassq):
10469         * fns.c (remassq_no_quit):
10470         * fns.c (Fremrassoc):
10471         * fns.c (Fremrassq):
10472         * fns.c (remrassq_no_quit):
10473         * fns.c (Fsort):
10474         * fns.c (Fplist_get):
10475         * fns.c (Fplist_put):
10476         * fns.c (Fplist_remprop):
10477         * fns.c (Fplist_member):
10478         * fns.c (Flax_plist_get):
10479         * fns.c (Flax_plist_put):
10480         * fns.c (Flax_plist_remprop):
10481         * fns.c (Flax_plist_member):
10482         * fns.c (Fequal):
10483         * fns.c (Fold_equal):
10484         * fns.c (Frequire):
10485         * fns.c (Fbase64_encode_region):
10486         * fns.c (Fbase64_encode_string):
10487         * fns.c (Fbase64_decode_region):
10488         * frame.c:
10489         * frame.c (frame_matches_frame_spec):
10490         * frame.c (device_matches_device_spec):
10491         * frame.c (next_frame):
10492         * frame.c (previous_frame):
10493         * frame.c (Fnext_frame):
10494         * frame.c (Fprevious_frame):
10495         * frame.c (Fframe_property):
10496         * frame.c (Fset_frame_height):
10497         * frame.c (Fset_frame_size):
10498         * frame.h:
10499         * glyphs.c:
10500         * glyphs.c (if):
10501         * glyphs.c (decode_error_behavior_flag):
10502         * glyphs.c (Fmake_image_instance):
10503         * indent.c (Findent_to):
10504         * intl.c (Fignore_defer_gettext):
10505         * keymap.c (Fkeymapp):
10506         * keymap.c (Flookup_key):
10507         * lread.c:
10508         * lread.c (Fload_internal):
10509         * lread.c (Feval_buffer):
10510         * lread.c (Feval_region):
10511         * macros.c (Fexecute_kbd_macro):
10512         * marker.c (set_marker_internal):
10513         * marker.c (Fset_marker):
10514         * marker.c (set_marker_restricted):
10515         * marker.c (Fcopy_marker):
10516         * marker.c (noseeum_copy_marker):
10517         * menubar.c:
10518         * menubar.c (Fpopup_menu):
10519         * minibuf.c:
10520         * mule-charset.c (Fcharset_name):
10521         * mule-charset.c (Fchar_charset):
10522         * mule-charset.c (Fchar_octet):
10523         * mule-charset.c (Fsplit_char):
10524         * mule-wnnfns.c (Fwnn_open):
10525         * mule-wnnfns.c (Fwnn_dict_comment):
10526         * mule-wnnfns.c (Fwnn_quit_henkan):
10527         * mule-wnnfns.c (Fwnn_word_toroku):
10528         * mule-wnnfns.c (Fwnn_word_sakujo):
10529         * mule-wnnfns.c (Fwnn_word_use):
10530         * mule-wnnfns.c (Fwnn_hindo_set):
10531         * objects.c:
10532         * objects.c (Fmake_color_instance):
10533         * objects.c (Fmake_font_instance):
10534         * print.c (Fwrite_char):
10535         * process.c:
10536         * process.c (mark_process):
10537         * process.c (print_process):
10538         * process.c (get_process_from_usid):
10539         * process.c (Fprocessp):
10540         * process.c (Fprocess_live_p):
10541         * process.c (Fget_process):
10542         * process.c (Fget_buffer_process):
10543         * process.c (get_process):
10544         * process.c (Fprocess_id):
10545         * process.c (Fprocess_name):
10546         * process.c (Fprocess_command):
10547         * process.c (init_process_io_handles):
10548         * process.c (start_process_unwind):
10549         * process.c (Fstart_process_internal):
10550         * process.c (Fopen_multicast_group_internal):
10551         * process.c (Fset_process_window_size):
10552         * process.c (read_process_output):
10553         * process.c (send_process):
10554         * process.c (Fprocess_tty_name):
10555         * process.c (Fset_process_buffer):
10556         * process.c (Fprocess_buffer):
10557         * process.c (Fprocess_mark):
10558         * process.c (set_process_filter):
10559         * process.c (Fset_process_filter):
10560         * process.c (Fprocess_filter):
10561         * process.c (Fprocess_send_region):
10562         * process.c (Fprocess_send_string):
10563         * process.c (exec_sentinel):
10564         * process.c (Fset_process_sentinel):
10565         * process.c (Fprocess_sentinel):
10566         * process.c (status_notify):
10567         * process.c (Fprocess_status):
10568         * process.c (Fprocess_exit_status):
10569         * process.c (process_send_signal):
10570         * process.c (Fprocess_send_eof):
10571         * process.c (deactivate_process):
10572         * process.c (remove_process):
10573         * process.c (Fdelete_process):
10574         * process.c (kill_buffer_processes):
10575         * process.c (Fprocess_kill_without_query):
10576         * process.c (Fprocess_kill_without_query_p):
10577         * rangetab.c:
10578         * rangetab.c (Fget_range_table):
10579         * rangetab.c (Fput_range_table):
10580         * rangetab.c (Fremove_range_table):
10581         * rangetab.c (Fclear_range_table):
10582         * search.c:
10583         * search.c (Fskip_chars_forward):
10584         * search.c (Fskip_chars_backward):
10585         * search.c (Fskip_syntax_forward):
10586         * search.c (Fskip_syntax_backward):
10587         * search.c (search_command):
10588         * search.c (Freplace_match):
10589         * search.c (Fregexp_quote):
10590         * select.c (Fown_selection_internal):
10591         * select.c (Fselection_owner_p):
10592         * select.c (Fselection_exists_p):
10593         * select.c (Fget_selection_internal):
10594         * specifier.c:
10595         * symbols.c:
10596         * symbols.c (Fintern):
10597         * symbols.c (Fintern_soft):
10598         * symbols.c (Funintern):
10599         * symbols.c (Fapropos_internal):
10600         * symbols.c (Fset_default):
10601         * syntax.c:
10602         * syntax.c (Fsyntax_table_p):
10603         * syntax.c (Fcopy_syntax_table):
10604         * syntax.c (Fset_syntax_table):
10605         * syntax.c (Fchar_syntax):
10606         * syntax.c (syntax_match):
10607         * syntax.c (Fmatching_paren):
10608         * syntax.c (Fforward_word):
10609         * syntax.c (scan_lists):
10610         * syntax.c (Fscan_lists):
10611         * syntax.c (Fscan_sexps):
10612         * syntax.c (Fparse_partial_sexp):
10613         * toolbar.c (Fcheck_toolbar_button_syntax):
10614         * tooltalk.doc:
10615         * window.c:
10616         * window.c (Fwindowp):
10617         * window.c (Fwindow_live_p):
10618         * window.c (Fwindow_point):
10619         * window.c (Fdelete_window):
10620         * window.c (Fnext_window):
10621         * window.c (Fprevious_window):
10622         * window.c (Fother_window):
10623         * window.c (window_loop):
10624         * window.c (Fget_lru_window):
10625         * window.c (Fsplit_window):
10626         * window.c (Fenlarge_window):
10627         * window.c (Fenlarge_window_pixels):
10628         * window.c (Fshrink_window):
10629         * window.c (Fshrink_window_pixels):
10630         * window.c (change_window_height):
10631         * window.c (Fwindow_configuration_p):
10632         * window.c (Fcurrent_window_configuration):
10633         * window.h:
10634         * casefiddle.c (casify_object):
10635         * casefiddle.c (Fupcase):
10636         * casefiddle.c (Fdowncase):
10637         * casefiddle.c (Fcapitalize):
10638         * casefiddle.c (Fupcase_initials):
10639         * casefiddle.c (casify_region_internal):
10640         * casefiddle.c (casify_region):
10641         * casefiddle.c (Fupcase_region):
10642         * casefiddle.c (Fdowncase_region):
10643         * casefiddle.c (Fcapitalize_region):
10644         * casefiddle.c (Fupcase_initials_region):
10645         * casefiddle.c (Fupcase_word):
10646         * casefiddle.c (Fdowncase_word):
10647         * casefiddle.c (Fcapitalize_word):
10648         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10649         Replace 0 with '\0' when working with bytes.
10650         Replace initial "(" with "\(" in docstrings.
10651
10652 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10653
10654         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10655
10656         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10657
10658 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10659
10660         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10661
10662 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10663
10664         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10665         correctly.
10666
10667 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10668
10669         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10670         (inhibit_auto_save_session): New variable.
10671         (vars_of_fileio): Declare and initialize them.
10672         * fileio.c (Fdo_auto_save): Don't create session file if
10673         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10674
10675 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10676
10677         * sgiplay.c (play_internal): C++ compilability.
10678         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10679         * callproc.c (Fold_call_process_internal):
10680         Remove unused vars `env', `first'.
10681         * scrollbar.c (update_scrollbar_instance):
10682         #### unused var `current_window'.
10683         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10684         etc. within #ifdef NOT_YET.
10685         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10686         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10687         * specifier.c (specifier_instance):
10688         #### unused var `tag'.
10689         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10690
10691 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10692
10693         * fns.c (Fbutlast):
10694         * fns.c (list_sort):
10695         * fns.c (Ffillarray):
10696         * fns.c (bytecode_nconc2):
10697         * fns.c (Fnconc):
10698         * fns.c (mapcar1):
10699         * fns.c (Fmapconcat):
10700         Be pedantically 64-bit correct.  For the time when someone will
10701         want to have a list with length > 2**32.
10702
10703         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10704         Work around MIPSpro compiler bug.
10705
10706         * process-unix.c (unix_kill_child_process): Add snarky comment.
10707         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10708
10709         * config.h.in: Oops, _getpt ==> _getpty
10710
10711 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10712
10713         * config.h.in:
10714         * regex.c:
10715         Use void*, not char*, as return type of alloca().
10716
10717         * alloc.c (free_marker): Side effect inside assert expression!
10718
10719 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10720
10721         * mule-charset.c (Fset_charset_ccl_program): To check
10722         if the given ccl program is valid, use setup_ccl_program()
10723         instead of CHECK_VECTOR().
10724         (Fmake_charset): Likewise.
10725
10726 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10727
10728         * faces.c (get_extent_fragment_face_cache_index):
10729         Fix cachel.merged_faces memory leak.
10730
10731 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10732
10733         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10734         Reset MSB of octets obtained by DECODE_SJIS
10735         because of the incompatibility with Emacs.
10736         (ccl_driver)<CCL_ENCODE_SJIS>:
10737         Set MSB of octets before passing them to
10738         ENCODE_SJIS because of the incompatibility
10739         with Emacs.
10740
10741 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10742
10743         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10744         (DECLARE_LRECORD): Undo the last change.
10745         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10746
10747 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10748
10749         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10750         the implementation to lrecord_implementations_table.
10751
10752 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10753
10754         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10755         initial value of `lrecord_type_##c_name' and
10756         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10757         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10758         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10759         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10760         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10761
10762 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10763
10764         * miscplay.c (sndcnv8S_2mono):
10765         (sndcnv2monounsigned):
10766         (sndcnvULaw_2linear):
10767         (sndcnv16swap):
10768         Remove implementation-defined behavior.
10769
10770 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10771
10772         * input-method-xlib.c: Warning suppression.
10773
10774 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10775
10776         * mule-ccl.c: Sync up with Emacs 21.0.90.
10777         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10778         Do nothing.
10779         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10780         Likewise.
10781         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10782         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10783         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10784         leading char belongs to official 2-dimensional charset.
10785         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10786         write the given character as is.  Otherwise,
10787         if it is a multibyte char, convert it by
10788         non_ascii_set_charptr_emchar, then write it.
10789         (CCL_WRITE_STRING): Likewise.
10790         (ccl_get_compiled_code): New function.
10791         (setup_ccl_program): When ccl_prog is invalid,
10792         return -1.
10793         (Fregister_code_conversion_map): New function.
10794         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10795
10796         * mule-ccl.h: Sync up with Emacs 21.0.90.
10797         (Fregister_ccl_program): export it.
10798
10799         * redisplay-msw.c (separate_textual_runs):
10800         If ccl program is not valid, don't do ccl conversion.
10801
10802         * redisplay-x.c (separate_textual_runs): Ditto.
10803
10804         * file-coding.c (Fmake_coding_system):
10805         When type is ccl and value is vector, register it
10806         with a proper symbol.  And checks whether the
10807         given ccl program is valid.
10808         (mule_decode): When calling ccl_driver, if src indicates
10809         NULL pointer, set an empty string instead.
10810         (mule_encode): Likewise.
10811
10812 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10813
10814         The following large batch of changes gets us back to a state of
10815         C++ compilability.  Extbyte is now a char, which means that
10816         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10817
10818         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10819
10820         * sound.c (Fplay_sound): Type correctness.
10821
10822         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10823         (x_get_window_property): Type correctness.
10824         (receive_incremental_selection): unsigned char ==> Extbyte
10825         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10826         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10827         (Fx_store_cutbuffer_internal): Type correctness.
10828
10829         * process-unix.c (try_to_initialize_subtty): Type correctness.
10830
10831         * objects-x.c (x_print_color_instance): Type correctness.
10832         (x_print_font_instance): Type correctness.
10833         (x_list_fonts): SExtbyte ==> Extbyte.
10834         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10835         (x_find_charset_font): SExtbyte ==> Extbyte.
10836         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10837         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10838         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10839         Use bufbyte_strcmp.
10840
10841         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10842         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10843         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10844         (BYTE_C0_P): Use bit ops for char-signedness safety.
10845         (BYTE_C1_P): Use bit ops for char-signedness safety.
10846         (CHARSET_BY_LEADING_BYTE):
10847         (CHARSET_BY_ATTRIBUTES):
10848         Always use inline function.
10849         Use type_checking_assert.
10850         Hide chlook.
10851
10852         * mule-charset.c (non_ascii_charptr_copy_char):
10853         Modify to work with both ASCII and non-ASCII characters.
10854         Improve docs and variable names.
10855         Replace over-clever fall-through switch with a simple loop.
10856         (Lstream_get_emchar_1):
10857         Replace over-clever fall-through switch with a simple loop.
10858
10859         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10860         Warning suppression.
10861
10862         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10863         the return value of Lstream_getc, which could be EOF as well.
10864
10865         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10866
10867         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10868         APIs can be used on Extbytes without casts.  Risky!
10869         (SExtbyte): Remove.
10870         (UExtbyte): Remove.
10871
10872         * input-method-xlib.c (XIM_init_device):
10873         Use Xlib.h instead of IntrinsicP.h.
10874         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10875         which will break in X11R7.
10876         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10877         to call XRegisterIMInstantiateCallback with correct types.
10878
10879         * gui-x.c (button_item_to_widget_value): Type correctness.
10880
10881         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10882
10883         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10884         (xbm_instantiate_1): Type correctness.
10885         (BUILD_GLYPH_INST):  Type correctness.
10886
10887         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10888
10889         * file-coding.c:
10890         (decode_coding_sjis):
10891         (decode_coding_big5):
10892         (decode_coding_ucs4):
10893         (decode_coding_utf8):
10894         (decode_coding_iso2022):
10895         (decode_coding_no_conversion):
10896         Make all decoding functions take an Extbyte * arg.
10897         (encode_coding_sjis):
10898         (encode_coding_big5):
10899         (encode_coding_ucs4):
10900         (encode_coding_utf8):
10901         (encode_coding_iso2022):
10902         (encode_coding_no_conversion):
10903         Make all encoding functions take a Bufbyte * arg.
10904         Use size_t instead of unsigned int for memory sizes.
10905         Only cast to unsigned char whenever dereferencing Extbyte *.
10906
10907         * doc.c (unparesseuxify_doc_string): Type correctness.
10908
10909         * console-x.c (split_up_display_spec):
10910         Rewrite without using details of internal string representation.
10911         (x_semi_canonicalize_device_connection): Type correctness.
10912
10913         * config.h.in:
10914         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10915         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10916         (HAVE_XFREE386): Removed.
10917
10918         * buffer.h (DEC_CHARPTR): `const' correctness.
10919         (bufbyte_strcmp): New.
10920         (bufbyte_memcmp): New.
10921
10922         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10923
10924         * buffer.h (XCHAR_OR_CHAR_INT):
10925         Always use inline function.
10926         Remove redundant type checking assert() - XINT will abort quite nicely.
10927
10928 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10929
10930         * search.c (Freplace_match): Set newtext to an empty string.
10931
10932 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10933
10934         * s/decosf1-3.h: Remove #include of stropts.h
10935         * s/ptx.h: Remove #include of stropts.h
10936         * s/usg5-4.h: Remove #include of stropts.h
10937         * sysproc.h:
10938         * config.h.in:
10939         Use stropts.h, not sys/stropts.h.
10940         Use strtio.h, not sys/strtio.h.
10941
10942 2000-10-04  Martin Buchholz <martin@xemacs.org>
10943
10944         * XEmacs 21.2.36 is released.
10945
10946 2000-09-21  Andy Piper  <andy@xemacs.org>
10947
10948         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10949         changes still involve copying the widget tree.
10950         (update_widget_face): make sure a change is register in the widget
10951         tree. Call update_tab_widget_face appropriately.
10952         (update_tab_widget_face): ditto.
10953         (x_tab_control_redisplay): make sure non-structural changes still
10954         involve copying the widget tree.
10955
10956 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10957
10958         * lread.c (locate_file): Check the path element is non-nil.
10959
10960 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10961
10962         * lisp.h: Warning suppression for SCO compilers.
10963
10964         * redisplay-tty.c (reset_tty_modes): Fix crash.
10965         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10966
10967 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10968
10969         Big signal/process handling overhaul.  Bugs fixed:
10970         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10971         M-x comint-kill-subjob should work for both values nil and t of
10972         process-connection-type. It was broken on most platforms.
10973         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10974         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10975         * process-unix.c: Signal/Process handling overhaul.
10976         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10977         (allocate_pty): Use all available modern methods of allocating
10978         ptys, falling back to old style BSD allocation as a last resort.
10979         Use allegedly more secure Unix98 pty allocation by default.
10980         (allocate_pty_the_old_fashioned_way): New. the last resort.
10981         (unix_create_process): Push ptem, ldterm, ttcompat where
10982         available.  Autoconfiscate.
10983         (try_to_initialize_subtty): New.
10984         (unix_kill_child_process): Proper signal handling for ptys on most
10985         platforms, using special knowledge of AIX, BSD, etc...
10986         (unix_create_process): Always disconnect_controlling_terminal() for
10987         subprocesses, whether using ptys or not.
10988         * process.h: Remove old getpt-dependent PTY code.
10989         * process.c (Fprocess_send_signal): New, obvious generic function.
10990         (decode_signal): New.
10991         (Finterrupt_process):
10992         (Fkill_process):
10993         (Fquit_process):
10994         (Fstop_process):
10995         (Fcontinue_process):
10996         (Fsignal_process): Use decode_signal.
10997         (process_send_signal):
10998         Many docstring corrections.
10999         Allow any signal to be sent to a process object.
11000         * config.h.in: Add symbols for big signal/process overhaul.
11001         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11002         * sysproc.h: Include process-related headers, where available:
11003         sys/stropts.h sys/strtio.h pty.h libutil.h
11004         * s/irix4-0.h:
11005         * s/irix5-0.h:
11006         * s/cygwin32.h:
11007         * s/gnu.h:
11008         * s/linux.h:
11009         * s/hpux.h:
11010         * s/aix3-1.h:
11011         Remove old S&M pty stuff.
11012         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11013         * systty.h: Simplify cpp hackery, improve comments.
11014         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11015
11016         * editfns.c (Fformat_time_string):
11017         Be a little more paranoid with the return value of ctime.
11018
11019         * fileio.c (check_executable):
11020         (check_writable):
11021         Use symbolic constants X_OK, W_OK.
11022
11023         * console-x.c (split_up_display_spec): Fix a warning.
11024
11025 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11026
11027         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11028         * ntproc.c (sys_spawnve): make_string ==> build_string
11029         Small clarity improvements.
11030
11031 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11032
11033         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11034
11035         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11036
11037         * config.h.in (HAVE_STRCASECMP): Remove.
11038
11039 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11040
11041         * redisplay-output.c (redisplay_output_pixmap):
11042         Cleaner and possibly more 64-bit correct code.
11043
11044 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11045
11046         * dumper.c (pdump_load_finish): move restoration of
11047         `noninteractive1' to emacs.c (main_1).
11048         * emacs.c (main_1): protect LISP-visible command-line flags
11049         from pdump_load().
11050
11051 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11052
11053         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11054         DUMP_TARGET instead of literal program names.
11055
11056 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11057
11058         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11059
11060 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11061
11062         * *: Spelling mega-patch
11063
11064 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11065
11066         * fns.c (bad_bad_turtle):
11067         Delete "Eek!" comment, since we fixed the bug to which it refers.
11068
11069 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11070
11071         * alloca.c: Replace REGISTER with register.
11072
11073 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11074
11075         * file-coding.c (ucs_to_char): Use countof.
11076
11077 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11078
11079         * file-coding.c: (ucs_to_char):
11080         (complex_vars_of_file_coding):
11081         Use countof instead of sizeof.
11082         Use CHECK_NATNUM instead of CHECK_INT.
11083
11084         * sysdep.c (strcasecmp): Remove.
11085         * device-x.c (ascii_strcasecmp): New.
11086         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11087         Avoid using non-standard non-portable strcasecmp.
11088
11089 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11090
11091         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11092         * font-lock.c: remove reference to emacsfns.h.
11093         * search.c: small doc improvement.
11094         * event-Xt.c: correct file names in comments.
11095         * console-x.h Correct file names in comments.
11096         * frame.c: Correct file names in comments.
11097         * event-stream.c: remove Energize from comments.
11098
11099 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11100
11101         * symeval.h (DEFERROR_STANDARD):
11102         (DEFERROR):
11103         (DEFSYMBOL):
11104         (DEFSYMBOL_NO_DUMP):
11105         (DEFSYMBOL_MULTIWORD_PREDICATE):
11106         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11107         (DEFKEYWORD):
11108         The construct &##name is not sensible C.
11109         Fixes compilation errors with Unixware native compiler.
11110
11111 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11112
11113         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11114         (next_frame_internal): Removed.  We now just have next_frame.
11115         (next_frame):
11116         Write a simpler and cleaner one-pass algorithm.
11117         Remove called_from_delete_device arg and #ifdefed-out code.
11118         (previous_frame):
11119         Renamed from prev_frame.  Update callers.
11120         Cleaned up to have an analogous implementation to next_frame.
11121         (other_visible_frames_internal): Remove the
11122         called_from_delete_device bogus arg, and hence, remove this
11123         function.  Just use other_visible_frames().
11124
11125         * window.c (Fnext_window):
11126         Prettify docstring.
11127         Since next_frame() is guaranteed to return a frame, remove check
11128         for nil inserted in previous patch.
11129         (Fprevious_window):
11130         Prettify docstring.
11131         Make code look more like Fnext_window.
11132         (window_loop):
11133         Respect the `console' arg when iterating through windows.
11134         Fixes bug: (get-buffer-window buffer t device) not respecting
11135         the `device' arg.
11136         This function needs more work, as others have pointed out.
11137
11138         * frame.h: Rename prev_frame to previous_frame.
11139         device_matches_console_spec no longer takes a `frame' arg.
11140
11141         * s/gnu.h:
11142         * s/linux.h:
11143         * s/hpux.h:
11144         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11145         From "Golubev I. N." <gin@mo.msk.ru>.
11146
11147         * make-src-depend: Fix typo.
11148
11149 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11150
11151         * window.c (Fnext_window):
11152         next_frame() might return nil, not a frame.
11153         Fixes this crash:
11154         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11155
11156         * frame.c (next_frame_internal):
11157         We've passed a frame if we've passed its device.
11158         Fixes this crash:
11159         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11160 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11161
11162 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11163
11164         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11165         Allow option to suppress accelerators in menu/dialog items.
11166         (populate_or_checksum_helper): Pass dialog title through above.
11167
11168 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11169
11170         * event-msw.c (mswindows_key_to_emacs_keysym):
11171         Add "pause" key, fix "menu" key.
11172
11173 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11174
11175         * eval.c (reinit_vars_of_eval):
11176         Increase max_lisp_eval_depth to 1000,
11177         required for thai-xtis.el to byte-compile under some circumstances.
11178
11179 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11180
11181         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11182         From Kenichi Handa.
11183
11184 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11185
11186         * make-src-depend: Make the generated Makefiles smaller.
11187
11188         * s/hpux.h (SETUP_SLAVE_PTY):
11189         Provide a %d in the format string for the errno argument.
11190
11191         * editfns.c (Ftemp_directory):
11192         Warning fix.
11193         Avoid buffer overrun on very long file name.
11194
11195         * input-method-xlib.c (XIM_init_device):
11196         6th parameter of XRegisterIMInstantiateCallback has different
11197         pointer types on different OSes, so simply cast to (void *).
11198
11199         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11200
11201         * sysdll.c (dll_open):
11202         shl_load will hang hard if passed a NULL filename.
11203         Simply return NULL for compatibility with dlopen.
11204         * sysdll.c: Conform to XEmacs coding standards.
11205
11206         * sysdep.c (get_pty_max_bytes):
11207         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11208
11209 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11210
11211         * tooltalk.c: Add #include <syssignal.h>
11212
11213 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11214
11215         * s/hpux.h: Don't use undefined function sigunblock().
11216
11217 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11218
11219         * config.h.in: Add HAVE_BALLOON_HELP.
11220         * emacs.c: Use HAVE_BALLOON_HELP.
11221         * Makefile.in.in (x_objs):
11222         Make Balloon Help conditional on finding shape.h.
11223
11224 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11225
11226         * syntax.c (regex_emacs_buffer_p): New variable.
11227         * syntax.h (regex_emacs_buffer_p): extern.
11228         * search.c (looking_at_1):
11229         (string_match_1):
11230         (fast_string_match):
11231         (search_buffer): Set regex_emacs_buffer_p.
11232         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11233         when before_dot, at_dot, after_dot.
11234
11235 2000-08-23  Andy Piper  <andy@xemacs.org>
11236
11237         * gui-x.c (popup_selection_callback): Only set action_occurred
11238         when we really have an image instance.
11239         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11240
11241 2000-08-23  Andy Piper  <andy@xemacs.org>
11242
11243         * gui-msw.c (mswindows_handle_gui_wm_command): set
11244         action_occurred.
11245         * gui-x.c (popup_selection_callback): ditto.
11246
11247         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11248         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11249         (struct Lisp_Image_Instance): add action_occurred flag.
11250
11251         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11252         (image_instance_changed): ditto.
11253         (reset_frame_subwindow_instance_cache): only unmap windows - do
11254         not remove them from the cache also.
11255
11256         * glyphs-widget.c (tab_control_update): better debug.
11257         (progress_gauge_update): ditto.
11258         (layout_update): ditto.
11259         (layout_instantiate): ditto.
11260         (tab_control_order_only_changed): cope with null pending items.
11261
11262         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11263         debug. Force selection of an item when an action occurred. Cope
11264         with null pending_items.
11265         (mswindows_progress_gauge_redisplay): better debug.
11266         * glyphs-x.c (x_tab_control_redisplay): ditto.
11267
11268         * redisplay.c (redisplay_frame): reset the frame cache if the
11269         frame is garbaged.
11270
11271         * window.c (Fset_window_configuration): potentially re-enable
11272         frame cache reset.
11273         (window_unmap_subwindows): need to finalize instances here since
11274         it is only used in mark_window_as_deleted.
11275
11276 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11277
11278         * nas.c (SndOpenDataForReading):
11279         nas.c (WaveOpenDataForReading):
11280         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11281         Somehow escaped from the 2000-08-14 patch.
11282
11283 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11284
11285         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11286         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11287
11288 2000-08-21  Andy Piper  <andy@xemacs.org>
11289
11290         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11291         window if it is not already displayed.
11292
11293         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11294         it is not already displayed.
11295
11296         * window.c (Fset_window_configuration): don't reset the frame
11297         cache.
11298
11299         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11300         instances from the frame cache if we are actually finalizing them.
11301         (reset_frame_subwindow_instance_cache): reset frame cache only
11302         after unmapping everything.
11303         (map_subwindow): set displayed flag after mapping.
11304
11305 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11306
11307         * data.c (indirect_function):
11308         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11309
11310         * eval.c (function_argcount):
11311         Use original function when signaling errors.
11312
11313 2000-08-18  Andy Piper  <andy@xemacs.org>
11314
11315         * frame.c (delete_frame_internal): use new
11316         free_frame_subwindow_instances name.
11317
11318         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11319         (add_tab_item): make return type correct.
11320         (mswindows_tab_control_instantiate): assert index of tab.
11321         (mswindows_tab_control_redisplay): Re-code to use
11322         gui_item_equal_sans_selected and gui_item_list_find_selected.
11323
11324         * glyphs-widget.c (tab_control_update): Correct comment.
11325
11326         * window.c (window_unmap_subwindows): use new
11327         unmap_subwindow_instance_cache_mapper.
11328         (window_unmap_subwindows_cache_mapper): deleted.
11329         (Fset_window_configuration): comparisons should now be with
11330         EQ. Preserve the subwindow instance cache across configuration
11331         changes.
11332         (allocate_window): ditto.
11333         (make_dummy_parent): ditto.
11334
11335         * glyphs.c (free_frame_subwindow_instances): rename from
11336         free_frame_subwindow_instance_cache. finalize all instances rather
11337         than just those in the display cache.
11338         (finalize_all_subwindow_instances): walk windows unmapping and
11339         finalizing subwindows.
11340         (unmap_subwindow_instance_cache_mapper): moved from
11341         window.c. Allow finalization as well as unmapping.
11342
11343         * gui.c (gui_item_list_find_selected): new function.
11344
11345         * gui.h (gui_item_list_find_selected): declare.
11346
11347         * glyphs-x.c (x_tab_control_redisplay): pick tab
11348         explicitly. Re-code to use gui_item_equal_sans_selected and
11349         gui_item_list_find_selected.
11350
11351         * glyphs-x.h: add lwlib-utils.h
11352
11353         * buffer.c (Frecord_buffer): undo previous change.
11354
11355 2000-08-09  Vin Shelton  <acs@xemacs.org>
11356
11357         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11358         possible.  Create temporary files more securely.  The patch was
11359         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11360         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11361         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11362         for details.
11363
11364 2000-08-07  Ben Wing  <ben@xemacs.org>
11365
11366         * getloadavg.c: remove duplicate (and windows-breaking)
11367         includes of fcntl.h and sys/file.h.
11368
11369         * nt.c: remove duplicate getloadavg() definition.
11370
11371         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11372         encodings.
11373
11374 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11375
11376         * eval.c (function_argcount): If function needs to be autoloaded
11377         actually use the loaded definition.
11378         GCPRO function.
11379
11380 2000-08-05  Ben Wing  <ben@xemacs.org>
11381
11382         * getloadavg.c: add prototype for getloadavg().  remove
11383         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11384         of the code).  remove duplicate header includes.
11385
11386         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11387
11388         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11389         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11390         useful load average.
11391
11392         * alloc.c (reinit_alloc_once_early): removed references to
11393         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11394         the lisp vars are the only things referencing the malloc_sbrk_*
11395         vars, and they were already if 0'd out.  these vars only exist
11396         in the older malloc.c, which is basically unused, and they're
11397         only for informational purposes.
11398
11399         * m\*.h: removed useless VIRT_ADDR_VARIES.
11400
11401         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11402
11403 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11404
11405         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11406         color if the image is a mono pixmap.
11407
11408 2000-07-30  Ben Wing  <ben@xemacs.org>
11409
11410         * Makefile.in.in (release):
11411         Remove stray @.
11412
11413         * buffer.c (directory_is_current_directory):
11414         * dired-msw.c (mswindows_get_files):
11415         * dired.c:
11416         * dired.c (Fdirectory_files):
11417         * dired.c (file_name_completion_stat):
11418         * dired.c (Ffile_attributes):
11419         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11420         preprocessor tricks, to avoid problems on some machines
11421         (e.g. SCO).
11422
11423         * callproc.c (egetenv): GC docs.
11424
11425         * console-msw.h:
11426         * console-msw.h (struct mswindows_dialog_id):
11427         * lrecord.h (lrecord_type):
11428         New object for use with MSW dialogs.
11429
11430         * console.h (struct console_methods):
11431         New enable/disable frame methods, for proper modal dialogs.
11432
11433         * device-msw.c (msprinter_default_printer): Fix to follow
11434         proper Mule conventions.
11435
11436         * device-msw.c:
11437         * device-msw.c (signal_open_printer_error):
11438         * device-msw.c (msprinter_init_device):
11439         * device-msw.c (ensure_not_printing):
11440         * device-msw.c (plist_get_margin):
11441         * device-msw.c (Fmsprinter_select_settings):
11442         * device-msw.c (finalize_devmode):
11443         * device-msw.c (Fmsprinter_settings_despecialize):
11444         * device-msw.c (signal_enum_priner_error):
11445         * extents.c (decode_extent):
11446         * extents.c (decode_map_extents_flags):
11447         * extents.c (decode_extent_at_flag):
11448         * extents.c (Fextent_at):
11449         * extents.c (Fextents_at):
11450         * extents.c (symbol_to_glyph_layout):
11451         [[[[2]]]] Use structured errors.
11452
11453         * dialog-msw.c:
11454         * dialog-msw.c (mswindows_is_dialog_msg):
11455         * dialog-msw.c (mark_mswindows_dialog_id):
11456         * dialog-msw.c (dialog_proc):
11457         * dialog-msw.c (handle_question_dialog_box):
11458         * dialog-msw.c (syms_of_dialog_mswindows):
11459         Define new object to clean up marking; use it as a dialog identifier.
11460         Call new delete-dialog-box-hook.
11461
11462         * dialog-x.c (dbox_selection_callback):
11463         * dialog-x.c (dbox_descriptor_to_widget_value):
11464         * dialog-x.c (x_make_dialog_box_internal):
11465         Call new delete-dialog-box-hook.
11466         Return an id.
11467
11468         * dialog.c:
11469         * dialog.c (syms_of_dialog):
11470         * dialog.c (vars_of_dialog):
11471         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11472
11473         * eval.c:
11474         * eval.c (signal_call_debugger):
11475         when noninteractive, output stack traces on the console instead
11476         of in a (never-seen) buffer.
11477
11478         * eval.c (signal_type_error):
11479         * eval.c (invalid_argument_2):
11480         * lisp.h:
11481         new funs for use w/structured errors.
11482
11483         * event-Xt.c:
11484         * event-Xt.c (x_to_emacs_keysym):
11485         * event-Xt.c (describe_event):
11486         * event-Xt.c (emacs_Xt_event_handler):
11487         * event-Xt.c (vars_of_event_Xt):
11488         * event-msw.c:
11489         * event-msw.c (mswindows_wnd_proc):
11490         * event-msw.c (vars_of_event_mswindows):
11491         rename {x,mswindows}-debug-events to debug-{}-events for
11492         consistency with other debug-foo variables.
11493
11494         * event-stream.c:
11495         document next-event more clearly.
11496
11497         * fileio.c (Ffile_name_directory):
11498         * fileio.c (Ffile_name_nondirectory):
11499         * fileio.c (Funhandled_file_name_directory):
11500         * fileio.c (file_name_as_directory):
11501         * fileio.c (Ffile_name_as_directory):
11502         * fileio.c (directory_file_name):
11503         * fileio.c (Fdirectory_file_name):
11504         * fileio.c (Fmake_temp_name):
11505         * fileio.c (Ffile_truename):
11506         * fileio.c (Fsubstitute_in_file_name):
11507         * fileio.c (expand_and_dir_to_file):
11508         * fileio.c (barf_or_query_if_file_exists):
11509         * fileio.c (check_executable):
11510         * fileio.c (Ffile_exists_p):
11511         * fileio.c (Ffile_writable_p):
11512         * fileio.c (Ffile_directory_p):
11513         * fileio.c (Ffile_regular_p):
11514         * fileio.c (Ffile_modes):
11515         * fileio.c (Ffile_newer_than_file_p):
11516         * fileio.c (Fverify_visited_file_modtime):
11517         * fileio.c (Fset_visited_file_modtime):
11518         * fileio.c (auto_save_1):
11519         (1). (2).
11520         fix up gcpro's.
11521
11522         * frame-msw.c:
11523         * frame-msw.c (mswindows_init_frame_1):
11524         * frame-msw.c (mswindows_enable_frame):
11525         * frame-msw.c (error_frame_unsizable):
11526         * frame-msw.c (msprinter_init_frame_1):
11527         * frame-msw.c (msprinter_init_frame_3):
11528         * frame-msw.c (console_type_create_frame_mswindows):
11529         (2).
11530         implement new enable/disable frame methods.
11531
11532         * frame-x.c:
11533         * frame-x.c (x_enable_frame):
11534         * frame-x.c (console_type_create_frame_x):
11535         implement new enable/disable frame methods.
11536
11537         * frame.c:
11538         * frame.c (Fdisable_frame):
11539         * frame.c (syms_of_frame):
11540         * frame.h (struct frame):
11541         implement new enable/disable frame methods/functions.
11542
11543         * general-slots.h:
11544         add initial-focus.
11545
11546         * glyphs-msw.c (mswindows_widget_instantiate):
11547         comment that initial-focus should be implemented.
11548
11549         * glyphs-widget.c:
11550         * glyphs-widget.c (check_valid_instantiator):
11551         * glyphs-widget.c (check_valid_orientation):
11552         * glyphs-widget.c (check_valid_tab_orientation):
11553         * glyphs-widget.c (check_valid_justification):
11554         * glyphs-widget.c (check_valid_border):
11555         * glyphs-widget.c (check_valid_callback):
11556         * glyphs-widget.c (check_valid_int_or_function):
11557         * glyphs-widget.c (check_valid_string_or_vector):
11558         * glyphs-widget.c (check_valid_item_list_1):
11559         * glyphs-widget.c (widget_validate):
11560         * glyphs-widget.c (combo_box_validate):
11561         * glyphs-widget.c (widget_instantiate):
11562         * glyphs-widget.c (syms_of_glyphs_widget):
11563         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11564         * glyphs-widget.c (image_instantiator_combo_box):
11565         * glyphs-widget.c (image_instantiator_scrollbar):
11566         * glyphs-widget.c (image_instantiator_tab_control):
11567         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11568         (2).
11569         support (unimplemented) keyword initial-focus.
11570         reindent long macros.
11571
11572         * glyphs-x.c (x_redisplay_widget):
11573         * glyphs-x.c (x_button_instantiate):
11574         * glyphs-x.c (x_button_redisplay):
11575         * glyphs-x.c (x_progress_gauge_instantiate):
11576         * glyphs-x.c (x_edit_field_instantiate):
11577         * glyphs-x.c (x_combo_box_instantiate):
11578         * glyphs-x.c (x_tab_control_instantiate):
11579         * glyphs-x.c (x_label_instantiate):
11580         * gui-x.c:
11581         * gui-x.c (button_item_to_widget_value):
11582         * gui-x.c (gui_items_to_widget_values_1):
11583         * gui-x.c (gui_item_children_to_widget_values):
11584         * gui-x.c (gui_items_to_widget_values):
11585         * gui-x.h:
11586         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11587         add new flag to gui-parsing routines to indicate whether
11588         accelerator specs should be supported.
11589
11590         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11591
11592         * glyphs.h (struct Lisp_Image_Instance):
11593         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11594         add initial-focus flag.
11595
11596         * gui.c:
11597         * gui.c (syms_of_gui):
11598         * gui.c (vars_of_gui):
11599         clean up menu-no-selection-hook.
11600
11601         * gui.h:
11602         support delete-dialog-box-hook.
11603
11604         * lread.c (Fload_internal):
11605         * lread.c (locate_file_in_directory_mapper):
11606         (1).
11607
11608         * lrecord.h:
11609         * lrecord.h (struct toolbar_button):
11610         * lrecord.h (syms_of_toolbar):
11611         document how to create a new object.
11612
11613         * menubar-msw.c (mswindows_char_is_accelerator):
11614         may be called on frames w/o menus.
11615
11616         * menubar.c (vars_of_menubar):
11617         clean up :filter docs.
11618
11619         * nt.c (readdir):
11620         * ntproc.c:
11621         (1).
11622
11623         * process-nt.c:
11624         * process-nt.c (validate_signal_number):
11625         * process-nt.c (signal_cannot_launch):
11626         * process-nt.c (nt_create_process):
11627         * process-nt.c (nt_send_process):
11628         * process-nt.c (nt_kill_child_process):
11629         * process-nt.c (nt_open_network_stream):
11630         * process-nt.c (syms_of_process_nt):
11631         (2).
11632         delete quote-handling.  call new lisp code that does it better.
11633
11634         * process-unix.c (connect_to_file_descriptor):
11635         * process-unix.c (allocate_pty):
11636         * process-unix.c (unix_send_process):
11637         * process-unix.c (unix_kill_child_process):
11638         * process-unix.c (unix_open_network_stream):
11639         * process-unix.c (unix_open_multicast_group):
11640         (1). (2).
11641
11642         * process.c:
11643         * process.c (Fstart_process_internal):
11644         (2).  need to canonicalize process path even if absolute.
11645
11646         * select-msw.c (symbol_to_ms_cf):
11647         * select-msw.c (ms_cf_to_symbol):
11648         * select-msw.c (cf_is_autofreed):
11649         * select-msw.c (mswindows_destroy_selection):
11650         * select.c:
11651         * select.c (syms_of_select):
11652         * select.h:
11653         support dibv5, fix bugs. (from Mike Alexander)
11654
11655         * select.c (Fget_selection_internal):
11656         * select.c (select_convert_out):
11657
11658         * sysdep.c:
11659         * sysdep.c (xemacs_stat):
11660         renamed.
11661
11662         * sysdep.c (mkdir):
11663         * sysdep.c (rmdir):
11664         but keep original stat() here because we provide encapsulation
11665         around these funs.
11666
11667         * sysfile.h:
11668         * sysfile.h (fstat):
11669         remove stat garbage.
11670
11671         * syswindows.h:
11672         fix X/MSW conflict.
11673         don't include tchar.h.  it's inappropriate because it makes
11674         compile-time distinctions when we want runtime distinctions.
11675         (we provide our own tchar replacements)
11676
11677         * toolbar.c:
11678         use default object printer for toolbar-button.
11679
11680         * unexcw.c:
11681         make sure we don't encapsulate.
11682
11683         * window.c (vars_of_window):
11684         emphasize that temp-buffer-show-hook is obsolete.
11685
11686 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11687
11688         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11689         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11690
11691         * events.c (Fevent_timestamp_lessp):
11692         Not 64-bit clean.  Use EMACS_INT, not int.
11693
11694 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11695
11696         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11697         unsigned int and changed the last enum to
11698         lrecord_type_last_built_in_type.
11699         (lrecord_implementations_table): changed prototype to know how
11700         long the array is supposed to be.
11701         (lrecord_type_count): new unsigned int to keep track of the
11702         current number of lisp lrecord types.
11703         (DEFINE_EXTERNAL_LRECORD):
11704         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11705         dynamic-modules to declare new lisp types. They are the same
11706         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11707         int for each new type, and increment lrecord_type_count by 1.
11708
11709         * alloc.c (lrecord_implementations_table): Changed to reference
11710         lrecord_type_last_built_in_type for the size of the array.
11711         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11712
11713 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11714
11715         * glyphs.h (check_valid_item_list): Renamed from
11716         check_valid_item_list_1.
11717
11718 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11719
11720         * select.c (Qselect_coerce): New.
11721         * select.c (Vselection_coercion_alist): New.
11722         * select.c (syms_of_select): Declare.
11723         * select.c (get-selection-internal): Use it.
11724         Use the new select-coerce functionality.
11725
11726         * select.c (select_coerce): New.
11727         * select.h (select_coerce): Declare.
11728         New function to coerce one type of data into another.
11729
11730 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11731
11732         * callproc.c (Fcall_process_internal):
11733         (Fcall_process_internal):
11734         * process-unix.c (unix_create_process):
11735         Save and restore the value of errno, so that error messages are accurate.
11736
11737 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11738
11739         * elhash.c (print_hash_table):
11740         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11741         Prettify docstrings and indentation.
11742
11743 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11744
11745         * window.c (Fwindow_pixel_edges): Subtract frame border and
11746         gutter size.
11747
11748 2000-07-31  Andy Piper  <andy@xemacs.org>
11749
11750         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11751         will acknowledge the change.
11752
11753         * glyphs.h: declare tab_control_order_only_changed.
11754
11755         * glyphs-x.c (x_tab_control_redisplay): use
11756         tab_control_order_only_changed.
11757
11758         * glyphs-widget.c (tab_control_order_only_changed): new function.
11759
11760         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11761         tab_control_order_only_changed.
11762
11763         * gui.c (gui_item_equal_sans_selected): new function.
11764         (gui_item_equal): use it.
11765
11766         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11767         :properties in favor of :items..
11768
11769         * glyphs-widget.c (check_valid_item_list): rename from
11770         check_valid_item_list_1.
11771         (check_valid_item_list_1): renamed.
11772         (combo_box_validate): deprecate :properties in favor of :items.
11773         (widget_instantiate): ditto.
11774         (tab_control_update): ditto.
11775         (image_instantiator_combo_box): ditto.
11776         (image_instantiator_tree_view): ditto.
11777         (image_instantiator_tab_control): ditto.
11778         (layout_post_instantiate): remove dead code.
11779
11780         * print.c (debug_print_no_newline): only write to debugger if in
11781         WIN32_NATIVE.
11782
11783         * elhash.c (Fmake_hash_table): update doc string.
11784
11785         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11786         messages whilst in GC. This at least stops XEmacs crashing but has
11787         the potential for wierd behaviour.
11788
11789 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11790
11791         * config.h.in:
11792         Make existence of s&m files optional.
11793
11794         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11795         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11796         * s/gnu.h: Remove HAVE_GETLOADAVG.
11797         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11798         * s/sol2.h: Remove HAVE_GETLOADAVG.
11799         * lisp.h: Remove getloadavg() declaration.
11800         * fns.c:
11801         Include <sys/loadavg.h> if available.
11802         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11803         * config.h.in:  Group together getloadavg()-related macros.
11804         Use only configure-time tests to detect getloadavg().
11805
11806 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11807
11808         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11809
11810 2000-07-25  Andy Piper  <andy@xemacs.org>
11811
11812         * syswindows.h: add tchar.h for native builds.
11813
11814         * frame.c (syms_of_frame): remove set-glyph-image.
11815
11816         * general-slots.h: add Qset_glyph_image.
11817
11818         * glyphs-widget.c (layout_update): add domain arg to
11819         set-glyph-image.
11820         (syms_of_glyphs_widget): remove set-glyph-image.
11821
11822 2000-07-23  Ben Wing  <ben@xemacs.org>
11823
11824         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11825         Vpopup_frame_list.
11826
11827 2000-07-22  Andy Piper  <andy@xemacs.org>
11828
11829         * symsinit.h: add syms_of_win32().
11830
11831         * gui-msw.c (syms_of_gui_mswindows): remove
11832         Fmswindows_shell_execute.
11833         (Fmswindows_shell_execute): moved to win32.c.
11834
11835         * emacs.c (main_1): add syms_of_win32 ().
11836
11837         * win32.c (init_potentially_nonexistent_functions): rewrite in
11838         compiler-friendly terms.
11839         (Fmswindows_shell_execute): move here from gui-msw.c.
11840         (syms_of_win32): new.
11841
11842         * device-msw.c (Fmswindows_printer_list): clean up args to
11843         EnumPrinters.
11844         Don't include tchar under cygwin or mingw.
11845         (msprinter_default_printer): make cygwin-friendly.
11846
11847 2000-07-21  Andy Piper  <andy@xemacs.org>
11848
11849         * glyphs-widget.c (image_instantiator_tree_view): use tab
11850         control's update function.
11851         (layout_property): new function. Retrieve items.
11852
11853         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11854         function. Re-populate the tree view from the pending items.
11855
11856         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11857         is designated the parent if the domain is an image instance. This
11858         is needed so that dirtiness can be cascade up the hierarchy and
11859         thus for layout children to be redisplayed correctly.
11860         (allocate_image_instance): rename glyph -> parent.
11861
11862         * redisplay.h: change redisplay_output_layout signature.
11863
11864         * redisplay-msw.c (mswindows_output_display_block): use domain
11865         arg.
11866
11867         * redisplay-x.c (x_output_display_block): use domain arg.
11868
11869 2000-07-10  Andy Piper  <andy@xemacs.org>
11870
11871         * window.c (Fset_window_configuration): add comment.
11872
11873         * redisplay-output.c (compare_runes):
11874         (redisplay_output_subwindow): redisplay rather than update subwindow.
11875         (redisplay_output_layout): ditto.
11876
11877         * redisplay-msw.c (mswindows_frame_output_end):
11878         (mswindows_frame_output_end): make defer window pos optional.
11879
11880         * lisp.h: add Flast.
11881
11882         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11883         normalize method. Change update method to be for changed
11884         instantiators. Add redisplay method. Change signature of layout
11885         method.
11886         (struct Lisp_Image_Instance): add instantiator.
11887         (IMAGE_INSTANCE_INSTANTIATOR): new.
11888         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11889         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11890         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11891
11892         * glyphs.c:
11893         (find_instantiator_differences): new function.
11894         (Fset_instantiator_property): new convenience function.
11895         (check_image_instance_structure): strictly check for vector
11896         instantiators.
11897         (normalize_image_instantiator): make non-static.
11898         (instantiate_image_instantiator): pass on dest_mask and use new
11899         signatures for image_instance_layout and friends.
11900         (mark_image_instance): mark the instantiator. Mark the subwindow
11901         face not the widget face.
11902         (image_instance_equal): add instantiator.
11903         (image_instance_hash): ditto.
11904         (allocate_image_instance): ditto.
11905         (Fset_image_instance_property): removed.
11906         (Fimage_instance_file_name): ditto.
11907         (Fcolorize_image_instance): ditto.
11908         (image_instance_layout): add offsets to be set.
11909         (update_image_instance): new function. update an image instance
11910         from its changed instantiator.
11911         (inherit_normalize): add dest_mask.
11912         (xbm_normalize): ditto.
11913         (xface_normalize): ditto.
11914         (xpm_normalize): ditto.
11915         (text_update): set_property -> update.
11916         (image_instantiate): use the glyph identity as a hash key, not the
11917         instantiator.
11918         (glyph_width): use new image_instance_layout signature.
11919         (glyph_ascent): ditto.
11920         (glyph_descent): ditto.
11921         (glyph_height): ditto.
11922         (glyph_query_geometry): ressurrect.
11923         (glyph_layout): ditto.
11924         (redisplay_subwindow): update -> redisplay.
11925         (syms_of_glyphs): add Fset_instantiator_property.
11926         (image_instantiator_format_create): set_property -> update.
11927
11928         * glyphs-x.c:
11929         (autodetect_normalize): add dest_maks to signature.
11930         (x_redisplay_subwindow): update -> redisplay.
11931         (x_redisplay_widget): ditto.
11932         (x_button_redisplay): ditto.
11933         (x_progress_gauge_redisplay): ditto.
11934         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11935         stacking order.
11936         (console_type_create_glyphs_x): update -> redisplay.
11937         (image_instantiator_format_create_glyphs_x): ditto.
11938
11939         * glyphs-widget.c:
11940         (check_valid_instantiator): disallow glyphs in the instantiator,
11941         they must now be vectors.
11942         (check_valid_instantiator_list): ditto.
11943         (glyph_instantiator_to_glyph): use internal symbol rather than
11944         intern.
11945         (widget_update): renamed from widget_set_property. Call cascaded
11946         update methods.
11947         (redisplay_widget): renamed from update_widget.
11948         (widget_layout): image_instance_layout now takes position as well
11949         as size.
11950         (widget_normalize): ditto.
11951         (widget_instantiate): ditto.
11952         (tab_control_query_geometry) ditto.:
11953         (tab_control_update): renamed from tab_control_set_property.
11954         (progress_gauge_update): set_property -> update.
11955         (layout_normalize): rewrite so that child instantiators are
11956         normalized also.
11957         (layout_update): new function. Create glyphs from the normalized
11958         children and cope with any other layout keywords. We do not
11959         instantiate children here that will be take care of by
11960         redisplay_output_layout.
11961         (layout_instantiate): call layout_update and not much else.
11962         (layout_post_instantiate): not sure whether this is needed
11963         anymore.
11964         (layout_query_geometry): query glyph geometry rather than
11965         image_instance geometry.
11966         (layout_layout): set offsets from pass in parameters. Use glyph
11967         geometry and layout functions rather than image instance ones.
11968         (native_layout_layout): ditto.
11969         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11970         (image_instantiator_widget): set_property -> update.
11971         (image_instantiator_buttons): ditto.
11972         (image_instantiator_progress_guage): ditto.
11973         (image_instantiator_tab_control): ditto.
11974         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11975         (image_instantiator_layout): add update method.
11976
11977         * glyphs-msw.c (bmp_normalize):
11978         (mswindows_resource_normalize): add dest_mask so that it can be
11979         proprogated by layout_normalize.
11980         (begin_defer_window_pos): make optional because it may not be the
11981         right thing to do and it introduces differences with X.
11982         (mswindows_unmap_subwindow): ditto.
11983         (mswindows_map_subwindow): ditto.
11984         (mswindows_redisplay_subwindow): renamed from
11985         mswindows_update_subwindow.
11986         (mswindows_redisplay_widget): ditto.
11987         (mswindows_button_redisplay): renamed from
11988         mswindows_button_update. Update is now what the instantiation
11989         function does for a changed instantiator.
11990         (mswindows_progress_gauge_instantiate): set the progress value
11991         here if appropriate.
11992         (mswindows_tab_control_redisplay): cope with re-ordering of the
11993         members of the tab widget by simply selecting the new top
11994         widget. This makes things appear ok if you click on a tab.
11995         (mswindows_combo_box_instantiate): image_instance_layout now takes
11996         position as well as size.
11997         (mswindows_progress_gauge_redisplay): renamed from
11998         mswindows_progress_gauge_update.
11999         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12000         (image_instantiator_format_create_glyphs_mswindows): ditto.
12001
12002         * glyphs-eimage.c (jpeg_normalize):
12003         (gif_normalize):
12004         (png_normalize):
12005         (tiff_normalize): add dest_mask so that it can be proprogated by
12006         layout_normalize.
12007
12008         * elhash.c:
12009         (print_hash_table):
12010         (hash_table_weakness_validate):
12011         (decode_hash_table_weakness):
12012         (Fhash_table_weakness):
12013         (Fhash_table_type):
12014         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12015
12016         * console.h (struct console_methods): move update_* to
12017         redisplay_*.
12018
12019 2000-07-20  Ben Wing  <ben@xemacs.org>
12020
12021         * *.[ch] (XSETOBJ): remove unused middle argument.
12022         lisp-disunion.h: correct wrap_object() to one argument.
12023
12024 2000-07-15  Ben Wing  <ben@xemacs.org>
12025
12026         * s/cygwin32.h:
12027         * s/cygwin32.h (CYGWIN_CONV_PATH):
12028         Add missing logb prototype for v1.1.
12029         Use post-b20 names and alias to pre-b20 names when pre-b20.
12030
12031         * s/windowsnt.h: [5].
12032
12033 2000-07-15  Ben Wing  <ben@xemacs.org>
12034
12035         * Makefile.in.in (x_objs):
12036         * Makefile.in.in (sheap_objs):
12037         * Makefile.in.in (objs):
12038         added win32.o, cosmetic cleanups.
12039
12040         * alloc.c (Fmake_byte_code):
12041         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12042         etc. macros which declare their own args now.
12043
12044         * alloc.c (syms_of_alloc):
12045         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12046
12047         * buffer.c:
12048         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12049
12050         * buffer.c (Fget_file_buffer):
12051         Fixed GCPRO problem.
12052
12053         * buffer.c (get_truename_buffer):
12054         Fixed comment about GC checking.
12055
12056         * buffer.c (syms_of_buffer):
12057         Undeclared those dedicated frame funs.
12058         [2].
12059
12060         * buffer.h:
12061         Define convenience macros for internal/external conversions.
12062         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12063         and Qenvironment_variable_encoding for cleaner code.
12064
12065         * bufslots.h:
12066         Remove dedicated-frame; in lisp.
12067
12068         * bytecode.c (funcall_compiled_function):
12069         [1].
12070
12071         * bytecode.c (syms_of_bytecode):
12072         [2].
12073
12074         * console-msw.c:
12075         * console-msw.c (mswindows_show_console): Rewrote.
12076
12077         * console-msw.c (Fmswindows_debugging_output): New.
12078         Sends to OutputDebugString (special MSWin debugger interface).
12079
12080         * console-msw.c (Fmswindows_message_box):
12081         Fixed stupid bugs so it works when called from kill-emacs.
12082
12083         * console-msw.c (syms_of_console_mswindows):
12084         Declare Fmswindows_debugging_output.
12085
12086         * console-msw.h:
12087         New MSWin prototypes.
12088
12089         * console-msw.h (struct mswindows_frame):
12090         New entry last-click-mods for improved button-modifier support.
12091
12092         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12093         New struct entry `popup' with corresponding accessor.
12094
12095         * console-x.c:
12096         * console-x.c (split_up_display_spec):
12097         * console-x.c (get_display_arg_connection):
12098         * console-x.c (x_semi_canonicalize_console_connection):
12099         * console-x.c (x_canonicalize_device_connection):
12100         [[[6]]]: Change char to more specific type.
12101         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12102
12103         * console-x.c (x_semi_canonicalize_console_connection):
12104         * console-x.c (x_canonicalize_device_connection):
12105         [[[9]]]: Fix up error signalling to use new structured error system.
12106
12107         * console-x.h:
12108         [[[4]]]: Define codesys aliases:
12109         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12110         Qx_color_name_encoding, Qx_display_name_encoding.
12111
12112         * console.h (struct console_methods):
12113         New method make_dialog_box_internal supersedes older
12114         popup_dialog_box method.
12115
12116         * data.c:
12117         Define many new errors, part of new structured errors.
12118
12119         * data.c (init_errors_once_early):
12120         * data.c (syms_of_data):
12121         [2].
12122
12123         * device-msw.c (mswindows_init_device):
12124         [[[5]]]: Cleanup to support NT 3.51.
12125
12126         * device-msw.c (decode_devmode): Cleanup.
12127
12128         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12129         * device-msw.c (mswindows_handle_print_dialog_box):
12130         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12131         * device-msw.c (syms_of_device_mswindows):
12132         Delete the dialog box primitives recently introduced by Kirill and
12133         instead interface to general dialog box interface.
12134
12135         * device-x.c:
12136         * device-x.c (compute_x_app_name):
12137         * device-x.c (x_init_device):
12138         * device-x.c (Fx_valid_keysym_name_p):
12139         * device-x.c (Fx_set_font_path):
12140         [6].
12141         [7].
12142
12143         * device.h (wrap_device): New.
12144         First of its kind; meant to replace XSETDEVICE.
12145
12146         * dialog-msw.c: Many file-dialog symbols.
12147
12148         * dialog-msw.c (mswindows_register_popup_frame): New.
12149         * dialog-msw.c (mswindows_is_dialog_msg): New.
12150         For supporting kbd traversal in dialog boxes.
12151
12152         * dialog-msw.c (dialog_proc):
12153         Support hitting ESC in dialogs.
12154
12155         * dialog-msw.c (struct):
12156         Common dialog box errors.
12157
12158         * dialog-msw.c (handle_file_dialog_box): New.
12159         Add file dialog code.
12160
12161         * dialog-msw.c (handle_question_dialog_box):
12162         Redo existing code to support new question dialog syntax.
12163
12164         * dialog-msw.c (console_type_create_dialog_mswindows):
12165         We support new dialog console method.
12166
12167         * dialog-msw.c (syms_of_dialog_mswindows):
12168         * dialog-msw.c (vars_of_dialog_mswindows):
12169         New file dialog symbols, vars.
12170
12171         * dialog-x.c:
12172         * dialog-x.c (maybe_run_dbox_text_callback):
12173         * dialog-x.c (dbox_descriptor_to_widget_value):
12174         * dialog-x.c (x_make_dialog_box_internal):
12175         * dialog-x.c (console_type_create_dialog_x):
12176         Mule-ize entire file.
12177         Redo to support question dialog syntax.
12178         [6].
12179
12180         * dialog.c:
12181         * dialog.c (Fmake_dialog_box_internal):
12182         * dialog.c (syms_of_dialog):
12183         Kill old popup-dialog-box, replace with new primitive.
12184         Just call device method or signal error.
12185
12186         * eldap.c (Fldap_open):
12187         * eldap.c (Fldap_search_basic):
12188         * eldap.c (Fldap_add):
12189         * eldap.c (Fldap_modify):
12190         [1].
12191         [7].
12192
12193         * emacs.c:
12194         * emacs.c (make_arg_list_1):
12195         * emacs.c (make_arg_list):
12196         Mule-ize call to dll_init().
12197         [6].
12198         [8].
12199
12200         * emacs.c (make_argc_argv):
12201         * emacs.c (free_argc_argv):
12202         * emacs.c (init_cmdargs):
12203         * emacs.c (main_1):
12204         * emacs.c (Fkill_emacs):
12205         * emacs.c (Fdump_emacs):
12206         Update comments about what can be used in syms_* etc.
12207         Call init_win32() when necessary.
12208         Fix up MS Win dialog box in kill-buffer to actually work right.
12209         [7].
12210
12211         * eval.c:
12212         * eval.c (For):
12213         * eval.c (Fand):
12214         * eval.c (Fprogn):
12215         * eval.c (Fprog1):
12216         * eval.c (Fprog2):
12217         * eval.c (FletX):
12218         * eval.c (Flet):
12219         * eval.c (condition_case_3):
12220         * eval.c (Feval):
12221         * eval.c (function_argcount):
12222         * eval.c (funcall_lambda):
12223         [1].
12224
12225         * eval.c (type_error): New.
12226         * eval.c (maybe_type_error): New.
12227         * eval.c (continuable_type_error): New.
12228         * eval.c (maybe_continuable_type_error): New.
12229         * eval.c (type_error_with_frob): New.
12230         * eval.c (maybe_type_error_with_frob): New.
12231         * eval.c (continuable_type_error_with_frob): New.
12232         * eval.c (maybe_continuable_type_error_with_frob): New.
12233         New functions for use with structured errors.
12234
12235         * event-Xt.c:
12236         * event-Xt.c (x_event_to_emacs_event):
12237         Buttons are now modifiers too.
12238
12239         * event-Xt.c (emacs_Xt_current_event_timestamp):
12240         Implement new event method.
12241         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12242
12243         * event-msw.c:
12244         * event-msw.c (ntpipe_shove_writer): [5].
12245         * event-msw.c (mswindows_enqueue_mouse_button_event):
12246         * event-msw.c (mswindows_drain_windows_queue):
12247         * event-msw.c (mswindows_wnd_proc): [7].
12248         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12249         * event-msw.c (mswindows_modifier_state):
12250         Throughout: support new button modifiers.
12251
12252         * event-msw.c (emacs_mswindows_current_event_timestamp):
12253         Implement new event method.
12254         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12255
12256         * event-stream.c:
12257         * event-stream.c (event_stream_current_event_timestamp): New.
12258         * event-stream.c (maybe_kbd_translate): New functionality.
12259         * event-stream.c (vars_of_event_stream):
12260         Document new kbd-translate-table functionality.
12261
12262         * event-stream.c (Fcurrent_event_timestamp): New.
12263         New primitive for use in fabricated events.
12264         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12265
12266         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12267
12268         * events.c:
12269         * events.c (Fmake_event):
12270         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12271         [1].
12272         [9].
12273
12274         * events.c (format_event_object): fix gcc warnings.
12275
12276         * events.c (Fevent_timestamp): Document new primitives.
12277
12278         * events.c (TIMESTAMP_HALFSPACE): New.
12279
12280         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12281         comparing timestamps correctly (half-space algorithm).
12282
12283         * events.c (Fevent_modifier_bits): Doc fix.
12284
12285         * events.c (Fevent_modifiers): Major doc addition.
12286         * events.c (event_x_y_pixel_internal): Typo fix.
12287         * events.c (syms_of_events): Declare new primitives.
12288
12289         * events.h:
12290         Update long comment for button modifiers, timestamps.
12291
12292         * events.h (struct event_stream):
12293         New current_event_timestamp method.
12294
12295         * extents.c:
12296         * extents.c (extent_in_region_p):
12297         * extents.c (decode_extent):
12298         * extents.c (Fset_extent_parent):
12299         * extents.c (decode_map_extents_flags):
12300         Fix gcc warnings.
12301         [9].
12302
12303         * extents.c (struct extent_at_arg):
12304         * extents.c (decode_extent_at_flag):
12305         * extents.c (extent_at_mapper):
12306         * extents.c (extent_at_bytind):
12307         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12308         * extents.c (Fextents_at): New primitive. [9].
12309         * extents.c (symbol_to_glyph_layout): [9].
12310         Support new primitive `extents-at'.
12311
12312
12313         * extents.c (get_text_property_bytind):
12314         extent_at_bytind has another arg.
12315         [9].
12316
12317         * extents.c (syms_of_extents): New primitive.
12318
12319         * file-coding.c (Fmake_coding_system): [1].
12320         * file-coding.c (subsidiary_coding_system): fix gcc warning
12321         * file-coding.c (syms_of_file_coding): [2].
12322
12323         * fileio.c (Fexpand_file_name):
12324         * fileio.c (Fsysnetunam):
12325         * fileio.c (Ffile_exists_p):
12326         * fileio.c (Ffile_executable_p):
12327         * fileio.c (Fverify_visited_file_modtime):
12328         Clean up GCPROing.
12329
12330         * fileio.c (syms_of_fileio): [2].
12331
12332         * filelock.c (lock_file_1):
12333         * filelock.c (current_lock_owner):
12334         * filelock.c (lock_if_free):
12335         * filelock.c (lock_file):
12336         * filelock.c (unlock_file):
12337         Clean up GCPROing.
12338
12339         * fns.c (concat): Fix gcc warning.
12340
12341         * fns.c (Fmember):
12342         * fns.c (Fold_member):
12343         * fns.c (Fmemq):
12344         * fns.c (Fold_memq):
12345         * fns.c (memq_no_quit):
12346         * fns.c (Fassoc):
12347         * fns.c (Fold_assoc):
12348         * fns.c (Fassq):
12349         * fns.c (Fold_assq):
12350         * fns.c (assq_no_quit):
12351         * fns.c (Frassoc):
12352         * fns.c (Fold_rassoc):
12353         * fns.c (Frassq):
12354         * fns.c (Fold_rassq):
12355         * fns.c (rassq_no_quit):
12356         * fns.c (Fdelete):
12357         * fns.c (Fold_delete):
12358         * fns.c (Fdelq):
12359         * fns.c (Fold_delq):
12360         * fns.c (delq_no_quit):
12361         * fns.c (Fremassoc):
12362         * fns.c (Fremassq):
12363         * fns.c (remassq_no_quit):
12364         * fns.c (Fremrassoc):
12365         * fns.c (Fremrassq):
12366         * fns.c (remrassq_no_quit):
12367         * fns.c (Freverse):
12368         * fns.c (mapcar1):
12369         [1].
12370
12371         * frame-msw.c (mswindows_init_frame_1):
12372         * frame-msw.c (mswindows_delete_frame):
12373         Register popups with dialog code so keyboard traversing works.
12374
12375         * frame-tty.c (tty_raise_frame_no_select): [1].
12376
12377         * frame-x.c:
12378         * frame-x.c (x_set_frame_text_value):
12379         * frame-x.c (x_set_frame_properties):
12380         * frame-x.c (x_create_widgets):
12381         [7].
12382
12383         * frame.c:
12384         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12385
12386         * frame.h (wrap_frame): New.
12387         Macro like wrap_device.
12388
12389         * general.c:
12390         * general.c (SYMBOL):
12391         * general.c (syms_of_general):
12392         Major reorg.  This is now just a wrapper and symbols themselves
12393         are listed in general-slots.h.
12394
12395         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12396         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12397
12398         * glyphs-msw.c (mswindows_native_layout_instantiate):
12399         Add DS_CONTROL so keyboard traversal will work.
12400
12401         * glyphs-widget.c:
12402         * glyphs-widget.c (syms_of_glyphs_widget):
12403         Move some symbols to general-slots.h.
12404
12405         * glyphs-x.c:
12406         * glyphs-x.c (xbm_instantiate_1):
12407         * glyphs-x.c (x_xbm_instantiate):
12408         * glyphs-x.c (x_xface_instantiate):
12409         * glyphs-x.c (autodetect_instantiate):
12410         * glyphs-x.c (cursor_font_instantiate):
12411         * glyphs-x.c (x_update_widget):
12412         * glyphs-x.c (x_widget_instantiate):
12413         * glyphs.c (bitmap_to_lisp_data):
12414         * glyphs.c (pixmap_to_lisp_data):
12415         [7].
12416
12417         * glyphs.c (syms_of_glyphs):
12418         [2].
12419
12420         * gui-x.c:
12421         * gui-x.c (print_widget_value):
12422         * gui-x.c (menu_separator_style_and_to_external):
12423         * gui-x.c (add_accel_and_to_external):
12424         * gui-x.c (button_item_to_widget_value):
12425         * gui-x.c (gui_items_to_widget_values_1):
12426         * gui-x.c (gui_items_to_widget_values):
12427         * gui-x.c (syms_of_gui_x):
12428         * gui-x.c (vars_of_gui_x):
12429         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12430         [9].
12431
12432         * gui-x.h:
12433         Muleize, prototype changes matching gui-x.c.
12434
12435         * gui.c:
12436         * gui.c (separator_string_p):
12437         * gui.c (gui_item_add_keyval_pair):
12438         * gui.c (make_gui_item_from_keywords_internal):
12439         * gui.c (signal_too_long_error):
12440         * gui.c (parse_gui_item_tree_item):
12441         * gui.c (syms_of_gui):
12442         * gui.c (vars_of_gui):
12443         * gui.h:
12444         menu-no-selection-hook moved here (used by MSWin).
12445         Move some symbols to general-slots.h.
12446         [6].
12447         [9].
12448
12449         * insdel.c (get_buffer_pos_char):
12450         * insdel.c (get_buffer_range_char):
12451         Add GC comments.
12452
12453         * keymap.c (keymap_lookup_directly):
12454         * keymap.c (keymap_store):
12455         * keymap.c (ensure_meta_prefix_char_keymapp):
12456         * keymap.c (describe_map):
12457         * keymap.h:
12458         Support new button modifiers.
12459
12460         * lisp-disunion.h (wrap_object):
12461         * lisp-disunion.h (XSETOBJ):
12462         Rename make_obj to wrap_object.
12463
12464         * lisp-union.h:
12465         * lisp-union.h (make_int):
12466         * lisp-union.h (make_char):
12467         Support wrap_object.
12468
12469         * lisp.h:
12470         * lisp.h (LIST_LOOP):
12471         * lisp.h (EXTERNAL_LIST_LOOP):
12472         * lisp.h (LIST_LOOP_2):
12473         * lisp.h (EXTERNAL_LIST_LOOP_1):
12474         * lisp.h (EXTERNAL_LIST_LOOP_2):
12475         * lisp.h (EXTERNAL_LIST_LOOP_3):
12476         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12477         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12478         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12479         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12480         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12481         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12482         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12483         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12484         * lisp.h (struct Lisp_Symbol):
12485         * lisp.h (maybe_continuable_error_with_frob):
12486         Fix up section comments.
12487         Add new types for char to indicate usage.
12488         Delete symbols auto-generated from general-slots.h.
12489         Add prototypes for structured error functions.
12490         Add long comments describing looping macros and change interface
12491         so that lvalues are automatically declared.
12492         Add NO_DECLARE macro in case callers want to declare lvalues
12493         themselves.
12494
12495         * lread.c (read_syntax_error):
12496         * lread.c (continuable_read_syntax_error):
12497         * lread.c (read_structure):
12498         * lread.c (sequence_reader):
12499         * lread.c (read_list_conser):
12500         * lread.c (read_compiled_function):
12501         Rename syntax_error and continuable_syntax_error to avoid clash
12502         with same-named structured error functions.
12503
12504         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12505         * menubar-msw.c (populate_menu_add_item):
12506         * menubar-msw.c (populate_or_checksum_helper):
12507         [5].
12508         [9].
12509
12510         * menubar-x.c:
12511         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12512         Mule-ize whole file.
12513
12514         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12515
12516         * mule-charset.c (Fmake_charset):
12517         * mule-wnnfns.c (Fwnn_set_param):
12518         [1].
12519
12520         * ntproc.c (create_child):
12521         * ntproc.c (Fwin32_set_current_locale):
12522         Add comments portending doom.
12523
12524         * objects-msw.c:
12525         * objects-msw.c (old_font_enum_callback_2):
12526         * objects-msw.c (font_enum_callback_1):
12527         * objects-msw.c (mswindows_enumerate_fonts):
12528         [5].
12529
12530         * objects-x.c:
12531         * objects-x.c (allocate_nearest_color):
12532         * objects-x.c (x_parse_nearest_color):
12533         * objects-x.c (x_initialize_color_instance):
12534         * objects-x.c (x_print_color_instance):
12535         * objects-x.c (x_finalize_color_instance):
12536         * objects-x.c (x_valid_color_name_p):
12537         * objects-x.c (x_initialize_font_instance):
12538         * objects-x.c (x_print_font_instance):
12539         * objects-x.c (valid_x_font_name_p):
12540         * objects-x.c (truename_via_FONT_prop):
12541         * objects-x.c (truename_via_random_props):
12542         * objects-x.c (truename_via_XListFonts):
12543         * objects-x.c (x_font_truename):
12544         * objects-x.c (x_font_instance_truename):
12545         * objects-x.c (x_font_instance_properties):
12546         * objects-x.c (x_list_fonts):
12547         * objects-x.c (x_find_charset_font):
12548         Mule-ize entire file.
12549         [7].
12550
12551         * objects-x.h:
12552         Mule-verify.
12553
12554         * print.c:
12555         * print.c (std_handle_out_external):
12556         * print.c (debug_print_no_newline):
12557         * print.c (syms_of_print):
12558         Output to all debugger kinds in debug-print.
12559         Fix console-output code under MSWin to actually work.
12560
12561         * process-nt.c (send_signal):
12562         * process-nt.c (nt_create_process):
12563         Use newer Unicode macros.
12564
12565         * process-unix.c (unix_create_process):
12566         * process-unix.c (unix_canonicalize_host_name):
12567         * process-unix.c (unix_open_network_stream):
12568         [7].
12569
12570         * scrollbar-x.c:
12571         Mule-verify.
12572
12573         * search.c (syms_of_search):
12574         [2].
12575
12576         * select-msw.c (mswindows_destroy_selection):
12577         Use LIST_LOOP_2.
12578
12579         * select-x.c (symbol_to_x_atom):
12580         [7].
12581
12582         * select.c (syms_of_select):
12583         [2].
12584
12585         * sound.c (Fplay_sound_file):
12586         [7].
12587
12588         * specifier.c:
12589         * specifier.c (decode_specifier_type):
12590         * specifier.c (Fvalid_specifier_locale_type_p):
12591         * specifier.c (check_valid_locale_or_locale_type):
12592         * specifier.c (decode_locale):
12593         * specifier.c (decode_locale_type):
12594         * specifier.c (decode_locale_list):
12595         * specifier.c (check_valid_domain):
12596         * specifier.c (decode_specifier_tag_set):
12597         * specifier.c (Fcanonicalize_tag_set):
12598         * specifier.c (Fdefine_specifier_tag):
12599         * specifier.c (Fspecifier_tag_predicate):
12600         * specifier.c (check_valid_inst_list):
12601         * specifier.c (check_valid_spec_list):
12602         * specifier.c (decode_how_to_add_specification):
12603         * specifier.c (check_modifiable_specifier):
12604         * specifier.c (specifier_add_spec):
12605         * specifier.c (boolean_validate):
12606         * specifier.c (display_table_validate):
12607         [9].
12608
12609         * specifier.c (syms_of_specifier):
12610         Move some symbols to general-slots.h.
12611         [2].
12612
12613         * symbols.c:
12614         * symbols.c (Fmapatoms):
12615         * symbols.c (Fapropos_internal):
12616         Add GCPROs.
12617
12618         * symbols.c (set_default_buffer_slot_variable):
12619         * symbols.c (set_default_console_slot_variable):
12620         [1].
12621
12622         * symbols.c (defsymbol_massage_name_1):
12623         * symbols.c (defkeyword_massage_name):
12624         * symbols.c (deferror_1):
12625         * symbols.c (deferror):
12626         * symbols.c (deferror_massage_name_and_message):
12627         * symeval.h:
12628         * symeval.h (DEFSYMBOL):
12629         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12630
12631         * symbols.c (syms_of_symbols):
12632         [2].
12633
12634         * symsinit.h:
12635         * symsinit.h (init_win32): New.
12636         Also new is syms_of_dialog_mswindows.
12637
12638         * syswindows.h:
12639         Add new Unicode macros, missing Cygwin wide-char functions,
12640         convenience conversion macros for Qmswindows_tstr, macros for
12641         encapsulating required MSWin <-> Cygwin filename conversions,
12642         prototype for dynamically-extracted (not in NT 3.51) functions.
12643
12644         * toolbar-x.c:
12645         Mule-verify.
12646
12647         * tooltalk.c (Fadd_tooltalk_message_arg):
12648         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12649         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12650         [7].
12651
12652         * tooltalk.c (syms_of_tooltalk):
12653         [2].
12654
12655         * unexnt.c:
12656         * unexnt.c (unexec):
12657         Fix up headers, declaration of unexec() to be more standard.
12658
12659 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12660
12661         * offix.h: Revert change to guard macros - they're used in offix.c!
12662
12663 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12664
12665         * lisp.h: Defsubred Fdelete.
12666
12667         * console-msw.h:  (msprinter_default_printer): Added.
12668
12669         * console-msw.c (msprinter_canonicalize_console_connection):
12670         (msprinter_canonicalize_device_connection): Added.
12671
12672         * device-msw.c (msprinter_default_printer):
12673         (Fmswingows_get_default_printer):
12674         (signal_enum_priner_error):
12675         (Fmswingows_printer_list): Added.
12676
12677 2000-07-19  Martin Buchholz <martin@xemacs.org>
12678
12679         * XEmacs 21.2.35 is released.
12680
12681 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12682
12683         * select-x.c (x_handle_selection_request):
12684         Text selected in xemacs and pasted into xterm failed to appear.
12685         Spelling fixes and cosmetic changes.
12686
12687 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12688
12689         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12690         XEmacs frame (fix for doubling chars in dialog boxes).
12691
12692 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12693
12694         * select.c (select_convert_in, select_convert_out):
12695         Don't call intern() every time.
12696
12697         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12698         * select.c (vars_of_select): Initialise them.
12699
12700 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12701
12702         * select.c (selection-coercible-types): New.
12703
12704         * select.c (own-selection-internal):
12705         * select.c (get-selection-internal):
12706         MULE bug fix - these should default to COMPOUND_TEXT and not
12707         STRING for MULE. I think.
12708
12709         * select.c (select_convert_out): Use selection-coercible-types
12710         to find types that we can attempt to perform coercions on.
12711
12712 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12713
12714         * mule-wnnfns.c:
12715         * mule-canna.c:
12716         Add coding: cookie to identify encoding.
12717
12718         * mule-canna.c (CANNA_mode_keys): make static.
12719         Use proper prototypes, even for functions of no arguments.
12720         Remove external prototype for Fding().
12721
12722         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12723
12724         * select.c (syms_of_select): Add missing DEFSUBR.
12725
12726 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12727
12728         * select.c (get_selection_internal, own_selection_internal):
12729         Make the type default to STRING, rather than placing a nil type
12730         into Vselection_alist.
12731
12732 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12733
12734         * gpmevent.c (tty_selection_exists_p):
12735         * gpmevent.c (tty_own_selection):
12736         Updated parameter lists.
12737
12738 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12739
12740         * select.h (selection-alist): Removed declaration.
12741
12742         * select.h (get_local_selection):
12743         * select.c (get_local_selection):
12744         Made static.
12745
12746         * select.h (convert_selection): Removed declaration.
12747         * select.c (convert_selection): Removed.
12748         This function belongs in Lisp.
12749
12750         * select.h (select_convert_in): Declare.
12751         * select.h (select_convert_out): Declare.
12752         * select.c (select_convert_in): New.
12753         * select.c (select_convert_out): New.
12754         New conversion functions for other files to call.
12755
12756         * select.h (select_notify_buffer_kill): Declare.
12757         * select.c (select_notify_buffer_kill): New.
12758         New functions that get called from kill-buffer.
12759
12760         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12761         X-specific lisp code.
12762
12763         * select.h: Declare some of the lisp-visible functions for
12764         external use.
12765
12766         * select.c (clean_local_selection_data): Removed. This was
12767         a disgusting function, and previously should have been in
12768         select-x.c in any case. The functionality is now provided
12769         in select-convert-from-integer (select.el).
12770
12771         * select.c (available-selection-types): Fixed stupidity where
12772         INTEGER and ATOM got added twice. Also add STRING when we see an
12773         extent.
12774
12775         * select.c (get-selection-internal): Removed symbol stripping. No
12776         longer causes conversion when data comes from the internal cache.
12777
12778         * select.c (syms_of_select): Added new functions.
12779
12780         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12781         error checking - previously this called abort!
12782
12783         * select-x.c (x_own_selection): Changed comment.
12784
12785         * select-x.c (x_handle_selection_request): Use select_convert_out.
12786         Don't mess with selection-alist; it's an internal variable of select.c.
12787
12788         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12789
12790         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12791         rather than messing with selection-alist.
12792
12793         * select-msw.c (mswindows_get_foreign_selection):
12794         Use TO_INTERNAL_FORMAT rather than hacking.
12795
12796 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12797
12798         * process-unix.c (unix_open_multicast_group):
12799         (unix_open_multicast_group): Remove useless casts.
12800
12801 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12802
12803         * sound.c (Fplay_sound): Fix `unused variable' warning.
12804
12805         * emacs.c (main): Use correct type for _environ on SCO5.
12806
12807 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12808
12809         * console.h (own_selection_method):
12810         * console.h (selection_exists_p_method):
12811         * console.h (available_selection_types_method): New.
12812         * console.h (register_selection_data_type_method): New.
12813         * console.h (selection_data_type_name): New.
12814
12815         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12816         function & alist to track GlobalAlloc()'d handles that need
12817         releasing when the clipboard data gets replaced or emptied.
12818
12819         * event-msw.c (mswindows_wnd_proc): Call it.
12820
12821         * lisp.h, general.c (Qappend): New symbol representing a
12822         `how-to-add' mode.
12823
12824         * select.c (own-selection-internal):
12825         * select.c (selection-exists-p):
12826         * select.c (available-selection-types): New.
12827         * select.c (register-selection-data-type): New.
12828         * select.c (selection-data-type-name): New.  New functions to deal
12829         with device-specific selection data formats.
12830         * select.c (selection-converter-out-alist): Renamed.
12831         * select.c (selection-converter-in-alist): New.
12832         * select.c (selection-appender-alist): New.  Added new alists.
12833         * select.c (syms_of_select, vars_of_select): Added new symbols &
12834         variables.
12835         * select.c (get_local_selection): Split.
12836         * select.c: Removed spurious type checking - selections may now be
12837         of any type, not just strings.
12838         * select.c (own-selection-internal):
12839
12840         * select.h, select.c (convert_selection): New. Created
12841         convert_selection() function based on get_local_selection().
12842         * select.h, select.c (QCF_*): New symbols representing mswindows
12843         clipboard formats.
12844         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12845         symbols representing `how-to-add' modes.
12846
12847         * select-msw.c (x_sym_p): New.
12848         * select-msw.c (symbol_to_ms_cf): New.
12849         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12850         symbols & clipboard formats. Can also handle string names.
12851         * select-msw.c (mswindows_own_selection):
12852         * select-msw.c (mswindows_selection_exists_p):
12853         Added `data-type' parameter. Use it.
12854         * select-msw.c (mswindows_available_selection_types): New.
12855         * select-msw.c (mswindows_register_selection_data_type): New.
12856         * select-msw.c (mswindows_selection_data_type_name): New.
12857         * select-msw.c (mswindows_own_selection):
12858         * select-msw.c (mswindows_get_foreign_selection):
12859         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12860         * select-msw.c (console_create_select_mswindows): Added new methods.
12861         * select-msw.c (mswindows_destroy_selection): New.
12862         * select-msw.c (Vhandle_alist): New list.
12863         * select-msw.c (mswindows_own_selection):
12864
12865         * select-x.c (x_own_selection):
12866         * select-x.c (x_selection_exists_p):
12867         * select-x.c: Added some comments about maybe using new
12868         functionality.
12869         * select-x.c (x_own_selection):
12870
12871         * specifier.c: Remove definition of Qappend (now in general.c)
12872         * specifier.c (syms_of_specifier): Remove Qappend.
12873
12874 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12875
12876         * config.h.in: Add socklen_t.
12877
12878         * s/decosf4-0.h: No special compiler flags needed or desired.
12879         In particular, undefine _BSD for DEC OSF 4.0.
12880
12881 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12882
12883         * redisplay-msw.c (msprinter_frame_output_end): Added.
12884         (console_type_create_redisplay_mswindows): Referred the above.
12885
12886         * frame.c (setup_frame_without_minibuffer): Do not create a
12887         default minibuffer frame on a printer device.
12888
12889         * frame-msw.c (apply_dc_geometry): Added.
12890         (msprinter_start_page):
12891         (msprinter_init_frame_3):
12892         (msprinter_eject_page): Use it.
12893
12894         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12895         and removed residual duplex and orientation properties.
12896
12897 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12898
12899         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12900
12901         * unexalpha.c: Remove system prototypes from C sources!
12902
12903 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12904
12905         * eval.c: Remove references to M-x edit-options in DEFUNs for
12906         `defvar' and `defconst'.
12907
12908 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12909
12910         * config.h.in: Remove SMART_INCLUDE hackery.
12911
12912         PostgreSQL hacking:
12913         * config.h.in: Don't use SMART_INCLUDE.
12914
12915         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12916         * inline.c: Simply #include "postgresql.h"
12917         * postgresql.c:
12918         - Don't use SMART_INCLUDE
12919         - Use simply "const".
12920         - Use standard doc string conventions.
12921         - Use correct type for result of PQstatus.
12922
12923 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12924
12925         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12926
12927         C++ compilation changes.
12928         * config.h.in (EXTERN_C): Define.
12929         * config.h.in (not): This is also a C++ keyword.
12930         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12931         * cm.c: Use EXTERN_C.
12932         * redisplay-tty.c: Use EXTERN_C.
12933         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12934
12935 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12936
12937         * general.c: Remove duplicate definition for Qfunction.
12938
12939 2000-07-08  Ben Wing  <ben@xemacs.org>
12940
12941         * device-msw.c (msprinter_init_device):
12942         * device-msw.c (sync_printer_with_devmode):
12943         * device-msw.c (handle_devmode_changes):
12944         * device-msw.c (print_dialog_worker):
12945         * device-msw.c (Fmsprinter_apply_settings):
12946         * device-msw.c (hash_devmode):
12947         * device-msw.c (Fmsprinter_settings_despecialize):
12948         use Qmswindows_tstr, not Qctext.
12949
12950         * vm-limit.c (check_memory_limits):
12951         avoid infinite loop printing warning messages.
12952
12953 2000-07-05  Craig Lanning  <lanning@scra.org>
12954
12955         * Makefile.in.in: Add support for including the Windows resources
12956         when building with the cygwin and mingw targets.
12957
12958         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12959         not set or not correct.
12960         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12961         (init_initial_directory): Don't try to use $PWD on the
12962         WIN32_NATIVE target.
12963
12964         * s\cygwin32.h:
12965         [[Add -mwindows to eliminate console window.]] not required --ben
12966         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12967         (MAIL_USE_POP): removed; now handled by configure.
12968
12969         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12970         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12971         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12972         (MAIL_USE_POP): removed; now handled by configure.
12973         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12974         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12975         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12976         constant string.
12977         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12978         up from <winsock.h> via systime.h.
12979         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12980         (getpagesize): from Dan Holmsand, added.
12981         Added #endif which was left dangling by Ben's mega patch; added
12982         comment to help prevent this in the future.
12983
12984         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12985
12986 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12987
12988         * console-msw.h (struct mswindows_device): Removed unnecessary
12989         cached device geometry values.
12990         Added update_tick and an accessor macro.
12991         (Lisp_Devmode): Added lrecord declaration.
12992         (struct msprinter_device): Contain devmode as a Lisp object.
12993         Added mswindows_get_selected_frame_hwnd();
12994
12995         * console.h (struct console_methods): Indentation nitpicking.
12996
12997         * device-msw.c (mswindows_init_device): Do not initialize geometry
12998         cache. Initialize update tick.
12999         (mswindows_device_system_metrics): Ask the device for its geometry.
13000         (global_free_2_maybe):
13001         (devmode_to_hglobal):
13002         (handle_printer_changes):
13003         (ensure_not_printing):
13004         (print_dialog_worker):
13005         (Fmsprinter_print_setup_dialog):
13006         (Fmsprinter_print_dialog):
13007         (plist_get_margin):
13008         (plist_set_margin):
13009         (Fmsprinter_page_setup_dialog): Added functions.
13010         (sync_printer_with_devmode):
13011         (handle_devmode_changes):
13012         (Fmsprinter_get_settings):
13013         (Fmsprinter_select_settings):
13014         (Fmsprinter_apply_settings):
13015         (allocate_devmode):
13016         (Fmsprinter_settings_copy):
13017         (Fmsprinter_settings_despecialize):
13018         (print_devmode):
13019         (finalize_devmode):
13020         (equal_devmode):
13021         (hash_devmode): Added functions
13022         (syms_of_device_mswindows): Init devmode lrecord class.
13023
13024         * device.h: Added an exfun for find-device.
13025
13026         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13027         geometry; although, recreate the device compatible DC.
13028
13029         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13030         (msprinter_init_frame_3):
13031         (msprinter_frame_property):
13032         (msprinter_internal_frame_property_p):
13033         (msprinter_frame_properties):
13034         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13035         print job properties (will move to device settings).
13036
13037         * lisp.h: Added symbols.
13038
13039         * general.c (syms_of_general): Declared them.
13040
13041         * hash.c (string_hash): Added.
13042
13043         * lrecord.h (lrecord_type): Added devmode lrecord type.
13044
13045 2000-07-02  Mike Sperber <mike@xemacs.org>
13046
13047         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13048         FreeBSD 4.0.
13049
13050 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13051
13052         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13053         integer.
13054
13055 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13056
13057         * data.c (Fstring_to_number): Don't recognize floating point if
13058         base is not 10.
13059
13060 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13061
13062         * glyphs-widget.c (tab_control_query_geometry):
13063         (widget_query_geometry):
13064         (button_query_geometry):
13065         * glyphs.c (text_query_geometry):
13066         Enforce type correctness.
13067
13068 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13069
13070         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13071         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13072
13073 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13074
13075         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13076         conflicts with gcc's fixincluded version of FOO.h.
13077
13078         * glyphs.h (image_instance_geometry): Remove trailing `,'
13079
13080 2000-06-08  Mike Alexander  <mta@arbortext.com>
13081
13082         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13083         (shove_thread): Don't write the same output twice
13084         (make_ntpipe_output_stream): Increase priority of shove thread
13085         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13086         chance to run
13087         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13088         it.
13089
13090 2000-06-12  Ben Wing  <ben@xemacs.org>
13091
13092         * s\mingw32.h (sigset):
13093         * s\windowsnt.h (sigset):
13094         rename msw_ to mswindows_ for consistency with general convention.
13095
13096 2000-06-12  Ben Wing  <ben@xemacs.org>
13097
13098         * console-msw.c:
13099         * console-msw.c (mswindows_get_console_hwnd):
13100         * console-msw.c (mswindows_ensure_console_allocated):
13101         * console-msw.c (mswindows_hide_console):
13102         * console-msw.c (mswindows_show_console):
13103         * console-msw.c (mswindows_ensure_console_buffered):
13104         * console-msw.c (mswindows_output_console_string):
13105         * console-msw.c (mswindows_windows9x_p):
13106         * console-msw.h:
13107         * device-msw.c (mswindows_get_workspace_coords):
13108         * device-msw.c (mswindows_device_system_metrics):
13109         * dialog-msw.c (mswindows_popup_dialog_box):
13110         * event-msw.c (mswindows_wnd_proc):
13111         * frame-msw.c (mswindows_size_frame_internal):
13112         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13113         * menubar-msw.c (displayable_menu_item):
13114         * menubar-msw.c (mswindows_char_is_accelerator):
13115         * nt.c:
13116         * nt.c (mswindows_sigset):
13117         * nt.c (mswindows_sigrelse):
13118         * nt.c (mswindows_sigpause):
13119         * nt.c (mswindows_raise):
13120         * nt.c (timer_proc):
13121         * ntproc.c:
13122         * ntproc.c (find_child_console):
13123         * ntproc.c (sys_kill):
13124         * print.c:
13125         * print.c (std_handle_out_external):
13126         * process-nt.c (find_child_console):
13127         * process-nt.c (send_signal_the_95_way):
13128         * process-nt.c (ensure_console_window_exists):
13129         * process-nt.c (nt_create_process):
13130         * syssignal.h:
13131         rename msw_ to mswindows_ for consistency with general convention.
13132
13133         * emacs.c:
13134         * dumper.c:
13135         include nt.h, not syswindows.h.
13136
13137         * nt.c (mswindows_fstat):
13138         * nt.c (mswindows_stat):
13139         prefix mswindows_ instead of attempting to directly override the
13140         library functions.  fix declarations.
13141
13142         * nt.h:
13143         include syswindows.h.  move some sysdep.h stuff here.
13144
13145         * ntheap.h:
13146         include syswindows.h, not <windows.h>.
13147
13148         * ntplay.c:
13149         clean up headers.
13150
13151         * sysdep.c:
13152         clean up headers.
13153
13154         * sysdep.c (sys_fstat):
13155         * sysdep.c (sys_stat):
13156         call mswindows versions when appropriate.
13157
13158         * sysdep.h:
13159         move mswin decls to nt.h.
13160
13161         * syswindows.h:
13162         add long comment describing appropriate use of the various windows
13163         headers.
13164
13165 2000-06-11  Ben Wing  <ben@xemacs.org>
13166
13167         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13168
13169 2000-06-10  Ben Wing  <ben@xemacs.org>
13170
13171         * Makefile.in.in (release):
13172         Correction to make sure xemacs.exe always dumped when correct.
13173
13174         * alloca.c:
13175         * balloon_help.c:
13176         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13177
13178         * buffer.c (set_buffer_internal):
13179         [[[[2]]]]: Remove HAVE_FEP code.
13180
13181         * buffer.c (init_initial_directory):
13182         [3].
13183
13184         * bytecode.c:
13185         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13186         individual files.
13187
13188         * callproc.c:
13189         * callproc.c (call_process_cleanup):
13190         * callproc.c (Fold_call_process_internal):
13191         * callproc.c (child_setup):
13192         * callproc.c (getenv_internal):
13193         * callproc.c (init_callproc):
13194         * callproc.c (vars_of_callproc):
13195         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13196         __CYGWIN32__ -> CYGWIN.
13197         DOS_NT -> WIN32_NATIVE.
13198         Remove MSDOS support/references, converting to WIN32_NATIVE
13199           where correct.
13200         __MINGW32__ -> MINGW.
13201         Fix windows.h includes.
13202         Remove bogus HAVE_NTGUI.
13203
13204         * config.h.in:
13205         [2].
13206
13207         * console-msw.c:
13208         mswindows_message_outputted added for use in allowing startup
13209         errors on the console to be seen.
13210
13211         * console-msw.c (msw_ensure_console_allocated):
13212         * console-msw.c (msw_output_console_string):
13213         * console-msw.c (DHEADER):
13214         * console-msw.c (DOPAQUE_DATA):
13215         * console-msw.c (DEVENT):
13216         * console-msw.c (DCONS):
13217         * console-msw.c (DCONSCDR):
13218         * console-msw.c (DSTRING):
13219         * console-msw.c (DVECTOR):
13220         * console-msw.c (DSYMBOL):
13221         * console-msw.c (DSYMNAME):
13222         Fix warnings.
13223
13224         * console-stream.c (stream_init_console):
13225         Fix text/binary problems.
13226
13227         * device-msw.c:
13228         * device-msw.c (mswindows_finish_init_device):
13229         * device-msw.c (mswindows_delete_device):
13230         [1].
13231
13232         * device.c (handle_asynch_device_change):
13233         [3].
13234
13235         * dgif_lib.c:
13236         * dgif_lib.c (DGifOpenFileName):
13237         * dgif_lib.c (DGifOpenFileHandle):
13238         * dgif_lib.c (DGifGetLine):
13239         * dgif_lib.c (DGifGetPixel):
13240         Added config.h/lisp.h, fix up includes.
13241         [1].
13242
13243         * dired-msw.c:
13244         [4].
13245
13246         * dired.c:
13247         * dired.c (file_name_completion):
13248         * dired.c (Ffile_attributes):
13249         * dired.c (syms_of_dired):
13250         [1].
13251
13252         * dumper.c:
13253         * dumper.c (pdump_file_unmap):
13254         * dumper.c (pdump_load):
13255         [1].
13256
13257         * editfns.c:
13258         * editfns.c (Ftemp_directory):
13259         * editfns.c (user_login_name):
13260         * editfns.c (Fuser_real_login_name):
13261         * editfns.c (get_home_directory):
13262         [1].
13263
13264         * elhash.c (finish_marking_weak_hash_tables):
13265         [[[[5]]]]: Fix GCC warnings.
13266
13267         * emacs.c:
13268         * emacs.c (mswindows_handle_hardware_exceptions):
13269         * emacs.c (make_arg_list_1):
13270         * emacs.c (main_1):
13271         * emacs.c (Fkill_emacs):
13272         * emacs.c (Fdump_emacs):
13273         [1].
13274         Fix problems with nested crashes, add long comment.
13275
13276         * event-Xt.c (init_event_Xt_late):
13277         [1].
13278
13279         * event-msw.c:
13280         * event-msw.c (mswindows_dde_callback):
13281         * event-msw.c (mswindows_handle_sticky_modifiers):
13282         * event-msw.c (mswindows_wnd_proc):
13283         [1].
13284         [5].
13285
13286         * events.c (character_to_event):
13287         [1].
13288
13289         * fileio.c:
13290         * fileio.c (Ffile_name_directory):
13291         * fileio.c (Ffile_name_nondirectory):
13292         * fileio.c (directory_file_name):
13293         * fileio.c (Fexpand_file_name):
13294         * fileio.c (Fsubstitute_in_file_name):
13295         * fileio.c (Ffile_name_absolute_p):
13296         * fileio.c (check_executable):
13297         * fileio.c (Ffile_readable_p):
13298         * fileio.c (Ffile_accessible_directory_p):
13299         * fileio.c (Ffile_modes):
13300         * fileio.c (Funix_sync):
13301         * fileio.c (vars_of_fileio):
13302         [1]. [4].
13303
13304         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13305
13306         Expand getdefdir defn.
13307         Fix bogus rename() comment.
13308
13309         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13310         to use standard XEmacs include files, e.g. sysfile.h, rather
13311         than system-specific includes.
13312
13313         * fns.c:
13314         * fns.c (Fsubseq):
13315         [5]. [6].
13316
13317         * frame.c (vars_of_frame):
13318         [1].
13319
13320         * getloadavg.c:
13321         * getloadavg.c (getloadavg):
13322         [1]. [6].
13323         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13324         (We don't use it elsewhere in the code; just add a comment.)
13325
13326         * gif_io.c:
13327         [6].
13328         Add config.h.
13329
13330         * glyphs-msw.c:
13331         * glyphs-msw.c (mswindows_resource_instantiate):
13332         [1].
13333
13334         * glyphs-x.c (x_native_layout_instantiate):
13335         [5].
13336
13337         * gui-msw.c (Fmswindows_shell_execute):
13338         [1].
13339
13340         * insdel.c:
13341         [4].
13342
13343         * lisp.h:
13344         [4]. [5].
13345
13346         * lread.c (locate_file_in_directory_mapper):
13347         [1].
13348
13349         * lstream.c:
13350         [4].
13351
13352         * mem-limits.h:
13353         * mem-limits.h (get_lim_data):
13354         [1].
13355
13356         * menubar-msw.c:
13357         [4].
13358
13359         * ndir.h:
13360         [1].
13361
13362         * nt.c:
13363         * nt.c (getwd):
13364         * nt.c (closedir):
13365         * nt.c (rva_to_section):
13366         * nt.c (mswindows_executable_type):
13367         [1]. [6].
13368         Fix closedir() defn.
13369
13370         * nt.h:
13371         [[[[8]]]]: *_OK defs moved to sysfile.h.
13372
13373         * ntproc.c:
13374         [6]. [7].
13375
13376         * objects-x.c:
13377         [4].
13378
13379         * print.c:
13380         * print.c (std_handle_out_external):
13381         [1]. [4].
13382
13383         * process-nt.c:
13384         * process-nt.c (nt_create_process):
13385         [6].
13386         try to fix process quoting somewhat.
13387
13388         * process-unix.c (unix_create_process):
13389         [1].
13390
13391         * process.c:
13392         * process.c (vars_of_process):
13393         Add Vnull_device.
13394
13395         * process.h:
13396         [1].
13397
13398         * realpath.c:
13399         * realpath.c (xrealpath):
13400         [1].
13401
13402         * redisplay-tty.c (init_tty_for_redisplay):
13403         [3].
13404
13405         * redisplay.c:
13406         [4]. [6].
13407
13408         * scrollbar-msw.c:
13409         [4].
13410
13411         * sheap.c:
13412         * sheap.c (more_static_core):
13413         * sheap.c (report_sheap_usage):
13414         [5]. [6].
13415
13416         * signal.c:
13417         * signal.c (alarm_signal):
13418         [1]. [6].
13419
13420         * sound.c:
13421         [6].
13422
13423         * strftime.c:
13424         * strftime.c (zone_name):
13425         [1]. [5].
13426
13427         * symsinit.h (init_sunpro):
13428         [1].
13429
13430         * syscommctrl.h:
13431         commctrl.h not in Cygwin b20.1.
13432
13433         * sysdep.c:
13434         * sysdep.c (endif):
13435         * sysdep.c (sys_subshell):
13436         * sysdep.c (init_baud_rate):
13437         * sysdep.c (emacs_get_tty):
13438         * sysdep.c (emacs_set_tty):
13439         * sysdep.c (tty_init_sys_modes_on_device):
13440         * sysdep.c (init_system_name):
13441         * sysdep.c (sys_open):
13442         * sysdep.c (interruptible_open):
13443         * sysdep.c (sys_fopen):
13444         * sysdep.c (sys_mkdir):
13445         * sysdep.c (sys_rename):
13446         * sysdep.c (get_process_times_1):
13447         [1]. [6].
13448
13449         * sysdep.h:
13450         [1].
13451
13452         * sysdir.h:
13453         * sysdir.h (DIRENTRY_NONEMPTY):
13454         [1]. [6].
13455
13456         * sysdll.c (dll_init):
13457         * sysdll.h:
13458         [1].
13459
13460         * sysfile.h:
13461         [1]. [6]. [8].
13462         added text/binary defs.
13463
13464         * sysfloat.h:
13465         [1].
13466
13467         * sysproc.h:
13468         * sysproc.h (EDESTADDRREQ):
13469         * sysproc.h (poll_fds_for_input):
13470         [1]. [6].
13471
13472         * syspwd.h:
13473         [6].
13474
13475         * syssignal.h:
13476         [1].
13477
13478         * systime.h:
13479         [1]. [6].
13480
13481         * systty.h:
13482         [1].
13483
13484         * syswindows.h:
13485         [1].
13486         Always define WIN32_LEAN_AND_MEAN.
13487
13488         * unexcw.c (unexec):
13489         [5].
13490
13491         * unexec.c:
13492         * unexec.c (copy_text_and_data):
13493         * unexec.c (adjust_lnnoptrs):
13494         [1].
13495
13496         * unexnt.c:
13497         * unexnt.c (_start):
13498         [1].
13499
13500 2000-06-07  Ben Wing  <ben@xemacs.org>
13501
13502         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13503         was used only as a model.  We've long since extracted any useful
13504         logic or code out of this. (I just did an exhaustive search.)
13505
13506         * s\msdos.h: Removed.
13507
13508         * s\windows95.h: Removed.
13509
13510 2000-06-10  Ben Wing  <ben@xemacs.org>
13511
13512         * s\cygwin32.h:
13513         [1]. [5].
13514         Don't use extern with fun defs.
13515
13516         * s\mingw32.h:
13517         [1]. [7].
13518         Remove nt\inc include.
13519         Remove getdisk, getdefdir. (The former is unused, the latter
13520         expanded in fileio.h.)
13521
13522         * s\windowsnt.h:
13523         * s\windowsnt.h (WIN32_NATIVE):
13524         * s\windowsnt.h (HAVE_STRCASECMP):
13525         [1]. [7].
13526         Add long comment about preprocessor changes.
13527         Remove getdisk, getdefdir. (The former is unused, the latter
13528         expanded in fileio.h.)
13529
13530 2000-06-10  Ben Wing  <ben@xemacs.org>
13531
13532         * m\arm.h:
13533         * m\delta.h:
13534         * m\intel386.h:
13535         * m\sequent.h:
13536         * m\template.h:
13537         * m\windowsnt.h:
13538         [1].
13539         Remove bogus/unused NO_SOCK_SIGIO.
13540
13541 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13542
13543         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13544         not an Emchar.
13545
13546 2000-06-04  Mike Sperber <mike@xemacs.org>
13547
13548         * casetab.c (set_case_table): For `set-standard-case-table',
13549         actually deposit the new case tables where the rest of XEmacs can
13550         see them.
13551
13552 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13553
13554         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13555
13556 2000-06-05  Ben Wing  <ben@xemacs.org>
13557
13558         * callproc.c (child_setup): Don't do close_load_descs() under
13559         MS Windows.  Put in a comment explaining why.
13560
13561 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13562
13563         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13564         Toolkit shell" which breaks `kill-compilation' on Windows NT
13565         native, retaining STDERR handling improvements.
13566
13567 2000-06-01  Andreas Jaeger  <aj@suse.de>
13568
13569         * s/s390.h: Support for S390, based on a patch by Martin
13570         Schwidefsky <schwidefsky@de.ibm.com>.
13571
13572 2000-05-30  Andy Piper  <andy@xemacs.org>
13573
13574         * window.c (allocate_window):
13575         (make_dummy_parent):
13576         (Fset_window_configuration): use new hashtable type.
13577
13578         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13579         (struct image_instantiator_methods):
13580         (struct Lisp_Image_Instance): make instance geometry signed.
13581
13582         * glyphs.c (instantiate_image_instantiator):
13583         (image_instance_query_geometry):
13584         (image_instance_layout):
13585         (image_instance_layout):
13586         (query_string_geometry):
13587         (text_query_geometry):
13588         (image_instantiate):
13589         (image_instantiate):
13590         (cache_subwindow_instance_in_frame_maybe):
13591         (subwindow_query_geometry): make instance geometry signed.
13592
13593         * glyphs-widget.c (widget_query_geometry):
13594         (widget_layout):
13595         (button_query_geometry):
13596         (tree_view_query_geometry):
13597         (tab_control_query_geometry):
13598         (layout_query_geometry):
13599         (layout_layout):
13600         (native_layout_layout): make instance geometry signed.
13601
13602 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13603
13604         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13605         constant.
13606
13607         * general.c (syms_of_general): Add Qfull_assoc symbol.
13608
13609         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13610         correctly.
13611         (decode_weak_list_type): Decode full-assoc type.
13612         (encode_weak_list_type): Encode full-assoc type.
13613         (Fmake_weak_list): Update doc string.
13614
13615 2000-05-30  Andy Piper  <andy@xemacs.org>
13616
13617         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13618
13619         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13620         (decode_hash_table_weakness): ditto.
13621         (Fhash_table_weakness): ditto.
13622         (Fhash_table_type): ditto.
13623         (finish_marking_weak_hash_tables): ditto.
13624         (hash_table_weakness_validate): ditto.
13625         (syms_of_elhash): ditto.
13626
13627 2000-05-28  Martin Buchholz <martin@xemacs.org>
13628
13629         * XEmacs 21.2.34 is released.
13630
13631 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13632
13633         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13634         start cache.
13635         (updating_line_start_cache): Gone.
13636         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13637         generic code to force a minimum of 1 line laid out in the
13638         CMOTION_DISP case.
13639
13640 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13641
13642         * glyphs.c (instantiate_image_instantiator): Check for initialized
13643         height & width no longer special cases IMAGE_NOTHING.
13644         (nothing_instantiate): Set height and width of instance.
13645
13646 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13647
13648         * unexelf.c (unexec): Search for ".data" section.
13649         Initialize new_data2_offset from old_data_index.
13650         Remove redundant check for ElfW.
13651
13652 2000-05-23  Andy Piper  <andy@xemacs.org>
13653
13654         * glyphs.c (get_image_instantiator_governing_domain): allow more
13655         specific domains as the governing domain rather than expecting an
13656         exact match. This fixes problems with layouts.
13657
13658 2000-05-22  Andy Piper  <andy@xemacs.org>
13659
13660         * redisplay-output.c (compare_runes): check for non-images
13661
13662         * glyphs.c (set_glyph_dirty_p): ditto.
13663         (update_glyph_cachel_data): ditto.
13664
13665         * glyphs-widget.c (layout_post_instantiate): ditto.
13666         (layout_post_instantiate): ditto.
13667
13668         * event-msw.c (mswindows_wnd_proc): warning removal.
13669
13670 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13671
13672         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13673
13674         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13675
13676         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13677
13678         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13679         (mswindows_executable_type): mingw32 now has enough headers for
13680         this to work.
13681
13682 2000-05-20  Andy Piper  <andy@xemacs.org>
13683
13684         * console-msw.c (mswindows_output_last_error): ; -> ,
13685
13686 2000-05-12  Andy Piper  <andy@xemacs.org>
13687
13688         * console-msw.c (FROB): compare ints with ints.
13689
13690 2000-05-11  Andy Piper  <andy@xemacs.org>
13691
13692         * glyphs-x.c (x_finalize_image_instance): make minimal build
13693         happy.
13694
13695 2000-05-20  Ben Wing  <ben@xemacs.org>
13696
13697         * event-Xt.c:
13698         * event-Xt.c (vars_of_event_Xt):
13699         move modifier-keys-are-sticky to event-stream.c.
13700
13701         * event-msw.c:
13702         * event-msw.c (mswindows_enqueue_mouse_button_event):
13703         * event-msw.c (key_needs_default_processing_p):
13704         * event-msw.c (XEMSW_LCONTROL):
13705         * event-msw.c (mswindows_handle_sticky_modifiers):
13706         * event-msw.c (FROB):
13707         * event-msw.c (clear_sticky_modifiers):
13708         * event-msw.c (output_modifier_keyboard_state):
13709         * event-msw.c (output_alt_keyboard_state):
13710         * event-msw.c (mswindows_wnd_proc):
13711         * event-msw.c (mswindows_modifier_state):
13712         * event-msw.c (emacs_mswindows_handle_magic_event):
13713         implement sticky modifiers.
13714
13715         * event-stream.c:
13716         * event-stream.c (vars_of_event_stream):
13717         move modifier-keys-are-sticky here.
13718
13719         * lisp.h:
13720         add CHECK_FUNCTION.
13721
13722         * rangetab.c:
13723         implement map-range-table.
13724
13725
13726 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13727
13728         * redisplay-tty.c (reset_tty_modes):
13729         (tty_redisplay_shutdown): Adjust argument type to
13730         tty_frame_output_end.
13731
13732 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13733
13734         * eval.c (Fbacktrace): Don't output a line with only right
13735         parenthesis.
13736
13737 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13738
13739         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13740         (Fpq_reset_poll): Ditto.
13741
13742 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13743
13744         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13745
13746 2000-05-16  Ben Wing  <ben@xemacs.org>
13747
13748         * buffer.c:
13749         * buffer.c (dfc_convert_to/from_internal_format):
13750         * buffer.c (reinit_vars_of_buffer):
13751         Fix conversion functions to allow reentrancy.
13752
13753         * console-msw.c:
13754         * console-msw.c (mswindows_output_last_error):
13755         New fun, generally useful -- output a human-readable
13756         version of GetLastError() on the console.
13757
13758         * console-msw.h:
13759         * console-msw.h (struct mswindows_frame):
13760         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13761
13762         * console-stream.c (stream_output_begin):
13763         * console-stream.c (stream_output_end):
13764         * console-stream.c (stream_output_vertical_divider):
13765         * console-stream.c (stream_clear_region):
13766         * console-stream.c (stream_flash):
13767         * console-stream.c (console_type_create_stream):
13768         Delete blank stream methods, not needed.
13769
13770         * console.h (struct console_methods):
13771         Split begin/end methods into window and frame.
13772
13773         * event-msw.c:
13774         * event-msw.c (mswindows_handle_paint):
13775         * event-msw.c (output_alt_keyboard_state):
13776         * event-msw.c (mswindows_wnd_proc):
13777         * event-msw.c (vars_of_event_mswindows):
13778         Comment about problems with ignored-expose.
13779         Define mswindows-debug-events; not really implemented.
13780
13781         * frame-msw.c (mswindows_init_frame_1):
13782         random cleanups.
13783
13784         * glyphs-msw.c:
13785         * glyphs-msw.c (begin_defer_window_pos):
13786         * glyphs-msw.c (mswindows_unmap_subwindow):
13787         * glyphs-msw.c (mswindows_map_subwindow):
13788         * glyphs-msw.c (mswindows_resize_subwindow):
13789         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13790
13791         * glyphs.c (make_image_instance_1):
13792         Fix crash.
13793
13794         * gutter.c (Fredisplay_gutter_area):
13795         Use new begin/end methods.
13796
13797         * lisp.h (Dynarr_new2):
13798         New creation fun.
13799
13800         * redisplay-msw.c:
13801         * redisplay-msw.c (mswindows_frame_output_begin):
13802         * redisplay-msw.c (mswindows_frame_output_end):
13803         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13804         New begin/end methods -- handle DeferWindowPos.
13805
13806         * redisplay-output.c (redisplay_move_cursor):
13807         * redisplay-output.c (redraw_cursor_in_window):
13808         * redisplay-output.c (redisplay_update_line):
13809         * redisplay-output.c (redisplay_output_window):
13810         New begin/end methods.
13811
13812         * redisplay-tty.c:
13813         * redisplay-tty.c (tty_frame_output_begin):
13814         * redisplay-tty.c (tty_frame_output_end):
13815         * redisplay-tty.c (console_type_create_redisplay_tty):
13816         New begin/end methods.
13817
13818         * redisplay-x.c:
13819         * redisplay-x.c (x_window_output_begin):
13820         * redisplay-x.c (x_window_output_end):
13821         * redisplay-x.c (console_type_create_redisplay_x):
13822         New begin/end methods.
13823
13824         * redisplay.c (redisplay_frame):
13825         * redisplay.c (Fredisplay_echo_area):
13826         New begin/end methods.
13827         use MAYBE_DEVMETH for clear_frame; it may not exist.
13828
13829         * window.h (WINDOW_XFRAME):
13830         WINDOW_XFOO macros -- get locale and decode struct pointer.
13831
13832
13833 2000-05-12  Ben Wing  <ben@xemacs.org>
13834
13835         * emacs.c:
13836         * emacs.c (ensure_no_quitting_from_now_on):
13837         * emacs.c (fatal_error_signal):
13838         * emacs.c (mswindows_handle_hardware_exceptions):
13839         * emacs.c (main):
13840         * emacs.c (Fkill_emacs):
13841         * emacs.c (shut_down_emacs):
13842         * emacs.c (assert_failed):
13843         various improvements in fatal error handling.
13844
13845         * eval.c:
13846         move preparing_for_armageddon to emacs.c.
13847
13848         * lisp.h:
13849         declare fatal_error_in_progress.
13850
13851         * print.c:
13852         * print.c (std_handle_out_external):
13853         * print.c (std_handle_out_va):
13854         * print.c (stderr_out):
13855         * print.c (stdout_out):
13856         use console under mswin when no standard output.
13857         don't do code conversion during fatal error.
13858
13859         * scrollbar.c (Fscrollbar_page_up):
13860         * scrollbar.c (Fscrollbar_page_down):
13861         fix missing else.  reindent.
13862
13863 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13864
13865         Emergency fix.
13866
13867         * glyphs.h (GLYPH_CACHEL_DESCENT):
13868         (GLYPH_CACHEL_DESCENT):
13869         (GLYPH_CACHEL_DESCENT):
13870         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13871         used in case these are inline functions.
13872         Use more absurd values to error check.
13873
13874         include window.h for error check functions.
13875
13876 2000-05-11  Ben Wing  <ben@xemacs.org>
13877
13878         * cmdloop.c (Freally_early_error_handler):
13879         Display message box under windows; otherwise, message will disappear
13880         before it can be viewed.
13881
13882         * console-msw.c:
13883         * console-msw.c (Fmswindows_message_box):
13884         * console-msw.c (FROB):
13885         * console-msw.c (syms_of_console_mswindows):
13886         Define new fun `mswindows-message-box'.
13887         #### I will merge this into `popup-dialog-box'; just give me
13888         a bit of time.
13889
13890         * general.c:
13891         * general.c (syms_of_general):
13892         Some new symbols used in `mswindows-message-box'.
13893
13894         * glyphs.c:
13895         * glyphs.c (Fset_image_instance_property):
13896         put warning in this fun.
13897
13898         * glyphs.h:
13899         * glyphs.h (GLYPH_CACHEL_WIDTH):
13900         * glyphs.h (GLYPH_CACHEL_ASCENT):
13901         * glyphs.h (GLYPH_CACHEL):
13902         * glyphs.h (GLYPH_CACHEL_GLYPH):
13903         define error-checking versions to try to catch a bug i've seen --
13904         redisplay gets in an infinite loop because the glyph width of the
13905         continuation glyph is 65535.
13906
13907         * lisp.h:
13908         Extern message-box stuff.
13909
13910         * window.c (allocate_window):
13911         * window.c (make_dummy_parent):
13912         * window.c (Fset_window_configuration):
13913         Use EQUAL not EQ for subwindow caches to make them work a bit
13914         better. (Something is still very broken.)
13915
13916
13917 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13918
13919         * glyphs.c (image_instantiate): Suppress gcc warnings.
13920         (Fmake_image_instance): Fix doc string.
13921         * specifier.c (Fmake_specifier): Ditto.
13922
13923 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13924
13925         * paths.h.in (PATH_LOCK): Removed.
13926         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13927         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13928
13929 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13930
13931         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13932         Document (featurep '(and xemacs 21.02)).
13933
13934 2000-05-09  Ben Wing  <ben@xemacs.org>
13935
13936         * buffer.c (complex_vars_of_buffer):
13937         update modeline-format doc.
13938
13939         * device.h:
13940         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13941
13942         * emacs.c:
13943         timeline of all released versions of Emacs, for use in creating
13944         authorship comments and in synching up.
13945
13946         * glyphs-widget.c (image_instantiator_buttons):
13947         * glyphs-widget.c (image_instantiator_edit_fields):
13948         * glyphs-widget.c (image_instantiator_combo_box):
13949         * glyphs-widget.c (image_instantiator_scrollbar):
13950         * glyphs-widget.c (image_instantiator_progress_guage):
13951         * glyphs-widget.c (image_instantiator_tree_view):
13952         * glyphs-widget.c (image_instantiator_tab_control):
13953         * glyphs-widget.c (image_instantiator_labels):
13954         * glyphs-widget.c (image_instantiator_layout):
13955         * glyphs-widget.c (image_instantiator_native_layout):
13956         rename decode_domain method to governing_domain.
13957
13958         * glyphs.c:
13959         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13960         * glyphs.c (add_entry_to_device_ii_format_list):
13961         make sure we don't put an entry more than once into the list.
13962         * glyphs.c (check_instance_cache_mapper):
13963         *************************************************************
13964         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13965         HAVE BEEN GETTING.
13966         *************************************************************
13967         * glyphs.c (get_image_instantiator_governing_domain):
13968         clean up, expand on new concept of governing domain.
13969         * glyphs.c (instantiate_image_instantiator):
13970         * glyphs.c (allocate_image_instance):
13971         use governing_domain instead of cache_domain in naming.
13972         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13973         * glyphs.c (make_image_instance_1):
13974         * glyphs.c (Fmake_image_instance):
13975         allow for any domain (not just device), and process the
13976         governing domain correctly.  very big doc fix.
13977         * glyphs.c (Fimage_instance_domain):
13978         new primitive, to retrieve the governing domain of an image instance.
13979         * glyphs.c (image_instantiate):
13980         use new governing_domain stuff.  this fixes a crash you could get
13981         by instantiating certain widget glyphs in frame locales. (should
13982         signal an error instead of crashing.)
13983         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13984         * glyphs.c (Fglyphp): clean up doc.
13985         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13986         * glyphs.c (syms_of_glyphs):
13987         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13988         * glyphs.c (image_instantiator_format_create): add some comments about
13989         bogus code.
13990         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13991         for current-display-table. (Apparently Hrjove implemented in 1998 a
13992         design I wrote up in 1996, but didn't update the doc string.)
13993
13994         * glyphs.h: clean up a doc string.
13995         * glyphs.h (governing_domain):
13996         * glyphs.h (struct image_instantiator_methods):
13997         changes for governing_domain stuff.
13998
13999         * gutter.c:
14000         * gutter.c (Fgutter_specifier_p):
14001         * gutter.c (Fgutter_size_specifier_p):
14002         * gutter.c (Fgutter_visible_specifier_p):
14003         * objects.c:
14004         * objects.c (Fcolor_specifier_p):
14005         * objects.c (Ffont_specifier_p):
14006         * objects.c (Fface_boolean_specifier_p):
14007         doc strings moved to make-*-specifier.
14008
14009         * redisplay.c (add_disp_table_entry_runes_1):
14010         * redisplay.c (generate_fstring_runes):
14011         * redisplay.c (screen):
14012         add random comments and doc strings.
14013
14014         * specifier.c:
14015         * specifier.c (Fmake_specifier):
14016         major overhaul of this doc string.
14017
14018         * specifier.c (Fvalid_specifier_domain_p):
14019         comment about the bogosity of image instances being domains.
14020         * specifier.c (decode_domain):
14021         now non-static, used in glyphs.c.
14022         * specifier.c (specifier_instance):
14023         comment about the bogosity of image instances being domains.
14024         * specifier.c (Fgeneric_specifier_p):
14025         move doc string to make-generic-specifier.
14026         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14027         rebackslashify.
14028
14029         * specifier.h:
14030         * specifier.h (DOMAIN_FRAME):
14031         * specifier.h (DOMAIN_LIVE_P):
14032         * specifier.h (DOMAIN_XDEVICE):
14033         rebackslashify.
14034         add comments about problems with these macros.
14035         prototype for decode_domain.
14036
14037         * toolbar.c:
14038         * toolbar.c (Ftoolbar_specifier_p):
14039         move doc string to `make-toolbar-specifier'.
14040
14041         * window.c (window_unmap_subwindows_cache_mapper):
14042         *************************************************************
14043         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14044         HAVE BEEN GETTING.
14045         *************************************************************
14046
14047 2000-05-09  Andy Piper  <andy@xemacs.org>
14048
14049         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14050
14051         * window.c (Fset_window_configuration): reset the frame subwindow
14052         cache and re-initialize the window subwindow caches.
14053
14054         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14055
14056 2000-05-09  Ben Wing  <ben@xemacs.org>
14057
14058         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14059         DWORD.
14060
14061 2000-04-26  Mike Woolley  <mike@bulsara.com>
14062
14063         * ntheap.c: Changed recreate_heap to limit the amount reserved
14064         for the heap to that which is actually available. Also now
14065         displays a message box (with some dignostics) in the event that
14066         it still can't start.
14067
14068 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14069
14070         * callproc.c (Fold_call_process_internal): GCPRO path
14071
14072 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14073
14074         Patch by Bill Perry.
14075
14076         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14077         back data instead of #ifdef.
14078         (Fscrollbar_page_down): ditto.
14079
14080 2000-05-07  Ben Wing  <ben@xemacs.org>
14081
14082         * buffer.h:
14083         Kludge for defining Qmswindows_tstr.
14084
14085         * nt.c:
14086         * nt.c (open_input_file):
14087         * nt.c (open_output_file):
14088         * nt.c (rva_to_section):
14089         * nt.c (mswindows_executable_type):
14090         Move all memory-mapped-file routines here (some were in unexnt.c,
14091         which is bad because they are used by process-nt.c, and unexnt
14092         won't be around when portable dumping).  Synched the above routines
14093         with FSF 20.6.
14094
14095         * nt.h:
14096         Removed ifdef'd out bogus code.
14097         Fixed some prototypes.
14098
14099         * nt.h (file_data):
14100         * nt.h (OFFSET_TO_RVA):
14101         * nt.h (RVA_TO_OFFSET):
14102         * nt.h (RVA_TO_PTR):
14103         Moved the memory-mapped-file structures, macros and prototypes
14104         here, to parallel nt.c.  ntheap.h should really be removed
14105         entirely, and it's a non-portable-dumper specific file.
14106
14107         * ntheap.h (round_to_next):
14108         Moved the memory-mapped-file structures, macros and prototypes
14109         to nt.h.
14110
14111         * ntproc.c (compare_env):
14112         Moved rva_to_section and mswindows_executable_type to nt.c.
14113         Moved compare_env to process-nt.c.
14114         ntproc.c will die, one day.
14115
14116         * ntproc.c (sys_spawnve):
14117         Account for win32_ -> mswindows_.
14118
14119         * process-nt.c:
14120         * process-nt.c (struct nt_process_data):
14121         * process-nt.c (ensure_console_window_exists):
14122         * process-nt.c (compare_env):
14123         * process-nt.c (nt_create_process):
14124         * process-nt.c (nt_kill_process_by_pid):
14125         * process-nt.c (syms_of_process_nt):
14126         * process-nt.c (vars_of_process_nt):
14127         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14128         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14129         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14130         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14131         Move compare_env here from ntproc.c.
14132
14133         * process.c (Fprocess_send_region):
14134         Takes an optional fourth argument, BUFFER, which should fix some
14135         problems with call-process.
14136
14137         * syscommctrl.h:
14138         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14139
14140         * syswindows.h:
14141         Move ICC_BAR_CLASSES to syscommctrl.h.
14142         Add preliminary macros for MSWindows/Mule.  More to come.
14143
14144         * unexnt.c:
14145         * unexnt.c (unexec):
14146         open_output_file moved to nt.c.
14147
14148
14149 2000-05-05  Andy Piper  <andy@xemacs.org>
14150
14151         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14152         instance from the frame cache also since GC may catch up too late
14153         to make frame deletion sane.
14154
14155 2000-05-04  Andy Piper  <andy@xemacs.org>
14156
14157         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14158         (x_finalize_image_instance): ungcpro on deletion.
14159
14160         * glyphs.c (image_instantiator_format_create): give pointers a
14161         query geometry method so that the geometry is at least set.
14162
14163         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14164         initialize layouts if using widgets.
14165
14166 2000-05-03  Andy Piper  <andy@xemacs.org>
14167
14168         * nt.c: remove bogus reference to sysmmsystem.h
14169
14170         * gui-x.c (popup_selection_callback): fix no selection abort.
14171
14172 2000-05-02  Andy Piper  <andy@xemacs.org>
14173
14174         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14175         (mswindows_widget_instantiate): ditto.
14176
14177         * glyphs-widget.c (initialize_widget_image_instance): initialize
14178         children correctly.
14179         (widget_instantiate): cope with children and items in the same
14180         instance.
14181
14182         * glyphs.c (mark_image_instance): cope with children as a first
14183         class member.
14184         (image_instance_equal): ditto.
14185         (image_instance_hash): ditto.
14186         (image_instance_changed): ditto.
14187
14188 2000-04-30  Andy Piper  <andy@xemacs.org>
14189
14190         * glyphs.c (subwindow_query_geometry): new function. Return some
14191         defaults.
14192         (subwindow_instantiate): don't assign dimensions if none have been
14193         given.
14194         (image_instantiator_format_create): add subwindow_query_geometry.
14195         (print_image_instance): cope with layouts as widgets.
14196
14197 2000-04-29  Andy Piper  <andy@xemacs.org>
14198
14199         * frame.c (delete_frame_internal): call
14200         free_frame_subwindow_instance_cache so that all subwindows are
14201         finalized before their parent.
14202         (mark_frame): remove subwindow_cachels.
14203         (Fmake_frame): remove subwindow_cachel manipulation.
14204         (allocate_frame_core): subwindow_instance_cache is a weak list.
14205         (delete_frame_internal): set subwindow_instance_cache to nil.
14206
14207         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14208         finalization safe.
14209         (mswindows_finalize_image_instance): use the device
14210         not the domain as the domain may have died already.
14211
14212         * glyphs-x.c (x_finalize_image_instance): ditto.
14213         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14214         HEIGHT.
14215
14216         * redisplay-output.c (redisplay_unmap_subwindows): update for
14217         subwindow instance cache as a weak list.
14218         (redisplay_unmap_subwindows_maybe): ditto.
14219         (redisplay_unmap_subwindows_except_us): ditto.
14220
14221         * glyphs.c (unmap_subwindow): error checking will check the domain
14222         so don't deal with it here. Don't use cachels anymore.
14223         (map_subwindow): ditto.
14224         (update_subwindow_cachel_data): remove old accessor names.
14225         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14226         (Fresize_subwindow): don't update cachel.
14227         (mark_subwindow_cachels):
14228         (update_subwindow_cachel_data):
14229         (add_subwindow_cachel):
14230         (get_subwindow_cachel_index):
14231         (update_subwindow_cachel):
14232         (reset_subwindow_cachels):
14233         (mark_subwindow_cachels_as_not_updated): deleted.
14234         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14235         subwindow instance to the frame cache.
14236         (find_matching_subwindow): update for subwindow instance cache as
14237         a weak list.
14238         (update_widget_instances): ditto.
14239         (image_instance_type_to_mask):inlined.
14240         (free_frame_subwindow_instance_cache): new function. finalize all
14241         subwindows that are instantiated.
14242
14243         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14244         of cachel information.
14245         (IMAGE_INSTANCE_DISPLAY_X):
14246         (IMAGE_INSTANCE_DISPLAY_Y):
14247         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14248         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14249         (XIMAGE_INSTANCE_DISPLAY_X):
14250         (XIMAGE_INSTANCE_DISPLAY_Y):
14251         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14252         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14253         remove subwindow_cachel structure and function references.
14254         (image_instance_type_to_mask): inline from glyphs.c
14255
14256         * redisplay.c (redisplay_frame): remove subwindow_cachel
14257         references.
14258
14259         * frame.h (struct frame): remove subwindow_cachels.
14260         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14261
14262         * frameslots.h: add subwindow_instance_cache.
14263
14264         * window.c (replace_window): check subwindow cache of replacement.
14265         (window_unmap_subwindows_cache_mapper):
14266         (window_unmap_subwindows): new functions. Unmap all subwindows
14267         cached on this window.
14268         (mark_window_as_deleted): unmap all subwindows.
14269
14270 2000-04-27  Andy Piper  <andy@xemacs.org>
14271
14272         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14273
14274         * glyphs-widget.c (widget_layout): return something.
14275         (layout_layout): return something. Fail if not initialized.
14276         (layout_query_geometry): ditto.
14277         (image_instantiator_native_layout): new function. Initialized the
14278         native layout type.
14279         (widget_instantiate): don't do layout stuff here.
14280
14281         * glyphs.c (instantiate_image_instantiator): reorded calling or
14282         instantiate and post_instantiate with layout in between.
14283         (image_instance_layout): be more selective about deciding whether
14284         the layout has been done or not.
14285
14286         * glyphs.h (struct image_instantiator_methods): return a value
14287         from layout_method.
14288
14289 2000-04-26  Andy Piper  <andy@xemacs.org>
14290
14291         * glyphs.c (allocate_image_instance): make initial width and
14292         height unspecified. Set initialized to 0.
14293
14294         * syscommctrl.h new file. Encapsulates commctrl.h.
14295
14296         * syswindows.h new file. Encapsulates windows.h.
14297
14298         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14299         * nt.c: ditto.
14300         * console-msw.h: ditto.
14301
14302         * redisplay-tty.c (tty_output_display_block): remove layout references.
14303
14304         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14305         window handle rather than just the frame.
14306
14307         * glyphs.c (mark_image_instance): remove layout references.
14308         (print_image_instance): ditto.
14309         (image_instance_equal): ditto.
14310         (image_instance_hash): ditto.
14311         (decode_image_instance_type): ditto.
14312         (encode_image_instance_type): ditto.
14313         (image_instantiate): ditto.
14314         (allocate_glyph): ditto.
14315         (Fimage_instance_height): ditto.
14316         (Fimage_instance_width): ditto.
14317         (update_subwindow): ditto.
14318
14319         * redisplay-x.c (x_output_display_block): recode for layouts as
14320         widgets.
14321
14322         * redisplay-output.c (redisplay_output_layout): recode for layouts
14323         as widgets.
14324         (compare_runes): remove layout references.
14325
14326         * redisplay-msw.c (mswindows_output_display_block): recode for
14327         layouts as widgets.
14328
14329         * glyphs-widget.c (image_instantiator_layout): remove
14330         layout_possible_dest_types.
14331         (layout_possible_dest_types): deleted.
14332
14333         * glyphs.h (image_instance_type): remove layout references.
14334         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14335         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14336         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14337
14338 2000-04-25  Andy Piper  <andy@xemacs.org>
14339
14340         * glyphs-widget.c (image_instantiator_buttons):
14341         (image_instantiator_edit_fields):
14342         (image_instantiator_combo_box):
14343         (image_instantiator_scrollbar):
14344         (image_instantiator_progress_guage):
14345         (image_instantiator_tree_view):
14346         (image_instantiator_tab_control):
14347         (image_instantiator_labels):
14348         (image_instantiator_layout): call default post_instantiate method.
14349         (widget_post_instantiate): new function. Simply lays out the
14350         widgets.
14351
14352         * glyphs.h (struct image_instantiator_methods): add
14353         post_instantiate method.
14354
14355         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14356         method calls.
14357
14358 2000-04-23  Andy Piper  <andy@xemacs.org>
14359
14360         * glyphs.h (struct image_instantiator_methods): add
14361         decode_domain_method.
14362         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14363         derived from the domain.
14364         (IMAGE_INSTANCE_FRAME): new accessor.
14365         (XIMAGE_INSTANCE_FRAME): ditto.
14366
14367         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14368         instead of _SUBWINDOW_FRAME.
14369         (finalize_image_instance): ditto.
14370         (Fimage_instance_foreground): ditto.
14371         (Fimage_instance_background): ditto.
14372         (image_instantiate): ditto.
14373         (update_subwindow_cachel): ditto.
14374         (update_subwindow): ditto.
14375         (unmap_subwindow): ditto.
14376         (map_subwindow): ditto
14377         (subwindow_instantiate): ditto.
14378         * glyphs-msw.c (mswindows_update_widget): ditto.
14379         (mswindows_progress_gauge_instantiate): ditto.
14380         (mswindows_tab_control_update): ditto.
14381         * glyphs-x.c (x_update_widget): ditto.
14382         (x_widget_instantiate): ditto.
14383         (x_tab_control_instantiate): ditto.
14384         (x_tab_control_update): ditto.
14385         * event-msw.c (mswindows_wnd_proc): ditto
14386
14387         * glyphs-widget.c (image_instantiator_layout): use
14388         subwindow_decode_domain.
14389         (image_instantiator_buttons): ditto.
14390         (image_instantiator_edit_fields): ditto.
14391         (image_instantiator_combo_box): ditto.
14392         (image_instantiator_scrollbar): ditto.
14393         (image_instantiator_progress_guage): ditto.
14394         (image_instantiator_tree_view): ditto.
14395         (image_instantiator_tab_control): ditto.
14396         (image_instantiator_labels): ditto.
14397         (image_instantiator_layout): ditto.
14398
14399         * glyphs.c: add instance error checking to many functions.
14400         (instantiate_image_instantiator): decode device from cache_domain.
14401         (image_instantiate): partially rewrite by using
14402         decode_image_instantiator_domain to determine what domain the
14403         instance needs to be cached in.
14404         (decode_image_instantiator_domain): new function. Determine what
14405         domain the image needs to be cached in.
14406         (check_window_subwindow_cache): new error checking function.
14407         (check_instance_cache_mapper): ditto.
14408         (check_image_instance_structure): ditto.
14409         (subwindow_decode_domain): new function. Encodes a window as a
14410         subwindow's cache domain.
14411         (image_instantiator_format_create): use it for text and
14412         subwindows.
14413
14414 2000-04-21  Andy Piper  <andy@xemacs.org>
14415
14416         * glyphs.c (image_instance_device): new function.
14417         (image_instance_frame): new function.
14418         (image_instance_window): new function.
14419         (image_instance_live_p): new function.
14420
14421         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14422         cache to nil.
14423
14424         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14425         (IMAGE_INSTANCE_DOMAIN): new accessor.
14426         (XIMAGE_INSTANCE_DOMAIN): ditto.
14427
14428         * glyphs-x.c (x_finalize_image_instance): device->domain.
14429
14430         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14431         (mswindows_finalize_image_instance): ditto.
14432
14433         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14434         (gif_instantiate): ditto.
14435         (png_instantiate): ditto.
14436         (tiff_instantiate): ditto.
14437
14438         * glyphs.c (instantiate_image_instantiator): use domain rather
14439         than device.
14440         (mark_image_instance): device -> domain.
14441         (print_image_instance): ditto.
14442         (finalize_image_instance): ditto.
14443         (image_instance_equal): ditto.
14444         (allocate_image_instance): ditto.
14445         (Fcolorize_image_instance): ditto.
14446         (query_string_geometry): ditto.
14447         (image_instantiate): ditto
14448         (query_string_font): ditto.
14449         (image_instantiate): ditto.
14450         (update_subwindow): ditto.
14451         (unmap_subwindow): ditto.
14452         (map_subwindow): ditto.
14453         (subwindow_instantiate): ditto.
14454
14455         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14456         (DOMAIN_FRAME): ditto.
14457         (DOMAIN_WINDOW): ditto.
14458         (DOMAIN_LIVE_P): ditto.
14459         (XDOMAIN_DEVICE): ditto.
14460         (XDOMAIN_FRAME): ditto.
14461         (XDOMAIN_WINDOW): ditto.
14462
14463         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14464         a valid specifier domain.
14465
14466 2000-04-19  Andy Piper  <andy@xemacs.org>
14467
14468         * glyphs-widget.c (syms_of_glyphs_widget): remove
14469         widget-callback-current-channel.
14470         (vars_of_glyphs_widget): ditto.
14471         * glyphs.h: ditto
14472
14473         * gui.c (get_gui_callback): revert to previous behaviour.
14474
14475 2000-04-18  Andy Piper  <andy@xemacs.org>
14476
14477         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14478         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14479         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14480
14481         * glyphs.c (image_instance_equal): add margin_width.
14482         (image_instance_hash): ditto.
14483
14484         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14485         (layout_query_geometry): ditto.
14486         (layout_layout): ditto.
14487         (syms_of_glyphs_widget): add margin-width.
14488         (image_instantiator_layout): allow margin-width.
14489
14490         * glyphs.c (update_widget_instances): make a normal function.
14491         (syms_of_glyphs): remove Qupdate_widget_instances.
14492         * glyphs.h: ditto.
14493
14494         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14495         so that we don't corrupt ideas about the last event or
14496         command. Remove widget-callback-current-channel fiddling.
14497         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14498
14499 2000-05-01  Martin Buchholz <martin@xemacs.org>
14500
14501         * XEmacs 21.2.33 is released.
14502
14503 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14504
14505         * make-src-depend: Allow dots in header file name.
14506
14507 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14508
14509         * mule-charset.h (struct charset_lookup): Add
14510         next_allocated_1_byte_leading_byte and
14511         next_allocated_2_byte_leading_byte.
14512         * mule-charset.c: Move above two variables so that those values
14513         will be dumped.
14514
14515 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14516
14517         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14518         when string length is zero.
14519         (find_charsets_in_emchar_string): Ditto.
14520
14521 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14522
14523         * lisp.h: extern Qdialog and Qmenubar.
14524
14525         * gui-x.c: added events.h.
14526                 also fixed typo which made the file uncompilable.
14527
14528         * general.c: Added Qmenubar and Qdialog
14529
14530 2000-04-28  Ben Wing  <ben@xemacs.org>
14531
14532         * frame-msw.c (mswindows_init_frame_1):
14533         * frame-msw.c (mswindows_mark_frame):
14534         * event-msw.c (mswindows_enqueue_dispatch_event):
14535         * console-msw.h:
14536         * console-msw.h (struct mswindows_frame):
14537         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14538         there are now three hash tables for callbacks.
14539         mswindows_enqueue_dispatch_event is no longer static.
14540
14541         * dialog-x.c (maybe_run_dbox_text_callback):
14542         * dialog-x.c (dbox_descriptor_to_widget_value):
14543         switch to new cons3 form for callbacks.
14544
14545         * glyphs-msw.c (mswindows_register_gui_item):
14546         * glyphs-msw.c (mswindows_widget_instantiate):
14547         * glyphs-msw.c (add_tree_item):
14548         * glyphs-msw.c (add_tab_item):
14549         new image instance parameter, so it can be passed to callback-ex.
14550         respect :callback-ex as well as :callback.
14551
14552         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14553         add :callback-ex.
14554
14555         * glyphs.c (print_image_instance):
14556         prettify, e.g. now prints widget type.
14557
14558         * gui-x.h:
14559         certain funs have new image instance parameter.
14560
14561         * gui.c:
14562         * gui.c (get_gui_callback):
14563         * gui.c (gui_item_add_keyval_pair):
14564         * gui.c (gui_item_init):
14565         * gui.c (gui_add_item_keywords_to_plist):
14566         * gui.c (mark_gui_item):
14567         * gui.c (gui_item_hash):
14568         * gui.c (gui_item_equal):
14569         * gui.c (copy_gui_item):
14570         * gui.c (syms_of_gui):
14571         recognize callback-ex in a number of places.
14572         also, fix the annoying "can't get out of yes-no dialog" bug.
14573
14574         * gui.h:
14575         * gui.h (struct Lisp_Gui_Item):
14576         recognize callback-ex in a number of places.
14577
14578         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14579         new parameter in button_item_to_widget_value.
14580
14581         * glyphs-x.c (x_update_widget):
14582         * glyphs-x.c (x_button_instantiate):
14583         * glyphs-x.c (x_button_update):
14584         * glyphs-x.c (x_progress_gauge_instantiate):
14585         * glyphs-x.c (x_edit_field_instantiate):
14586         * glyphs-x.c (x_combo_box_instantiate):
14587         * glyphs-x.c (x_tab_control_instantiate):
14588         * glyphs-x.c (x_label_instantiate):
14589         new image instance parameter in various places.
14590
14591         * event-Xt.c:
14592         * event-Xt.c (enqueue_Xt_dispatch_event):
14593         this fun gets exported.
14594
14595         * gui-msw.c:
14596         * gui-msw.c (mswindows_handle_gui_wm_command):
14597         handle both :callback and :callback-ex, and generate our own
14598         event because it's one of the callback-ex arguments.
14599
14600         * gui-x.c:
14601         * gui-x.c (popup_selection_callback):
14602         handle both :callback and :callback-ex, and generate our own
14603         event because it's one of the callback-ex arguments.
14604         * gui-x.c (button_item_to_widget_value):
14605         * gui-x.c (gui_items_to_widget_values_1):
14606         * gui-x.c (gui_item_children_to_widget_values):
14607         * gui-x.c (gui_items_to_widget_values):
14608         new image instance parameter in various places.
14609
14610         * fns.c (Freplace_list):
14611         fix small typo in doc string.
14612
14613         * lisp.h:
14614         declare enqueue_Xt_dispatch_event.
14615
14616 2000-04-28  Ben Wing  <ben@xemacs.org>
14617
14618         * buffer.c:
14619         * buffer.c (Frecord_buffer):
14620         * buffer.c (syms_of_buffer):
14621         delete record-buffer-hook.
14622
14623         * fns.c:
14624         * fns.c (Freplace_list):
14625         * fns.c (syms_of_fns):
14626         new primitive replace-list.
14627
14628         * frameslots.h:
14629         slot for old buffer-alist.
14630
14631         * lisp.h:
14632         exfun replace-list.
14633
14634         * redisplay.c:
14635         * redisplay.c (redisplay_frame):
14636         * redisplay.c (syms_of_redisplay):
14637         * redisplay.c (vars_of_redisplay):
14638         new hook buffer-list-changed-hook.
14639         call it.
14640
14641 2000-04-27  Ben Wing  <ben@xemacs.org>
14642
14643         * extents.h: extern in_modeline_generation.
14644
14645         * redisplay.c (generate_formatted_string_db): set
14646         in_modeline_generation.
14647
14648         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14649         flags if in modeline generation.  otherwise frame-modified-tick
14650         is ticked far too often.
14651         Declare in_modeline_generation.
14652
14653 2000-04-26  Ben Wing  <ben@xemacs.org>
14654
14655         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14656         option.
14657         (vars_of_emacs): add quick-build as an error-checking option.
14658         A bit kludgy, but there doesn't seem much point in creating
14659         a real var for this.
14660
14661         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14662
14663 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14664
14665         * redisplay.h (struct display_line): Add a new variable,
14666         line_continuation.
14667
14668         * redisplay.c (create_text_block): Set dl->line_continuation if
14669         the line continues.
14670         (create_string_text_block): Ditto.
14671         (regenerate_window_incrementally): Use line_continuation instead
14672         of searching continuation glyph.
14673         (add_margin_runes): Call add_glyph_rune.
14674         (add_glyph_rune): Handle margin glyph.
14675
14676 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14677
14678         * filelock.c (fill_in_lock_file_name):
14679         ANSIfy.
14680         Check for IS_ANY_SEP instead of '/'.
14681         (lock_file_1):
14682         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14683         Never check errno without first seeing that system call failed.
14684         (unlock_file): Add GCPRO.
14685         (Flock_buffer): Fix docstring.
14686         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14687
14688 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14689
14690         * sysdep.c (get_pty_max_bytes):
14691         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14692         strings longer than 252 bytes.
14693
14694         * md5.c: Unconditionally include ANSI header <limits.h>
14695
14696         * glyphs-x.c (convert_EImage_to_XImage):
14697         * lisp-union.h (union Lisp_Object):
14698         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14699
14700 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14701
14702         * filelock.c (current_lock_owner): Remove unused variable o, p.
14703
14704 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14705
14706         * callint.c: Remove multiply defined symbol Qlet
14707         (syms_of_callint): ditto.
14708
14709 2000-04-14  Andy Piper  <andy@xemacs.org>
14710
14711         * general.c (syms_of_general): add last-command, this-command, let
14712         and funcall.
14713
14714         * lisp.h: declare various symbols.
14715
14716         * glyphs.h: declare Qwidget_callback_current_channel;
14717
14718         * glyphs-widget.c (syms_of_glyphs_widget): add
14719         Qgui_callback_current_channel.
14720         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14721
14722         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14723         widget-callback-current-channel when invoking the interactive
14724         arg. Also bind last-command and next-command when invoking the
14725         widget updates.
14726         * gui-x.c (popup_selection_callback): ditto.
14727
14728         * gui.c (get_gui_callback): massage args so that we are always
14729         calling eval. This allows us to add our own variable bindings
14730         outside.
14731
14732         * glyphs-x.c (x_button_instantiate): use
14733         gui_items_to_widget_values since this is GC safe.
14734         (x_progress_gauge_instantiate): ditto.
14735         (x_edit_field_instantiate): ditto.
14736         (x_label_instantiate): ditto.
14737
14738         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14739         (emacs_Xt_event_widget_focus_out): new function
14740         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14741         focus.
14742         (emacs_Xt_event_add_widget_actions): new function. add focus
14743         functions as actions.
14744         (init_event_Xt_late): use it.
14745
14746 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14747
14748         * event-stream.c (Fdispatch_event): Doc fix.
14749
14750 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14751
14752         * postgresql.c: Remove all references to PQsetenv*.
14753
14754         * postgresql.h: Remove references to PGsetenvHandler object.
14755         * lrecord.h (lrecord_type): Ditto.
14756
14757 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14758
14759         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14760         real_heigh and real_width members, and accessor macros for these.
14761
14762         * glyphs-msw.c (init_image_instance_geometry): New function.
14763         (init_image_instance_from_dibitmap): Use it.
14764         (mswindows_resource_instantiate): Use it.
14765         (init_image_instance_from_xbm_inline): Use it.
14766         (mswindows_initialize_image_instance_mask): Use real bitmap
14767         geometry.
14768         (mswindows_create_resized_bitmap): Ditto.
14769         (mswindows_create_resized_mask): Ditto.
14770
14771         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14772         and bitmap to their surface size.
14773
14774 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14775
14776         * process-unix.c (unix_send_process): Guard against process MIA
14777         after Faccept_process_output.
14778
14779 2000-04-11  Ben Wing  <ben@xemacs.org>
14780
14781         * eval.c (unbind_to_hairy): fix brokenness introduced by
14782         nanosecond speed improvements.
14783
14784 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14785
14786         * sunplay.c (init_device): To play sounds correctly, the device
14787         apparently needs to be initialized at least once by XEmacs.  Make
14788         it so.
14789
14790 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14791
14792         * redisplay.c (add_margin_runes): Add text image glyph
14793           handling.
14794
14795 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14796
14797         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14798         gcc is newer than 2.5.
14799
14800 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14801
14802         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14803
14804         * fns.c (size_bit_vector):
14805         * alloc.c (size_vector):
14806         (make_vector_internal):
14807         (make_bit_vector_internal):
14808         (sweep_bit_vectors_1):
14809         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14810
14811 2000-04-06  Andy Piper  <andy@xemacs.org>
14812
14813         * gmalloc.c (malloc): undo previous change.
14814         (malloc): ditto.
14815         (free): ditto.
14816         (realloc): ditto.
14817
14818 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14819
14820         * line-number.c (buffer_line_number): Revert to former version.
14821
14822 2000-04-06  Andy Piper  <andy@xemacs.org>
14823
14824         * gmalloc.c (malloc): add error checking.
14825         (malloc): ditto.
14826         (free): ditto.
14827         (realloc): ditto.
14828
14829         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14830         button_item_to_widget_value arg.
14831
14832         * glyphs-x.c (x_button_instantiate): add extra
14833         button_item_to_widget_value arg.
14834         (x_progress_gauge_instantiate): ditto.
14835         (x_edit_field_instantiate): ditto.
14836         (x_label_instantiate): ditto.
14837
14838         * gui-x.c (gui_items_to_widget_values_1): add extra
14839         button_item_to_widget_value arg.
14840         (button_item_to_widget_value): add extra menu_item_p arg.
14841
14842         * gui-x.h: change signature of button_item_to_widget_value.
14843
14844         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14845         button_item_to_widget_value arg.
14846
14847 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14848
14849         * buffer.h (struct buffer): auto_save_modified should be long.
14850
14851 2000-04-05  Andy Piper  <andy@xemacs.org>
14852
14853         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14854         type.
14855         (button_query_geometry): give a little more room so that athena
14856         buttons fit.
14857
14858 2000-04-05  Andy Piper  <andy@xemacs.org>
14859
14860         * faces.c (complex_vars_of_faces): The widget face should inherit
14861         the font of the gui-element face.
14862
14863 2000-04-04  Andy Piper  <andy@xemacs.org>
14864
14865         * glyphs-x.c (x_button_update): new function. unconditionally
14866         update a button's state when the instance is dirty.
14867         (image_instantiator_format_create_glyphs_x): add x_button_update.
14868         (x_widget_instantiate): remove old resize cruft.
14869
14870 2000-04-02  Andy Piper  <andy@xemacs.org>
14871
14872         * frame.c (change_frame_size_1): The introduction of gutters means
14873         that we need to allow 0 as a potential frame dimension.
14874
14875 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14876
14877         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14878         image glyph if allow_cursor.
14879         (add_hscroll_rune): Don't allow cursor to border glyph.
14880         (create_text_block): Ditto.
14881
14882         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14883         text not in buffer.
14884         (redisplay_output_layout): Call ensure_face_cachel_complete for
14885         text image glyph.
14886
14887
14888 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14889
14890         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14891
14892         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14893         not in buffer
14894
14895         * redisplay-tty.c (tty_output_display_block): Delete the routine
14896         for text image glyph
14897         * redisplay-x.c (x_output_display_block): ditto
14898         * redisplay-msw.c (mswindows_output_display_block): ditto
14899
14900 2000-02-02  Mike Alexander  <mta@arbortext.com>
14901
14902         Note: Some of these were committed by accident as part of other
14903         patches.
14904
14905         * regex.c (regex_compile): Avoid compiler warnings.
14906
14907         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14908
14909         * nt.h: Declare term_ntproc correctly.
14910
14911         * nt.c: Remove incorrect declaration of get_home_directory which
14912         is declared correctly in lisp.h.
14913
14914         * keymap.c (get_keyelt): Avoid compiler warnings.
14915         (raw_lookup_key_mapper): Avoid compiler warnings.
14916
14917         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14918
14919         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14920
14921         * filemode.c (mode_string): Avoid compiler warnings.
14922
14923         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14924         avoid warning.
14925
14926         * events-mod.h: Undef some things that winuser.h defines differently.
14927
14928         * data.c (Faset): Avoid compiler warnings.
14929
14930         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14931
14932 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14933
14934         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14935         Fall through to simple beep on error.
14936         Replace "extern" by real header file.
14937
14938         * linuxplay.c: Use nativesound.h
14939         (play_sound_data): Return error code. Be less verbose on error.
14940
14941         * sunplay.c: Use nativesound.h
14942         (play_sound_data): Return error code. Be less verbose on error.
14943
14944         * ntplay.c: Use nativesound.h
14945         (play_sound_data): Return fake error code
14946
14947         * sgiplay.c: Use nativesound.h
14948         (play_sound_data): Return error code
14949
14950         * hpplay.c: Use nativesound.h, partially implement
14951         new error code. Break compilation until finished.
14952         (play_sound_data): error code.
14953
14954         * nativesound.h (play_sound_file):
14955           (play_sound_data): Prototype in new header.
14956
14957 2000-03-31  Andy Piper  <andy@xemacs.org>
14958
14959         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14960         for toggle and radio buttons.
14961         (image_instantiator_buttons): use it.
14962
14963 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14964
14965         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14966         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14967         found. Scrollbar event probably belonged to some old config.
14968
14969 2000-03-31  Andy Piper  <andy@xemacs.org>
14970
14971         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14972         than 1.
14973         (initialize_widget_image_instance): default layout to
14974         LAYOUT_HORIZONTAL rather than 0.
14975         (widget_instantiate): reverse the item list at the end rather than
14976         every iteration.
14977         (layout_layout): re-code for the border text at the front of the
14978         item list rather than at the end.
14979         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14980         provided by the user.
14981         (widget_query_geometry): comment.
14982
14983 2000-03-30  Andy Piper  <andy@xemacs.org>
14984
14985         * glyphs-widget.c (image_instantiator_layout): allow standard
14986         widget keywords in layouts.
14987
14988         * gutter.c (output_gutter): cope with nil gutter contents.
14989
14990         * frame.c (Fset_frame_properties): add gutter docs.
14991
14992 2000-03-29  Andy Piper  <andy@xemacs.org>
14993
14994         * toolbar-msw.c (TBSTYLE_FLAT): add.
14995         (mswindows_output_toolbar): minor fiddling.
14996
14997 2000-03-29  Andy Piper  <andy@xemacs.org>
14998
14999         * gutter.c (output_gutter): force gutter size recalculation if
15000         what we are trying to display won't fit.
15001         (update_gutter_geometry): new function. A per-gutter version of
15002         update_frame_gutter_geometry.
15003         (update_frame_gutter_geometry): use it.
15004         (redraw_exposed_gutter): add extra debugging output.
15005
15006 2000-03-28  Mike Alexander  <mta@arbortext.com>
15007
15008         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15009         (pdump_file_unmap): Implement it on Windows
15010         (pdump_file_get): Save alocated handles for pdump_file_unmap
15011
15012 2000-03-28  Andy Piper  <andy@xemacs.org>
15013
15014         * gui.c (get_gui_callback): treat Quit specially.
15015
15016 2000-03-27  Andy Piper  <andy@xemacs.org>
15017
15018         * glyphs.c (image_instantiate): be careful to check in the same
15019         way we assigned.
15020
15021 2000-03-27  Didier Verna  <didier@xemacs.org>
15022
15023         * config.h.in: define the proper SMART_INCLUDE macro.
15024         handle renaming of `foo_h_path' to `foo_h_file'.
15025
15026         * database.c: ditto.
15027
15028         * emacs.c: ditto.
15029
15030         * linuxplay.c: ditto.
15031
15032         * terminfo.c: ditto.
15033
15034         * tooltalk.h: ditto.
15035
15036 2000-03-27  Andy Piper  <andy@xemacs.org>
15037
15038         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15039         gets updated whenever the face might have changed.
15040
15041 2000-03-26  Mike Alexander  <mta@arbortext.com>
15042
15043         * dumper.c (pdump_resource_free): Fix the comment.
15044
15045 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15046
15047         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15048
15049 2000-03-22  Mike Alexander  <mta@arbortext.com>
15050
15051         * dumper.c: Include Windows headers on Windows
15052         (pdump_resource_free): Add a body to the function
15053         (pdump_load): exe_name -> exe_path and add some comments.
15054
15055 2000-03-25  Mike Alexander  <mta@arbortext.com>
15056
15057         * gui.c (copy_gui_item_tree): Return a value in all cases
15058
15059 2000-03-21  Didier Verna  <didier@xemacs.org>
15060
15061         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15062         lwlib/config.h.in.
15063         (SMART_INCLUDE): new macro.
15064         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15065         the proper location.
15066
15067         * postgresql.c: use it.
15068
15069         * inline.c: ditto.
15070
15071 2000-03-24  Andy Piper  <andy@xemacs.org>
15072
15073         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15074         do this.
15075
15076 2000-03-24  Andy Piper  <andy@xemacs.org>
15077
15078         * redisplay-output.c (compare_runes): use image_instance_changed
15079         to detect changes. Do not depend on glyphs_changed, only depend on
15080         dirtiness.
15081          (redisplay_output_layout): add debug messages.
15082         (compare_runes): ditto.
15083
15084         * glyphs.h: declare new functions.
15085         (struct Lisp_Image_Instance): remove percent and associated
15086         accessors.
15087
15088         * gui.h: declare new copying functions.
15089
15090         * gui.c (copy_gui_item_tree): new function.
15091         (copy_gui_item): new function.
15092         (gui_item_id_hash): revert to standard hash.
15093         (gui_item_hash): ditto.
15094         (gui_item_hash_internal): deleted.
15095         (mark_gui_item): mark value.
15096         (gui_item_add_keyval_pair): add value.
15097         (gui_item_init): ditto.
15098         (gui_add_item_keywords_to_plist): ditto.
15099         (gui_item_equal): ditto.
15100         (syms_of_gui): add Q_value.
15101
15102         * glyphs-x.c (x_progress_gauge_update): use pending items and
15103         value for setting the state.
15104         (x_update_widget): don't set items from pending here.
15105
15106         * glyphs-widget.c (update_widget): update items here.
15107         (progress_gauge_set_property): use items for storing value. Put
15108         new value in pending items.
15109
15110         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15111         items for new value. Convert percent -> value.
15112         (mswindows_tab_control_update): don't update items here.
15113
15114         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15115         (update_subwindow): ditto.
15116         (image_instance_changed): new function. Compare hash values and
15117         past and present widget items.
15118         (image_instantiate): We more careful about where we instantiate
15119         things.
15120         (image_instantiate): add error checking.
15121
15122         * gutter.c (syms_of_gutter): use -hook.
15123
15124 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15125
15126         * console-tty.c (Fset_console_tty_input_coding_system): Use
15127         Qkeyboard.
15128         (Fset_console_tty_output_coding_system): Use Qterminal.
15129         (tty_init_console): Use Qkeyboard and Qterminal.
15130
15131 2000-03-21  Ben Wing  <ben@xemacs.org>
15132
15133         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15134         From Mike Alexander <mta@arbortext.com>.
15135
15136 2000-03-21  Ben Wing  <ben@xemacs.org>
15137
15138         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15139         process brokenness.  Proper implementation to come.
15140         * callproc.c:
15141         Rename call-process-internal to old-call-process-internal.
15142         New impl. in process.el.
15143
15144 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15145
15146         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15147
15148 2000-03-20  Andy Piper  <andy@xemacs.org>
15149
15150         * glyphs.c (full_list_hash): make hashes of the same elements in
15151         different orders return different values.
15152
15153 2000-03-20  Martin Buchholz <martin@xemacs.org>
15154
15155         * XEmacs 21.2.32 is released.
15156
15157 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15158
15159         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15160         (DFC_MALLOC_USE_CONVERTED_DATA):
15161         Add aliasing-safe casts to allow use with char* or unsigned char*
15162         lvalues.
15163
15164         * eldap.c (Fldap_open):
15165         (Fldap_search_basic):
15166         (Fldap_add):
15167         (Fldap_modify):
15168         Make C++-compilable.
15169         Make sure GCPRO'ed variables are initialized.
15170         Use temp variables to avoid repeated calls to Flength.
15171
15172 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15173
15174         * sysfile.h:
15175         Make sure PATH_MAX is always defined.
15176         Include limits.h for PATH_MAX.
15177         Deprecate use of MAXPATHLEN.
15178
15179 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15180
15181         * emacs.c: Add reinit_vars_of_fileio.
15182         * symsinit.h: Add reinit_vars_of_fileio.
15183         * fileio.c (reinit_vars_of_fileio): New.
15184         * fileio.c (Fmake_temp_name):
15185         Initialize temp_name random number from microseconds to make
15186         collisions even less likely.  Initialize always at process startup
15187         time.  (make-temp-name) used to return the same file name twice in
15188         a row when PDUMP.
15189         Random stylistic fiddling.
15190         Comment fixes.
15191
15192 2000-03-20  Andy Piper  <andy@xemacs.org>
15193
15194         * glyphs.c (image_instantiate): allow text glyphs to be
15195         instantiated in the minibuffer window.
15196
15197 2000-03-19  Andy Piper  <andy@xemacs.org>
15198
15199         * glyphs.c (image_instance_hash): be careful about which items we
15200         hash on.
15201
15202         * glyphs-widget.c (tab_control_set_property): record into pending
15203         items rather than the actual items.
15204
15205         * glyphs-x.c (x_update_widget): use pending items to update with.
15206
15207         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15208         to update with.
15209
15210         * glyphs.c (mark_image_instance): mark pending items.
15211
15212         * window.c (Fset_window_configuration): record the buffer.
15213         (Fselect_window): totally revert previous change which breaks many
15214         things.
15215
15216 2000-03-18  Andy Piper  <andy@xemacs.org>
15217
15218         * glyphs-msw.c (mswindows_tab_control_update): force selected
15219         item.
15220
15221         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15222         window domain cache, otherwise we get inconsistencies at
15223         startup. There is something fishy at startup which can lead to the
15224         minibuffer being the selected window when the gutter content is
15225         instantiated.
15226
15227         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15228         gcpros.
15229         (parse_gui_item_tree_children): ditto.
15230         (parse_gui_item_tree_item): ditto.
15231
15232         * glyphs.c (Fupdate_widget_instances): return something.
15233
15234 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15235
15236         * window.c (Fselect_window): Undo 2000-03-17 change.
15237
15238 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15239
15240         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15241         against v7.0 libraries.  Insta-coredump city until the postgres
15242         folks fix it.
15243
15244 2000-03-17  Andy Piper  <andy@xemacs.org>
15245
15246         * faces.c (complex_vars_of_faces): don't give the widget face an
15247         inherited background pixmap.
15248
15249         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15250         selected item.
15251
15252         * event-stream.c (Fdispatch_non_command_events): return something.
15253
15254         * gutter.c (output_gutter): use widget face.
15255         (clear_gutter): ditto.
15256
15257         * NEWS: adjust again.
15258
15259         * window.c (Fselect_window): make sure this runs to completion to
15260         avoid oddities with Fset_window_configuration.
15261         (Fcurrent_window_configuration): in general do not save the
15262         minibuffer as the selected window.
15263
15264         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15265
15266 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15267
15268         * emacs.c (Frunning_temacs_p): Revert previous patch.
15269         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15270
15271 2000-03-16  Andy Piper  <andy@xemacs.org>
15272
15273         * glyphs-x.c (x_tab_control_update): if no widget values then
15274         return.
15275
15276         * NEWS: update for new features.
15277
15278         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15279         synthetic event to the native system.
15280         (reinit_vars_of_event_Xt): set force_event_pending to
15281         emacs_Xt_force_event_pending.
15282
15283         * events.h (struct event_stream): add force_event_pending.
15284
15285         * specifier.c (recompute_one_cached_specifier_in_window): add
15286         comment.
15287
15288         * redisplay.c (redisplay_frame): don't call
15289         update_frame_subwindows. Reset subwindow cachels when
15290         subwindows_changed, removing this was an optimization too far.
15291
15292         * redisplay-output.c (compare_runes): reorganize so that we catch
15293         glyph changes when we want them. Set optimize_output when this
15294         would help layouts.
15295         (redisplay_output_layout): remove frame_really_changed, use
15296         optimize_output instead.
15297
15298         * redisplay-msw.c (mswindows_output_display_block): reset
15299         optimize_output after outputting a glyph.
15300         * redisplay-x.c (x_output_display_block): ditto.
15301         * redisplay-tty.c (tty_output_display_block): ditto.
15302
15303         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15304         functions.
15305         (gutter_specs_changed): do specific gutter positions.
15306         (top_gutter_specs_changed): new function. Only update the
15307         specified gutter specs.
15308         (bottom_gutter_specs_changed): ditto.
15309         (left_gutter_specs_changed): ditto.
15310         (right_gutter_specs_changed): ditto.
15311
15312         * gui.c (gui_item_hash_internal): new function, does a real hash.
15313         (gui_item_id_hash): use it.
15314         (gui_item_hash): hash the eval'ed gui_item.
15315
15316         * gui-x.c (popup_selection_callback): send an eval event to call
15317         Fupdate_widget_instances.
15318
15319         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15320         to call Fupdate_widget_instances.
15321
15322         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15323         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15324
15325         * glyphs.c: (update_frame_subwindows): deleted.
15326         (Fupdate_widget_instances): new function for updating the dirty
15327         state of widgets that might have changed.
15328         (syms_of_glyphs): add Qupdate_widget_instances.
15329         (full_list_hash): hash a list completely.
15330         (image_instance_hash): use it for items and properties.
15331
15332         * frame-msw.c (mswindows_size_frame_internal): remove unused
15333         variable.
15334
15335         * faces.h (struct face_cachel): fix comment.
15336
15337         * event-stream.c (Fdispatch_non_command_events): new
15338         function. Process non-command events, forcing an event cycle
15339         beforehand.
15340         (syms_of_event_stream): declare.
15341         (event_stream_force_event_pending): new function. Force an event
15342         on the native event queue so that an event cycle will occur next
15343         time we check.
15344
15345         * event-msw.c:
15346         (struct ntpipe_shove_stream):
15347         (mswindows_enqueue_dispatch_event):
15348         (mswindows_dequeue_dispatch_event):
15349         (mswindows_cancel_dispatch_event):
15350         (mswindows_pump_outstanding_events):
15351         (mswindows_drain_windows_queue):
15352         (mswindows_handle_paint):
15353         (mswindows_wnd_proc):
15354         (mswindows_key_to_emacs_keysym):
15355         (get_process_input_waitable):
15356         (emacs_mswindows_delete_stream_pair): re-indent file.
15357         (mswindows_need_event): do not process further fds if the windows
15358         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15359         fixes the 100% cpu problem.
15360         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15361
15362 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15363
15364         * alloc.h: New.
15365         * dumper.h: New.
15366         * dumper.c: New.
15367
15368         * emacs.c: Moved dump file searching to dumper.c.
15369         (Frunning_temacs_p): Fixed.
15370
15371         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15372         last_lrecord_type_index_assigned.
15373
15374 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15375
15376         * symsinit.h: Added reinit parameter to init_console_stream
15377         declaration.
15378
15379         * lisp.h: Added file parameter to pdump_load declaration.
15380
15381         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15382         support.  Added dump file searching.
15383
15384         * config.h.in: Added EMACS_PROGNAME.
15385
15386         * console-stream.c (init_console_stream): Fix reinitialisation
15387         when running from temacs.
15388
15389         * alloc.c (pdump): Add id support.
15390         (pdump_load): Add file parameter and signature/id support.
15391
15392         * Makefile.in.in: Add full pdump support.
15393
15394 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15395
15396         * postgresql.c: Update documentation to reflect latest code
15397         status.
15398         (print_result): Show tuple counts in printed representation when
15399         appropriate.
15400         (Fpq_put_nbytes): MULE-ize.
15401         (Fpq_get_line_async): Ditto.
15402
15403 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15404
15405         * postgresql.c (Fpq_lo_import): Fix return value.
15406         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15407
15408 2000-03-13  Ben Wing  <ben@xemacs.org>
15409
15410         * alloc.c (pdump_load):
15411         Fix compile warning under mswin.
15412
15413 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15414
15415         * postgresql.c: Mule-ization, bug fixes.
15416         Use PG_CODING to encapsulate coding system name changes.
15417         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15418         (pg-coding-system): Create.
15419
15420         (Fpq_conn_defaults): Mule-ize.
15421         (Fpq_connectdb): Mule-ize & bug fix.
15422         (Fpq_connect_start): Mule-ize.
15423         (Fpq_set_client_encoding): Mule-ize.
15424         (Fpq_finish): Document `DEAD' connection status.
15425         (Fpq_clear): Ditto.
15426         (Fpq_pgconn): Mule-ize.
15427         (Fpq_exec): Mule-ize & bug fix.
15428         (Fpq_send_query): Ditto.
15429         (Fpq_get_result): Ditto.
15430         (Fpq_res_status): Mule-ize.
15431         (Fpq_result_error_message): Mule-ize.
15432         (Fpq_ntuples): fix comments.
15433         (Fpq_fname): Mule-ize.
15434         (Fpq_fnumber): Mule-ize.
15435         (Fpq_ftype): fix comments.
15436         (Fpq_get_value): Mule-ize.
15437         (Fpq_cmd_status): Ditto.
15438         (Fpq_cmd_tuples): Ditto.
15439         (Fpq_oid_value): Ditto.
15440         (Fpq_notifies): Ditto.
15441         (Fpq_lo_import): Ditto.
15442         (Fpq_lo_export): Ditto.
15443         (Fpq_get_line): Ditto.
15444         (Fpq_put_line): Mule-ize and bug fix.
15445         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15446
15447 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15448
15449         * postgresql.c (vars_of_postgresql): Mule-ize.
15450         (Fpq_conn_defaults): Ditto.
15451
15452 2000-03-12  Ben Wing  <ben@xemacs.org>
15453
15454         * alloc.c (Fmake_byte_code):
15455         * alloc.c (debug_string_purity_print):
15456         * alloc.c (pdump_backtrace):
15457         * alloc.c (pdump_get_indirect_count):
15458         * alloc.c (pdump_register_sub):
15459         * alloc.c (pdump_register_object):
15460         * alloc.c (pdump_register_struct):
15461         * alloc.c (pdump_dump_data):
15462         * alloc.c (pdump_reloc_one):
15463         Minor cleanups.
15464
15465         * console-msw.c:
15466         * console-msw.c (GetConsoleHwnd):
15467         * console-msw.c (msw_hide_console):
15468         * console-msw.c (msw_show_console):
15469         * console-msw.c (msw_ensure_console_buffered):
15470         * console-msw.c (msw_output_console_string):
15471         * console-msw.c (console_type_create_mswindows):
15472
15473         a) Added functions to manipulate the console window for use with
15474         shell support.
15475
15476         b) Added support for writing text to the console, which is now
15477         used under Windows when xemacs is not being run non-interactively,
15478         to write text that would otherwise be destined for stdout because
15479         under these circumstances, text written to stdout tends to
15480         disappear and not be seen.
15481
15482         * console-msw.h:
15483         * event-Xt.c:
15484         * event-Xt.c (x_event_to_emacs_event):
15485         * event-Xt.c (describe_event_window):
15486         * events-mod.h (XEMACS_MOD_CONTROL):
15487         * events.c:
15488         * events.c (Fmake_event):
15489         * events.c (character_to_event):
15490         * events.c (event_to_character):
15491         * events.c (format_event_object):
15492         * events.c (Fevent_modifiers):
15493         * events.h:
15494         * events.h (struct key_data):
15495         * events.h (struct button_data):
15496         * events.h (struct misc_user_data):
15497         * frame-x.c (Fcde_start_drag_internal):
15498         * frame-x.c (Foffix_start_drag_internal):
15499         * gpmevent.c (Freceive_gpm_event):
15500         * keymap.c:
15501         * keymap.c (bucky_sym_to_bucky_bit):
15502         * keymap.c (control_meta_superify):
15503         * keymap.c (make_key_description):
15504         * keymap.c (keymap_lookup_directly):
15505         * keymap.c (create_bucky_submap):
15506         * keymap.c (keymap_store):
15507         * keymap.c (define_key_check_and_coerce_keysym):
15508         * keymap.c (define_key_parser):
15509         * keymap.c (define_key_alternate_name):
15510         * keymap.c (Fdefine_key):
15511         * keymap.c (raw_lookup_key_mapper):
15512         * keymap.c (struct map_keymap_unsorted_closure):
15513         * keymap.c (map_keymap_unsorted_mapper):
15514         * keymap.c (map_keymap_sort_predicate):
15515         * keymap.c (map_keymap_sorted):
15516         * keymap.c (accessible_keymaps_mapper_1):
15517         * keymap.c (where_is_recursive_mapper):
15518         * keymap.c (describe_map_mapper):
15519         * keymap.c (describe_map_sort_predicate):
15520         * keymap.c (describe_map):
15521         * keymap.c (complex_vars_of_keymap):
15522         And a number of other files, the key modifier preprocessor
15523         constants that xemacs uses have names that conflict with constants
15524         defined under MS Windows for other purposes, so they were renamed
15525         to begin with the prefix XEMACS_. The variables that hold such
15526         modifiers were changed to consistently be of type int to fix
15527         various compile warnings.
15528
15529         * console.c (complex_vars_of_console):
15530         * device.c:
15531         * device-msw.c:
15532         * device-msw.c (mswindows_finish_init_device):
15533         * device-msw.c (msw_get_workspace_coords):
15534         * device-msw.c (mswindows_device_system_metrics):
15535         and various other files, added support for a new
15536         device property called offset-workspace which returns the position
15537         of the upper left corner of the workspace area and goes along with
15538         the existing size-workspace property.
15539
15540         * dialog-msw.c:
15541         * dialog-msw.c (push_bufbyte_string_as_unicode):
15542         * dialog-msw.c (mswindows_popup_dialog_box):
15543         Added support for XEmacs-style accelerator specifications in
15544         button text.  Note: I didn't add support for this under X Windows,
15545         and somebody needs to do this.
15546
15547         * dialog.c:
15548         * dialog.c (Fpopup_dialog_box):
15549         Documented the support for accelerators that was just mentioned.
15550
15551         editfns.c (get_home_directory): Changed behavior under Windows
15552         when HOME not defined; former behavior was irretrievably broken.
15553
15554         * emacs.c:
15555         * emacs.c (main_1):
15556         * emacs.c (main):
15557         * minibuf.c (clear_echo_area_internal):
15558         * minibuf.c (echo_area_append):
15559         * print.c:
15560         * print.c (std_handle_out_external):
15561         * print.c (std_handle_out_va):
15562         * print.c (fatal):
15563         * print.c (write_string_to_stdio_stream):
15564         * print.c (output_string):
15565         * print.c (debug_print):
15566         * print.c (debug_backtrace):
15567         * print.c (debug_short_backtrace):
15568         Cleaned up the code that prints text to stdout so that this can be
15569         changed to output into a console window instead under MS Windows,
15570         as described above.
15571
15572         * eval.c:
15573         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15574         * eval.c (internal_catch):
15575         * eval.c (unwind_to_catch):
15576         * eval.c (throw_or_bomb_out):
15577         * eval.c (condition_case_1):
15578         * eval.c (signal_1):
15579         * eval.c (check_error_state_sanity):
15580         * eval.c (call_with_suspended_errors_1):
15581         * eval.c (call_with_suspended_errors):
15582         * eval.c (reinit_vars_of_eval):
15583         Added code to catch throw loops and check for a pesky bug that may
15584         be gone now.
15585
15586         * event-msw.c:
15587         * event-msw.c (key_needs_default_processing_p):
15588         * event-msw.c (mswindows_wnd_proc):
15589         * event-msw.c (mswindows_modifier_state):
15590         * event-msw.c (emacs_mswindows_quit_p):
15591         * event-msw.c (vars_of_event_mswindows):
15592         a) Added support for using the alt key to select menu items as is
15593         standard under MS Windows.  This is controlled using the variable
15594         menu-accelerator-enabled, just like under X Windows.  There is an
15595         option on the options menu to turn this support on.  I really
15596         think that it should be on by default under Windows, but I'm not
15597         going to make this change yet.
15598
15599         b)  Added support for dynamic display size changes under Windows.
15600
15601         * event-stream.c:
15602         * event-stream.c (maybe_echo_keys):
15603         * event-stream.c (Fnext_event):
15604         * event-stream.c (command_builder_find_leaf):
15605         * event-stream.c (lookup_command_event):
15606         * event-stream.c (execute_command_event):
15607         * event-stream.c (pre_command_hook):
15608         * event-stream.c (post_command_hook):
15609         * event-stream.c (syms_of_event_stream):
15610         * event-stream.c (vars_of_event_stream):
15611         * event-stream.c (complex_vars_of_event_stream):
15612         * events.h (struct command_builder):
15613
15614         a) Tried to clean up a little bit the horribly written x-specific
15615         accelerator code that crept into this file.  I moved this code
15616         into menubar-x.c where it belongs. I also needed to move the
15617         command builder structure into the file events.h because it is
15618         accessed directly by this accelerator code.  What I didn't do, but
15619         which should be done at some point, is to properly abstract this
15620         code using device methods instead of the kludgy way that it
15621         currently hooks into the event code.
15622
15623         b) Added the lisp variables this-command-properties and
15624         last-command- properties, which should be used to synchronize two
15625         adjacent commands in preference to playing games with the variable
15626         this-command, which is typically what happens.
15627
15628         c) Added some slightly nasty code to hook into the lisp support
15629         for shifted- motion-key selection.  This is actually necessary for
15630         somewhat complicated reasons, which are described in
15631         simple.el. (NB: I think the proper thing would be to have the code
15632         that calls the pre and post command hooks also call out to generic
15633         lisp functions in simple.el, where all built-in stuff could be
15634         added.  I will think about this more.)
15635
15636         * event-unixoid.c (poll_fds_for_input):
15637         * lread.c (readchar):
15638         * redisplay-tty.c (tty_clear_frame):
15639         * redisplay-x.c (x_get_gc):
15640         * signal.c (interrupt_signal):
15641         And a whole bunch of other files: fixed up places that printed
15642         directly to stderr to instead call the function stderr_out so that
15643         the changes I made under Windows work correctly.
15644
15645         * filemode.c (mode_string):
15646         Warning fixes.
15647
15648         * frame-msw.c:
15649         * frame-msw.c (mswindows_size_frame_internal):
15650         Fixed the computation of frame size and position to keep the frame
15651         within the workspace area, rather than within the physical
15652         dimensions of the screen, so that the frame doesn't overlap window
15653         manager decorations, such as the start menu and toolbar, typically
15654         at the bottom of the screen.
15655
15656         * frame.c (vars_of_frame):
15657         Changed the default frame title format under MS Windows to consist
15658         of buffername-XEmacs, which is standard under MS Windows.  I think
15659         it might be a good idea to change this everywhere because I think
15660         it is superior to the current frame title format, but this is the
15661         kind of change that is likely to cause some people to get annoyed,
15662         so I'm not making it.
15663
15664         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15665
15666         * gui-msw.c (mswindows_handle_gui_wm_command):
15667         Fixed compile warnings.
15668
15669         * gui-x.c:
15670         * gui-x.c (strdup_and_add_accel):
15671         * gui-x.c (button_item_to_widget_value):
15672         * gui-x.h:
15673         Added code to automatically put an accelerator onto the beginning
15674         of menu items that don't have one as is now the standard, and is
15675         described more later.  Also fixed things so that the menu item
15676         name can be an evaluated expression, again a new standard.
15677
15678         * gui.c:
15679         * gui.c (gui_item_add_keyval_pair):
15680         * gui.c (make_gui_item_from_keywords_internal):
15681         * gui.c (gui_add_item_keywords_to_plist):
15682         * gui.c (gui_item_accelerator):
15683         * gui.c (gui_name_accelerator):
15684         * gui.c (gui_item_included_p):
15685         * gui.c (gui_item_display_flush_left):
15686         * gui.c (gui_item_display_flush_right):
15687         * gui.c (parse_gui_item_tree_item):
15688         * gui.c (parse_gui_item_tree_children):
15689         * gui.c (parse_gui_item_tree_list):
15690         Mule-ized.  Cleanup.  GCPRO addition.
15691
15692         * line-number.c (buffer_line_number):
15693         * lisp.h:
15694         * lisp.h (EMACS_INT_MAX):
15695         Added the manifest constant EMACS_INT_MIN corresponding to the
15696         existing constant EMACS_INT_MAX.  This is partially to fix compile
15697         warnings under Windows, and partly for cleanliness.
15698
15699         * menubar-msw.c:
15700         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15701         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15702         * menubar-msw.c (displayable_menu_item):
15703         * menubar-msw.c (populate_menu_add_item):
15704         * menubar-msw.c (populate_or_checksum_helper):
15705         * menubar-msw.c (populate_menu):
15706         * menubar-msw.c (update_frame_menubar_maybe):
15707         * menubar-msw.c (prune_menubar):
15708         * menubar-msw.c (msw_char_is_accelerator):
15709         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15710         * menubar-msw.c (mswindows_handle_wm_command):
15711         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15712         * menubar-msw.c (mswindows_handle_wm_initmenu):
15713         * menubar-msw.c (mswindows_update_frame_menubars):
15714         * menubar-msw.c (mswindows_free_frame_menubars):
15715         * menubar-msw.c (mswindows_popup_menu):
15716         Fixed a bug in handling accelerators where an extra character
15717         would be displayed in the menu item.  Also generalized the
15718         function displayable_menu_item because it is now used by the
15719         dialog box code as well.  And finally, added code in the functions
15720         that create the menubar to extract a list of accelerators for the
15721         top level menubar, which is used in the event code to determine
15722         whether a particular alt-key combination should be used to invoke
15723         a menu item, or should be passed through to access the standard
15724         XEmacs keymap binding for this key combination.
15725
15726         Much needed GCPROing.
15727
15728         * menubar-x.c:
15729         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15730         * menubar-x.c (menu_item_descriptor_to_widget_value):
15731         * menubar-x.c (restore_in_menu_callback):
15732         * menubar-x.c (x_popup_menu):
15733         * menubar-x.c (menu_move_up):
15734         * menubar-x.c (menu_move_down):
15735         * menubar-x.c (menu_move_left):
15736         * menubar-x.c (menu_move_right):
15737         * menubar-x.c (menu_select_item):
15738         * menubar-x.c (command_builder_operate_menu_accelerator):
15739         * menubar-x.c (menu_accelerator_junk_on_error):
15740         * menubar-x.c (command_builder_find_menu_accelerator):
15741         * menubar-x.c (Faccelerate_menu):
15742         * menubar.h:
15743         Moved a whole bunch of code here that was previously in
15744         event-stream.c as described above.  There is also code connected
15745         to the new standard of adding an accelerator to the beginning of
15746         menu items that don't have one as described above and below.
15747
15748         * menubar.c:
15749         * menubar.c (menu_parse_submenu_keywords):
15750         * menubar.c (Fmenu_find_real_submenu):
15751         * menubar.c (Fnormalize_menu_item_name):
15752         * menubar.c (syms_of_menubar):
15753         * menubar.c (vars_of_menubar):
15754         * menubar.c (complex_vars_of_menubar):
15755
15756         a) Cleaned up a bunch of documentation and improved it.
15757
15758         b) XEmacs now automatically adds an accelerator onto the beginning
15759         of any menu items that don't have one.  I did this because there
15760         will inevitably be some menu items on the main menubar that don't
15761         have accelerators on them because the package that adds that
15762         particular menu item hasn't yet been fixed up to have accelerators
15763         in them and it looked rather strange to have some items with and
15764         some items without accelerators, especially since even in items
15765         without accelerators, you can, at least under windows, still
15766         access the item through an accelerator corresponding to the first
15767         character in the item's name.  If people don't like this behavior,
15768         I can add a variable to turn it off optionally, but I'm not sure
15769         this is a good idea because we really do need to have accelerators
15770         on all of the menu items, and if a package doesn't like the
15771         accelerators being put on the first character, then it should put
15772         the accelerators where they belong.
15773
15774         c) I made a behavior change, which is that the descriptor that
15775         specifies the text of the menu item, which formerly was just a
15776         string, can now also be an evaluated expression.  This makes this
15777         descriptor parallel with all of the others, which could also be
15778         evaluated expressions.  This also obviates the need for the
15779         keyword :label, which was previously listed in the documentation
15780         as unimplemented, and which was for the same purpose.
15781
15782         d) GCPROing.
15783
15784         * ntproc.c:
15785         * ntproc.c (new_child):
15786         * ntproc.c (sys_spawnve):
15787         * ntproc.c (find_child_console):
15788         * ntproc.c (sys_kill):
15789         Fixed compile warnings.  By the way, this file should really go
15790         away entirely, and this will happen as soon as Kirill makes his
15791         final round of process cleanups, which affect the function
15792         call-process.
15793
15794         * process-nt.c:
15795         * process-nt.c (struct nt_process_data):
15796         * process-nt.c (find_process_from_pid):
15797         * process-nt.c (send_signal_the_nt_way):
15798         * process-nt.c (enable_child_signals):
15799         * process-nt.c (find_child_console):
15800         * process-nt.c (send_signal_the_95_way):
15801         * process-nt.c (nt_finalize_process_data):
15802         * process-nt.c (ensure_console_window_exists):
15803         * process-nt.c (nt_create_process):
15804         * process-nt.c (nt_kill_child_process):
15805         * process-nt.c (nt_kill_process_by_pid):
15806         * process-nt.c (nt_open_network_stream):
15807         * process-nt.c (vars_of_process_nt):
15808         Copied over code from Emacs 20.5 to correctly send signals to sub-
15809         processes under Windows 95.  Also added code to automatically
15810         create and hide console window when a sub-process is created under
15811         Windows 95, which obviates the need for the separate runemacs.exe
15812         executable, and finally implemented some variables that were
15813         implemented in Emacs 20.5, but previously not in XEmacs.  These
15814         include mswindows- start-process-share-console and
15815         mswindows-start-process-inherit-error-mode. (Both of these only
15816         apply to Windows 95.)
15817
15818         * regex.c (regex_compile): Fixed a compile warning.
15819
15820         * select-msw.c:
15821         * select-msw.c (mswindows_own_selection):
15822         * select-msw.c (mswindows_get_foreign_selection):
15823         * select-msw.c (mswindows_disown_selection):
15824         * select-msw.c (console_type_create_select_mswindows):
15825         * select-msw.c (syms_of_select_mswindows):
15826         Cleaned up the file and implemented the device method
15827         selection_exists_p, which had accidentally been left out.  Also
15828         removed four lisp functions that were remnants from before the
15829         time when the selection code was properly device abstracted.
15830         These functions are no longer needed because there are generic
15831         equivalents, and because they were added recently and don't exist
15832         in FSF Emacs, I don't think there's any problem with just deleting
15833         them.
15834
15835         * sysdep.c:
15836         * sysdep.c (sys_subshell):
15837         Fixed a compile warning, although in this case there's probably
15838         something wrong with this code, and it ought to be looked into
15839         more thoroughly by somebody who understands it.
15840
15841         * window.c:
15842         * window.c (Fwindow_text_area_height):
15843         * window.c (Fwindow_width):
15844         * window.c (Fwindow_full_width):
15845         * window.c (Fwindow_pixel_width):
15846         * window.c (debug_print_window):
15847         * window.c (syms_of_window):
15848         Added functions window-text-area-height and window-full-width,
15849         which are functions for returning various width and height
15850         characteristics of a window. (One of these functions is necessary
15851         for making the file dialog box work correctly, and the other one
15852         was added for completeness.)  Also added a table to the
15853         documentation for window-height which describes the entire scheme
15854         for accessing width and height characteristics of a window.
15855
15856 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15857
15858         * nt.c (fstat): Added a comment for another problem with
15859         non-encapsulated [f]stat(), reported by Adrian Aichner
15860         <aichner@ecf.teradyne.com>.
15861
15862 2000-03-11  Andy Piper  <andy@xemacs.org>
15863
15864         * window.c (make_dummy_parent): initialize subwindow instance
15865         cache.
15866         (Fset_window_configuration): zero extent_modiff.
15867
15868 2000-03-10  Andy Piper  <andy@xemacs.org>
15869
15870         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15871         more changes can be triggered.
15872         (Fredisplay_frame): ditto.
15873         (Fredraw_device): ditto.
15874         (Fredisplay_device): ditto.
15875         (redisplay_frame): make non-static.
15876         (redisplay_frame): call update_frame_gutter_geometry outside of
15877         display proper.
15878
15879         * gutter.h: declare update_frame_gutter_geometry.
15880
15881         * redisplay.h: declare redisplay_frame.
15882
15883         * gutter.c (update_frame_gutter_geometry): move geometry changes
15884         in update_frame_gutters here. Geometry changes can only occur
15885         outside of redisplay.
15886         (update_frame_gutters): remove geometry change code.
15887         (Fredisplay_gutter_area): make sure that we are in display when we
15888         update and that we have flushed any size changes.
15889
15890 2000-03-11  Andy Piper  <andy@xemacs.org>
15891
15892         * alloc.c (pdump_dump_data): remove i & count shadows.
15893
15894 2000-02-27  Mike Alexander  <mta@arbortext.com>
15895
15896         * sysdep.h: Declare pdump_read_file
15897
15898         * sysdep.c (pdump_read_file): New function
15899
15900         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15901         dump data
15902
15903 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15904
15905         * lrecord.h: add `lrecord_type_pgsetenv'.
15906
15907 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15908
15909         * symsinit.h: declare (vars|syms)_of* functions.
15910         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15911
15912 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15913
15914         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15915
15916         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15917         GCCs.
15918
15919         * emacs.c (main_1): Call postgres initialization code.
15920
15921         * postgresql.h: New file.  PostgreSQL RDBMS support.
15922         * postgresql.c: New file.
15923
15924 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15925
15926         * redisplay-output.c (redisplay_output_display_block): Disable
15927         redundant code.
15928
15929 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15930
15931         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15932         (Fcanna_henkan_next): Ditto.
15933         (Fcanna_bunsetu_henkou): Ditto.
15934         (Fcanna_henkan_kakutei): Ditto.
15935         (Fcanna_henkan_end): Ditto.
15936         (Fcanna_henkan_quit): Ditto.
15937         (Fcanna_henkan_next): Set retun value correctly.
15938         (c2mu): Use unsigned char instead of signed char.
15939
15940 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15941
15942         * emacs.c (main_1): Always call syms_of_gui.
15943         * inline.c: include gui.h
15944
15945 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15946
15947         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15948         converted to Lisp_Object.
15949         (Qtop_bottom): New variable.
15950         (syms_of_redisplay): Initialize it.
15951         * redisplay.h (Vvisible_bell): Ditto.
15952         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15953         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15954         only flash top and bottom.
15955
15956 2000-03-08  Andy Piper  <andy@xemacs.org>
15957
15958         * buffer.c (Frename_buffer): record new buffer name the right way.
15959
15960 2000-03-08  Andy Piper  <andy@xemacs.org>
15961
15962         * glyphs.c (update_subwindow): increase hash depth so that widget
15963         items get picked up properly.
15964
15965         * redisplay-output.c (compare_runes): increase hash depth so that
15966         widget items get picked up properly.
15967
15968 2000-03-08  Andy Piper  <andy@xemacs.org>
15969
15970         * gutter.c (output_gutter): add some debug.
15971
15972         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15973         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15974         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15975
15976         * redisplay-output.c (compare_runes): use display_hash to
15977         determine if glyphs really are not the same.
15978
15979         * glyphs.c (update_subwindow): check display_hash to see if
15980         anything really needs to be updated. If not then do
15981         nothing. Record the display_hash after updating.
15982         (image_instance_equal): compare the image_instance face also.
15983
15984 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15985
15986         * redisplay.h: Fix comment style.
15987
15988 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15989
15990         * consle-msw.h (struct mswindows_frame):
15991         Added new member paint_pending to indicate whether a WM_PAINT
15992         magic event has been queued for this frame.
15993
15994         * event-msw.c (mswindows_drain_windows_queue):
15995         Don't queue a WM_PAINT magic event if one is already queued.
15996         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15997
15998         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15999
16000 2000-03-07  Didier Verna  <didier@xemacs.org>
16001
16002         * dired.c: #include `regex.h' after `sysfile.h'.
16003
16004 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16005
16006         * sound.c (init_nas_sound): Fix compiler warning.
16007
16008         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16009         (FREE_STRUCT_P):
16010         (MARK_STRUCT_AS_FREE):
16011         (MARK_STRUCT_AS_NOT_FREE):
16012         Make `gcc -fstrict-aliasing' work properly.
16013
16014 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16015
16016         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16017         (mswindows_delete_device): Call CoUnnitialize().
16018
16019         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16020
16021 2000-02-25    <CraigL@DyCon.com>
16022
16023         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16024         <errno.h>.
16025
16026         * sysdep.c: This extern declaration for environ prevents MinGW
16027         from finding the variable in CRTDLL.DLL.
16028
16029         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16030         windows headers.
16031         (SHGFI_EXETYPE): ..
16032         (WM_MOUSEWHEEL): ..
16033         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16034         definitions.
16035         (MMRESULT): Removed, now defined in cygwin's windows headers.
16036         (TIMECAPS): ..
16037         (uid_t,gid_t,pid_t,ssize_t): ..
16038         (_timeb): Removed, MinGW defines both _timeb and timeb.
16039         (HAVE_H_ERRNO): Added.
16040         (HAVE_TZNAME): Added, configure is not detecting this.
16041
16042 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16043
16044         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16045         * syntax.c (syntax_match): Use it.
16046
16047         * cmds.c: Import auto-fill-chars from FSF Emacs.
16048         (Vauto_fill_chars): New variables.
16049         (internal_self_insert): Check Vauto_fill_chars.
16050         (vars_of_cmds):
16051         Declare auto-fill-chars as a Lisp variable and initialize it.
16052
16053 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16054
16055         * fileio.c (Fmake_symbolic_link):
16056         (Ffile_symlink_p):
16057         Run handlers even if local machine doesn't have symlinks.
16058
16059 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16060
16061         * event-msw.c (mswindows_drain_windows_queue):
16062         Don't generate paint magic events for non-XEmacs frames.
16063
16064 2000-03-05  Andy Piper  <andy@xemacs.org>
16065
16066         * redisplay.c (redisplay_frame): generate_displayable_area and
16067         friends assumes that we are not in GC, we therefore have to make
16068         sure that this doesn't happen.
16069
16070         * gutter.c (calculate_gutter_size): generate_displayable_area
16071         assumes that we are not in GC, we therefore have to make sure that
16072         this doesn't happen.
16073
16074 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16075
16076         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16077
16078 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16079
16080         * redisplay.c (regenerate_window): Make sure we set a sane value
16081         for end_pos even if we jump out of the loop.
16082         (regenerate_window): Answer Ben's question :-).
16083         (start_end_of_last_line): Add may_error argument.
16084         (start_of_last_line):
16085         (end_of_last_line): Pass may_error = 0.
16086         (end_of_last_line_may_error): New function.
16087         (pixel_to_glyph_translation): Use it, so we don't crash in
16088         event_to_glyph.
16089
16090 2000-03-04  Andy Piper  <andy@xemacs.org>
16091
16092         * window.h (struct window): add gutter_extent_modiff.
16093
16094         * window.c (allocate_window): zero out gutter_extent_modiff.
16095
16096         * redisplay.h: declare sync_display_line_structs.
16097
16098         * redisplay.c (add_glyph_rune): add a better comment.
16099
16100         * redisplay-output.c (sync_display_line_structs): made non-static.
16101         (compare_runes): remove unneccesary glyph cachel access.
16102
16103         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16104
16105         * gutter.c (output_gutter): don't output the gutter if extent
16106         changes only involve extents in buffers. use 4 sets of display
16107         lines.
16108         (gutter_extent_signal_changed_region_maybe): new function. Mark
16109         extents in gutters as changed.
16110         (update_frame_gutters): use 4 sets of display lines.
16111         (reset_gutter_display_lines): ditto.
16112         (free_frame_gutters): ditto.
16113         (redraw_exposed_gutter): force output of gutters.
16114
16115         * frame.h (struct frame): add 4 sets of gutter display lines.
16116
16117         * extents.c: (extent_changed_for_redisplay): signal changes to
16118         extents in strings in the gutter as well as extents in buffers.
16119
16120 2000-03-02  Andy Piper  <andy@xemacs.org>
16121
16122         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16123
16124         * frame.c (Fmake_frame): make sure the gutters get initialized
16125         after the frame is visible.
16126         (set_frame_selected_window): re-arrange compilation macros a
16127         little.
16128         (change_frame_size_1): mark gutters changed.
16129
16130         * device.c (Fset_device_class): mark gutters changed.
16131
16132 2000-03-01  Andy Piper  <andy@xemacs.org>
16133
16134         * window.c (window_top_frame_gutter_height): deleted.
16135         (window_bottom_frame_gutter_height): ditto.
16136         (window_left_frame_gutter_height): ditto.
16137         (window_right_frame_gutter_height): ditto.
16138         (window_top_gutter_height): don't use them.
16139         (window_bottom_gutter_height): ditto.
16140         (window_left_gutter_width): ditto.
16141         (window_right_gutter_width): ditto.
16142         (Fsplit_window): ditto.
16143         (Fwindow_pixel_edges): don't use border dimensions here.
16144
16145         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16146         (update_scrollbar_instance): ditto.
16147
16148         * redisplay.c (generate_modeline): don't take gutters into account.
16149         (generate_modeline): ditto.
16150         (redisplay_frame): small gutter display optimization.
16151
16152         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16153
16154         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16155         gutters into account.
16156
16157         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16158         for window position and type.
16159
16160         * gutter.c (get_gutter_coords): fix for frame gutters.
16161         (update_frame_gutters): update frame geometry if the gutters have
16162         changed.
16163         (init_frame_gutters): record current gutter geometries.
16164
16165         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16166         var.
16167         (mswindows_widget_instantiate): ditto.
16168
16169         * frame.h (struct frame): add current_gutter_bounds.
16170
16171         * frame.c (change_frame_size_1): position window and minibuffer
16172         appropriately taking into account the frame gutters.
16173
16174         * frame-x.c: (x_initialize_frame_size): take into account the
16175         frame gutters.
16176
16177 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16178
16179         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16180
16181 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16182
16183         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16184
16185 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16186
16187         * file-coding.c (reset_decoding_stream): Clear previous
16188         detection state when autodetect.
16189
16190 2000-02-29  Didier Verna  <didier@xemacs.org>
16191
16192         * extents.c (set_extent_glyph_1): don't require extents to be
16193         attached.
16194
16195 2000-02-27  Andy Piper  <andy@xemacs.org>
16196
16197         * gutter.c (Fset_default_gutter_position): don't default left and
16198         right gutter visibility to t.
16199         (Fset_default_gutter_position): run
16200         default-gutter-position-changed-hook.
16201         (syms_of_gutter): add default-gutter-position-changed-hook.
16202
16203 2000-02-26  Andy Piper  <andy@xemacs.org>
16204
16205         * specifier.c (Fmake_specifier): add gutter references.
16206
16207         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16208
16209         * lisp.h: declare Fvalid_plist_p.
16210
16211         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16212         as changed.
16213         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16214         well as its visibility so that it gets reconstructed.
16215         (construct_window_gutter_spec): new function. Construct a string
16216         to be displayed in the gutter from a plist of strings. Take care
16217         to only use elements that are declared as visible.
16218         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16219         WINDOW_GUTTER.
16220         (gutter_validate): allow plists of strings in the specifier.
16221         (gutter_specs_changed): construct the real_gutter from the gutter
16222         specs using construct_window_gutter_spec.
16223         (gutter_visible_validate): gutter-visible is a new specifier type.
16224         (Fgutter_visible_specifier_p): new function for the new specifier.
16225         (syms_of_gutter): declare gutter-visible and
16226         Fgutter_visible_specifier_p.
16227         (specifier_type_create_gutter): intitalize new gutter-visible
16228         specifier.
16229         (reinit_specifier_type_create_gutter): ditto.
16230         (specifier_vars_of_gutter): use new specifier type for gutter
16231         visibility.
16232         (init_frame_gutters): construct real_gutter correctly.
16233         (Fgutter_specifier_p): beef up documentation.
16234         (Fgutter_size_specifier_p): ditto.
16235
16236         * winslots.h: add real_gutter slots.
16237
16238 2000-02-25  Andy Piper  <andy@xemacs.org>
16239
16240         * device-msw.c: Be kind to older cygwin versions. From Raymond
16241         Toy <toy@rtp.ericsson.se>.
16242
16243         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16244         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16245
16246 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16247
16248         * elhash.c (MARK_OBJ): Practice macro hygiene.
16249
16250 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16251
16252         * miscplay.c: s/__inline__/inline/g;
16253         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16254         (get_device_compdc): INLINE ==> static inline
16255         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16256         find -name '*.h' | \
16257         xargs global-replace \
16258         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16259
16260 2000-02-25  Andy Piper  <andy@xemacs.org>
16261
16262         * window.c (window_top_frame_gutter_height): new function.
16263         (window_top_window_gutter_height): ditto.
16264         (window_top_gutter_height): use them.
16265         (window_bottom_frame_gutter_height): new function.
16266         (window_bottom_window_gutter_height): ditto.
16267         (window_bottom_gutter_height): use them.
16268         (window_left_window_gutter_width): new function.
16269         (window_left_frame_gutter_width): ditto.
16270         (window_left_gutter_width): use them.
16271         (window_right_window_gutter_width): new function.
16272         (window_right_frame_gutter_width): ditto.
16273         (window_right_gutter_width): use them.
16274         (window_pixel_height): new function. calulate window pixel height
16275         with frame gutter involvement.
16276         (Fsplit_window): calculate new sizes taking frame gutters into
16277         account.
16278         (window_char_height_to_pixel_height): don't include frame gutters.
16279         (window_char_height): use window_pixel_height.
16280         (window_pixheight): rename from window_pixel_height.
16281         (change_window_height): use it.
16282         (window_pixel_height_to_char_height): don't include frame gutters.
16283         (window_char_width_to_pixel_width): ditto.
16284
16285 2000-02-25  Andy Piper  <andy@xemacs.org>
16286
16287         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16288         if it is.
16289
16290 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16291
16292         * alloc.c (staticpro):
16293         (staticpro_nodump):
16294         (dumpstruct):
16295         (dumpopaque):
16296         (pdump_wire):
16297         (pdump_wire_list):
16298         (compact_string_chars):
16299         (pdump_dump_wired):
16300         Convert:  if (foo) abort();  ==>  assert (! foo);
16301
16302         * eldap.c (Fldap_search_basic):
16303         (Fldap_add):
16304         (Fldap_modify):
16305         (Fldap_delete):
16306         Fix compiler warnings, and possible crashes if (random) return
16307         value were to be used.
16308
16309 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16310
16311         * device-msw.c: Workaround ResetDC failure.
16312
16313         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16314         applying a devmode.
16315
16316         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16317         (mswindows_text_width): Do not start printer page.
16318
16319         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16320
16321         * glyphs-msw.c: Added image methods to msprinter console and
16322         msprinter-specific image instantiation.
16323
16324 2000-02-20  Mike Alexander  <mta@arbortext.com>
16325
16326         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16327         to avoid crashes when selection-sets-clipboard is on
16328         (mswindows_own_selection): ditto
16329
16330 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16331
16332         * glyphs-msw.c:
16333         * redisplay-msw.c (get_frame_dc):
16334         (get_frame_compdc):
16335         * console-msw.h:
16336         * device-msw.c (mswindows_init_device):
16337         (mswindows_delete_device):
16338         (msprinter_init_device):
16339         (msprinter_delete_device):
16340         * frame-msw.c (mswindows_init_frame_1):
16341         (mswindows_delete_frame):
16342         (msprinter_init_frame_3):
16343         (msprinter_delete_frame): Move compatible DC to device object from
16344         frame object, for both mswindows and msprinter. Only one at a time
16345         is needed, it is a real waste to have one per frame!
16346
16347 2000-02-23  Andy Piper  <andy@xemacs.org>
16348
16349         * glyphs.c: add dynamic width and height elements.
16350         (image_instance_equal): ditto.
16351
16352         * glyphs-widget.c (widget_query_geometry): calculate width and
16353         height dynamically if required.
16354         (initialize_widget_image_instance): initialize dynamic dimensions.
16355         (widget_instantiate): pick-up dynamic dimensions.
16356
16357         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16358         dynamic determination. Add appropriate macros.
16359
16360         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16361         dimensions safe.
16362         (WINDOW_GUTTER_SIZE): ditto.
16363         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16364
16365         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16366         inline.
16367         (get_frame_dc): ditto.
16368
16369         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16370         here.
16371
16372 2000-02-23  Martin Buchholz <martin@xemacs.org>
16373
16374         * XEmacs 21.2.31 is released.
16375
16376 2000-02-22  Ben Wing <ben@xemacs.org>
16377
16378         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16379
16380 2000-02-22  Andy Piper  <andy@xemacs.org>
16381
16382         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16383
16384 2000-02-21  Mike Sperber <mike@xemacs.org>
16385
16386         * .dbxrc:
16387         * .gdbinit:
16388         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16389         variables.
16390
16391 2000-02-21  Mike Sperber <mike@xemacs.org>
16392
16393         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16394
16395 2000-02-21  Martin Buchholz <martin@xemacs.org>
16396
16397         * XEmacs 21.2.30 is released.
16398
16399 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16400
16401         Performance hacking.
16402         * *.c (syms_of_*):
16403         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16404         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16405         * emacs.c (main_1):
16406         * lisp.h (DEFUN):
16407         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16408         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16409         * symeval.h (DEFVAR_SYMVAL_FWD):
16410         * symbols.c (guts_of_unbound_marker):
16411         Make all c_readonly objects also lisp_readonly and marked for life.
16412         * lrecord.h (struct lrecord_implementation):
16413         Document flags better.
16414         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16415         * lrecord.h (DECLARE_LRECORD):
16416         * lrecord.h (XSETRECORD):
16417         * lrecord.h (RECORDP):
16418         * lrecord.h (RECORD_TYPEP):
16419         * lrecord.h (RECORD_MARKER): New.
16420         * lrecord.h (error_check_*):
16421         * lrecord.h (CONCHECK_NONRECORD):
16422         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16423         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16424         * lrecord.h (set_lheader_implementation):
16425         * lrecord.h (enum lrecord_type): New.
16426         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16427         * alloc.c (disksave_object_finalization_1):
16428         * alloc.c (mark_object):
16429         * alloc.c (lrecord_type_index):
16430         * alloc.c (tick_lcrecord_stats):
16431         * alloc.c (Fgarbage_collect):
16432         * alloc.c (init_alloc_once_early):
16433         * alloc.c (pdump_load):
16434         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16435         * alloc.c (lrecord_type_index): Delete.
16436         Make lisp object type indexes be constant.
16437           Makes (byte-compile) 5% faster.
16438         Put all marker functions into their own array.
16439           Makes (garbage-collect) 5% faster.
16440         Optimize SYMBOL_VALUE_MAGIC_P.
16441           Makes (byte-compile) 2-3% faster.
16442         * config.h.in (gc_checking_assert): New.
16443         * alloc.c: Use gc_checking_assert().
16444         * .dbxrc: Make compatible with new object type implementation.
16445         * .gdbinit: Make compatible with new object type implementation.
16446         * alloc.c: Delete all symbols defined only for debugging, such as
16447         Lisp_Type_Vector and lrecord_charset.
16448
16449 2000-02-21  Andy Piper  <andy@xemacs.org>
16450
16451         * gui-msw.c (Fmswindows_shell_execute): fix file location
16452         problems.
16453
16454         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16455         unshowing so that set_window_buffer doesn't undo
16456         kill_buffer_hook's hard work.
16457
16458         * glyphs-widget.c (tab_control_query_geometry): don't count the
16459         first item when calculating geometry.
16460
16461         * glyphs.c (map_subwindow): remove redundant code.
16462         (update_frame_subwindows): be more circumspect about when to
16463         update subwindows.
16464
16465         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16466         when items haven't changed. Update faces if faces have changed as
16467         well as just the widget face.
16468         (x_tab_control_update): Update faces if faces have changed as well
16469         as just the widget face.
16470
16471 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16472
16473         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16474         registration.
16475         (build_syscolor_string): Use mswindows_color_to_string to try to
16476         get a named color.
16477         (mswindows_device_system_metrics): Reverse the foreground and
16478         background colors so that they match the documentation.
16479
16480         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16481         they match the default Windows palette.
16482         (mswindows_color_to_string): New function.
16483
16484 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16485
16486         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16487
16488 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16489
16490         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16491         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16492
16493         * symbols.c (init_symbols_once_early): Removed obsolete
16494         DATA_SEG_BITS related kludge.
16495         (defvar_magic): Ditto.
16496
16497         * malloc.c: Removed obsolete DATA_SEG_BITS
16498         * ralloc.c: Ditto.
16499         * mem-limits.h: Ditto.
16500
16501         * Makefile.in.in: Removed obsolete HAVE_SHM
16502         * emacs.c: Ditto.
16503
16504 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16505
16506         *  device-msw.c (mswindows_delete_device): Free DDE string
16507         handles.
16508
16509 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16510
16511         * keymap.c (get_keyelt):
16512         * unexnt.c (unexec):
16513         * vm-limit.c (memory_warnings):
16514         * ntheap.c (recreate_heap):
16515         * ntheap.h (UNINIT_PTR):
16516         * select-msw.c (Fmswindows_get_clipboard):
16517         (Fmswindows_set_clipboard):
16518         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16519         * objects-msw.c:
16520         * menubar-msw.c (displayable_menu_item):
16521         * glyphs-msw.c:
16522         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16523         * sysdep.c (sys_subshell):
16524         * process-nt.c (nt_create_process):
16525         * nt.c (normalize_filename):
16526         (dostounix_filename):
16527         (unixtodos_filename):
16528         * ntproc.c (win32_executable_type):
16529         * ntplay.c (play_sound_data_1):
16530         (play_sound_file):
16531         * editfns.c (get_home_directory):
16532         * event-msw.c (struct winsock_stream):
16533         (mswindows_dde_callback):
16534         * device-msw.c (msprinter_init_device):
16535         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16536
16537         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16538         mswindows_clear_toolbar were swapped!
16539
16540         * objects-msw.c:(colormap_t):
16541         (fontmap_t):
16542         * emacs.c (struct standard_args): Fixed const jumble.
16543
16544         * glyphs-widget.c (update_widget): Fixed comparison notation.
16545
16546         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16547
16548         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16549         __declspec(noreturn) syntax.
16550
16551 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16552
16553         * eldap.c (Fldap_open):
16554         (Fldap_search_basic):
16555         (Fldap_add):
16556         (Fldap_modify):
16557         Use new coding system conversion macros.
16558
16559 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16560
16561         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16562
16563 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16564
16565         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16566         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16567
16568         * eldap.c (Qadd, Qreplace): New constant symbols
16569         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16570         interruptions by XEmacs signals
16571         Remove unnecessary calls to slow_down_interrupts and
16572         speed_up_interrupts
16573         (Fldap_search_basic): Renamed from Fldap_search_internal
16574         Added new optional parameter VERBOSE that triggers the
16575         display of progress messages
16576         Remove unnecessary calls to slow_down_interrupts and
16577         speed_up_interrupts
16578         LDAP result code analysis rewritten
16579         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16580         (syms_of_eldap): Define the new symbols and functions
16581
16582
16583 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16584
16585         * realpath.c: Determine PATH_MAX maximally portably.
16586
16587         * insdel.c (bytecount_to_charcount): Optimize.
16588         The function used to be optimized for entirely ASCII sequences.
16589         Now it is optimized for successive characters from the same
16590         charset.  This also wins big for _mostly_ ASCII sequences.
16591
16592         * fileio.c (Ffile_truename): convert return from realpath() using
16593         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16594         - Rewrite GCPROing slightly.
16595
16596         * sysdep.c (sys_open): Do filename conversion, like all other
16597         sys_* functions.  Fixes bug:
16598         (let ((file-name-coding-system 'iso-8859-2))
16599            (write-region x y latin2-name))
16600         ==> writes filename using internal encoding.
16601
16602 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16603
16604         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16605         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16606         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16607         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16608         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16609         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16610         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16611         (CONST_IF_NOT_DEBUG): Delete.
16612         * alloc.c (this_one_is_unmarkable): Delete.
16613         (mark_object): Don't check for this_one_is_unmarkable. Use the
16614         c_readonly flag instead.
16615         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16616
16617 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16618
16619         * event-msw.c (mswindows_drain_windows_queue):
16620         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16621         away redundant repaint events.
16622
16623 2000-02-17  Andy Piper  <andy@xemacs.org>
16624
16625         * redisplay.h: declare mark_redisplay_structs.
16626
16627         * redisplay.c (redisplay_window):
16628         (redisplay_frame): don't check subwindows_state_changed.
16629         (mark_redisplay): mark gutters here.
16630
16631         * glyphs.c: (instantiate_image_instantiator): always layout if we
16632         haven't done so already.
16633         (allocate_image_instance): don't mark as dirty.
16634         (update_subwindow): bind inhibit_quit.
16635
16636         * gutter.c (mark_gutters): new function.
16637
16638         * glyphs-x.c (x_update_widget): Always resize to get round a
16639         widget bug.
16640
16641         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16642         breaking absolutely everything.
16643
16644         * gutter.h: declare mark_gutters.
16645
16646 2000-02-16  Martin Buchholz <martin@xemacs.org>
16647
16648         * XEmacs 21.2.29 is released.
16649
16650 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16651
16652         * fns.c (size_bit_vector): Fix computation of the size.
16653
16654 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16655
16656         * *.[ch]: Change CONST to const globally.
16657         find -name '*.[ch]' | \
16658         xargs global-replace \
16659         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16660         - Remove vestigial references to CONST_IS_LOSING
16661
16662 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16663
16664         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16665         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16666         events instead of dispatching them directly.
16667         (mswindows_handle_paint): New function to do repainting.
16668         (mswindows_wnd_proc):
16669         (emacs_mswindows_handle_magic_event): Call above function.
16670
16671 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16672
16673         * objects-msw.c (mswindows_create_font_variant): Return the new
16674         font handle.
16675         (initialize_font_instance): Get font metrics from the underlined
16676         variant of the font to cope with the case where the underlined
16677         font has a bigger descent.
16678
16679 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16680
16681         * gui.c (gui_item_accelerator): Return the first underlined
16682         character in item name.
16683
16684 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16685
16686         * lisp.h: Added Qprinter.
16687
16688         * general.c (syms_of_general): Initialized it.
16689
16690         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16691         (get_frame_dc):
16692         (get_frame_compdc): Made inline.
16693
16694         * console.h (struct console_methods): Added eject_page method.
16695
16696         * frame.h: Added FRAME_DISPLAY_P and friends.
16697         Aligned backslahes in many macros in more readable fashion.
16698         Added page_number to struct frame, and an accessor macro
16699         for it.
16700
16701         * defice.h: Added DEVICE_DISPLAY_P and friends.
16702
16703         * device.c (Fdevice_printer_p): Used these.
16704
16705         * frame.c (allocate_frame_core): Initialize page number.
16706         (Fprint_job_page_number):
16707         (Fprint_job_eject_page): Implemented.
16708
16709         * frame-msw.c (msprinter_eject_page): Added method.
16710         (msprinter_start_page): Added.
16711
16712         * window.c (Fwindow_truncated_p): Fixed docstring.
16713         (Fwindow_last_line_visible_height): Implemented.
16714
16715 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16716
16717         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16718
16719 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16720
16721         * syntax.c (scan_words): Always advance at least one character.
16722
16723 2000-02-13  Andy Piper  <andy@xemacs.org>
16724
16725         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16726         to make sure the glyph is in the cachels.
16727
16728         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16729         global image instance flag.
16730         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16731         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16732
16733         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16734         (Fset_image_instance_property): mark layout as changed.
16735         (invalidate_glyph_geometry_maybe): mark layout as changed.
16736         (glyph_width): use new NEEDS_LAYOUT macro.
16737         (glyph_ascent): ditto.
16738         (glyph_descent): ditto.
16739         (glyph_height): ditto.
16740         (image_instance_layout): mark layout as clean after laying out.
16741         (update_subwindow): don't mark layout as clean here.
16742
16743         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16744         should no longer be needed.
16745
16746         * glyphs-x.c (x_update_widget): sanitize asserts.
16747         (x_finalize_image_instance): sanitize assignment to widgets.
16748
16749         * glyphs-widget.c (widget_instantiate): don't need to clear the
16750         layout flag here.
16751
16752 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16753
16754         * sysdep.c (getcwd): Use standard prototype.
16755         * sysdep.h (getcwd): Use standard prototype.
16756
16757         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16758         (sequence, start, end).
16759         Remove redundant type checking.
16760         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16761         view of `caller-protects') to avoid a crash where the real fix was
16762         found elsewhere.
16763
16764 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16765
16766         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16767
16768         * s/sol2.h: Remove feature macro initialization.
16769
16770         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16771         (vector_hash): New.  Code from internal_hash.
16772         * lrecord.h:
16773         Fix up allocation subsystem comments.
16774
16775         * config.h.in: Add __EXTENSIONS__ for Solaris.
16776
16777         * systime.h (EMACS_GETTIMEOFDAY): New.
16778         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16779         Remove Solaris-specific code.
16780         Use void* for the (ignored) second arg for gettimeofday().
16781
16782         * elhash.c (hash_table_hash): Implement it, finally.
16783         * elhash.c:  Use hashcode_t.
16784
16785         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16786         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16787
16788         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16789         * fns.c (size_bit_vector):
16790         * alloc.c (size_vector):
16791         (make_vector_internal):
16792         (make_bit_vector_internal):
16793         (sweep_bit_vectors_1):
16794         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16795
16796 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16797
16798         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16799         Include strings.h to avoid warnings for bzero and strcasecmp.
16800
16801 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16802
16803         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16804         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16805
16806         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16807         sequence.
16808
16809 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16810
16811         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16812         use a value field instead.
16813         (symbol_value_forward_forward): Use value field.
16814         (DEFVAR_SYMVAL_FWD): Use value field.
16815         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16816         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16817         (DEFVAR_CONST_INT): Ditto.
16818         (DEFVAR_BOOL): Ditto.
16819         (DEFVAR_CONST_BOOL): Ditto.
16820         (DEFVAR_INT_MAGIC): Ditto.
16821         (DEFVAR_BOOL_MAGIC): Ditto.
16822
16823         * symbols.c (guts_of_unbound_marker): Use value field.
16824         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16825         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16826
16827         * lisp.h: Declare dumpopaque and noninteractive1.
16828
16829         * alloc.c (dumpopaque): Added.
16830         (pdump_dump_opaquevec): Added.
16831         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16832         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16833         noninteractive.
16834
16835 2000-02-10  Andy Piper  <andy@xemacs.org>
16836
16837         * glyphs.c (image_instance_layout): if the size changes, mark it
16838         as such.
16839
16840         * redisplay-output.c (redisplay_output_layout): Update the
16841         subwindow here.
16842         (redisplay_output_subwindow): ditto.
16843
16844         * glyphs.c (update_subwindow): make sure we reset flags for
16845         layouts as well as everything else.
16846
16847         * glyphs-widget.c (layout_layout): don't need to set the instances
16848         dimensions here.
16849
16850 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16851
16852         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16853         not HAVE_DLOPEN, which is a lower-level thing.
16854
16855         * .cvsignore: Ignore gmon.out
16856
16857 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16858
16859         * .cvsignore: Ignore portable dumper xemacs.dmp file
16860
16861 2000-02-09  Andy Piper  <andy@xemacs.org>
16862
16863         * redisplay-output.c (redisplay_output_layout): be more clever
16864         about when we output based on the changed flags.
16865
16866         * glyphs.h (struct image_instantiator_methods): add update_method.
16867         (struct Lisp_Image_Instance): add changed flags. Declare new
16868         macros for manipulating them.
16869
16870         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16871         (image_instance_parent_glyph): find an image_instance's parent
16872         glyph or image_instance.
16873         (image_instance_layout): mark the size as changed.
16874         (set_image_instance_dirty_p): new function. mark an image
16875         instance, plus all of its parents, as dirty.
16876         (Fset_image_instance_property): use it.
16877         (Fglyph_animated_timeout_handler): use it.
16878         (update_subwindow): call update_widget and device methods for
16879         update_subwindow. Mark all changed flags as clean.
16880         (Fresize_subwindow): mark size as changed.
16881
16882         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16883         failures.
16884         (x_update_subwindow): only resize subwindows here.
16885         (x_update_widget): new function. Update all changed properties of
16886         a widget.
16887         (x_resize_subwindow): deleted.
16888         (x_widget_set_property): deleted.
16889         (x_progress_gauge_set_property): deleted.
16890         (x_progress_gauge_update): new function. Implement recorded
16891         changes.
16892         (x_tab_control_update): ditto.
16893         (x_tab_control_set_property): deleted.
16894         (console_type_create_glyphs_x): declare new functions.
16895         (image_instantiator_format_create_glyphs_x): ditto.
16896
16897         * glyphs-widget.c (widget_set_property): mark text changed.
16898         (update_widget): new function. Update properties of a widget.
16899         (widget_instantiate): for layouts make sure we set their
16900         children's parent correctly.
16901         (tab_control_set_property): new function. Record changes that will
16902         take place under redisplay's control.
16903         (progress_gauge_set_property): ditto.
16904         (image_instantiator_progress_guage): declare new functions.
16905         (image_instantiator_tab_control): ditto.
16906
16907         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16908         now.
16909         (mswindows_update_widget): new function. Update all properties on
16910         a widget that have changed.
16911         (mswindows_button_update): new function. Update a button's set
16912         state.
16913         (mswindows_tab_control_update): new function. Update the items in
16914         a tab.
16915         (mswindows_tab_control_set_property): deleted.
16916         (mswindows_progress_gauge_update): new function. Update the
16917         progress gauge's progress.
16918         (mswindows_widget_set_property): deleted. This is all done
16919         asynchronously now.
16920         (mswindows_progress_gauge_set_property): ditto.
16921         (console_type_create_glyphs_mswindows): declare new methods.
16922         (image_instantiator_format_create_glyphs_mswindows): ditto.
16923
16924         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16925         (msprinter_set_frame_properties): ditto.
16926
16927         * console.h (struct console_methods): Add update_widget_method.
16928
16929 2000-02-09  Andy Piper  <andy@xemacs.org>
16930
16931         * gui-msw.c (Fmswindows_shell_execute): Make
16932         mswindows-shell-execute industrial strength.
16933
16934 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16935
16936         * lrecord.h: Make macro argument `props' match member function `plist'.
16937         * fns.c (Fget):
16938         * fns.c (Fput):
16939         * fns.c (Fremprop):
16940         * fns.c (Fobject_plist):
16941         * alloc.c:
16942         * symbols.c:
16943         Object property list frobbing cleanup.
16944         - Allow any lisp object (compared with `eq'), not just symbols, as
16945           keys in object plists.
16946         - Move symbol plist frobbing into symbols.c, where it belongs.
16947         - Move string plist frobbing into alloc.c, where it belongs.
16948         - Everything's an lrecord now, so no need to test for symbolp, etc.
16949         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16950
16951         * extents.c: Reorder code to remove declarations.
16952
16953         * frame.h (store_in_alist): Remove useless declaration.
16954
16955 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16956
16957         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16958         * config.h.in: Add HAVE_XCONVERTCASE.
16959
16960 2000-02-07  Andy Piper  <andy@xemacs.org>
16961
16962         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16963         it breaks many things.
16964
16965 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16966
16967         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16968         actually can start a common comment type.
16969         * src/syntax.h (SYNTAX_END_P): ditto for end.
16970
16971 2000-02-07  Martin Buchholz <martin@xemacs.org>
16972
16973         * XEmacs 21.2.28 is released.
16974
16975 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16976
16977         * event-Xt.c (x_keysym_to_character): New.
16978         (maybe_define_x_key_as_self_inserting_character): New.
16979         (x_has_keysym): New.
16980         Auto-define all keys on the keyboard as self-insert-key.
16981
16982 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16983
16984         * menubar.c (vars_of_menubar): A small code simplification.
16985
16986         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16987
16988         * ExternalShell.c:
16989         * ExternalClient.c:
16990         * EmacsShell-sub.c:
16991         * EmacsManager.c:
16992         * EmacsFrame.c:
16993         Use consistent style for specifying X resources.
16994
16995         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16996         This makes (dontusethis-set-symbol-value-handler) actually usable.
16997
16998         * lrecord.h (lrecord_decription_type):
16999         * alloc.c (pdump_register_sub):
17000         (pdump_dump_data):
17001         (pdump_reloc_one):
17002         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17003         Comply with XEmacs coding style.
17004         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17005         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17006
17007         * keymap.c (Faccessible_keymaps):
17008         Make (accessible-keymaps map "\C-h") do the Right Thing.
17009         Make (accessible-keymaps map []) do the Right Thing.
17010         Make (accessible-keymaps map "") do the Right Thing.
17011         (check_keymap_definition_loop): New function.
17012         (keymap_store_internal): Keep luser from shooting self in foot,
17013           via (define-key ctl-x-4-map "p" global-map).
17014         Remove fullness slot from struct Lisp_Keymap, since hash tables
17015         are now reliable.
17016         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17017
17018 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17019
17020         * redisplay.c (init_redisplay): Fix small memory leak.
17021         * elhash.h:
17022         * elhash.c (pdump_reorganize_hash_table):
17023         Rename from reorganize_hash_table. Change prototype.
17024         Reuse the original memory for hentries.  Save 100k.
17025         * alloc.c (PDUMP_READ): new macro.
17026         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17027         * alloc.c: No need to #ifndef before #undef.
17028
17029         * print.c: Allow debug_print() to print readably by modifying
17030         debug_print_readably.  Use consistent variable names.
17031
17032         * .dbxrc: Try to get things to work even if stopped in a function
17033         without source available by explicitly specifying source files.
17034 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17035
17036         * unexnt.c (_start): Removed bogus code which caused loading heap
17037         from differrent executable file.
17038         Removed bogus assignment to _fmode, which caused inconsistencies.
17039
17040 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17041
17042         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17043         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17044         Do not preliminary `#define signal sigset'.
17045
17046         * systime.h: Do not prototype environ on windows nt and cygwin,
17047         this conflicts with system header.
17048
17049         * syssignal.h: Use correct define for WINDOWSNT
17050
17051         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17052         with system header.
17053
17054         * sysdep.c (near start of file): Fixed commentary and rearranged
17055         ifdefs in readable order.
17056         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17057         (start_of_text):
17058         (end_of_text):
17059         (end_of_data): Do not compile in if using PDUMP.
17060
17061         * symsinit.h: Prototyped vars_of_nt().
17062
17063         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17064         (find_child_console): Use it.
17065         (sys_kill): Use it.
17066
17067         * ntheap.h: Do not extern os_subtype.
17068
17069         * ntheap.c (cache_system_info): Do not cache unneeded:
17070         nt_major_version, nt_minor_version and os_subtype.
17071         (recreate_heap): Do not compile in when PDUMPing.
17072
17073         * nt.c (geteuid and friends): Use the new varibale
17074         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17075         (init_user_info): Removed the above mentioned hackery.
17076         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17077         stat has been fixed in the C runtime.
17078         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17079
17080         * file-coding.c (struct file_coding_dump): Do not define
17081         ucs_to_mule_table in the struct if not MULE.
17082         (struct struct lrecord_description fcd_description_1): Do not dump
17083         the above.
17084
17085         * emacs.c (main_1): Call vars_of_nt().
17086         (right before Fdump_emacs_data): Don't need lastfile if using both
17087         portabe dumper and system malloc.
17088
17089         * alloc.c (Fmemory_limit): Conditionalized out.
17090         (pdump): Use OPEN_BINARY for the portable dump file.
17091         (pdump_load): Ditto.
17092
17093 2000-02-02  Mike Alexander  <mta@arbortext.com>
17094
17095         * nt.c (convert_time): Set tm_isdst before calling mktime and
17096         avoid calling it at all if the compiler supports 64 bit integers.
17097         Also initialize utc_base_ft before using it.
17098
17099 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17100
17101         * frame.c (change_frame_size_1): Take f->internal_border_width
17102         into consideration when calculating the width of the frame.
17103
17104 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17105
17106         * window.c (frame_min_height):
17107         (frame_size_valid_p):
17108         (frame_pixsize_valid_p): Added.
17109         (check_frame_size): Generalized.
17110
17111         * window.h: Prototyped the above.
17112
17113         * lisp.h:
17114         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17115         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17116         Deleted Vwin32_* and Vbinary_process_* unused variables.
17117
17118         * device-msw.c (msprinter_init_device): Do not get printer font
17119         list; Added DEVMODE functions.
17120
17121         * frame-msw.c: Added lots of printer code.
17122
17123         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17124         general.c.
17125
17126         * console-msw.h: Added more msprinter device private slots.
17127
17128 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17129
17130         * event-msw.c (key_needs_default_processing_p): Added.
17131         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17132
17133 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17134
17135         * glyphs.c (image_instance_layout): Mark image instance as clean
17136         after layout.
17137         (glyph_dirty_p): Removed redundant function.
17138         (invalidate_glyph_geometry_maybe): Added.
17139         (update_glyph_cachel_data): Call it.
17140
17141         * glyphs.h: Prototyped it.
17142
17143         * redisplay.c (add_glyph_rune): Call it.
17144         (redisplay_window): Reset glyphs cachels when frame faces have
17145         changed, thus forcing recomputation of built-in border glyphs.
17146
17147 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17148
17149         * Makefile.in.in: Make portable dumper and purify play well together.
17150         Add imperfect, but better than nothing, support for pdump.
17151         Remove xemacs.dmp when temacs is re-generated.
17152         Don't ignore errors when dumping xemacs.
17153
17154         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17155
17156 2000-01-28  Andy Piper  <andy@xemacs.org>
17157
17158         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17159         (setup_normal_frame): ditto.
17160         (setup_frame_without_minibuffer): ditto.
17161         (setup_minibuffer_frame): ditto.
17162         (delete_frame_internal): ditto.
17163         (Fmake_frame_invisible): ditto.
17164         (Ficonify_frame): ditto.
17165
17166         * window.h: change Fset_window_buffer signature.
17167
17168         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17169         (Fset_window_buffer): allow recording of buffer if the window is
17170         the selected window.
17171         (window_loop): Use new Fset_window signature.
17172
17173 2000-01-23  Daniel Pittman  <daniel@danann.net>
17174
17175         * config.h.in: Added template for `HAVE_ATHENA_3D'
17176
17177 2000-01-29  Andy Piper  <andy@xemacs.org>
17178
17179         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17180
17181         * gutter.c (output_gutter): Don't output if the window isn't live.
17182
17183 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17184
17185         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17186         of 01/12/00: Moved SetFocus back here where it belongs.
17187
17188 2000-01-23  Andy Piper  <andy@xemacs.org>
17189
17190         * s/cygwin32.h: declare printer things.
17191
17192 2000-01-26  Andy Piper  <andy@xemacs.org>
17193
17194         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17195         Alexander.
17196
17197 2000-01-24  Andy Piper  <andy@xemacs.org>
17198
17199         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17200         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17201
17202         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17203
17204         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17205
17206         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17207
17208         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17209         (mswindows_output_display_block): Avoid local shadows.
17210
17211         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17212         (mswindows_enqueue_mouse_button_event): ditto.
17213         (mswindows_handle_gui_wm_command): remove declaration.
17214
17215         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17216         warnings.
17217
17218         * console-msw.h: Avoid shadows.
17219         (mswindows_get_toolbar_button_text):
17220         (emacs_mswindows_create_stream_pair):
17221         (emacs_mswindows_delete_stream_pair):
17222         (mswindows_handle_toolbar_wm_command): declare.
17223
17224         * device-msw.c (build_syscolor_string): Avoid shadows.
17225
17226 2000-01-23  Andy Piper  <andy@xemacs.org>
17227
17228         * glyphs-widget.c (widget_instantiate): reverse the items for
17229         layouts so that children are in the expected order.
17230
17231 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17232
17233         * ralloc.c: safe_bcopy ==> memmove
17234         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17235         * s/msdos.h: Remove BCOPY macros.
17236         * insdel.c (gap_right): Remove BCOPY conditional code.
17237         * insdel.c (gap_left): Remove BCOPY conditional code.
17238         XEmacs demands a working ANSI C compiler - hence memmove.
17239
17240         * regex.c (regex_compile): Remove accidental use of trigraphs.
17241
17242 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17243
17244         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17245         event timestamp.
17246
17247 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17248
17249         * event-msw.c (mswindows_drain_windows_queue): Added the
17250         parameter.
17251         (mswindows_need_event): Commented the call to
17252         mswindows_drain_windows_queue().
17253         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17254         only.
17255
17256         * console-msw.h: Moved a few function prototypes here from
17257         event-msw.c.
17258
17259         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17260         parameter from unsigned short to unsigned long.
17261         (Fmswindows_shell_execute): Added return value.
17262
17263 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17264
17265         * sysdep.c (init_system_name):
17266           process-unix.c (unix_canonicalized_host_name):
17267         Don't call freeaddrinfo() if getaddrinfo() fails.
17268
17269         * process-unix.c (unix_open_unix_network_stream):
17270         Moved the code to get a port # into address loop.
17271
17272 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17273
17274         * buffer.c (reinit_vars_of_buffer):
17275         The right place to initialize conversion_in_dynarr and
17276         conversion_out_dynarr.
17277
17278         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17279
17280         * process-unix.c (unix_canonicalize_host_name): Muleize.
17281         (unix_open_network_stream): Muleize.
17282
17283         * buffer.h: Fix up prototypes for ralloc.c functions.
17284
17285 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17286         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17287         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17288                 instead of gethostbyname()
17289         * process-unix.c: In unix_canonicalize_host_name() and
17290                 unix_open_network_stream(), add code to use getaddrinfo()
17291                 instead of gethostbyname().
17292
17293 2000-01-27  Daniel Pittman <daniel@danann.net>
17294
17295         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17296         libs when built with flat Athena.
17297
17298 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17299
17300         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17301         Use coding standards for function prototypes.
17302
17303 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17304
17305         * dialog-msw.c (push_lisp_string_as_unicode):
17306         * doc.c (unparesseuxify_doc_string):
17307         * dired.c (Fuser_name_completion_1):
17308         * dired.c (Fuser_name_all_completions):
17309         * dired.c (free_user_cache):
17310         * dired.c (user_name_completion):
17311         * console-x.c (get_display_arg_connection):
17312         * minibuf.c (clear_echo_area_internal):
17313         * minibuf.c (echo_area_append):
17314         * eldap.c (Fldap_open):
17315         * eldap.c (Fldap_search_internal):
17316         * frame-x.c (x_set_frame_text_value):
17317         * frame-x.c (x_set_frame_properties):
17318         * frame-x.c (x_create_widgets):
17319         * redisplay-tty.c (term_get_fkeys_1):
17320         * objects-x.c (x_parse_nearest_color):
17321         * objects-x.c (x_valid_color_name_p):
17322         * objects-x.c (x_initialize_font_instance):
17323         * objects-x.c (x_list_fonts):
17324         * objects-x.c (x_find_charset_font):
17325         * tooltalk.c (Fadd_tooltalk_message_arg):
17326         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17327         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17328         * process-unix.c (unix_create_process):
17329         * ntproc.c (sys_spawnve):
17330         * sound.c (Fplay_sound_file):
17331         * sound.c (Fplay_sound):
17332         * buffer.c (init_initial_directory):
17333         * buffer.c (init_buffer):
17334         * editfns.c (init_editfns):
17335         * editfns.c (Ftemp_directory):
17336         * editfns.c (Fuser_full_name):
17337         * editfns.c (uncache_home_directory):
17338         * editfns.c (get_home_directory):
17339         * editfns.c (Fuser_home_directory):
17340         * editfns.c (Fformat_time_string):
17341         * editfns.c (Fcurrent_time_string):
17342         * gui-x.c (button_item_to_widget_value):
17343         * database.c (Fopen_database):
17344         * event-Xt.c (x_to_emacs_keysym):
17345         * event-Xt.c (x_event_to_emacs_event):
17346         * event-Xt.c (describe_event_window):
17347         * event-msw.c (mswindows_wnd_proc):
17348         * glyphs-eimage.c (jpeg_instantiate):
17349         * glyphs-eimage.c (gif_instantiate):
17350         * glyphs-eimage.c (png_instantiate):
17351         * glyphs-eimage.c (tiff_instantiate):
17352         * glyphs-x.c (xbm_instantiate_1):
17353         * glyphs-x.c (x_xbm_instantiate):
17354         * glyphs-x.c (x_xface_instantiate):
17355         * glyphs-x.c (autodetect_instantiate):
17356         * glyphs-x.c (cursor_font_instantiate):
17357         * glyphs-x.c (x_widget_instantiate):
17358         * glyphs-x.c (x_widget_set_property):
17359         * glyphs-x.c (x_widget_property):
17360         * glyphs-x.c (BUILD_GLYPH_INST):
17361         * print.c (write_string_to_stdio_stream):
17362         * print.c (output_string):
17363         * print.c (Falternate_debugging_output):
17364         * print.c (Fexternal_debugging_output):
17365         * glyphs-msw.c (extract_xpm_color_names):
17366         * glyphs-msw.c (mswindows_xpm_instantiate):
17367         * glyphs-msw.c (bmp_instantiate):
17368         * glyphs-msw.c (resource_name_to_resource):
17369         * glyphs-msw.c (mswindows_resource_instantiate):
17370         * glyphs-msw.c (xbm_instantiate_1):
17371         * glyphs-msw.c (mswindows_xbm_instantiate):
17372         * glyphs-msw.c (mswindows_xface_instantiate):
17373         * glyphs-msw.c (mswindows_widget_instantiate):
17374         * glyphs-msw.c (add_tree_item):
17375         * glyphs-msw.c (add_tab_item):
17376         * glyphs-msw.c (mswindows_combo_box_instantiate):
17377         * glyphs-msw.c (mswindows_widget_property):
17378         * glyphs-msw.c (mswindows_combo_box_property):
17379         * glyphs-msw.c (mswindows_widget_set_property):
17380         * console.c (stuff_buffered_input):
17381         * objects-msw.c (mswindows_initialize_color_instance):
17382         * objects-msw.c (mswindows_valid_color_name_p):
17383         * objects-msw.c (mswindows_list_fonts):
17384         * objects-msw.c (mswindows_font_instance_truename):
17385         * bytecode.c (optimize_compiled_function):
17386         * select-x.c (symbol_to_x_atom):
17387         * select-x.c (x_atom_to_symbol):
17388         * select-x.c (hack_motif_clipboard_selection):
17389         * select-x.c (selection_data_to_lisp_data):
17390         * select-x.c (lisp_data_to_selection_data):
17391         * select-x.c (Fx_get_cutbuffer_internal):
17392         * select-x.c (Fx_store_cutbuffer_internal):
17393         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17394         * buffer.h (TO_INTERNAL_FORMAT): New function.
17395         * emacs.c (make_arg_list_1):
17396         * emacs.c (make_argc_argv):
17397         * emacs.c (main_1):
17398         * emacs.c (Fdump_emacs):
17399         * emacs.c (split_string_by_emchar_1):
17400         * file-coding.h:
17401         * lisp.h:
17402         * lstream.h:
17403         * symsinit.h:
17404         * device-x.c (x_init_device):
17405         * device-x.c (Fx_valid_keysym_name_p):
17406         * device-x.c (Fx_get_font_path):
17407         * device-x.c (Fx_set_font_path):
17408         * glyphs.c (bitmap_to_lisp_data):
17409         * glyphs.c (pixmap_to_lisp_data):
17410         * alloc.c (make_ext_string): Use coding system arguments.  Update
17411         all callers.
17412         * alloc.c (build_string):
17413         * callproc.c (child_setup):
17414         * callproc.c (init_callproc):
17415         * fileio.c (lisp_strerror):
17416         * fileio.c (directory_file_name):
17417         * fileio.c (Fexpand_file_name):
17418         * fileio.c (Ffile_truename):
17419         * fileio.c (Fsysnetunam):
17420         * fileio.c (Fdo_auto_save):
17421         * sysdep.c (sys_readdir):
17422         * tests.c: New file.  Allow adding C tests.
17423         Replace GET_* macros with a more comprehensible and flexible
17424         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17425         Modify all calls.
17426         Any coding system can be used to do format conversion.
17427         Eliminate enum external_data_format.
17428         Eliminate convert_to_external_format.
17429         Eliminate convert_to_internal_format.
17430         Make sure file-name, keyboard, terminal, and ctext are always
17431         defined as coding systems or aliases.  Make
17432         file-name-coding-system, terminal-coding-system, and
17433         keyboard-coding-system magical variables that are equivalent to
17434         defining the corresponding coding system aliases.
17435
17436         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17437         * file-coding.c (Fcoding_system_alias_p): New function.
17438         * file-coding.c (Fcoding_system_aliasee): New function.
17439         * file-coding.c (append_suffix_to_symbol): New function.
17440         * file-coding.c (dangling_coding_system_alias_p): New function.
17441         * file-coding.c (Ffind_coding_system):
17442         * file-coding.c (Fcopy_coding_system):
17443         * file-coding.c (encode_coding_no_conversion):
17444         * file-coding.c (syms_of_file_coding):
17445         * file-coding.c (vars_of_file_coding):
17446         Rewrite coding system alias code.
17447         Allow nested aliases, like symbolic links.
17448         Allow redefinition of coding system aliases.
17449         Prevent existence of dangling coding system aliases.
17450
17451         * dired.c (Fuser_name_completion_1):
17452         * dired.c (Fuser_name_all_completions):
17453         A crash would happen if user did QUIT in the middle of building
17454         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17455
17456         * lisp.h:
17457         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17458
17459         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17460         an unsigned char *.  Update all callers.
17461
17462 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17463
17464         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17465
17466 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17467
17468         * elhash.c (hentry_description): Use more portable definition.
17469         (resize_hash_table): Initialize new hentries using
17470         xnew_array_and_zero, thereby simplifying the code.
17471
17472         * mule-charset.c (make_charset): Make sure entire object is
17473         initialized, to avoid Purify warnings.
17474
17475         * alloc.c (resize_string): Fix unlikely crash with big strings.
17476
17477 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17478
17479         * realpath.c (xrealpath):
17480         Don't call getwd().
17481
17482 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17483
17484         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17485
17486 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17487
17488         * unexelfsgi.c (unexec): Change the way we decide which segment
17489         should be extended.
17490
17491         Assumption that .bss section should be outside the PT_LOADable
17492         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17493         it's present) is inside the 'data' segment. This would fail the
17494         test which was used to find a segment to grow and cover new
17495         heap. Instead of this assumption, I created another one - on IRIX
17496         the segment to grow should start below .bss and it's address
17497         should extent above the end of .bss. Once this segment is
17498         identified, it's grown to accommodate the new heap and new
17499         zero-length .bss section is added at the end of .data2.
17500
17501 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17502
17503         * eval.c (Feval): Wrong number of arguments should use original
17504         function, not the indirect_function version of it.
17505
17506 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17507
17508         * glyphs-x.c (x_button_instantiate): Don't add image if
17509         it is not a pixmap.
17510         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17511         is relative.
17512
17513 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17514
17515         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17516         declaration.
17517         (DEFVAR_INT_MAGIC): Ditto.
17518         (DEFVAR_BOOL_MAGIC): Ditto.
17519         * glyphs.h: Reindent backslash.
17520
17521 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17522
17523         * glyphs-widget.c (layout_query_geometry):
17524         (layout_layout): Use correct types for gheight, gwidth.
17525
17526 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17527
17528         * EmacsManager.c (QueryGeometry): Purified.
17529
17530 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17531
17532         * alloc.c (make_float): Make sure entire object is initialized, to
17533         avoid Purify warnings.
17534         (pdump_register_sub): Remove useless assignment.
17535         (pdump): Use xmalloc, not malloc.
17536         (pdump_load): Use xmalloc, not malloc.
17537
17538 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17539
17540         * callproc.c:
17541         * dired-msw.c:
17542         * fileio.c:
17543         * process-nt.c:
17544         * redisplay-msw.c:
17545         * sysdep.c: Removed redundant #include <windows.h>
17546
17547 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17548
17549         * frame.c (delete_frame_internal): Do not delete device when its
17550         implementation so declares.
17551         (delete_frame_internal): Set device selected frame to nil when
17552         last frame goes away.
17553
17554         * device-msw.c (msprinter_device_system_metrics): Implemented.
17555         (mswindows_device_system_metrics): Added 'device-dpi property.
17556
17557         * device.c: (Fdevice_printer_p): Added.
17558         Added 'offset-workspace device metric.
17559
17560         * console.h (device_metrics): Declared DM_offset_workspace.
17561
17562 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17563
17564         * fileio.c (Ffile_truename): Remove pointless and confusing
17565         initialization of elen.
17566
17567         * glyphs-widget.c: Compiler warning fixes.
17568
17569 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17570
17571         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17572         instead of a Lisp_Object as argument to make it consistent with
17573         the other LIVE_P macros.
17574         (CHECK_LIVE_PROCESS): New macro.
17575
17576         * process.c: Declare Qprocess_live_p.
17577         (Fprocess_live_p): New function.
17578         (create_process): Use PROCESS_LIVE_P.
17579         (read_process_output): Ditto.
17580         (set_process_filter): Ditto.
17581         (Fdelete_process): Ditto.
17582         (kill_buffer_processes): Ditto
17583         (process_send_signal): Use CHECK_LIVE_PROCESS.
17584         (Fprocess_input_coding_system): Check whether process is still
17585         alive (fix PR#1061).
17586         (Fprocess_output_coding_system): Ditto.
17587         (Fprocess_coding_system): Ditto.
17588         (Fset_process_input_coding_system): Ditto.
17589         (Fset_process_output_coding_system): Ditto.
17590
17591 2000-01-23  Andy Piper  <andy@xemacs.org>
17592
17593         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17594         layout and widget.
17595
17596         * glyphs.c (mark_image_instance): take into account changed
17597         image_instance format.
17598         (image_instance_equal): ditto.
17599         (image_instance_hash): ditto.
17600
17601         * glyphs-widget.c (widget_instantiate): Incorporate layout
17602         instantiation here. Delay layout of the layout until later.
17603         (layout_instantiate): deleted.
17604         (layout_query_geometry): new function. get the geometry of a
17605         layout.
17606         (layout_layout): layout a layout dynamically.
17607         (image_instantiator_widget): New function - splitting up
17608         image_instantiator_format_create_glyphs_widget for netwinder
17609         compilation.
17610         (image_instantiator_buttons):
17611         (image_instantiator_edit_fields):
17612         (image_instantiator_combo_box):
17613         (image_instantiator_scrollbar):
17614         (image_instantiator_progress_guage):
17615         (image_instantiator_tree_view):
17616         (image_instantiator_tab_control):
17617         (image_instantiator_labels):
17618         (image_instantiator_layout): ditto.
17619         (image_instantiator_format_create_glyphs_widget): Call preceding
17620         functions.
17621
17622 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17623
17624         * process.c (Fset_process_coding_system):
17625         * device-x.c (Fx_keysym_hash_table):
17626         Docstring fixes.
17627
17628         * lstream.c (Lstream_write): Return documented value, not 0.
17629
17630         * fileio.c (directory_file_name):
17631         (Fsubstitute_in_file_name):
17632         (Fsubstitute_insert_file_contents_internal):
17633         (Fwrite_region_internal):
17634         * emacs.c:
17635         * sysdep.c:
17636         * getloadavg.c:
17637         * systty.h:
17638         Remove vestigial APOLLO-conditional code.
17639
17640 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17641
17642         * getpagesize.h: Add guard macros.
17643         * libsst.h: Add guard macros.
17644         * libst.h: Add guard macros.
17645         * line-number.h: Add guard macros.
17646         * ndir.h: Add guard macros.
17647         * sysfloat.h: Add guard macros.
17648         * sysfile.h: Add guard macros.
17649         * sysproc.h: Add guard macros.
17650         * syswait.h: Add guard macros.
17651         * xintrinsic.h: Add guard macros.
17652         * xintrinsicp.h: Add guard macros.
17653         * xmmanager.h: Add guard macros.
17654         * xmmanagerp.h: Add guard macros.
17655         * xmprimitive.h: Add guard macros.
17656         * xmu.h: Add guard macros.
17657         * gpmevent.h: Add copyright statement. Add guard macros.
17658         * miscplay.h: Add guard macros.
17659         * *.h: Use consistent C-standards-approved guard macro names.
17660
17661         * opaque.c (make_opaque): Switch parameter order.
17662         * opaque.h (make_opaque): Switch parameter order.
17663         Update all callers.
17664         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17665
17666         * config.h.in (type_checking_assert): Added.
17667         (bufpos_checking_assert): Added.
17668
17669 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17670
17671         * alloc.c: Harmless pdump changes.
17672         - Use countof().
17673         - spell alignment correctly.
17674         * sysdep.c: Use countof()
17675
17676 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17677
17678         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17679         initially_selected_for_input() console method, default to 0.
17680         (semi_canonicalize_console_connection): Try to delegate to
17681         canonicalize_console_connection if no such console method.
17682         (canonicalize_console_connection): Vice versa.
17683         (print_console): Do not print nil connection.
17684
17685         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17686         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17687         (XDEVIMPF_FRAMELESS_OK): Added.
17688         (CONSOLE_INHERITS_METHOD): Added.
17689
17690         * console-msw.c (mswindows_canonicalize_console_connection):
17691         Added.
17692         (mswindows_canonicalize_device_connection): Added.
17693
17694         * console-msw.h (struct msprinter_device): Added this struct and
17695         accessor macros.
17696         (mswindows_device): Made fontlist a lisp object.
17697
17698         * device.c (semi_canonicalize_device_connection):  Try to delegate
17699         to canonicalize_device_connection if no such console method.
17700         (canonicalize_device_connection): Vice versa.
17701         (print_device): Do not print nil connection.
17702
17703         * device-msw.c (mswindows_init_device): Call InitCommonControls
17704         when have widgets.
17705         (mswindows_delete_device): Removed fontlist deallocation.
17706         (mswindows_mark_device): Added.
17707
17708         * events.c (event_equal): Added abort() at unreached code.
17709         (event_hash): Ditto.
17710
17711         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17712         fallback tags of Windows devices.
17713
17714         * general.c (syms_of_general): Initialized Qmsprinter.
17715
17716         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17717         of fallback tags of Windows devices.
17718
17719         * lisp.h: Declared Qmsprinter.
17720
17721         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17722         of strings.
17723         (mswindows_list_fonts): Ditto.
17724         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17725         that it can be used by both mswindows and msprinter devices.
17726         (initialize_font_instance): Added.
17727         (mswindows_initialize_font_instance): Use it.
17728         (msprinter_initialize_font_instance): Added.
17729
17730         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17731         and implementation flags check.
17732         (redisplay_without_hooks): Changed the call to the above.
17733         (Fredraw_device): Ditto.
17734         (Fredisplay_device): Ditto.
17735
17736         * redisplay-msw.c (get_frame_dc): Implemented.
17737         (get_frame_compdc): Implemented.
17738         (many functions): Use the two functions above to get device
17739         contexts, ether for a window or a printer.
17740
17741 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17742
17743         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17744         initialization here.
17745         (init_symbols_once_early): Call it.
17746         * emacs.c (main_1): Call it.
17747         * symsinit.h: Declare it.
17748
17749 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17750
17751         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17752         Lisp_Object.
17753         (pdump_backtrace): Ditto.
17754         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17755         (pdump_get_entry): Abort if trying to register a null pointer.
17756         (pdump_dump_data): Cleanup types when relocating.
17757         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17758         (pdump_dump_rtables): Remove bad casts.
17759         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17760         Lisp_Object instead of a EMACS_INT for the hashtable
17761         reorganization.
17762
17763 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17764
17765         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17766
17767         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17768
17769         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17770
17771         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17772
17773 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17774
17775         * faces.h (FACE_STRIKETHRU_P): Added.
17776
17777         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17778         of font variants.
17779
17780         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17781         (mswindows_set_dc_font): New function, aware of font variants,
17782         separated from mswindows_update_dc.
17783
17784         * objects-msw.h (struct mswindows_font_instance_data): Added
17785         definition.
17786
17787         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17788         cached fonts and the data structure.
17789         (mswindows_initialize_font_instance): Added creation of font data
17790         structure.
17791         (mswindows_print_font_instance): Print at least something.
17792         (mswindows_create_font_variant): Implemented.
17793         (mswindows_get_hfont): Implemented.
17794
17795 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17796
17797         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17798         prototyping problem with msvc.
17799
17800         * emacs.c (main_1): added syms_of_gui_mswindows() call
17801
17802         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17803         syms_of_gui_mswindows() function
17804
17805         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17806
17807 2000-01-18  Martin Buchholz <martin@xemacs.org>
17808
17809         * XEmacs 21.2.27 is released.
17810
17811 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17812
17813         * glyphs-eimage.c (struct tiff_error_struct):
17814         (tiff_error_func):
17815         (tiff_warning_func):
17816         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17817
17818         * unexmips.c:
17819         * unexhp9k3.c:
17820         * unexfreebsd.c:
17821         * unexec.c: Remove vestigial Lucid C code.
17822         * unexalpha.c:
17823         * unexaix.c:
17824         * termcap.c:
17825         * libsst.c: Ansify.
17826         Remove declarations of errno and strerror().
17827
17828         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17829
17830         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17831
17832 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17833
17834         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17835         Optimize.
17836
17837 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17838
17839         * md5.c:
17840         * file-coding.c:
17841         * file-coding.h:
17842         Change enum eol_type to eol_type_t.
17843
17844 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17845
17846         * gui.c (get_gui_callback): Check cons before accessing car.
17847
17848 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17849
17850         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17851         (XSETSPECIFIER_TYPE): Ditto.
17852
17853 2000-01-17  Didier Verna  <didier@xemacs.org>
17854
17855         * redisplay.c (generate_fstring_runes): compute string size in
17856         characters, not bytes.
17857
17858 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17859
17860         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17861
17862 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17863
17864         * print.c (print_error_message): Call print_prepare().
17865
17866 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17867
17868         * .dbxrc: Renamed from dbxrc.
17869
17870         * events.c (event_to_character):
17871         Use `assert (foo)' instead of `if (!foo) abort()'
17872
17873         * .gdbinit (xtype): Add documentation.
17874         * .gdbinit (check-temacs): New function.
17875         * .gdbinit (check-xemacs): New function.
17876         * dbxrc (check-xemacs): New function.
17877         * dbxrc (check-xemacs): New function.
17878
17879 2000-01-14  Andy Piper  <andy@xemacs.org>
17880
17881         * glyphs-widget.c (widget_query_geometry): Make sure that we
17882         calculate default dimensions correctly.
17883
17884 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17885
17886         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17887
17888         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17889         pdump_wire'd variable.
17890
17891         * emacs.c: (main_1): Conditionalized calls to
17892         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17893
17894 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17895
17896         * window.c (Fset_window_configuration):
17897         * sysdep.c (_start):
17898         * input-method-motif.c (res):
17899         * event-Xt.c (Xt_process_to_emacs_event):
17900         Simple compiler warning fixes.
17901
17902         * bytecode.c (funcall_compiled_function): Use the original
17903         function symbol on the backtrace list in preference to the
17904         compiled_function object in error messages.
17905
17906 2000-01-13  Andy Piper  <andy@xemacs.org>
17907
17908         * glyphs-x.c (update_widget_face): Make sure we update the widget
17909         background as well as foreground.
17910
17911 2000-01-13  Andy Piper  <andy@xemacs.org>
17912
17913         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17914         fields to subwindow.
17915         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17916         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17917         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17918         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17919
17920         * glyphs-widget.c (check_valid_tab_orientation): new function.
17921         (initialize_widget_image_instance): zero orientation and
17922         justification.
17923         (widget_instantiate): pick up orientation.
17924         (tab_control_query_geometry): return appropriate values for
17925         vertical tabs.
17926
17927         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17928         appropriate creation flags for left, right and bottom tabs.
17929
17930         * s/cygwin32.h: add tab definitions.
17931
17932 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17933
17934         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17935         frame upon hiding a subwindow.
17936         (mswindows_button_instantiate): Changed the push button style to
17937         BS_PUSHBUTTON.
17938         (mswindows_button_instantiate): Removed button BS_NOTIFY
17939         style.
17940         (mswindows_button_instantiate): Removed redundant check for
17941         a disabled gui item.
17942         (mswindows_button_instantiate): Made use of WS_TABSTOP
17943         consistent: "operable" controls (edit, button, tree, scroll) have
17944         this style, "display-only" ones (static, progress gauge) do
17945         not. This style is currently ignored by XEmacs though. Also,
17946         removed the WS_EX_CONTROLPARENT style - it is not for children,
17947         it is for their parents!
17948         (mswindows_edit_field_instantiate): Ditto.
17949         (mswindows_progress_gauge_instantiate): Ditto.
17950         (mswindows_tree_view_instantiate): Ditto.
17951         (mswindows_tab_control_instantiate): Ditto.
17952         (mswindows_scrollbar_instantiate): Ditto.
17953         (mswindows_combo_box_instantiate): Ditto.
17954         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17955         style to the "clip" window.
17956         (mswindows_button_instantiate): Removed compilation warning by
17957         equally typing terms of the ?: operator.
17958
17959 2000-01-12  Didier Verna  <didier@xemacs.org>
17960
17961         * redisplay.c (generate_fstring_runes): new parameter holding the
17962         last modeline-format extent.
17963         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17964         extent, fill the glyph block with it.
17965         (generate_fstring_runes): handle these parameters.
17966         (generate_formatted_string_db): ditto.
17967
17968         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17969         glyphs'extents in the modeline.
17970
17971 1999-01-11  Mike Woolley  <mike@bulsara.com>
17972
17973         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17974         256Mb, as a workaround for the non-starting problem many people
17975         have experienced.
17976
17977 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17978
17979         * console-tty.c (Fset_console_tty_output_coding_system):
17980         Force redrawing tty frame.
17981
17982 2000-01-10  Didier Verna  <didier@xemacs.org>
17983
17984         * redisplay.c (generate_fstring_runes): fix size computation bug.
17985
17986 2000-01-09  William M. Perry <wmperry@aventail.com>
17987
17988         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17989
17990 2000-01-09  Andy Piper  <andy@xemacs.org>
17991
17992         * glyphs-msw.c: index -> i to avoid shadows.
17993         (xbm_create_bitmap_from_data): make static.
17994         (check_valid_string_or_int): deleted.
17995         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17996
17997         * glyphs-x.c (x_update_subwindow): remove unused args.
17998
17999         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18000         back pointer - this is done in allocate_image_instance.
18001         (query_string_font): return Qnil to make the compiler happy.
18002         (unmap_subwindow): set to ~0 to make the compiler happy.
18003         (glyph_query_geometry): comment out until used.
18004         (glyph_layout): ditto.
18005
18006 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18007
18008         * insdel.c (signal_after_change): Remove extraneous unbind_to().