update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (allocate_character): New function.
4         (Fdefine_char): Use allocate_character().
5
6 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
9         (Ōkawara).
10
11 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * chartab.c (save_uint8_byte_table): Fixed problem when a property
14         is unloaded.
15         (save_uint16_byte_table): Likewise.
16
17 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * chartab.c (Fchar_feature_property): New function when LIBCHISE
20         is enabled.
21         (Fput_char_feature_property): Likewise.
22         (syms_of_chartab): Add new builtin functions
23         `char-feature-property' and `put-char-feature-property' when
24         LIBCHISE is enabled.
25
26 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
29         '=>iso-ir.
30         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
31
32 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
35         (make_charset): Add new argument `iso_ir'.
36         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
37         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
38         XEmacs CHISE.
39         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
40         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
41         XEmacs CHISE.
42         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
43         function `make_charset'.
44
45         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
46         (struct Lisp_Charset): Add new member `iso_ir'.
47         (CHARSET_ISO_IR): New macro.
48
49 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
52         code-point by GL charset.
53
54 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * concord.c (concord_id_validate): New function.
57         (structure_type_create_concord): Use `concord_id_validate' instead
58         of `concord_name_validate' to accept integer and character as =id.
59
60 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * concord.c (func_for_each_object): Fix bug about GC-protection.
63
64 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * concord.c (Fconcord_object_put): Check argument FEATURE is a
67         symbol.
68
69 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * text-coding.c (struct decoding_stream): Add new member
72         `bom_flag' in XEmacs CHISE.
73         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
74         in XEmacs CHISE.
75
76 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * mule-charset.c: Move definition of `=jis-x0208@1978' to
79         lisp/mule/mule-conf.el.
80
81 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
84         (make_charset): Add new argument `partial'.
85         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
86         (Fmake_reverse_direction_charset): Modify for `make_charset'.
87         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
88         CHISE.
89         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
90         `=jis-x0208' as a partial coded-charset.
91
92 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * text-coding.c (decode_add_er_char): Fix problem when a character
95         represented by an entity-reference is not defined.
96
97 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
100         Qrep_*.
101
102 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
105         (Kasagi).
106
107 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
110         is a relation feature.
111
112 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * chartab.c (syms_of_chartab): Define
115         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
116
117         * chartab.h (Q_denotational): New extern when UTF2000 or
118         HAVE_CONCORD is defined.
119         (Q_denotational_from): Likewise.
120         (Q_subsumptive): Likewise.
121         (Q_subsumptive_from): Likewise.
122
123 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * concord.c (concord_object_put): New function.
126         (Fconcord_object_put): Use `concord_object_put'.
127
128 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * concord.c (Fconcord_define_object): New function.
131         (syms_of_concord): Add new builtin function
132         `concord-define-object'.
133
134 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
137         (Kamo).
138
139 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * concord.c: Add EXFUN for Fconcord_object_get.
142         (Vconcord_genre_object_hash_table): New variable.
143         (concord_genre_cache_get_object): New function.
144         (concord_genre_cache_put_object): New function.
145         (Fconcord_make_object): Use object cache; put object-ID into `=id'
146         feature.
147         (Fconcord_object_put): Call `concord_index_sync' after
148         `concord_index_strid_put_obj'.
149         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
150
151 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * concord.c (Fconcord_decode_object): Do GCPRO for
154         Fconcord_make_object.
155         (func_for_each_object): Likewise; do GCPRO for
156         for_each_object_closure->function.
157         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
158         for_each_object_closure->function, for_each_object_closure->genre,
159         for_each_object_closure->ds and for_each_object_closure->ret.
160         (concord_object_validate): Do GCPRO for Fconcord_make_object.
161
162 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * concord.c: Add EXFUNs for Fconcord_decode_object and
165         Fconcord_object_put.
166         (Fconcord_make_object): Change order of arguments.
167         (Fconcord_decode_object): Modify for Fconcord_make_object.
168         (func_for_each_object): Likewise.
169         (concord_object_validate): Likewise.
170         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
171
172 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
175
176 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * concord.c (Fconcord_decode_object): Try to use readable print
179         form as a key of Concord-index.
180         (Fconcord_object_get): Try to use readable print form as an ID of
181         Concord-object.
182         (Fconcord_object_put): Try to use readable print form as an ID of
183         Concord-object and a feature value.
184         (Fconcord_object_spec): Try to use readable print form as an ID of
185         Concord-object.
186
187 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * concord.c (print_concord_object): Support readable form.
190
191 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * emacs.c (main_1): Call `structure_type_create_concord' when
194         HAVE_CONCORD is defined.
195
196         * symsinit.h (structure_type_create_concord): New prototype.
197
198         * concord.c (Qconcord_object): New variable.
199         (Qgenre): Likewise.
200         (Q_id): Likewise.
201         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
202         for directory.
203         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
204         char*> for genre-name.
205         (Fconcord_feature_list): Likewise.
206         (Fconcord_make_object): Likewise.
207         (Fconcord_decode_object): Likewise; use <char*> instead of
208         <unsigned char*> for feature_name and strid.
209         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
210         c_obj and feature_name.
211         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
212         char*> for c_value.
213         (struct closure_for_object_spec): Use <char*> instead of <unsigned
214         char*> for member `object_id'.
215         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
216         char*> for feature-name.
217         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
218         for c_obj.
219         (func_for_each_object): Cast to avoid warnings.
220         (Fconcord_foreach_object_in_feature): Use <char*> instead of
221         <unsigned char*> for genre_name and feature_name.
222         (concord_name_validate): New function.
223         (concord_object_validate): Likewise.
224         (concord_object_instantiate): Likewise.
225         (syms_of_concord): Add new builtin symbols `concord-object',
226         `genre' and `=id'.
227         (structure_type_create_concord): New function.
228
229 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * concord.c (Vconcord_ds_hash_table): New variable.
232         (Vconcord_genre_hash_table): New variable.
233         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
234         (Fconcord_ds_directory): New function.
235         (Fconcord_assign_genre): New function.
236         (Fconcord_genre_directory): New function.
237         (Fconcord_genre_ds): New function.
238         (Fconcord_feature_list): Allow to omit `ds'.
239         (Fconcord_make_object): Likewise.
240         (Fconcord_decode_object): Likewise.
241         (Fconcord_foreach_object_in_feature): Likewise.
242         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
243         Fconcord_assign_genre, Fconcord_genre_directory and
244         Fconcord_genre_ds.
245         (vars_of_concord): Setup Vconcord_ds_hash_table and
246         Vconcord_genre_hash_table.
247
248 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * concord.c (struct closure_for_each_object): Add new member
251         `ret'.
252         (func_for_each_object): Setup the return value to
253         `for_each_object_closure->ret'.
254         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
255         returns the value instead of Qt.
256
257 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * concord.c: New file.
260
261 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
264         `lrecord_type_concord_object'.
265
266 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * symsinit.h (syms_of_concord): New prototype.
269         (vars_of_concord): New prototype.
270
271         * emacs.c (main_1): Setup symbols and variable about concord if
272         HAVE_CONCORD is defined.
273
274         * config.h.in (HAVE_CONCORD): New macro.
275
276 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * chartab.c (Fput_char_attribute): For each character relation
279         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
280
281 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * chartab.c (Fput_char_attribute): Use
284         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
285         calling `put_char_composition'.
286
287 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Q_halfwidth_of): New variable.
290         (put_char_composition): Return `<-halfwidth' instead of
291         `=decomposition' for compatibility mapping to single character
292         tagged `narrow'.
293         (Fput_char_attribute): Convert char-specs in value of
294         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
295         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
296         for `<-halfwidth'.
297         (syms_of_chartab): Add new symbol `<-halfwidth'.
298
299 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (put_char_composition): Return
302         `<-formed@{isolated|initial|medial|final}' for compatibility
303         mapping to single character tagged
304         `{isolated|initial|medial|final}'.
305
306 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * chartab.c (Q_compat_of): Deleted.
309         (put_char_composition): Return `<-FOO' for compatibility mapping
310         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
311         of `symbol_name (XSYMBOL(...))'.
312         (Fput_char_attribute): Convert char-specs in value of
313         `{<-|->}font[^*]*' to characters and put reverse links.
314         (Fsave_char_attribute_table): Don't refer Q_compat_of.
315         (syms_of_chartab): Delete builtin symbol `<-compat'.
316
317 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * chartab.c (Q_circled_of): New variable.
320         (put_char_composition): Return `<-circled' instead of
321         `=decomposition' for compatibility mapping to single character
322         tagged `circle'.
323         (Fput_char_attribute): Convert char-specs in value of
324         `{<-|->}circled[^*]*' to characters and put reverse links.
325         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
326         for `<-circled'.
327         (syms_of_chartab): Add new symbol `<-circled'.
328
329 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * chartab.c (Qto_decomposition_at_circled): New variable.
332         (put_char_composition): Return `=>decomposition@circled' instead
333         of `=decomposition' for compatibility decomposition mapping tagged
334         `circle'.
335         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
336
337 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * chartab.c (Q_subscript_of): New variable.
340         (put_char_composition): Return `<-subscript' instead of
341         `=decomposition' for compatibility mapping to single character
342         tagged `sub'.
343         (Fput_char_attribute): Convert char-specs in value of
344         `{<-|->}subscript[^*]*' to characters and put reverse links.
345         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
346         for `<-subscript'.
347         (syms_of_chartab): Add new symbol `<-subscript'.
348
349 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
350
351         * chartab.c (Q_superscript_of): New variable.
352         (put_char_composition): Return `<-superscript' instead of
353         `=decomposition' for compatibility mapping to single character
354         tagged `super'.
355         (Fput_char_attribute): Convert char-specs in value of
356         `{<-|->}superscript[^*]*' to characters and put reverse links.
357         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
358         for `<-superscript'.
359         (syms_of_chartab): Add new symbol `<-superscript'.
360
361 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * chartab.c (Qto_decomposition_at_compat): Deleted.
364         (Qto_decomposition_at_superscript): New variable.
365         (put_char_composition): Use `=>decomposition@superscript' instead
366         of `=decomposition' for compatibility decomposition mapping tagged
367         `super'.
368         (Fput_char_attribute): Fix condition about `put_char_composition'.
369         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
370         add news symbol `=>decomposition@superscript'.
371
372 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
375         for compatibility decomposition mapping tagged FOO.
376         (Fput_char_attribute): Modify for `put_char_composition'.
377
378 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * chartab.c (Qto_decomposition_at_compat): New variable.
381         (Q_compat_of): Renamed from `Q_compatibility_of'.
382         (put_char_composition): Rename `Q_compatibility_of' to
383         `Q_compat_of'; return `=>decomposition@compat' for compatibility
384         decomposition mapping.
385         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
386         `Q_compat_of'.
387         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
388         `<-compatibility' to `<-compat'.
389
390 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * chartab.c (Q_compatibility_of): New variable.
393         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
394         object is proved to be a cons cell; return `<-compatibility' if
395         the first element of argument `value' is `compat'.
396         (Fput_char_attribute): Eliminate the first value if
397         `put_char_composition' returns `<-compatibility'.
398         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
399         for `<-compatibility'.
400         (syms_of_chartab): Add new symbol `<-compatibility'.
401
402 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
403
404         * chartab.c (Q_canonical): New variable.
405         (put_char_composition): Return a feature name: return
406         `->canonical' if argument `value' specifies single character.
407         (Fput_char_attribute): Use `put_char_composition' to determine
408         feature name for `=decomposition' or `->denotational'.
409         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
410         for `->canonical'.
411         (syms_of_chartab): Add new symbol `->canonical'.
412
413 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c (Qmap_decomposition): New variable.
416         (Fput_char_attribute): Convert `->decomposition' to
417         `=decomposition'.
418         (syms_of_chartab): Add new symbol `=decomposition'.
419
420 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * chartab.c (Fget_range_char_table): Fix serious problem when
423         `range' is nil.
424
425 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
426
427         * chartab.c (char_table_get_db): Use `read_from_c_string'.
428
429 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * lread.c (read_from_c_string): New function.
432
433         * lisp.h (read_from_c_string): New prototype.
434
435 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
436
437         * chartab.c (Fput_char_attribute): Convert char-specs in value of
438         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
439         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
440         for `{<-|->}Oracle-Bones[^*]*'.
441
442 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
445         (Kizu).
446
447 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * text-coding.c (Qccs_priority_list): New variable in XEmacs
450         CHISE.
451         (Fmake_coding_system): Support new property `ccs-priority-list' in
452         XEmacs CHISE.
453         (Fcoding_system_property): Likewise.
454         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
455         Vdefault_coded_charset_priority_list in XEmacs CHISE.
456         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
457         XEmacs CHISE.
458         (complex_vars_of_file_coding): Define new coding-system-property
459         `ccs-priority-list' in XEmacs CHISE.
460
461         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
462
463 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
466         changed to normal function.
467         (encode_char_2): Likewise.
468
469         * mule-charset.c (decoding_table_put_char): Copied from
470         char-ucs.h; changed to normal function.
471         (encode_char_2): Likewise.
472
473 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
476         New extern.
477         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
478         (encode_char_2_search_children): New inline function.
479         (encode_char_2): Refer
480         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
481         and use `encode_char_2_search_children'.
482
483 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * mule-charset.c
486         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
487         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
488         (vars_of_mule_charset): Add new variable
489         `display-coded-charset-priority-use-inheritance' and
490         `display-coded-charset-priority-use-hierarchy-order'.
491
492 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * char-ucs.h (Q_subsumptive): New extern.
495         (Q_denotational): Likewise.
496         (encode_char_2): Search children specified by `->subsumptive' and
497         `->denotational'.
498
499 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (complex_vars_of_mule_charset): Modify the
502         X-registry of `ucs-bmp'.
503
504 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * chartab.c (char-variants): Refer `->subsumptive',
507         `->denotational' and `->identical' as same as `->ucs-unified'.
508
509 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * chartab.c (Fput_char_attribute): Convert char-specs in value of
512         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
513         links.
514
515 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * text-coding.c: Add EXFUN for `Fregexp_quote'.
518         (decode_add_er_char): Fix problem about infinite loop when a CCS
519         specified in `coded-charset-entity-reference-alist' is not
520         existed.
521
522 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * mule-charset.c (syms_of_mule_charset): Rename
525         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
526
527 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * fns.c (simplify_char_spec): Don't allocate new character-object
530         if specified char_spec does not have any CCS-features.
531
532         * chartab.h: Add EXFUN for Fdefine_char.
533
534         * chartab.c: Delete EXFUN for Fdefine_char.
535
536 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * fns.c (simplify_char_spec): Use Fdefine_char instead of
539         Ffind_char for char-spec.
540
541 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * lisp-disunion.h (XCHARVAL): Fix condition about
544         SIZEOF_EMACS_INT.
545
546 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
549         <int> for `code'.
550         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
551         point; use <Emchar> instead of <int> for character-id.
552
553 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
556         (make_char): Likewise.
557         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
558         environment.
559         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
560         instead of <int> as the type of return value; use <Lisp_Object>
561         instead of <Emchar> as the type of argument.
562         (XCHARVAL[macro version]): Cast the result into <Emchar>.
563
564         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
565         syntaxcode> instead of <int>.
566
567 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
568
569         * chartab.c (put_char_composition): Use DECODE_CHAR to get
570         character corresponding with UCS code point.
571         (Fput_char_attribute): Likewise.
572
573         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
574         character in the UCS decoding-table if the char-id is not equal to
575         the UCS code point.
576
577 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
580         for aliases; write `description'; write
581         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
582         not 0.
583
584 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
585
586         * chartab.c (Fsave_char_attribute_table): Don't use
587         `save_charset_properties'.
588
589         * mule-charset.c (Fsave_charset_properties): Renamed from
590         `save_charset_properties' and changed to Lisp function again;
591         write property `type' as `CCS'; write properties `final-byte' and
592         `mother' if they exists.
593         (syms_of_mule_charset): Revive builtin function
594         `save-charset-properties' when HAVE_LIBCHISE is defined.
595
596 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
599         instead of Vexec_directory.
600         (char_attribute_system_db_file): Likewise.
601
602 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * chartab.c (Fsave_char_attribute_table): Use
605         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
606         defined.
607
608         * mule-charset.c (save_charset_properties): Renamed from
609         `Fsave_charset_properties'; changed to non-Lisp function.
610         (syms_of_mule_charset): Abolish builtin function
611         `save-charset-properties'.
612
613 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * mule-charset.c (Fsave_charset_properties): New function when
616         HAVE_LIBCHISE is defined.
617         (syms_of_mule_charset): Add new builtin function
618         `save-charset-properties' when HAVE_LIBCHISE is defined.
619
620 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * chartab.c (Fput_char_attribute): Convert char-specs in value of
623         `{<-|->}ancient[^*]*' to characters and put reverse links.
624         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
625         for `{<-|->}ancient[^*]*'.
626
627 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * chartab.c (Fput_char_attribute): Convert char-specs in value of
630         `{<-|->}original[^*]*' to characters and put reverse links.
631         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
632         for `{<-|->}original[^*]*'.
633
634 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
637
638 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (Qsystem_char_id): New variable.
641
642         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
643         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
644
645 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (Fput_char_attribute): When processing a reference of
648         a character, put into the end of the reversed reference of each
649         target character.
650
651 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * chartab.c (Q_same): Deleted.
654         (Q_same_of): Deleted.
655         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
656         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
657         for `{<-|->}same'.
658         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
659
660 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * chartab.c (Q_vulgar): Deleted.
663         (Q_vulgar_of): Deleted.
664         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
665         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
666         for `{<-|->}vulgar'.
667         (syms_of_chartab): Don't define `{<-|->}vulgar'.
668
669 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * chartab.c (Fput_char_attribute): Convert char-specs in value of
672         `{<-|->}wrong[^*]*' to characters and put reverse links.
673         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
674         for `{<-|->}wrong[^*]*'.
675
676 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * chartab.c (Q_vulgar): New variable.
679         (Q_vulgar_of): New variable.
680         (Fput_char_attribute): Convert char-specs in value of
681         `{->|<-}vulgar' to characters and put reverse links.
682         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
683         for `{->|<-}vulgar'.
684         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
685
686 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * text-coding.c (decode_add_er_char): Must to quote prefix string
689         as regexp.
690
691 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (put_char_ccs_code_point): Store characters of
694         =ucs whose code_points >= 0xF0000.
695
696 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
697
698         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
699         CHISE.
700         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
701         CHISE.
702         (complex_vars_of_mule_charset): Add new coded-charset
703         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
704         builtin characters over 0xEFFFF.
705
706         * chartab.c (syms_of_chartab): Don't define symbol
707         `system-char-id' in every case.
708
709         * char-ucs.h (Qsystem_char_id): New extern variable.
710         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
711
712 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
713
714         * text-coding.c (char_encode_utf8): Try to use entity-references
715         for U-000F0000 ...  U-0010FFFF.
716
717 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
718
719         * text-coding.c (ER_BUF_SIZE): New macro.
720         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
721         `er_buf'.
722         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
723         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
724
725 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * chartab.c (find_char_feature_in_family): New function.
728         (Fchar_feature): Use `find_char_feature_in_family' with
729         `->identical', `<-subsumptive' and `<-denotational'.
730
731 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * text-coding.c (char_encode_as_entity_reference): Allow prefix
734         within 8 characters; fix infinite loop.
735
736 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * chartab.c (Q_same): New variable.
739         (Q_same_of): New variable.
740         (Fput_char_attribute): Convert char-specs in value of
741         `{->|<-}same' to characters and put reverse links.
742         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
743         for `{->|<-}same'.
744         (syms_of_chartab): Add new symbols `{->|<-}same'.
745
746 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * chartab.c (Q_component): New variable.
749         (Q_component_of): Likewise.
750         (Fput_char_attribute): Convert char-specs in value of
751         `{->|<-}ideographic-component-forms' to characters and put reverse
752         links.
753         (syms_of_chartab): Add new symbols
754         `{->|<-}ideographic-component-forms'.
755
756 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
757
758         * chartab.c (Q_identical): New variable.
759         (Q_identical_from): New variable.
760         (Fchar_feature): Regard `->identical' as a feature to find
761         ancestors.
762         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
763         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
764         for `{->|<-}identical'.
765         (syms_of_chartab): Add new symbols `{->|<-}identical'.
766
767 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * char-ucs.h (encode_char_2): New inline function.
770         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
771
772 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * chartab.c (Fput_char_attribute): Convert char-specs to
775         characters in value of `ideographic-structure'.
776         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
777         for `{<-|->}simplified(@...)'.
778         (Fdefine_char): Try to use predefined character's id.
779
780 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * fns.c (simplify_char_spec): Try to convert builtin chars to
783         defined chars.
784
785 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * chartab.c (Fput_char_attribute): Convert char-specs in value of
788         `<-simplified[^*]*' to characters and put reverse links.
789
790 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
791
792         * chartab.c (Q_subsumptive): Renamed from Q_unified.
793         (Q_subsumptive_from): Renamed from Q_unified_from.
794         (Fchar_feature): Use `Q_subsumptive_from' instead of
795         `Q_unified_from'.
796         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
797         `Q_unified'.
798         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
799         `<-unified' to `<-subsumptive'.
800
801 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
804         inheritance itself; fix typo; stop recursive search if cyclic
805         inheritance is found.
806
807 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
808
809         * chartab.c (Q_denotational): New variable.
810         (Q_denotational_from): New variable.
811         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
812         (put_char_attribute): New function.
813         (Fput_char_attribute): Use `put_char_attribute'; regard
814         `->denotational' and `<-denotational' as same as `->unified' and
815         `<-unified'.
816         (syms_of_chartab): Add new symbols `->denotational' and
817         `<-denotational'.
818
819 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
820
821         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
822         `Fget_char_attribute'.
823         (Fchar_variants): Likewise.
824         (get_char_table): Likewise.
825         (Fchar_feature): New function.
826         (put_char_composition): Use `Fchar_feature' instead of
827         `Fget_char_attribute'.
828         (Fput_char_attribute): Likewise; don't put the target character
829         into its `->unified' value.
830         (syms_of_chartab): Add new builtin function `char-feature'.
831
832 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
833
834         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
835         `Fget_char_attribute'.
836         (char_encode_utf8): Likewise.
837
838         * chartab.h: Add an EXFUN for `Fchar_feature'.
839
840 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * chartab.c (Vnext_defined_char_id): New variable.
843         (Fput_char_attribute): Accept characters in `->unified'.
844         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
845         new characters which are not related with builtin char-id ranges.
846         (vars_of_chartab): Add new variable `next-defined-char-id'.
847
848 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * chartab.c (Q_unified): New variable.
851         (Q_unified_from): New variable.
852         (Fput_char_attribute): Add code for `->unified'.
853         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
854         XEmacs CHISE.
855
856 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * mule-charset.c (decode_ccs_conversion): New function.
859         (decode_defined_char): Use `decode_ccs_conversion'.
860         (decode_builtin_char): Likewise.
861
862 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
863
864         * char-ucs.h: Change some charset-ids of private coded-charsets.
865
866 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
867
868         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
869         (char_encode_as_entity_reference): Likewise.
870         (decode_coding_big5): Modify for `decode_defined_char' and
871         `DECODE_CHAR'.
872         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
873         avoid compiler warning.
874         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
875
876         * mule-charset.c (decode_defined_char): Add new argument
877         `without_inheritance'.
878         (Fdecode_char): Add new optional argument `without_inheritance'.
879         (Fdecode_builtin_char): Modify for `Fdecode_char'.
880
881         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
882         (simplify_char_spec): Likewise.
883
884         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
885         setting.
886
887         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
888         (map_char_table): Likewise.
889         (Fdefine_char): Use `Fdecode_char' without inheritance.
890         (Ffind_char): Modify for `Fdecode_char'.
891
892         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
893
894         * char-ucs.h (decode_defined_char): Add new argument
895         `without_inheritance'.
896         (DECODE_CHAR): Likewise.
897         (MAKE_CHAR): Modify for `DECODE_CHAR'.
898
899 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * chartab.c (Vchise_system_db_directory): New variable.
902         (vars_of_chartab): Add new variable `chise-system-db-directory'.
903
904 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
905
906         * chartab.c: EXFUN `Fmount_char_attribute_table'.
907         (print_chartab_range): Don't define when `UTF2000' is defined.
908         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
909         `CHISE_DS_open'.
910
911 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
912
913         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
914         and optional argument `rehash' is specified, call
915         `open_chise_data_source_maybe' before
916         `chise_ds_foreach_char_feature_name' is called.
917
918 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * chartab.c (char_attribute_list_reset_map_func): New function
921         when HAVE_LIBCHISE is defined.
922         (Fchar_attribute_list): Add new optional argument `rehash' when
923         HAVE_LIBCHISE is defined.
924         (open_chise_data_source_maybe): Use "chise-db" instead of
925         "char-db".
926         (char_attribute_system_db_file): Likewise.
927         (Fload_char_attribute_table): Use
928         `chise_feature_foreach_char_with_value' instead of
929         `chise_char_feature_value_iterate'.
930
931 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * chartab.c (Vchise_db_directory): New variable.
934         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
935
936 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
937
938         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
939         instead of HAVE_CHISE to specify using with libchise.
940
941         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
942
943         * chartab.h: Don't use HAVE_CHISE_CLIENT.
944
945         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
946         defined or HAVE_LIBCHISE_LIBCHISE is defined.
947         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
948         is defined.
949         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
950         HAVE_CHISE to specify using with libchise.
951         (syms_of_chartab): Don't define symbol `system-char-id' when
952         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
953
954 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
955
956         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
957         specify CHISE DB support.
958         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
959         of `char_attribute_system_db_file' to check feature DB file.
960
961         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
962         HAVE_CHISE_CLIENT to specify CHISE DB support.
963
964         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
965         specify CHISE DB support.
966         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
967         not defined.
968         (Freset_char_attribute_table): Use `chise_feature_setup_db'
969         instead of `char_attribute_system_db_file' to check feature DB
970         file.
971
972 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
975         `HAVE_CHISE_CLIENT'.
976
977 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
978
979         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
980         (Fsave_charset_mapping_table): Don't use
981         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
982
983         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
984         (HAVE_LIBCHISE): New macro.
985
986         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
987
988         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
989         (Fsave_char_attribute_table): Don't use
990         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
991
992 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
993
994         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
995         defined.
996         (save_uint16_byte_table): Likewise.
997         (save_byte_table): Likewise.
998         (char_table_get_db): Use `chise_ds_load_char_feature_value'
999         instead of `chise_char_load_feature_value'.
1000         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1001
1002 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * chartab.h (struct Lisp_Char_Table): Delete member
1005         `feature_table' if CHISE is defined.
1006
1007         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1008         (Fcopy_char_table): Likewise.
1009         (char_table_open_db_maybe): Likewise.
1010         (char_table_close_db_maybe): Likewise.
1011         (char_table_get_db): Likewise.
1012         (Fmount_char_attribute_table): Likewise.
1013         (Fload_char_attribute_table): Likewise.
1014
1015 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule-charset.c (load_char_decoding_entry_maybe): Use
1018         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1019         `chise_ccs_decode'.
1020
1021 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1022
1023         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1024         instead of `chise_open_data_source'.
1025         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1026         `chise_ds_close'.
1027
1028 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1029
1030         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1031         instead of `chise_ds_open_feature_table'.
1032         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1033
1034 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1035
1036         * mule-charset.c (Fsave_charset_mapping_table): Use
1037         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1038         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1039         `chise_ccs_sync' instead of `chise_ccst_close'.
1040         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1041
1042         * chartab.c (open_chise_data_source_maybe): Modify for
1043         `chise_open_data_source'.
1044         (char_table_open_db_maybe): Modify for
1045         `chise_ds_open_feature_table'.
1046
1047 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1048
1049         * mule-charset.c (load_char_decoding_entry_maybe): Use
1050         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1051         `chise_ccst_close'.
1052
1053 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1054
1055         * mule-charset.c (Fsave_charset_mapping_table): Use
1056         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1057         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1058         `chise_dt_put_char' and `chise_dt_close'.
1059         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1060         `chise_ccs_decode' and `chise_ccst_close' instead of
1061         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1062         `chise_dt_close'.
1063
1064         * chartab.c (char_table_get_db): Use
1065         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1066         (load_char_attribute_table_map_func): Modify for
1067         `chise_char_feature_value_iterate'.
1068         (Fload_char_attribute_table): Use
1069         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1070
1071 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1072
1073         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1074
1075 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1076
1077         * chartab.c (put_char_table): Modify for inherited coded-charsets
1078         in XEmacs CHISE.
1079
1080 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1081
1082         * chartab.c (Fput_char_table_map_function): Fixed.
1083         (word_boundary_p): Don't check charset in XEmacs CHISE.
1084
1085 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * mule-charset.c (Fsave_charset_mapping_table): Use
1088         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1089         instead of `chise_open_decoding_table'; refer
1090         `default_chise_data_source'; use `chise_dt_close' instead of
1091         `chise_close_decoding_table'.
1092         (load_char_decoding_entry_maybe): Likewise.
1093
1094         * chartab.c (default_chise_data_source): New variable when `CHISE'
1095         is defined.
1096         (Fcopy_char_table): `ct->ds' is deleted.
1097         (open_chise_data_source_maybe): New function.
1098         (Fclose_char_data_source): New function.
1099         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1100         use `chise_ds_open_feature_table' instead of
1101         `chise_open_feature_table'.
1102         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1103         `chise_close_feature_table'; `cit->ds' is deleted.
1104         (syms_of_chartab): Add new builtin function
1105         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1106
1107         * chartab.h (default_chise_data_source): New extern variable.
1108         (open_chise_data_source_maybe): New prototype.
1109         (struct Lisp_Char_Table): Delete `ds'.
1110
1111 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1112
1113         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1114         `CHISE' is defined.
1115
1116 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1119         not defined; add code for non-libchise setting.
1120         (char_table_close_db_maybe): Likewise.
1121         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1122         defined.
1123         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1124         even if `CHISE' is not defined.
1125         (Freset_char_attribute_table): Likewise.
1126         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1127         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1128         `char_table_get_db'.
1129         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1130         `char_table_close_db_maybe' even if `CHISE' is not defined.
1131
1132 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * chartab.c (char_table_open_db_maybe): New function.
1135         (char_table_close_db_maybe): New function.
1136         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1137         (Freset_char_attribute_table): Likewise.
1138         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1139         `char_table_close_db_maybe'.
1140         (Fload_char_attribute_table): Likewise.
1141
1142 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * chartab.c: Don't include <chise.h> because it is included in
1145         chartab.h.
1146         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1147         defined.
1148         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1149         `CHISE' is defined.
1150         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1151         `CHISE' is defined.
1152         (Fclose_char_attribute_table): Close `ct->feature_table' and
1153         `ct->ds' when `CHISE' is defined.
1154         (Freset_char_attribute_table): Likewise.
1155         (load_char_attribute_maybe): Use `cit->ds' and
1156         `cit->feature_table' when `CHISE' is defined.
1157         (Fload_char_attribute_table): Likewise.
1158
1159         * chartab.h: Include <chise.h> when `CHISE' is defined.
1160         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1161         when `CHISE' is defined.
1162
1163 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1164
1165         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1166         is defined.
1167         (char_table_description): Likewise.
1168         (Fmake_char_table): Likewise.
1169         (Fcopy_char_table): Likewise.
1170         (Fmount_char_attribute_table): Likewise.
1171         (Fclose_char_attribute_table): Likewise.
1172         (Freset_char_attribute_table): Likewise.
1173         (load_char_attribute_maybe): Likewise.
1174         (Fload_char_attribute_table): Likewise.
1175
1176         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1177         defined.
1178
1179 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1180
1181         * chartab.c (load_char_attribute_table_map_func): New function
1182         when CHISE is defined.
1183         (Qload_char_attribute_table_map_function): Don't define when CHISE
1184         is defined.
1185         (Fload_char_attribute_table_map_function): Likewise.
1186         (Fload_char_attribute_table): Use libchise when `CHISE' is
1187         defined.
1188         (syms_of_chartab): Don't define
1189         `load-char-attribute-table-map-function' when CHISE is defined.
1190
1191 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1192
1193         * chartab.c: Include <chise.h> when `CHISE' is defined.
1194         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1195
1196 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1197
1198         * mule-charset.c (charset_code_point): Fix problem when searching
1199         in mother CCS fails with `defined_only' mode.
1200
1201 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1202
1203         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1204         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1205         (put_char_composition): Likewise.
1206         (Fput_char_attribute): Likewise.
1207         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1208
1209 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1210
1211         * chartab.c (Q_ucs): Deleted.
1212         (Fput_char_attribute): Don't refer `->ucs'.
1213         (Fdefine_char): Likewise.
1214         (Ffind_char): Likewise.
1215         (syms_of_chartab): Delete `->ucs'.
1216
1217 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * mule-charset.c (Qmap_cns11643_2): Renamed from
1220         `Qchinese_cns11643_2'.
1221         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1222         `chinese-cns11643-2'.
1223         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1224         `=cns11643-2'.
1225
1226 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1227
1228         * mule-charset.c (Qmap_cns11643_1): Renamed from
1229         `Qchinese_cns11643_1'.
1230         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1231         `chinese-cns11643-1'.
1232         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1233         `=cns11643-1'.
1234
1235 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1236
1237         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1238         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1239         `chinese-gb12345'.
1240         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1241         `=gb12345'.
1242
1243 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1246         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1247         `chinese-gb2312'.
1248         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1249         `=gb2312'.
1250
1251 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1252
1253         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1254         (syms_of_mule_charset): Add new symbol `=big5' instead of
1255         `chinese-big5'.
1256         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1257
1258 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1261         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1262         `korean-ksc5601'.
1263         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1264         `=ks-x1001'.
1265
1266 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1267
1268         * mule-charset.c (Qmap_jis_x0212): Renamed from
1269         `Qjapanese_jisx0212'.
1270         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1271         `japanese-jisx0212'.
1272         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1273         `=jis-x0212'.
1274
1275 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1276
1277         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1278         `Qjapanese_jisx0208'.
1279         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1280         of `japanese-jisx0208'.
1281         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1282         `=jis-x0208-1983'.
1283
1284 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285
1286         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1287         `Qjapanese_jisx0208_1978'.
1288         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1289         of `japanese-jisx0208-1978'.
1290         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1291         `=jis-x0208-1978'.
1292
1293 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1294
1295         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1296         only for XEmacs CHISE.
1297
1298 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1299
1300         * char-ucs.h: Compact non-ISO-IR charset-ids.
1301         (LEADING_BYTE_UCS): Changed to -177.
1302         (LEADING_BYTE_CONTROL_1): Changed to -77.
1303         (LEADING_BYTE_UCS_BMP): Changed to -176.
1304         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1305
1306 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * mule-charset.c (Qiso_ir): New variable.
1309         (Fmake_charset): Recognise new property `iso-ir'.
1310         (syms_of_mule_charset): Add new symbol `iso-ir'.
1311
1312 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1313
1314         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1315         n to -n; charset-id of non ISO-IR sets are changed to positive
1316         numbers.
1317
1318 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1319
1320         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1321         for &MCS-XXXXXXXX; values.
1322
1323 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * mule.c (Vxemacs_chise_version): Renamed from
1326         `Vutf_2000_version'.
1327         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1328         `utf-2000-version' as an alias for `xemacs-chise-version'.
1329
1330 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1331
1332         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1333         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1334         defined.
1335
1336         * config.h.in (CHISE): New macro.
1337
1338 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1341         of `ucs'.
1342         (Qmap_ucs): New variable.
1343         (syms_of_mule_charset): Add new symbol `=ucs'.
1344         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1345
1346         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1347         (simplify_char_spec): Likewise.
1348
1349         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1350
1351         * char-ucs.h (Qmap_ucs): New extern variable.
1352
1353 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354
1355         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1356         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1357         don't define it when UTF2000 is not defined.
1358         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1359         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1360         when UTF2000 is not defined.
1361         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1362         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1363
1364 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1365
1366         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1367
1368         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1369         (Qucs_gb): Deleted.
1370         (syms_of_mule_charset): Delete `ucs-gb'.
1371         (complex_vars_of_mule_charset): Likewise.
1372
1373 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1374
1375         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1376
1377         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1378         (Qucs_cns): Deleted.
1379         (syms_of_mule_charset): Delete `ucs-cns'.
1380         (complex_vars_of_mule_charset): Likewise.
1381
1382 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1385
1386         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1387         (Qucs_jis): Deleted.
1388         (syms_of_mule_charset): Delete `ucs-jis'.
1389         (complex_vars_of_mule_charset): Likewise.
1390
1391 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1392
1393         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1394
1395         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1396         (Qucs_ks): Deleted.
1397         (syms_of_mule_charset): Delete `ucs-ks'.
1398         (complex_vars_of_mule_charset): Likewise.
1399
1400 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1403         (Qideograph_daikanwa_2): Deleted.
1404         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1405         (complex_vars_of_mule_charset): Likewise.
1406
1407         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1408         (LEADING_BYTE_DAIKANWA_1): Deleted.
1409         (LEADING_BYTE_DAIKANWA_2): Deleted.
1410         (MIN_CHAR_DAIKANWA): Deleted.
1411         (MAX_CHAR_DAIKANWA): Deleted.
1412
1413 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1414
1415         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1416         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1417         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1418
1419         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1420         (Vcharset_ideograph_daikanwa): Deleted.
1421         (Qideograph_hanziku_{1..12}): Deleted.
1422         (Qideograph_daikanwa): Deleted.
1423         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1424         Vcharset_ideograph_daikanwa.
1425         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1426         `ideograph-hanziku-{1..12}'.
1427         (complex_vars_of_mule_charset): Likewise.
1428
1429 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1430
1431         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1432
1433         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1434         (Qideograph_gt_pj_{1..11}): Deleted.
1435         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1436         (complex_vars_of_mule_charset): Likewise.
1437
1438 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1441         (Vcharset_ideograph_gt): Deleted.
1442         (Qucs_big5): Deleted.
1443         (Qideograph_gt): Deleted.
1444         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1445         `ideograph-gt'.
1446         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1447         and `ideograph-gt'.
1448
1449         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1450         (LEADING_BYTE_GT): Deleted.
1451         (MIN_CHAR_GT): Deleted.
1452         (MAX_CHAR_GT): Deleted.
1453
1454 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1457
1458 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1461         (save_uint16_byte_table): Likewise.
1462         (save_byte_table): Likewise; convert values by it.
1463         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1464         for `ideographic-structure'.
1465         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1466         as the filter for `ideographic-structure'.
1467
1468 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1469
1470         * chartab.c (put_char_composition): New function.
1471         (Fput_char_attribute): Use `put_char_composition'; use
1472         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1473
1474         * fns.c (simplify_char_spec): New function.
1475         (char_ref_simplify_spec): New function.
1476         (Fchar_refs_simplify_char_specs): New function.
1477         (syms_of_fns): Add new builtin function
1478         `char-refs-simplify-char-specs'.
1479
1480 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1481
1482         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1483         (Qideograph_cbeta): Deleted.
1484         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1485         (complex_vars_of_mule_charset): Likewise.
1486
1487         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1488         (MIN_CHAR_CBETA): Comment out.
1489         (MAX_CHAR_CBETA): Likewise.
1490
1491 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1492
1493         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1494         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1495         CHISE client feature.
1496
1497 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1498
1499         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1500
1501 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1502
1503         * mule-charset.c (charset_lookup_description_1): Use
1504         `NUM_LEADING_BYTES' in UTF-2000.
1505
1506 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1507
1508         * char-ucs.h (GC_CHARSETP): Deleted.
1509
1510 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1511
1512         * char-ucs.h (MAX_CHAR_GT): Updated.
1513
1514 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1515
1516         * text-coding.c: Sync with XEmacs 21.4.10.
1517
1518 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * mule-charset.c (Vcharset_china3_jef): Deleted.
1521         (Qchina3_jef): Deleted.
1522         (syms_of_mule_charset): Don't define `china3-jef'.
1523         (complex_vars_of_mule_charset): Likewise.
1524
1525         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1526         (MIN_CHAR_CHINA3_JEF): Comment out.
1527         (MAX_CHAR_CHINA3_JEF): Comment out.
1528
1529 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1530
1531         * mule-charset.c (Vcharset_ucs_gb): New variable.
1532         (Qucs_gb): New variable.
1533         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1534         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1535
1536         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1537
1538 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (charset_code_point): if a coded-charset has a
1541         final-byte, don't inherit the builtin range of the mother CCS.
1542
1543 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * mule-charset.c (charset_code_point): Fix problem about
1546         inheritance.
1547
1548 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1549
1550         * mule-charset.c (decode_builtin_char): Reorganized.
1551
1552 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1553
1554         * text-coding.c (char_encode_as_entity_reference): Modify for
1555         `charset_code_point'.
1556         (char_encode_shift_jis): Likewise.
1557         (char_encode_big5): Likewise.
1558         (char_encode_utf8): Likewise.
1559         (char_encode_iso2022): Likewise.
1560
1561         * mule-charset.c (charset_code_point): Add new argument
1562         `defined_only'.
1563         (Fencode_char): Add new optional argument `defined_only'.
1564
1565         * chartab.c (put_char_table): Modify for `charset_code_point'.
1566
1567         * char-ucs.h (charset_code_point): Add new argument
1568         `defined_only'.
1569         (encode_char_1): Modify for `charset_code_point'.
1570
1571 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572
1573         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1574         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1575
1576 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1577
1578         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1579         (Qjis_x0208): Likewise.
1580         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1581         XCHARSET_FINAL(charset).
1582         (charset_code_point): Modify condition for final-byte based
1583         builtin-chars.
1584         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1585         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1586         in UTF-2000; specify `=jis-x0208' as the mother of
1587         `japanese-jisx0208-1978', `japanese-jisx0208' and
1588         `japanese-jisx0208-1990' in UTF-2000.
1589
1590 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1591
1592         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1593
1594 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595
1596         * text-coding.c (decode_coding_utf16): Support UTF-16.
1597         (char_encode_utf16): Fixed.
1598
1599 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600
1601         * text-coding.c (Qutf16): New variable in MULE.
1602         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1603         (Fcoding_system_type): Add `utf-16' in MULE.
1604         (struct detection_state): Add a structure for utf16 in MULE.
1605         (detect_coding_type): Setup st->utf16.mask in MULE.
1606         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1607         MULE.
1608         (reset_encoding_stream): Use `char_encode_utf16' and
1609         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1610         (detect_coding_utf16): New function [incomplete].
1611         (decode_coding_utf16): New function [support only UCS-2].
1612         (char_encode_utf16): New function.
1613         (char_finish_utf16): New function.
1614         (syms_of_file_coding): Add new symbol `utf-16'; setup
1615         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1616
1617         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1618         UTF-2000.
1619         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1620         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1621
1622 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * chartab.c (put_char_table): When a charset is specified as a
1625         range in UTF-2000, don't support builtin characters.
1626
1627 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1628
1629         * mule-charset.c (decode_defined_char): Don't refer external
1630         database if Qunbound or Qnil are found.
1631         (Fsave_charset_mapping_table): Don't define it if
1632         HAVE_CHISE_CLIENT is not defined.
1633         (Freset_charset_mapping_table): New function.
1634         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1635         found in external database.
1636         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1637         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1638         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1639
1640 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1643         not.
1644
1645 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1646
1647         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1648         Q_lowercase, Q_uppercase in UTF-2000.
1649
1650         * chartab.c (get_char_table): Add special code for the standard
1651         case table to use character attribute `->downcase' and
1652         `->uppercase' for case operations in UTF-2000.
1653
1654         * casetab.c (Qflippedcase): New variable in UTF-2000.
1655         (Q_lowercase): Likewise.
1656         (Q_uppercase): Likewise.
1657         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1658         and `->uppercase' in UTF-2000.
1659         (complex_vars_of_casetab): Assign attribute name `downcase' to
1660         downcase and CANON table of Vstandard_case_table in UTF-2000;
1661         assign attribute name `flippedcase' to upcase and EQV table of
1662         Vstandard_case_table in UTF-2000.
1663
1664 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * text-coding.c (decode_add_er_char): Support isolated-chars.
1667         (char_encode_as_entity_reference): Likewise.
1668
1669 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * emacs.c (Vutf_2000_lisp_directory): New variable.
1672         (Vconfigure_utf_2000_lisp_directory): Likewise.
1673         (complex_vars_of_emacs): Add new variable
1674         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1675
1676 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1677
1678         * char-ucs.h (DECODE_CHAR): Delete special code for
1679         `chinese-big5-1' and `chinese-big5-2'.
1680
1681         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1682         (Qbig5_2): Likewise.
1683         (decode_defined_char): Support CONVERSION_BIG5_1 and
1684         CONVERSION_BIG5_2.
1685         (decode_builtin_char): Likewise.
1686         (charset_code_point): Likewise.
1687         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1688         'conversion in UTF-2000.
1689         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1690         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1691         `chinese-big5-2' as children of `chinese-big5'.
1692
1693         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1694         (CONVERSION_BIG5_2): New macro.
1695
1696 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1697
1698         * text-coding.c (char_encode_big5): Support entity-reference.
1699
1700 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * text-coding.c (char_encode_as_entity_reference): New function.
1703         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1704
1705 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * text-coding.c (decode_coding_big5): Support entity-reference
1708         decoding feature.
1709
1710 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1711
1712         * text-coding.c (allocate_coding_system): Initialize initial
1713         charsets for CODESYS_UTF8.
1714         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1715         charset-g2 for CODESYS_UTF8.
1716         (decode_coding_utf8): Use charset-g0.
1717         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1718         to force variants to map to UCS.
1719
1720 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1721
1722         * text-coding.c (Qutf_8_mcs): New variable.
1723         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1724         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1725         instead of `utf-8' in UTF-2000.
1726
1727 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1728
1729         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1730         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1731         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1732         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1733         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1734         CONVERSION_96x96x96x96 are introduced.
1735         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1736         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1737         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1738
1739         * char-ucs.h (CONVERSION_94): New macro.
1740         (CONVERSION_96): New macro.
1741         (CONVERSION_94x94): New macro.
1742         (CONVERSION_96x96): New macro.
1743         (CONVERSION_94x94x94): New macro.
1744         (CONVERSION_96x96x96): New macro.
1745         (CONVERSION_94x94x94x60): New macro.
1746         (CONVERSION_94x94x94x94): New macro.
1747         (CONVERSION_96x96x96x96): New macro.
1748
1749 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1750
1751         * chartab.c (Vcharacter_variant_table): Deleted.
1752         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1753         of `Vcharacter_variant_table'.
1754         (Fput_char_attribute): Likewise.
1755         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1756         (complex_vars_of_chartab): Likewise.
1757
1758 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1759
1760         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1761
1762         * fns.c (Qideographic_structure): New variable.
1763         (Qkeyword_char): New variable.
1764         (ids_format_unit): New function.
1765         (Fideographic_structure_to_ids): New function.
1766         (syms_of_fns): Add new symbols `ideographic-structure' and
1767         `:char'; add new builtin function `ideographic-structure-to-ids'.
1768
1769         * data.c (Fchar_ref_p): New function.
1770         (syms_of_data): Add new builtin function `char-ref-p'.
1771
1772         * chartab.h: Add an EXFUN for `Ffind_char'.
1773
1774 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * text-coding.c (Vcharacter_composition_table): Deleted.
1777         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1778         in every UTF-2000.
1779
1780         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1781         UTF-2000.
1782         (Vcharacter_composition_table): Deleted.
1783         (Fget_composite_char): Use the implementation for external-DB
1784         support in every UTF-2000.
1785         (Fput_char_attribute): Likewise.
1786         (char_attribute_system_db_file): Don't define if external-DB
1787         feature is not available.
1788         (Fsave_char_attribute_table): Likewise.
1789         (Fmount_char_attribute_table): Likewise.
1790         (Fclose_char_attribute_table): Likewise.
1791         (Freset_char_attribute_table): Likewise.
1792         (Fload_char_attribute_table): Likewise.
1793         (syms_of_chartab): Don't define `save-char-attribute-table',
1794         `mount-char-attribute-table', `reset-char-attribute-table',
1795         `close-char-attribute-table' and `load-char-attribute-table' if
1796         external-DB feature is not available.
1797         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1798
1799 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1800
1801         * text-coding.c (Qcomposition): Add extern if external-DB feature
1802         is supported.
1803         (Vcharacter_composition_table): Don't add extern if external-DB
1804         feature is supported.
1805         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1806         character composition rule if external-DB feature is supported.
1807
1808         * chartab.c (Vcharacter_composition_table): Don't define if
1809         external-DB feature is supported.
1810         (Qcomposition): New variable.
1811         (Fget_composite_char): New implementation for external-DB support.
1812         (Fput_char_attribute): Use `composition' property of each
1813         character instead of `Vcharacter_composition_table' to store
1814         character-composition rules if external-DB feature is supported.
1815         (syms_of_chartab): Add new symbol `composition'.
1816         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1817         external-DB feature is supported.
1818
1819 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1820
1821         * chartab.c (Vchar_db_stingy_mode): New variable.
1822         (load_char_attribute_maybe): Close database if
1823         Vchar_db_stingy_mode is not NIL.
1824         (Fload_char_attribute_table_map_function): Use
1825         `get_char_id_table_0' instead of `get_char_id_table'.
1826         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1827
1828         * chartab.h (get_char_id_table_0): New inline function.
1829         (get_char_id_table): Use `get_char_id_table_0'.
1830
1831 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1832
1833         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1834         and `COMPOSE_ADD_CHAR'.
1835         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1836
1837 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1840         instead of `DECODE_ADD_UCS_CHAR'.
1841         (COMPOSE_ADD_CHAR): Likewise.
1842
1843 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1844
1845         * text-coding.c (decode_flush_er_chars): New inline function.
1846         (decode_add_er_char): New function.
1847         (decode_coding_utf8): Use `decode_flush_er_chars' and
1848         `decode_add_er_char'.
1849
1850 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1851
1852         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1853         done before `decode_output_utf8_partial_char'.
1854
1855         * mule-charset.c (complex_vars_of_mule_charset): Specify
1856         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1857         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1858
1859 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * mule-charset.c (decode_defined_char): New function; search
1862         mother.
1863         (decode_builtin_char): Don't search mother if
1864         XCHARSET_MAX_CODE(charset) == 0.
1865         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1866         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1867         (Fdecode_char): Use `decode_defined_char' instead of
1868         `DECODE_DEFINED_CHAR'.
1869         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1870         mother of `Vcharset_ucs_jis'.
1871
1872         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1873         instead of `DECODE_DEFINED_CHAR'.
1874
1875         * char-ucs.h (decode_defined_char): Renamed from
1876         `DECODE_DEFINED_CHAR'; changed to normal function.
1877         (DECODE_CHAR): Use `decode_defined_char' instead of
1878         `DECODE_DEFINED_CHAR'.
1879
1880         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1881
1882 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1885
1886         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1887         variable.
1888         (Quse_entity_reference): New variable.
1889         (Qd): New variable.
1890         (Qx): New variable.
1891         (QX): New variable.
1892         (coding_system_description): Add description for
1893         `ccs_priority_list'.
1894         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1895         (allocate_coding_system): Initialize `ccs_priority_list' in
1896         UTF-2000.
1897         (Fmake_coding_system): Add description about
1898         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1899         (codesys).
1900         (Fcoding_system_property): Accept `disable-composition' and
1901         `use-entity-reference' in UTF-2000.
1902         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1903         in UTF-2000.
1904         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1905         (decode_coding_utf8): Decode entity-reference if
1906         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1907         (char_encode_utf8): Encode non-Unicode characters as
1908         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1909         (str->codesys).
1910         (syms_of_file_coding): Add new symbols `use-entity-reference',
1911         `d', `x', `X'.
1912         (vars_of_file_coding): Add new variable
1913         `coded-charset-entity-reference-alist'.
1914         (complex_vars_of_file_coding): Declare `disable-composition' and
1915         `use-entity-reference' to be coding-system-properties in UTF-2000.
1916
1917         * file-coding.h (struct Lisp_Coding_System): Add new member
1918         `use_entity_reference' and `ccs_priority_list'.
1919         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1920         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1921         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1922
1923 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1924
1925         * chartab.c (save_uint8_byte_table): Don't clear the table.
1926         (save_uint16_byte_table): Likewise.
1927         (save_byte_table): Likewise.
1928         (Fmount_char_attribute_table): New function.
1929         (syms_of_chartab): Add new builtin function
1930         `mount-char-attribute-table'.
1931
1932 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1935         "w+" mode.
1936         (load_char_decoding_entry_maybe): Open database as read-only mode.
1937
1938         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1939         open database as "w+" mode.
1940         (load_char_attribute_maybe): Open database as read-only mode.
1941         (Fload_char_attribute_table): Likewise.
1942
1943 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1946         (char_table_description): Delete member `db_file'.
1947         (Fmake_char_table): Don't refer `ct->db_file'.
1948         (Fcopy_char_table): Likewise.
1949         (Fsave_char_attribute_table): Likewise.
1950         (Fclose_char_attribute_table): Likewise.
1951         (Freset_char_attribute_table): Likewise.
1952         (load_char_attribute_maybe): Likewise.
1953         (Fload_char_attribute_table): Likewise.
1954
1955         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1956
1957 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1960         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1961         `ct->db' is living.
1962         (load_char_attribute_maybe): Likewise.
1963         (Fload_char_attribute_table): Likewise.
1964
1965 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1966
1967         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1968         `ct->db_file' unconditionally.
1969
1970 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1971
1972         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1973         UTF-2000.
1974         (char_table_description): Add description for `db_file' and `db'
1975         in UTF-2000.
1976         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1977         UTF-2000.
1978         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1979         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1980         (Fclose_char_attribute_table): New function.
1981         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1982         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1983         and `cit->db'.
1984         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1985         (syms_of_chartab): Add new builtin function
1986         `Fclose_char_attribute_table'.
1987
1988 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1989
1990         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1991         `db' in UTF-2000.
1992         (load_char_attribute_maybe): Change interface.
1993         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1994
1995 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1996
1997         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1998
1999 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2002         instead of `DECODE_CHAR' for mother; don't use special code for
2003         chinese-big5 to use code space of chinese-big5-1 and
2004         chinese-big5-2.
2005         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2006         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2007
2008         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2009         (MAX_CHAR_BIG5_CDP): Revival.
2010
2011 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012
2013         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2014         the XLFD registry-encoding name of `chinese-big5'.
2015
2016 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2017
2018         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2019         (Qchinese_big5_cdp): Deleted.
2020         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2021         (complex_vars_of_mule_charset): Delete coded-charset
2022         `chinese-big5-cdp'.
2023
2024         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2025         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2026         `CHARSET_ID_OFFSET - n' for private CCS.
2027         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2028         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2029         of `MIN_LEADING_BYTE'.
2030         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2031         `(CHARSET_ID_OFFSET - 97)'.
2032         (MIN_CHAR_BIG5_CDP): Deleted.
2033         (MAX_CHAR_BIG5_CDP): Deleted.
2034
2035 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2038
2039 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2042         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2043         chartab.c].
2044
2045         * chartab.c (Vutf_2000_version): Moved to mule.c.
2046         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2047
2048 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2049
2050         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2051         when HAVE_CHISE_CLIENT is not defined.
2052
2053         * mule.c (vars_of_mule): Provide feature `chise' when
2054         HAVE_CHISE_CLIENT is defined.
2055
2056 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2057
2058         * config.h.in (UTF2000): Add comment.
2059         (HAVE_CHISE_CLIENT): New macro.
2060
2061 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2062
2063         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2064         CONSP.
2065         (Fput_char_attribute): Likewise.
2066         (char_attribute_system_db_file): Encode file-name of attribute.
2067         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2068         the initial value.
2069
2070 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2071
2072         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2073         (Fsave_charset_mapping_table): Use
2074         `char_attribute_system_db_file'.
2075         (load_char_decoding_entry_maybe): Likewise.
2076
2077         * chartab.h (Qsystem_char_id): New external variable.
2078         (char_attribute_system_db_file): New prototype.
2079
2080         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2081         (char_attribute_system_db_file): New function.
2082         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2083         (Freset_char_attribute_table): Likewise.
2084         (load_char_attribute_maybe): Likewise.
2085         (Fload_char_attribute_table): Likewise.
2086         (syms_of_chartab): Add new symbol `system-char-id'.
2087
2088 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2089
2090         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2091         `XCHARSET_GRAPHIC(ccs)'.
2092
2093 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2096
2097 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2098
2099         * chartab.c (Q_ucs_variants): New variable.
2100         (syms_of_chartab): Add new symbol `->ucs-variants'.
2101         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2102         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2103         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2104
2105         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2106
2107         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2108         `HAVE_DATABASE' is defined.
2109         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2110         `HAVE_DATABASE' is defined.
2111
2112 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2113
2114         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2115         attribute-table.
2116         (Freset_char_attribute_table): New function.
2117         (syms_of_chartab): Add new builtin function
2118         `reset-char-attribute-table'.
2119
2120 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2121
2122         * chartab.c (load_char_attribute_maybe): Don't make directories.
2123
2124 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2125
2126         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2127
2128         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2129         for decoding-table.
2130
2131 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2132
2133         * mule-charset.c (Fsave_charset_mapping_table): Use
2134         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2135
2136         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2137         instead of `XCHARSET_CHARS'.
2138
2139 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2140
2141         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2142         (XCHARSET_BYTE_SIZE): Likewise.
2143
2144         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2145         mule-charset.c].
2146         (XCHARSET_BYTE_SIZE): Likewise.
2147
2148 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2149
2150         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2151         data-directory to store database.
2152         (Fsave_char_attribute_table): Likewise.
2153         (load_char_attribute_maybe): Likewise.
2154         (Fload_char_attribute_table): Likewise.
2155
2156 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2157
2158         * mule-charset.c (Fsave_charset_mapping_table): New function.
2159         (syms_of_mule_charset): Add new builtin function
2160         `save-charset-mapping-table'.
2161
2162 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163
2164         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2165         (get_ccs_octet_table): New inline function.
2166         (put_ccs_octet_table): Likewise.
2167         (decoding_table_put_char): Use `get_ccs_octet_table' and
2168         `put_ccs_octet_table'.
2169         (decoding_table_remove_char): Use `decoding_table_put_char'.
2170         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2171
2172         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2173         into encoding_table.
2174         (make_charset): Use Qunbound instead Qnil as initial value of
2175         decoding_table.
2176
2177 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2178
2179         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2180         element is Qunloaded.
2181         (map_over_uint16_byte_table): Likewise.
2182         (map_over_byte_table): Likewise.
2183         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2184         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2185         database support, load encoding-table of the specified
2186         coded-charset if it is not loaded yet.
2187         (save_uint8_byte_table): New function of UTF-2000 with external
2188         database support.
2189         (save_uint16_byte_table): Likewise.
2190         (save_byte_table): Likewise.
2191         (Fput_char_attribute): Don't store value into external database
2192         even if the external database feature is supported in UTF-2000;
2193         set `attribute' as name of char-table if the external database
2194         feature is supported.
2195         (Fsave_char_attribute_table): New function in UTF-2000.
2196         (syms_of_chartab): Add new builtin function
2197         `save-char-attribute-table' in UTF-2000.
2198
2199 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2200
2201         * chartab.c (char_attribute_table_to_put): New variable in
2202         UTF-2000.
2203         (Qput_char_table_map_function): Likewise.
2204         (value_to_put): Likewise.
2205         (Fput_char_table_map_function): New function in UTF-2000.
2206         (put_char_table): Use `Fmap_char_attribute' for
2207         CHARTAB_RANGE_CHARSET in UTF-2000.
2208         (Fput_char_attribute): Store symbol instead of string in
2209         `XCHAR_TABLE_NAME (table)'.
2210         (load_char_attribute_maybe): Likewise.
2211         (syms_of_chartab): Add new symbol/function
2212         `put-char-table-map-function'.
2213
2214 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2215
2216         * database.h: Add new EXFUN for `Fmap_database'.
2217
2218         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2219         (syms_of_database): Likewise.
2220
2221         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2222         UTF-2000.
2223         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2224         (XCHAR_TABLE_UNLOADED): Likewise.
2225
2226         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2227         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2228         HAVE_DATABASE is defined.
2229         (char_attribute_table_to_load): New variable of UTF-2000 with
2230         external database support.
2231         (Qload_char_attribute_table_map_function): Likewise.
2232         (Fload_char_attribute_table_map_function): New function of
2233         UTF-2000 with external database support.
2234         (Fload_char_attribute_table): New function of UTF-2000.
2235         (Fmap_char_attribute): Call Fload_char_attribute_table if
2236         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2237         (syms_of_chartab): Add new symbol and function
2238         `load-char-attribute-table-map-function' in UTF-2000 with external
2239         database support; add new function `load-char-attribute-table' in
2240         UTF-2000.
2241
2242 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * chartab.h (load_char_attribute_maybe): New prototype for
2245         UTF-2000 with DATABASE support.
2246         (get_char_id_table): Use `load_char_attribute_maybe' if
2247         HAVE_DATABASE is defined.
2248
2249         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2250         with DATABASE support.
2251
2252 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2253
2254         * chartab.c (Fput_char_attribute): Use S-expression as key of
2255         external database.
2256
2257         * chartab.h (get_char_id_table): Use S-expression as key of
2258         external database.
2259
2260 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2261
2262         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2263         if an element is not loaded, load the corresponding attributes
2264         from an external database.
2265         (map_over_uint16_byte_table): Likewise.
2266         (map_over_byte_table): Likewise.
2267         (map_char_table): Modify for `map_over_uint8_byte_table',
2268         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2269         element is not loaded, load the corresponding attributes from an
2270         external database.
2271         (Fput_char_attribute): Change initial values to Qunloaded.
2272
2273         * chartab.h (get_char_id_table): If a character attribute is not
2274         loaded and the attribute value is not found in an external
2275         database, store Qunbound as the attribute value.
2276
2277 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2278
2279         * chartab.c (BT_UINT8_unloaded): New macro.
2280         (UINT8_VALUE_P): Accept Qunloaded.
2281         (UINT8_ENCODE): Likewise.
2282         (UINT8_DECODE): Likewise.
2283         (BT_UINT16_unloaded): New macro.
2284         (UINT16_VALUE_P): Accept Qunloaded.
2285         (UINT16_ENCODE): Likewise.
2286         (UINT16_DECODE): Likewise.
2287         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2288         BT_UINT16_unloaded.
2289         (mark_char_table): Mark `ct->name' in UTF-2000.
2290         (char_table_description): Add `name' in UTF-2000.
2291         (Fmake_char_table): Initialize `ct->name'.
2292         (Fcopy_char_table): Copy `ct->name'.
2293         (Fput_char_attribute): Store value into an external database if
2294         HAVE_DATABASE is defined.
2295
2296         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2297         UTF-2000.
2298         (CHAR_TABLE_NAME): New macro in UTF-2000.
2299         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2300         (get_char_id_table): Try to read an external database if Qunloaded
2301         is stored in a table.
2302
2303         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2304         Qunloaded.
2305
2306 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2307
2308         * database.h: Add EXFUN definitions for Fopen_database,
2309         Fput_database, Fget_database and Fclose_database.
2310
2311         * data.c (Qunloaded): New variable in UTF-2000.
2312
2313         * lisp.h (Qunloaded): New variable in UTF-2000.
2314
2315 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * mule-charset.c (put_char_ccs_code_point): Modify for
2318         `decoding_table_remove_char' and `decoding_table_put_char'.
2319         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2320
2321         * char-ucs.h (decoding_table_remove_char): Change arguments to
2322         hide decoding_table vector.
2323         (decoding_table_put_char): Likewise.
2324
2325 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2326
2327         * mule-charset.c (decoding_table_remove_char): Moved to
2328         char-ucs.h.
2329         (decoding_table_put_char): Likewise.
2330
2331         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2332         from mule-charset.c].
2333         (decoding_table_remove_char): New inline function [moved from
2334         mule-charset.c].
2335         (decoding_table_put_char): Likewise.
2336
2337 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2338
2339         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2340         extension.
2341
2342 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2343
2344         * mule-charset.c (decode_builtin_char): Support mother charsets.
2345
2346 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2347
2348         * mule-charset.c (Q94x94x60): New variable.
2349         (charset_code_point): Support conversion `94x94x60'.
2350         (Fmake_charset): Likewise.
2351         (syms_of_mule_charset): Add new symbol `94x94x60'.
2352
2353         * char-ucs.h (CONVERSION_94x94x60): New macro.
2354
2355 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2356
2357         * mule-charset.c (charset_code_point): Unify code about
2358         `code-offset'.
2359
2360 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2361
2362         * mule-charset.c (charset_code_point): Merge code about builtin
2363         characters into code about mother charsets; don't use
2364         `range_charset_code_point'.
2365         (range_charset_code_point): Deleted.
2366
2367 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2368
2369         * mule-charset.c (Qcode_offset): New variable.
2370         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2371         `max-code'; accept new property `code-offset'.
2372         (syms_of_mule_charset): Add new symbol `code-offset'.
2373
2374 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375
2376         * mule-charset.c (range_charset_code_point): Fixed.
2377
2378 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2379
2380         * mule-charset.c (decode_builtin_char): Change semantics of
2381         code-offset of coded-charset.
2382         (charset_code_point): Likewise.
2383         (range_charset_code_point): Likewise.
2384         (complex_vars_of_mule_charset): Modify for the change.
2385
2386 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * mule-charset.c (Fencode_char): Reverse arguments.
2389
2390         * mule-charset.c (charset_code_point): Fixed.
2391
2392 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2393
2394         * mule-charset.c (Vcharset_mojikyo): Deleted.
2395         (Vcharset_mojikyo_2022_1): Deleted.
2396         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2397         (Qmin_code): New variable in UTF-2000.
2398         (Qmax_code): Likewise.
2399         (Qmother): Likewise.
2400         (Qconversion): Likewise.
2401         (Q94x60): Likewise.
2402         (Qmojikyo): Deleted.
2403         (Qmojikyo_2022_1): Deleted.
2404         (Qmojikyo_pj_{1..22}): Deleted.
2405         (mark_charset): Mark `cs->mother'.
2406         (charset_description): Add description for `mother'.
2407         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2408         new arguments `mother' and `conversion'; use
2409         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2410         (charset_code_point): Moved from char-ucs.h; support `mother'
2411         charset feature.
2412         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2413         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2414         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2415         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2416         allow 2 as the value of `graphic' in UTF-2000; add new properties
2417         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2418         require `final' in UTF-2000; modify for `make_charset'.
2419         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2420         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2421         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2422         (Fencode_char): New function.
2423         (syms_of_mule_charset): Add new builtin function `encode-char' in
2424         UTF-2000; add new symbols `min-code', `max-code', `mother',
2425         `conversion' and `94x60'; delete symbols `mojikyo',
2426         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2427         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2428         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2429         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2430
2431         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2432         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2433
2434         * char-ucs.h (Vcharset_mojikyo): Deleted.
2435         (Vcharset_mojikyo_2022_1): Deleted.
2436         (LEADING_BYTE_MOJIKYO): Deleted.
2437         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2438         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2439         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2440         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2441         add new member `mother'; add new member `conversion'.
2442         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2443         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2444         (CHARSET_MOTHER): New macro.
2445         (CHARSET_CONVERSION): New macro.
2446         (CONVERSION_IDENTICAL): New macro.
2447         (CONVERSION_94x60): New macro.
2448         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2449         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2450         (XCHARSET_MOTHER): New macro.
2451         (XCHARSET_CONVERSION): New macro.
2452         (MIN_CHAR_MOJIKYO): Deleted.
2453         (MAX_CHAR_MOJIKYO): Deleted.
2454         (DECODE_MOJIKYO_2022): Deleted.
2455         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2456         (charset_code_point): Changed to non-inline function.
2457         (encode_char_1): Use `charset_code_point'.
2458         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2459
2460 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461
2462         * lread.c (read_compiled_function): Fix prototype.
2463         (read_vector): Likewise.
2464
2465 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466
2467         * lrecord.h (struct lrecord_header): Delete `older'.
2468         (set_lheader_implementation): Delete code for `older'.
2469         (set_lheader_older_implementation): Deleted.
2470         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2471         (OLDER_RECORD_P): Deleted.
2472         (OLDER_RECORD_HEADER_P): Deleted.
2473         (alloc_older_lcrecord): Deleted.
2474         (alloc_older_lcrecord_type): Deleted.
2475
2476         * alloc.c (all_older_lcrecords): Deleted.
2477         (alloc_older_lcrecord): Deleted.
2478         (disksave_object_finalization_1): Delete code for older objects.
2479         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2480         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2481
2482 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2483
2484         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2485         instead of `make_older_vector'.
2486         (put_char_ccs_code_point): Likewise.
2487         (mark_charset): Mark `cs->decoding_table'.
2488         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2489
2490         * lisp.h (make_older_vector): Deleted.
2491         (make_vector_newer): Deleted.
2492
2493         * config.h.in (HAVE_GGC): Deleted.
2494
2495         * alloc.c (make_older_vector): Deleted.
2496         (make_vector_newer_1): Deleted.
2497         (make_vector_newer): Deleted.
2498
2499 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2502         (Qideograph_daikanwa_2): New variable.
2503         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2504         (complex_vars_of_mule_charset): Add new coded-charset
2505         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2506         `LEADING_BYTE_DAIKANWA'.
2507
2508         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2509         (LEADING_BYTE_DAIKANWA_1): New macro.
2510         (LEADING_BYTE_DAIKANWA_2): New macro.
2511         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2512
2513 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2514
2515         * mule-charset.c (complex_vars_of_mule_charset): Change
2516         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2517         the second revised version.
2518
2519 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2520
2521         * mule-charset.c (Vcharset_ucs_smp): New variable.
2522         (Vcharset_ucs_sip): New variable.
2523         (Qucs_smp): New variable.
2524         (Qucs_sip): New variable.
2525         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2526         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2527         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2528         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2529         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2530         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2531
2532         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2533         (LEADING_BYTE_UCS_SIP): New macro.
2534         (MIN_CHAR_SMP): New macro.
2535         (MAX_CHAR_SMP): New macro.
2536         (MIN_CHAR_SIP): New macro.
2537         (MAX_CHAR_SIP): New macro.
2538
2539 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2540
2541         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2542         utf-2000.
2543
2544 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2545
2546         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2547         value; don't store value into `encoding_table' of `Lisp_Charset'.
2548         (mark_charset): `encoding_table' was deleted.
2549         (charset_description): Likewise.
2550         (make_charset): Likewise.
2551         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2552         `put_char_ccs_code_point'.
2553
2554         * chartab.h (Fput_char_attribute): New EXFUN.
2555
2556         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2557         is unified with normal symbol space.
2558         (Fget_char_attribute): Likewise.
2559         (Fput_char_attribute): Likewise; behavior of
2560         `put_char_ccs_code_point' is changed.
2561
2562         * char-ucs.h: Include "elhash.h".
2563         (Vchar_attribute_hash_table): New external variable.
2564         (struct Lisp_Charset): Delete `encoding_table'.
2565         (CHARSET_ENCODING_TABLE): New implementation; refer
2566         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2567         `Lisp_Charset'.
2568
2569 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2572         (cs) == 0.
2573
2574 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2577         `chinese-big5'.
2578
2579 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * chartab.c (uint8_byte_table_description): New constant.
2582         (uint8-byte-table): Use `uint8_byte_table_description'.
2583         (uint16_byte_table_description): New constant.
2584         (uint16-byte-table): Use `uint16_byte_table_description'.
2585
2586 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2589         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2590
2591 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2592
2593         * mule-charset.c (Vcharset_ucs_ks): New variable.
2594         (Qucs_ks): New variable.
2595         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2596         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2597
2598         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2599
2600 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2601
2602         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2603         (Fdecode_char): Likewise.
2604
2605         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2606         chartab.h.
2607         (Fdefine_char): Modify for Fdecode_char.
2608         (Ffind_char): Likewise.
2609
2610         * mule-charset.c (Fdecode_char): Add new optional argument
2611         `defined-only'.
2612         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2613
2614 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615
2616         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2617         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2618         (allocate_coding_system): Initialize initial-charsets of
2619         CODESYS_BIG5 in XEmacs UTF-2000.
2620         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2621         CODESYS_BIG5 in XEmacs UTF-2000.
2622         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2623         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2624
2625         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2626         variables.
2627         (Qideograph_hanziku_{1 .. 12}): Likewise.
2628         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2629         .. 12}'.
2630         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2631         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2632         `ideograph-hanziku-{1 .. 12}'.
2633
2634         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2635         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2636         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2637         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2638         (DECODE_DEFINED_CHAR): New inline function.
2639         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2640
2641 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2642
2643         * mule-charset.c (Vcharset_china3_jef): Renamed from
2644         `Vcharset_japanese_jef_china3'.
2645         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2646         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2647         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2648         (syms_of_mule_charset): Rename `china3-jef' from
2649         `japanese-jef-china3'.
2650         (complex_vars_of_mule_charset): Likewise; rename
2651         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2652
2653         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2654         `LEADING_BYTE_JEF_CHINA3'.
2655         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2656         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2657
2658 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659
2660         * mule-charset.c (encode_builtin_char_1): Comment out special code
2661         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2662
2663         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2664         (MAX_CHAR_MOJIKYO_0): Comment out.
2665         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2666         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2667         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2668         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2669
2670 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2671
2672         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2673         (Qideograph_cbeta): New variable.
2674         (encode_builtin_char_1): Comment out special code for
2675         coded-charset `mojikyo' and `japanese-jef-china3'.
2676         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2677         (complex_vars_of_mule_charset): Add new coded-charset
2678         `ideograph-cbeta'.
2679
2680         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2681         (MIN_CHAR_CBETA): New macro.
2682         (MAX_CHAR_CBETA): New macro.
2683
2684 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685
2686         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2687         (LEADING_BYTE_JEF_CHINA3): New macro.
2688         (MIN_CHAR_JEF_CHINA3): New macro.
2689         (MAX_CHAR_JEF_CHINA3): Likewise.
2690         (DECODE_CHAR): Fixed.
2691
2692 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2693
2694         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2695         (Qjapanese_jef_china3): New variable.
2696         (encode_builtin_char_1): Support `japanese-jef-china3'.
2697         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2698         (complex_vars_of_mule_charset): Add new coded-charset
2699         `japanese-jef-china3'.
2700
2701 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2704         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2705         94^4, 96^3, 96^4, 128^n and 256^n set.
2706         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2707         (map_char_table): Likewise.
2708
2709 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2712         UTF-2000.
2713
2714 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2715
2716         * chartab.h (get_char_id_table): New inline function.
2717
2718         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2719         function.
2720
2721 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2722
2723         * chartab.h (decode_char_table_range): New prototype in XEmacs
2724         UTF-2000.
2725         (put_char_id_table): New inline function in XEmacs UTF-2000.
2726
2727         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2728         function.
2729         (decode_char_table_range): Delete static declaration in XEmacs
2730         UTF-2000.
2731
2732 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2733
2734         * chartab.c (put_char_id_table): Use `put_char_table'.
2735
2736 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2737
2738         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2739         (map_over_uint16_byte_table): Likewise.
2740         (map_over_byte_table): Likewise.
2741         (map_char_table): Modify for `map_over_uint8_byte_table',
2742         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2743         UTF-2000.
2744
2745 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2746
2747         * chartab.c (struct map_char_table_for_charset_arg): New
2748         structure.
2749         (map_char_table_for_charset_fun): New function.
2750         (map_char_table): Use `map_char_table' for encoding_table of
2751         `range->charset'.
2752
2753 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2754
2755         * chartab.c (map_char_table): Check a character is found in
2756         range->charset instead of non default value is defined in
2757         char-table when range is CHARTAB_RANGE_ROW.
2758
2759 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2760
2761         * chartab.c (map_char_id_table): Deleted.
2762         (Fmap_char_attribute): Use `map_char_table' instead of
2763         `map_char_id_table'.
2764
2765 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2766
2767         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2768         UTF-2000.
2769         (update_syntax_table): Deleted in XEmacs UTF-2000.
2770
2771         * syntax.c (find_defun_start): Use `syntax_table' instead of
2772         `mirror_syntax_table' in XEmacs UTF-2000.
2773         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2774         UTF-2000.
2775         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2776         XEmacs UTF-2000.
2777         (Fmatching_paren): Likewise.
2778         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2779         in XEmacs UTF-2000.
2780         (find_start_of_comment): Likewise.
2781         (find_end_of_comment): Likewise.
2782         (Fforward_comment): Likewise.
2783         (scan_lists): Likewise.
2784         (char_quoted): Likewise.
2785         (Fbackward_prefix_chars): Likewise.
2786         (scan_sexps_forward): Likewise.
2787         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2788         (update_syntax_table): Likewise.
2789
2790         * search.c (skip_chars): Use `syntax_table' instead of
2791         `mirror_syntax_table' in XEmacs UTF-2000.
2792         (wordify): Likewise.
2793         (Freplace_match): Likewise.
2794
2795         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2796         `mirror_syntax_table' in XEmacs UTF-2000.
2797         (WORDCHAR_P_UNSAFE): Likewise.
2798         (re_match_2_internal): Likewise.
2799
2800         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2801         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2802
2803         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2804         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2805
2806         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2807         XEmacs UTF-2000.
2808
2809         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2810         UTF-2000.
2811         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2812         (char_table_description): Delete `mirror_table' in XEmacs
2813         UTF-2000.
2814         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2815         UTF-2000.
2816         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2817         (Fcopy_char_table): Likewise.
2818         (put_char_table): Don't call `update_syntax_table' in XEmacs
2819         UTF-2000.
2820
2821         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2822         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2823         (casify_region_internal): Likewise.
2824
2825         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2826
2827         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2828         `mirror_syntax_table' in XEmacs UTF-2000.
2829
2830         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2831         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2832         (Fexpand_abbrev): Likewise.
2833
2834 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2835
2836         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2837
2838 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2839
2840         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2841         (map_over_uint16_byte_table): Likewise.
2842         (map_over_byte_table): Likewise.
2843         (get_char_id_table): Refer `cit->default_value'.
2844         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2845         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2846         of character-id ranges.
2847         (mark_char_table): Mark `ct->default_value'.
2848         (char_table_description): Add `default_value'.
2849         (fill_char_table): Use `default_value'.
2850         (decode_char_table_range): Decode `nil' as
2851         `CHARTAB_RANGE_DEFAULT'.
2852         (get_char_id_table): Refer `cit->default_value'.
2853         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2854         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2855         temporary hack; check value of char-table is bound or not.
2856         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2857
2858         * chartab.h (struct Lisp_Char_Table): Add new member
2859         `default_value' in XEmacs UTF-2000.
2860         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2861         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2862         UTF-2000.
2863
2864 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2865
2866         * chartab.h (Lisp_Char_ID_Table): Deleted.
2867
2868         * chartab.c (char_table_description): Fix typo.
2869         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2870         `Lisp_Char_ID_Table'.
2871
2872 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2875         `CHAR_ID_TABLE_P'.
2876
2877         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2878         `CHAR_ID_TABLE_P'.
2879
2880         * chartab.h (XCHAR_ID_TABLE): Deleted.
2881         (XSETCHAR_ID_TABLE): Deleted.
2882         (CHAR_ID_TABLE_P): Deleted.
2883
2884         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2885         `CHAR_ID_TABLE_P'.
2886         (Fget_composite_char): Likewise.
2887         (put_char_table): Likewise.
2888         (add_char_attribute_alist_mapper): Fixed.
2889         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2890         `CHAR_ID_TABLE_P'.
2891         (Fget_char_attribute): Likewise.
2892         (Fget_char_attribute): Likewise.
2893         (Fmap_char_attribute): Likewise.
2894
2895         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2896         `CHAR_ID_TABLE_P'.
2897         (encode_char_1): Likewise.
2898
2899 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2902         `XCHAR_ID_TABLE'.
2903
2904         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2905         instead of `XCHAR_ID_TABLE'.
2906         (remove_char_ccs): Likewise.
2907
2908         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2909         `XCHAR_ID_TABLE'.
2910         (Fget_composite_char): Likewise.
2911         (Fchar_variants): Likewise.
2912         (put_char_table): Likewise.
2913         (add_char_attribute_alist_mapper): Likewise.
2914         (Fchar_attribute_alist): Likewise.
2915         (Fget_char_attribute): Likewise.
2916         (Fput_char_attribute): Likewise.
2917         (Fmap_char_attribute): Likewise.
2918         (Fmap_char_attribute): Likewise.
2919
2920         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2921         `XCHAR_ID_TABLE'.
2922         (encode_char_1): Likewise.
2923
2924 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2925
2926         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2927         `Lisp_Char_ID_Table'.
2928         (mark_char_id_table): Deleted.
2929         (print_char_id_table): Likewise.
2930         (char_id_table_equal): Likewise.
2931         (char_id_table_hash): Likewise.
2932         (char_id_table_description): Likewise.
2933         (char_id_table): Likewise.
2934         (make_char_id_table): Use `Fmake_char_table' and
2935         `fill_char_table'.
2936         (get_char_id_table): Use `Lisp_Char_Table' instead of
2937         `Lisp_Char_ID_Table'.
2938         (put_char_id_table): Likewise.
2939         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2940         `XCHAR_ID_TABLE'.
2941         (Fremove_char_attribute): Likewise.
2942         (syms_of_chartab): Don't define type `char-id-table'.
2943
2944         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2945         (char_id_table): Likewise.
2946         (GC_CHAR_ID_TABLE_P): Likewise.
2947         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2948         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2949         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2950         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2951         (get_char_id_table): Use `Lisp_Char_Table' instead of
2952         `Lisp_Char_ID_Table'.
2953         (put_char_id_table_0): Likewise.
2954         (put_char_id_table): Likewise.
2955
2956 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2957
2958         * chartab.h: Lisp_Byte_Table related codes are moved from
2959         chartab.h.
2960
2961         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2962
2963 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2964
2965         * chartab.h: Don't include "chartab.h".
2966         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2967         (Lisp_Char_ID_Table): Likewise.
2968         (char_id_table): Likewise.
2969         (XCHAR_ID_TABLE): Likewise.
2970         (XSETCHAR_ID_TABLE): Likewise.
2971         (CHAR_ID_TABLE_P): Likewise.
2972         (GC_CHAR_ID_TABLE_P): Likewise.
2973         (get_char_id_table): Likewise.
2974
2975         * char-ucs.h: Include "chartab.h".
2976         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2977         (Lisp_Char_ID_Table): Likewise.
2978         (char_id_table): Likewise.
2979         (XCHAR_ID_TABLE): Likewise.
2980         (XSETCHAR_ID_TABLE): Likewise.
2981         (CHAR_ID_TABLE_P): Likewise.
2982         (GC_CHAR_ID_TABLE_P): Likewise.
2983         (get_char_id_table): Likewise.
2984
2985 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2986
2987         * chartab.c (copy_uint8_byte_table): New function.
2988         (copy_uint16_byte_table): New function.
2989         (copy_byte_table): New function.
2990         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2991         characters to call.
2992         (map_over_uint16_byte_table): Likewise.
2993         (map_over_byte_table): Likewise.
2994         (get_byte_table): Move prototype to chartab.h.
2995         (put_byte_table): Likewise.
2996         (put_char_id_table_0): Moved to chartab.h.
2997         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2998         (char_table_entry_equal): Likewise.
2999         (char_table_entry_hash): Likewise.
3000         (char_table_entry_description): Likewise.
3001         (char_table_entry): Likewise.
3002         (make_char_table_entry): Likewise.
3003         (copy_char_table_entry): Likewise.
3004         (get_non_ascii_char_table_value): Likewise.
3005         (map_over_charset_ascii): Likewise.
3006         (map_over_charset_control_1): Likewise.
3007         (map_over_charset_row): Likewise.
3008         (map_over_other_charset): Likewise.
3009         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3010         (print_char_table): Likewise.
3011         (char_table_equal): Likewise.
3012         (char_table_hash): Likewise.
3013         (char_table_description): Likewise.
3014         (fill_char_table): Likewise.
3015         (Fcopy_char_table): Likewise.
3016         (get_char_table): Likewise.
3017         (Fget_range_char_table): Likewise.
3018         (put_char_table): Likewise.
3019         (map_char_table): Likewise.
3020         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3021         UTF-2000.
3022
3023 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3024
3025         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3026         `Vauto_fill_chars' in XEmacs UTF-2000.
3027
3028         * chartab.h (get_byte_table): New prototype [moved from
3029         chartab.c].
3030         (put_byte_table): Likewise [moved from chartab.c].
3031         (put_char_id_table_0): New inline function [moved from chartab.c].
3032         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3033         (Lisp_Char_Table_Entry): Likewise.
3034         (char_table_entry): Likewise.
3035         (XCHAR_TABLE_ENTRY): Likewise.
3036         (XSETCHAR_TABLE_ENTRY): Likewise.
3037         (CHAR_TABLE_ENTRYP): Likewise.
3038         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3039         (NUM_ASCII_CHARS): Likewise.
3040         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3041         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3042
3043 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3044
3045         * chartab.c (get_char_id_table): Change interface.
3046         (put_char_id_table_0): New function.
3047         (put_char_id_table): Change interface; new implementation.
3048         (Fget_composite_char): Modify for interface change of
3049         `get_char_id_table'.
3050         (Fchar_variants): Likewise.
3051         (add_char_attribute_alist_mapper): Likewise.
3052         (Fchar_attribute_alist): Likewise.
3053         (Fget_char_attribute): Likewise.
3054         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3055         as same as character as the first argument like `put-char-table';
3056         modify for interface change of `put_char_id_table'.
3057         (Fremove_char_attribute): Modify for interface change of
3058         `put_char_id_table'.
3059
3060 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3061
3062         * text-coding.c: Sync up with XEmacs 21.2.41.
3063         (COMPOSE_ADD_CHAR): Modify for interface change of
3064         `get_char_id_table'.
3065
3066         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3067         change of `put_char_id_table'.
3068         (remove_char_ccs): Likewise.
3069
3070         * chartab.h (put_char_id_table): Change interface.
3071
3072         * char-ucs.h (get_char_id_table): Change interface.
3073         (charset_code_point): Modify for interface change of
3074         `get_char_id_table'.
3075         (encode_char_1): Likewise.
3076
3077 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3078
3079         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3080         argument `ccs'.
3081         (map_over_uint16_byte_table): Likewise.
3082         (map_over_byte_table): Likewise.
3083         (map_char_id_table): Add new argument `range' like
3084         `map_char_table'.
3085         (Fmap_char_attribute): Add new argument `range' like
3086         `Fmap_char_table'.
3087
3088 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * chartab.c (map_over_uint8_byte_table): Change interface of
3091         mapping function to use struct chartab_range instead of Emchar.
3092         (map_over_uint16_byte_table): Likewise.
3093         (map_over_byte_table): Likewise.
3094         (map_char_id_table): Likewise.
3095         (struct slow_map_char_id_table_arg): Deleted.
3096         (slow_map_char_id_table_fun): Deleted.
3097         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3098         function `slow_map_char_table_fun' instead of struct
3099         `slow_map_char_id_table_arg' and function
3100         `slow_map_char_id_table_fun'.
3101
3102 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3103
3104         * mule-charset.c: Move char-it-table related codes to chartab.c.
3105         (Vutf_2000_version): Moved to chartab.c.
3106         (Fdefine_char): Likewise.
3107         (Ffind_char): Likewise.
3108         (syms_of_mule_charset): Move types `uint8-byte-table',
3109         `uint16-byte-table', `byte-table' and `char-id-table' to
3110         chartab.c; move functions `char_attribute_list,
3111         `find_char_attribute_table, `char_attribute_alist,
3112         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3113         `map_char_attribute, `define_char, `find_char, `char_variants and
3114         `get_composite_char to chartab.c; move symbols `=>ucs',
3115         `->decomposition', `compat', `isolated', `initial', `medial',
3116         `final', `vertical', `noBreak', `fraction', `super', `sub',
3117         `circle', `square', `wide', `narrow', `small' and `font' to
3118         chartab.c.
3119         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3120         setting codes for `Vcharacter_composition_table' and
3121         `Vcharacter_variant_table' to chartab.c.
3122         (complex_vars_of_mule_charset): Move setting code for
3123         `Vchar_attribute_hash_table' to chartab.c.
3124
3125         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3126         (make_char_id_table): New prototype.
3127         (put_char_id_table): Likewise.
3128         (Fget_char_attribute): Likewise.
3129
3130         * chartab.c: Move char-id-table related code from mule-charset.c.
3131         (Vutf_2000_version): Moved from mule-charset.c.
3132
3133         * char-ucs.h (Qucs): New external variable.
3134         (put_char_ccs_code_point): New prototype.
3135         (remove_char_ccs): Likewise.
3136
3137 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3138
3139         * mule-charset.c (Vcharset_ucs_jis): New variable.
3140         (Qucs_jis): Likewise.
3141         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3142         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3143
3144         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3145
3146 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3147
3148         * mule-charset.c (map_over_uint8_byte_table): New function.
3149         (map_over_uint16_byte_table): Likewise.
3150         (map_over_byte_table): Likewise.
3151         (map_char_id_table): Likewise.
3152         (slow_map_char_id_table_fun): Likewise.
3153         (Fmap_char_attribute): Likewise.
3154         (syms_of_mule_charset): Add new function `map-char-attribute'.
3155
3156 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3157
3158         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3159         (syms_of_mule_charset): Add new function `find-char'.
3160
3161 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3162
3163         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3164         XEmacs UTF-2000.
3165         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3166         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3167         XEmacs UTF-2000.
3168         (complex_vars_of_mule_charset): Add new coded-charset
3169         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3170         `ideograph-gt-pj-*'.
3171
3172         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3173
3174 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3175
3176         * mule-charset.c (encode_builtin_char_1): Purge codes about
3177         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3178         {MIN|MAX}_CHAR_HEBREW.
3179         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3180         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3181
3182         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3183         (MAX_CHAR_GREEK): Purged.
3184         (MIN_CHAR_CYRILLIC): Purged.
3185         (MAX_CHAR_CYRILLIC): Purged.
3186         (MIN_CHAR_HEBREW): Commented out.
3187         (MAX_CHAR_HEBREW): Likewise.
3188
3189 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3190
3191         * mule-charset.c (Qto_ucs): New variable.
3192         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3193         (Fdefine_char): Likewise.
3194         (syms_of_mule_charset): Add new symbol `=>ucs'.
3195
3196 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3197
3198         * mule-charset.c (Fdecode_char): Fixed.
3199
3200 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3203         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3204         "tcvn5712-1".
3205
3206 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3207
3208         * mule-charset.c (Vcharset_ucs_big5): New variable.
3209         (Qucs_big5): Likewise.
3210         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3211         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3212
3213         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3214
3215 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3216
3217         * mule-charset.c (decode_builtin_char): Check Big5 code range
3218         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3219
3220 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3221
3222         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3223         (Qchinese_gb12345): Likewise.
3224         (Fdecode_builtin_char): Fixed.
3225         (syms_of_mule_charset): Add `chinese-gb12345'.
3226         (complex_vars_of_mule_charset): Add coded-charset
3227         `chinese-gb12345'.
3228
3229         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3230         (LEADING_BYTE_CHINESE_GB12345): New macro.
3231
3232 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3233
3234         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3235         and `latin-viscii-upper' for `latin-viscii'.
3236
3237 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3238
3239         * mule-charset.c (Fdecode_builtin_char): Comment out
3240         regularization code for ISO-IR GR representation.
3241
3242 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3243
3244         * mule-charset.c (decode_builtin_char): New function; renamed from
3245         `make_builtin_char'; return -1 instead of signal.
3246         (Fdecode_builtin_char): Use `decode_builtin_char'.
3247
3248         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3249         `make_builtin_char'.
3250         (DECODE_CHAR): Use `decode_builtin_char' instead of
3251         `make_builtin_char'; use mapping table of `chinese-big5' for
3252         `chinese-big5-{1,2}'.
3253
3254 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3255
3256         * text-coding.c (char_encode_big5): New function.
3257         (char_finish_big5): Likewise.
3258         (reset_encoding_stream): Use `char_encode_big5' and
3259         `char_finish_big5' for CODESYS_BIG5.
3260         (mule_encode): Don't use `encode_coding_big5'.
3261         (encode_coding_big5): Deleted.
3262
3263 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3264
3265         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3266         0x81- in XEmacs UTF-2000.
3267         (detect_coding_big5): Likewise.
3268
3269 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3270
3271         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3272         generate character-id if the CCS property does not have
3273         corresponding predefined character.
3274         (make_builtin_char): Return -1 if corresponding predefined
3275         character is not found.
3276         (Fdecode_char): Return nil if corresponding character is not
3277         found.
3278         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3279         don't map to builtin ucs space.
3280
3281 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3284         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3285
3286 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3287
3288         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3289         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3290         (Qideograph_gt): Likewise.
3291         (Qideograph_gt_pj_{1..11}): Likewise.
3292         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3293         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3294         `ideograph-gt-pj-11'.
3295         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3296         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3297         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3298
3299         * char-ucs.h (LEADING_BYTE_GT): New macro.
3300         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3301         (MIN_CHAR_GT): Likewise.
3302         (MAX_CHAR_GT): Likewise.
3303
3304 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3305
3306         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3307         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3308
3309         * doprnt.c (unsigned_int_converters): Add `c'.
3310         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3311
3312         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3313         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3314         `MIN_CHAR_MOJIKYO'.
3315         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3316         (MAX_CHAR_MOJIKYO_0): New macro.
3317         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3318
3319 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3320
3321         * mule-charset.c (Fdefine_char): Delete cemented out code.
3322         (encode_builtin_char_1): Modify for new allocation of builtin
3323         Mojikyo characters.
3324
3325         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3326
3327 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3328
3329         * mule-charset.c (Vcharset_ucs_cns): New variable.
3330         (Qucs_cns): New variable.
3331         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3332         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3333
3334 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3337
3338 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3339
3340         * search.c (search_buffer): Make `charset_base_code' as
3341         character-id >> 6 to eliminate the corresponding last byte in
3342         UTF-8 representation [I'm not sure it is right thing].
3343         (boyer_moore): Likewise.
3344
3345 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3346
3347         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3348         representation in MULE.
3349
3350 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3351
3352         * text-coding.c (Fmake_coding_system): Use
3353         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3354         `EXTERNAL_PROPERTY_LIST_LOOP'.
3355
3356 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3357
3358         * text-coding.c (decode_output_utf8_partial_char): New function.
3359         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3360
3361 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3362
3363         * text-coding.c (decode_coding_utf8): Output original byte
3364         sequence if it is broken; change order of conditions.
3365
3366         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3367         of conditions.
3368
3369         * mb-multibyte.h (BYTE_ASCII_P):
3370         Use bit ops for char-signedness safety.
3371         (BYTE_C0_P): Use bit ops for char-signedness safety.
3372         (BYTE_C1_P): Use bit ops for char-signedness safety.
3373
3374         * character.h: (XCHAR_OR_CHAR_INT):
3375         Always use inline function.
3376         Remove redundant type checking assert() - XINT will abort quite
3377         nicely.
3378
3379 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380
3381         * text-coding.c: (Fencode_shift_jis_char):
3382         (Fencode_big5_char):
3383         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3384         Replace 0 with '\0' when working with bytes.
3385         Replace initial "(" with "\(" in docstrings.
3386
3387         (Fmake_coding_system):
3388         When type is ccl and value is vector, register it with a proper
3389         symbol.  And checks whether the given ccl program is valid.
3390         (mule_decode): When calling ccl_driver, if src indicates
3391         NULL pointer, set an empty string instead.
3392         (mule_encode): Likewise.
3393
3394         (detect_eol_type):
3395         (detect_coding_sjis):
3396         (decode_coding_sjis):
3397         (detect_coding_big5):
3398         (decode_coding_big5):
3399         (detect_coding_ucs4):
3400         (decode_coding_ucs4):
3401         (detect_coding_utf8):
3402         (decode_coding_utf8):
3403         (detect_coding_iso2022):
3404         (decode_coding_iso2022):
3405         (decode_coding_no_conversion):
3406         (mule_decode):
3407         Make all detecting and decoding functions take an Extbyte * arg.
3408         (text_encode_generic):
3409         (encode_coding_big5):
3410         (encode_coding_no_conversion):
3411         (mule_encode):
3412         Make all encoding functions take a Bufbyte * arg.
3413         Use size_t instead of unsigned int for memory sizes.
3414         Only cast to unsigned char whenever dereferencing Extbyte *.
3415
3416         (struct lrecord_description fcd_description_1): Use countof.
3417         (complex_vars_of_file_coding):
3418         Use countof instead of sizeof.
3419         Use CHECK_NATNUM instead of CHECK_INT.
3420
3421 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3422
3423         * mule-charset.c (Fget_char_attribute): Add new optional argument
3424         `default-value'.
3425         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3426         (remove_char_ccs): Likewise.
3427
3428 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3429
3430         * text-coding.c (char_encode_shift_jis): New implementation in
3431         UTF-2000.
3432         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3433         ...)'.
3434
3435         * mule-charset.c (Vcharset_chinese_big5): New variable in
3436         UTF-2000.
3437         (Qchinese_big5): New variable in UTF-2000.
3438         (BIG5_SAME_ROW): New macro in UTF-2000.
3439         (make_builtin_char): Use builtin characters of
3440         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3441         characters of `Vcharset_chinese_big5'.
3442         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3443         (complex_vars_of_mule_charset): Add new coded-charset
3444         `chinese-big5' in UTF-2000.
3445
3446         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3447         (Vcharset_chinese_big5): New external variable declaration.
3448         (Vcharset_japanese_jisx0208_1990): Likewise.
3449
3450 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3451
3452         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3453         function.
3454         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3455
3456 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3457
3458         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3459         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3460         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3461         `mojikyo-pj-*'.
3462
3463 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3464
3465         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3466
3467 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3468
3469         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3470         to 0.17.
3471
3472 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3473
3474         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3475         for `CHARSET_BY_ATTRIBUTES'.
3476         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3477         `CHARSET_BY_ATTRIBUTES'.
3478
3479         * text-coding.c (struct decoding_stream): Rename member `CH' to
3480         `CPOS'.
3481         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3482         (decode_coding_sjis): Likewise.
3483         (decode_coding_big5): Likewise.
3484         (decode_coding_ucs4): Likewise.
3485         (decode_coding_utf8): Likewise.
3486         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3487         `CHARSET_BY_ATTRIBUTES'.
3488         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3489         `str->counter'; decode 3, 4 bytes sets.
3490         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3491         sets.
3492         (decode_coding_no_conversion): Use `str->cpos' instead of
3493         `str->ch'.
3494
3495         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3496         (Qmojikyo_2022_1): New variable.
3497         (make_charset): Don't use `CHARSET_TYPE_*'.
3498         (range_charset_code_point): Support coded-charset
3499         `mojikyo-2022-1'.
3500         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3501         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3502         `CHARSET_BY_ATTRIBUTES'.
3503         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3504         `CHARSET_BY_ATTRIBUTES'.
3505         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3506         (complex_vars_of_mule_charset): Add new coded-charset
3507         `mojikyo-2022-1'.
3508
3509         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3510         interface; changed to inline function.
3511
3512         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3513         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3514         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3515         (CHARSET_TYPE_94): Deleted.
3516         (CHARSET_TYPE_94X94): Deleted.
3517         (CHARSET_TYPE_96): Deleted.
3518         (CHARSET_TYPE_96X96): Deleted.
3519         (CHARSET_TYPE_128): Deleted.
3520         (CHARSET_TYPE_128X128): Deleted.
3521         (CHARSET_TYPE_256): Deleted.
3522         (CHARSET_TYPE_256X256): Deleted.
3523         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3524         to inline function.
3525         (DECODE_MOJIKYO_2022): New inline function.
3526         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3527         `Vcharset_mojikyo_2022_1'.
3528
3529 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3530
3531         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3532         instead of `EQ'.
3533         (put_byte_table): Likewise.
3534         (char_id_table_equal): Use `get_byte_table' [new implementation].
3535
3536 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3537
3538         * mule-charset.c: Include <limits.h> in UTF-2000.
3539         (BT_UINT8_MIN): New macro in UTF-2000.
3540         (BT_UINT8_MAX): New macro in UTF-2000.
3541         (BT_UINT8_t): New macro in UTF-2000.
3542         (BT_UINT8_nil): New macro in UTF-2000.
3543         (BT_UINT8_unbound): New macro in UTF-2000.
3544         (INT_UINT8_P): New inline function in UTF-2000.
3545         (UINT8_VALUE_P): New inline function in UTF-2000.
3546         (UINT8_ENCODE): New inline function in UTF-2000.
3547         (UINT8_DECODE): New inline function in UTF-2000.
3548         (mark_uint8_byte_table): New function in UTF-2000.
3549         (print_uint8_byte_table): New function in UTF-2000.
3550         (uint8_byte_table_equal): New function in UTF-2000.
3551         (uint8_byte_table_hash): New function in UTF-2000.
3552         (make_uint8_byte_table): New function in UTF-2000.
3553         (uint8_byte_table_same_value_p): New function in UTF-2000.
3554         (BT_UINT16_MIN): New macro in UTF-2000.
3555         (BT_UINT16_MAX): New macro in UTF-2000.
3556         (BT_UINT16_t): New macro in UTF-2000.
3557         (BT_UINT16_nil): New macro in UTF-2000.
3558         (BT_UINT16_unbound): New macro in UTF-2000.
3559         (INT_UINT16_P): New inline function in UTF-2000.
3560         (UINT16_VALUE_P): New inline function in UTF-2000.
3561         (UINT16_ENCODE): New inline function in UTF-2000.
3562         (UINT16_DECODE): New inline function in UTF-2000.
3563         (UINT8_TO_UINT16): New inline function in UTF-2000.
3564         (mark_uint16_byte_table): New function in UTF-2000.
3565         (print_uint16_byte_table): New function in UTF-2000.
3566         (uint16_byte_table_equal): New function in UTF-2000.
3567         (uint16_byte_table_hash): New function in UTF-2000.
3568         (make_uint16_byte_table): New function in UTF-2000.
3569         (uint16_byte_table_same_value_p): New function in UTF-2000.
3570         (print_byte_table): New function in UTF-2000.
3571         (byte-table): Use `print_byte_table' as printer.
3572         (make_byte_table): Delete second argument `older'.
3573         (byte_table_same_value_p): New function in UTF-2000.
3574         (copy_byte_table): Deleted.
3575         (get_byte_table): New function in UTF-2000.
3576         (put_byte_table): New function in UTF-2000.
3577         (print_char_id_table): New function in UTF-2000.
3578         (char-id-table): Use `print_char_id_table' as printer.
3579         (make_char_id_table): Delete second argument `older'.
3580         (get_char_id_table): Use `get_byte_table [new implementation].
3581         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3582         implementation].
3583         (Ffind_char_attribute_table): New function in UTF-2000.
3584         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3585         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3586         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3587         (syms_of_mule_charset): Add new function
3588         `find-char-attribute-table' in UTF-2000.
3589
3590         * lrecord.h (enum lrecord_type): Add
3591         `lrecord_type_uint16_byte_table' and
3592         `lrecord_type_uint8_byte_table'.
3593
3594         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3595         (Lisp_Uint8_Byte_Table): New type.
3596         (XUINT8_BYTE_TABLE): New macro.
3597         (XSETUINT8_BYTE_TABLE): New macro.
3598         (UINT8_BYTE_TABLE_P): New macro.
3599         (GC_UINT8_BYTE_TABLE_P): New macro.
3600         (struct Lisp_Uint16_Byte_Table): New structure.
3601         (Lisp_Uint16_Byte_Table): New type.
3602         (XUINT16_BYTE_TABLE): New macro.
3603         (XSETUINT16_BYTE_TABLE): New macro.
3604         (UINT16_BYTE_TABLE_P): New macro.
3605         (GC_UINT16_BYTE_TABLE_P): New macro.
3606
3607 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3610         (Vcharacter_ideographic_strokes_table): Deleted.
3611         (Vcharacter_total_strokes_table): Deleted.
3612         (Vcharacter_morohashi_daikanwa_table): Deleted.
3613         (Vcharacter_decomposition_table): Deleted.
3614         (Qname): Deleted because it is duplicated.
3615         (Qideographic_radical): Deleted.
3616         (Qideographic_strokes): Deleted.
3617         (Qtotal_strokes): Deleted.
3618         (Qmorohashi_daikanwa): Deleted.
3619         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3620         `ideographic-radical', `ideographic-strokes', `total-strokes',
3621         `morohashi-daikanwa' and `->decomposition'.
3622         (Fget_char_attribute): Likewise.
3623         (Fput_char_attribute): Likewise; use `make-vector' instead of
3624         `make_older_vector' for `->decomposition' value.
3625         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3626         `ideograph-daikanwa'.
3627         (syms_of_mule_charset): Delete builtin symbols `name',
3628         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3629         `morohashi-daikanwa'.
3630         (vars_of_mule_charset): Don't setup
3631         `Vcharacter_ideographic_radical_table',
3632         `Vcharacter_ideographic_strokes_table',
3633         `Vcharacter_total_strokes_table',
3634         `Vcharacter_morohashi_daikanwa_table' and
3635         `Vcharacter_decomposition_table'.
3636
3637 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3638
3639         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3640         `make_older_vector', `make_vector_newer_1' and
3641         `make_vector_newer'.
3642
3643         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3644         `make_older_vector' and `make_vector_newer'.
3645
3646         * config.h.in (HAVE_GGC): New macro.
3647
3648 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3649
3650         * mule-charset.c (struct char_attribute_list_closure): New
3651         structure in UTF-2000.
3652         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3653         (Fchar_attribute_list): Likewise.
3654         (Fset_charset_mapping_table): Use `make_vector_newer'.
3655         (Fdecode_builtin_char): New function in UTF-2000.
3656         (syms_of_mule_charset): Add new function `char-attribute-list' and
3657         `decode-builtin-char' in UTF-2000.
3658
3659         * lisp.h (make_vector_newer): New prototype.
3660
3661         * alloc.c (make_vector_newer_1): New function.
3662         (make_vector_newer): New function.
3663
3664 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3665
3666         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3667         50100)'.
3668
3669 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3670
3671         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3672         (Vcharacter_attribute_table): Deleted.
3673         (Vcharacter_name_table): Deleted.
3674         (put_char_attribute): Deleted.
3675         (remove_char_attribute): Deleted.
3676         (struct char_attribute_alist_closure): New structure.
3677         (add_char_attribute_alist_mapper): New function.
3678         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3679         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3680         (Fget_char_attribute): Likewise.
3681         (Fput_char_attribute): Likewise.
3682         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3683         of `remove_char_attribute'.
3684         (Fdefine_char): Return character.
3685         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3686         and `Vcharacter_name_table'.
3687         (complex_vars_of_mule_charset): Likewise
3688         `Vchar_attribute_hash_table'.
3689
3690 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3691
3692         * character.h (CHARC_CHARSET): New macro.
3693         (CHARC_CHARSET_ID): New macro.
3694         (CHARC_CODE_POINT): New macro.
3695         (CHARC_COLUMNS): New macro.
3696         (CHARC_TO_CHAR): New inline function.
3697         (CHARC_EQ): New inline function.
3698         (CHARC_ASCII_EQ): New inline function.
3699         (CHARC_IS_SPACE): New inline function.
3700         (ASCII_TO_CHARC): New inline function.
3701
3702         * char-ucs.h (encode_char_2): Deleted.
3703         (ENCODE_CHAR): Use `encode_char_1' again.
3704         (breakup_char_1): Likewise.
3705         (CHAR_TO_CHARC): New inline function.
3706
3707         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3708
3709 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3710
3711         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3712         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3713         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3714         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3715         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3716         `CHARC_IS_SPACE'.
3717         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3718
3719         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3720         `CHARC_CODE_POINT'.
3721         (x_output_display_block): Use `CHARC_CHARSET' and
3722         `CHARC_ASCII_EQ'.
3723
3724         * redisplay-tty.c (tty_output_display_block): Use
3725         `CHARC_ASCII_EQ'.
3726         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3727
3728         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3729
3730         * insdel.c (find_charsets_in_charc_string): Use
3731         `CHARC_CHARSET_ID'.
3732         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3733         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3734         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3735         (convert_charc_string_into_malloced_string): Likewise.
3736
3737 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3738
3739         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3740         instead of <Emchar_dynarr *> for buf; use
3741         `convert_bufbyte_string_into_charc_dynarr' instead of
3742         `convert_bufbyte_string_into_emchar_dynarr'; use
3743         `find_charsets_in_charc_string' instead of
3744         `find_charsets_in_emchar_string'.
3745
3746         * redisplay.h:
3747         - Include "character.h".
3748         (struct rune): New member `cglyph'; delete member `chr'.
3749
3750         * redisplay.c (redisplay_text_width_charc_string): New function;
3751         delete `redisplay_text_width_emchar_string'.
3752         (rtw_charc_dynarr): New variable; renamed from
3753         `rtw_emchar_dynarr'.
3754         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3755         `rtw_emchar_dynarr'; use
3756         `convert_bufbyte_string_into_charc_dynarr' instead of
3757         `convert_bufbyte_string_into_emchar_dynarr'; use
3758         `redisplay_text_width_charc_string' instead of
3759         `redisplay_text_width_emchar_string'.
3760         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3761         instead of `rtw_emchar_dynarr'; use
3762         `convert_bufbyte_string_into_charc_dynarr' instead of
3763         `convert_bufbyte_string_into_emchar_dynarr'.
3764         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3765         `redisplay_text_width_charc_string' instead of
3766         `redisplay_text_width_emchar_string'.
3767         (create_text_block): Modify for <struct rune> change.
3768         (generate_formatted_string_db): Likewise.
3769         (create_string_text_block): Likewise.
3770         (pixel_to_glyph_translation): Likewise.
3771
3772         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3773         instead of <const Emchar *>.
3774         (x_text_width): Likewise.
3775         (x_output_display_block): Use <Charc_dynarr *> instead
3776         <Emchar_dynarr *>; modify for <structure rune> change.
3777         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3778         *>.
3779
3780         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3781         <const Emchar *>; use `charc_string_displayed_columns' instead of
3782         `emchar_string_displayed_columns'.
3783         (tty_output_display_block): Use <Charc_dynarr *> instead of
3784         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3785         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3786         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3787         `tty_output_emchar_dynarr_dynarr'.
3788         (tty_output_charc_dynarr): New function; delete
3789         `tty_output_charc_dynarr'.
3790
3791         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3792         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3793         <Emchar_dynarr *> for buf; use
3794         `convert_bufbyte_string_into_charc_dynarr' instead of
3795         `convert_bufbyte_string_into_emchar_dynarr'.
3796
3797         * frame.c (title_string_charc_dynarr): New variable; renamed from
3798         `title_string_emchar_dynarr'.
3799         (generate_title_string): Use `title_string_charc_dynarr' instead
3800         of `title_string_emchar_dynarr'; use
3801         `convert_charc_string_into_malloced_string' instead of
3802         `convert_emchar_string_into_malloced_string'.
3803         (init_frame): Use `title_string_charc_dynarr' instead of
3804         `title_string_emchar_dynarr'.
3805
3806         * console.h:
3807         - Include "character.h".
3808         (struct console_methods): Use <const Charc *> instead of <const
3809         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3810         <Emchar_dynarr *> in output_string_method.
3811
3812         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3813         <Emchar_dynarr *>.
3814
3815         * console-stream.c (stream_text_width): Use <const Charc *>
3816         instead of <const Emchar *>.
3817
3818         * character.h (Charc_dynarr): New type.
3819
3820         * char-ucs.h (structure Charc): New structure; define new type
3821         `Charc'.
3822
3823         * char-lb.h (DECODE_CHAR): New inline function.
3824         (encode_char_1): New inline function.
3825         (ENCODE_CHAR): New macro.
3826         (structure Charc): New structure; define new type `Charc'.
3827
3828         * char-1byte.h (Vcharset_control_1): New macro.
3829         (Vcharset_latin_iso8859_1): New macro.
3830         (DECODE_CHAR): New inline function.
3831         (encode_char_1): New inline function.
3832         (ENCODE_CHAR): New macro.
3833         (structure Charc): New structure; define new type `Charc'.
3834
3835         * insdel.c (find_charsets_in_charc_string): New function; delete
3836         `find_charsets_in_emchar_string'.
3837         (charc_string_displayed_columns): New function; delete
3838         `emchar_string_displayed_columns'.
3839         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3840         `convert_bufbyte_string_into_emchar_dynarr'.
3841         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3842         `convert_charc_string_into_bufbyte_dynarr'.
3843         (convert_charc_string_into_malloced_string): New function; delete
3844         `convert_charc_string_into_malloced_string'.
3845
3846         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3847         `find_charsets_in_emchar_string'.
3848         (charc_string_displayed_columns): New prototype; delete
3849         `emchar_string_displayed_columns'.
3850         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3851         `convert_charc_string_into_bufbyte_dynarr'.
3852         (convert_charc_string_into_malloced_string): New prototype; delete
3853         `convert_charc_string_into_malloced_string'.
3854
3855 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3856
3857         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3858
3859 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3860
3861         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3862
3863         * char-ucs.h: Use <short> for <Charset_ID>.
3864
3865         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3866         <Charset_ID>.
3867
3868 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3869
3870         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3871         to 0.16.
3872
3873 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3874
3875         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3876         variable.
3877         (Qmorohashi_daikanwa): New variable.
3878         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3879         for `morohashi-daikanwa' attribute.
3880         (Fget_char_attribute): Likewise.
3881         (Fput_char_attribute): Likewise.
3882         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3883         has the same value of `ideograph-daikanwa'.
3884         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3885         (vars_of_mule_charset): Setup
3886         `Vcharacter_morohashi_daikanwa_table'.
3887
3888 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3889
3890         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3891         attributes.
3892         (add_charset_to_list_mapper): Add `key' instead of
3893         `XCHARSET_NAME (value)' to return aliases.
3894
3895 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3896
3897         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3898         variable.
3899         (Vcharacter_ideographic_strokes_table): New variable.
3900         (Qideographic_radical): New variable.
3901         (Qideographic_strokes): New variable.
3902         (Fchar_attribute_alist): Use
3903         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3904         attribute; use `Vcharacter_ideographic_strokes_table' for
3905         `ideographic-strokes' attribute.
3906         (Fget_char_attribute): Likewise.
3907         (Fput_char_attribute): Likewise.
3908         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3909         `ideographic-strokes'.
3910         (vars_of_mule_charset): Setup
3911         `Vcharacter_ideographic_radical_table' and
3912         `Vcharacter_ideographic_strokes_table'.
3913
3914 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3915
3916         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3917         (Qtotal_strokes): New variable.
3918         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3919         `total-strokes' attribute.
3920         (Fget_char_attribute): Likewise.
3921         (Fput_char_attribute): Likewise.
3922         (syms_of_mule_charset): Add new symbol `total-strokes'.
3923         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3924
3925 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3926
3927         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3928         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3929         are found.
3930         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3931         `->decomposition' attribute.
3932         (Fput_char_attribute): Likewise.
3933         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3934
3935 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3936
3937         * mule-charset.c (decoding_table_check_elements): New function.
3938         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3939
3940 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3941
3942         * mule-charset.c (Fset_charset_mapping_table): Use
3943         `put_char_ccs_code_point'.
3944
3945 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3946
3947         * mule-charset.c (decoding_table_put_char): New inline function.
3948         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3949
3950 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3951
3952         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3953         (XCHARSET_BYTE_SIZE): New macro.
3954         (decoding_table_remove_char): New inline function.
3955         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3956         `decoding_table_remove_char'.
3957         (remove_char_ccs): Use `decoding_table_remove_char'.
3958         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3959
3960 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3961
3962         * mule-charset.c (Vcharacter_name_table): New variable.
3963         (Qname): New variable.
3964         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3965         attribute.
3966         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3967         `Vcharacter_name_table' for `name' attribute.
3968         (Fremove_char_attribute): Use function `remove_char_ccs'.
3969         (put_char_ccs_code_point): New function.
3970         (remove_char_ccs): New function.
3971         (syms_of_mule_charset): Add new symbol `name'.
3972         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3973
3974 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3975
3976         * mule-charset.c (make_byte_table): Add new argument `older'.
3977         (make_char_id_table): Likewise.
3978         (copy_char_id_table): Comment out because it is not used.
3979         (put_char_id_table): Modify for `make_byte_table'.
3980         (Fput_char_attribute): Make encoding_table as older object;
3981         inherit older bit of `Vcharacter_composition_table'.
3982         (mark_charset): Don't mark `cs->encoding_table'.
3983         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3984         normal object; make `Vcharacter_composition_table' as an older
3985         object; delete staticpro for `Vcharacter_composition_table'; make
3986         `Vcharacter_variant_table' as a normal object.
3987
3988         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3989         (mark_object): Don't check older object in UTF-2000.
3990
3991         * lrecord.h (struct lrecord_header): Add new member `older' in
3992         UTF-2000.
3993         (set_lheader_implementation): Setup `SLI_header->older' in
3994         UTF-2000.
3995         (set_lheader_older_implementation): New macro in UTF-2000.
3996         (OLDER_RECORD_P): New macro in UTF-2000.
3997         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3998         (alloc_older_lcrecord): New prototype in UTF-2000.
3999         (alloc_older_lcrecord_type): New macro in UTF-2000.
4000
4001 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4002
4003         * mule-charset.c (byte_table_description): Use
4004         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4005         (char_id_table_description): Delete bogus `, 1'.
4006         (Fget_char_attribute): Refer encoding_table of each coded-charset
4007         to get value of coded-charset attribute of a character.
4008         (Fput_char_attribute): Use `make_older_vector' instead of
4009         `make_vector'; use encoding_table of each coded-charset to store
4010         value of coded-charset attribute of a character.
4011         (Fremove_char_attribute): Use encoding_table of each coded-charset
4012         to store value of coded-charset attribute of a character.
4013         (mark_charset): Mark `cs->encoding_table'; don't mark
4014         `cs->decoding_table'.
4015         (charset_description): Add description of new member
4016         `encoding_table'.
4017         (make_charset): Initialize `encoding_table'.
4018
4019         * char-ucs.h (struct Lisp_Charset): Add new member
4020         `encoding_table'.
4021         (CHARSET_ENCODING_TABLE): New macro.
4022         (XCHARSET_ENCODING_TABLE): New macro.
4023         (charset_code_point): New implementation.
4024         (encode_char_1): Likewise.
4025
4026         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4027         (disksave_object_finalization_1): Call finalizers of
4028         `all_older_lcrecords' in UTF-2000.
4029         (make_older_vector): New function in UTF-2000.
4030         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4031         UTF-2000.
4032
4033         * lisp.h (make_older_vector): New prototype in UTF-2000.
4034
4035 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4036
4037         * lrecord.h (enum lrecord_type): Rename
4038         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4039
4040         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4041         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4042         `get_char_code_table'.
4043
4044         * mule-charset.c (mark_char_id_table): Renamed from
4045         `mark_char_code_table'.
4046         (char_id_table_equal): Renamed from `char_code_table_equal'.
4047         (char_id_table_hash): Renamed from `char_code_table_hash'.
4048         (make_char_id_table): Renamed from `make_char_code_table'.
4049         (copy_char_id_table): Renamed from `copy_char_code_table'.
4050         (get_char_id_table): Renamed from `get_char_code_table'.
4051         (put_char_id_table): Renamed from `put_char_code_table'.
4052         (to_char_id): Renamed from `to_char_code'.
4053
4054         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4055         `Lisp_Char_Code_Table'.
4056         (char_id_table): Renamed from `char_code_table'.
4057         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4058         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4059         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4060         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4061         (get_char_id_table): Renamed from `get_char_code_table'.
4062
4063 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4064
4065         * lrecord.h (enum lrecord_type): Rename
4066         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4067
4068         * mule-charset.c (mark_byte_table): Renamed from
4069         `mark_char_byte_table'.
4070         (byte_table_equal): Renamed from `char_byte_table_equal'.
4071         (byte_table_hash): Renamed from `byte_table_hash'.
4072         (make_byte_table): Renamed from `make_byte_table'.
4073         (copy_byte_table): Renamed from `copy_char_byte_table'.
4074
4075         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4076         `Lisp_Char_Byte_Table'.
4077         (byte_table): Renamed from `char_byte_table'.
4078         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4079         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4080         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4081         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4082
4083 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4084
4085         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4086         (dfc_convert_to_internal_format): Likewise.
4087         
4088         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4089         * text-coding.c (Fcoding_system_alias_p): New function.
4090         * text-coding.c (Fcoding_system_aliasee): New function.
4091         * text-coding.c (append_suffix_to_symbol): New function.
4092         * text-coding.c (dangling_coding_system_alias_p): New function.
4093         * text-coding.c (Ffind_coding_system):
4094         * text-coding.c (Fcopy_coding_system):
4095         * text-coding.c (encode_coding_no_conversion):
4096         * text-coding.c (syms_of_file_coding):
4097         * text-coding.c (vars_of_file_coding):
4098         Rewrite coding system alias code.
4099         Allow nested aliases, like symbolic links.
4100         Allow redefinition of coding system aliases.
4101         Prevent existence of dangling coding system aliases.
4102         Eliminate convert_to_external_format.
4103         Eliminate convert_to_internal_format.
4104         
4105         * text-coding.c: Change enum eol_type to eol_type_t.
4106
4107 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4108
4109         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4110         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4111
4112         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4113         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4114
4115 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4116
4117         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4118         `ideograph-daikanwa'.
4119
4120         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4121         (Vcharset_ucs_bmp): Likewise.
4122         (Vcharset_mojikyo): Add new extern variable definition.
4123         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4124         (Vcharset_latin_iso8859_3): Likewise.
4125         (Vcharset_latin_iso8859_4): Likewise.
4126         (Vcharset_latin_iso8859_9): Likewise.
4127         (Vcharset_latin_viscii_lower): Likewise.
4128         (Vcharset_latin_viscii_upper): Likewise.
4129         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4130         `mojikyo' code-point is used to decode.
4131         (encode_char_2): New function [to convert `mojikyo' code-point to
4132         Mojikyo font encoding].
4133         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4134         (breakup_char_1): Likewise.
4135         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4136
4137 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4138
4139         * text-coding.c (Fmake_coding_system): Add document about
4140         `disable-composition' property.
4141
4142 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4143
4144         * text-coding.c (Qdisable_composition): New variable; delete
4145         `Qcomposite'.
4146         (Fmake_coding_system): Add new property `disable-composite';
4147         delete property `composite'.
4148         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4149         instead of `!CODING_SYSTEM_COMPOSITE'.
4150         (syms_of_file_coding): Add new symbol `disable-composition';
4151         delete symbol `composite'.
4152
4153         * file-coding.h (struct Lisp_Coding_System): Add
4154         `disable_composition'; delete `enable_composition'.
4155         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4156         `CODING_SYSTEM_COMPOSITE'.
4157         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4158         `XCODING_SYSTEM_COMPOSITE'.
4159
4160 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4161
4162         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4163         to 0.15.
4164
4165 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4166
4167         * text-coding.c (Qcomposite): New variable.
4168         (Fmake_coding_system): Add new property `composite'.
4169         (struct decoding_stream): Add `combined_char_count',
4170         `combined_chars' and `combining_table' in UTF-2000.
4171         (COMPOSE_FLUSH_CHARS): New macro.
4172         (COMPOSE_ADD_CHAR): New macro.
4173         (reset_decoding_stream): Reset `str->combined_char_count' and
4174         `str->combining_table' in UTF-2000.
4175         (decode_coding_iso2022): Modify for character-decomposition.
4176         (syms_of_file_coding): Add new symbol `composite'.
4177
4178 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4179
4180         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4181         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4182         of `Vcharacter_composition_table' if `->decomposition' property
4183         has only 1 element.
4184         (Qlatin_tcvn5712): New variable.
4185         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4186         (complex_vars_of_mule_charset): Add new coded-charset
4187         `latin-tcvn5712'.
4188
4189         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4190
4191 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4192
4193         * file-coding.h (struct Lisp_Coding_System): Add
4194         `enable_composition'.
4195         (CODING_SYSTEM_COMPOSITE): New macro.
4196         (XCODING_SYSTEM_COMPOSITE): New macro.
4197
4198 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4199
4200         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4201
4202 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4203
4204         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4205         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4206
4207 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4208
4209         * mule-charset.c (Vcharset_mojikyo): New variable.
4210         (Fdefine_char): Don't use coded-charset which does not have
4211         non-builtin character range to allocate character-id.
4212         (Qmojikyo): New variable.
4213         (syms_of_mule_charset): Add new symbol `mojikyo'.
4214         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4215
4216         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4217         (LEADING_BYTE_MOJIKYO): New macro.
4218         (MIN_CHAR_MOJIKYO): New macro.
4219         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4220         (MAX_CHAR_MOJIKYO): New macro.
4221
4222 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4223
4224         * mule-charset.c (remove_char_attribute): Fixed.
4225
4226 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4227
4228         * mule-charset.c (remove_char_attribute): New function.
4229         (Fremove_char_attribute): New function.
4230         (encode_builtin_char_1): Comment out builtin-support for
4231         greek-iso8859-7 and cyrillic-iso8859-5.
4232         (Fdecode_char): Check `code' is an integer.
4233         (syms_of_mule_charset): Add `remove-char-attribute'.
4234         (MIN_CHAR_GREEK): Deleted.
4235         (MAX_CHAR_GREEK): Likewise.
4236         (MIN_CHAR_CYRILLIC): Likewise.
4237         (MAX_CHAR_CYRILLIC): Likewise.
4238         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4239         MAX_CHAR_GREEK for `greek-iso8859-7'.
4240
4241         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4242         (MAX_CHAR_GREEK): Likewise.
4243         (MIN_CHAR_CYRILLIC): Likewise.
4244         (MAX_CHAR_CYRILLIC): Likewise.
4245
4246 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4247
4248         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4249         format is used without `ucs' property.
4250         (Fdecode_char): Fix problem with GR representation.
4251         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4252         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4253
4254 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * mule-charset.c (make_builtin_char): New function.
4257         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4258         (Fset_charset_mapping_table): Modify for new representation of
4259         code-point.
4260         (Fdecode_char): New function.
4261         (syms_of_mule_charset): Add new builtin function `decode-char' in
4262         UTF-2000.
4263
4264         * char-ucs.h (make_builtin_char): New prototype.
4265         (DECODE_CHAR): New inline function.
4266         (MAKE_CHAR): Use `DECODE_CHAR'.
4267
4268 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4269
4270         * text-coding.c (parse_charset_conversion_specs): Use
4271         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4272         `XCHARSET_TYPE'.
4273         (iso2022_designate): Likewise.
4274
4275         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4276         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4277
4278         * mule-charset.c (Vcharset_ucs): New variable.
4279         (print_charset): Change design; use `CHARSET_CHARS' and
4280         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4281         (make_charset): Change signature to specify `chars' and
4282         `dimension' instead of `type'.
4283         (range_charset_code_point): Modify for 256^n-set.
4284         (encode_builtin_char_1): Encode as `ucs' in default.
4285         (Fmake_charset): Modify for `make_charset'.
4286         (Fmake_reverse_direction_charset): Likewise.
4287         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4288         UTF-2000.
4289         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4290         for `make_charset'.
4291
4292         * char-ucs.h (Vcharset_ucs): New variable.
4293         (LEADING_BYTE_UCS): New macro.
4294         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4295         and `chars' to `unsigned short' from `unsigned int'.
4296         (CHARSET_TYPE): Deleted.
4297         (XCHARSET_TYPE): Deleted.
4298
4299 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4300
4301         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4302
4303         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4304         (ENCODE_CHAR): New macro.
4305
4306 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4307
4308         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4309         to 0.14 (Kawachi-Katakami).
4310
4311 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4312
4313         * text-coding.c (char_encode_shift_jis): Modify for
4314         `charset_code_point'.
4315         (char_encode_iso2022): Likewise.
4316
4317         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4318         (integer) instead of list of <Lisp_Object>s (integers) as the
4319         format of code-point of a coded-charset.
4320         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4321         (encode_builtin_char_1): New function; delete
4322         `split_builtin_char'.
4323         (charset_code_point): Return <int> instead of <Lisp_Object>.
4324         (Fsplit_char): Don't use `SPLIT_CHAR'.
4325
4326         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4327         prototype for `split_builtin_char'.
4328         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4329         (charset_code_point): Likewise.
4330         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4331         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4332
4333 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4334
4335         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4336         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4337
4338 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4339
4340         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4341
4342         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4343         (MAX_CHAR_OBS_94x94): Deleted.
4344
4345 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4346
4347         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4348
4349         * char-ucs.h (MAX_CHAR_BMP): New macro.
4350
4351 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4352
4353         * text-coding.c: Sync with r21-2-24.
4354
4355 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4356
4357         * file-coding.c: Modify for UTF-2000.
4358
4359 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4360
4361         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4362         to 0.13 (Takaida).
4363
4364 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4365
4366         * mule-charset.c (split_builtin_char): Delete builtin support for
4367         `katakana-jisx0201'.
4368         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4369         BMP area in builtin representation.
4370
4371         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4372         `Vcharset_katakana_jisx0201'.
4373
4374 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4375
4376         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4377         (Qisolated): New variable.
4378         (Qinitial): New variable.
4379         (Qmedial): New variable.
4380         (Qfinal): New variable.
4381         (Qvertical): New variable.
4382         (Qsmall): New variable.
4383         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4384         `Qvertical' and `Qsmall'.
4385         (Qmojikyo_pj_[1 .. 21]): New variable.
4386         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4387         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4388         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4389         .. 21]'.
4390
4391 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4392
4393         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4394         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4395         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4396
4397 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4398
4399         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4400         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4401         BMP.
4402         (Qjapanese_jisx0208_1990): New variable.
4403         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4404         (complex_vars_of_mule_charset): Add new coded-charset
4405         `japanese-jisx0208-1990'.
4406
4407         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4408         (MIN_CHAR_JIS_X0208_1990): New macro.
4409         (MAX_CHAR_JIS_X0208_1990): New macro.
4410
4411 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4414         coded-charset is not found.
4415
4416 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4417
4418         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4419         (Fdefine_char): Use `Fmake_char'.
4420
4421 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4422
4423         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4424         (Vcharset_hiragana_jisx0208): Deleted.
4425         (Vcharset_katakana_jisx0208): Deleted.
4426         (Qideograph_daikanwa): New variable.
4427         (Qhiragana_jisx0208): Deleted.
4428         (Qkatakana_jisx0208): Deleted.
4429         (split_builtin_char): Split `ideograph-daikanwa'.
4430         (Fsplit_char): New implementation for UTF-2000.
4431         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4432         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4433         (complex_vars_of_mule_charset): Add new coded-charset
4434         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4435         `katakana-jisx0208'.
4436
4437         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4438         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4439         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4440         (MIN_CHAR_DAIKANWA): New macro.
4441         (MAX_CHAR_DAIKANWA): New macro.
4442
4443 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4444
4445         * data.c (Fstring_to_number): Don't recognize floating point if
4446         base is not 10.
4447
4448 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4449
4450         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4451
4452 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4453
4454         * mule-charset.c (Qsquare): New variable.
4455         (to_char_code): Add `Qsquare'.
4456         (syms_of_mule_charset): Add new symbol `square'.
4457
4458 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4459
4460         * mule-charset.c (Qcircle): New variable.
4461         (to_char_code): Add `Qcircle'.
4462         (syms_of_mule_charset): Add new symbol `circle'.
4463
4464 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4465
4466         * mule-charset.c (Qfont): New variable.
4467         (to_char_code): Add `Qfont'.
4468         (syms_of_mule_charset): Add new symbol `font'.
4469
4470 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4471
4472         * mule-charset.c (Qsub): New variable.
4473         (to_char_code): Add `Qsub'.
4474         (syms_of_mule_charset): Add new symbol `sub'.
4475
4476 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4477
4478         * mule-charset.c (Fput_char_attribute): Convert each element of
4479         VALUE to GL position if ATTRIBUTE is a GR-set,
4480
4481 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4482
4483         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4484         coded-charset is a GR-set.
4485
4486 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * mule-charset.c (Fput_char_attribute): Check each element of
4489         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4490
4491 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4492
4493         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4494         UTF-2000.
4495         (Qethiopic_ucs): New variable in UTF-2000.
4496         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4497         (complex_vars_of_mule_charset): Add new coded-charset
4498         `ethiopic-ucs' in UTF-2000.
4499
4500         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4501         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4502         9)'.
4503         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4504         10)'.
4505         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4506
4507 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4510         `ascii'.
4511
4512 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4513
4514         * mule-charset.c (Vcharacter_variant_table): New variable.
4515         (Q_ucs): New variable.
4516         (Fchar_variants): New function.
4517         (Fput_char_attribute): Register `->ucs' value to
4518         `Vcharacter_variant_table'.
4519         (syms_of_mule_charset): Add new function `char-variants' and new
4520         symbol `->ucs'.
4521         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4522
4523 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4524
4525         * mule-charset.c (get_char_code_table): Allow negative character
4526         code.
4527         (put_char_code_table): Likewise.
4528         (Vcharacter_composition_table): New variable.
4529         (Q_decomposition): New variable.
4530         (Qwide): New variable.
4531         (Qnarrow): New variable.
4532         (Qcompat): New variable.
4533         (QnoBreak): New variable.
4534         (Qsuper): New variable.
4535         (Qfraction): New variable.
4536         (to_char_code): New function.
4537         (Fget_composite_char): New function.
4538         (Fput_char_attribute): Register `->decomposition' value to
4539         `Vcharacter_composition_table'.
4540         (syms_of_mule_charset): Add new function `get-composite-char', new
4541         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4542         `super' and `fraction'.
4543         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4544
4545 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4546
4547         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4548         character; copy the return value.
4549
4550 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4551
4552         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4553
4554         * mule-charset.c (range_charset_code_point): Must use make_int.
4555         (split_builtin_char): New function.
4556
4557 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4558
4559         * mule-charset.c (char_byte_table): Change name from
4560         "char-code-table" to "char-byte-table".
4561         (mark_char_code_table): New function.
4562         (char_code_table_equal): New function.
4563         (char_code_table_hash): New function.
4564         (char_code_table_description): New constant.
4565         (char_code_table): New type.
4566         (make_char_code_table): New function.
4567         (copy_char_code_table): New function.
4568         (get_char_code_table): Modify for `char_code_table' type.
4569         (put_char_code_table): Likewise.
4570         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4571         (Kashiwara).
4572
4573         * char-ucs.h (char_code_table): New type.
4574         (XCHAR_CODE_TABLE): New macro.
4575         (XSETCHAR_CODE_TABLE): New macro.
4576         (CHAR_CODE_TABLE_P): New macro.
4577         (GC_CHAR_CODE_TABLE_P): New macro.
4578         (struct Lisp_Char_Code_Table): New structure.
4579
4580 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4581
4582         * mule-charset.c (Fmake_charset): Setup byte_offset for
4583         {94|96}^n-set.
4584
4585 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4586
4587         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4588         character.
4589
4590 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4591
4592         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4593         is found.
4594
4595 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4596
4597         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4598         charset, it is regarded as a charset.
4599         (put_char_attribute): New function in UTF-2000.
4600         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4601         charset, mapping-table of the charset is modified.
4602         (Fdefine_char): New function in UTF-2000.
4603         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4604         `Fput_char_attribute'.
4605         (syms_of_mule_charset): Add new function `define-char' and new
4606         symbol `ucs' in UTF-2000.
4607         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4608
4609 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4610
4611         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4612         non-UTF-2000 configuration.
4613
4614 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4615
4616         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4617         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4618
4619         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4620         deleted.
4621         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4622         (Fset_charset_mapping_table): Likewise.
4623
4624         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4625         (CHARSET_ENCODING_TABLE): Delete.
4626         (XCHARSET_ENCODING_TABLE): Delete.
4627         (charset_code_point): New interface.
4628
4629 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4630
4631         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4632         instead of `charset_get_byte1' and `charset_get_byte2'.
4633
4634         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4635         (charset_get_byte2): Deleted.
4636
4637 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4638
4639         * char-ucs.h (SPLIT_CHAR): New inline function.
4640         (breakup_char_1): Use `SPLIT_CHAR'.
4641
4642         * mule-charset.c (range_charset_code_point): New function.
4643         (charset_code_point): New function.
4644
4645         * char-ucs.h (range_charset_code_point): New interface.
4646         (breakup_char_1): Use `range_charset_code_point'.
4647
4648 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4649
4650         * mule-charset.c (Fmake_charset): Delete unused local variable
4651         `code_offset'.
4652
4653         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4654         (breakup_char_1): Find a charset and code-point in
4655         `Vcharacter_attribute_table'.
4656
4657 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4658
4659         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4660         to 0.10 (Yao).
4661
4662 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4663
4664         * mule-charset.c (Vcharacter_attribute_table): New variable.
4665         (Fchar_attribute_alist): New function.
4666         (Fget_char_attribute): New function.
4667         (Fput_char_attribute): New function.
4668         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4669         too.
4670         (syms_of_mule_charset): Add new function `char-attribute-alist',
4671         `get-char-attribute' and `put-char-attribute'.
4672         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4673
4674 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4675
4676         * mule-charset.c (Fmake_charset): Just use
4677         `get_unallocated_leading_byte'.
4678
4679         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4680         sets; don't use final-byte based number for private sets.
4681
4682 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4683
4684         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4685         integer.
4686
4687 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4688
4689         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4690         to 0.9.
4691
4692 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4693
4694         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4695         of `CHAR_LEADING_BYTE' in UTF-2000.
4696
4697         * insdel.c (find_charsets_in_bufbyte_string): Use
4698         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4699         (find_charsets_in_emchar_string): Likewise.
4700
4701         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4702         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4703
4704         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4705         (CHAR_CHARSET_ID): New macro.
4706
4707 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4708
4709         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4710         charset-id - MIN_LEADING_BYTE.
4711         (put_char_table): Likewise.
4712
4713 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4714
4715         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4716         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4717         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4718         (CHARSET_ID_OFFSET): New macro.
4719         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4720         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4721         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4722         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4723         4).
4724         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4725         5).
4726         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4727         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4728         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4729         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4730         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4731
4732 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4733
4734         * mule-charset.c (next_allocated_leading_byte): New variable in
4735         UTF-2000.
4736         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4737         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4738         (get_unallocated_leading_byte): Simply use
4739         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4740         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4741         UTF-2000.
4742
4743         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4744         (MAX_LEADING_BYTE_PRIVATE): New macro.
4745         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4746         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4747
4748 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4749
4750         * mule-charset.c (Fmake_charset): Allocate final-byte based
4751         charset-id for 94-set, 96-set and 94x94-set.
4752
4753 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4754
4755         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4756         ambiguous `else'.
4757         (Fmake_charset): Likewise.
4758         (complex_vars_of_mule_charset): Modify the font registry of
4759         `ucs-bmp' not to match `Ethiopic-Unicode'.
4760
4761 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4762
4763         * mule-charset.c (complex_vars_of_mule_charset): Add font
4764         registory of `ucs-bmp'.
4765
4766 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4767
4768         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4769         coded-charsets in `default-coded-charset-priority-list' when
4770         breaking up a character.
4771
4772         * mule-charset.c (Vcharset_latin_viscii): New variable.
4773         (Qlatin_viscii): New variable.
4774         (make_charset): Don't use `decoding_table'.
4775         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4776         byte_offset.
4777         (Fset_charset_mapping_table): New implementation.
4778         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4779         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4780         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4781         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4782         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4783         charset `latin_viscii'.
4784
4785         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4786         (CHARSET_TYPE_94X94): Change to 1 from 2.
4787         (CHARSET_TYPE_96): Change to 2 from 1.
4788         (CHARSET_TYPE_128): New macro.
4789         (CHARSET_TYPE_128X128): Change to 5 from 4.
4790         (CHARSET_TYPE_256): New macro.
4791         (CHARSET_TYPE_256X256): Change to 7 from 5.
4792         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4793
4794 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4795
4796         * text-coding.c (char_encode_shift_jis): Refer
4797         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4798         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4799
4800         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4801         (char_byte_table_equal): New function in UTF-2000.
4802         (char_byte_table_hash): New function in UTF-2000.
4803         (char_byte_table_description): New constant in UTF-2000.
4804         (char_byte_table): New type in UTF-2000.
4805         (make_char_byte_table): New function in UTF-2000.
4806         (copy_char_byte_table): New function in UTF-2000.
4807         (make_char_code_table): New macro in UTF-2000.
4808         (get_char_code_table): New function in UTF-2000.
4809         (put_char_code_table): New function in UTF-2000.
4810         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4811         (charset_description): Add setting in UTF-2000.
4812         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4813         `CHARSET_TO_BYTE1_TABLE(cs)'.
4814         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4815         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4816         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4817         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4818         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4819         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4820         `CHARSET_TO_BYTE2_TABLE(cs)'.
4821
4822         * char-ucs.h (char_byte_table): New type.
4823         (XCHAR_BYTE_TABLE): New macro.
4824         (XSETCHAR_BYTE_TABLE): New macro.
4825         (CHAR_BYTE_TABLE_P): New macro.
4826         (GC_CHAR_BYTE_TABLE_P): New macro.
4827         (struct Lisp_Char_Byte_Table): New structure.
4828         (get_char_code_table): New interface.
4829         (Emchar_to_byte_table): Deleted.
4830         (get_byte_from_character_table): Deleted.
4831         (struct Lisp_Charset): Add `encoding_table'; delete
4832         `to_byte1_table' and `to_byte2_table'.
4833         (CHARSET_ENCODING_TABLE): New macro.
4834         (CHARSET_TO_BYTE1_TABLE): Deleted.
4835         (CHARSET_TO_BYTE2_TABLE): Deleted.
4836         (XCHARSET_ENCODING_TABLE): New macro.
4837         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4838         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4839
4840 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4843         `vietnamese-viscii-*'.
4844
4845 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4846
4847         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4848         (Qvietnamese_viscii_upper): New variable.
4849         (Fdefine_charset_alias): New function.
4850         (syms_of_mule_charset): Add new function `define-charset-alias'.
4851         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4852         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4853         `latin-viscii-*'.
4854
4855 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4856
4857         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4858         (MAX_CHAR_OBS_94x94): New macro.
4859         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4860         for 94x94 sets.
4861
4862         * mule-charset.c (put_byte_from_character_table): Change unit size
4863         from 128 to 256.
4864         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4865         not defined.
4866         (Fmake_reverse_direction_charset): Modify dummy argument of
4867         `make_charset' for non-UTF-2000 environment.
4868
4869 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4870
4871         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4872
4873         * mule-charset.c (destroy_byte_from_character_table): New macro.
4874         (latin_jisx0201_to_ucs): Deleted.
4875         (latin_iso8859_2_to_ucs): Deleted.
4876         (latin_iso8859_3_to_ucs): Deleted.
4877         (latin_iso8859_4_to_ucs): Deleted.
4878         (latin_iso8859_9_to_ucs): Deleted.
4879         (latin_viscii_lower_to_ucs): Deleted.
4880         (latin_viscii_upper_to_ucs): Deleted.
4881         (mark_charset): Mark `cs->decoding_table'.
4882         (Fcharset_mapping_table): Fix DOC-string.
4883         (Fset_charset_mapping_table): New function.
4884         (syms_of_mule_charset): Add nwe function
4885         `set-charset-mapping-table'.
4886         (complex_vars_of_mule_charset): Don't setup and use
4887         `latin_*_to_ucs'.
4888
4889 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4890
4891         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4892         charset.
4893
4894 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4895
4896         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4897         (Vcharset_katakana_jisx0208): New variable.
4898         (Qhiragana_jisx0208): New variable.
4899         (Qkatakana_jisx0208): New variable.
4900         (make_charset): Add new argument `byte_offset'.
4901         (charset_get_byte1): Modify for new coded-charset definition; use
4902         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4903         `XCHARSET_BYTE_OFFSET'.
4904         (Fmake_charset): Modify for `make_charset'.
4905         (Fmake_reverse_direction_charset): Likewise.
4906         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4907         `katakana-jisx0208'.
4908         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4909         `.'  in font registry of charset `katakana-jisx0201',
4910         `latin-jisx0201', `vietnamese-viscii-lower' and
4911         `vietnamese-viscii-upper'; modify DOC-string of charset
4912         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4913         registry of charset `japanese-jisx0208' not to use font for JIS
4914         X0208:1990; add new charset `hiragana-jisx0208' and
4915         `katakana-jisx0208'.
4916
4917         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4918         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4919         (struct Lisp_Charset): Add `byte_offset'.
4920         (CHARSET_BYTE_OFFSET): New macro.
4921         (XCHARSET_UCS_MIN): New macro.
4922         (XCHARSET_UCS_MAX): New macro.
4923         (XCHARSET_CODE_OFFSET): New macro.
4924         (XCHARSET_BYTE_OFFSET): New macro.
4925         (MIN_CHAR_HIRAGANA): New macro.
4926         (MAX_CHAR_HIRAGANA): New macro.
4927         (MIN_CHAR_KATAKANA): New macro.
4928         (MAX_CHAR_KATAKANA): New macro.
4929         (MAKE_CHAR): Modify for new coded-charset definition; use
4930         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4931         `XCHARSET_BYTE_OFFSET'.
4932
4933 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4934
4935         * mule-charset.c (CHAR96): Deleted.
4936         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4937         <Lisp_Object>.
4938         (latin_iso8859_2_to_ucs): Likewise.
4939         (latin_iso8859_3_to_ucs): Likewise.
4940         (latin_iso8859_4_to_ucs): Likewise.
4941         (latin_iso8859_9_to_ucs): Likewise.
4942         (latin_viscii_lower_to_ucs): Likewise.
4943         (latin_viscii_upper_to_ucs): Likewise.
4944         (latin_tcvn5712_to_ucs): Commented out.
4945         (make_charset): Change type of argument `decoding_table' from
4946         <Emchar*> to <Lisp_Object> [vector of characters].
4947         (Fmake_charset): Modify for `make_charset'.
4948         (Fmake_reverse_direction_charset): Likewise.
4949         (Fcharset_mapping_table): New function in UTF-2000.
4950         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4951         UTF-2000.
4952         (complex_vars_of_mule_charset): Modify for type change of
4953         `*_to_ucs'; modify for `make_charset'.
4954
4955         * char-ucs.h (struct Lisp_Charset): Change type of
4956         `decoding_table' from <Emchar*> to <Lisp_Object>.
4957         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4958
4959 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4960
4961         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4962         error with non-UTF-2000-Mule.
4963
4964 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4965
4966         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4967         in lisp again].
4968         (Vcharset_chinese_cns11643_4): Likewise.
4969         (Vcharset_chinese_cns11643_5): Likewise.
4970         (Vcharset_chinese_cns11643_6): Likewise.
4971         (Vcharset_chinese_cns11643_7): Likewise.
4972         (Qchinese_cns11643_3): Likewise.
4973         (Qchinese_cns11643_4): Likewise.
4974         (Qchinese_cns11643_5): Likewise.
4975         (Qchinese_cns11643_6): Likewise.
4976         (Qchinese_cns11643_7): Likewise.
4977         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4978         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4979         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4980         (complex_vars_of_mule_charset): Likewise.
4981
4982 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4983
4984         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4985         96-set.
4986         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4987         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4988
4989 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4990
4991         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4992         0xFF60.
4993         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4994         (breakup_char_1): Likewise.
4995
4996         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4997         one of them includes the specified character.
4998
4999 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5000
5001         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5002
5003 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5004
5005         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5006
5007 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5008
5009         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5010         definition for non-UTF-2000 Mule.
5011         (latin_iso8859_3_to_ucs): Likewise.
5012         (latin_iso8859_4_to_ucs): Likewise.
5013         (latin_iso8859_9_to_ucs): Likewise.
5014         (latin_jisx0201_to_ucs): Likewise.
5015         (MIN_CHAR_THAI): Likewise.
5016         (MAX_CHAR_THAI): Likewise.
5017         (MIN_CHAR_GREEK): Likewise.
5018         (MAX_CHAR_GREEK): Likewise.
5019         (MIN_CHAR_HEBREW): Likewise.
5020         (MAX_CHAR_HEBREW): Likewise.
5021         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5022         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5023         (MIN_CHAR_CYRILLIC): Likewise.
5024         (MAX_CHAR_CYRILLIC): Likewise.
5025
5026 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5027
5028         * char-ucs.h (breakup_char_1): Use
5029         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5030         thai-tis620 and katakana-jisx0201 area.
5031
5032 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5033
5034         * char-ucs.h (breakup_char_1): Use
5035         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5036         area.
5037
5038         * text-coding.c (reset_encoding_stream): Fixed.
5039         (char_encode_ucs4): Delete `& 255'.
5040
5041         * char-ucs.h (breakup_char_1): Use
5042         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5043
5044 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5045
5046         * file-coding.c (Fmake_coding_system): Don't set up
5047         `codesys->fixed.size'.
5048         (encode_coding_no_conversion): Don't refer
5049         `str->codesys->fixed.size'.
5050
5051 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5052
5053         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5054         (latin_a_char_to_byte1): Deleted.
5055         (latin_a_char_to_byte2): Deleted.
5056
5057 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5058
5059         * mule-charset.c (make_charset): Add new argument `ucs_min',
5060         `ucs_max' and `code_offset'.
5061         (charset_get_byte1): New implementation [delete specific charset
5062         depended implementations].
5063         (Fmake_charset): Modify for `make_charset'.
5064         (Fmake_reverse_direction_charset): Likewise.
5065         (complex_vars_of_mule_charset): Likewise.
5066
5067         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5068         `code_offset'.
5069         (CHARSET_UCS_MIN): New macro.
5070         (CHARSET_UCS_MAX): New macro.
5071         (CHARSET_CODE_OFFSET): New macro.
5072         (MAKE_CHAR): Delete charset depended definitions [except
5073         katakana-jisx0201].
5074
5075 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5076
5077         * char-ucs.h (breakup_char_1): Use
5078         `Vdefault_coded_charset_priority_list' for C0-Controls,
5079         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5080
5081 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5082
5083         * char-ucs.h (charset_get_byte1): New function.
5084         (XCHARSET_GET_BYTE1): Deleted.
5085         (charset_get_byte2): New function.
5086         (XCHARSET_GET_BYTE2): Deleted.
5087         (Vdefault_coded_charset_priority_list): New external variable.
5088         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5089         `Vdefault_preferred_coded_charset_list'.
5090
5091         * mule-charset.c (charset_get_byte1): New function.
5092         (charset_get_byte2): New function.
5093         (Vdefault_coded_charset_priority_list): New variable.
5094         (vars_of_mule_charset): Add new variable
5095         `default-coded-charset-priority-list'.
5096
5097 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5098
5099         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5100         (XCHARSET_GET_BYTE2): New inline function.
5101         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5102         `XCHARSET_GET_BYTE2'.
5103
5104 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5105
5106         * mule-charset.c (make_charset): Initialize
5107         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5108         NULL if table is not defined.
5109
5110 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5111
5112         * text-coding.c (char_encode_shift_jis): Use
5113         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5114         `ucs_to_latin_jisx0201'.
5115
5116         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5117         (ucs_to_latin_iso8859_2): Deleted.
5118         (ucs_to_latin_iso8859_3): Deleted.
5119         (ucs_to_latin_iso8859_4): Deleted.
5120         (ucs_to_latin_iso8859_9): Deleted.
5121         (ucs_to_latin_viscii_lower): Deleted.
5122         (ucs_to_latin_viscii_upper): Deleted.
5123         (ucs_to_latin_tcvn5712): Deleted.
5124         (make_charset): Add new argument `decoding_table'; set up
5125         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5126         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5127         `decoding_table' is defined in UTF-2000.
5128         (Fmake_charset): Modify for `make_charset'.
5129         (Fmake_reverse_direction_charset): Likewise.
5130         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5131         and `GENERATE_96_SET'.
5132
5133         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5134         (ucs_to_latin_jisx0201): Deleted.
5135         (latin_iso8859_2_to_ucs): Deleted.
5136         (ucs_to_latin_iso8859_2): Deleted.
5137         (latin_iso8859_3_to_ucs): Deleted.
5138         (ucs_to_latin_iso8859_3): Deleted.
5139         (latin_iso8859_4_to_ucs): Deleted.
5140         (ucs_to_latin_iso8859_4): Deleted.
5141         (latin_iso8859_9_to_ucs): Deleted.
5142         (ucs_to_latin_iso8859_9): Deleted.
5143         (latin_viscii_lower_to_ucs): Deleted.
5144         (ucs_to_latin_viscii_lower): Deleted.
5145         (latin_viscii_upper_to_ucs): Deleted.
5146         (ucs_to_latin_viscii_upper): Deleted.
5147         (struct Lisp_Charset): Renamed `encoding_table' to
5148         `to_byte1_table'; add `to_byte2_table'.
5149         (CHARSET_DECODING_TABLE): New macro.
5150         (CHARSET_TO_BYTE1_TABLE): New macro.
5151         (CHARSET_TO_BYTE2_TABLE): New macro.
5152         (XCHARSET_DECODING_TABLE): New macro.
5153         (XCHARSET_TO_BYTE1_TABLE): New macro.
5154         (XCHARSET_TO_BYTE2_TABLE): New macro.
5155         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5156         tables.
5157         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5158         don't use `ucs_to_*' tables.
5159
5160 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5161
5162         * text-coding.c (Fmake_coding_system): Don't set up
5163         `codesys->fixed.size'.
5164         (encode_coding_no_conversion): Use `if' instead of `switch'.
5165
5166         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5167
5168 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5169
5170         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5171         (Fmake_charset): Modify for `make_charset'.
5172         (Fmake_reverse_direction_charset): Likewise.
5173         (complex_vars_of_mule_charset): Likewise.
5174
5175 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5176
5177         * text-coding.c (char_encode_shift_jis): Use table
5178         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5179
5180 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5181
5182         * text-coding.c (text_encode_generic): Use `if' instead of
5183         `switch'.
5184         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5185         decode JIS-Latin.
5186
5187 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5188
5189         * text-coding.c (encode_coding_sjis): Deleted.
5190         (char_encode_shift_jis): New function.
5191         (char_finish_shift_jis): New function.
5192         (reset_encoding_stream): Set up `encode_char' and `finish' for
5193         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5194         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5195         (char_encode_utf8): Treat `eol_type'.
5196
5197 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5198
5199         * file-coding.c (decode_coding_iso2022): Use
5200         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5201
5202 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5203
5204         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5205         to 0.7 (Hirano).
5206
5207 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5208
5209         * char-lb.h (CHAR_COLUMNS): New macro.
5210
5211 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * text-coding.c (char_encode_ucs4): New function.
5214         (char_finish_ucs4): New function.
5215         (encode_coding_ucs4): Deleted.
5216         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5217         (text_encode_generic): Delete local variable `charset' and `half'.
5218         (ucs_to_mule_table): Deleted.
5219         (mule_to_ucs_table): Deleted.
5220         (Fset_ucs_char): Deleted.
5221         (ucs_to_char): Deleted.
5222         (Fucs_char): Deleted.
5223         (Fset_char_ucs): Deleted.
5224         (Fchar_ucs): Deleted.
5225         (decode_ucs4): Deleted.
5226         (mule_char_to_ucs4): Deleted.
5227         (encode_ucs4): Deleted.
5228         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5229         (decode_coding_utf8): Likewise.
5230         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5231         (char_encode_iso2022): Fixed.
5232         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5233         `Fset_char_ucs' and `Fchar_ucs'.
5234         (complex_vars_of_file_coding): Don't initialize
5235         `ucs_to_mule_table'.
5236
5237         * objects-tty.c (tty_initialize_font_instance): Don't use
5238         `XCHARSET_COLUMNS'.
5239
5240         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5241         UTF-2000.
5242
5243         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5244         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5245
5246         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5247         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5248         (emchar_string_displayed_columns): Likewise.
5249
5250         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5251         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5252         (string_column_at_point): Likewise.
5253         (Fmove_to_column): Likewise.
5254
5255         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5256         `encoding_table' and `decoding_table'.
5257         (CHARSET_REP_BYTES): Deleted.
5258         (XCHARSET_REP_BYTES): Deleted.
5259         (XCHARSET_COLUMNS): Deleted.
5260         (CHAR_COLUMNS): New macro.
5261         (lookup_composite_char): Deleted unconditionally.
5262         (composite_char_string): Likewise.
5263
5264 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5265
5266         * char-ucs.h (Emchar_to_byte_table): New type.
5267         (get_byte_from_character_table): New function interface.
5268         (Vcharset_latin_jisx0201): New variable.
5269         (latin_jisx0201_to_ucs): New variable.
5270         (ucs_to_latin_jisx0201): New variable.
5271         (Vcharset_latin_iso8859_2): New variable.
5272         (latin_iso8859_2_to_ucs): New variable.
5273         (ucs_to_latin_iso8859_2): New variable.
5274         (Vcharset_latin_iso8859_3): New variable.
5275         (latin_iso8859_3_to_ucs): New variable.
5276         (ucs_to_latin_iso8859_3): New variable.
5277         (Vcharset_latin_iso8859_4): New variable.
5278         (latin_iso8859_4_to_ucs): New variable.
5279         (ucs_to_latin_iso8859_4): New variable.
5280         (Vcharset_latin_iso8859_9): New variable.
5281         (latin_iso8859_9_to_ucs): New variable.
5282         (ucs_to_latin_iso8859_9): New variable.
5283         (Vcharset_latin_viscii_lower): New variable.
5284         (latin_viscii_lower_to_ucs): New variable.
5285         (ucs_to_latin_viscii_lower): New variable.
5286         (Vcharset_latin_viscii_upper): New variable.
5287         (latin_viscii_upper_to_ucs): New variable.
5288         (ucs_to_latin_viscii_upper): New variable.
5289         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5290         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5291         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5292         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5293         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5294         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5295         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5296         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5297         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5298         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5299
5300         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5301         (Vcharset_latin_viscii_upper): New variable.
5302         (make_byte_from_character_table): New function.
5303         (put_byte_from_character_table): New function.
5304         (get_byte_from_character_table): New function.
5305         (CHAR96): New macro.
5306         (ucs_to_latin_jisx0201): New variable.
5307         (latin_jisx0201_to_ucs): New variable.
5308         (ucs_to_latin_iso8859_2): New variable.
5309         (latin_iso8859_2_to_ucs): New variable.
5310         (ucs_to_latin_iso8859_3): New variable.
5311         (latin_iso8859_3_to_ucs): New variable.
5312         (ucs_to_latin_iso8859_4): New variable.
5313         (latin_iso8859_4_to_ucs): New variable.
5314         (ucs_to_latin_iso8859_9): New variable.
5315         (latin_iso8859_9_to_ucs): New variable.
5316         (ucs_to_latin_viscii_lower): New variable.
5317         (latin_viscii_lower_to_ucs): New variable.
5318         (ucs_to_latin_viscii_upper): New variable.
5319         (latin_viscii_upper_to_ucs): New variable.
5320         (ucs_to_latin_tcvn5712): New variable.
5321         (latin_tcvn5712_to_ucs): New variable.
5322         (Qlatin_viscii_lower): New variable.
5323         (Qlatin_viscii_upper): New variable.
5324         (syms_of_mule_charset): Set up new symbol
5325         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5326         (complex_vars_of_mule_charset): Set up new charset
5327         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5328         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5329         `ucs_to_<CHARSET>' tables.
5330
5331 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5332
5333         * text-coding.c: New file.
5334
5335 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5336
5337         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5338
5339         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5340         (MAKE_CHAR): Modify for `ucs-bmp'.
5341         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5342         non-MULE characters of BMP.
5343
5344 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5345
5346         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5347         to 0.6.
5348
5349 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5350
5351         * lstream.h:
5352         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5353         - Include character.h for `CHAR_ASCII_P'.
5354
5355         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5356
5357         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5358         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5359
5360         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5361         (BYTE_C0_P): Likewise.
5362         (BYTE_C1_P): Likewise.
5363         (Lstream_get_emchar_1): Likewise.
5364         (Lstream_fput_emchar): Likewise.
5365         (Lstream_funget_emchar): Likewise.
5366         (copy_internal_to_external): Likewise.
5367         (copy_external_to_internal): Likewise.
5368
5369         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5370         (BYTE_C0_P): Likewise.
5371         (BYTE_C1_P): Likewise.
5372         (Lstream_get_emchar_1): Likewise.
5373         (Lstream_fput_emchar): Likewise.
5374         (Lstream_funget_emchar): Likewise.
5375         (copy_internal_to_external): Likewise.
5376         (copy_external_to_internal): Likewise.
5377
5378         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5379         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5380
5381         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5382         (BYTE_ASCII_P): Moved to mb-1byte.h.
5383
5384 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5385
5386         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5387
5388         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5389         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5390         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5391         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5392         (VALIDATE_CHARPTR_FORWARD): Likewise.
5393         (simple_charptr_emchar): Moved to mb-multibyte.h.
5394         (simple_set_charptr_emchar): Likewise.
5395         (simple_charptr_copy_char): Likewise.
5396         (non_ascii_charptr_emchar): Likewise.
5397         (non_ascii_set_charptr_emchar): Likewise.
5398         (non_ascii_charptr_copy_char): Likewise.
5399         (charptr_emchar): Moved to mb-*byte.h.
5400         (set_charptr_emchar): Likewise.
5401         (charptr_copy_char): Likewise.
5402
5403         * mb-1byte.h, mb-multibyte.h: New files.
5404
5405 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5406
5407         * mb-utf-8.h (MULTIBYTE): New macro.
5408         (MAX_EMCHAR_LEN): Moved from buffer.h.
5409         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5410
5411         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5412
5413         * mb-lb.h, multibyte.h: New files.
5414
5415         * char-1byte.h (Charset_ID): Moved from buffer.h.
5416         (MIN_LEADING_BYTE): Likewise.
5417         (LEADING_BYTE_ASCII): Likewise.
5418         (NUM_LEADING_BYTES): Likewise.
5419         (CHARSETP): Likewise.
5420         (CHARSET_BY_LEADING_BYTE): Likewise.
5421         (XCHARSET_LEADING_BYTE): Likewise.
5422         (XCHARSET_GRAPHIC): Likewise.
5423         (XCHARSET_COLUMNS): Likewise.
5424         (XCHARSET_DIMENSION): Likewise.
5425         (CHAR_CHARSET): Likewise.
5426         (CHAR_LEADING_BYTE): Likewise.
5427         (BREAKUP_CHAR): Likewise.
5428         (Vcharset_ascii): Likewise.
5429
5430         * buffer.h: Include multibyte.h unconditionally.
5431         (VALID_CHARPTR_P): Moved to multibyte.h.
5432         (ASSERT_VALID_CHARPTR): Likewise.
5433         (REAL_INC_CHARPTR): Likewise.
5434         (REAL_INC_CHARBYTIND): Likewise.
5435         (REAL_DEC_CHARPTR): Likewise.
5436         (INC_CHARPTR): Likewise.
5437         (INC_CHARBYTIND): Likewise.
5438         (DEC_CHARPTR): Likewise.
5439         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5440         (VALIDATE_CHARPTR_FORWARD): Likewise.
5441         (charptr_n_addr): Likewise.
5442         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5443         (simple_charptr_emchar): Moved to multibyte.h.
5444         (simple_set_charptr_emchar): Likewise.
5445         (simple_charptr_copy_char): Likewise.
5446         (non_ascii_charptr_emchar): Likewise.
5447         (non_ascii_set_charptr_emchar): Likewise.
5448         (non_ascii_charptr_copy_char): Likewise.
5449         (charptr_emchar): Likewise.
5450         (set_charptr_emchar): Likewise.
5451         (charptr_copy_char): Likewise.
5452         (charptr_emchar_n): Likewise.
5453         (Charset_ID): Moved to char-1byte.h.
5454         (Vcharset_ascii): Likewise.
5455         (CHAR_CHARSET): Likewise.
5456         (CHAR_LEADING_BYTE): Likewise.
5457         (LEADING_BYTE_ASCII): Likewise.
5458         (NUM_LEADING_BYTES): Likewise.
5459         (MIN_LEADING_BYTE): Likewise.
5460         (CHARSETP): Likewise.
5461         (CHARSET_BY_LEADING_BYTE): Likewise.
5462         (XCHARSET_LEADING_BYTE): Likewise.
5463         (XCHARSET_GRAPHIC): Likewise.
5464         (XCHARSET_COLUMNS): Likewise.
5465         (XCHARSET_DIMENSION): Likewise.
5466         (BREAKUP_CHAR): Likewise.
5467
5468 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5469
5470         * character.h: Add document about interface for characters.
5471
5472         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5473         (MAKE_CHAR): Delete comment about
5474         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5475         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5476         (BREAKUP_CHAR): Modify name of arguments.
5477         (CHAR_CHARSET): Modify name of argument.
5478
5479         * buffer.h: Delete document about Emchar accessors.
5480
5481 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5482
5483         * character.h (CHAR_INTP): Moved from buffer.h
5484         (CHAR_OR_CHAR_INTP): Likewise.
5485         (XCHAR_OR_CHAR_INT): Likewise.
5486         (CHECK_CHAR_COERCE_INT): Likewise.
5487
5488         * buffer.h (CHAR_INTP): Moved to character.h
5489         (CHAR_OR_CHAR_INTP): Likewise.
5490         (XCHAR_OR_CHAR_INT): Likewise.
5491         (CHECK_CHAR_COERCE_INT): Likewise.
5492
5493 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5494
5495         * character.h:
5496         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5497         - Include char-1byte.h, char-lb.h or char-ucs.h.
5498
5499         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5500
5501         * buffer.h: Include character unconditionally.
5502         (valid_char_p): Moved to char-*.h.
5503         (non_ascii_valid_char_p): Moved to char-lb.h.
5504
5505         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5506
5507 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5508
5509         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5510         in UTF-2000 because it is not ported yet and not to use
5511         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5512         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5513         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5514
5515         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5516         (CHAR_ASCII_P): Moved from character.h.
5517
5518         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5519         (CHAR_ASCII_P): Likewise.
5520         (CHAR_FIELD1_MASK): Deleted.
5521         (CHAR_FIELD2_MASK): Deleted.
5522         (CHAR_FIELD3_MASK): Deleted.
5523         (MAX_CHAR_BASIC_LATIN): New macro.
5524         (CHAR_FIELD1): Deleted.
5525         (CHAR_FIELD2_INTERNAL): Deleted.
5526         (CHAR_FIELD3_INTERNAL): Deleted.
5527         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5528         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5529         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5530         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5531         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5532         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5533         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5534         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5535         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5536         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5537         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5538         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5539         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5540         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5541         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5542         (MIN_CHAR_COMPOSITION): Deleted.
5543         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5544         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5545
5546 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5547
5548         * buffer.h: Include mb-utf-8.h in UTF-2000.
5549
5550         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5551
5552         * mb-utf-8.h: New file.
5553
5554 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5555
5556         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5557         instead of `int'.
5558
5559         * mule-charset.h, buffer.h (Charset_ID): New type.
5560
5561 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5562
5563         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5564         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5565         instead of `MULE_CHAR_PRIVATE_OFFSET',
5566         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5567         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5568         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5569
5570         * character.h (Vcharset_japanese_jisx0212): New variable
5571         definition.
5572
5573 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5574
5575         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5576         (charset_by_attributes): Delete array about direction.
5577         (latin_a_char_to_charset): New variable in UTF-2000.
5578         (latin_a_char_to_byte1): New variable in UTF-2000.
5579         (latin_a_char_to_byte2): New variable in UTF-2000.
5580         (Qucs_bmp): New variable.
5581         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5582         `Bufbyte'.
5583         (next_allocated_2_byte_leading_byte): Likewise.
5584         (non_ascii_set_charptr_emchar): Likewise.
5585         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5586         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5587         `charset_by_attributes'.
5588         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5589         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5590         and `CHARSET_BY_LEADING_BYTE'.
5591         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5592         `utf-2000-version' to `vars_of_mule_charset'.
5593         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5594         define `leading-code-private-11' in UTF-2000; move setting of
5595         `utf-2000-version' from `syms_of_mule_charset'.
5596         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5597         UTF-2000.
5598
5599         * character.h (Charset_ID): New type.
5600         (LEADING_BYTE_UCS_BMP): New macro.
5601         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5602         (CHARSET_ID_OFFSET_94): New macro.
5603         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5604         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5605         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5606         final-byte.
5607         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5608         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5609         (CHARSET_ID_OFFSET_96): New macro.
5610         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5611         CHARSET_ID_OFFSET_96 and final-byte.
5612         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5613         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5614         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5615         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5616         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5617         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5618         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5619         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5620         (LEADING_BYTE_THAI_TIS620): Likewise.
5621         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5622         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5623         (CHARSET_ID_OFFSET_94x94): New macro.
5624         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5625         CHARSET_ID_OFFSET_94x94 and final-byte.
5626         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5627         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5628         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5629         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5630         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5631         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5632         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5633         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5634         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5635         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5636         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5637         (CHARSET_TYPE_128X128): New macro.
5638         (CHARSET_TYPE_256X256): New macro.
5639         (XCHARSET_PRIVATE_P): Delete unconditionally.
5640         (charset_by_attributes): Delete array about direction.
5641         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5642         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5643         (MIN_CHAR_94): New macro.
5644         (MAX_CHAR_94): New macro.
5645         (MIN_CHAR_96): New macro.
5646         (MAX_CHAR_96): New macro.
5647         (MIN_CHAR_94x94): New macro.
5648         (MAX_CHAR_94x94): New macro.
5649         (MIN_CHAR_96x96): New macro.
5650         (MAX_CHAR_96x96): New macro.
5651         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5652         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5653         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5654         - 32)'.
5655         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5656         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5657         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5658         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5659         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5660         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5661         `XCHARSET_LEADING_BYTE' to make code-point.
5662         (latin_a_char_to_charset): New variable.
5663         (latin_a_char_to_byte1): New variable.
5664         (latin_a_char_to_byte2): New variable.
5665         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5666         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5667         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5668
5669         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5670         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5671         (find_charsets_in_emchar_string): Likewise.
5672         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5673
5674         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5675         `int'.
5676         (decode_coding_iso2022): Likewise.
5677
5678         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5679         of `unsigned char'.
5680
5681         * redisplay.c (redisplay_text_width_emchar_string): Use
5682         `Charset_ID' instead of `unsigned char'.
5683         (redisplay_frame_text_width_string): Likewise.
5684
5685         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5686         `unsigned char'.
5687
5688         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5689         instead of `unsigned char'.
5690         (face_cachel_charset_font_metric_info): Likewise.
5691
5692         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5693         (get_non_ascii_char_table_value): Likewise.
5694         (get_char_table): Likewise.
5695         (put_char_table): Likewise.
5696         (map_over_other_charset): Likewise.
5697         (map_char_table): Likewise.
5698
5699         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5700         instead of `unsigned char'.
5701
5702 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5703
5704         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5705         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5706
5707         * mule-charset.c (leading_code_private_11): Don't define in
5708         UTF-2000.
5709
5710         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5711         in UTF-2000 because it is not ported yet and not to use
5712         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5713
5714 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5715
5716         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5717
5718 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5719
5720         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5721         in UTF-2000.
5722
5723         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5724         of unsigned char to store leading-byte.
5725
5726         * chartab.c (get_non_ascii_char_table_value): Don't use
5727         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5728
5729         * file-coding.c (encode_coding_big5): Delete bogus implementation
5730         in UTF2000.
5731
5732         * character.h (LEADING_BYTE_*): Delete definition for
5733         non-UTF-2000.
5734         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5735         (LEADING_BYTE_PREFIX_P): Deleted.
5736         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5737         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5738         (BUFBYTE_LEADING_BYTE_P): Deleted.
5739         (CHARSET_PRIVATE_P): Deleted unconditionally.
5740         (rep_bytes_by_first_byte): Deleted unconditionally.
5741         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5742         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5743         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5744         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5745         (CHAR_FIELD2): Deleted.
5746         (CHAR_FIELD3): Deleted.
5747         (MAKE_CHAR): Delete definition for non-UTF-2000.
5748         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5749         (breakup_char_1): New implementation.
5750         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5751         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5752
5753 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5754
5755         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5756         condition.
5757
5758 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5759
5760         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5761         (CHARSET_PRIVATE_P): Likewise.
5762         (XCHARSET_PRIVATE_P): Likewise.
5763         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5764
5765         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5766         UTF2000.
5767         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5768
5769 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5770
5771         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5772         (NUM_LEADING_BYTES): Changed from 128 to 256.
5773         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5774         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5775         UTF2000.
5776         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5777
5778         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5779         UTF2000.
5780         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5781         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5782         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5783         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5784         (Qchinese_cns11643_3): New variable in UTF2000.
5785         (Qchinese_cns11643_4): New variable in UTF2000.
5786         (Qchinese_cns11643_5): New variable in UTF2000.
5787         (Qchinese_cns11643_6): New variable in UTF2000.
5788         (Qchinese_cns11643_7): New variable in UTF2000.
5789         (syms_of_mule_charset): Define `chinese-cns11643-3',
5790         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5791         and `chinese-cns11643-7' in UTF2000.
5792         (vars_of_mule_charset): Initialize
5793         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5794         + 1 in UTF2000.
5795         (complex_vars_of_mule_charset): Setup charset
5796         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5797         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5798
5799 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5800
5801         * mule-charset.c: Move setting for `leading-code-private-11' from
5802         `syms_of_mule_charset' to `vars_of_mule_charset'.
5803
5804 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5805
5806         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5807         and `NUM_LEADING_BYTES' in assert.
5808
5809 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5810
5811         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5812         instead of 128.
5813         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5814         `NUM_LEADING_BYTES' instead of 128.
5815
5816 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5817
5818         * mule-charset.h (charset_by_leading_byte): Use
5819         `NUM_LEADING_BYTES' instead of 128.
5820         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5821
5822         * mule-charset.c (charset_by_leading_byte): Use
5823         `NUM_LEADING_BYTES' instead of 128.
5824         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5825
5826         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5827         128.
5828
5829 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5830
5831         * mule-charset.c (syms_of_mule_charset): Update to
5832         0.4 (Shin-Imamiya).
5833
5834 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5835
5836         * file-coding.c (encode_coding_sjis): New implementation for
5837         UTF2000.  (decode_coding_sjis): Ditto.
5838
5839 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5840
5841         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5842         Don't define in UTF2000.
5843
5844         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5845         defined.
5846
5847         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5848         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5849         MULE.
5850
5851 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5852
5853         * config.h.in (CHAR_IS_UCS4): New macro.
5854
5855         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5856         conventional MULE representation.
5857         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5858
5859         * mule-charset.h: Reverted to original.
5860
5861         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5862         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5863         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5864
5865         * character.h: New file.
5866
5867         * file-coding.c (Fmake_coding_system): Set 1 to
5868         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5869         defined.
5870         (encode_coding_no_conversion): New implementation for UTF2000.
5871
5872         * file-coding.h (struct Lisp_Coding_System): Add new member
5873         `fixed.size'.
5874
5875 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5876
5877         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5878         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5879         (encode_coding_iso2022): New implementation for UTF2000.
5880
5881 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5882
5883         * mule-canna.c (c2mu): New implementation for UTF2000.
5884         (m2c): Likewise.
5885
5886 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5887
5888         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5889
5890 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5891
5892         * file-coding.c (reset_encoding_stream): Set 0 to
5893         `str->iso2022.current_char_boundary' in UTF2000.
5894         (encode_utf8): Don't define in UTF2000.
5895         (encode_coding_utf8): New implementation for UTF-8 representation
5896         of UTF2000.
5897         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5898
5899 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5900
5901         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5902
5903         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5904         UTF2000.
5905         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5906
5907         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5908
5909         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5910         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5911         as UTF-8 in UTF2000.
5912         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5913         (non_ascii_valid_char_p): Don't define in UTF2000.
5914         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5915         (Lstream_get_emchar_1): Likewise.
5916         (utf-2000-version): New variable in UTF2000.
5917
5918         * lread.c (read_escape): Add new reader `u'.
5919
5920         * insdel.c (three_to_one_table): Don't define in UTF2000.
5921         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5922         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5923         UTF2000.
5924         (bytind_to_bufpos_func): Likewise.
5925         (buffer_mule_signal_inserted_region): Likewise.
5926         (vars_of_insdel): Don't initialize `three_to_one_table'.
5927         (init_buffer_text): Use `buf->text->mule_size' instead of
5928         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5929         UTF2000.
5930
5931         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5932         UTF-8 representation in UTF2000.
5933         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5934         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5935         (decode_coding_iso2022): Don't define local variable `lb' in
5936         UTF2000; don't use LEADING_BYTE in UTF2000; use
5937         `DECODE_ADD_UCS_CHAR' in UTF2000.
5938         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5939
5940         * config.h.in (UTF2000): New macro.
5941
5942         * buffer.h (struct buffer_text): Add new member `mule_size' and
5943         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5944         (valid_char_p): Return always 1 in UTF2000.
5945         (MAX_EMCHAR_LEN): 6 in UTF2000.
5946         (three_to_one_table): Don't define in UTF2000.
5947         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5948         UTF2000.
5949         (real_bytind_to_bufpos): Likewise.
5950
5951         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5952
5953 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5954
5955         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5956         representation change.
5957         (Vutf_2000_version): New variable.
5958         (leading_code_private_11): New variable.
5959         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5960         `leading-code-private-11'.
5961
5962         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5963         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5964         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5965         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5966         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5967         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5968         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5969         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5970         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5971         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5972         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5973         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5974         (MIN_CHAR_GREEK): New macro.
5975         (MAX_CHAR_GREEK): New macro.
5976         (MIN_CHAR_CYRILLIC): New macro.
5977         (MAX_CHAR_CYRILLIC): New macro.
5978         (MIN_CHAR_HEBREW): New macro.
5979         (MAX_CHAR_HEBREW): New macro.
5980         (MIN_CHAR_THAI): New macro.
5981         (MAX_CHAR_THAI): New macro.
5982         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5983         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5984         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5985         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5986         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5987         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5988         (CHAR_FIELD2): New inline function.
5989         (CHAR_FIELD3): New inline function.
5990         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5991         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5992         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5993         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5994         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5995         (MIN_CHAR_COMPOSITION): Likewise.
5996         (CHAR_LEADING_BYTE): Modified for character representation change.
5997         (MAKE_CHAR): Likewise.
5998
5999         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6000         (Vcharset_greek_iso8859_7): Likewise.
6001         (Vcharset_cyrillic_iso8859_5): Likewise.
6002         (Vcharset_hebrew_iso8859_8): Likewise.
6003         (Vcharset_thai_tis620): Likewise.
6004         (Vcharset_katakana_jisx0201): Likewise.
6005
6006 2008-12-28  Vin Shelton  <acs@xemacs.org>
6007
6008         * XEmacs 21.4.22 is released
6009
6010 2008-12-27  Vin Shelton  <acs@xemacs.org>
6011
6012         * syswindows.h: Don't define wide character interfaces for Cygwin
6013         1.7 and up.
6014
6015 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6016
6017         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6018
6019 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6020
6021         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6022         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6023
6024 2008-12-25  Vin Shelton  <acs@xemacs.org>
6025
6026         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6027         By Julian Bradfield in
6028         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6029
6030         * mule-ccl.c (ccl_driver): 
6031
6032 2007-10-07  Vin Shelton  <acs@xemacs.org>
6033
6034         * XEmacs 21.4.21 is released
6035
6036 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6037
6038         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6039
6040 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6041
6042         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6043         (png_instantiate): Initialize setjmp_buffer early, and avoid
6044         recursive entry to error handler.
6045
6046 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6047
6048         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6049         a typo fix.
6050
6051 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6052
6053         * event-Xt.c (x_reset_modifier_mapping):
6054         * event-gtk.c (gtk_reset_modifier_mapping):
6055         Zero out the device's modifier map once we've freed it, to prevent
6056         a double free on a re-entrant call. 
6057
6058 2007-05-17  Vin Shelton  <acs@xemacs.org>
6059
6060         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6061         64-bit linux.  Patch from Hans de Graaff.
6062
6063 2007-05-02  Vin Shelton  <acs@xemacs.org>
6064
6065         * dumper.c (pdump): Don't close pdump_fd (already closed by
6066         fclose() call.  Patch from Steve Higham.
6067         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6068         already closed.  Patch inspired by Steve Higham.
6069
6070 2007-05-01  Vin Shelton  <acs@xemacs.org>
6071
6072         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6073         (mswindows_fstat): Ditto.
6074         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6075
6076 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6077
6078         * postgresql.c: Update Steve Baur's email address by his request.
6079         * postgresql.h: Ditto.
6080
6081 2007-01-04  Vin Shelton  <acs@xemacs.org>
6082
6083         * fileio.c (check_writable): Check old-style readonly bit only for
6084         non-directories.
6085
6086 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6087
6088         * src/fileio.c (check_writable): 
6089         Cope with the fact that the read-only attribute trumps Windows NTFS
6090         ACLS.
6091
6092
6093 2006-12-09  Vin Shelton  <acs@xemacs.org>
6094
6095         * XEmacs 21.4.20 is released
6096
6097 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6098
6099         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6100         relocated the definitions to be used sooner in file.
6101         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6102         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6103         overflow.
6104
6105 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6106
6107         * sound.c (init_native_sound):
6108         Only X11 and GTK devices can possibly not be on the console of the
6109         associated machine. Fixes a crash when init_native_sound is called
6110         on a msprinter device. 
6111
6112 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6113
6114         * buffer.c (buffer-file-name): Document invariant.
6115         (buffer-file-truename): Sync wording to buffer-file-name.
6116         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6117         and discussion.
6118
6119 2006-11-19  Benson Margulies  <benson@dchbk.us>
6120
6121         * fileio.c: Add code to use full Win32 API to check for write
6122         access.  Win32 has the general design policy that you aren't
6123         supposed to ask this question, since security checks change
6124         depending on asynchronous processes.  Nonetheless, there is a way,
6125         by acting as if we are a server doing interpretive access
6126         control.
6127
6128 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6129
6130         * bytecode.c: Use xnew_array instead of alloca.
6131
6132 2006-07-04  Vin Shelton  <acs@xemacs.org>
6133
6134         * redisplay-msw.c: Fix tiny, but crucial typo.
6135
6136 2006-06-22  Jerry James  <james@xemacs.org>
6137
6138         * EmacsShell-sub.c (ChangeManaged):
6139         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6140         NULL.
6141         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6142         checking if it is NULL.  Also fix a memory leak.
6143         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6144         dereference it, not the other way around.
6145         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6146         overflow check.
6147         * dumper.c (pdump_register_struct): Ditto.
6148         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6149         to (short) warnpath overflow warnpath.
6150         * extents.c (detach_all_extents): Call extent_list_delete_all with
6151         a non-NULL parameter only.
6152         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6153         NULL width and height.
6154         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6155         xic before checking if they are NULL.
6156         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6157         allocated array.
6158         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6159         * nas.c (Err): Fix a memory leak.
6160         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6161         Don't create the buffer if there is nothing to do.
6162         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6163         * redisplay-output.c (redisplay_output_layout): Ditto.
6164         * redisplay-tty.c (tty_output_display_block): Ditto.
6165         * redisplay-x.c (x_output_display_block): Ditto.
6166         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6167         dereference instance->scrollbar_data if it is NULL.
6168         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6169         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6170         for sb->scrollbar_data.
6171         * sound.c (init_native_sound): Avoid a buffer overflow by
6172         allocating a buffer with the appropriate size.
6173
6174 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6175
6176         * EmacsShell-sub.c (RootGeometryManager):
6177         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6178         Based on a suggestion by Francois L'Archeveque.
6179
6180 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6181
6182         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6183         current values found in GNU Emacs.
6184
6185 2006-03-17  Vin Shelton  <acs@xemacs.org>
6186
6187         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6188         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6189
6190         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6191         'hex_initialized' because it conflicts with 'initialized' in
6192         lisp.h.
6193
6194 2006-01-28  Vin Shelton  <acs@xemacs.org>
6195
6196         * XEmacs 21.4.19 is released
6197
6198 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6199
6200         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6201
6202 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6203
6204         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6205         5000 to INT_MAX.
6206
6207 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6208
6209         * database.c: Suppress compiler warning under Cygwin.
6210         * database.c: Removed __FreeBSD__ check, should be handled by
6211         HAVE_U_xxx_T defines.
6212
6213 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6214
6215         * console.c (stuff_buffered_input): Compile body only if
6216         HAVE_TTY.
6217
6218 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6219
6220         * callproc.c: #include sysdir.h, so that any appropriate Mule
6221         magic happens with the chdir() call when calling a subprocess. 
6222
6223 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6224
6225         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6226         * mule-ccl.c: Check that a character set exists before using it
6227         to create a character. 
6228
6229 2005-12-06  Vin Shelton  <acs@xemacs.org>
6230
6231         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6232         to INT_MAX.
6233
6234 2005-12-03  Vin Shelton <acs@xemacs.org>
6235
6236         * XEmacs 21.4.18 is released
6237
6238 2005-11-27  Kean Johnston <kean@armory.com>
6239
6240         * redisplay-tty.c (set_tty_modes):
6241         (reset_tty_modes): disable auto-margins if the terminal supports
6242         them.
6243         (init_tty_for_redisplay): fix cursor shape.
6244
6245 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6246
6247         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6248         for control-1 characters properly, both when reading multibyte
6249         characters and writing them. 
6250
6251 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6252
6253         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6254         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6255         were seeing with incremental selection transfer failing. 
6256
6257 2005-11-26  Vin Shelton  <acs@xemacs.org>
6258
6259         * callproc.c (Fold_call_process_internal): Create the buffer if it
6260         does not already exist.  The original patch came from Ben Wing in
6261         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6262
6263 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6264
6265         * callproc.c: Process-related docstring improvements spurred by
6266         Norbert Koch.
6267
6268 2005-11-25  Vin Shelton  <acs@xemacs.org>
6269
6270         * depend: Regenerated.
6271
6272 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6273
6274         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6275         says it clashes with a global with the same name.
6276
6277 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6278
6279         * sysdll.c (dll_open): Under MacOS X return NULL under the
6280         filename is NULL.  Fixes problems finding local symbols under 10.4
6281         (Tiger)
6282
6283 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6284         
6285         * config.h.in: New HAVE_U_INT*_T defines.
6286         
6287         * database.c: Only use u_int*_t typedefs if not already
6288         defined.
6289
6290 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6291
6292         * src/process-unix.c (unix_open_network_stream): moved
6293           'portbuf' buffer out of an inner block as it is used in the
6294           entire function. With gcc4, the stack may get corrupted
6295           after leaving this block. This patches adjusts the size of
6296           the used buffer also; static '128' bytes are far too much
6297           currently and might not suffice for future architectures
6298           (e.g. for 512 bit ones ;)). Instead of, use only the really
6299           required space (max octets * ln(256)/ln(10) chars + space
6300           for '\0' and the sign)
6301
6302 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6303
6304         * callproc.c: Include sysdir.h, so any necessary Mule processing
6305         is done on the current directory name before starting a new
6306         process.
6307
6308 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6309
6310         * chartab.c (Fchar_table_p):
6311         (Fget_range_char_table):
6312         (Fput_char_table):
6313         (Fmap_char_table):
6314         Describe range representation and fix typo.
6315
6316 2005-02-12  Vin Shelton  <acs@xemacs.org>
6317
6318         * emacs.c (shut_down_emacs): Advise users to send email to the
6319         xemacs-beta list instead of crashes@xemacs.org.
6320
6321 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6322
6323         * process-unix.c (unix_send_process): Flush the last chunk, even
6324         when the pipe is blocked.
6325
6326 2005-02-06  Vin Shelton <acs@xemacs.org>
6327
6328         * XEmacs 21.4.17 is released
6329
6330 2005-01-31  Ben Wing  <ben@xemacs.org>
6331
6332         * emacs.c:
6333         Define assert_failed() always.
6334         * lisp.h:
6335         Always define ABORT().
6336
6337 2005-01-25  Ben Wing  <ben@xemacs.org>
6338
6339         * Makefile.in.in:
6340         * Makefile.in.in (%.o):
6341         Don't compile executable as Windows (-mwindows) under Cygwin.
6342         Semi-recent changes to Cygwin's executable-startup handling make
6343         it impossible to access the TTY this way.
6344
6345         Don't use special linker file under Cygwin (cygwin.sc) except
6346         when non-PDUMP (even in this case it is highly questionable); you
6347         get errors like
6348
6349       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6350    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6351
6352 2005-01-29  Ben Wing  <ben@xemacs.org>
6353
6354         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6355
6356         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6357
6358 2005-01-29  Ben Wing  <ben@xemacs.org>
6359
6360         * bytecode.c (optimize_compiled_function):
6361         * print.c (FROB):
6362         * print.c (long_to_string):
6363         Add casts to avoid warning.
6364         
6365         * glyphs-eimage.c:
6366         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6367         #### The better solution is to move the TIFF and JPEG code to
6368         different files.
6369         
6370         * glyphs-msw.c (mswindows_xbm_instantiate):
6371         Define __STDC__ to avoid problems with compface.h.
6372         
6373         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6374         * EmacsShell-sub.c:
6375         * EmacsShell-sub.c (ABORT):
6376         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6377         * EmacsShell-sub.c (RootGeometryManager):
6378         * EmacsShell.c:
6379         * EmacsShell.c (ABORT):
6380         * EmacsShell.c (EmacsShellUpdateSizeHints):
6381         * alloc.c (free_lcrecord):
6382         * alloca.c (i00afunc):
6383         * buffer.c (delete_from_buffer_alist):
6384         * buffer.c (MARKED_SLOT):
6385         * bytecode.c (execute_rare_opcode):
6386         * bytecode.c (optimize_byte_code):
6387         * bytecode.c (Ffetch_bytecode):
6388         * chartab.c (char_table_type_to_symbol):
6389         * chartab.c (Freset_char_table):
6390         * chartab.c (decode_char_table_range):
6391         * chartab.c (Fget_range_char_table):
6392         * chartab.c (check_valid_char_table_value):
6393         * chartab.c (map_char_table):
6394         * chartab.c (slow_map_char_table_fun):
6395         * chartab.c (chartab_instantiate):
6396         * cm.c (cmcheckmagic):
6397         * console-msw.c (DHEADER):
6398         * console.c (MARKED_SLOT):
6399         * data.c (finish_marking_weak_lists):
6400         * data.c (encode_weak_list_type):
6401         * debug.h (DASSERT):
6402         * device-gtk.c (gtk_init_device):
6403         * device-msw.c (mswindows_get_default_margin):
6404         * device-tty.c (tty_init_device):
6405         * device-x.c (get_device_from_display):
6406         * device-x.c (x_get_visual_depth):
6407         * doprnt.c (parse_doprnt_spec):
6408         * doprnt.c (get_doprnt_args):
6409         * dumper.c (pdump_get_indirect_count):
6410         * dumper.c (pdump_register_sub):
6411         * dumper.c (pdump_register_object):
6412         * dumper.c (pdump_register_struct):
6413         * dumper.c (pdump_dump_data):
6414         * dumper.c (pdump_reloc_one):
6415         * elhash.c (print_hash_table):
6416         * elhash.c (make_standard_lisp_hash_table):
6417         * elhash.c (hash_table_instantiate):
6418         * emacs.c:
6419         * emacs.c (Fforce_debugging_signal):
6420         * emacs.c (sort_args):
6421         * emacs.c (main):
6422         * emacs.c (assert_failed):
6423         * eval.c (throw_or_bomb_out):
6424         * eval.c (signal_1):
6425         * eval.c (Fsignal):
6426         * event-Xt.c:
6427         * event-Xt.c (emacs_Xt_mapping_action):
6428         * event-Xt.c (Xt_process_to_emacs_event):
6429         * event-msw.c:
6430         * event-stream.c (check_event_stream_ok):
6431         * event-stream.c (Fadd_timeout):
6432         * event-stream.c (Fadd_async_timeout):
6433         * event-stream.c (Fdiscard_input):
6434         * event-stream.c (execute_internal_event):
6435         * event-stream.c (Frecent_keys):
6436         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6437         * event-stream.c (lookup_command_event):
6438         * event-unixoid.c (poll_fds_for_input):
6439         * events.c:
6440         * events.c (mark_event):
6441         * events.c (event_equal):
6442         * events.c (event_hash):
6443         * events.c (Fmake_event):
6444         * events.c (Fdeallocate_event):
6445         * events.c (event_chain_find_previous):
6446         * events.c (event_to_character):
6447         * events.c (format_event_object):
6448         * events.c (Fevent_type):
6449         * events.c (event_pixel_translation):
6450         * events.c (Fevent_properties):
6451         * extents.c (extent_in_region_p):
6452         * extents.c (print_extent):
6453         * extents.c (process_extents_for_insertion_mapper):
6454         * extents.c (report_extent_modification_mapper):
6455         * extents.c (glyph_layout_to_symbol):
6456         * faces.c (face_validate):
6457         * file-coding.c (eol_type_to_symbol):
6458         * file-coding.c (subsidiary_coding_system):
6459         * file-coding.c (Fcoding_system_type):
6460         * file-coding.c (Fcoding_system_property):
6461         * file-coding.c (mule_decode):
6462         * file-coding.c (mule_encode):
6463         * file-coding.c (encode_coding_ucs4):
6464         * file-coding.c (encode_coding_utf8):
6465         * file-coding.c (parse_iso2022_esc):
6466         * file-coding.c (encode_coding_iso2022):
6467         * fileio.c:
6468         * fns.c (concat):
6469         * fns.c (Fsubseq):
6470         * fns.c (mapcar1):
6471         * fns.c (Fbase64_encode_region):
6472         * fns.c (Fbase64_encode_string):
6473         * fns.c (Fbase64_decode_region):
6474         * fns.c (Fbase64_decode_string):
6475         * font-lock.c (find_context):
6476         * font-lock.c (context_to_symbol):
6477         * frame-gtk.c (gtk_set_frame_pointer):
6478         * frame-gtk.c (gtk_update_frame_external_traits):
6479         * frame-x.c (x_wm_mark_shell_size_user_specified):
6480         * frame-x.c (x_wm_mark_shell_position_user_specified):
6481         * frame-x.c (x_wm_set_shell_iconic_p):
6482         * frame-x.c (x_wm_set_cell_size):
6483         * frame-x.c (x_wm_set_variable_size):
6484         * frame-x.c (x_wm_store_class_hints):
6485         * frame-x.c (x_wm_maybe_store_wm_command):
6486         * frame-x.c (x_initialize_frame_size):
6487         * frame-x.c (x_update_frame_external_traits):
6488         * frame.c:
6489         * frame.c (delete_frame_internal):
6490         * frame.c (mouse_pixel_position_1):
6491         * frame.c (change_frame_size_1):
6492         * free-hook.c (check_free):
6493         * free-hook.c (check_realloc):
6494         * free-hook.c (note_block_input):
6495         * free-hook.c (log_gcpro):
6496         * gccache-gtk.c (gc_cache_lookup):
6497         * glyphs-eimage.c (tiff_memory_write):
6498         * glyphs-gtk.c (gtk_finalize_image_instance):
6499         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6500         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6501         * glyphs-gtk.c (gtk_xpm_instantiate):
6502         * glyphs-gtk.c (gtk_unmap_subwindow):
6503         * glyphs-gtk.c (gtk_map_subwindow):
6504         * glyphs-gtk.c (gtk_button_redisplay):
6505         * glyphs-msw.c:
6506         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6507         * glyphs-x.c (init_image_instance_from_xbm_inline):
6508         * glyphs-x.c (extract_xpm_color_names):
6509         * glyphs-x.c (x_xpm_instantiate):
6510         * glyphs.c (get_image_instantiator_governing_domain):
6511         * glyphs.c (print_image_instance):
6512         * glyphs.c (image_instance_equal):
6513         * glyphs.c (image_instance_hash):
6514         * glyphs.c (encode_image_instance_type):
6515         * glyphs.c (make_image_instance_1):
6516         * glyphs.c (inherit_instantiate):
6517         * glyphs.c (image_instantiate):
6518         * glyphs.c (allocate_glyph):
6519         * glyphs.c (Fglyph_type):
6520         * glyphs.c (redisplay_subwindow):
6521         * glyphs.c (display_table_entry):
6522         * gtk-glue.c (xemacs_list_to_gtklist):
6523         * gtk-glue.c (xemacs_gtklist_to_list):
6524         * gtk-glue.c (xemacs_list_to_array):
6525         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6526         * gutter.c (gutter_was_visible):
6527         * gutter.c (get_gutter_coords):
6528         * input-method-xlib.c (get_XIM_input):
6529         * insdel.c (bufpos_to_bytind_func):
6530         * insdel.c (bytind_to_bufpos_func):
6531         * insdel.c (move_gap):
6532         * intl.c (x_get_composed_input):
6533         * keymap.c (keymap_lookup_directly):
6534         * keymap.c (keymap_delete_inverse_internal):
6535         * keymap.c (ensure_meta_prefix_char_keymapp):
6536         * keymap.c (accessible_keymaps_mapper_1):
6537         * keymap.c (where_is_recursive_mapper):
6538         * lisp.h:
6539         * lisp.h (ABORT):
6540         * lread.c (read_atom):
6541         * lstream.c (Lstream_delete):
6542         * lstream.c (make_lisp_buffer_stream_1):
6543         * macros.c (pop_kbd_macro_event):
6544         * malloc.c (malloc):
6545         * malloc.c (free):
6546         * marker.c (bi_marker_position):
6547         * marker.c (set_bi_marker_position):
6548         * menubar-gtk.c (menu_descriptor_to_widget_1):
6549         * menubar-msw.c (prune_menubar):
6550         * menubar-x.c (set_frame_menubar):
6551         * mule-charset.c (get_unallocated_leading_byte):
6552         * mule-charset.h (CHAR_LEADING_BYTE):
6553         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6554         * nt.c (init_environment):
6555         * nt.c (generate_inode_val):
6556         * ntproc.c (delete_child):
6557         * ntproc.c (_sys_read_ahead):
6558         * ntproc.c (create_child):
6559         * objects.c (color_instantiate):
6560         * objects.c (font_instantiate):
6561         * objects.c (face_boolean_instantiate):
6562         * print.c (printing_major_badness):
6563         * process-nt.c (nt_send_process):
6564         * process-unix.c (unix_send_process):
6565         * process.c (get_process):
6566         * ralloc.c (obtain):
6567         * ralloc.c (relinquish):
6568         * ralloc.c (relocate_blocs):
6569         * ralloc.c (resize_bloc):
6570         * ralloc.c (r_alloc_free):
6571         * ralloc.c (r_re_alloc):
6572         * ralloc.c (r_alloc_thaw):
6573         * ralloc.c (init_ralloc):
6574         * ralloc.c (Free_Addr_Block):
6575         * ralloc.c (r_alloc):
6576         * redisplay-gtk.c (gtk_output_display_block):
6577         * redisplay-msw.c (mswindows_output_display_block):
6578         * redisplay-output.c (get_next_display_block):
6579         * redisplay-output.c (get_cursor_size_and_location):
6580         * redisplay-output.c (redisplay_output_layout):
6581         * redisplay-output.c (redisplay_clear_region):
6582         * redisplay-tty.c (tty_output_display_block):
6583         * redisplay-x.c (x_output_display_block):
6584         * redisplay.c (add_propagation_runes):
6585         * redisplay.c (add_glyph_rune):
6586         * redisplay.c (create_text_block):
6587         * redisplay.c (add_margin_runes):
6588         * redisplay.c (create_left_glyph_block):
6589         * redisplay.c (create_right_glyph_block):
6590         * redisplay.c (create_string_text_block):
6591         * redisplay.c (regenerate_window):
6592         * redisplay.c (REGEN_INC_FIND_START_END):
6593         * redisplay.c (redisplay_frame):
6594         * redisplay.c (point_in_line_start_cache):
6595         * regex.c:
6596         * regex.c (ABORT):
6597         * regex.c (re_compile_fastmap):
6598         * regex.c (re_match_2_internal):
6599         * regex.c (regerror):
6600         * scrollbar-gtk.c (gtk_scrollbar_loop):
6601         * scrollbar-gtk.c (scrollbar_cb):
6602         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6603         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6604         * scrollbar-x.c (x_update_scrollbar_instance_status):
6605         * scrollbar-x.c (x_scrollbar_loop):
6606         * scrollbar-x.c (x_update_frame_scrollbars):
6607         * search.c (search_command):
6608         * search.c (Fmatch_data):
6609         * select-x.c (motif_clipboard_cb):
6610         * signal.c (interrupt_signal):
6611         * specifier.c (specifier_add_spec):
6612         * specifier.c (specifier_instance_from_inst_list):
6613         * specifier.c (specifier_instance):
6614         * specifier.h:
6615         * specifier.h (struct specifier_methods):
6616         * strftime.c (add_num_time_t):
6617         * sunplay.c (init_device):
6618         * symbols.c (Fsetplist):
6619         * symbols.c (do_symval_forwarding):
6620         * symbols.c (store_symval_forwarding):
6621         * symbols.c (Fset):
6622         * symbols.c (Fbuilt_in_variable_type):
6623         * symbols.c (decode_magic_handler_type):
6624         * symbols.c (handler_type_from_function_symbol):
6625         * syntax.c (update_syntax_cache):
6626         * sysdep.c (init_baud_rate):
6627         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6628         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6629         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6630         * toolbar.c (get_toolbar_coords):
6631         * ui-gtk.c (build_gtk_boxed):
6632         * ui-gtk.c (describe_gtk_arg):
6633         * ui-gtk.c (gtk_type_to_lisp):
6634         * ui-gtk.c (lisp_to_gtk_type):
6635         * ui-gtk.c (lisp_to_gtk_ret_type):
6636         * ui-gtk.c (lisp_to_flag):
6637         * unexnt.c (read_in_bss):
6638         * unexnt.c (map_in_heap):
6639         * window.c (real_window):
6640         * window.c (window_display_lines):
6641         * window.c (window_display_buffer):
6642         * window.c (set_window_display_buffer):
6643         * window.c (window_modeline_height):
6644         * window.c (unshow_buffer):
6645         * window.c (window_loop):
6646         * window.c (Fget_lru_window):
6647         * window.c (Fsplit_window):
6648         * window.c (Fset_window_configuration):
6649         * window.c (saved_window_index):
6650         * xgccache.c (gc_cache_lookup):
6651         abort() -> ABORT().  Eliminate preprocessor games with abort()
6652         since it creates huge problems in VC7, solvable only by including
6653         massive amounts of files in every compile (and not worth it).
6654
6655         * sysdep.c:
6656         * sysproc.h:
6657         Inclusion of process.h does not need to be before lisp.h any more.
6658         Move later and remove comment about abort().
6659
6660 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6661
6662         * regex.c (re_match_2_internal):
6663         Correctly initialize loop which clears uninitialized registers.
6664
6665 2005-01-28  Vin Shelton  <acs@xemacs.org>
6666
6667         * sheap.c (more_static_core): Applied Ben's version of the long
6668         string patch.
6669
6670 2005-01-24  Vin Shelton  <acs@xemacs.org>
6671
6672         * sheap.c (more_static_core): Reformatted printf string so
6673         gcc-3.3.3 will compile this on Cygwin.
6674
6675 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6676
6677         * console.c (function_key_map): Reference `key-binding'.
6678
6679         * keymap.c (Vkey_translation_map): Improve docstring.
6680
6681 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6682
6683         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6684         * window.c (window_loop): [fix] Take into account
6685         `allow-deletion-of-last-visible-frame' variable.
6686         * window.c (replace-buffer-in-windows): Ditto.
6687
6688 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6689
6690         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6691
6692 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6693
6694         * event-gtk.c: Recognise AltGr as a valid modifier.
6695
6696 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6697
6698         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6699
6700 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6701
6702         Fix backreference bug caught by test suite.
6703
6704         * regex.c (regex_compile):
6705         Make backref duplicate internal register.
6706
6707 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6708
6709         Documentation, code clarification, and warning suppression.
6710         
6711         * regex.c (regex_compile):
6712         Improve comments.
6713         (re_match_2_internal):
6714         Improve comments and avoid redundant braces.  [Most of the big hunk
6715         at l. 4710 is indentation; use diff -w to see the real changes.]
6716         (alt_match_null_string_p):
6717         (common_op_match_null_string_p):
6718         Avoid shadowing global on Mac OS X 10.4, at least.
6719
6720 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6721
6722         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6723         introduced with shy groups fix).  [Already applied, probably
6724         with the second "fix shy groups" patch of 2004-10-07.] 
6725
6726 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6727
6728         From Andrey Slusar <anrays@gmail.com>:
6729
6730         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6731
6732 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6733
6734         * Makefile (RECURSIVE_MAKE): Removed.
6735         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6736         handling parallel builds.
6737
6738 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6739
6740         * Makefile.in.in: Enable support for parallel builds.
6741
6742 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6743
6744         From Andrey Slusar <anrays@gmail.com>:
6745
6746         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6747         FreeBSD version is >= 199701 _and_ < 600006.
6748
6749 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6750
6751         * scrollbar.c (compute_scrollbar_instance_usage):
6752         Only call device method compute_scrollbar_instance_usage() if it
6753         is defined.
6754
6755 2004-12-05  Vin Shelton <acs@xemacs.org>
6756
6757         * XEmacs 21.4.16 is released
6758
6759 2004-12-04  Vin Shelton  <acs@xemacs.org>
6760
6761         * depend: Regenerated.
6762
6763 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6764
6765         * regex.c (re_match_2_internal): Map internal to external
6766         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6767         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6768
6769 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6770
6771         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6772         to fix a crash.  Also, check the buffer is live and it
6773         really exists in buffer_list.  If the buffer is not in the list,
6774         prepend it.
6775
6776 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6777
6778         Fix shy groups by implementing recording of all groups for
6779         repetition and backtracking.  Backport from 21.5.
6780         
6781         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6782         external_to_internal_register, external_to_internal_register_size,
6783         and update comments for re_nsub.
6784
6785         * regex.c (re_opcode_t): Update comments.
6786         (print_compiled_pattern): Ouput external_to_internal_register,
6787         external_to_internal_register_size, and re_ngroups for debugging.
6788         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6789         (regex_compile): Update header comment.
6790         Ensure that all groups are recorded so that repeat matches and
6791         backtracking work correctly.  Comment related warning for groups >
6792         255.
6793         (re_search_2): Construct map of API indexes (which count only
6794         nonshy groups) to internal register numbers, and keep it updated.
6795
6796 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6797
6798         * frame-gtk.c (gtk_make_frame_visible):
6799         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6800         show/hide.  This is what X uses and is prevents previously hidden
6801         widgets from suddenly reappearing.
6802         * gtk-xemacs.c (gtk_xemacs_paint):
6803         * gtk-xemacs.c (gtk_xemacs_draw):
6804         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6805         drawable.
6806         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6807         size and location changes so that they can be seen before the next
6808         idle event.  Without this rapid changes to scrollbar properties
6809         are not seen.
6810
6811 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6812
6813         * console-gtk.h:
6814         * console-gtk.h (struct gtk_frame):
6815         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6816           Add hash tables track tab_control callback data.
6817           Added #defines for GTK object data names.
6818           Declaration of gtk_widget_to_frame().
6819         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6820         * frame-gtk.c (gtk_widget_to_frame): New.
6821         * frame-gtk.c (gtk_create_widgets):
6822         * frame-gtk.c (allocate_gtk_frame_struct):
6823         * frame-gtk.c (gtk_mark_frame):
6824         Manage frame callbakc hash tables.
6825         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6826         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6827         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6828         of widget size.
6829         * glyphs-gtk.c (gtk_widget_query_geometry): New
6830         * glyphs-gtk.c (gtk_register_gui_item): New
6831         * glyphs-gtk.c (gtk_add_tab_item): New
6832         * glyphs-gtk.c (gtk_tab_control_callback): New
6833         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6834         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6835         Use correct list when loading item.
6836         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6837         Register new methods.
6838         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6839         default size, for widgets.
6840         * gui-x.c:  Improved comment.
6841         * menubar-gtk.c (__generic_button_callback): Use
6842         gtk_widget_to_frame instead of __get_channel.
6843         * scrollbar-gtk.c:
6844         * ui-gtk.c: Use symbolic names for GTK object data.
6845
6846 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6847
6848         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6849
6850 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6851
6852         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6853
6854 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6855
6856         * malloc.c (morecore): siz is a long because in some architectures
6857         (eg ia-64) an int cannot hold the address range.  Additional patch
6858         from the SuSe distribution.
6859
6860 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6861
6862         * emacs.c:
6863         * malloc.c: lim_data is a long because in some architectures
6864         (eg ia-64) an int cannot hold the address range.
6865         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6866         instead of ulimit() because ulimit() always returns -1.
6867
6868 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6869
6870         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6871
6872 2004-06-11  David Kastrup  <dak@gnu.org>
6873
6874         * search.c (match_limit): Don't flag an error if match-data
6875         exceeding the allocated search_regs.num_regs gets requested, just
6876         return Qnil.
6877
6878 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6879
6880         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6881         replace symbolic color entries with the real colors specified in
6882         xpm-color-symbols, before passing the XPM to gtk.
6883         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6884         instead of a GTK specific field, so that it is used in by generic
6885         code.
6886
6887 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6888
6889        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6890         coredump from deref of NULL ptr (ExtData)
6891
6892 2004-04-19  Jerry James  <james@xemacs.org>
6893
6894         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6895         VALBITS to compute the location of the sign bit.
6896         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6897         of VALBITS with EMACS_INT_MAX.
6898         * events.c (Fevent_timestamp): Ditto.
6899         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6900         compute the halfway point to timestamp wraparound.
6901         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6902         EMACS_INT_MIN instead of using VALBITS.
6903         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6904         incorrect number with VALBITS.
6905         * fns.c (Frandom): Correct number of integer bits in docstring.
6906         Use INT_VALBITS instead of VALBITS to compute the denominator.
6907         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6908         build random numbers.
6909
6910 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6911         * event-gtk.c:
6912         * event-gtk.c (gtk_event_to_emacs_event):
6913         * menubar-gtk.c:
6914         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6915         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6916         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6917         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6918         * menubar-gtk.c (__activate_menu):
6919         * menubar-gtk.c (convert_underscores):
6920         * menubar-gtk.c (remove_underscores):
6921         * menubar-gtk.c (menu_convert):
6922         * menubar-gtk.c (menu_descriptor_to_widget_1):
6923         * menubar-gtk.c (menu_descriptor_to_widget):
6924         * menubar-gtk.c (menu_can_reuse_widget):
6925         * menubar-gtk.c (menu_create_menubar):
6926         * menubar-gtk.c (gtk_popup_menu):
6927         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6928         Added support for Gtk menu bar and menu item mnemonics.
6929
6930 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6931
6932         * sysdll.c: (dll_function): Added support for finding symbols in
6933         Darwin shared libraries as well in Darwin bundles.
6934         * sysdll.c (image_for_address): New
6935         * sysdll.c (my_find_image): New
6936         * sysdll.c (search_linked_libs): New
6937
6938 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6939
6940         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6941         return to GTK requires a different API to marshalling data to use
6942         as GTK parameters.
6943         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6944
6945 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6946
6947         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6948
6949 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6950
6951         * glyphs.c (process_image_string_instantiator):
6952         (Fset_console_type_image_conversion_list):
6953         Stop GCC from warning about shadowing of `exp'.
6954
6955         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6956
6957 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6958
6959         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6960
6961 2004-02-03  Vin Shelton  <acs@xemacs.org>
6962
6963         * glyphs.c (image_instance_layout): Remove pointless assertion.
6964         * regex.c (regex_grow_registers): Return type is void.
6965
6966 2004-02-02  Vin Shelton <acs@xemacs.org>
6967
6968         * XEmacs 21.4.15 is released
6969
6970 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6971
6972         * device-x.c (x_error_handler): Don't call stderr_out
6973
6974 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6975
6976         * buffer.c (other-buffer): Clarify documentation of order of
6977         arguments for FSF Emacs.
6978
6979 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6980
6981         * window.c (Fdelete_window): Dirty the mirror structure _before_
6982         marking the window deleted.
6983
6984 2003-09-15  Jerry James  <james@xemacs.org>
6985
6986         * event-msw.c (debug_mswin_messages): Conditionally compile
6987         messages missing from the Cygwin headers.
6988
6989 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6990
6991         * data.c (eq_with_ebola_notice): Fix typo in comment.
6992         (Ftrue_list_p): Improve docstring.
6993
6994 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6995
6996         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6997
6998 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6999
7000         * search.c (trivial_regexp_p): Regexps containing "\{" are
7001         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7002         Stefan Monnier for suggesting a diagnosis.
7003
7004 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7005
7006         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7007
7008 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * search.c (Fsearch_forward):
7011         (Fsearch_backward):
7012         Document negative count.
7013
7014 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7015
7016         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7017
7018 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7019
7020         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7021
7022 2003-09-15  Vin Shelton  <acs@xemacs.org>
7023
7024         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7025         21.5.
7026
7027 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7028
7029         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7030         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7031         (re_match_2_internal): Use TRANSLATE instead of
7032         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7033         non-ASCII char case conversion.
7034
7035 2003-09-08  Mike Sperber  <mike@xemacs.org>
7036
7037         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7038         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7039
7040 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7041
7042        * .gdbinit (pobj): fix printing of symbol name.
7043
7044 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7045
7046         * frame-x.c (x_layout_widgets): When resizing is about to cause
7047         frame size slip, mark it for redisplay.
7048
7049 2003-08-18  Jerry James  <james@xemacs.org>
7050
7051         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7052
7053 2003-09-03  Vin Shelton <acs@xemacs.org>
7054
7055         * XEmacs 21.4.14 is released
7056
7057 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7058
7059         * config.h.in (REGEX_MALLOC): Make it configure'able.
7060
7061 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7062
7063         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7064         linking.
7065         * sysdll.c (dll_init):
7066         * sysdll.c (dll_open):
7067         * sysdll.c (dll_close):
7068         * sysdll.c (dll_function):
7069         * sysdll.c (dll_variable):
7070         * sysdll.c (dll_error):
7071         Add support for loading bundles using Darwin/MacOSX
7072         native API.
7073
7074 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7075
7076         * process.c (start-process-internal): Document coding systems.
7077
7078 2003-07-30  Jerry James  <james@xemacs.org>
7079
7080         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7081
7082 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7083
7084         * event-msw.c (mswindows_enqueue_mouse_button_event):
7085         * event-msw.c (mswindows_wnd_proc):
7086           enqueue button event when scrollwheel event isn't handled by 
7087           mswindows_handle_mousewheel_event, such as when the scrollbars
7088           are not showing.
7089
7090 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7091
7092         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7093
7094 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7095
7096         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7097
7098 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7099
7100         * regex.c (re_match_2_internal): Fix matching degenerate word
7101         boundaries.
7102
7103 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7104
7105         * XEmacs 21.4.13 is released
7106
7107 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7108
7109         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7110         * lisp.h (<inttypes.h>):
7111         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7112         the definition.
7113
7114 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7115
7116         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7117         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7118         Result: "temacs can only be run in -batch mode."
7119         Fix: Check xemacs executable candidate for directory-ness.
7120
7121 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7122
7123         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7124           they conflict with <sys/types.h>.
7125
7126 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7127
7128         * database.c: Berkeley DB wants __STDC__ to be defined.
7129
7130 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7131
7132         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7133
7134 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7135
7136         * process-unix.c (unix_send_process): Fix C++ compile error.
7137
7138 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7139
7140         * Added .dylib as an acceptable shared library file extension
7141         * to support MacOSX.
7142
7143 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7144
7145         * EmacsFrameP.h (EmacsFramePart):
7146         Kludge to allow compiling with Motif1, but linking with Motif2.
7147
7148 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7149
7150         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7151
7152
7153 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7154
7155         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7156
7157 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7158
7159         * sysdll.c: Included lisp.h to define needed alloca_array.
7160
7161 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7162
7163         Make XEmacs redisplay 10 times faster.
7164         If, that is, you're using a slow X connection and MoveOpaque.
7165         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7166         Use compress_motion = TRUE.
7167         * EmacsFrame.c (emacsFrameClassRec): 
7168         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7169         * EmacsManager.c (emacsManagerClassRec):
7170         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7171
7172 2003-01-30  Vin Shelton  <acs@xemacs.org>
7173
7174         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7175
7176 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7177
7178         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7179         Patch by Martin Buchholz.
7180
7181 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7182
7183         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7184         Thanks to icc for warning and Martin Buchholz for reporting.
7185
7186 2003-01-29  Vin Shelton <acs@xemacs.org>
7187
7188         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7189
7190         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7191         remember to multiply by the element size.
7192
7193 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7194
7195         * XEmacs 21.4.12 "Portable Code" is released.
7196
7197 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7198
7199         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7200         * s/cygwin.sc: new linker file.
7201
7202 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7203
7204         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7205
7206         * redisplay-x.c (x_output_string): Use X11-specified types.
7207         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7208         * emacs.c (__free_hook): Use typeof with Intel compiler.
7209         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7210
7211 2003-01-08  Andy Piper  <andy@xemacs.org>
7212
7213         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7214         reserve size during unexec().
7215
7216 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7217
7218         * process-unix.c (unix_create_process): Don't let outchannel block.
7219
7220 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7221
7222         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7223         Needed for IsBadReadPtr().
7224
7225 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7226
7227         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7228
7229 2002-12-14  Ben Wing  <ben@xemacs.org>
7230
7231         * callint.c: Declaration error.
7232         * dumper.c (pdump):
7233         * dumper.c (pdump_load): Warning fix.
7234         * process.c: GCPRO error.
7235         * glyphs.c (unmap_subwindow):
7236         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7237         * event-stream.c (maybe_kbd_translate): Wrong argument to
7238         character_to_event().
7239
7240         * alloc.c (garbage_collect_1):
7241         * emacs.c:
7242         * emacs.c (debug_can_access_memory):
7243         * emacs.c (fatal_error_signal):
7244         * emacs.c (mswindows_handle_hardware_exceptions):
7245         * emacs.c (main_1):
7246         * emacs.c (main):
7247         * emacs.c (assert_failed):
7248         * emacs.c (syms_of_emacs):
7249         * lisp.h:
7250         * print.c:
7251         * print.c (std_handle_out_va):
7252         * print.c (write_string_to_stdio_stream):
7253         * print.c (write_fmt_string):
7254         * print.c (printing_badness):
7255         * print.c (printing_major_badness):
7256         * print.c (print_internal):
7257         * print.c (debug_print_no_newline):
7258         * print.c (debug_backtrace):
7259         Be more defensive in handling bad values when printing.  Add code
7260         from trunk involving inhibit_non_essential_printing_operations.
7261         When going down or in debug_print(), don't do external conversion
7262         and such and try really, really hard when printing to avoid core
7263         dumping.  Add force-debugging-signal, debug_break().
7264
7265 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7266
7267         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7268         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7269
7270 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7271
7272         * database.c: Fix open_database. Berkeley DB API has changed in
7273         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7274
7275 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7276
7277         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7278
7279 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7280
7281         * event-Xt.c (Xt_timeout):
7282         (Xt_timeout_callback):
7283         (emacs_Xt_add_timeout):
7284         (emacs_Xt_remove_timeout):
7285         (Xt_timeout_to_emacs_event):
7286         Turn completed_timeouts from a stack into a queue.  Fixes
7287         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7288
7289 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7290
7291         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7292         * emacs.c (main): Assert that mmap'd allocation is disabled.
7293
7294 2002-10-14  Andy Piper  <andy@xemacs.org>
7295
7296         * glyphs-widget.c (layout_query_geometry): add in fiddle
7297         factor. Include border text in width layout calculation.
7298         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7299
7300 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7301
7302         * XEmacs 21.4.10 "Military Intelligence" is released.
7303
7304 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7305
7306         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7307         using the NAS private array SoundFileInfo that no longer exists in
7308         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7309         and earlier.  This is broken for some versions between 1.5a and
7310         1.5f.
7311
7312 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7313
7314         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7315
7316         * emacs.c (shut_down_emacs): Improve crash message.
7317
7318 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7319
7320         * file-coding.c (determine_real_coding_system): Check for coding
7321         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7322         shebangs and Python PEP 263.
7323
7324 2002-10-08  Andy Piper  <andy@xemacs.org>
7325
7326         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7327         if static sizes haven't been set.
7328
7329 2002-08-30  Mike Alexander  <mta@arbortext.com>
7330
7331         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7332         to close a socket.
7333
7334 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7335
7336         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7337
7338 2002-09-20  Mike Sperber <mike@xemacs.org>
7339
7340         (This partially gets back my patch from 2002-07-20 without the
7341         bug.)
7342         * callproc.c (child_setup): Remove Ben's comment noting confusion
7343         over the file descriptors >= 3: close_process_descs() doesn't
7344         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7345         * process-unix.c (unix_create_process): Call
7346         begin_dont_check_for_quit to inhibit unwanted interaction (and
7347         thus breaking of X event synchronicity) in the child.
7348
7349 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7350
7351         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7352         widget.
7353
7354 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7355
7356         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7357         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7358         the xemacs process did not exit, but looped infinitely here.  This
7359         fixes that problem.
7360
7361 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7362
7363         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7364         (find_context): Improve comments.
7365
7366         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7367         (re_match_2): An XCHAR_TABLE operation was missing.
7368
7369         Many of the following changes were inspired by Andy Piper's (now
7370         obsolete) patch to make syntax-table text property lookup optional.
7371
7372         [Documentation]
7373
7374         * syntax.h (top level): Document semantics of syntax flags.
7375         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7376         * syntax.c, syntax.h (top level): Document syntax cache better in
7377         comments.
7378
7379         [Instrument syntax caching (temporary change)]
7380
7381         * syntax.h (enum syntax_cache_statistics_functions, struct
7382         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7383         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7384         * syntax.c (scan_words, Fforward_comment, scan_lists,
7385         Fbackward_prefix_characters):
7386         * font-lock.c (find_context):
7387         Use them to instrument syntax caching. 
7388         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7389         syntax_cache_statistics_function_names): New type and variables.
7390         * syntax.c (update_syntax_cache): Update and report statistics.
7391
7392         [Major syntax cache optimizations]
7393
7394         syntax.c (lookup_syntax_properties): Default off.
7395
7396         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7397         * syntax.c (update_syntax_cache):
7398         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7399
7400         [Minor syntax cache optimizations and code clarifications]
7401
7402         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7403         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7404         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7405         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7406         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7407         (Code clarification.)
7408
7409         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7410         scan_lists): Compute code from syncode, use Boolean macros instead
7411         of redundant masking operations.  (Code clarification; any decent
7412         compiler can do this optimization.)
7413
7414         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7415         for clarity.
7416
7417         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7418         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7419         use F*_single_property_change instead of F*_extent_change.
7420         Currently F*_single_property_change is _much_ less efficient.
7421
7422         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7423         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7424         syntax_cache.object properly, don't leave Qt or Qnil.
7425         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7426         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7427         tests for Qt or Qnil.
7428
7429 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7430
7431         * redisplay.c (point_in_line_start_cache): 
7432         * extents.c (print_extent_1):
7433         Fix warnings.
7434
7435         * extents.c (Fset_extent_property): Document `syntax-table' property.
7436
7437         * extents.h (Fnext_single_property_change): EXFUN it.
7438
7439 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7440
7441         * search.c (clear_unused_search_regs): New static function.
7442         (search_buffer): 
7443         (simple_search): 
7444         (boyer_moore):
7445         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7446         Minor clarifications in comments.
7447
7448         * regex.c (re_match_2_internal): Ensure no stale submatches.
7449
7450 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7451
7452         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7453
7454 2002-08-29  Jerry James  <james@xemacs.org>
7455
7456         * lisp.h: structrures -> structures.
7457
7458 2002-06-03  Andy Piper  <andy@xemacs.org>
7459
7460         * frame.c (frame_conversion_internal): add conversion appropriate
7461         for setting frame dimensions in pixels.
7462
7463         * console.h (struct console_methods): add device-specific widget
7464         layout functions.
7465
7466         * emacs.c (main_1): initialize glyph vars.
7467
7468         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7469         (handle_focus_event_2): new function. Allow focus to
7470         be set to a particular window and widget.
7471         (enqueue_focus_event): new function. Create a
7472         synthetic focus event.
7473         (emacs_Xt_handle_magic_event): call
7474         handle_focus_event_2.
7475
7476         * frame.c (Fset_frame_pixel_height): new function. Allow
7477         pixel-based sizing. Does the right thing on character-oriented
7478         displays.
7479         (Fset_frame_pixel_width): ditto.
7480         (Fset_frame_pixel_size): ditto.
7481         (syms_of_frame): declare.
7482
7483         * general-slots.h: add :vertically-justify and
7484         :horizontally-justify.
7485
7486         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7487         (mswindows_widget_border_width): new function.
7488         (mswindows_combo_box_instantiate): set border widths.
7489         (console_type_create_glyphs_mswindows): declare.
7490
7491         * glyphs-widget.c:
7492         (check_valid_justification): allow vertical and horizontal
7493         justification.
7494         (widget_border_width): new function. Call device methods.
7495         (widget_instance_border_width): ditto.
7496         (logical_unit_height): new function. Determine the height of a
7497         logical-unit. Logical units are intended to provide grid-like
7498         layout for subcontrols in a layout. If the layout is
7499         :vertically-justify top then subcontrols will be positioned on
7500         logical-unit boundaries, thus allowing adjacent subcontrols to
7501         line up.
7502         (widget_logical_unit_height): ditto for widgets.
7503         (redisplay_widget): misc cleanup.
7504         (widget_spacing): new function. Call device specific
7505         methods. Intended to be the default gap between adjacent widgets.
7506         (widget_query_geometry): use new spacing functions to determine
7507         appropriate geometry.
7508         (initialize_widget_image_instance): initialize horizontal and
7509         vertical justification.
7510         (widget_instantiate): use logica-units where appropriate for
7511         sizing large widgets.
7512         (button_query_geometry): use widget_instance_border_width.
7513         (tree_view_query_geometry): ditto.
7514         (tab_control_query_geometry): ditto.
7515         (edit_field_query_geometry): new function.
7516         (layout_update): pick up :justify, :horizontally-justify and
7517         :vertically-justify none of which worked previously. :justify is
7518         used as a fallback for both horizontal and vertical justification.
7519         (layout_query_geometry): use logical units to size appropriately.
7520         (layout_layout): ditto.
7521         (Fwidget_logical_to_character_width): new function. Allow users to
7522         convert from logical units to characters so that frame sizes can
7523         be set appropriately.
7524         (Fwidget_logical_to_character_height): ditto.
7525         (syms_of_glyphs_widget): declare.
7526         (image_instantiator_edit_fields): add edit_field_query_geometry.
7527         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7528         :horizontally-justify.
7529         (specifier_vars_of_glyphs_widget): new function. Declare
7530         Vwidget_border_width which is not yet used.
7531
7532         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7533         (x_widget_border_width): new function.
7534         (x_widget_instantiate): create a sensible name for widgets.
7535         (console_type_create_glyphs_x): declare x_widget_border_width.
7536
7537         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7538         (struct Lisp_Image_Instance): add :vertically-justify and
7539         :horizontally-justify.
7540         (LAYOUT_JUSTIFY_TOP): new.
7541         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7542         (ROUND_UP): new macro. Round argument up to next integral
7543         interval.
7544
7545         * redisplay-output.c (redisplay_output_layout): misc formatting.
7546
7547         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7548
7549 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7550
7551         * XEmacs 21.4.9 "Informed Management" is released.
7552
7553 2002-08-19  Andy Piper  <andy@xemacs.org>
7554
7555         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7556         win32 format.
7557
7558         * realpath.c (xrealpath): normalize drive spec also so that dir
7559         sep chars are not mixed on cygwin.
7560
7561 2002-08-06  Jerry James  <james@xemacs.org>
7562
7563         * window.c (Fsplit_window): Count only half of the divider width
7564         against the left window when splitting horizontally. 
7565
7566 2002-06-24  Andy Piper  <andy@xemacs.org>
7567
7568         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7569         toolbar was cleared.
7570
7571         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7572         function. Split out from mswindows_output_frame_toolbars.
7573         (mswindows_output_frame_toolbars): move clear pieces to
7574         mswindows_output_frame_toolbars.
7575
7576         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7577         out from gtk_output_frame_toolbars.
7578         (gtk_output_frame_toolbars): move clear pieces to
7579         gtk_clear_frame_toolbars.
7580
7581         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7582         the frame is cleared. How this ever worked before is a mystery.
7583         (x_output_frame_toolbars): Only output toolbars.
7584         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7585
7586         * gutter.c (update_gutter_geometry):
7587         Mark frame layout changed.
7588         (update_frame_gutter_geometry, update_frame_gutters):
7589         Respect frame_layout_changed.
7590
7591         * console.h (struct console_methods): add
7592         clear_frame_toolbars_method.
7593
7594         * redisplay.c (redisplay_frame): call
7595         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7596
7597         * toolbar.h: declare update_frame_toolbars_geometry.
7598
7599         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7600         out from update_frame_toolbars.  Call clear_frame_toolbars.
7601         (update_frame_toolbars): only output, do not change geometry.
7602
7603         * redisplay.c: add frame_layout_changed.
7604
7605         * redisplay.h: add frame_layout_changed.
7606         (CLASS_RESET_CHANGED_FLAGS): set it.
7607         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7608         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7609         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7610
7611         * device.h (struct device): add frame_layout_changed.
7612         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7613
7614         * frame.h (struct frame): add frame_layout_changed.
7615         (MARK_FRAME_LAYOUT_CHANGED): new.
7616
7617 2002-06-30  Mike Alexander  <mta@arbortext.com>
7618
7619         * event-msw.c (mswindows_need_event): Don't wait for a new message
7620         if the queue is not empty.  Suggested by Paul Moore.
7621
7622 2002-06-12  Andy Piper  <andy@xemacs.org>
7623
7624         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7625         for printing on accurately.
7626
7627 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7628
7629         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7630         WM_ACTIVATE message. Make sure that the frame is visible if the
7631         window is visible. This seemss to fix the problem where XEmacs
7632         appears to freeze after switching desktops with certain virtual
7633         window managers.
7634         (debug_output_mswin_message): Added code to output message
7635         parameters for WM_WINDOWPOSCHANGED, 
7636         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7637
7638 2002-05-25  Andy Piper  <andy@xemacs.org>
7639
7640         * select-x.c (vars_of_select_x): Fix docstring of
7641         x-selection-strict-motif-ownership
7642
7643 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7644
7645         * keymap.c (get_keymap):
7646         Add comment about do_autoload GCPROs own args.
7647
7648 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7649
7650         * bytecode.c (execute_optimized_program): check_opcode ifdef
7651         ERROR_CHECK_BYTE_CODE.
7652
7653 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7654
7655         Thanks to Ben Wing and Michael Sperber.
7656
7657         * eval.c (Fcommand_execute):
7658         (Feval):
7659         (Ffuncall):
7660         (Fmacroexpand_internal):
7661         (function_argcount):
7662         callint.c (Fcall_interactively):
7663         Add comment about do_autoload GCPROs own args.
7664
7665         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7666
7667         * eval.c (Ffuncall): Extra braces to placate GCC.
7668
7669 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7670
7671         * backtrace.h (grow_specpdl):
7672         (SPECPDL_RESERVE):
7673         * EmacsFrame.c (EmacsFrameSetValues):
7674         * eval.c (grow_specpdl):
7675         * ExternalShell.c (hack_event_masks_1):
7676         * glyphs-x.c (convert_EImage_to_XImage): 
7677         (x_finalize_image_instance):
7678         * ralloc.c (page_size):
7679         (r_alloc_sbrk):
7680         * xgccache.c (gc_cache_hash):
7681         Fix unsigned comparison warnings.
7682
7683 2002-07-29  Jerry James  <james@xemacs.org>
7684
7685         * lread.c (locate_file): Any nonnegative return value indicates
7686         success if MODE is nonnegative.
7687
7688 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7689
7690         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7691         argument. 
7692
7693 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7694
7695         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7696
7697         * dumper.c (pdump_get_indirect_count):
7698         (pdump_scan_by_alignment):
7699         (pdump_dump_root_struct_ptrs):
7700         (pdump_dump_rtables):
7701         (pdump_dump_root_objects):
7702         (pdump):
7703         * nas.c (WaveOpenDataForReading):
7704         * fns.c (print_bit_vector):
7705         * font-lock.c (SINGLE_SYNTAX_STYLE):
7706         * glyphs.c (check_for_ignored_expose):
7707         (find_matching_subwindow):
7708         * glyphs-eimage.c:
7709         * imgproc.c (get_histogram):
7710         * redisplay.c (point_in_line_start_cache):
7711         * redisplay-output.c (redisplay_unmap_subwindows):
7712         * symbols.c (defsymbol_massage_name_1):
7713         (defkeyword_massage_name):
7714         (deferror_massage_name_and_message):
7715         * redisplay-x.c (x_output_string): 
7716         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7717         * frame.h (struct frame):
7718         * filelock.c (current_lock_owner):
7719         * doprnt.c (emacs_doprnt_1):
7720         * lisp.h (struct Lisp_Bit_Vector):
7721         (DO_REALLOC):
7722         Fix warnings.
7723
7724 2002-02-13  Ben Wing  <ben@xemacs.org>
7725
7726         * event-stream.c (reset_key_echo):
7727         * event-stream.c (reset_this_command_keys):
7728         * event-stream.c (execute_command_event):
7729         If console is dead as a result of C-x 5 0, then post-command stuff
7730         needs to be careful and do only non-console-specific stuff.
7731
7732 2002-07-01  Mike Sperber <mike@xemacs.org>
7733
7734         * process-unix.c (unix_send_process): Mark coding_outstream as
7735         non-open upon SIGPIPE.
7736
7737         * event-stream.c (Fnext_event): Reorder switch cases to something
7738         that makes sense.
7739
7740 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7741
7742         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7743         Don't bogusly reinitialize ascii_character property.
7744
7745 2002-07-08  Mike Sperber <mike@xemacs.org>
7746
7747         * process.c (Fstart_process_internal): Do error checking before we
7748         fork off the child, so the child can't muck with the state of the
7749         parent.
7750
7751 2002-07-08  Mike Sperber <mike@xemacs.org>
7752
7753         * ralloc.c (init_ralloc): Allocate properly for pdump.
7754
7755 2002-06-12  Andy Piper  <andy@xemacs.org>
7756
7757         * glyphs.c (query_string_geometry): check the string.
7758
7759         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7760         widget names.
7761
7762 2002-06-17  Jerry James  <james@xemacs.org>
7763
7764         * sysdll.c: Remove RTLD_GLOBAL initialization.
7765         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7766
7767 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7768
7769         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7770
7771 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7772
7773         * sysdep.c (sys_rename): Make sys_rename work for the case where
7774         Windows rename sets errno to EACCES if target file exists.
7775
7776 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7777
7778         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7779         Fix detection of metric units to work on Win95
7780
7781 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7782
7783         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7784
7785 2002-04-25  Andy Piper  <andy@xemacs.org>
7786
7787         * redisplay.c (create_text_block): Remove extra comment trailer.
7788
7789 2002-04-24  Andy Piper  <andy@xemacs.org>
7790
7791         * redisplay.c (create_text_block): Don't actually add propagation
7792         data if the line ends after we have added a glyph.
7793
7794 2002-04-22  Andy Piper  <andy@xemacs.org>
7795
7796         * extents.c (extent_fragment_update): check for glyphs we have
7797         previously displayed.
7798         * extents.c (print_extent_1): warning removal.
7799         * extents.h: change prototype.
7800         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7801         widths correctly for wide glyphs.
7802         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7803         * redisplay.c (prop_type): add PROP_GLYPH.
7804         * redisplay.c (struct prop_block): add glyph type
7805         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7806         to the propagation data.
7807         * redisplay.c (create_text_block): if there is a glyph in the
7808         propagation data use it to salt extent_fragment_update.
7809         * redisplay.c (create_string_text_block): ditto.
7810
7811 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7812
7813         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7814         * redisplay-output.c (compare_runes): Compare them.
7815         * redisplay.c: Update copyright date.
7816         * redisplay.c (pos_data): Add need_baseline_computation field.
7817         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7818         need_baseline_computation; zero yoffset. Set max_pixmap_height
7819         for all pixmaps, not just automatically positioned ones.
7820         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7821         * redisplay.c (calculate_baseline): New, compute textual baseline.
7822         * redisplay.c (add_glyph_rune): Call them.
7823         * redisplay.c (create_text_block): Likewise.
7824         * redisplay.c (create_overlay_glyph_block): Likewise.
7825         * redisplay.c (add_margin_runes): Likewise.
7826         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7827
7828         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7829         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7830         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7831         * redisplay-msw.c (mswindows_output_string): Likewise.
7832         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7833         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7834         * redisplay-x.c (x_output_display_block): Likewise.
7835
7836 2002-03-28  Ben Wing  <ben@xemacs.org>
7837
7838         * redisplay.c: Fixed bug in redisplay
7839         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7840         and down of the lines, since they're bigger than the line
7841         size. (It was seen most obviously when there's a horizontal scroll
7842         bar, e.g. do C-h a glyph or something like that.) The problem was
7843         that the glyph-contrib-p setting on glyphs was ignored even if it
7844         was set properly, which it wasn't until now.
7845
7846 2002-04-24  Andy Piper  <andy@xemacs.org>
7847
7848         * lisp.h (Dynarr_end): Fix definition.
7849
7850 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7851
7852         * redisplay.c (mark_redisplay): Remove call to
7853         update_frame_window_mirror.
7854
7855 2001-11-15  Andy Piper  <andy@xemacs.org>
7856
7857         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7858         cygwin (again).
7859
7860 2002-02-13  Andy Piper  <andy@xemacs.org>
7861
7862         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7863         we did in fact enqueue the XM_MAPFRAME event.
7864
7865 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7866
7867         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7868         to fix problem switching between virtual desktops under virtuawin
7869         virtual window manager.
7870
7871 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7872
7873         * event-msw.c: Typo fix.
7874         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7875         magic XM_MAPFRAME event has been sent.
7876
7877 2001-11-23  Andy Piper  <andy@xemacs.org>
7878
7879         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7880
7881 2001-11-21  Andy Piper  <andy@xemacs.org>
7882
7883         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7884         mouse events outside the frame.
7885
7886 2002-03-20  Andy Piper  <andy@xemacs.org>
7887
7888         * menubar-msw.c (mswindows_popup_menu): warning removal.
7889         * dialog-msw.c (dialog_popped_down): ditto.
7890
7891 2001-12-11  Andy Piper  <andy@xemacs.org>
7892
7893         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7894         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7895         popup_up_p.
7896         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7897         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7898         * menubar-msw.c (mswindows_popup_menu): ditto.
7899
7900 2001-10-29  Andy Piper  <andy@xemacs.org>
7901
7902         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7903         cancels.
7904
7905 2002-01-03  Andy Piper  <andy@xemacs.org>
7906
7907         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7908         letters.
7909         (xrealpath): ditto.
7910
7911 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7912
7913         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7914         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7915         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7916         Detect and handle case where machine is set up for metric units
7917
7918 2002-04-02  Andy Piper  <andy@xemacs.org>
7919
7920         * dired-msw.c (mswindows_get_files): 
7921         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7922         completely handled by XEmacs. Suggested by Thomas Vogler
7923         <mail@thomas-vogler.de>.
7924
7925 2001-11-14  Andy Piper  <andy@xemacs.org>
7926
7927         * nt.c (REG_ROOT): change registry key to XEmacs.
7928
7929 2002-04-27  Andy Piper  <andy@xemacs.org>
7930
7931         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7932
7933 2002-04-26  Andy Piper  <andy@xemacs.org>
7934
7935         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7936         behavior.
7937
7938 2002-03-14  Mike Alexander  <mta@arbortext.com>
7939
7940         * event-msw.c (mswindows_unwait_process): New, remove process from
7941         wait list
7942         * process-nt.c (nt_finalize_process_data): Call
7943         mswindows_unwait_process
7944         * console-msw.h: Declare mswindows_unwait_process
7945
7946 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7947
7948         * editfns.c (Fdecode_time):
7949         (Fformat_time_string):
7950         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7951         (make_time): Warning elimination (change arg name).
7952
7953 2001-11-24  Andy Piper  <andy@xemacs.org>
7954
7955         * window.c (Fsplit_window): Doc return type.
7956
7957 2002-04-01  Andy Piper  <andy@xemacs.org>
7958
7959         * emacs.c (Fkill_emacs): Only output message box in interactive
7960         mode.
7961
7962 2002-04-26  Andy Piper  <andy@xemacs.org>
7963  
7964         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7965         cygwin.
7966
7967 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7968
7969         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7970         bit platform.
7971
7972 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7973
7974         * XEmacs 21.4.8 "Honest Recruiter" is released.
7975
7976 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7977
7978         Supersedes 2002-04-17 patch.
7979
7980         * process.h (PROCESS_LIVE_P): Use the process status as
7981         evidence of health, not the state of the input stream.
7982         (PROCESS_READABLE_P): Say if the process is readable
7983         from. (It may be dead nonetheless.)
7984         (CHECK_READABLE_PROCESS): Test for that condition.
7985
7986         * process.c (create_process): Use PROCESS_READABLE_P.
7987         (read_process_output, set_process_filter): Likewise.
7988
7989         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7990         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7991
7992         This code is #if 0'd, this is not the time to add new functions:
7993
7994         * process.c (Fprocess_readable_p): Report readability status.
7995         * process.c (Qprocess_readable_p): New, associated symbol...
7996         * process.c (syms_of_process): ... initialize it.
7997
7998 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7999
8000         * XEmacs 21.4.7 "Economic Science" is released.
8001
8002 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8003
8004         * process.h (PROCESS_LIVE_P): Use the process status as
8005         evidence of health, not the state of the input stream.
8006
8007 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8008
8009         * sysdep.c (sys_siglist): change "signum" to "signal"
8010
8011 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8012
8013         * s/darwin.h: New file.
8014         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8015         
8016 2002-04-23  Andreas Jaeger  <aj@suse.de>
8017
8018         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8019         which use lib64 for 64-bit libs.
8020         (START_FILES): Likewise.
8021
8022 2002-02-11  Mike Sperber  <mike@xemacs.org>
8023
8024         * device-x.c: 
8025         (x_IO_error_handler):
8026         (x_init_device): Temporarily keep device in static variable
8027         `device_being_initialized' so we can recover gracefully from
8028         internal XOpenDevice failure.  (XOpenDevice is documented to
8029         return NULL on failure, but sometimes calls the IO error handler
8030         instead.)
8031
8032 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8033
8034         * dired.c (Ffile_name_all_completions): Change documentation --
8035         remove reference to completion-ignored-extensions.
8036         * dired.c (vars_of_dired): Change documentation for
8037         completion-ignored-extensions -- remove reference to
8038         file-name-all-completions.
8039
8040 2002-03-06  Jerry James  <james@xemacs.org>
8041
8042         * emodules.c (emodules_load): Fix multiple loading of same module.
8043
8044 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8045         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8046         RTLD_LAZY to avoid incorrect symbol binding when using nested
8047         shared libraries on Solaris.
8048
8049 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8050
8051         * fileio.c (Ffind_file_name_handler): Improve docstring.
8052
8053 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8054
8055         * fns.c (Fmapconcat): Improve docstring.
8056
8057 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8058
8059         * device-gtk.c: Add prototype for
8060         emacs_gtk_selection_clear_event_handle.
8061         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8062         selection.  Setup signal handler for "selection_clear_event"
8063         (emacs_gtk_selection_clear_event_handle).
8064
8065         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8066         other applications owning the clipboard (based on
8067         x_handle_selection_clear).
8068
8069 2001-12-23  William M. Perry  <wmperry@gnu.org>
8070
8071         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8072         
8073 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8074
8075         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8076
8077 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8078
8079         * XEmacs 21.4.6 "Common Lisp" is released.
8080
8081 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8082
8083         * search.c (Freplace_match): Add missing sub-expression functionality.
8084
8085         * buffer.c (decode_buffer): Add a check for pointer type to
8086         decode_buffer, before gcc's CSE optimization reorders a
8087         dereference in front of the allow_string test.
8088
8089 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8090
8091         * window.c (window_loop): Fix bug that sometimes prevented
8092         window_loop() from iterating across multiple devices.  Also, at
8093         Ben's request, changed infloop-detecting code to abort() instead
8094         of silently terminating window_loop().
8095
8096 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8097
8098         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8099         * editfns.c (make_time): New function.
8100         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8101         * lisp.h (make_time): Prototype and comment it.
8102         * dired.c (wasteful_word_to_lisp): Deprecate.
8103         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8104
8105 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8106
8107         * fileio.c (auto_save_1): Use current coding system, not
8108         escape-quoted.
8109
8110 2001-11-13  Ben Wing  <ben@xemacs.org>
8111
8112         * window.c:
8113         * window.c (window_truncation_on):
8114         * window.c (syms_of_window):
8115         truncate-partial-width-windows should respect the buffer being
8116         displayed, like other redisplay vars.
8117
8118 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8119
8120         * event-stream.c (Fread_key_sequence): save current buffer.
8121
8122 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8123
8124         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8125
8126 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8127
8128         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8129
8130 2001-10-26  Mike Alexander  <mta@arbortext.com>
8131
8132         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8133
8134 2001-10-25  Andy Piper  <andy@xemacs.org>
8135
8136         * ChangeLog:
8137         * dialog-msw.c (handle_directory_proc): new function.
8138          (handle_directory_dialog_box): new fucntion.
8139          (handle_file_dialog_box): use new directory dialog support.
8140          (mswindows_make_dialog_box_internal): ditto.
8141         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8142         handling.
8143         (mswindows_find_frame): make global.
8144         * fileio.c (Fexpand_file_name): build fix.
8145         * general-slots.h: add Qdirectory.
8146         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8147         handling.
8148         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8149         cygwin not leaving win32 paths unchanged.
8150         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8151         cygwin runtime to do path conversion.
8152         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8153         (syms_of_win32): add new function.
8154         * window.c (window_loop): build fix.
8155
8156 2001-10-15  Andy Piper  <andy@xemacs.org>
8157
8158         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8159
8160 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8161
8162         * XEmacs 21.4.5 "Civil Service" is released.
8163
8164 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8165
8166         * glyphs-x.c: Force buffer-tab highlight update when moving the
8167         buffer, avoiding an ugly black border, used for keyboard focus
8168         indication, on a widget that can never have keyboard focus, the
8169         buffer tab.
8170
8171 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8172
8173         * process-unix.c (unix_open_multicast_group): Remove too much
8174         conversion between host and network byte order.
8175
8176 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8177
8178         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8179         before replacing them.
8180
8181         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8182         operation.
8183
8184         * src/window.c (undedicate_windows): Use it.
8185         * src/window.h: Add prototype.
8186
8187 2001-09-17  Ben Wing  <ben@xemacs.org>
8188
8189         * fileio.c (normalize_filename):
8190         * fileio.c (Fexpand_file_name):
8191         Fix various C++ compile errors in Andy's recent code.
8192         
8193         * callint.c (Fcall_interactively):
8194         * editfns.c (Ftemp_directory):
8195         * editfns.c (Fuser_full_name):
8196         * emacs.c (argmatch):
8197         * lread.c (locate_file_map_suffixes):
8198         * redisplay-x.c (x_ring_bell):
8199         Fix sign-compare warnings.
8200         
8201 2001-09-08  Andy Piper  <andy@xemacs.org>
8202
8203         * fileio.c (normalize_filename): copied from nt.c
8204         * (Ffile_name_directory): enable win32 paths under cygwin.
8205         * (Ffile_name_nondirectory): ditto.
8206         * (directory_file_name): ditto.
8207         * (Fexpand_file_name): ditto.
8208         * (Ffile_truename): ditto.
8209         * (Fsubstitute_in_file_name): ditto.
8210         * (Ffile_name_absolute_p): ditto.
8211         * (Ffile_readable_p): ditto.
8212
8213 2001-09-08  Andy Piper  <andy@xemacs.org>
8214
8215         * device-msw.c (mswindows_finish_init_device): remove dde
8216         initialization.
8217         * device-msw.c (mswindows_init_dde): factor out from
8218         mswindows_finish_init_device()
8219         * device-msw.c (init_mswindows_very_early): new function
8220         initialize but don't enable dde.
8221         * emacs.c (main_1): call init_mswindows_very_early.
8222         * event-msw.c:
8223         * event-msw.c (mswindows_dde_callback): only execute when we are
8224         ready.
8225         * symsinit.h: declare init_mswindows_very_early.
8226
8227 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8228
8229         [sjt: This has been in 21.5 for months with no complaints.]
8230
8231         * console.h (struct console_methods): Added flags member.
8232         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8233         (CONMETH_IMPL_FLAG):
8234         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8235         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8236
8237         * device.c (window_system_pixelated_geometry): Use the above macros.
8238
8239         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8240         implememntation flag.
8241         * device.h (DEVICE_DISPLAY_P): Use it.
8242
8243         * frame.c (delete_frame_internal): Use the above macro.
8244
8245         * redisplay.c (redisplay_device): Use it.
8246         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8247         (redisplay_frame): Ditto.
8248
8249         * device-msw.c (mswindows_device_implementation_flags): Removed.
8250         (msprinter_device_implementation_flags): Removed.
8251         (console_type_create_device_mswindows): Removed references to
8252         implementation_flags methods, set implementation flags here.
8253         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8254
8255         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8256         (console_type_create_device_gtk): Removed method declaration.
8257         Added commented out statement which semantically matches the
8258         commented out statement in the above removed method.
8259
8260 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8261
8262         The attached patch fixes a few warnings. 
8263
8264         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8265         * src/frame-gtk.c: guard against GNOME calls in GTK only
8266         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8267         * src/select-gtk.c: prototype lisp_to_time
8268
8269 2001-06-08  Ben Wing  <ben@xemacs.org>
8270
8271         ------ gc-in-window-procedure fixes ------
8272         
8273         * alloc.c:
8274         * alloc.c (struct post_gc_action):
8275         * alloc.c (register_post_gc_action):
8276         * alloc.c (run_post_gc_actions):
8277         * alloc.c (garbage_collect_1):
8278         Create "post-gc actions", to avoid those dreaded "GC during window
8279         procedure" problems.
8280
8281         * event-msw.c:
8282         Abort, clean and simple, when GC in window procedure.  We want
8283         to flush these puppies out.
8284
8285         * glyphs-msw.c:
8286         * glyphs-msw.c (finalize_destroy_window):
8287         * glyphs-msw.c (mswindows_finalize_image_instance):
8288         Use a post-gc action when destroying subwindows.
8289
8290         * lisp.h:
8291         Declare register_post_gc_action().
8292
8293         * scrollbar-msw.c:
8294         * scrollbar-msw.c (unshow_that_mofo):
8295         Use a post-gc action when unshowing scrollbar windows, if in gc.
8296
8297         * redisplay.c (mark_redisplay):
8298         Add comment about the utter evilness of what's going down here.
8299
8300         ------ cygwin setitimer fixes ------
8301         
8302         * Makefile.in.in (sheap_objs):
8303         * Makefile.in.in (profile_objs):
8304         * Makefile.in.in (objs):
8305         Compile profile.c only when HAVE_SETITIMER.
8306         
8307         * nt.c (mswindows_sigset):
8308         * nt.c (mswindows_sighold):
8309         * nt.c (mswindows_sigrelse):
8310         * nt.c (mswindows_sigpause):
8311         * nt.c (mswindows_raise):
8312         * nt.c (close_file_data):
8313         Style fixes.
8314         
8315         * nt.c:
8316         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8317         
8318         * profile.c:
8319         * profile.c (Fstart_profiling):
8320         * profile.c (Fstop_profiling):
8321         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8322         instead of just plain setitimer().
8323         
8324         * signal.c:
8325         * signal.c (set_one_shot_timer):
8326         * signal.c (alarm):
8327         Define qxe_setitimer() as an encapsulation around setitimer() --
8328         call setitimer() directly unless Cygwin or MS Win, in which case
8329         we use our simulated version in win32.c.
8330         
8331         * systime.h:
8332         * systime.h (struct itimerval):
8333         * systime.h (ITIMER_REAL):
8334         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8335         comment about "qxe" and the policy regarding encapsulation.
8336
8337         * win32.c:
8338         * win32.c (setitimer_helper_proc):
8339         * win32.c (setitimer_helper_period):
8340         * win32.c (setitimer_helper):
8341         * win32.c (mswindows_setitimer):
8342         Move setitimer() emulation here, so Cygwin can use it.
8343         Rename a couple of functions and variables to be longer and more
8344         descriptive.  In setitimer_helper_proc(), send the signal
8345         using either mswindows_raise() or (on Cygwin) kill().  If for
8346         some reason we are still getting lockups, we'll change the kill()
8347         to directly invoke the signal handlers.
8348
8349         ------ windows shell fixes ------
8350         
8351         * callproc.c:
8352         * ntproc.c:
8353         Comments about how these two files must die.
8354
8355         * callproc.c (init_callproc):
8356         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8357         not just COMSPEC. (more correct and closer to FSF.) Don't
8358         force a value for SHELL into the environment. (Comments added
8359         to explain why not.)
8360         
8361         * nt.c (init_user_info):
8362         Don't shove a fabricated SHELL into the environment.  See above.
8363
8364 2001-06-01  Ben Wing  <ben@xemacs.org>
8365
8366         * Makefile.in.in (ldflags):
8367         eliminate that pesky "defaulting to 00401000" warning.
8368         * nt.h:
8369         eliminate warnings.
8370
8371 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8372
8373         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8374         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8375
8376 2001-04-24  Jerry James <james@xemacs.org>
8377
8378         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8379         correct order.
8380
8381 2001-06-01  Ben Wing  <ben@xemacs.org>
8382
8383         * event-msw.c (debug_mswin_messages):
8384         conditionalize the messages that were causing compile errors.
8385         (if only macros could generate #ifdef statements ...)
8386
8387 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8388
8389         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8390
8391 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8392
8393         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8394
8395 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8396
8397         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8398         * process-unix.c (unix_canonicalize_host_name):
8399         sysdep.c (init_system_name):
8400         Use it to conditionally support IPv6 canonicalization.
8401
8402 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8403
8404         * event-msw.c:
8405         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8406
8407 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8408
8409         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8410         attempt is made to scroll when no scroll bar is available.
8411
8412 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8413
8414         * input-method-motif.c (XIM_delete_frame): New callback.
8415         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8416         got deleted from 21.4.3.)
8417
8418 2001-06-01  Ben Wing  <ben@xemacs.org>
8419
8420         * nt.c (mswindows_utime):
8421         * nt.c (close_file_data):
8422         fix off-by-one-indirection error.
8423
8424 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8425
8426         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8427         because set_file_times() now takes Lisp_Object path, instead of
8428         char*.
8429         * nt.c: Include buffer.h.
8430         * nt.c (convert_from_time_t): New.
8431         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8432         not set mtime correctly.
8433         * nt.h: Declare mswindows_utime().
8434         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8435         path, instead of char*.
8436         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8437
8438 2001-05-30  Ben Wing  <ben@xemacs.org>
8439
8440         For 21.4:
8441
8442         (Stephen, just take all event-msw.c patches.  This includes
8443         the "iconify" fix below.)
8444
8445         * event-msw.c:
8446         * event-msw.c (mswindows_dequeue_dispatch_event):
8447         * event-msw.c (assert):
8448         * event-msw.c (emacs_mswindows_quit_p):
8449         * event-msw.c (debug_mswin_messages):
8450         * event-msw.c (debug_output_mswin_message):
8451         * event-msw.c (vars_of_event_mswindows):
8452         Fix yet more problems with C-g handling.
8453         Implement debug-mswindows-events.
8454         
8455 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8456
8457         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8458         
8459 2001-05-23  Ben Wing  <ben@xemacs.org>
8460
8461         * event-msw.c (winsock_writer):
8462         * event-msw.c (winsock_closer):
8463         prior kludgy code was clobbering the buffer, thinking it was
8464         "unused" space to store an unneeded return value; instead, use
8465         the variable we've already got staring us in the face.
8466
8467 2001-05-17  Andy Piper  <andy@xemacs.org>
8468
8469         * sysfile.h: don't assume that file attributes are boolean
8470
8471 2001-05-23  Ben Wing  <ben@xemacs.org>
8472
8473         * device-msw.c (msprinter_init_device):
8474         signal an error rather than crash with an unavailable network
8475         printer (from Mike Alexander).
8476         
8477         * event-msw.c:
8478         * event-msw.c (struct winsock_stream):
8479         * event-msw.c (winsock_writer):
8480         * event-msw.c (winsock_closer):
8481         * event-msw.c (make_winsock_stream_1):
8482         cleanup headers.  fix (hopefully) an error with data corruption
8483         when sending to a network connection.
8484
8485         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8486         to handle the ~user prefix by (a) always assuming we're referencing
8487         ourselves and not even verifying the user -- hence any file with
8488         a tilde as its first char is invalid! (b) if there wasn't a slash
8489         following the filename, the pointer was set *past* the end of
8490         file and we started reading from uninitialized memory.  Now we
8491         simply treat these as files, always.
8492
8493         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8494         
8495 2001-05-19  Ben Wing  <ben@xemacs.org>
8496
8497         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8498
8499         * process-nt.c:
8500         * process-nt.c (vars_of_process_nt):
8501         remove unused mswindows-quote-process-args.  rec for 21.4.
8502         
8503 2001-05-12  Ben Wing  <ben@xemacs.org>
8504
8505         * event-msw.c (mswindows_dde_callback):
8506         * event-msw.c (mswindows_wnd_proc):
8507         eliminate cygwin warnings.
8508
8509 2001-05-06  Ben Wing  <ben@xemacs.org>
8510
8511         * console-msw.h:
8512         * device-msw.c:
8513         * device-msw.c (print_dialog_worker):
8514         * device-msw.c (mswindows_handle_print_dialog_box):
8515         * device-msw.c (syms_of_device_mswindows):
8516         * dialog-msw.c (mswindows_make_dialog_box_internal):
8517         * general-slots.h:
8518         implement printing the selection when it's selected.
8519
8520 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8521
8522         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8523
8524 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8525
8526         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8527         EMACS_INT is signed.
8528
8529 2001-04-15  Michael Lausch  <mla@1012surf.net>
8530
8531         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8532         gtk_widget_request_size() to give scrollbar >0 width for
8533         GTK >1.2.8.
8534
8535 2001-05-30  William M. Perry  <wmperry@gnu.org>
8536
8537         * event-gtk.c: Check for buttons as modifier keys.
8538
8539 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8540
8541         * s\mingw32.h:
8542         Properly find MinGW's <process.h> inside Cygwin's restructured
8543         include directories.  Don't try to include <cygwin/version.h>
8544         since we are dropping support for MinGW in versions of Cygwin
8545         earlier than b21.
8546         * nt.c:
8547         Drop support for MinGW in versions of Cygwin before b21.
8548         * sysdep.c:
8549         Properly find MinGW's <process.h> inside Cygwin's restructured
8550         include directories.
8551         * syswindows.h:
8552         Drop support for MinGW in versions of Cygwin before b21.
8553         * unexcw.c:
8554         Even though a.out.h is no longer detected by configure, allow
8555         MinGW to use it until we figure out how to do the job with Win32.
8556
8557 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8558
8559         * syntax.c (find_start_of_comment):
8560         Fix `unbalanced parentheses' bug when dealing with mixed comment
8561         styles in c++/java/etc. mode
8562
8563 2001-05-29  Mike Alexander  <mta@arbortext.com>
8564
8565         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8566         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8567
8568 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8569
8570         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8571
8572 2001-03-31  Mike Sperber <mike@xemacs.org>
8573
8574         * search.c (Freplace_match): Support FSF-style specification of
8575         match subexpression when applied to a buffer.
8576
8577 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8578
8579         * event-stream.c (is_scrollbar_event): add missing semicolon
8580
8581 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8582
8583         * Makefile.in.in: Use TAR macro instead of hardcoding
8584           tar.  Allows use of GNU tar instead of system tar
8585
8586 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8587
8588         * event-stream.c (is_scrollbar_event): add missing semicolon
8589
8590 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8591
8592         * XEmacs 21.4.3 "Academic Rigor" is released.
8593
8594 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8595
8596         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8597
8598 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8599
8600         * buffer.c (Vcase_fold_search): Remove obsolete
8601           comment about non ASCII case-fold-search.  This
8602           bug has been fixed by case-table changes.
8603
8604 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8605
8606         * event-msw.c: Restore include of events-mod.h.
8607
8608 2001-04-22   zhaoway  <zw@debian.org>
8609
8610         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8611         !HAVE_SCROLLBARS.
8612
8613 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8614
8615         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8616
8617 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8618
8619         * mule-charset.c (Fmake_charset): Add missing else.
8620
8621 2001-04-23  Ben Wing  <ben@xemacs.org>
8622
8623         * event-msw.c (FAKE_MOD_QUIT):
8624         * event-msw.c (mswindows_dequeue_dispatch_event):
8625         * event-msw.c (mswindows_wnd_proc):
8626         * event-msw.c (emacs_mswindows_quit_p):
8627         Get critical quit working.
8628
8629 2001-05-05  Ben Wing  <ben@xemacs.org>
8630
8631         * console-msw.h:
8632         * device-msw.c:
8633         * device-msw.c (mswindows_get_default_margin):
8634         * frame-msw.c (mswindows_size_frame_internal):
8635         * frame-msw.c (msprinter_init_frame_1):
8636         * frame-msw.c (vars_of_frame_mswindows):
8637         Change top/bottom margin defaults to 0.5 inches.
8638
8639 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8640
8641         Fix link error with gcc 3.0 on Linux.
8642         * terminfo.c (UP): Remove.
8643         * terminfo.c (BC): Remove.
8644         * terminfo.c (PC): Remove.
8645         They weren't used, and in any case, these symbols should be
8646         defined in the *library*.
8647
8648 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8649
8650         * s/aix4.h: Fix crash with xlc -O3.
8651         Improve comment explaining how -O3 works.
8652
8653 2001-04-15  Ben Wing  <ben@xemacs.org>
8654
8655         * event-stream.c:
8656         * event-stream.c (Fnext_event):
8657         * event-stream.c (is_scrollbar_event):
8658         * event-stream.c (execute_command_event):
8659         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8660         crash' problem.  His fix introduces other problems.  We filter
8661         out scrollbar events specifically, making them somewhat invisible
8662         to command-building, and not appearing in `this-command-keys'.
8663         More work is still needed (see comments in event-stream.c), but
8664         this fixes all the major problems.
8665
8666 2001-04-20  Ben Wing  <ben@xemacs.org>
8667
8668         * .cvsignore: Added stuff for Windows.
8669
8670 2001-04-28  Ben Wing  <ben@xemacs.org>
8671
8672         * buffer.c (Ferase_buffer):
8673         * editfns.c (buffer_insert1):
8674         * editfns.c (Finsert_before_markers):
8675         * editfns.c (Finsert_string):
8676         * editfns.c (Finsert_char):
8677         * editfns.c (Fdelete_region):
8678         * editfns.c (Fwiden):
8679         * editfns.c (Fnarrow_to_region):
8680         remove bogus lines setting zmacs_region_stays to 0.
8681         
8682 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8683
8684         * process-unix.c (unix_open_network_stream): If connect() fails
8685         invalidate file descriptor after closing it.
8686
8687 2001-03-08  Mike Alexander  <mta@arbortext.com>
8688
8689         * event-msw.c (mswindows_need_event_in_modal_loop):
8690         Don't dispatch a message if we didn't get one.
8691         (mswindows_need_event):
8692         Terminate the correct process when one exits instead of the first
8693         one on Vprocess_list and look for process termination when in
8694         mswindows_protect_modal_loop.
8695
8696 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8697
8698         * XEmacs 21.4.1 "Copyleft" is released.
8699
8700 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8701
8702         * input-method-motif.c (XIM_delete_frame): New callback.
8703         (XIM_init_frame): Register it.
8704
8705 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8706
8707         * XEmacs 21.4.0 "Solid Vapor" is released.
8708
8709 2001-04-15  Ben Wing  <ben@xemacs.org>
8710
8711         * cmdloop.c (call_command_loop):
8712         Fix braino in bit-rotting code.
8713         
8714 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8715
8716         * extents.c (Fset_extent_endpoints): Force creation of extent info
8717         in buffer_or_string.
8718
8719         * extents.c (process_extents_for_insertion_mapper): Correctly
8720         check for open-open zero-length extents.
8721
8722 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8723
8724         * lisp.h: New typedefs Memory_count, Element_count.
8725         * regex.c:
8726         * regex.h:
8727         Sign-compare warning elimination: several unsigned -> signed.
8728         Based on work by Ben Wing <ben@xemacs.org>.
8729
8730 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8731
8732         * XEmacs 21.2.47 "Zephir" is released.
8733
8734 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8735
8736         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8737
8738 2001-04-03  Mike Sperber <mike@xemacs.org>
8739
8740         * search.c: Revert previous patch due because of release.
8741
8742 2001-03-30  Ben Wing  <ben@xemacs.org>
8743
8744         * s\cygwin32.h:
8745         Add missing killpg prototype.
8746
8747         * elhash.c:
8748         Add a comment about fixing problems when a new entry is added
8749         while mapping.
8750
8751         * frame-msw.c (mswindows_init_frame_1):
8752         Fix compile warnings.
8753
8754         * menubar.c (vars_of_menubar):
8755         Provide `menu-accelerator-support' to indicate that we properly
8756         support %_ in menu specifications, so that package code can
8757         conditionalize on this (and remove %_ from menu specifications
8758         on older versions).
8759
8760         * event-msw.c:
8761         * scrollbar-msw.c:
8762         * scrollbar-msw.c (can_scroll):
8763         * scrollbar-msw.h:
8764         Fix handling of mouse wheel under Windows to follow standards --
8765         now scrolls window under pointer, not selected window.
8766
8767 2001-03-31  Mike Sperber <mike@xemacs.org>
8768
8769         * search.c (Freplace_match): Support FSF-style specification of
8770         match subexpression when applied to a buffer.
8771
8772 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8773
8774         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8775         function to modify KEYMAP, so map over a copy of the hash table.
8776
8777 2001-03-21  Martin Buchholz <martin@xemacs.org>
8778
8779         * XEmacs 21.2.46 "Urania" is released.
8780
8781 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8782
8783         * realpath.c (xrealpath): Make file-truename work with symlinks to
8784         /cygdrive paths on cygwin. Always lowercase drive-letters on
8785         native windows.
8786         (cygwin_readlink): Don't try to find canonical filename unless
8787         file exists.
8788
8789 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8790
8791         * ChangeLog: Log GTK merge.
8792
8793         * dumper.c:
8794         * select-x.c:
8795         * specifier.c:
8796         * symeval.h:
8797         Revert gratuitous whitespace changes from GTK merge.
8798
8799         * emacs.c: Document end of complex #ifdef @ l. 1495.
8800
8801
8802 2001-03-12  Andy Piper  <andy@xemacs.org>
8803
8804         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8805         have to do likewise.
8806
8807 2001-03-12  Andy Piper  <andy@xemacs.org>
8808
8809         * sysdep.c: we only support mingw now.
8810
8811 2001-03-09  Andy Piper  <andy@xemacs.org>
8812
8813         * unexcw.c (copy_executable_and_dump_data_section): making approx
8814         overrun a warning only.
8815
8816 2001-03-10  William M. Perry  <wmperry@aventail.com>
8817
8818         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8819         satisfy Stephen's identical-after-cpp plea.
8820
8821 2001-03-02  Ben Wing  <ben@xemacs.org>
8822
8823         * cmds.c:
8824         * cmds.c (Fforward_char):
8825         * syntax.c:
8826         * window.c:
8827
8828         Augment documentation of the most common motion commands to make
8829         note of the shifted-motion support.
8830         
8831 2001-03-02  Ben Wing  <ben@xemacs.org>
8832
8833         * nt.c (mswindows_fstat):
8834         * nt.c (mswindows_stat):
8835         * search.c (boyer_moore):
8836         Fix compile warnings under Windows.
8837         
8838         * sysdep.c (sys_readdir):
8839         Fix buggy filename-conversion code under Mule.
8840
8841 2001-03-09  William M. Perry  <wmperry@aventail.com>
8842
8843         * Makefile.in.in:
8844         * config.h.in:
8845         * console.c:
8846         * console.h:
8847         * device.c:
8848         * device.h:
8849         * dragdrop.c:
8850         * emacs.c:
8851         * event-stream.c:
8852         * events.c:
8853         * events.h:
8854         * faces.c:
8855         * frame.h:
8856         * general-slots.h:
8857         * glyphs.c:
8858         * gutter.c:
8859         * inline.c:
8860         * lisp.h:
8861         * lrecord.h:
8862         * make-src-depend:
8863         * redisplay-output.c:
8864         * redisplay.c:
8865         * symsinit.h:
8866         * sysfile.h:
8867         * toolbar.c:
8868         * window.c:
8869         The Great GTK Merge.
8870
8871         * ChangeLog.GTK:
8872         * console-gtk.c:
8873         * console-gtk.h:
8874         * device-gtk.c:
8875         * emacs-marshals.c:
8876         * emacs-widget-accessors.c:
8877         * event-gtk.c:
8878         * frame-gtk.c:
8879         * gccache-gtk.c:
8880         * gccache-gtk.h:
8881         * glade.c:
8882         * glyphs-gtk.c:
8883         * glyphs-gtk.h:
8884         * gtk-glue.c:
8885         * gtk-xemacs.c:
8886         * gtk-xemacs.h:
8887         * gui-gtk.c:
8888         * gui-gtk.h:
8889         * menubar-gtk.c:
8890         * native-gtk-toolbar.c:
8891         * objects-gtk.c:
8892         * objects-gtk.h:
8893         * redisplay-gtk.c:
8894         * scrollbar-gtk.c:
8895         * scrollbar-gtk.h:
8896         * select-gtk.c:
8897         * toolbar-gtk.c:
8898         * ui-byhand.c:
8899         * ui-gtk.c:
8900         * ui-gtk.h:
8901         The Great GTK Merge: new files.
8902
8903 2001-02-26  Ben Wing  <ben@xemacs.org>
8904
8905         Reapplied Lstream change.
8906
8907 2001-02-26  Ben Wing  <ben@xemacs.org>
8908
8909         Undid the last change, since it is more controversial than I
8910         thought.  It should be back in at some point soon.
8911         
8912 2001-02-25  Ben Wing  <ben@xemacs.org>
8913
8914         * buffer.c:
8915         * callproc.c (Fold_call_process_internal):
8916         * event-msw.c (ntpipe_slurp_reader):
8917         * event-msw.c (ntpipe_shove_writer):
8918         * event-msw.c (winsock_reader):
8919         * event-msw.c (winsock_writer):
8920         * file-coding.c:
8921         * file-coding.c (detect_eol_type):
8922         * file-coding.c (detect_coding_type):
8923         * file-coding.c (determine_real_coding_system):
8924         * file-coding.c (Fdetect_coding_region):
8925         * file-coding.c (decoding_reader):
8926         * file-coding.c (decoding_writer):
8927         * file-coding.c (mule_decode):
8928         * file-coding.c (Fdecode_coding_region):
8929         * file-coding.c (encoding_reader):
8930         * file-coding.c (encoding_writer):
8931         * file-coding.c (mule_encode):
8932         * file-coding.c (Fencode_coding_region):
8933         * file-coding.c (detect_coding_sjis):
8934         * file-coding.c (decode_coding_sjis):
8935         * file-coding.c (encode_coding_sjis):
8936         * file-coding.c (detect_coding_big5):
8937         * file-coding.c (decode_coding_big5):
8938         * file-coding.c (encode_coding_big5):
8939         * file-coding.c (detect_coding_ucs4):
8940         * file-coding.c (decode_coding_ucs4):
8941         * file-coding.c (encode_coding_ucs4):
8942         * file-coding.c (detect_coding_utf8):
8943         * file-coding.c (decode_coding_utf8):
8944         * file-coding.c (encode_coding_utf8):
8945         * file-coding.c (detect_coding_iso2022):
8946         * file-coding.c (decode_coding_iso2022):
8947         * file-coding.c (encode_coding_iso2022):
8948         * file-coding.c (decode_coding_no_conversion):
8949         * file-coding.c (encode_coding_no_conversion):
8950         * glyphs-x.c (write_lisp_string_to_temp_file):
8951         * gpmevent.c (tty_get_foreign_selection):
8952         * lisp.h:
8953         * lstream.c:
8954         * lstream.c (Lstream_flush_out):
8955         * lstream.c (Lstream_adding):
8956         * lstream.c (Lstream_write_1):
8957         * lstream.c (Lstream_write):
8958         * lstream.c (Lstream_raw_read):
8959         * lstream.c (Lstream_read_more):
8960         * lstream.c (Lstream_read):
8961         * lstream.c (Lstream_unread):
8962         * lstream.c (Lstream_fputc):
8963         * lstream.c (stdio_reader):
8964         * lstream.c (stdio_writer):
8965         * lstream.c (filedesc_reader):
8966         * lstream.c (filedesc_writer):
8967         * lstream.c (lisp_string_reader):
8968         * lstream.c (struct fixed_buffer_stream):
8969         * lstream.c (make_fixed_buffer_input_stream):
8970         * lstream.c (make_fixed_buffer_output_stream):
8971         * lstream.c (fixed_buffer_reader):
8972         * lstream.c (fixed_buffer_writer):
8973         * lstream.c (struct resizing_buffer_stream):
8974         * lstream.c (resizing_buffer_writer):
8975         * lstream.c (dynarr_writer):
8976         * lstream.c (lisp_buffer_reader):
8977         * lstream.c (lisp_buffer_writer):
8978         * lstream.h:
8979         * lstream.h (lstream_implementation):
8980         * lstream.h (struct lstream):
8981         * md5.c (Fmd5):
8982         * process-nt.c (nt_send_process):
8983         * process-unix.c (unix_send_process):
8984         
8985         Correct Lstream lossage due to mixing of signed and unsigned
8986         quantities.  All Lstream uses of size_t and ssize_t are now a
8987         single signed data type Lstream_data_count.  This fixes problems
8988         under Windows with sending large quantities of data to a process,
8989         and may well fix other subtle bugs.
8990
8991 2001-02-23  Martin Buchholz <martin@xemacs.org>
8992
8993         * XEmacs 21.2.45 "Thelxepeia" is released.
8994
8995 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8996
8997         * lisp-union.h (XSETINT): 
8998         (XSETCHAR):
8999         (XSETOBJ): 
9000         Reverse previous change of 2001-02-06.
9001
9002 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9003
9004         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9005         buffers.
9006         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9007         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9008         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9009         * regex.c (POS_AS_IN_BUFFER): removed
9010         * regex.c (re_search_2):
9011         * regex.c (re_match_2):
9012         Don't use an offset of 1 when calculating buffer positions, since
9013         `BI_BUF_BEGV' does it already.
9014
9015 2001-02-18  Wim Dumon  <wim@easics.be>
9016
9017         * insdel.c (prepare_to_modify_buffer): Also check for
9018         supersession when clash-detection is enabled. 
9019
9020 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9021
9022         * regex.c (re_match_2_internal):
9023         Convert temp characters from 'const unsigned char' to 're_char'.
9024         Fix crashing bug with extended characters under mule.
9025         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9026         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9027         font-lock, pdump, and new syntax-table code.
9028         * syntax.c (find_start_of_comment):
9029         (find_end_of_comment):
9030         (forward-comment):
9031         Fix crashing bugs involving moving beyond end of buffer.
9032         * syntax.c (find_start_of_comment):
9033         Fixed logic to allow proper detection of cases where the same
9034         character is used to end both a two-char comment start and a
9035         two-char comment end sequence. Fixes `(forward-comment -1)'.
9036         * syntax.c (find_start_of_comment):
9037         Return position just past last comment-end character for all cases
9038         (previously was only done for two-char comment-end sequences).
9039         * syntax.c (forward-comment):
9040         Take value returned from `find_end_of_comment', rather than
9041         incrementing it.
9042         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9043         Properly deal with BUFFERP (syntax_cache.object)
9044
9045 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9046
9047         * alloc.c (Fgarbage_collect): 
9048         * alloc.c (make_bit_vector_from_byte_vector):
9049         -Wsign-compare-correctness.
9050
9051 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9052
9053         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9054         (XSETCHAR): Likewise.
9055         (XSETOBJ): Likewise.
9056
9057 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9058
9059         * mule-canna.c (canna-func-delete_previous): 
9060         Rename to canna-func-delete-previous.
9061
9062 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9063
9064         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9065
9066 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9067
9068         * font-lock.c (find_context): Fix C++ compile errors introduced by
9069         recent patch
9070
9071 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9072
9073         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9074         pragma, but earlier ones barf on the same pragma.
9075
9076 2001-02-06  Mike Sperber <mike@xemacs.org>
9077
9078         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9079         `configure-mule-lisp-directory'.
9080
9081 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9082
9083         Make sure dump-id.c is compiled in the same way as other .c's.
9084         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9085         * dump-id.h: Remove.
9086         * emacs.c: Move dump-id.h into dumper.h.
9087         * dumper.h: Move dump-id.h into dumper.h.
9088         * Makefile.in.in:
9089         Use standard .c.o rule for building dump-id.o.
9090         Remove preprocessor flags from link command.
9091         Add dump-id.o to ${otherobjs} if PDUMP.
9092
9093 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9094
9095         Port FSF 20.7 syntax table improvements.
9096         * syntax.c.
9097         * syntax.h.
9098
9099         Fixups for new syntax table stuff.
9100         * dired.c: Include syntax.c.
9101         (Fdirectory_files): Initialize regex_match_object and
9102         regex_emacs_buffer.
9103         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9104         and Fget_char_property.
9105
9106         Use ported FSF 20.7 syntax table improvements.
9107         * font-lock.c.
9108         * regex.c.
9109         * search.c.
9110         
9111 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9112
9113         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9114         Unixware's enum boolean from sys/types.h.
9115
9116 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9117
9118         Fix support for building with latest Purify.
9119         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9120         (PURIFY_FLAGS): Likewise.
9121
9122 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9123
9124         * fileio.c (lisp_string_set_file_times): New.
9125         * fileio.c (Fcopy_file): Use it.
9126         Fixes bug:
9127         (copy-file filename non-ascii-filename t t)
9128         ==> No such file or directory, non-ascii-filename
9129
9130 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9131
9132         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9133         USHRT_MAX seems clearer than ~0 anyways.
9134
9135 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9136
9137         dumper improvements.  Inspired by Olivier.
9138         * dumper.c (pdump_max_align): New.
9139         * dumper.c (pdump_add_entry): Use pdump_max_align.
9140         * dumper.c (pdump_get_entry_list): Likewise.
9141         * dumper.c (pdump_scan_by_alignment): Likewise.
9142         Don't iterate through unnecessary alignments.
9143         * dumper.c (pdump_file_get): No need to align result of malloc().
9144         * dumper.c (pdump_mallocadr): Remove.  
9145         The result of malloc() is guaranteed to be maximally aligned.
9146         * dumper.c: s/elmt/elt/g;
9147         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9148         * dumper.c (pdump_alert_undump_object): Likewise.
9149         * dumper.c (pdump_align_table): 
9150         Don't support alignments > 64.
9151         Store ALIGNOF's, not shift counts, in table.
9152
9153 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9154
9155         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9156         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9157         * systime.h: Use HAVE_UTIME.
9158         * sysdep.c (struct utimbuf): Remove.
9159         * sysdep.c (set_file_times): Prefer utime() to utimes().
9160         * config.h.in (HAVE_UTIME): New.
9161         * config.h.in (HAVE_UTIME_H): Remove.
9162         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9163
9164 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9165
9166         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9167
9168 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9169
9170         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9171
9172 2001-02-08  Martin Buchholz <martin@xemacs.org>
9173
9174         * XEmacs 21.2.44 "Thalia" is released.
9175
9176 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9177
9178         Fixes crashes in kill-emacs on some systems.
9179         * process-unix.c (unix_kill_child_process):
9180         It's OK for kill() to fail with ESRCH.
9181
9182 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9183
9184         Contortions to make .gdbinit tricks work on most systems.
9185         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9186         * alloc.c (dbg_valmask): Make non-const.
9187         * alloc.c (dbg_typemask): Make non-const.
9188         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9189         * alloc.c (dbg_valbits): Make non-const.
9190         * alloc.c (dbg_gctypebits): Make non-const.
9191         * .gdbinit (decode_object): Make it work with AIX cc.
9192
9193 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9194
9195         * elhash.c (make_general_lisp_hash_table):
9196         Use simpler and more efficient calloc to clear entries.
9197
9198 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9199
9200         * window.c (window_scroll): Work around an AIX C compiler bug.
9201         Fixes 'scroll-up' does nothing problem with xlC.
9202
9203 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9204
9205         * .gdbinit: Remove obsolete comment.
9206
9207 2001-01-31  Mike Alexander  <mta@arbortext.com>
9208
9209         * select.c (Fown_selection_internal): Set owned_p for device
9210         method correctly.
9211
9212 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9213
9214         Port to g++ 2.97.
9215         "not" cannot be used as a macro name as it is an operator in C++
9216         * config.h.in: Stop #defining `not'.
9217         * chartab.c (check_category_char): not ==> not_p
9218         * chartab.h: Likewise.
9219         * regex.c (re_match_2_internal): Likewise.
9220
9221 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9222
9223         * lisp-disunion.h: Fix up comments.
9224
9225 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9226
9227         * keymap.c (define_key_check_and_coerce_keysym):
9228         (syms_of_keymap):
9229         Support mouse-6 and mouse-7 bindings in the obvious way.
9230
9231 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9232
9233         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9234
9235 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9236
9237         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9238         Previous patch missed DEFVAR_INT_MAGIC.
9239         Make sure future DEFVAR_foo use correct types.
9240         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9241         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9242         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9243         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9244         * (DEFVAR_INT): Likewise.
9245         * redisplay.c (vertical_clip): Should be of type Fixnum.
9246         * redisplay.c (horizontal_clip): Likewise.
9247         * lisp.h (dump_add_opaque_int): New.
9248         (dump_add_opaque_fixnum): New.
9249
9250 2001-01-29  Andy Piper  <andy@xemacs.org>
9251
9252         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9253         since they can be eval'ed
9254
9255 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9256
9257         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9258         Oops, XEmacs redefines `class'.  Use `typename' instead.
9259
9260 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9261
9262         * dumper.c: Fix C++ compile errors.
9263
9264 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9265
9266         * tparam.c: Use correct prototypes.
9267
9268 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9269
9270         * sysproc.h: #include util.h for NetBSD's openpty.
9271
9272 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9273
9274         More 64-bit correctness.
9275         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9276         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9277         Fix up comments.
9278         This finally finishes the 64-bit SGI port.
9279         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9280         * symbols.c: Fix up comments and type casts.
9281         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9282         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9283         * symeval.h (Fixnum): New type.
9284         * symeval.h (symbol_value_type): Fix up comment.
9285
9286         * commands.h:
9287         * nt.c:
9288         * emacs.c:
9289         * data.c:
9290         * redisplay.c:
9291         * abbrev.c:
9292         * dired-msw.c:
9293         * event-Xt.c:
9294         * eldap.c:
9295         * window.c:
9296         * sound.c:
9297         * event-stream.c:
9298         * eval.c:
9299         * buffer.c:
9300         * mule-canna.c: A million DEFVAR_INTs here...
9301         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9302         * extents.c:
9303         * cmdloop.c:
9304         * lisp.h:
9305         * select-x.c:
9306         * console-x.h:
9307         * event-msw.c:
9308         * mule-wnnfns.c:
9309         * hpplay.c:
9310         * ralloc.c:
9311         * alloc.c:
9312         * keymap.c:
9313         * profile.c:
9314         s/int/Fixnum/g in DEFVAR_INT declarations.
9315
9316 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9317
9318         Port pdump to SGI alignment-sensitive environment.
9319         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9320         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9321         properly aligned.
9322         Define and use aligned reading and writing macros.
9323         Use buffered stdio instead of posix i/o for faster dumping.
9324         Eliminate kludgy 256 byte space for header.
9325         Read and write from dump file using structs for alignment safety.
9326         * dumper.c (pdump_align_stream): New.
9327         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9328         * dumper.c (PDUMP_READ_ALIGNED): New.
9329         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9330         * dumper.c (pdump_static_Lisp_Object): New struct.
9331         * dumper.c (pdump_static_pointer): New struct.
9332         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9333         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9334         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9335         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9336
9337         * dumper.c (pdump_backtrace):
9338         * dumper.c (pdump_get_indirect_count):
9339         * dumper.c (pdump_register_object):
9340         * dumper.c (pdump_register_struct):
9341         * dumper.c (pdump_reloc_one):
9342         * dumper.c (pdump_scan_by_alignment):
9343         * dumper.c (pdump_dump_from_root_struct_ptrs):
9344         * dumper.c (pdump_dump_opaques):
9345         * dumper.c (pdump_dump_rtables):
9346         * dumper.c (pdump_dump_from_root_objects):
9347         * dumper.c (pdump):
9348         * dumper.c (pdump_load_finish):
9349         Use aligned reading and writing.
9350
9351         * dumper.c (pdump_free): Make static.
9352         * dumper.c (pdump_hFile): Likewise.
9353         * dumper.c (pdump_hMap): Likewise.
9354
9355 2001-01-26  Martin Buchholz <martin@xemacs.org>
9356
9357         * XEmacs 21.2.43 "Terspichore" is released.
9358
9359 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9360
9361         Type fiddling for window_config.saved_windows_count
9362         * window.c (struct window_config): 
9363         Make saved_windows_count member unsigned.
9364         * window.c (sizeof_window_config_for_n_windows): 
9365         Make parameter unsigned.
9366         * window.c (mark_window_config):
9367         * window.c (window_config_equal):
9368         * window.c (free_window_configuration):
9369         * window.c (Fset_window_configuration):
9370         * window.c (count_windows):
9371         * window.c (Fcurrent_window_configuration):
9372         * window.c (reinit_vars_of_window):
9373         Update all callers and users.
9374
9375 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9376
9377         Alignment correctness for flexible arrays.
9378         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9379         Make alignment-correct. Add interesting comments.
9380         * alloc.c (size_vector):
9381         * alloc.c (make_vector_internal):
9382         * alloc.c (make_bit_vector_internal):
9383         * alloc.c (sweep_bit_vectors_1):
9384         * fns.c (size_bit_vector):
9385         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9386         * window.c (sizeof_window_config_for_n_windows): 
9387         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9388
9389 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9390
9391         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9392
9393 2001-01-23  Andy Piper  <andy@xemacs.org>
9394
9395         * select.c (Fown_selection_internal): pass owned_p
9396
9397         * select-msw.c (mswindows_own_selection): New Signature.
9398
9399         * console.h (struct console_methods): add owned_p to
9400         _own_selection.
9401
9402         * select-x.c (x_own_selection): pass owned_p
9403         (hack_motif_clipboard_selection): use owned_p
9404         (vars_of_select_x): new variable -
9405         x_selection_strict_motif_ownership.
9406
9407 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9408
9409         * specifier.h (specifier_data_offset): Remove pointless parens.
9410         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9411
9412 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9413
9414         Make Lisp_Object sizeof methods be alignment-correct.
9415         pdump must restore objects to the same alignment as the C compiler
9416         assumes.  It really matters on SGIs.
9417         * lstream.c (aligned_sizeof_lstream): New.
9418         (sizeof_lstream): Use aligned_sizeof_lstream.
9419         (Lstream_new): Likewise.
9420         * opaque.c (aligned_sizeof_opaque): New.
9421         (sizeof_opaque): Use aligned_sizeof_opaque.
9422         (make_opaque): Likewise.
9423         * specifier.c (aligned_sizeof_specifier): New.
9424         (sizeof_specifier): Use aligned_sizeof_specifier.
9425         (make_specifier_internal): Likewise.
9426
9427 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9428
9429         * lstream.h (struct lstream): Use max_align_t for trailing data.
9430         * specifier.h (struct Lisp_Specifier): Likewise.
9431
9432 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9433
9434         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9435         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9436         (CCL_SUSPEND): Likewise.
9437         (CCL_INVALID_CMD): Likewise.
9438         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9439         (ccl_driver): Likewise.
9440         (CCL_WRITE_CHAR): Macro hygiene.
9441         (CCL_WRITE_STRING): Macro hygiene.
9442
9443 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9444
9445         Port "portable" dumper to SunOS 4 and HP-UX.
9446         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9447         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9448         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9449
9450 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9451
9452         * lisp.h (ALIGNOF): A better definition for C++.
9453
9454 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9455
9456         Macro hygiene.
9457         Fix printf warnings: int format, long int arg.
9458         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9459         (PUSH_FAILURE_POINT): Use correct printf formats.
9460         (POP_FAILURE_POINT): Use correct printf formats.  
9461         Use do {...} while (0)
9462
9463 2001-01-20  Martin Buchholz <martin@xemacs.org>
9464
9465         * XEmacs 21.2.42 "Poseidon" is released.
9466
9467 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9468
9469         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9470
9471 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9472
9473         De-kludgify FIXED_TYPE free list frobbing.
9474         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9475         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9476         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9477         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9478         * alloc.c (LRECORD_FREE_P): New.
9479         * alloc.c (MARK_LRECORD_AS_FREE): New.
9480         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9481         * alloc.c (STRUCT_FREE_P): Deleted.
9482         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9483         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9484         * alloc.c (STRING_CHARS_FREE_P): New.
9485         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9486         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9487         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9488         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9489         * alloc.c (resize_string): Use new definitions.
9490         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9491         * alloc.c (verify_string_chars_integrity): Use new definitions.
9492         * alloc.c (compact_string_chars): Use new definitions.
9493         * alloc.c: Update monster comments.
9494         * lrecord.h (lrecord_type): Add some new lrecord types for
9495         alloc.c's use.
9496
9497 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9498
9499         Improve alignment hackery.
9500         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9501         (max_align_t): Moved from opaque.h - general purpose.
9502         (ALIGN_PTR): Use size_t, not long.
9503         * opaque.h (max_align_t): Move to lisp.h.
9504
9505 2001-01-18  Norbert Koch  <nk@LF.net>
9506
9507         * gui.h: Fix and add prototypes to fix build problems.
9508
9509 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9510
9511         temacs is going away, so `dump-temacs' is now a bad name.
9512         * .dbxrc (dump-temacs): Rename to `dmp'.
9513         * .gdbinit (dump-temacs): Rename to `dmp'.
9514
9515 2001-01-17  Andy Piper  <andy@xemacs.org>
9516
9517         * glyphs.c (print_image_instance): comment to make martin happy.
9518
9519         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9520         change.
9521
9522         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9523         activation.
9524         (mswindows_tab_control_redisplay): warning suppression.
9525
9526         * glyphs-widget.c (widget_update): re-write to cope with updated
9527         items.
9528         (widget_instantiate): use new gui_item functions.
9529         (tab_control_update): deleted.
9530         (progress_gauge_update): deleted.
9531         (image_instantiator_progress_guage): take out update reference.
9532         (image_instantiator_tree_view): ditto.
9533         (image_instantiator_tab_control): ditto.
9534
9535         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9536         Right the new way.
9537         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9538         return whether anything was changed.
9539         (update_gui_item_keywords): as it sounds.
9540
9541         * gui.h: declare widget_gui_parse_item_keywords.
9542
9543         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9544         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9545
9546 2001-01-17  Martin Buchholz <martin@xemacs.org>
9547
9548         * XEmacs 21.2.41 "Polyhymnia" is released.
9549
9550 2001-01-16  Didier Verna  <didier@xemacs.org>
9551
9552         * glyphs.c (image_instantiate): don't use fallbacks when
9553         instantiating a face's background pixmap by inheritance.
9554
9555 2001-01-14  Mike Sperber <mike@xemacs.org>
9556
9557         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9558         Conditionalize accordingly.
9559
9560 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9561
9562         * dumper.c (pdump_file_get): Fix a compiler warning.
9563
9564 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9565
9566         Make Purify happy when pdumping.
9567         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9568         iniitalizing all bits of new lisp object memory.
9569         * symbols.c (Fmake_local_variable): Likewise.
9570         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9571         * symbols.c (Fdefvaralias): Likewise.
9572         * mule-charset.c (vars_of_mule_charset): Likewise.
9573
9574 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9575         Add the `-nd' flag when running pre-dump operations under the debugger.
9576         * .dbxrc (run-temacs): Add `-nd'.
9577         * .dbxrc (update-elc): Likewise.
9578         * .dbxrc (dump-temacs): Likewise.
9579         * .gdbinit (run-temacs): Likewise.
9580         * .gdbinit (check-temacs): Likewise.
9581         * .gdbinit (update-elc): Likewise.
9582         * .gdbinit (dump-temacs): Likewise.
9583
9584 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9585
9586         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9587         export OBJECT_MODE=64
9588         configure --pdump --use-union-type=no
9589         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9590         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9591
9592         * miscplay.c (sndcnv8U_2mono):
9593         Avoid two uses of `++' in the same expression.
9594         Suppresses a GCC warning.
9595
9596 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9597
9598         Make sure future compilers don't miscompile alloc.c.
9599         * alloc.c:
9600         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9601         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9602
9603 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9604
9605         * dumper.c: A little post-pdump-rename comment fixup.
9606
9607 2001-01-09  Jerry James  <james@eecs.ku.edu>
9608
9609         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9610
9611 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9612
9613         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9614         script:
9615         #!/bin/sh
9616         replace_symbol () {
9617           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9618         }
9619
9620         replace_symbol pdump_wire_lists pdump_weak_object_chains
9621         replace_symbol pdump_wire_list dump_add_weak_object_chain
9622
9623         replace_symbol pdump_wires pdump_root_objects
9624         replace_symbol pdump_wire dump_add_root_object
9625
9626         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9627         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9628
9629         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9630         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9631         replace_symbol dumpstructinfo pdump_root_struct_ptr
9632         replace_symbol dumpstruct dump_add_root_struct_ptr
9633
9634         replace_symbol dumpopaque dump_add_opaque
9635         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9636         replace_symbol dumpopaqueinfos pdump_opaques
9637         replace_symbol dumpopaqueinfo pdump_opaque
9638
9639         replace_symbol nb_structdump nb_root_struct_ptrs
9640         replace_symbol nb_opaquedump nb_opaques
9641
9642         replace_symbol align_table pdump_align_table
9643         replace_symbol dump_header pdump_header
9644
9645         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9646         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9647
9648
9649 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9650
9651         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9652         optimizing bytecount_to_charcount().
9653
9654 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9655
9656         * config.h.in:
9657         (HAVE_DLFCN_H): Removed.
9658         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9659
9660 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9661
9662         Portable dumper maintainability improvements.
9663         * alloc.c (staticpro):
9664         * alloc.c (staticpro_nodump):
9665         * alloc.c (garbage_collect_1):
9666         * alloc.c (reinit_alloc_once_early):
9667         * alloc.c (init_alloc_once_early):
9668         * alloc.c: Move dumper functions to alloc.c.
9669         * dumper.c (pdump_backtrace):
9670         * dumper.c (pdump_dump_structs):
9671         * dumper.c (pdump_dump_opaques):
9672         * dumper.c (pdump_dump_rtables):
9673         * dumper.c (pdump_dump_wired):
9674         * dumper.c (pdump):
9675         * dumper.c (pdump_load_check):
9676         * dumper.c (pdump_load_finish):
9677         * dumper.c (pdump_file_unmap):
9678         * dumper.c (pdump_file_get):
9679         * dumper.c (pdump_resource_free):
9680         * dumper.c (pdump_resource_get):
9681         * dumper.c (pdump_file_free):
9682         * dumper.c (pdump_file_try):
9683         * dumper.c (pdump_load):
9684         Remove fixed size limits on staticpro(), staticpro_nodump(),
9685         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9686         Remove custom code for dumping lrecord_implementations_table - use
9687         dumpopaque instead.
9688         Remove (most of the) custom code for dumping staticpros - dump it
9689         like any other dynarr.
9690
9691         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9692         * dumper.c: Moved functions from alloc.c.
9693         * alloc.c (dumpstruct): Moved to dumper.c.
9694         * alloc.c (dumpopaque): Likewise.
9695         * alloc.c (pdump_wire): Likewise.
9696         * alloc.c (pdump_wire_list): Likewise.
9697
9698         * lisp.h (Dynarr_sizeof): New.
9699         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9700         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9701         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9702
9703         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9704         * lisp.h (dumpopaque): ditto.
9705         * lisp.h (pdump_wire): ditto.
9706         * lisp.h (pdump_wire_list): ditto.
9707
9708 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9709
9710         * make-src-depend (PrintPatternDeps):
9711         Use `sort' to make output independent of perl version.
9712
9713 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9714
9715         Port to Netbsd 1.5.
9716         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9717         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9718
9719 2001-01-03  Didier Verna  <didier@xemacs.org>
9720
9721         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9722         that `focus_frame' is alive before thinking of calling
9723         `redisplay_redraw_cursor' on it.
9724
9725 2001-01-08  Martin Buchholz <martin@xemacs.org>
9726
9727         * XEmacs 21.2.40 is released.
9728
9729 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9730
9731         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9732
9733 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9734
9735         * alloc.c (dbg_valmask): Make const.
9736         * alloc.c (dbg_typemask): Make const.
9737         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9738         * alloc.c (dbg_valbits): Make const.
9739         * alloc.c (dbg_gctypebits): Make const.
9740
9741 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9742
9743         * redisplay-x.c (x_bevel_area):
9744         redisplay.h (struct rune):
9745         Typo fixes in comments.
9746
9747 2001-01-05  Andy Piper  <andy@xemacs.org>
9748
9749         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9750         adjustment.
9751
9752         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9753
9754 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9755
9756         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9757
9758         * mule-ccl.c (stack_idx_of_map_multiple):
9759         Non const global data must not be initialized!
9760         Found by MIYASHITA Hisashi.
9761
9762 2001-01-02  Andy Piper  <andy@xemacs.org>
9763
9764         * frame.c (change_frame_size): make sure frame size is always
9765         marked as changed.
9766
9767         * glyphs.c (image_instance_layout): minor code reuse.
9768
9769         * window.c (Fcurrent_window_configuration): revert previous
9770         change.
9771
9772 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9773
9774         * glyphs.h:
9775         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9776
9777 2000-12-31  Andy Piper  <andy@xemacs.org>
9778
9779         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9780         when widget gets unmapped.
9781
9782         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9783         function. Make sure widgets losing focus don't just drop it.
9784         (handle_focus_event_1): record the widget with focus.
9785
9786 2000-12-31  Andy Piper  <andy@xemacs.org>
9787
9788         * window.c (allocate_window): use
9789         make_image_instance_cache_hash_table.
9790         (make_dummy_parent): ditto.
9791         (Fset_window_configuration): ditto.
9792
9793         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9794
9795         * glyphs.c (process_image_string_instantiator): use
9796         INSTANTIATOR_TYPE.
9797         (get_image_instantiator_governing_domain): ditto.
9798         (normalize_image_instantiator): ditto.
9799         (instantiate_image_instantiator): ditto.
9800         (make_image_instance_1): ditto.
9801         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9802         (instantiator_eq_equal): new function for use with instance hash
9803         tables.
9804         (instantiator_eq_hash): ditto.
9805         (make_image_instance_cache_hash_table): create a suitable hash
9806         table for storing image instances.
9807
9808         * elhash.h (hash_table_weakness): new internal weakness type
9809         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9810         declare new functions.
9811
9812         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9813         another weakness type for glyphs.
9814         (make_standard_lisp_hash_table): new function split out from
9815         make_general_lisp_hash_table.
9816         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9817         (hash_table_instantiate): ditto.
9818         (Fmake_hash_table): ditto.
9819
9820 2000-12-31  Martin Buchholz <martin@xemacs.org>
9821
9822         * XEmacs 21.2.39 is released.
9823
9824 2000-12-29  Andy Piper  <andy@xemacs.org>
9825
9826         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9827
9828         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9829         the frame has changed so that we pick up geometry changes such as
9830         menubar visibility.
9831
9832 2000-12-28  Andy Piper  <andy@xemacs.org>
9833
9834         * lastfile.c (my_ebss): make a char array so we can pad the
9835         bss. Fixes cygwin unexec.
9836
9837         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9838
9839 2000-12-26  Andy Piper  <andy@xemacs.org>
9840
9841         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9842         comments and try and be more precise about a non-/SIGIO world.
9843         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9844         SIGIO.
9845
9846         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9847         we don't normalize to zero width or height.
9848
9849 2000-12-24  Andy Piper  <andy@xemacs.org>
9850
9851         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9852
9853 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9854
9855         * s/sco5.h: SCO 5 has pty support.
9856
9857 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9858
9859         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9860         input-method-xlib.c contains whole contents of input-method-xfs.c,
9861         so we can use input-method-xlib.c's code for USE_XFONTSET
9862         using #ifdefs.
9863         * input-method-xfs.c: removed.
9864
9865 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9866
9867         * file-coding.h (enum coding_category_type): reorder enumerators to
9868         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9869         (now one greater than largest real coding_category_type enumerator).
9870         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9871         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9872         Fcoding_category_list, Fset_coding_priority_list,
9873         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9874         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9875
9876 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9877
9878         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9879         * redisplay-output.c (redisplay_output_window): Clear top of window
9880         when face is changed.
9881         * redisplay-x.c (x_redraw_exposed_window): Call
9882         redisplay_clear_top_of_window.
9883         * redisplay.h: Publish redisplay_clear_top_of_window.
9884
9885 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9886
9887         * buffer.c (Fkill_buffer): Map over all devices.
9888         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9889         (list_windows): New function.
9890         (list_all_windows): Ditto.
9891         (Freplace_buffer_in_windows): Use them.
9892
9893 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9894
9895         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9896         (Fopen_database): Use `db_create' instead of `db_open'.
9897         (syms_of_database): Initialize Qqueue.
9898
9899 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9900
9901         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9902         buffer_local_face_property.
9903         * buffer.h (struct buffer): New member buffer_local_face_property.
9904         * window.c (Fset_window_buffer):  Mark window's face as changed
9905         when buffer has buffer local face.
9906         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9907         * objects.c (color_after_change): Set buffer_local_face_property
9908         when locale of face specifier is buffer.
9909         * objects.c (font_after_change): Ditto.
9910         * objects.c (face_boolean_after_change): Ditto.
9911         * glyphs.c (image_after_change): Ditto.
9912
9913 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9914
9915         * nt.c (mswindows_fstat): Report file permissions, volume serial
9916         number, etc. Code adapted from FSF Emacs 20.7.
9917
9918 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9919
9920         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9921         of stat when we don't have symbolic links, to make sure
9922         mswindows_stat is called on mswindows.
9923
9924 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9925
9926         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9927
9928 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9929
9930         * doprnt.c (emacs_doprnt_1): More printing fixes.
9931         Make printing of numbers compatible with libc and FSF Emacs.
9932         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9933         Use the system printf to do most of the hard work of formatting,
9934         instead of doprnt_1().
9935         Calculate memory to allocate for format string.
9936         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9937         (doprnt_1): Cleaner code and documentation.
9938
9939 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9940
9941         * Makefile.in.in: Use the loop variable to install headers.
9942
9943 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9944
9945         * window.c (Fsplit_window): Don't invalidate face cache.
9946
9947 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9948
9949         * minibuf.c (Fall_completions): Undo the previous change
9950         which removed checking elements start with space.
9951
9952 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9953
9954         * mule-canna.c: Didier suppression.
9955
9956 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9957
9958         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9959         (warning suppression).  Add English comment translations.
9960
9961 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9962
9963         * unexelfsgi.c (unexec): Better test for mmap failure.
9964
9965 2000-12-05  Martin Buchholz <martin@xemacs.org>
9966
9967         * XEmacs 21.2.38 is released.
9968
9969 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9970
9971         * redisplay.c (bar-cursor): Make a user variable.
9972
9973         * symsinit.h: Add init_postgresql_from_environment.
9974
9975 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9976
9977         * regex.c: Convert to clean C.
9978
9979 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9980
9981         * realpath.c:
9982         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9983         initialization.
9984         (sys_readlink): renamed to system_readlink to avoid conflict with
9985         the other sys_readlink.
9986
9987 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9988
9989         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9990
9991 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9992
9993         * postgresql.c (init_postgresql_from_environment): new function.
9994         (vars_of_postgresql): Move code initializing Lisp variables out and
9995         into init_postgresql_from_environment.
9996         emacs.c (main_1): Call init_postgresql_from_environment if and only
9997         if running a dumped XEmacs.
9998
9999 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10000
10001         * buffer.c: Make find-file-compare-truenames default to true on
10002         windows.
10003
10004         * realpath.c (win32_abs_start):
10005         (cygwin_readlink):
10006         (win32_readlink): New functions.
10007         (xrealpath): Return really real filenames on windows.
10008
10009         * fileio.c (Ffile_truename): Make file-truename work on windows.
10010
10011 2000-11-29  Didier Verna  <didier@xemacs.org>
10012
10013         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10014         * faces.c (update_face_cachel_data): use it.
10015         * faces.c (add_face_cachel): use it. Complete background pixmap
10016         frobbing in face cache if `update_face_cachel_data' has not done so.
10017
10018 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10019
10020         * search.c (string_match_1): Don't set last_thing_searched
10021         when search failed.
10022
10023 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10024
10025         * buffer.c: Include casetab.h
10026         (common_init_complex_vars_of_buffer): Use new case-table object.
10027         * buffer.h: Include casetab.h
10028         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10029         (DOWNCASE_TABLE_OF): Ditto.
10030         * bufslots.h: Remove char-tables and add case-table.
10031         * casetab.c: Include casetab.h
10032         (CASE_TABLE_P): Removed.
10033         (mark_case_table): New function.
10034         (allocate_case_table): New function.
10035         (Fcase_table_p): Use new case-table.
10036         (case_table_char): New function.
10037         (Fget_case_table): Ditto.
10038         (Fput_case_table): Ditto.
10039         (Fput_case_table_pair): Ditto.
10040         (Fcopy_case_table): Ditto.
10041         (Fcurrent_case_table): Return case-table.
10042         (Fstandard_case_table): Return case-table.
10043         (Fset_case_table): Fix doc-string.
10044         (set_case_table): Use case-table
10045         (syms_of_casetab): DEFSUBR new functions.
10046         (complex_vars_of_casetab): Set up standard case-table.
10047         * casetab.h: New file.
10048         * editfns.c: Include casetab.h
10049         (Fcompare_buffer_substrings): Use case-table.
10050         * inline.c: Include casetab.h
10051         * lisp.h: Remove bogus extern.
10052         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10053         * search.c: Include casetab.h
10054         (TRANSLATE_ASCII): Removed.
10055         (TRANSLATE): Unconditionally translate character.
10056         (looking_at_1): Use case-table.
10057         (string_match_1): Ditto.
10058         (fast_string_match): Ditto.
10059         (search_command): Ditto.
10060         (search_buffer): Separate boyer_moore.  Check whether
10061         boyer_moore is possible.
10062         (simple_search): New function.
10063         (boyer_moore): Separated from search_buffer. Translate char.
10064
10065 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10066
10067         * regex.c (RE_TR_ASCII): Removed.
10068         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10069         (PATFETCH): Call PATFETCH_RAW.
10070         (PATFETCH_RAW): Fetch Emchar.
10071         (PATUNFETCH): Decrement charptr.
10072         (GET_BUFFER_SPACE): Rename b to buf_end.
10073         (BUF_PUSH): Ditto.
10074         (BUF_PUSH_2): Ditto.
10075         (BUF_PUSH_3): Ditto.
10076         (EXTEND_BUFFER): Ditto.
10077         (SET_LIST_BIT): Ditto.
10078         (regex_compile): Ditto.  Translate non ASCII char.
10079         (compile_range): Ditto.
10080         (re_search_2): Ditto.
10081         (re_match_2_internal): Compare Emchar.
10082         (bcmp_translate): Ditto.
10083
10084 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10085
10086         * lisp.h (basic char/int typedefs):  comment improvement.
10087
10088 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10089
10090         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10091         unstomp inhibit_site_lisp.  Improve comments.
10092
10093 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10094
10095         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10096
10097 2000-11-28  Andy Piper  <andy@xemacs.org>
10098
10099         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10100         clipped display for windows in the gutter also.
10101         (redisplay_display_boxes_in_window_p): change semantics of return
10102         codes to be more intuitive.
10103
10104         * gutter.h: declare display_boxes_in_gutter_p.
10105
10106         * gutter.c (display_boxes_in_gutter_p): new function for
10107         redisplay.
10108
10109 2000-11-22  Andy Piper  <andy@xemacs.org>
10110
10111         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10112         autodetect domain.
10113
10114 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10115
10116         * callproc.c (Fold_call_process_internal):
10117         * gpm.c (Freceive_gpm_event):
10118         (tty_get_foreign_selection): Might be just warning supression.
10119         * fileio.c (Fwrite_region_internal):
10120         (Fset_visited_file_modtime):
10121         * keymap.c (event_matches_key_specifier_p):
10122         Initialize GCPROed variable.
10123
10124         * menubar-x.c (command_builder_find_menu_accelerator):
10125         Initialize before use.
10126
10127 2000-11-23  Andy Piper  <andy@xemacs.org>
10128
10129         * unexcw.c (unexec): make the resulting executable executable.
10130
10131 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10132
10133         * doc.c (get_doc_string):
10134         Use size_t, not int, for result of XSTRING_LENGTH.
10135
10136         * cmds.c (Fdelete_char):
10137         * cmds.c (Fpoint_at_eol):
10138         * cmds.c (Fself_insert_command):
10139         Use EMACS_INT, not int, for result of XINT.
10140         Someday, someone will want to insert more than 2**31 identical characters.
10141
10142         * cmds.c (Fdelete_char):
10143         * cmds.c (Fdelete_backward_char):
10144         * syntax.c (Fforward_word):
10145         * syntax.c (Fforward_comment):
10146         Make COUNT argument optional, for consistency with forward-char et al.
10147
10148 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10149
10150         * lisp.h:
10151         * print.c (long_to_string):
10152         Return a useful value: the pointer at end of data written.
10153
10154         * doprnt.c:
10155         Use `static const char * const' for constant strings.
10156         (union printf_arg): Delete `i', `ui' members.
10157         (get_doprnt_args):
10158         (emacs_doprnt_1):
10159         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10160         Do all printf-ing via the `l' specifier.
10161         Use EMACS_INT instead of int.
10162         Optimize.
10163
10164 2000-11-20  Didier Verna  <didier@xemacs.org>
10165
10166         * faces.c (update_face_cachel_data): don't frob the background
10167         pixmap when the window is being created. The face is needed but
10168         does not exist yet.
10169
10170 2000-11-20  Andy Piper  <andy@xemacs.org>
10171
10172         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10173         messing with a debug environment.
10174
10175 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10176
10177         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10178
10179 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10180
10181         * casetab.c (Fcase_table_p): Fix compile error and crash.
10182
10183 2000-11-18  Philip Aston  <philipa@mail.com>
10184
10185         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10186
10187 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10188
10189         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10190         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10191
10192 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10193
10194         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10195         * unexelf.c: Use HAVE_ELF_H.
10196         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10197         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10198         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10199         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10200         for testing.
10201         So this is an unexelfsgi.c from a different line of development.
10202
10203 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10204
10205         * regex.c (RE_TR_ASCII): New function.
10206         (RE_TRANSLATE): Call it.
10207
10208 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10209
10210         * buffer.h (TRT_TABLE_OF): Remove assert.
10211         (IN_TRT_TABLE_DOMAIN): Removed.
10212
10213 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10214
10215         * free-hook.c (log_gcpro):
10216         (show_gcprohist): Add support for GCPRO5.
10217
10218 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10219
10220         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10221
10222 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10223
10224         * symeval.h: Declare flush_all_buffer_local_cache.
10225
10226         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10227         (flush_buffer_local_cache): Added.
10228         (flush_all_buffer_local_cache): Added.
10229
10230         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10231
10232         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10233         (pdump_dump_data): Ditto.
10234         (pdump_reloc_one): Ditto.
10235         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10236         before dumping.
10237
10238
10239 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10240
10241         * buffer.c: Remove if 0'ed entry.
10242         * buffer.h: Rewrite TRT to use char-table.
10243         * bufslots.h: Remove mirror tables.
10244         * casetab.c: Remove mirror tables.
10245         (CASE_TABLE_P): New macro.
10246         (Fcase_table_p): Element of a case table is string or char-table.
10247         (make_mirror_trt_table): Removed.
10248         (set_case_table): Setup char-table from strings for backward
10249         compatibility.
10250         * dired.c (Fdirectory_files):
10251         * dired-msw.c: (mswindows_get_files):
10252         * lisp.h: Change prototype of re_pattern_buffer.
10253         * regex.c: (RE_TRANSLATE): New macro.
10254         (TRANSLATE_P): Ditto.
10255         Change translate to type RE_TRANSLATE_TYPE.
10256         * regex.h: Define RE_TRANSLATE_TYPE
10257         * search.c (TRANSLATE): New macro.
10258         (TRANSLATE_ASCII): New macro.
10259         Translate table is changed to Lisp_Object.
10260         (signal_failure): Inhibit return.
10261
10262 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10263
10264         * device-msw.c:
10265         * eldap.c:
10266         * event-Xt.c:
10267         * event-stream.c:
10268         * print.c:
10269         Do UNGCPRO before return.
10270
10271 2000-11-14  Martin Buchholz <martin@xemacs.org>
10272
10273         * XEmacs 21.2.37 is released.
10274
10275 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10276
10277         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10278         Add comments about discarded return value.
10279
10280 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10281
10282         * callint.c:
10283         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10284
10285 2000-10-27  Andy Piper  <andy@xemacs.org>
10286
10287         * gutter.c (Fset_default_gutter_position): default left and right
10288         gutters to visible.
10289         (calculate_gutter_size): calculate resonable heuristic for left
10290         and right gutter sizes.
10291         (specifier_vars_of_gutter): change left and right gutter sizes to
10292         autodetect.
10293         (calculate_gutter_size_from_display_lines): new function.
10294         (output_gutter): check for resizing on left and right gutters.
10295         (clear_gutter): don't special case top and left gutters.
10296         (specifier_vars_of_gutter): use new signature for
10297         set_specifier_caching.
10298
10299         * glyphs-x.c (x_redisplay_widget): spelling fix.
10300         * glyphs.c (specifier_vars_of_glyphs):
10301         * menubar.c (specifier_vars_of_menubar):
10302         * redisplay.c (specifier_vars_of_redisplay):
10303         * toolbar.c (specifier_vars_of_toolbar):
10304         * window.c (specifier_vars_of_window):
10305         * scrollbar.c (specifier_vars_of_scrollbar):
10306         (complex_vars_of_scrollbar): use new signature for
10307         set_specifier_caching.
10308
10309         * specifier.c (set_specifier_caching): include recompute flag.
10310         (recompute_one_cached_specifier_in_window): always recompute if
10311         flag set.
10312         (recompute_one_cached_specifier_in_frame): ditto.
10313
10314         * specifier.h (struct specifier_caching): add recompute flag.
10315
10316 2000-10-24  Andy Piper  <andy@xemacs.org>
10317
10318         * unexcw.c (copy_executable_and_dump_data_section): add new
10319         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10320         5.0 happy.
10321
10322 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10323
10324         * console-x.h (x_device): New member modifier_release_time.
10325         * event-Xt.c (x_handle_sticky_modifiers):
10326         Bound interval modifier keys are sticky.
10327         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10328         * events.h: extern it.
10329
10330 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10331
10332         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10333
10334 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10335
10336         * event-stream.c (execute_command_event): Preserve current_events
10337         and the like when event is misc-user-event.
10338         Inhibit quit during the call to maybe_echo_keys.
10339
10340 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10341
10342         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10343         symlink when buffer is killed.
10344         (inhibit_clash_detection): New variable.
10345
10346 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10347
10348         * console.c (Fset_input_method): Trigger redisplay on tty.
10349
10350 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10351
10352         * process.c (Fprocess_status): Revert to previous behavior:
10353         (process-status "nosuchprocess") ==> nil
10354
10355 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10356
10357         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10358         Work around another GCC 2.95.2 optimizer bug.
10359
10360 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10361
10362         * process.c (Fget_process): Use LIST_LOOP_2.
10363         (kill_buffer_processes): Use LIST_LOOP_2.
10364
10365         * minibuf.c (Fall_completions):
10366         Delete old non-functional code for FSF fourth argument.
10367
10368         * frame.c (frame_matches_frame_spec):
10369         Renamed from `frame_matches_frametype'.  Update all callers.
10370         (device_matches_device_spec):
10371         Renamed from 'device_matches_console_spec'.  Update all callers.
10372
10373         * doc.c (Fsubstitute_command_keys):
10374         Remove buffer overflow crash.  Small code cleanups.
10375
10376         * casetab.c (check_case_table): Simpler code.
10377
10378         * window.c (Freplace_buffer_in_windows):
10379         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10380         (and similar implementation) as Fdelete_windows_on.
10381         Update all callers.
10382
10383         * alloc.c (Fmake_list):
10384         * alloc.c (make_vector):
10385         * alloc.c (Fmake_vector):
10386         * alloc.c (make_bit_vector):
10387         * alloc.c (Fmake_bit_vector):
10388         * alloc.c (Fbit_vector):
10389         * alloc.c (Fmake_string):
10390         * alloc.c (Fpurecopy):
10391         * alloc.c (Fmemory_limit):
10392         * buffer.c:
10393         * buffer.c (Fget_buffer):
10394         * buffer.c (Fkill_buffer):
10395         * buffer.c (complex_vars_of_buffer):
10396         * bytecode.c (Fcompiled_function_stack_depth):
10397         * callint.c (Fprefix_numeric_value):
10398         * event-stream.c:
10399         * event-stream.c (Fread_key_sequence):
10400         * casetab.c:
10401         * casetab.c (Fcase_table_p):
10402         * casetab.c (check_case_table):
10403         * casetab.c (Fset_case_table):
10404         * casetab.c (Fset_standard_case_table):
10405         * chartab.c:
10406         * chartab.c (Fchar_table_type):
10407         * chartab.c (Freset_char_table):
10408         * chartab.c (Fget_char_table):
10409         * chartab.c (Fget_range_char_table):
10410         * chartab.c (Fput_char_table):
10411         * chartab.c (Fmap_char_table):
10412         * chartab.c (Fcategory_table_p):
10413         * chartab.c (Fcheck_category_at):
10414         * chartab.c (Fchar_in_category_p):
10415         * chartab.c (Fcategory_table):
10416         * chartab.c (Fcopy_category_table):
10417         * chartab.c (Fset_category_table):
10418         * chartab.c (Fcategory_designator_p):
10419         * chartab.c (Fcategory_table_value_p):
10420         * cmds.c (Fdelete_char):
10421         * cmds.c (Fdelete_backward_char):
10422         * cmds.c (Fself_insert_command):
10423         * cmds.c (Fself_insert_internal):
10424         * console.c (Fvalid_console_type_p):
10425         * console.c (Fcdfw_console):
10426         * console.c (Fconsole_type):
10427         * console.c (Fconsole_name):
10428         * console.c (Fconsole_device_list):
10429         * console.c (Fconsole_on_window_system_p):
10430         * data.c:
10431         * data.c (Feq):
10432         * data.c (Fold_eq):
10433         * data.c (Fsubr_interactive):
10434         * data.c (Fchar_to_int):
10435         * data.c (Fint_to_char):
10436         * data.c (Fsetcar):
10437         * data.c (Fsetcdr):
10438         * data.c (Fnumber_to_string):
10439         * data.c (Fstring_to_number):
10440         * data.c (Frem):
10441         * database.c (mark_database):
10442         * database.c (finalize_database):
10443         * database.c (Fdatabase_live_p):
10444         * database.c (Fdatabasep):
10445         * device-x.c (Fx_get_resource):
10446         * device.c (Fdfw_device):
10447         * dired.c:
10448         * dired.c (Ffile_name_completion):
10449         * dired.c (Ffile_name_all_completions):
10450         * dired.c (Fuser_name_completion):
10451         * dired.c (Fuser_name_completion_1):
10452         * dired.c (Fuser_name_all_completions):
10453         * doc.c (Fdocumentation):
10454         * doc.c (Fdocumentation_property):
10455         * doc.c (Fsubstitute_command_keys):
10456         * editfns.c:
10457         * editfns.c (Fchar_to_string):
10458         * editfns.c (Fstring_to_char):
10459         * editfns.c (Ftemp_directory):
10460         * editfns.c (Finsert_char):
10461         * editfns.c (Fbuffer_substring_no_properties):
10462         * editfns.c (Fnarrow_to_region):
10463         * editfns.c (Fchar_equal):
10464         * editfns.c (Fchar_Equal):
10465         * editfns.c (Ftranspose_regions):
10466         * emacs.c (Fdump_emacs):
10467         * eval.c (Fthrow):
10468         * eval.c (Fcommand_execute):
10469         * eval.c (Fautoload):
10470         * eval.c (Fbacktrace):
10471         * eval.c (Fbacktrace_frame):
10472         * events.c:
10473         * events.c (Fcopy_event):
10474         * events.c (Fcharacter_to_event):
10475         * events.c (Fevent_button):
10476         * events.c (Fevent_process):
10477         * extents.c:
10478         * extents.c (Fnext_extent_change):
10479         * extents.c (Fextent_property):
10480         * faces.c (Ffacep):
10481         * faces.c (Fmake_face):
10482         * file-coding.c:
10483         * file-coding.c (Fencode_shift_jis_char):
10484         * file-coding.c (Fencode_big5_char):
10485         * fileio.c (Ffile_name_directory):
10486         * fileio.c (Ffile_name_nondirectory):
10487         * fileio.c (Ffile_name_as_directory):
10488         * fileio.c (Fdirectory_file_name):
10489         * fileio.c (Ffile_truename):
10490         * fileio.c (Fsubstitute_in_file_name):
10491         * fileio.c (Ffile_modes):
10492         * fileio.c (Fset_file_modes):
10493         * fileio.c (Fset_default_file_modes):
10494         * fileio.c (Fverify_visited_file_modtime):
10495         * floatfns.c (Facos):
10496         * floatfns.c (Fasin):
10497         * floatfns.c (Fatan):
10498         * floatfns.c (Fcos):
10499         * floatfns.c (Fsin):
10500         * floatfns.c (Ftan):
10501         * floatfns.c (Fbessel_j0):
10502         * floatfns.c (Fbessel_j1):
10503         * floatfns.c (Fbessel_jn):
10504         * floatfns.c (Fbessel_y0):
10505         * floatfns.c (Fbessel_y1):
10506         * floatfns.c (Fbessel_yn):
10507         * floatfns.c (Ferf):
10508         * floatfns.c (Ferfc):
10509         * floatfns.c (Flog_gamma):
10510         * floatfns.c (Fexp):
10511         * floatfns.c (Fexpt):
10512         * floatfns.c (Flog):
10513         * floatfns.c (Flog10):
10514         * floatfns.c (Fsqrt):
10515         * floatfns.c (Fcube_root):
10516         * floatfns.c (Facosh):
10517         * floatfns.c (Fasinh):
10518         * floatfns.c (Fatanh):
10519         * floatfns.c (Fcosh):
10520         * floatfns.c (Fsinh):
10521         * floatfns.c (Ftanh):
10522         * floatfns.c (Fabs):
10523         * floatfns.c (Ffloat):
10524         * floatfns.c (Flogb):
10525         * floatfns.c (Fceiling):
10526         * floatfns.c (Ffloor):
10527         * floatfns.c (Fround):
10528         * floatfns.c (Ftruncate):
10529         * floatfns.c (Ffceiling):
10530         * floatfns.c (Fffloor):
10531         * floatfns.c (Ffround):
10532         * floatfns.c (Fftruncate):
10533         * fns.c (Fstring_equal):
10534         * fns.c (Fstring_lessp):
10535         * fns.c (concat2):
10536         * fns.c (concat3):
10537         * fns.c (vconcat2):
10538         * fns.c (vconcat3):
10539         * fns.c (Fsubstring):
10540         * fns.c (Fassoc):
10541         * fns.c (Fold_assoc):
10542         * fns.c (assoc_no_quit):
10543         * fns.c (Fassq):
10544         * fns.c (Fold_assq):
10545         * fns.c (assq_no_quit):
10546         * fns.c (Frassoc):
10547         * fns.c (Fold_rassoc):
10548         * fns.c (Frassq):
10549         * fns.c (Fold_rassq):
10550         * fns.c (rassq_no_quit):
10551         * fns.c (Fremassoc):
10552         * fns.c (remassoc_no_quit):
10553         * fns.c (Fremassq):
10554         * fns.c (remassq_no_quit):
10555         * fns.c (Fremrassoc):
10556         * fns.c (Fremrassq):
10557         * fns.c (remrassq_no_quit):
10558         * fns.c (Fsort):
10559         * fns.c (Fplist_get):
10560         * fns.c (Fplist_put):
10561         * fns.c (Fplist_remprop):
10562         * fns.c (Fplist_member):
10563         * fns.c (Flax_plist_get):
10564         * fns.c (Flax_plist_put):
10565         * fns.c (Flax_plist_remprop):
10566         * fns.c (Flax_plist_member):
10567         * fns.c (Fequal):
10568         * fns.c (Fold_equal):
10569         * fns.c (Frequire):
10570         * fns.c (Fbase64_encode_region):
10571         * fns.c (Fbase64_encode_string):
10572         * fns.c (Fbase64_decode_region):
10573         * frame.c:
10574         * frame.c (frame_matches_frame_spec):
10575         * frame.c (device_matches_device_spec):
10576         * frame.c (next_frame):
10577         * frame.c (previous_frame):
10578         * frame.c (Fnext_frame):
10579         * frame.c (Fprevious_frame):
10580         * frame.c (Fframe_property):
10581         * frame.c (Fset_frame_height):
10582         * frame.c (Fset_frame_size):
10583         * frame.h:
10584         * glyphs.c:
10585         * glyphs.c (if):
10586         * glyphs.c (decode_error_behavior_flag):
10587         * glyphs.c (Fmake_image_instance):
10588         * indent.c (Findent_to):
10589         * intl.c (Fignore_defer_gettext):
10590         * keymap.c (Fkeymapp):
10591         * keymap.c (Flookup_key):
10592         * lread.c:
10593         * lread.c (Fload_internal):
10594         * lread.c (Feval_buffer):
10595         * lread.c (Feval_region):
10596         * macros.c (Fexecute_kbd_macro):
10597         * marker.c (set_marker_internal):
10598         * marker.c (Fset_marker):
10599         * marker.c (set_marker_restricted):
10600         * marker.c (Fcopy_marker):
10601         * marker.c (noseeum_copy_marker):
10602         * menubar.c:
10603         * menubar.c (Fpopup_menu):
10604         * minibuf.c:
10605         * mule-charset.c (Fcharset_name):
10606         * mule-charset.c (Fchar_charset):
10607         * mule-charset.c (Fchar_octet):
10608         * mule-charset.c (Fsplit_char):
10609         * mule-wnnfns.c (Fwnn_open):
10610         * mule-wnnfns.c (Fwnn_dict_comment):
10611         * mule-wnnfns.c (Fwnn_quit_henkan):
10612         * mule-wnnfns.c (Fwnn_word_toroku):
10613         * mule-wnnfns.c (Fwnn_word_sakujo):
10614         * mule-wnnfns.c (Fwnn_word_use):
10615         * mule-wnnfns.c (Fwnn_hindo_set):
10616         * objects.c:
10617         * objects.c (Fmake_color_instance):
10618         * objects.c (Fmake_font_instance):
10619         * print.c (Fwrite_char):
10620         * process.c:
10621         * process.c (mark_process):
10622         * process.c (print_process):
10623         * process.c (get_process_from_usid):
10624         * process.c (Fprocessp):
10625         * process.c (Fprocess_live_p):
10626         * process.c (Fget_process):
10627         * process.c (Fget_buffer_process):
10628         * process.c (get_process):
10629         * process.c (Fprocess_id):
10630         * process.c (Fprocess_name):
10631         * process.c (Fprocess_command):
10632         * process.c (init_process_io_handles):
10633         * process.c (start_process_unwind):
10634         * process.c (Fstart_process_internal):
10635         * process.c (Fopen_multicast_group_internal):
10636         * process.c (Fset_process_window_size):
10637         * process.c (read_process_output):
10638         * process.c (send_process):
10639         * process.c (Fprocess_tty_name):
10640         * process.c (Fset_process_buffer):
10641         * process.c (Fprocess_buffer):
10642         * process.c (Fprocess_mark):
10643         * process.c (set_process_filter):
10644         * process.c (Fset_process_filter):
10645         * process.c (Fprocess_filter):
10646         * process.c (Fprocess_send_region):
10647         * process.c (Fprocess_send_string):
10648         * process.c (exec_sentinel):
10649         * process.c (Fset_process_sentinel):
10650         * process.c (Fprocess_sentinel):
10651         * process.c (status_notify):
10652         * process.c (Fprocess_status):
10653         * process.c (Fprocess_exit_status):
10654         * process.c (process_send_signal):
10655         * process.c (Fprocess_send_eof):
10656         * process.c (deactivate_process):
10657         * process.c (remove_process):
10658         * process.c (Fdelete_process):
10659         * process.c (kill_buffer_processes):
10660         * process.c (Fprocess_kill_without_query):
10661         * process.c (Fprocess_kill_without_query_p):
10662         * rangetab.c:
10663         * rangetab.c (Fget_range_table):
10664         * rangetab.c (Fput_range_table):
10665         * rangetab.c (Fremove_range_table):
10666         * rangetab.c (Fclear_range_table):
10667         * search.c:
10668         * search.c (Fskip_chars_forward):
10669         * search.c (Fskip_chars_backward):
10670         * search.c (Fskip_syntax_forward):
10671         * search.c (Fskip_syntax_backward):
10672         * search.c (search_command):
10673         * search.c (Freplace_match):
10674         * search.c (Fregexp_quote):
10675         * select.c (Fown_selection_internal):
10676         * select.c (Fselection_owner_p):
10677         * select.c (Fselection_exists_p):
10678         * select.c (Fget_selection_internal):
10679         * specifier.c:
10680         * symbols.c:
10681         * symbols.c (Fintern):
10682         * symbols.c (Fintern_soft):
10683         * symbols.c (Funintern):
10684         * symbols.c (Fapropos_internal):
10685         * symbols.c (Fset_default):
10686         * syntax.c:
10687         * syntax.c (Fsyntax_table_p):
10688         * syntax.c (Fcopy_syntax_table):
10689         * syntax.c (Fset_syntax_table):
10690         * syntax.c (Fchar_syntax):
10691         * syntax.c (syntax_match):
10692         * syntax.c (Fmatching_paren):
10693         * syntax.c (Fforward_word):
10694         * syntax.c (scan_lists):
10695         * syntax.c (Fscan_lists):
10696         * syntax.c (Fscan_sexps):
10697         * syntax.c (Fparse_partial_sexp):
10698         * toolbar.c (Fcheck_toolbar_button_syntax):
10699         * tooltalk.doc:
10700         * window.c:
10701         * window.c (Fwindowp):
10702         * window.c (Fwindow_live_p):
10703         * window.c (Fwindow_point):
10704         * window.c (Fdelete_window):
10705         * window.c (Fnext_window):
10706         * window.c (Fprevious_window):
10707         * window.c (Fother_window):
10708         * window.c (window_loop):
10709         * window.c (Fget_lru_window):
10710         * window.c (Fsplit_window):
10711         * window.c (Fenlarge_window):
10712         * window.c (Fenlarge_window_pixels):
10713         * window.c (Fshrink_window):
10714         * window.c (Fshrink_window_pixels):
10715         * window.c (change_window_height):
10716         * window.c (Fwindow_configuration_p):
10717         * window.c (Fcurrent_window_configuration):
10718         * window.h:
10719         * casefiddle.c (casify_object):
10720         * casefiddle.c (Fupcase):
10721         * casefiddle.c (Fdowncase):
10722         * casefiddle.c (Fcapitalize):
10723         * casefiddle.c (Fupcase_initials):
10724         * casefiddle.c (casify_region_internal):
10725         * casefiddle.c (casify_region):
10726         * casefiddle.c (Fupcase_region):
10727         * casefiddle.c (Fdowncase_region):
10728         * casefiddle.c (Fcapitalize_region):
10729         * casefiddle.c (Fupcase_initials_region):
10730         * casefiddle.c (Fupcase_word):
10731         * casefiddle.c (Fdowncase_word):
10732         * casefiddle.c (Fcapitalize_word):
10733         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10734         Replace 0 with '\0' when working with bytes.
10735         Replace initial "(" with "\(" in docstrings.
10736
10737 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10738
10739         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10740
10741         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10742
10743 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10744
10745         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10746
10747 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10748
10749         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10750         correctly.
10751
10752 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10753
10754         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10755         (inhibit_auto_save_session): New variable.
10756         (vars_of_fileio): Declare and initialize them.
10757         * fileio.c (Fdo_auto_save): Don't create session file if
10758         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10759
10760 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10761
10762         * sgiplay.c (play_internal): C++ compilability.
10763         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10764         * callproc.c (Fold_call_process_internal):
10765         Remove unused vars `env', `first'.
10766         * scrollbar.c (update_scrollbar_instance):
10767         #### unused var `current_window'.
10768         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10769         etc. within #ifdef NOT_YET.
10770         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10771         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10772         * specifier.c (specifier_instance):
10773         #### unused var `tag'.
10774         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10775
10776 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10777
10778         * fns.c (Fbutlast):
10779         * fns.c (list_sort):
10780         * fns.c (Ffillarray):
10781         * fns.c (bytecode_nconc2):
10782         * fns.c (Fnconc):
10783         * fns.c (mapcar1):
10784         * fns.c (Fmapconcat):
10785         Be pedantically 64-bit correct.  For the time when someone will
10786         want to have a list with length > 2**32.
10787
10788         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10789         Work around MIPSpro compiler bug.
10790
10791         * process-unix.c (unix_kill_child_process): Add snarky comment.
10792         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10793
10794         * config.h.in: Oops, _getpt ==> _getpty
10795
10796 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10797
10798         * config.h.in:
10799         * regex.c:
10800         Use void*, not char*, as return type of alloca().
10801
10802         * alloc.c (free_marker): Side effect inside assert expression!
10803
10804 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10805
10806         * mule-charset.c (Fset_charset_ccl_program): To check
10807         if the given ccl program is valid, use setup_ccl_program()
10808         instead of CHECK_VECTOR().
10809         (Fmake_charset): Likewise.
10810
10811 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10812
10813         * faces.c (get_extent_fragment_face_cache_index):
10814         Fix cachel.merged_faces memory leak.
10815
10816 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10817
10818         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10819         Reset MSB of octets obtained by DECODE_SJIS
10820         because of the incompatibility with Emacs.
10821         (ccl_driver)<CCL_ENCODE_SJIS>:
10822         Set MSB of octets before passing them to
10823         ENCODE_SJIS because of the incompatibility
10824         with Emacs.
10825
10826 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10827
10828         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10829         (DECLARE_LRECORD): Undo the last change.
10830         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10831
10832 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10833
10834         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10835         the implementation to lrecord_implementations_table.
10836
10837 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10838
10839         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10840         initial value of `lrecord_type_##c_name' and
10841         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10842         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10843         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10844         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10845         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10846
10847 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10848
10849         * miscplay.c (sndcnv8S_2mono):
10850         (sndcnv2monounsigned):
10851         (sndcnvULaw_2linear):
10852         (sndcnv16swap):
10853         Remove implementation-defined behavior.
10854
10855 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10856
10857         * input-method-xlib.c: Warning suppression.
10858
10859 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10860
10861         * mule-ccl.c: Sync up with Emacs 21.0.90.
10862         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10863         Do nothing.
10864         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10865         Likewise.
10866         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10867         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10868         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10869         leading char belongs to official 2-dimensional charset.
10870         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10871         write the given character as is.  Otherwise,
10872         if it is a multibyte char, convert it by
10873         non_ascii_set_charptr_emchar, then write it.
10874         (CCL_WRITE_STRING): Likewise.
10875         (ccl_get_compiled_code): New function.
10876         (setup_ccl_program): When ccl_prog is invalid,
10877         return -1.
10878         (Fregister_code_conversion_map): New function.
10879         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10880
10881         * mule-ccl.h: Sync up with Emacs 21.0.90.
10882         (Fregister_ccl_program): export it.
10883
10884         * redisplay-msw.c (separate_textual_runs):
10885         If ccl program is not valid, don't do ccl conversion.
10886
10887         * redisplay-x.c (separate_textual_runs): Ditto.
10888
10889         * file-coding.c (Fmake_coding_system):
10890         When type is ccl and value is vector, register it
10891         with a proper symbol.  And checks whether the
10892         given ccl program is valid.
10893         (mule_decode): When calling ccl_driver, if src indicates
10894         NULL pointer, set an empty string instead.
10895         (mule_encode): Likewise.
10896
10897 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10898
10899         The following large batch of changes gets us back to a state of
10900         C++ compilability.  Extbyte is now a char, which means that
10901         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10902
10903         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10904
10905         * sound.c (Fplay_sound): Type correctness.
10906
10907         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10908         (x_get_window_property): Type correctness.
10909         (receive_incremental_selection): unsigned char ==> Extbyte
10910         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10911         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10912         (Fx_store_cutbuffer_internal): Type correctness.
10913
10914         * process-unix.c (try_to_initialize_subtty): Type correctness.
10915
10916         * objects-x.c (x_print_color_instance): Type correctness.
10917         (x_print_font_instance): Type correctness.
10918         (x_list_fonts): SExtbyte ==> Extbyte.
10919         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10920         (x_find_charset_font): SExtbyte ==> Extbyte.
10921         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10922         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10923         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10924         Use bufbyte_strcmp.
10925
10926         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10927         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10928         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10929         (BYTE_C0_P): Use bit ops for char-signedness safety.
10930         (BYTE_C1_P): Use bit ops for char-signedness safety.
10931         (CHARSET_BY_LEADING_BYTE):
10932         (CHARSET_BY_ATTRIBUTES):
10933         Always use inline function.
10934         Use type_checking_assert.
10935         Hide chlook.
10936
10937         * mule-charset.c (non_ascii_charptr_copy_char):
10938         Modify to work with both ASCII and non-ASCII characters.
10939         Improve docs and variable names.
10940         Replace over-clever fall-through switch with a simple loop.
10941         (Lstream_get_emchar_1):
10942         Replace over-clever fall-through switch with a simple loop.
10943
10944         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10945         Warning suppression.
10946
10947         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10948         the return value of Lstream_getc, which could be EOF as well.
10949
10950         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10951
10952         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10953         APIs can be used on Extbytes without casts.  Risky!
10954         (SExtbyte): Remove.
10955         (UExtbyte): Remove.
10956
10957         * input-method-xlib.c (XIM_init_device):
10958         Use Xlib.h instead of IntrinsicP.h.
10959         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10960         which will break in X11R7.
10961         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10962         to call XRegisterIMInstantiateCallback with correct types.
10963
10964         * gui-x.c (button_item_to_widget_value): Type correctness.
10965
10966         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10967
10968         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10969         (xbm_instantiate_1): Type correctness.
10970         (BUILD_GLYPH_INST):  Type correctness.
10971
10972         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10973
10974         * file-coding.c:
10975         (decode_coding_sjis):
10976         (decode_coding_big5):
10977         (decode_coding_ucs4):
10978         (decode_coding_utf8):
10979         (decode_coding_iso2022):
10980         (decode_coding_no_conversion):
10981         Make all decoding functions take an Extbyte * arg.
10982         (encode_coding_sjis):
10983         (encode_coding_big5):
10984         (encode_coding_ucs4):
10985         (encode_coding_utf8):
10986         (encode_coding_iso2022):
10987         (encode_coding_no_conversion):
10988         Make all encoding functions take a Bufbyte * arg.
10989         Use size_t instead of unsigned int for memory sizes.
10990         Only cast to unsigned char whenever dereferencing Extbyte *.
10991
10992         * doc.c (unparesseuxify_doc_string): Type correctness.
10993
10994         * console-x.c (split_up_display_spec):
10995         Rewrite without using details of internal string representation.
10996         (x_semi_canonicalize_device_connection): Type correctness.
10997
10998         * config.h.in:
10999         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11000         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11001         (HAVE_XFREE386): Removed.
11002
11003         * buffer.h (DEC_CHARPTR): `const' correctness.
11004         (bufbyte_strcmp): New.
11005         (bufbyte_memcmp): New.
11006
11007         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11008
11009         * buffer.h (XCHAR_OR_CHAR_INT):
11010         Always use inline function.
11011         Remove redundant type checking assert() - XINT will abort quite nicely.
11012
11013 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11014
11015         * search.c (Freplace_match): Set newtext to an empty string.
11016
11017 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11018
11019         * s/decosf1-3.h: Remove #include of stropts.h
11020         * s/ptx.h: Remove #include of stropts.h
11021         * s/usg5-4.h: Remove #include of stropts.h
11022         * sysproc.h:
11023         * config.h.in:
11024         Use stropts.h, not sys/stropts.h.
11025         Use strtio.h, not sys/strtio.h.
11026
11027 2000-10-04  Martin Buchholz <martin@xemacs.org>
11028
11029         * XEmacs 21.2.36 is released.
11030
11031 2000-09-21  Andy Piper  <andy@xemacs.org>
11032
11033         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11034         changes still involve copying the widget tree.
11035         (update_widget_face): make sure a change is register in the widget
11036         tree. Call update_tab_widget_face appropriately.
11037         (update_tab_widget_face): ditto.
11038         (x_tab_control_redisplay): make sure non-structural changes still
11039         involve copying the widget tree.
11040
11041 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11042
11043         * lread.c (locate_file): Check the path element is non-nil.
11044
11045 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11046
11047         * lisp.h: Warning suppression for SCO compilers.
11048
11049         * redisplay-tty.c (reset_tty_modes): Fix crash.
11050         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11051
11052 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11053
11054         Big signal/process handling overhaul.  Bugs fixed:
11055         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11056         M-x comint-kill-subjob should work for both values nil and t of
11057         process-connection-type. It was broken on most platforms.
11058         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11059         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11060         * process-unix.c: Signal/Process handling overhaul.
11061         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11062         (allocate_pty): Use all available modern methods of allocating
11063         ptys, falling back to old style BSD allocation as a last resort.
11064         Use allegedly more secure Unix98 pty allocation by default.
11065         (allocate_pty_the_old_fashioned_way): New. the last resort.
11066         (unix_create_process): Push ptem, ldterm, ttcompat where
11067         available.  Autoconfiscate.
11068         (try_to_initialize_subtty): New.
11069         (unix_kill_child_process): Proper signal handling for ptys on most
11070         platforms, using special knowledge of AIX, BSD, etc...
11071         (unix_create_process): Always disconnect_controlling_terminal() for
11072         subprocesses, whether using ptys or not.
11073         * process.h: Remove old getpt-dependent PTY code.
11074         * process.c (Fprocess_send_signal): New, obvious generic function.
11075         (decode_signal): New.
11076         (Finterrupt_process):
11077         (Fkill_process):
11078         (Fquit_process):
11079         (Fstop_process):
11080         (Fcontinue_process):
11081         (Fsignal_process): Use decode_signal.
11082         (process_send_signal):
11083         Many docstring corrections.
11084         Allow any signal to be sent to a process object.
11085         * config.h.in: Add symbols for big signal/process overhaul.
11086         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11087         * sysproc.h: Include process-related headers, where available:
11088         sys/stropts.h sys/strtio.h pty.h libutil.h
11089         * s/irix4-0.h:
11090         * s/irix5-0.h:
11091         * s/cygwin32.h:
11092         * s/gnu.h:
11093         * s/linux.h:
11094         * s/hpux.h:
11095         * s/aix3-1.h:
11096         Remove old S&M pty stuff.
11097         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11098         * systty.h: Simplify cpp hackery, improve comments.
11099         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11100
11101         * editfns.c (Fformat_time_string):
11102         Be a little more paranoid with the return value of ctime.
11103
11104         * fileio.c (check_executable):
11105         (check_writable):
11106         Use symbolic constants X_OK, W_OK.
11107
11108         * console-x.c (split_up_display_spec): Fix a warning.
11109
11110 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11111
11112         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11113         * ntproc.c (sys_spawnve): make_string ==> build_string
11114         Small clarity improvements.
11115
11116 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11117
11118         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11119
11120         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11121
11122         * config.h.in (HAVE_STRCASECMP): Remove.
11123
11124 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11125
11126         * redisplay-output.c (redisplay_output_pixmap):
11127         Cleaner and possibly more 64-bit correct code.
11128
11129 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11130
11131         * dumper.c (pdump_load_finish): move restoration of
11132         `noninteractive1' to emacs.c (main_1).
11133         * emacs.c (main_1): protect LISP-visible command-line flags
11134         from pdump_load().
11135
11136 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11137
11138         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11139         DUMP_TARGET instead of literal program names.
11140
11141 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11142
11143         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11144
11145 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11146
11147         * *: Spelling mega-patch
11148
11149 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11150
11151         * fns.c (bad_bad_turtle):
11152         Delete "Eek!" comment, since we fixed the bug to which it refers.
11153
11154 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11155
11156         * alloca.c: Replace REGISTER with register.
11157
11158 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11159
11160         * file-coding.c (ucs_to_char): Use countof.
11161
11162 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11163
11164         * file-coding.c: (ucs_to_char):
11165         (complex_vars_of_file_coding):
11166         Use countof instead of sizeof.
11167         Use CHECK_NATNUM instead of CHECK_INT.
11168
11169         * sysdep.c (strcasecmp): Remove.
11170         * device-x.c (ascii_strcasecmp): New.
11171         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11172         Avoid using non-standard non-portable strcasecmp.
11173
11174 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11175
11176         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11177         * font-lock.c: remove reference to emacsfns.h.
11178         * search.c: small doc improvement.
11179         * event-Xt.c: correct file names in comments.
11180         * console-x.h Correct file names in comments.
11181         * frame.c: Correct file names in comments.
11182         * event-stream.c: remove Energize from comments.
11183
11184 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11185
11186         * symeval.h (DEFERROR_STANDARD):
11187         (DEFERROR):
11188         (DEFSYMBOL):
11189         (DEFSYMBOL_NO_DUMP):
11190         (DEFSYMBOL_MULTIWORD_PREDICATE):
11191         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11192         (DEFKEYWORD):
11193         The construct &##name is not sensible C.
11194         Fixes compilation errors with Unixware native compiler.
11195
11196 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11197
11198         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11199         (next_frame_internal): Removed.  We now just have next_frame.
11200         (next_frame):
11201         Write a simpler and cleaner one-pass algorithm.
11202         Remove called_from_delete_device arg and #ifdefed-out code.
11203         (previous_frame):
11204         Renamed from prev_frame.  Update callers.
11205         Cleaned up to have an analogous implementation to next_frame.
11206         (other_visible_frames_internal): Remove the
11207         called_from_delete_device bogus arg, and hence, remove this
11208         function.  Just use other_visible_frames().
11209
11210         * window.c (Fnext_window):
11211         Prettify docstring.
11212         Since next_frame() is guaranteed to return a frame, remove check
11213         for nil inserted in previous patch.
11214         (Fprevious_window):
11215         Prettify docstring.
11216         Make code look more like Fnext_window.
11217         (window_loop):
11218         Respect the `console' arg when iterating through windows.
11219         Fixes bug: (get-buffer-window buffer t device) not respecting
11220         the `device' arg.
11221         This function needs more work, as others have pointed out.
11222
11223         * frame.h: Rename prev_frame to previous_frame.
11224         device_matches_console_spec no longer takes a `frame' arg.
11225
11226         * s/gnu.h:
11227         * s/linux.h:
11228         * s/hpux.h:
11229         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11230         From "Golubev I. N." <gin@mo.msk.ru>.
11231
11232         * make-src-depend: Fix typo.
11233
11234 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11235
11236         * window.c (Fnext_window):
11237         next_frame() might return nil, not a frame.
11238         Fixes this crash:
11239         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11240
11241         * frame.c (next_frame_internal):
11242         We've passed a frame if we've passed its device.
11243         Fixes this crash:
11244         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11245 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11246
11247 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11248
11249         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11250         Allow option to suppress accelerators in menu/dialog items.
11251         (populate_or_checksum_helper): Pass dialog title through above.
11252
11253 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11254
11255         * event-msw.c (mswindows_key_to_emacs_keysym):
11256         Add "pause" key, fix "menu" key.
11257
11258 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11259
11260         * eval.c (reinit_vars_of_eval):
11261         Increase max_lisp_eval_depth to 1000,
11262         required for thai-xtis.el to byte-compile under some circumstances.
11263
11264 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11265
11266         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11267         From Kenichi Handa.
11268
11269 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11270
11271         * make-src-depend: Make the generated Makefiles smaller.
11272
11273         * s/hpux.h (SETUP_SLAVE_PTY):
11274         Provide a %d in the format string for the errno argument.
11275
11276         * editfns.c (Ftemp_directory):
11277         Warning fix.
11278         Avoid buffer overrun on very long file name.
11279
11280         * input-method-xlib.c (XIM_init_device):
11281         6th parameter of XRegisterIMInstantiateCallback has different
11282         pointer types on different OSes, so simply cast to (void *).
11283
11284         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11285
11286         * sysdll.c (dll_open):
11287         shl_load will hang hard if passed a NULL filename.
11288         Simply return NULL for compatibility with dlopen.
11289         * sysdll.c: Conform to XEmacs coding standards.
11290
11291         * sysdep.c (get_pty_max_bytes):
11292         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11293
11294 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11295
11296         * tooltalk.c: Add #include <syssignal.h>
11297
11298 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11299
11300         * s/hpux.h: Don't use undefined function sigunblock().
11301
11302 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11303
11304         * config.h.in: Add HAVE_BALLOON_HELP.
11305         * emacs.c: Use HAVE_BALLOON_HELP.
11306         * Makefile.in.in (x_objs):
11307         Make Balloon Help conditional on finding shape.h.
11308
11309 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11310
11311         * syntax.c (regex_emacs_buffer_p): New variable.
11312         * syntax.h (regex_emacs_buffer_p): extern.
11313         * search.c (looking_at_1):
11314         (string_match_1):
11315         (fast_string_match):
11316         (search_buffer): Set regex_emacs_buffer_p.
11317         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11318         when before_dot, at_dot, after_dot.
11319
11320 2000-08-23  Andy Piper  <andy@xemacs.org>
11321
11322         * gui-x.c (popup_selection_callback): Only set action_occurred
11323         when we really have an image instance.
11324         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11325
11326 2000-08-23  Andy Piper  <andy@xemacs.org>
11327
11328         * gui-msw.c (mswindows_handle_gui_wm_command): set
11329         action_occurred.
11330         * gui-x.c (popup_selection_callback): ditto.
11331
11332         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11333         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11334         (struct Lisp_Image_Instance): add action_occurred flag.
11335
11336         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11337         (image_instance_changed): ditto.
11338         (reset_frame_subwindow_instance_cache): only unmap windows - do
11339         not remove them from the cache also.
11340
11341         * glyphs-widget.c (tab_control_update): better debug.
11342         (progress_gauge_update): ditto.
11343         (layout_update): ditto.
11344         (layout_instantiate): ditto.
11345         (tab_control_order_only_changed): cope with null pending items.
11346
11347         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11348         debug. Force selection of an item when an action occurred. Cope
11349         with null pending_items.
11350         (mswindows_progress_gauge_redisplay): better debug.
11351         * glyphs-x.c (x_tab_control_redisplay): ditto.
11352
11353         * redisplay.c (redisplay_frame): reset the frame cache if the
11354         frame is garbaged.
11355
11356         * window.c (Fset_window_configuration): potentially re-enable
11357         frame cache reset.
11358         (window_unmap_subwindows): need to finalize instances here since
11359         it is only used in mark_window_as_deleted.
11360
11361 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11362
11363         * nas.c (SndOpenDataForReading):
11364         nas.c (WaveOpenDataForReading):
11365         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11366         Somehow escaped from the 2000-08-14 patch.
11367
11368 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11369
11370         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11371         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11372
11373 2000-08-21  Andy Piper  <andy@xemacs.org>
11374
11375         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11376         window if it is not already displayed.
11377
11378         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11379         it is not already displayed.
11380
11381         * window.c (Fset_window_configuration): don't reset the frame
11382         cache.
11383
11384         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11385         instances from the frame cache if we are actually finalizing them.
11386         (reset_frame_subwindow_instance_cache): reset frame cache only
11387         after unmapping everything.
11388         (map_subwindow): set displayed flag after mapping.
11389
11390 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11391
11392         * data.c (indirect_function):
11393         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11394
11395         * eval.c (function_argcount):
11396         Use original function when signaling errors.
11397
11398 2000-08-18  Andy Piper  <andy@xemacs.org>
11399
11400         * frame.c (delete_frame_internal): use new
11401         free_frame_subwindow_instances name.
11402
11403         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11404         (add_tab_item): make return type correct.
11405         (mswindows_tab_control_instantiate): assert index of tab.
11406         (mswindows_tab_control_redisplay): Re-code to use
11407         gui_item_equal_sans_selected and gui_item_list_find_selected.
11408
11409         * glyphs-widget.c (tab_control_update): Correct comment.
11410
11411         * window.c (window_unmap_subwindows): use new
11412         unmap_subwindow_instance_cache_mapper.
11413         (window_unmap_subwindows_cache_mapper): deleted.
11414         (Fset_window_configuration): comparisons should now be with
11415         EQ. Preserve the subwindow instance cache across configuration
11416         changes.
11417         (allocate_window): ditto.
11418         (make_dummy_parent): ditto.
11419
11420         * glyphs.c (free_frame_subwindow_instances): rename from
11421         free_frame_subwindow_instance_cache. finalize all instances rather
11422         than just those in the display cache.
11423         (finalize_all_subwindow_instances): walk windows unmapping and
11424         finalizing subwindows.
11425         (unmap_subwindow_instance_cache_mapper): moved from
11426         window.c. Allow finalization as well as unmapping.
11427
11428         * gui.c (gui_item_list_find_selected): new function.
11429
11430         * gui.h (gui_item_list_find_selected): declare.
11431
11432         * glyphs-x.c (x_tab_control_redisplay): pick tab
11433         explicitly. Re-code to use gui_item_equal_sans_selected and
11434         gui_item_list_find_selected.
11435
11436         * glyphs-x.h: add lwlib-utils.h
11437
11438         * buffer.c (Frecord_buffer): undo previous change.
11439
11440 2000-08-09  Vin Shelton  <acs@xemacs.org>
11441
11442         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11443         possible.  Create temporary files more securely.  The patch was
11444         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11445         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11446         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11447         for details.
11448
11449 2000-08-07  Ben Wing  <ben@xemacs.org>
11450
11451         * getloadavg.c: remove duplicate (and windows-breaking)
11452         includes of fcntl.h and sys/file.h.
11453
11454         * nt.c: remove duplicate getloadavg() definition.
11455
11456         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11457         encodings.
11458
11459 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11460
11461         * eval.c (function_argcount): If function needs to be autoloaded
11462         actually use the loaded definition.
11463         GCPRO function.
11464
11465 2000-08-05  Ben Wing  <ben@xemacs.org>
11466
11467         * getloadavg.c: add prototype for getloadavg().  remove
11468         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11469         of the code).  remove duplicate header includes.
11470
11471         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11472
11473         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11474         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11475         useful load average.
11476
11477         * alloc.c (reinit_alloc_once_early): removed references to
11478         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11479         the lisp vars are the only things referencing the malloc_sbrk_*
11480         vars, and they were already if 0'd out.  these vars only exist
11481         in the older malloc.c, which is basically unused, and they're
11482         only for informational purposes.
11483
11484         * m\*.h: removed useless VIRT_ADDR_VARIES.
11485
11486         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11487
11488 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11489
11490         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11491         color if the image is a mono pixmap.
11492
11493 2000-07-30  Ben Wing  <ben@xemacs.org>
11494
11495         * Makefile.in.in (release):
11496         Remove stray @.
11497
11498         * buffer.c (directory_is_current_directory):
11499         * dired-msw.c (mswindows_get_files):
11500         * dired.c:
11501         * dired.c (Fdirectory_files):
11502         * dired.c (file_name_completion_stat):
11503         * dired.c (Ffile_attributes):
11504         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11505         preprocessor tricks, to avoid problems on some machines
11506         (e.g. SCO).
11507
11508         * callproc.c (egetenv): GC docs.
11509
11510         * console-msw.h:
11511         * console-msw.h (struct mswindows_dialog_id):
11512         * lrecord.h (lrecord_type):
11513         New object for use with MSW dialogs.
11514
11515         * console.h (struct console_methods):
11516         New enable/disable frame methods, for proper modal dialogs.
11517
11518         * device-msw.c (msprinter_default_printer): Fix to follow
11519         proper Mule conventions.
11520
11521         * device-msw.c:
11522         * device-msw.c (signal_open_printer_error):
11523         * device-msw.c (msprinter_init_device):
11524         * device-msw.c (ensure_not_printing):
11525         * device-msw.c (plist_get_margin):
11526         * device-msw.c (Fmsprinter_select_settings):
11527         * device-msw.c (finalize_devmode):
11528         * device-msw.c (Fmsprinter_settings_despecialize):
11529         * device-msw.c (signal_enum_priner_error):
11530         * extents.c (decode_extent):
11531         * extents.c (decode_map_extents_flags):
11532         * extents.c (decode_extent_at_flag):
11533         * extents.c (Fextent_at):
11534         * extents.c (Fextents_at):
11535         * extents.c (symbol_to_glyph_layout):
11536         [[[[2]]]] Use structured errors.
11537
11538         * dialog-msw.c:
11539         * dialog-msw.c (mswindows_is_dialog_msg):
11540         * dialog-msw.c (mark_mswindows_dialog_id):
11541         * dialog-msw.c (dialog_proc):
11542         * dialog-msw.c (handle_question_dialog_box):
11543         * dialog-msw.c (syms_of_dialog_mswindows):
11544         Define new object to clean up marking; use it as a dialog identifier.
11545         Call new delete-dialog-box-hook.
11546
11547         * dialog-x.c (dbox_selection_callback):
11548         * dialog-x.c (dbox_descriptor_to_widget_value):
11549         * dialog-x.c (x_make_dialog_box_internal):
11550         Call new delete-dialog-box-hook.
11551         Return an id.
11552
11553         * dialog.c:
11554         * dialog.c (syms_of_dialog):
11555         * dialog.c (vars_of_dialog):
11556         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11557
11558         * eval.c:
11559         * eval.c (signal_call_debugger):
11560         when noninteractive, output stack traces on the console instead
11561         of in a (never-seen) buffer.
11562
11563         * eval.c (signal_type_error):
11564         * eval.c (invalid_argument_2):
11565         * lisp.h:
11566         new funs for use w/structured errors.
11567
11568         * event-Xt.c:
11569         * event-Xt.c (x_to_emacs_keysym):
11570         * event-Xt.c (describe_event):
11571         * event-Xt.c (emacs_Xt_event_handler):
11572         * event-Xt.c (vars_of_event_Xt):
11573         * event-msw.c:
11574         * event-msw.c (mswindows_wnd_proc):
11575         * event-msw.c (vars_of_event_mswindows):
11576         rename {x,mswindows}-debug-events to debug-{}-events for
11577         consistency with other debug-foo variables.
11578
11579         * event-stream.c:
11580         document next-event more clearly.
11581
11582         * fileio.c (Ffile_name_directory):
11583         * fileio.c (Ffile_name_nondirectory):
11584         * fileio.c (Funhandled_file_name_directory):
11585         * fileio.c (file_name_as_directory):
11586         * fileio.c (Ffile_name_as_directory):
11587         * fileio.c (directory_file_name):
11588         * fileio.c (Fdirectory_file_name):
11589         * fileio.c (Fmake_temp_name):
11590         * fileio.c (Ffile_truename):
11591         * fileio.c (Fsubstitute_in_file_name):
11592         * fileio.c (expand_and_dir_to_file):
11593         * fileio.c (barf_or_query_if_file_exists):
11594         * fileio.c (check_executable):
11595         * fileio.c (Ffile_exists_p):
11596         * fileio.c (Ffile_writable_p):
11597         * fileio.c (Ffile_directory_p):
11598         * fileio.c (Ffile_regular_p):
11599         * fileio.c (Ffile_modes):
11600         * fileio.c (Ffile_newer_than_file_p):
11601         * fileio.c (Fverify_visited_file_modtime):
11602         * fileio.c (Fset_visited_file_modtime):
11603         * fileio.c (auto_save_1):
11604         (1). (2).
11605         fix up gcpro's.
11606
11607         * frame-msw.c:
11608         * frame-msw.c (mswindows_init_frame_1):
11609         * frame-msw.c (mswindows_enable_frame):
11610         * frame-msw.c (error_frame_unsizable):
11611         * frame-msw.c (msprinter_init_frame_1):
11612         * frame-msw.c (msprinter_init_frame_3):
11613         * frame-msw.c (console_type_create_frame_mswindows):
11614         (2).
11615         implement new enable/disable frame methods.
11616
11617         * frame-x.c:
11618         * frame-x.c (x_enable_frame):
11619         * frame-x.c (console_type_create_frame_x):
11620         implement new enable/disable frame methods.
11621
11622         * frame.c:
11623         * frame.c (Fdisable_frame):
11624         * frame.c (syms_of_frame):
11625         * frame.h (struct frame):
11626         implement new enable/disable frame methods/functions.
11627
11628         * general-slots.h:
11629         add initial-focus.
11630
11631         * glyphs-msw.c (mswindows_widget_instantiate):
11632         comment that initial-focus should be implemented.
11633
11634         * glyphs-widget.c:
11635         * glyphs-widget.c (check_valid_instantiator):
11636         * glyphs-widget.c (check_valid_orientation):
11637         * glyphs-widget.c (check_valid_tab_orientation):
11638         * glyphs-widget.c (check_valid_justification):
11639         * glyphs-widget.c (check_valid_border):
11640         * glyphs-widget.c (check_valid_callback):
11641         * glyphs-widget.c (check_valid_int_or_function):
11642         * glyphs-widget.c (check_valid_string_or_vector):
11643         * glyphs-widget.c (check_valid_item_list_1):
11644         * glyphs-widget.c (widget_validate):
11645         * glyphs-widget.c (combo_box_validate):
11646         * glyphs-widget.c (widget_instantiate):
11647         * glyphs-widget.c (syms_of_glyphs_widget):
11648         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11649         * glyphs-widget.c (image_instantiator_combo_box):
11650         * glyphs-widget.c (image_instantiator_scrollbar):
11651         * glyphs-widget.c (image_instantiator_tab_control):
11652         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11653         (2).
11654         support (unimplemented) keyword initial-focus.
11655         reindent long macros.
11656
11657         * glyphs-x.c (x_redisplay_widget):
11658         * glyphs-x.c (x_button_instantiate):
11659         * glyphs-x.c (x_button_redisplay):
11660         * glyphs-x.c (x_progress_gauge_instantiate):
11661         * glyphs-x.c (x_edit_field_instantiate):
11662         * glyphs-x.c (x_combo_box_instantiate):
11663         * glyphs-x.c (x_tab_control_instantiate):
11664         * glyphs-x.c (x_label_instantiate):
11665         * gui-x.c:
11666         * gui-x.c (button_item_to_widget_value):
11667         * gui-x.c (gui_items_to_widget_values_1):
11668         * gui-x.c (gui_item_children_to_widget_values):
11669         * gui-x.c (gui_items_to_widget_values):
11670         * gui-x.h:
11671         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11672         add new flag to gui-parsing routines to indicate whether
11673         accelerator specs should be supported.
11674
11675         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11676
11677         * glyphs.h (struct Lisp_Image_Instance):
11678         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11679         add initial-focus flag.
11680
11681         * gui.c:
11682         * gui.c (syms_of_gui):
11683         * gui.c (vars_of_gui):
11684         clean up menu-no-selection-hook.
11685
11686         * gui.h:
11687         support delete-dialog-box-hook.
11688
11689         * lread.c (Fload_internal):
11690         * lread.c (locate_file_in_directory_mapper):
11691         (1).
11692
11693         * lrecord.h:
11694         * lrecord.h (struct toolbar_button):
11695         * lrecord.h (syms_of_toolbar):
11696         document how to create a new object.
11697
11698         * menubar-msw.c (mswindows_char_is_accelerator):
11699         may be called on frames w/o menus.
11700
11701         * menubar.c (vars_of_menubar):
11702         clean up :filter docs.
11703
11704         * nt.c (readdir):
11705         * ntproc.c:
11706         (1).
11707
11708         * process-nt.c:
11709         * process-nt.c (validate_signal_number):
11710         * process-nt.c (signal_cannot_launch):
11711         * process-nt.c (nt_create_process):
11712         * process-nt.c (nt_send_process):
11713         * process-nt.c (nt_kill_child_process):
11714         * process-nt.c (nt_open_network_stream):
11715         * process-nt.c (syms_of_process_nt):
11716         (2).
11717         delete quote-handling.  call new lisp code that does it better.
11718
11719         * process-unix.c (connect_to_file_descriptor):
11720         * process-unix.c (allocate_pty):
11721         * process-unix.c (unix_send_process):
11722         * process-unix.c (unix_kill_child_process):
11723         * process-unix.c (unix_open_network_stream):
11724         * process-unix.c (unix_open_multicast_group):
11725         (1). (2).
11726
11727         * process.c:
11728         * process.c (Fstart_process_internal):
11729         (2).  need to canonicalize process path even if absolute.
11730
11731         * select-msw.c (symbol_to_ms_cf):
11732         * select-msw.c (ms_cf_to_symbol):
11733         * select-msw.c (cf_is_autofreed):
11734         * select-msw.c (mswindows_destroy_selection):
11735         * select.c:
11736         * select.c (syms_of_select):
11737         * select.h:
11738         support dibv5, fix bugs. (from Mike Alexander)
11739
11740         * select.c (Fget_selection_internal):
11741         * select.c (select_convert_out):
11742
11743         * sysdep.c:
11744         * sysdep.c (xemacs_stat):
11745         renamed.
11746
11747         * sysdep.c (mkdir):
11748         * sysdep.c (rmdir):
11749         but keep original stat() here because we provide encapsulation
11750         around these funs.
11751
11752         * sysfile.h:
11753         * sysfile.h (fstat):
11754         remove stat garbage.
11755
11756         * syswindows.h:
11757         fix X/MSW conflict.
11758         don't include tchar.h.  it's inappropriate because it makes
11759         compile-time distinctions when we want runtime distinctions.
11760         (we provide our own tchar replacements)
11761
11762         * toolbar.c:
11763         use default object printer for toolbar-button.
11764
11765         * unexcw.c:
11766         make sure we don't encapsulate.
11767
11768         * window.c (vars_of_window):
11769         emphasize that temp-buffer-show-hook is obsolete.
11770
11771 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11772
11773         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11774         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11775
11776         * events.c (Fevent_timestamp_lessp):
11777         Not 64-bit clean.  Use EMACS_INT, not int.
11778
11779 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11780
11781         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11782         unsigned int and changed the last enum to
11783         lrecord_type_last_built_in_type.
11784         (lrecord_implementations_table): changed prototype to know how
11785         long the array is supposed to be.
11786         (lrecord_type_count): new unsigned int to keep track of the
11787         current number of lisp lrecord types.
11788         (DEFINE_EXTERNAL_LRECORD):
11789         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11790         dynamic-modules to declare new lisp types. They are the same
11791         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11792         int for each new type, and increment lrecord_type_count by 1.
11793
11794         * alloc.c (lrecord_implementations_table): Changed to reference
11795         lrecord_type_last_built_in_type for the size of the array.
11796         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11797
11798 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11799
11800         * glyphs.h (check_valid_item_list): Renamed from
11801         check_valid_item_list_1.
11802
11803 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11804
11805         * select.c (Qselect_coerce): New.
11806         * select.c (Vselection_coercion_alist): New.
11807         * select.c (syms_of_select): Declare.
11808         * select.c (get-selection-internal): Use it.
11809         Use the new select-coerce functionality.
11810
11811         * select.c (select_coerce): New.
11812         * select.h (select_coerce): Declare.
11813         New function to coerce one type of data into another.
11814
11815 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11816
11817         * callproc.c (Fcall_process_internal):
11818         (Fcall_process_internal):
11819         * process-unix.c (unix_create_process):
11820         Save and restore the value of errno, so that error messages are accurate.
11821
11822 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11823
11824         * elhash.c (print_hash_table):
11825         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11826         Prettify docstrings and indentation.
11827
11828 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11829
11830         * window.c (Fwindow_pixel_edges): Subtract frame border and
11831         gutter size.
11832
11833 2000-07-31  Andy Piper  <andy@xemacs.org>
11834
11835         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11836         will acknowledge the change.
11837
11838         * glyphs.h: declare tab_control_order_only_changed.
11839
11840         * glyphs-x.c (x_tab_control_redisplay): use
11841         tab_control_order_only_changed.
11842
11843         * glyphs-widget.c (tab_control_order_only_changed): new function.
11844
11845         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11846         tab_control_order_only_changed.
11847
11848         * gui.c (gui_item_equal_sans_selected): new function.
11849         (gui_item_equal): use it.
11850
11851         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11852         :properties in favor of :items..
11853
11854         * glyphs-widget.c (check_valid_item_list): rename from
11855         check_valid_item_list_1.
11856         (check_valid_item_list_1): renamed.
11857         (combo_box_validate): deprecate :properties in favor of :items.
11858         (widget_instantiate): ditto.
11859         (tab_control_update): ditto.
11860         (image_instantiator_combo_box): ditto.
11861         (image_instantiator_tree_view): ditto.
11862         (image_instantiator_tab_control): ditto.
11863         (layout_post_instantiate): remove dead code.
11864
11865         * print.c (debug_print_no_newline): only write to debugger if in
11866         WIN32_NATIVE.
11867
11868         * elhash.c (Fmake_hash_table): update doc string.
11869
11870         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11871         messages whilst in GC. This at least stops XEmacs crashing but has
11872         the potential for wierd behaviour.
11873
11874 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11875
11876         * config.h.in:
11877         Make existence of s&m files optional.
11878
11879         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11880         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11881         * s/gnu.h: Remove HAVE_GETLOADAVG.
11882         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11883         * s/sol2.h: Remove HAVE_GETLOADAVG.
11884         * lisp.h: Remove getloadavg() declaration.
11885         * fns.c:
11886         Include <sys/loadavg.h> if available.
11887         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11888         * config.h.in:  Group together getloadavg()-related macros.
11889         Use only configure-time tests to detect getloadavg().
11890
11891 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11892
11893         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11894
11895 2000-07-25  Andy Piper  <andy@xemacs.org>
11896
11897         * syswindows.h: add tchar.h for native builds.
11898
11899         * frame.c (syms_of_frame): remove set-glyph-image.
11900
11901         * general-slots.h: add Qset_glyph_image.
11902
11903         * glyphs-widget.c (layout_update): add domain arg to
11904         set-glyph-image.
11905         (syms_of_glyphs_widget): remove set-glyph-image.
11906
11907 2000-07-23  Ben Wing  <ben@xemacs.org>
11908
11909         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11910         Vpopup_frame_list.
11911
11912 2000-07-22  Andy Piper  <andy@xemacs.org>
11913
11914         * symsinit.h: add syms_of_win32().
11915
11916         * gui-msw.c (syms_of_gui_mswindows): remove
11917         Fmswindows_shell_execute.
11918         (Fmswindows_shell_execute): moved to win32.c.
11919
11920         * emacs.c (main_1): add syms_of_win32 ().
11921
11922         * win32.c (init_potentially_nonexistent_functions): rewrite in
11923         compiler-friendly terms.
11924         (Fmswindows_shell_execute): move here from gui-msw.c.
11925         (syms_of_win32): new.
11926
11927         * device-msw.c (Fmswindows_printer_list): clean up args to
11928         EnumPrinters.
11929         Don't include tchar under cygwin or mingw.
11930         (msprinter_default_printer): make cygwin-friendly.
11931
11932 2000-07-21  Andy Piper  <andy@xemacs.org>
11933
11934         * glyphs-widget.c (image_instantiator_tree_view): use tab
11935         control's update function.
11936         (layout_property): new function. Retrieve items.
11937
11938         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11939         function. Re-populate the tree view from the pending items.
11940
11941         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11942         is designated the parent if the domain is an image instance. This
11943         is needed so that dirtiness can be cascade up the hierarchy and
11944         thus for layout children to be redisplayed correctly.
11945         (allocate_image_instance): rename glyph -> parent.
11946
11947         * redisplay.h: change redisplay_output_layout signature.
11948
11949         * redisplay-msw.c (mswindows_output_display_block): use domain
11950         arg.
11951
11952         * redisplay-x.c (x_output_display_block): use domain arg.
11953
11954 2000-07-10  Andy Piper  <andy@xemacs.org>
11955
11956         * window.c (Fset_window_configuration): add comment.
11957
11958         * redisplay-output.c (compare_runes):
11959         (redisplay_output_subwindow): redisplay rather than update subwindow.
11960         (redisplay_output_layout): ditto.
11961
11962         * redisplay-msw.c (mswindows_frame_output_end):
11963         (mswindows_frame_output_end): make defer window pos optional.
11964
11965         * lisp.h: add Flast.
11966
11967         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11968         normalize method. Change update method to be for changed
11969         instantiators. Add redisplay method. Change signature of layout
11970         method.
11971         (struct Lisp_Image_Instance): add instantiator.
11972         (IMAGE_INSTANCE_INSTANTIATOR): new.
11973         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11974         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11975         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11976
11977         * glyphs.c:
11978         (find_instantiator_differences): new function.
11979         (Fset_instantiator_property): new convenience function.
11980         (check_image_instance_structure): strictly check for vector
11981         instantiators.
11982         (normalize_image_instantiator): make non-static.
11983         (instantiate_image_instantiator): pass on dest_mask and use new
11984         signatures for image_instance_layout and friends.
11985         (mark_image_instance): mark the instantiator. Mark the subwindow
11986         face not the widget face.
11987         (image_instance_equal): add instantiator.
11988         (image_instance_hash): ditto.
11989         (allocate_image_instance): ditto.
11990         (Fset_image_instance_property): removed.
11991         (Fimage_instance_file_name): ditto.
11992         (Fcolorize_image_instance): ditto.
11993         (image_instance_layout): add offsets to be set.
11994         (update_image_instance): new function. update an image instance
11995         from its changed instantiator.
11996         (inherit_normalize): add dest_mask.
11997         (xbm_normalize): ditto.
11998         (xface_normalize): ditto.
11999         (xpm_normalize): ditto.
12000         (text_update): set_property -> update.
12001         (image_instantiate): use the glyph identity as a hash key, not the
12002         instantiator.
12003         (glyph_width): use new image_instance_layout signature.
12004         (glyph_ascent): ditto.
12005         (glyph_descent): ditto.
12006         (glyph_height): ditto.
12007         (glyph_query_geometry): ressurrect.
12008         (glyph_layout): ditto.
12009         (redisplay_subwindow): update -> redisplay.
12010         (syms_of_glyphs): add Fset_instantiator_property.
12011         (image_instantiator_format_create): set_property -> update.
12012
12013         * glyphs-x.c:
12014         (autodetect_normalize): add dest_maks to signature.
12015         (x_redisplay_subwindow): update -> redisplay.
12016         (x_redisplay_widget): ditto.
12017         (x_button_redisplay): ditto.
12018         (x_progress_gauge_redisplay): ditto.
12019         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12020         stacking order.
12021         (console_type_create_glyphs_x): update -> redisplay.
12022         (image_instantiator_format_create_glyphs_x): ditto.
12023
12024         * glyphs-widget.c:
12025         (check_valid_instantiator): disallow glyphs in the instantiator,
12026         they must now be vectors.
12027         (check_valid_instantiator_list): ditto.
12028         (glyph_instantiator_to_glyph): use internal symbol rather than
12029         intern.
12030         (widget_update): renamed from widget_set_property. Call cascaded
12031         update methods.
12032         (redisplay_widget): renamed from update_widget.
12033         (widget_layout): image_instance_layout now takes position as well
12034         as size.
12035         (widget_normalize): ditto.
12036         (widget_instantiate): ditto.
12037         (tab_control_query_geometry) ditto.:
12038         (tab_control_update): renamed from tab_control_set_property.
12039         (progress_gauge_update): set_property -> update.
12040         (layout_normalize): rewrite so that child instantiators are
12041         normalized also.
12042         (layout_update): new function. Create glyphs from the normalized
12043         children and cope with any other layout keywords. We do not
12044         instantiate children here that will be take care of by
12045         redisplay_output_layout.
12046         (layout_instantiate): call layout_update and not much else.
12047         (layout_post_instantiate): not sure whether this is needed
12048         anymore.
12049         (layout_query_geometry): query glyph geometry rather than
12050         image_instance geometry.
12051         (layout_layout): set offsets from pass in parameters. Use glyph
12052         geometry and layout functions rather than image instance ones.
12053         (native_layout_layout): ditto.
12054         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12055         (image_instantiator_widget): set_property -> update.
12056         (image_instantiator_buttons): ditto.
12057         (image_instantiator_progress_guage): ditto.
12058         (image_instantiator_tab_control): ditto.
12059         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12060         (image_instantiator_layout): add update method.
12061
12062         * glyphs-msw.c (bmp_normalize):
12063         (mswindows_resource_normalize): add dest_mask so that it can be
12064         proprogated by layout_normalize.
12065         (begin_defer_window_pos): make optional because it may not be the
12066         right thing to do and it introduces differences with X.
12067         (mswindows_unmap_subwindow): ditto.
12068         (mswindows_map_subwindow): ditto.
12069         (mswindows_redisplay_subwindow): renamed from
12070         mswindows_update_subwindow.
12071         (mswindows_redisplay_widget): ditto.
12072         (mswindows_button_redisplay): renamed from
12073         mswindows_button_update. Update is now what the instantiation
12074         function does for a changed instantiator.
12075         (mswindows_progress_gauge_instantiate): set the progress value
12076         here if appropriate.
12077         (mswindows_tab_control_redisplay): cope with re-ordering of the
12078         members of the tab widget by simply selecting the new top
12079         widget. This makes things appear ok if you click on a tab.
12080         (mswindows_combo_box_instantiate): image_instance_layout now takes
12081         position as well as size.
12082         (mswindows_progress_gauge_redisplay): renamed from
12083         mswindows_progress_gauge_update.
12084         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12085         (image_instantiator_format_create_glyphs_mswindows): ditto.
12086
12087         * glyphs-eimage.c (jpeg_normalize):
12088         (gif_normalize):
12089         (png_normalize):
12090         (tiff_normalize): add dest_mask so that it can be proprogated by
12091         layout_normalize.
12092
12093         * elhash.c:
12094         (print_hash_table):
12095         (hash_table_weakness_validate):
12096         (decode_hash_table_weakness):
12097         (Fhash_table_weakness):
12098         (Fhash_table_type):
12099         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12100
12101         * console.h (struct console_methods): move update_* to
12102         redisplay_*.
12103
12104 2000-07-20  Ben Wing  <ben@xemacs.org>
12105
12106         * *.[ch] (XSETOBJ): remove unused middle argument.
12107         lisp-disunion.h: correct wrap_object() to one argument.
12108
12109 2000-07-15  Ben Wing  <ben@xemacs.org>
12110
12111         * s/cygwin32.h:
12112         * s/cygwin32.h (CYGWIN_CONV_PATH):
12113         Add missing logb prototype for v1.1.
12114         Use post-b20 names and alias to pre-b20 names when pre-b20.
12115
12116         * s/windowsnt.h: [5].
12117
12118 2000-07-15  Ben Wing  <ben@xemacs.org>
12119
12120         * Makefile.in.in (x_objs):
12121         * Makefile.in.in (sheap_objs):
12122         * Makefile.in.in (objs):
12123         added win32.o, cosmetic cleanups.
12124
12125         * alloc.c (Fmake_byte_code):
12126         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12127         etc. macros which declare their own args now.
12128
12129         * alloc.c (syms_of_alloc):
12130         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12131
12132         * buffer.c:
12133         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12134
12135         * buffer.c (Fget_file_buffer):
12136         Fixed GCPRO problem.
12137
12138         * buffer.c (get_truename_buffer):
12139         Fixed comment about GC checking.
12140
12141         * buffer.c (syms_of_buffer):
12142         Undeclared those dedicated frame funs.
12143         [2].
12144
12145         * buffer.h:
12146         Define convenience macros for internal/external conversions.
12147         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12148         and Qenvironment_variable_encoding for cleaner code.
12149
12150         * bufslots.h:
12151         Remove dedicated-frame; in lisp.
12152
12153         * bytecode.c (funcall_compiled_function):
12154         [1].
12155
12156         * bytecode.c (syms_of_bytecode):
12157         [2].
12158
12159         * console-msw.c:
12160         * console-msw.c (mswindows_show_console): Rewrote.
12161
12162         * console-msw.c (Fmswindows_debugging_output): New.
12163         Sends to OutputDebugString (special MSWin debugger interface).
12164
12165         * console-msw.c (Fmswindows_message_box):
12166         Fixed stupid bugs so it works when called from kill-emacs.
12167
12168         * console-msw.c (syms_of_console_mswindows):
12169         Declare Fmswindows_debugging_output.
12170
12171         * console-msw.h:
12172         New MSWin prototypes.
12173
12174         * console-msw.h (struct mswindows_frame):
12175         New entry last-click-mods for improved button-modifier support.
12176
12177         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12178         New struct entry `popup' with corresponding accessor.
12179
12180         * console-x.c:
12181         * console-x.c (split_up_display_spec):
12182         * console-x.c (get_display_arg_connection):
12183         * console-x.c (x_semi_canonicalize_console_connection):
12184         * console-x.c (x_canonicalize_device_connection):
12185         [[[6]]]: Change char to more specific type.
12186         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12187
12188         * console-x.c (x_semi_canonicalize_console_connection):
12189         * console-x.c (x_canonicalize_device_connection):
12190         [[[9]]]: Fix up error signalling to use new structured error system.
12191
12192         * console-x.h:
12193         [[[4]]]: Define codesys aliases:
12194         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12195         Qx_color_name_encoding, Qx_display_name_encoding.
12196
12197         * console.h (struct console_methods):
12198         New method make_dialog_box_internal supersedes older
12199         popup_dialog_box method.
12200
12201         * data.c:
12202         Define many new errors, part of new structured errors.
12203
12204         * data.c (init_errors_once_early):
12205         * data.c (syms_of_data):
12206         [2].
12207
12208         * device-msw.c (mswindows_init_device):
12209         [[[5]]]: Cleanup to support NT 3.51.
12210
12211         * device-msw.c (decode_devmode): Cleanup.
12212
12213         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12214         * device-msw.c (mswindows_handle_print_dialog_box):
12215         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12216         * device-msw.c (syms_of_device_mswindows):
12217         Delete the dialog box primitives recently introduced by Kirill and
12218         instead interface to general dialog box interface.
12219
12220         * device-x.c:
12221         * device-x.c (compute_x_app_name):
12222         * device-x.c (x_init_device):
12223         * device-x.c (Fx_valid_keysym_name_p):
12224         * device-x.c (Fx_set_font_path):
12225         [6].
12226         [7].
12227
12228         * device.h (wrap_device): New.
12229         First of its kind; meant to replace XSETDEVICE.
12230
12231         * dialog-msw.c: Many file-dialog symbols.
12232
12233         * dialog-msw.c (mswindows_register_popup_frame): New.
12234         * dialog-msw.c (mswindows_is_dialog_msg): New.
12235         For supporting kbd traversal in dialog boxes.
12236
12237         * dialog-msw.c (dialog_proc):
12238         Support hitting ESC in dialogs.
12239
12240         * dialog-msw.c (struct):
12241         Common dialog box errors.
12242
12243         * dialog-msw.c (handle_file_dialog_box): New.
12244         Add file dialog code.
12245
12246         * dialog-msw.c (handle_question_dialog_box):
12247         Redo existing code to support new question dialog syntax.
12248
12249         * dialog-msw.c (console_type_create_dialog_mswindows):
12250         We support new dialog console method.
12251
12252         * dialog-msw.c (syms_of_dialog_mswindows):
12253         * dialog-msw.c (vars_of_dialog_mswindows):
12254         New file dialog symbols, vars.
12255
12256         * dialog-x.c:
12257         * dialog-x.c (maybe_run_dbox_text_callback):
12258         * dialog-x.c (dbox_descriptor_to_widget_value):
12259         * dialog-x.c (x_make_dialog_box_internal):
12260         * dialog-x.c (console_type_create_dialog_x):
12261         Mule-ize entire file.
12262         Redo to support question dialog syntax.
12263         [6].
12264
12265         * dialog.c:
12266         * dialog.c (Fmake_dialog_box_internal):
12267         * dialog.c (syms_of_dialog):
12268         Kill old popup-dialog-box, replace with new primitive.
12269         Just call device method or signal error.
12270
12271         * eldap.c (Fldap_open):
12272         * eldap.c (Fldap_search_basic):
12273         * eldap.c (Fldap_add):
12274         * eldap.c (Fldap_modify):
12275         [1].
12276         [7].
12277
12278         * emacs.c:
12279         * emacs.c (make_arg_list_1):
12280         * emacs.c (make_arg_list):
12281         Mule-ize call to dll_init().
12282         [6].
12283         [8].
12284
12285         * emacs.c (make_argc_argv):
12286         * emacs.c (free_argc_argv):
12287         * emacs.c (init_cmdargs):
12288         * emacs.c (main_1):
12289         * emacs.c (Fkill_emacs):
12290         * emacs.c (Fdump_emacs):
12291         Update comments about what can be used in syms_* etc.
12292         Call init_win32() when necessary.
12293         Fix up MS Win dialog box in kill-buffer to actually work right.
12294         [7].
12295
12296         * eval.c:
12297         * eval.c (For):
12298         * eval.c (Fand):
12299         * eval.c (Fprogn):
12300         * eval.c (Fprog1):
12301         * eval.c (Fprog2):
12302         * eval.c (FletX):
12303         * eval.c (Flet):
12304         * eval.c (condition_case_3):
12305         * eval.c (Feval):
12306         * eval.c (function_argcount):
12307         * eval.c (funcall_lambda):
12308         [1].
12309
12310         * eval.c (type_error): New.
12311         * eval.c (maybe_type_error): New.
12312         * eval.c (continuable_type_error): New.
12313         * eval.c (maybe_continuable_type_error): New.
12314         * eval.c (type_error_with_frob): New.
12315         * eval.c (maybe_type_error_with_frob): New.
12316         * eval.c (continuable_type_error_with_frob): New.
12317         * eval.c (maybe_continuable_type_error_with_frob): New.
12318         New functions for use with structured errors.
12319
12320         * event-Xt.c:
12321         * event-Xt.c (x_event_to_emacs_event):
12322         Buttons are now modifiers too.
12323
12324         * event-Xt.c (emacs_Xt_current_event_timestamp):
12325         Implement new event method.
12326         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12327
12328         * event-msw.c:
12329         * event-msw.c (ntpipe_shove_writer): [5].
12330         * event-msw.c (mswindows_enqueue_mouse_button_event):
12331         * event-msw.c (mswindows_drain_windows_queue):
12332         * event-msw.c (mswindows_wnd_proc): [7].
12333         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12334         * event-msw.c (mswindows_modifier_state):
12335         Throughout: support new button modifiers.
12336
12337         * event-msw.c (emacs_mswindows_current_event_timestamp):
12338         Implement new event method.
12339         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12340
12341         * event-stream.c:
12342         * event-stream.c (event_stream_current_event_timestamp): New.
12343         * event-stream.c (maybe_kbd_translate): New functionality.
12344         * event-stream.c (vars_of_event_stream):
12345         Document new kbd-translate-table functionality.
12346
12347         * event-stream.c (Fcurrent_event_timestamp): New.
12348         New primitive for use in fabricated events.
12349         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12350
12351         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12352
12353         * events.c:
12354         * events.c (Fmake_event):
12355         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12356         [1].
12357         [9].
12358
12359         * events.c (format_event_object): fix gcc warnings.
12360
12361         * events.c (Fevent_timestamp): Document new primitives.
12362
12363         * events.c (TIMESTAMP_HALFSPACE): New.
12364
12365         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12366         comparing timestamps correctly (half-space algorithm).
12367
12368         * events.c (Fevent_modifier_bits): Doc fix.
12369
12370         * events.c (Fevent_modifiers): Major doc addition.
12371         * events.c (event_x_y_pixel_internal): Typo fix.
12372         * events.c (syms_of_events): Declare new primitives.
12373
12374         * events.h:
12375         Update long comment for button modifiers, timestamps.
12376
12377         * events.h (struct event_stream):
12378         New current_event_timestamp method.
12379
12380         * extents.c:
12381         * extents.c (extent_in_region_p):
12382         * extents.c (decode_extent):
12383         * extents.c (Fset_extent_parent):
12384         * extents.c (decode_map_extents_flags):
12385         Fix gcc warnings.
12386         [9].
12387
12388         * extents.c (struct extent_at_arg):
12389         * extents.c (decode_extent_at_flag):
12390         * extents.c (extent_at_mapper):
12391         * extents.c (extent_at_bytind):
12392         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12393         * extents.c (Fextents_at): New primitive. [9].
12394         * extents.c (symbol_to_glyph_layout): [9].
12395         Support new primitive `extents-at'.
12396
12397
12398         * extents.c (get_text_property_bytind):
12399         extent_at_bytind has another arg.
12400         [9].
12401
12402         * extents.c (syms_of_extents): New primitive.
12403
12404         * file-coding.c (Fmake_coding_system): [1].
12405         * file-coding.c (subsidiary_coding_system): fix gcc warning
12406         * file-coding.c (syms_of_file_coding): [2].
12407
12408         * fileio.c (Fexpand_file_name):
12409         * fileio.c (Fsysnetunam):
12410         * fileio.c (Ffile_exists_p):
12411         * fileio.c (Ffile_executable_p):
12412         * fileio.c (Fverify_visited_file_modtime):
12413         Clean up GCPROing.
12414
12415         * fileio.c (syms_of_fileio): [2].
12416
12417         * filelock.c (lock_file_1):
12418         * filelock.c (current_lock_owner):
12419         * filelock.c (lock_if_free):
12420         * filelock.c (lock_file):
12421         * filelock.c (unlock_file):
12422         Clean up GCPROing.
12423
12424         * fns.c (concat): Fix gcc warning.
12425
12426         * fns.c (Fmember):
12427         * fns.c (Fold_member):
12428         * fns.c (Fmemq):
12429         * fns.c (Fold_memq):
12430         * fns.c (memq_no_quit):
12431         * fns.c (Fassoc):
12432         * fns.c (Fold_assoc):
12433         * fns.c (Fassq):
12434         * fns.c (Fold_assq):
12435         * fns.c (assq_no_quit):
12436         * fns.c (Frassoc):
12437         * fns.c (Fold_rassoc):
12438         * fns.c (Frassq):
12439         * fns.c (Fold_rassq):
12440         * fns.c (rassq_no_quit):
12441         * fns.c (Fdelete):
12442         * fns.c (Fold_delete):
12443         * fns.c (Fdelq):
12444         * fns.c (Fold_delq):
12445         * fns.c (delq_no_quit):
12446         * fns.c (Fremassoc):
12447         * fns.c (Fremassq):
12448         * fns.c (remassq_no_quit):
12449         * fns.c (Fremrassoc):
12450         * fns.c (Fremrassq):
12451         * fns.c (remrassq_no_quit):
12452         * fns.c (Freverse):
12453         * fns.c (mapcar1):
12454         [1].
12455
12456         * frame-msw.c (mswindows_init_frame_1):
12457         * frame-msw.c (mswindows_delete_frame):
12458         Register popups with dialog code so keyboard traversing works.
12459
12460         * frame-tty.c (tty_raise_frame_no_select): [1].
12461
12462         * frame-x.c:
12463         * frame-x.c (x_set_frame_text_value):
12464         * frame-x.c (x_set_frame_properties):
12465         * frame-x.c (x_create_widgets):
12466         [7].
12467
12468         * frame.c:
12469         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12470
12471         * frame.h (wrap_frame): New.
12472         Macro like wrap_device.
12473
12474         * general.c:
12475         * general.c (SYMBOL):
12476         * general.c (syms_of_general):
12477         Major reorg.  This is now just a wrapper and symbols themselves
12478         are listed in general-slots.h.
12479
12480         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12481         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12482
12483         * glyphs-msw.c (mswindows_native_layout_instantiate):
12484         Add DS_CONTROL so keyboard traversal will work.
12485
12486         * glyphs-widget.c:
12487         * glyphs-widget.c (syms_of_glyphs_widget):
12488         Move some symbols to general-slots.h.
12489
12490         * glyphs-x.c:
12491         * glyphs-x.c (xbm_instantiate_1):
12492         * glyphs-x.c (x_xbm_instantiate):
12493         * glyphs-x.c (x_xface_instantiate):
12494         * glyphs-x.c (autodetect_instantiate):
12495         * glyphs-x.c (cursor_font_instantiate):
12496         * glyphs-x.c (x_update_widget):
12497         * glyphs-x.c (x_widget_instantiate):
12498         * glyphs.c (bitmap_to_lisp_data):
12499         * glyphs.c (pixmap_to_lisp_data):
12500         [7].
12501
12502         * glyphs.c (syms_of_glyphs):
12503         [2].
12504
12505         * gui-x.c:
12506         * gui-x.c (print_widget_value):
12507         * gui-x.c (menu_separator_style_and_to_external):
12508         * gui-x.c (add_accel_and_to_external):
12509         * gui-x.c (button_item_to_widget_value):
12510         * gui-x.c (gui_items_to_widget_values_1):
12511         * gui-x.c (gui_items_to_widget_values):
12512         * gui-x.c (syms_of_gui_x):
12513         * gui-x.c (vars_of_gui_x):
12514         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12515         [9].
12516
12517         * gui-x.h:
12518         Muleize, prototype changes matching gui-x.c.
12519
12520         * gui.c:
12521         * gui.c (separator_string_p):
12522         * gui.c (gui_item_add_keyval_pair):
12523         * gui.c (make_gui_item_from_keywords_internal):
12524         * gui.c (signal_too_long_error):
12525         * gui.c (parse_gui_item_tree_item):
12526         * gui.c (syms_of_gui):
12527         * gui.c (vars_of_gui):
12528         * gui.h:
12529         menu-no-selection-hook moved here (used by MSWin).
12530         Move some symbols to general-slots.h.
12531         [6].
12532         [9].
12533
12534         * insdel.c (get_buffer_pos_char):
12535         * insdel.c (get_buffer_range_char):
12536         Add GC comments.
12537
12538         * keymap.c (keymap_lookup_directly):
12539         * keymap.c (keymap_store):
12540         * keymap.c (ensure_meta_prefix_char_keymapp):
12541         * keymap.c (describe_map):
12542         * keymap.h:
12543         Support new button modifiers.
12544
12545         * lisp-disunion.h (wrap_object):
12546         * lisp-disunion.h (XSETOBJ):
12547         Rename make_obj to wrap_object.
12548
12549         * lisp-union.h:
12550         * lisp-union.h (make_int):
12551         * lisp-union.h (make_char):
12552         Support wrap_object.
12553
12554         * lisp.h:
12555         * lisp.h (LIST_LOOP):
12556         * lisp.h (EXTERNAL_LIST_LOOP):
12557         * lisp.h (LIST_LOOP_2):
12558         * lisp.h (EXTERNAL_LIST_LOOP_1):
12559         * lisp.h (EXTERNAL_LIST_LOOP_2):
12560         * lisp.h (EXTERNAL_LIST_LOOP_3):
12561         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12562         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12563         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12564         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12565         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12566         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12567         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12568         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12569         * lisp.h (struct Lisp_Symbol):
12570         * lisp.h (maybe_continuable_error_with_frob):
12571         Fix up section comments.
12572         Add new types for char to indicate usage.
12573         Delete symbols auto-generated from general-slots.h.
12574         Add prototypes for structured error functions.
12575         Add long comments describing looping macros and change interface
12576         so that lvalues are automatically declared.
12577         Add NO_DECLARE macro in case callers want to declare lvalues
12578         themselves.
12579
12580         * lread.c (read_syntax_error):
12581         * lread.c (continuable_read_syntax_error):
12582         * lread.c (read_structure):
12583         * lread.c (sequence_reader):
12584         * lread.c (read_list_conser):
12585         * lread.c (read_compiled_function):
12586         Rename syntax_error and continuable_syntax_error to avoid clash
12587         with same-named structured error functions.
12588
12589         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12590         * menubar-msw.c (populate_menu_add_item):
12591         * menubar-msw.c (populate_or_checksum_helper):
12592         [5].
12593         [9].
12594
12595         * menubar-x.c:
12596         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12597         Mule-ize whole file.
12598
12599         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12600
12601         * mule-charset.c (Fmake_charset):
12602         * mule-wnnfns.c (Fwnn_set_param):
12603         [1].
12604
12605         * ntproc.c (create_child):
12606         * ntproc.c (Fwin32_set_current_locale):
12607         Add comments portending doom.
12608
12609         * objects-msw.c:
12610         * objects-msw.c (old_font_enum_callback_2):
12611         * objects-msw.c (font_enum_callback_1):
12612         * objects-msw.c (mswindows_enumerate_fonts):
12613         [5].
12614
12615         * objects-x.c:
12616         * objects-x.c (allocate_nearest_color):
12617         * objects-x.c (x_parse_nearest_color):
12618         * objects-x.c (x_initialize_color_instance):
12619         * objects-x.c (x_print_color_instance):
12620         * objects-x.c (x_finalize_color_instance):
12621         * objects-x.c (x_valid_color_name_p):
12622         * objects-x.c (x_initialize_font_instance):
12623         * objects-x.c (x_print_font_instance):
12624         * objects-x.c (valid_x_font_name_p):
12625         * objects-x.c (truename_via_FONT_prop):
12626         * objects-x.c (truename_via_random_props):
12627         * objects-x.c (truename_via_XListFonts):
12628         * objects-x.c (x_font_truename):
12629         * objects-x.c (x_font_instance_truename):
12630         * objects-x.c (x_font_instance_properties):
12631         * objects-x.c (x_list_fonts):
12632         * objects-x.c (x_find_charset_font):
12633         Mule-ize entire file.
12634         [7].
12635
12636         * objects-x.h:
12637         Mule-verify.
12638
12639         * print.c:
12640         * print.c (std_handle_out_external):
12641         * print.c (debug_print_no_newline):
12642         * print.c (syms_of_print):
12643         Output to all debugger kinds in debug-print.
12644         Fix console-output code under MSWin to actually work.
12645
12646         * process-nt.c (send_signal):
12647         * process-nt.c (nt_create_process):
12648         Use newer Unicode macros.
12649
12650         * process-unix.c (unix_create_process):
12651         * process-unix.c (unix_canonicalize_host_name):
12652         * process-unix.c (unix_open_network_stream):
12653         [7].
12654
12655         * scrollbar-x.c:
12656         Mule-verify.
12657
12658         * search.c (syms_of_search):
12659         [2].
12660
12661         * select-msw.c (mswindows_destroy_selection):
12662         Use LIST_LOOP_2.
12663
12664         * select-x.c (symbol_to_x_atom):
12665         [7].
12666
12667         * select.c (syms_of_select):
12668         [2].
12669
12670         * sound.c (Fplay_sound_file):
12671         [7].
12672
12673         * specifier.c:
12674         * specifier.c (decode_specifier_type):
12675         * specifier.c (Fvalid_specifier_locale_type_p):
12676         * specifier.c (check_valid_locale_or_locale_type):
12677         * specifier.c (decode_locale):
12678         * specifier.c (decode_locale_type):
12679         * specifier.c (decode_locale_list):
12680         * specifier.c (check_valid_domain):
12681         * specifier.c (decode_specifier_tag_set):
12682         * specifier.c (Fcanonicalize_tag_set):
12683         * specifier.c (Fdefine_specifier_tag):
12684         * specifier.c (Fspecifier_tag_predicate):
12685         * specifier.c (check_valid_inst_list):
12686         * specifier.c (check_valid_spec_list):
12687         * specifier.c (decode_how_to_add_specification):
12688         * specifier.c (check_modifiable_specifier):
12689         * specifier.c (specifier_add_spec):
12690         * specifier.c (boolean_validate):
12691         * specifier.c (display_table_validate):
12692         [9].
12693
12694         * specifier.c (syms_of_specifier):
12695         Move some symbols to general-slots.h.
12696         [2].
12697
12698         * symbols.c:
12699         * symbols.c (Fmapatoms):
12700         * symbols.c (Fapropos_internal):
12701         Add GCPROs.
12702
12703         * symbols.c (set_default_buffer_slot_variable):
12704         * symbols.c (set_default_console_slot_variable):
12705         [1].
12706
12707         * symbols.c (defsymbol_massage_name_1):
12708         * symbols.c (defkeyword_massage_name):
12709         * symbols.c (deferror_1):
12710         * symbols.c (deferror):
12711         * symbols.c (deferror_massage_name_and_message):
12712         * symeval.h:
12713         * symeval.h (DEFSYMBOL):
12714         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12715
12716         * symbols.c (syms_of_symbols):
12717         [2].
12718
12719         * symsinit.h:
12720         * symsinit.h (init_win32): New.
12721         Also new is syms_of_dialog_mswindows.
12722
12723         * syswindows.h:
12724         Add new Unicode macros, missing Cygwin wide-char functions,
12725         convenience conversion macros for Qmswindows_tstr, macros for
12726         encapsulating required MSWin <-> Cygwin filename conversions,
12727         prototype for dynamically-extracted (not in NT 3.51) functions.
12728
12729         * toolbar-x.c:
12730         Mule-verify.
12731
12732         * tooltalk.c (Fadd_tooltalk_message_arg):
12733         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12734         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12735         [7].
12736
12737         * tooltalk.c (syms_of_tooltalk):
12738         [2].
12739
12740         * unexnt.c:
12741         * unexnt.c (unexec):
12742         Fix up headers, declaration of unexec() to be more standard.
12743
12744 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12745
12746         * offix.h: Revert change to guard macros - they're used in offix.c!
12747
12748 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12749
12750         * lisp.h: Defsubred Fdelete.
12751
12752         * console-msw.h:  (msprinter_default_printer): Added.
12753
12754         * console-msw.c (msprinter_canonicalize_console_connection):
12755         (msprinter_canonicalize_device_connection): Added.
12756
12757         * device-msw.c (msprinter_default_printer):
12758         (Fmswingows_get_default_printer):
12759         (signal_enum_priner_error):
12760         (Fmswingows_printer_list): Added.
12761
12762 2000-07-19  Martin Buchholz <martin@xemacs.org>
12763
12764         * XEmacs 21.2.35 is released.
12765
12766 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12767
12768         * select-x.c (x_handle_selection_request):
12769         Text selected in xemacs and pasted into xterm failed to appear.
12770         Spelling fixes and cosmetic changes.
12771
12772 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12773
12774         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12775         XEmacs frame (fix for doubling chars in dialog boxes).
12776
12777 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12778
12779         * select.c (select_convert_in, select_convert_out):
12780         Don't call intern() every time.
12781
12782         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12783         * select.c (vars_of_select): Initialise them.
12784
12785 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12786
12787         * select.c (selection-coercible-types): New.
12788
12789         * select.c (own-selection-internal):
12790         * select.c (get-selection-internal):
12791         MULE bug fix - these should default to COMPOUND_TEXT and not
12792         STRING for MULE. I think.
12793
12794         * select.c (select_convert_out): Use selection-coercible-types
12795         to find types that we can attempt to perform coercions on.
12796
12797 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12798
12799         * mule-wnnfns.c:
12800         * mule-canna.c:
12801         Add coding: cookie to identify encoding.
12802
12803         * mule-canna.c (CANNA_mode_keys): make static.
12804         Use proper prototypes, even for functions of no arguments.
12805         Remove external prototype for Fding().
12806
12807         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12808
12809         * select.c (syms_of_select): Add missing DEFSUBR.
12810
12811 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12812
12813         * select.c (get_selection_internal, own_selection_internal):
12814         Make the type default to STRING, rather than placing a nil type
12815         into Vselection_alist.
12816
12817 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12818
12819         * gpmevent.c (tty_selection_exists_p):
12820         * gpmevent.c (tty_own_selection):
12821         Updated parameter lists.
12822
12823 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12824
12825         * select.h (selection-alist): Removed declaration.
12826
12827         * select.h (get_local_selection):
12828         * select.c (get_local_selection):
12829         Made static.
12830
12831         * select.h (convert_selection): Removed declaration.
12832         * select.c (convert_selection): Removed.
12833         This function belongs in Lisp.
12834
12835         * select.h (select_convert_in): Declare.
12836         * select.h (select_convert_out): Declare.
12837         * select.c (select_convert_in): New.
12838         * select.c (select_convert_out): New.
12839         New conversion functions for other files to call.
12840
12841         * select.h (select_notify_buffer_kill): Declare.
12842         * select.c (select_notify_buffer_kill): New.
12843         New functions that get called from kill-buffer.
12844
12845         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12846         X-specific lisp code.
12847
12848         * select.h: Declare some of the lisp-visible functions for
12849         external use.
12850
12851         * select.c (clean_local_selection_data): Removed. This was
12852         a disgusting function, and previously should have been in
12853         select-x.c in any case. The functionality is now provided
12854         in select-convert-from-integer (select.el).
12855
12856         * select.c (available-selection-types): Fixed stupidity where
12857         INTEGER and ATOM got added twice. Also add STRING when we see an
12858         extent.
12859
12860         * select.c (get-selection-internal): Removed symbol stripping. No
12861         longer causes conversion when data comes from the internal cache.
12862
12863         * select.c (syms_of_select): Added new functions.
12864
12865         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12866         error checking - previously this called abort!
12867
12868         * select-x.c (x_own_selection): Changed comment.
12869
12870         * select-x.c (x_handle_selection_request): Use select_convert_out.
12871         Don't mess with selection-alist; it's an internal variable of select.c.
12872
12873         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12874
12875         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12876         rather than messing with selection-alist.
12877
12878         * select-msw.c (mswindows_get_foreign_selection):
12879         Use TO_INTERNAL_FORMAT rather than hacking.
12880
12881 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12882
12883         * process-unix.c (unix_open_multicast_group):
12884         (unix_open_multicast_group): Remove useless casts.
12885
12886 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12887
12888         * sound.c (Fplay_sound): Fix `unused variable' warning.
12889
12890         * emacs.c (main): Use correct type for _environ on SCO5.
12891
12892 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12893
12894         * console.h (own_selection_method):
12895         * console.h (selection_exists_p_method):
12896         * console.h (available_selection_types_method): New.
12897         * console.h (register_selection_data_type_method): New.
12898         * console.h (selection_data_type_name): New.
12899
12900         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12901         function & alist to track GlobalAlloc()'d handles that need
12902         releasing when the clipboard data gets replaced or emptied.
12903
12904         * event-msw.c (mswindows_wnd_proc): Call it.
12905
12906         * lisp.h, general.c (Qappend): New symbol representing a
12907         `how-to-add' mode.
12908
12909         * select.c (own-selection-internal):
12910         * select.c (selection-exists-p):
12911         * select.c (available-selection-types): New.
12912         * select.c (register-selection-data-type): New.
12913         * select.c (selection-data-type-name): New.  New functions to deal
12914         with device-specific selection data formats.
12915         * select.c (selection-converter-out-alist): Renamed.
12916         * select.c (selection-converter-in-alist): New.
12917         * select.c (selection-appender-alist): New.  Added new alists.
12918         * select.c (syms_of_select, vars_of_select): Added new symbols &
12919         variables.
12920         * select.c (get_local_selection): Split.
12921         * select.c: Removed spurious type checking - selections may now be
12922         of any type, not just strings.
12923         * select.c (own-selection-internal):
12924
12925         * select.h, select.c (convert_selection): New. Created
12926         convert_selection() function based on get_local_selection().
12927         * select.h, select.c (QCF_*): New symbols representing mswindows
12928         clipboard formats.
12929         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12930         symbols representing `how-to-add' modes.
12931
12932         * select-msw.c (x_sym_p): New.
12933         * select-msw.c (symbol_to_ms_cf): New.
12934         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12935         symbols & clipboard formats. Can also handle string names.
12936         * select-msw.c (mswindows_own_selection):
12937         * select-msw.c (mswindows_selection_exists_p):
12938         Added `data-type' parameter. Use it.
12939         * select-msw.c (mswindows_available_selection_types): New.
12940         * select-msw.c (mswindows_register_selection_data_type): New.
12941         * select-msw.c (mswindows_selection_data_type_name): New.
12942         * select-msw.c (mswindows_own_selection):
12943         * select-msw.c (mswindows_get_foreign_selection):
12944         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12945         * select-msw.c (console_create_select_mswindows): Added new methods.
12946         * select-msw.c (mswindows_destroy_selection): New.
12947         * select-msw.c (Vhandle_alist): New list.
12948         * select-msw.c (mswindows_own_selection):
12949
12950         * select-x.c (x_own_selection):
12951         * select-x.c (x_selection_exists_p):
12952         * select-x.c: Added some comments about maybe using new
12953         functionality.
12954         * select-x.c (x_own_selection):
12955
12956         * specifier.c: Remove definition of Qappend (now in general.c)
12957         * specifier.c (syms_of_specifier): Remove Qappend.
12958
12959 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12960
12961         * config.h.in: Add socklen_t.
12962
12963         * s/decosf4-0.h: No special compiler flags needed or desired.
12964         In particular, undefine _BSD for DEC OSF 4.0.
12965
12966 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12967
12968         * redisplay-msw.c (msprinter_frame_output_end): Added.
12969         (console_type_create_redisplay_mswindows): Referred the above.
12970
12971         * frame.c (setup_frame_without_minibuffer): Do not create a
12972         default minibuffer frame on a printer device.
12973
12974         * frame-msw.c (apply_dc_geometry): Added.
12975         (msprinter_start_page):
12976         (msprinter_init_frame_3):
12977         (msprinter_eject_page): Use it.
12978
12979         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12980         and removed residual duplex and orientation properties.
12981
12982 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12983
12984         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12985
12986         * unexalpha.c: Remove system prototypes from C sources!
12987
12988 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12989
12990         * eval.c: Remove references to M-x edit-options in DEFUNs for
12991         `defvar' and `defconst'.
12992
12993 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12994
12995         * config.h.in: Remove SMART_INCLUDE hackery.
12996
12997         PostgreSQL hacking:
12998         * config.h.in: Don't use SMART_INCLUDE.
12999
13000         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13001         * inline.c: Simply #include "postgresql.h"
13002         * postgresql.c:
13003         - Don't use SMART_INCLUDE
13004         - Use simply "const".
13005         - Use standard doc string conventions.
13006         - Use correct type for result of PQstatus.
13007
13008 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13009
13010         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13011
13012         C++ compilation changes.
13013         * config.h.in (EXTERN_C): Define.
13014         * config.h.in (not): This is also a C++ keyword.
13015         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13016         * cm.c: Use EXTERN_C.
13017         * redisplay-tty.c: Use EXTERN_C.
13018         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13019
13020 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13021
13022         * general.c: Remove duplicate definition for Qfunction.
13023
13024 2000-07-08  Ben Wing  <ben@xemacs.org>
13025
13026         * device-msw.c (msprinter_init_device):
13027         * device-msw.c (sync_printer_with_devmode):
13028         * device-msw.c (handle_devmode_changes):
13029         * device-msw.c (print_dialog_worker):
13030         * device-msw.c (Fmsprinter_apply_settings):
13031         * device-msw.c (hash_devmode):
13032         * device-msw.c (Fmsprinter_settings_despecialize):
13033         use Qmswindows_tstr, not Qctext.
13034
13035         * vm-limit.c (check_memory_limits):
13036         avoid infinite loop printing warning messages.
13037
13038 2000-07-05  Craig Lanning  <lanning@scra.org>
13039
13040         * Makefile.in.in: Add support for including the Windows resources
13041         when building with the cygwin and mingw targets.
13042
13043         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13044         not set or not correct.
13045         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13046         (init_initial_directory): Don't try to use $PWD on the
13047         WIN32_NATIVE target.
13048
13049         * s\cygwin32.h:
13050         [[Add -mwindows to eliminate console window.]] not required --ben
13051         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13052         (MAIL_USE_POP): removed; now handled by configure.
13053
13054         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13055         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13056         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13057         (MAIL_USE_POP): removed; now handled by configure.
13058         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13059         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13060         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13061         constant string.
13062         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13063         up from <winsock.h> via systime.h.
13064         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13065         (getpagesize): from Dan Holmsand, added.
13066         Added #endif which was left dangling by Ben's mega patch; added
13067         comment to help prevent this in the future.
13068
13069         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13070
13071 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13072
13073         * console-msw.h (struct mswindows_device): Removed unnecessary
13074         cached device geometry values.
13075         Added update_tick and an accessor macro.
13076         (Lisp_Devmode): Added lrecord declaration.
13077         (struct msprinter_device): Contain devmode as a Lisp object.
13078         Added mswindows_get_selected_frame_hwnd();
13079
13080         * console.h (struct console_methods): Indentation nitpicking.
13081
13082         * device-msw.c (mswindows_init_device): Do not initialize geometry
13083         cache. Initialize update tick.
13084         (mswindows_device_system_metrics): Ask the device for its geometry.
13085         (global_free_2_maybe):
13086         (devmode_to_hglobal):
13087         (handle_printer_changes):
13088         (ensure_not_printing):
13089         (print_dialog_worker):
13090         (Fmsprinter_print_setup_dialog):
13091         (Fmsprinter_print_dialog):
13092         (plist_get_margin):
13093         (plist_set_margin):
13094         (Fmsprinter_page_setup_dialog): Added functions.
13095         (sync_printer_with_devmode):
13096         (handle_devmode_changes):
13097         (Fmsprinter_get_settings):
13098         (Fmsprinter_select_settings):
13099         (Fmsprinter_apply_settings):
13100         (allocate_devmode):
13101         (Fmsprinter_settings_copy):
13102         (Fmsprinter_settings_despecialize):
13103         (print_devmode):
13104         (finalize_devmode):
13105         (equal_devmode):
13106         (hash_devmode): Added functions
13107         (syms_of_device_mswindows): Init devmode lrecord class.
13108
13109         * device.h: Added an exfun for find-device.
13110
13111         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13112         geometry; although, recreate the device compatible DC.
13113
13114         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13115         (msprinter_init_frame_3):
13116         (msprinter_frame_property):
13117         (msprinter_internal_frame_property_p):
13118         (msprinter_frame_properties):
13119         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13120         print job properties (will move to device settings).
13121
13122         * lisp.h: Added symbols.
13123
13124         * general.c (syms_of_general): Declared them.
13125
13126         * hash.c (string_hash): Added.
13127
13128         * lrecord.h (lrecord_type): Added devmode lrecord type.
13129
13130 2000-07-02  Mike Sperber <mike@xemacs.org>
13131
13132         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13133         FreeBSD 4.0.
13134
13135 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13136
13137         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13138         integer.
13139
13140 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13141
13142         * data.c (Fstring_to_number): Don't recognize floating point if
13143         base is not 10.
13144
13145 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13146
13147         * glyphs-widget.c (tab_control_query_geometry):
13148         (widget_query_geometry):
13149         (button_query_geometry):
13150         * glyphs.c (text_query_geometry):
13151         Enforce type correctness.
13152
13153 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13154
13155         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13156         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13157
13158 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13159
13160         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13161         conflicts with gcc's fixincluded version of FOO.h.
13162
13163         * glyphs.h (image_instance_geometry): Remove trailing `,'
13164
13165 2000-06-08  Mike Alexander  <mta@arbortext.com>
13166
13167         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13168         (shove_thread): Don't write the same output twice
13169         (make_ntpipe_output_stream): Increase priority of shove thread
13170         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13171         chance to run
13172         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13173         it.
13174
13175 2000-06-12  Ben Wing  <ben@xemacs.org>
13176
13177         * s\mingw32.h (sigset):
13178         * s\windowsnt.h (sigset):
13179         rename msw_ to mswindows_ for consistency with general convention.
13180
13181 2000-06-12  Ben Wing  <ben@xemacs.org>
13182
13183         * console-msw.c:
13184         * console-msw.c (mswindows_get_console_hwnd):
13185         * console-msw.c (mswindows_ensure_console_allocated):
13186         * console-msw.c (mswindows_hide_console):
13187         * console-msw.c (mswindows_show_console):
13188         * console-msw.c (mswindows_ensure_console_buffered):
13189         * console-msw.c (mswindows_output_console_string):
13190         * console-msw.c (mswindows_windows9x_p):
13191         * console-msw.h:
13192         * device-msw.c (mswindows_get_workspace_coords):
13193         * device-msw.c (mswindows_device_system_metrics):
13194         * dialog-msw.c (mswindows_popup_dialog_box):
13195         * event-msw.c (mswindows_wnd_proc):
13196         * frame-msw.c (mswindows_size_frame_internal):
13197         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13198         * menubar-msw.c (displayable_menu_item):
13199         * menubar-msw.c (mswindows_char_is_accelerator):
13200         * nt.c:
13201         * nt.c (mswindows_sigset):
13202         * nt.c (mswindows_sigrelse):
13203         * nt.c (mswindows_sigpause):
13204         * nt.c (mswindows_raise):
13205         * nt.c (timer_proc):
13206         * ntproc.c:
13207         * ntproc.c (find_child_console):
13208         * ntproc.c (sys_kill):
13209         * print.c:
13210         * print.c (std_handle_out_external):
13211         * process-nt.c (find_child_console):
13212         * process-nt.c (send_signal_the_95_way):
13213         * process-nt.c (ensure_console_window_exists):
13214         * process-nt.c (nt_create_process):
13215         * syssignal.h:
13216         rename msw_ to mswindows_ for consistency with general convention.
13217
13218         * emacs.c:
13219         * dumper.c:
13220         include nt.h, not syswindows.h.
13221
13222         * nt.c (mswindows_fstat):
13223         * nt.c (mswindows_stat):
13224         prefix mswindows_ instead of attempting to directly override the
13225         library functions.  fix declarations.
13226
13227         * nt.h:
13228         include syswindows.h.  move some sysdep.h stuff here.
13229
13230         * ntheap.h:
13231         include syswindows.h, not <windows.h>.
13232
13233         * ntplay.c:
13234         clean up headers.
13235
13236         * sysdep.c:
13237         clean up headers.
13238
13239         * sysdep.c (sys_fstat):
13240         * sysdep.c (sys_stat):
13241         call mswindows versions when appropriate.
13242
13243         * sysdep.h:
13244         move mswin decls to nt.h.
13245
13246         * syswindows.h:
13247         add long comment describing appropriate use of the various windows
13248         headers.
13249
13250 2000-06-11  Ben Wing  <ben@xemacs.org>
13251
13252         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13253
13254 2000-06-10  Ben Wing  <ben@xemacs.org>
13255
13256         * Makefile.in.in (release):
13257         Correction to make sure xemacs.exe always dumped when correct.
13258
13259         * alloca.c:
13260         * balloon_help.c:
13261         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13262
13263         * buffer.c (set_buffer_internal):
13264         [[[[2]]]]: Remove HAVE_FEP code.
13265
13266         * buffer.c (init_initial_directory):
13267         [3].
13268
13269         * bytecode.c:
13270         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13271         individual files.
13272
13273         * callproc.c:
13274         * callproc.c (call_process_cleanup):
13275         * callproc.c (Fold_call_process_internal):
13276         * callproc.c (child_setup):
13277         * callproc.c (getenv_internal):
13278         * callproc.c (init_callproc):
13279         * callproc.c (vars_of_callproc):
13280         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13281         __CYGWIN32__ -> CYGWIN.
13282         DOS_NT -> WIN32_NATIVE.
13283         Remove MSDOS support/references, converting to WIN32_NATIVE
13284           where correct.
13285         __MINGW32__ -> MINGW.
13286         Fix windows.h includes.
13287         Remove bogus HAVE_NTGUI.
13288
13289         * config.h.in:
13290         [2].
13291
13292         * console-msw.c:
13293         mswindows_message_outputted added for use in allowing startup
13294         errors on the console to be seen.
13295
13296         * console-msw.c (msw_ensure_console_allocated):
13297         * console-msw.c (msw_output_console_string):
13298         * console-msw.c (DHEADER):
13299         * console-msw.c (DOPAQUE_DATA):
13300         * console-msw.c (DEVENT):
13301         * console-msw.c (DCONS):
13302         * console-msw.c (DCONSCDR):
13303         * console-msw.c (DSTRING):
13304         * console-msw.c (DVECTOR):
13305         * console-msw.c (DSYMBOL):
13306         * console-msw.c (DSYMNAME):
13307         Fix warnings.
13308
13309         * console-stream.c (stream_init_console):
13310         Fix text/binary problems.
13311
13312         * device-msw.c:
13313         * device-msw.c (mswindows_finish_init_device):
13314         * device-msw.c (mswindows_delete_device):
13315         [1].
13316
13317         * device.c (handle_asynch_device_change):
13318         [3].
13319
13320         * dgif_lib.c:
13321         * dgif_lib.c (DGifOpenFileName):
13322         * dgif_lib.c (DGifOpenFileHandle):
13323         * dgif_lib.c (DGifGetLine):
13324         * dgif_lib.c (DGifGetPixel):
13325         Added config.h/lisp.h, fix up includes.
13326         [1].
13327
13328         * dired-msw.c:
13329         [4].
13330
13331         * dired.c:
13332         * dired.c (file_name_completion):
13333         * dired.c (Ffile_attributes):
13334         * dired.c (syms_of_dired):
13335         [1].
13336
13337         * dumper.c:
13338         * dumper.c (pdump_file_unmap):
13339         * dumper.c (pdump_load):
13340         [1].
13341
13342         * editfns.c:
13343         * editfns.c (Ftemp_directory):
13344         * editfns.c (user_login_name):
13345         * editfns.c (Fuser_real_login_name):
13346         * editfns.c (get_home_directory):
13347         [1].
13348
13349         * elhash.c (finish_marking_weak_hash_tables):
13350         [[[[5]]]]: Fix GCC warnings.
13351
13352         * emacs.c:
13353         * emacs.c (mswindows_handle_hardware_exceptions):
13354         * emacs.c (make_arg_list_1):
13355         * emacs.c (main_1):
13356         * emacs.c (Fkill_emacs):
13357         * emacs.c (Fdump_emacs):
13358         [1].
13359         Fix problems with nested crashes, add long comment.
13360
13361         * event-Xt.c (init_event_Xt_late):
13362         [1].
13363
13364         * event-msw.c:
13365         * event-msw.c (mswindows_dde_callback):
13366         * event-msw.c (mswindows_handle_sticky_modifiers):
13367         * event-msw.c (mswindows_wnd_proc):
13368         [1].
13369         [5].
13370
13371         * events.c (character_to_event):
13372         [1].
13373
13374         * fileio.c:
13375         * fileio.c (Ffile_name_directory):
13376         * fileio.c (Ffile_name_nondirectory):
13377         * fileio.c (directory_file_name):
13378         * fileio.c (Fexpand_file_name):
13379         * fileio.c (Fsubstitute_in_file_name):
13380         * fileio.c (Ffile_name_absolute_p):
13381         * fileio.c (check_executable):
13382         * fileio.c (Ffile_readable_p):
13383         * fileio.c (Ffile_accessible_directory_p):
13384         * fileio.c (Ffile_modes):
13385         * fileio.c (Funix_sync):
13386         * fileio.c (vars_of_fileio):
13387         [1]. [4].
13388
13389         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13390
13391         Expand getdefdir defn.
13392         Fix bogus rename() comment.
13393
13394         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13395         to use standard XEmacs include files, e.g. sysfile.h, rather
13396         than system-specific includes.
13397
13398         * fns.c:
13399         * fns.c (Fsubseq):
13400         [5]. [6].
13401
13402         * frame.c (vars_of_frame):
13403         [1].
13404
13405         * getloadavg.c:
13406         * getloadavg.c (getloadavg):
13407         [1]. [6].
13408         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13409         (We don't use it elsewhere in the code; just add a comment.)
13410
13411         * gif_io.c:
13412         [6].
13413         Add config.h.
13414
13415         * glyphs-msw.c:
13416         * glyphs-msw.c (mswindows_resource_instantiate):
13417         [1].
13418
13419         * glyphs-x.c (x_native_layout_instantiate):
13420         [5].
13421
13422         * gui-msw.c (Fmswindows_shell_execute):
13423         [1].
13424
13425         * insdel.c:
13426         [4].
13427
13428         * lisp.h:
13429         [4]. [5].
13430
13431         * lread.c (locate_file_in_directory_mapper):
13432         [1].
13433
13434         * lstream.c:
13435         [4].
13436
13437         * mem-limits.h:
13438         * mem-limits.h (get_lim_data):
13439         [1].
13440
13441         * menubar-msw.c:
13442         [4].
13443
13444         * ndir.h:
13445         [1].
13446
13447         * nt.c:
13448         * nt.c (getwd):
13449         * nt.c (closedir):
13450         * nt.c (rva_to_section):
13451         * nt.c (mswindows_executable_type):
13452         [1]. [6].
13453         Fix closedir() defn.
13454
13455         * nt.h:
13456         [[[[8]]]]: *_OK defs moved to sysfile.h.
13457
13458         * ntproc.c:
13459         [6]. [7].
13460
13461         * objects-x.c:
13462         [4].
13463
13464         * print.c:
13465         * print.c (std_handle_out_external):
13466         [1]. [4].
13467
13468         * process-nt.c:
13469         * process-nt.c (nt_create_process):
13470         [6].
13471         try to fix process quoting somewhat.
13472
13473         * process-unix.c (unix_create_process):
13474         [1].
13475
13476         * process.c:
13477         * process.c (vars_of_process):
13478         Add Vnull_device.
13479
13480         * process.h:
13481         [1].
13482
13483         * realpath.c:
13484         * realpath.c (xrealpath):
13485         [1].
13486
13487         * redisplay-tty.c (init_tty_for_redisplay):
13488         [3].
13489
13490         * redisplay.c:
13491         [4]. [6].
13492
13493         * scrollbar-msw.c:
13494         [4].
13495
13496         * sheap.c:
13497         * sheap.c (more_static_core):
13498         * sheap.c (report_sheap_usage):
13499         [5]. [6].
13500
13501         * signal.c:
13502         * signal.c (alarm_signal):
13503         [1]. [6].
13504
13505         * sound.c:
13506         [6].
13507
13508         * strftime.c:
13509         * strftime.c (zone_name):
13510         [1]. [5].
13511
13512         * symsinit.h (init_sunpro):
13513         [1].
13514
13515         * syscommctrl.h:
13516         commctrl.h not in Cygwin b20.1.
13517
13518         * sysdep.c:
13519         * sysdep.c (endif):
13520         * sysdep.c (sys_subshell):
13521         * sysdep.c (init_baud_rate):
13522         * sysdep.c (emacs_get_tty):
13523         * sysdep.c (emacs_set_tty):
13524         * sysdep.c (tty_init_sys_modes_on_device):
13525         * sysdep.c (init_system_name):
13526         * sysdep.c (sys_open):
13527         * sysdep.c (interruptible_open):
13528         * sysdep.c (sys_fopen):
13529         * sysdep.c (sys_mkdir):
13530         * sysdep.c (sys_rename):
13531         * sysdep.c (get_process_times_1):
13532         [1]. [6].
13533
13534         * sysdep.h:
13535         [1].
13536
13537         * sysdir.h:
13538         * sysdir.h (DIRENTRY_NONEMPTY):
13539         [1]. [6].
13540
13541         * sysdll.c (dll_init):
13542         * sysdll.h:
13543         [1].
13544
13545         * sysfile.h:
13546         [1]. [6]. [8].
13547         added text/binary defs.
13548
13549         * sysfloat.h:
13550         [1].
13551
13552         * sysproc.h:
13553         * sysproc.h (EDESTADDRREQ):
13554         * sysproc.h (poll_fds_for_input):
13555         [1]. [6].
13556
13557         * syspwd.h:
13558         [6].
13559
13560         * syssignal.h:
13561         [1].
13562
13563         * systime.h:
13564         [1]. [6].
13565
13566         * systty.h:
13567         [1].
13568
13569         * syswindows.h:
13570         [1].
13571         Always define WIN32_LEAN_AND_MEAN.
13572
13573         * unexcw.c (unexec):
13574         [5].
13575
13576         * unexec.c:
13577         * unexec.c (copy_text_and_data):
13578         * unexec.c (adjust_lnnoptrs):
13579         [1].
13580
13581         * unexnt.c:
13582         * unexnt.c (_start):
13583         [1].
13584
13585 2000-06-07  Ben Wing  <ben@xemacs.org>
13586
13587         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13588         was used only as a model.  We've long since extracted any useful
13589         logic or code out of this. (I just did an exhaustive search.)
13590
13591         * s\msdos.h: Removed.
13592
13593         * s\windows95.h: Removed.
13594
13595 2000-06-10  Ben Wing  <ben@xemacs.org>
13596
13597         * s\cygwin32.h:
13598         [1]. [5].
13599         Don't use extern with fun defs.
13600
13601         * s\mingw32.h:
13602         [1]. [7].
13603         Remove nt\inc include.
13604         Remove getdisk, getdefdir. (The former is unused, the latter
13605         expanded in fileio.h.)
13606
13607         * s\windowsnt.h:
13608         * s\windowsnt.h (WIN32_NATIVE):
13609         * s\windowsnt.h (HAVE_STRCASECMP):
13610         [1]. [7].
13611         Add long comment about preprocessor changes.
13612         Remove getdisk, getdefdir. (The former is unused, the latter
13613         expanded in fileio.h.)
13614
13615 2000-06-10  Ben Wing  <ben@xemacs.org>
13616
13617         * m\arm.h:
13618         * m\delta.h:
13619         * m\intel386.h:
13620         * m\sequent.h:
13621         * m\template.h:
13622         * m\windowsnt.h:
13623         [1].
13624         Remove bogus/unused NO_SOCK_SIGIO.
13625
13626 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13627
13628         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13629         not an Emchar.
13630
13631 2000-06-04  Mike Sperber <mike@xemacs.org>
13632
13633         * casetab.c (set_case_table): For `set-standard-case-table',
13634         actually deposit the new case tables where the rest of XEmacs can
13635         see them.
13636
13637 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13638
13639         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13640
13641 2000-06-05  Ben Wing  <ben@xemacs.org>
13642
13643         * callproc.c (child_setup): Don't do close_load_descs() under
13644         MS Windows.  Put in a comment explaining why.
13645
13646 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13647
13648         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13649         Toolkit shell" which breaks `kill-compilation' on Windows NT
13650         native, retaining STDERR handling improvements.
13651
13652 2000-06-01  Andreas Jaeger  <aj@suse.de>
13653
13654         * s/s390.h: Support for S390, based on a patch by Martin
13655         Schwidefsky <schwidefsky@de.ibm.com>.
13656
13657 2000-05-30  Andy Piper  <andy@xemacs.org>
13658
13659         * window.c (allocate_window):
13660         (make_dummy_parent):
13661         (Fset_window_configuration): use new hashtable type.
13662
13663         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13664         (struct image_instantiator_methods):
13665         (struct Lisp_Image_Instance): make instance geometry signed.
13666
13667         * glyphs.c (instantiate_image_instantiator):
13668         (image_instance_query_geometry):
13669         (image_instance_layout):
13670         (image_instance_layout):
13671         (query_string_geometry):
13672         (text_query_geometry):
13673         (image_instantiate):
13674         (image_instantiate):
13675         (cache_subwindow_instance_in_frame_maybe):
13676         (subwindow_query_geometry): make instance geometry signed.
13677
13678         * glyphs-widget.c (widget_query_geometry):
13679         (widget_layout):
13680         (button_query_geometry):
13681         (tree_view_query_geometry):
13682         (tab_control_query_geometry):
13683         (layout_query_geometry):
13684         (layout_layout):
13685         (native_layout_layout): make instance geometry signed.
13686
13687 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13688
13689         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13690         constant.
13691
13692         * general.c (syms_of_general): Add Qfull_assoc symbol.
13693
13694         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13695         correctly.
13696         (decode_weak_list_type): Decode full-assoc type.
13697         (encode_weak_list_type): Encode full-assoc type.
13698         (Fmake_weak_list): Update doc string.
13699
13700 2000-05-30  Andy Piper  <andy@xemacs.org>
13701
13702         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13703
13704         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13705         (decode_hash_table_weakness): ditto.
13706         (Fhash_table_weakness): ditto.
13707         (Fhash_table_type): ditto.
13708         (finish_marking_weak_hash_tables): ditto.
13709         (hash_table_weakness_validate): ditto.
13710         (syms_of_elhash): ditto.
13711
13712 2000-05-28  Martin Buchholz <martin@xemacs.org>
13713
13714         * XEmacs 21.2.34 is released.
13715
13716 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13717
13718         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13719         start cache.
13720         (updating_line_start_cache): Gone.
13721         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13722         generic code to force a minimum of 1 line laid out in the
13723         CMOTION_DISP case.
13724
13725 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13726
13727         * glyphs.c (instantiate_image_instantiator): Check for initialized
13728         height & width no longer special cases IMAGE_NOTHING.
13729         (nothing_instantiate): Set height and width of instance.
13730
13731 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13732
13733         * unexelf.c (unexec): Search for ".data" section.
13734         Initialize new_data2_offset from old_data_index.
13735         Remove redundant check for ElfW.
13736
13737 2000-05-23  Andy Piper  <andy@xemacs.org>
13738
13739         * glyphs.c (get_image_instantiator_governing_domain): allow more
13740         specific domains as the governing domain rather than expecting an
13741         exact match. This fixes problems with layouts.
13742
13743 2000-05-22  Andy Piper  <andy@xemacs.org>
13744
13745         * redisplay-output.c (compare_runes): check for non-images
13746
13747         * glyphs.c (set_glyph_dirty_p): ditto.
13748         (update_glyph_cachel_data): ditto.
13749
13750         * glyphs-widget.c (layout_post_instantiate): ditto.
13751         (layout_post_instantiate): ditto.
13752
13753         * event-msw.c (mswindows_wnd_proc): warning removal.
13754
13755 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13756
13757         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13758
13759         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13760
13761         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13762
13763         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13764         (mswindows_executable_type): mingw32 now has enough headers for
13765         this to work.
13766
13767 2000-05-20  Andy Piper  <andy@xemacs.org>
13768
13769         * console-msw.c (mswindows_output_last_error): ; -> ,
13770
13771 2000-05-12  Andy Piper  <andy@xemacs.org>
13772
13773         * console-msw.c (FROB): compare ints with ints.
13774
13775 2000-05-11  Andy Piper  <andy@xemacs.org>
13776
13777         * glyphs-x.c (x_finalize_image_instance): make minimal build
13778         happy.
13779
13780 2000-05-20  Ben Wing  <ben@xemacs.org>
13781
13782         * event-Xt.c:
13783         * event-Xt.c (vars_of_event_Xt):
13784         move modifier-keys-are-sticky to event-stream.c.
13785
13786         * event-msw.c:
13787         * event-msw.c (mswindows_enqueue_mouse_button_event):
13788         * event-msw.c (key_needs_default_processing_p):
13789         * event-msw.c (XEMSW_LCONTROL):
13790         * event-msw.c (mswindows_handle_sticky_modifiers):
13791         * event-msw.c (FROB):
13792         * event-msw.c (clear_sticky_modifiers):
13793         * event-msw.c (output_modifier_keyboard_state):
13794         * event-msw.c (output_alt_keyboard_state):
13795         * event-msw.c (mswindows_wnd_proc):
13796         * event-msw.c (mswindows_modifier_state):
13797         * event-msw.c (emacs_mswindows_handle_magic_event):
13798         implement sticky modifiers.
13799
13800         * event-stream.c:
13801         * event-stream.c (vars_of_event_stream):
13802         move modifier-keys-are-sticky here.
13803
13804         * lisp.h:
13805         add CHECK_FUNCTION.
13806
13807         * rangetab.c:
13808         implement map-range-table.
13809
13810
13811 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13812
13813         * redisplay-tty.c (reset_tty_modes):
13814         (tty_redisplay_shutdown): Adjust argument type to
13815         tty_frame_output_end.
13816
13817 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13818
13819         * eval.c (Fbacktrace): Don't output a line with only right
13820         parenthesis.
13821
13822 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13823
13824         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13825         (Fpq_reset_poll): Ditto.
13826
13827 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13828
13829         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13830
13831 2000-05-16  Ben Wing  <ben@xemacs.org>
13832
13833         * buffer.c:
13834         * buffer.c (dfc_convert_to/from_internal_format):
13835         * buffer.c (reinit_vars_of_buffer):
13836         Fix conversion functions to allow reentrancy.
13837
13838         * console-msw.c:
13839         * console-msw.c (mswindows_output_last_error):
13840         New fun, generally useful -- output a human-readable
13841         version of GetLastError() on the console.
13842
13843         * console-msw.h:
13844         * console-msw.h (struct mswindows_frame):
13845         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13846
13847         * console-stream.c (stream_output_begin):
13848         * console-stream.c (stream_output_end):
13849         * console-stream.c (stream_output_vertical_divider):
13850         * console-stream.c (stream_clear_region):
13851         * console-stream.c (stream_flash):
13852         * console-stream.c (console_type_create_stream):
13853         Delete blank stream methods, not needed.
13854
13855         * console.h (struct console_methods):
13856         Split begin/end methods into window and frame.
13857
13858         * event-msw.c:
13859         * event-msw.c (mswindows_handle_paint):
13860         * event-msw.c (output_alt_keyboard_state):
13861         * event-msw.c (mswindows_wnd_proc):
13862         * event-msw.c (vars_of_event_mswindows):
13863         Comment about problems with ignored-expose.
13864         Define mswindows-debug-events; not really implemented.
13865
13866         * frame-msw.c (mswindows_init_frame_1):
13867         random cleanups.
13868
13869         * glyphs-msw.c:
13870         * glyphs-msw.c (begin_defer_window_pos):
13871         * glyphs-msw.c (mswindows_unmap_subwindow):
13872         * glyphs-msw.c (mswindows_map_subwindow):
13873         * glyphs-msw.c (mswindows_resize_subwindow):
13874         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13875
13876         * glyphs.c (make_image_instance_1):
13877         Fix crash.
13878
13879         * gutter.c (Fredisplay_gutter_area):
13880         Use new begin/end methods.
13881
13882         * lisp.h (Dynarr_new2):
13883         New creation fun.
13884
13885         * redisplay-msw.c:
13886         * redisplay-msw.c (mswindows_frame_output_begin):
13887         * redisplay-msw.c (mswindows_frame_output_end):
13888         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13889         New begin/end methods -- handle DeferWindowPos.
13890
13891         * redisplay-output.c (redisplay_move_cursor):
13892         * redisplay-output.c (redraw_cursor_in_window):
13893         * redisplay-output.c (redisplay_update_line):
13894         * redisplay-output.c (redisplay_output_window):
13895         New begin/end methods.
13896
13897         * redisplay-tty.c:
13898         * redisplay-tty.c (tty_frame_output_begin):
13899         * redisplay-tty.c (tty_frame_output_end):
13900         * redisplay-tty.c (console_type_create_redisplay_tty):
13901         New begin/end methods.
13902
13903         * redisplay-x.c:
13904         * redisplay-x.c (x_window_output_begin):
13905         * redisplay-x.c (x_window_output_end):
13906         * redisplay-x.c (console_type_create_redisplay_x):
13907         New begin/end methods.
13908
13909         * redisplay.c (redisplay_frame):
13910         * redisplay.c (Fredisplay_echo_area):
13911         New begin/end methods.
13912         use MAYBE_DEVMETH for clear_frame; it may not exist.
13913
13914         * window.h (WINDOW_XFRAME):
13915         WINDOW_XFOO macros -- get locale and decode struct pointer.
13916
13917
13918 2000-05-12  Ben Wing  <ben@xemacs.org>
13919
13920         * emacs.c:
13921         * emacs.c (ensure_no_quitting_from_now_on):
13922         * emacs.c (fatal_error_signal):
13923         * emacs.c (mswindows_handle_hardware_exceptions):
13924         * emacs.c (main):
13925         * emacs.c (Fkill_emacs):
13926         * emacs.c (shut_down_emacs):
13927         * emacs.c (assert_failed):
13928         various improvements in fatal error handling.
13929
13930         * eval.c:
13931         move preparing_for_armageddon to emacs.c.
13932
13933         * lisp.h:
13934         declare fatal_error_in_progress.
13935
13936         * print.c:
13937         * print.c (std_handle_out_external):
13938         * print.c (std_handle_out_va):
13939         * print.c (stderr_out):
13940         * print.c (stdout_out):
13941         use console under mswin when no standard output.
13942         don't do code conversion during fatal error.
13943
13944         * scrollbar.c (Fscrollbar_page_up):
13945         * scrollbar.c (Fscrollbar_page_down):
13946         fix missing else.  reindent.
13947
13948 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13949
13950         Emergency fix.
13951
13952         * glyphs.h (GLYPH_CACHEL_DESCENT):
13953         (GLYPH_CACHEL_DESCENT):
13954         (GLYPH_CACHEL_DESCENT):
13955         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13956         used in case these are inline functions.
13957         Use more absurd values to error check.
13958
13959         include window.h for error check functions.
13960
13961 2000-05-11  Ben Wing  <ben@xemacs.org>
13962
13963         * cmdloop.c (Freally_early_error_handler):
13964         Display message box under windows; otherwise, message will disappear
13965         before it can be viewed.
13966
13967         * console-msw.c:
13968         * console-msw.c (Fmswindows_message_box):
13969         * console-msw.c (FROB):
13970         * console-msw.c (syms_of_console_mswindows):
13971         Define new fun `mswindows-message-box'.
13972         #### I will merge this into `popup-dialog-box'; just give me
13973         a bit of time.
13974
13975         * general.c:
13976         * general.c (syms_of_general):
13977         Some new symbols used in `mswindows-message-box'.
13978
13979         * glyphs.c:
13980         * glyphs.c (Fset_image_instance_property):
13981         put warning in this fun.
13982
13983         * glyphs.h:
13984         * glyphs.h (GLYPH_CACHEL_WIDTH):
13985         * glyphs.h (GLYPH_CACHEL_ASCENT):
13986         * glyphs.h (GLYPH_CACHEL):
13987         * glyphs.h (GLYPH_CACHEL_GLYPH):
13988         define error-checking versions to try to catch a bug i've seen --
13989         redisplay gets in an infinite loop because the glyph width of the
13990         continuation glyph is 65535.
13991
13992         * lisp.h:
13993         Extern message-box stuff.
13994
13995         * window.c (allocate_window):
13996         * window.c (make_dummy_parent):
13997         * window.c (Fset_window_configuration):
13998         Use EQUAL not EQ for subwindow caches to make them work a bit
13999         better. (Something is still very broken.)
14000
14001
14002 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14003
14004         * glyphs.c (image_instantiate): Suppress gcc warnings.
14005         (Fmake_image_instance): Fix doc string.
14006         * specifier.c (Fmake_specifier): Ditto.
14007
14008 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14009
14010         * paths.h.in (PATH_LOCK): Removed.
14011         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14012         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14013
14014 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14015
14016         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14017         Document (featurep '(and xemacs 21.02)).
14018
14019 2000-05-09  Ben Wing  <ben@xemacs.org>
14020
14021         * buffer.c (complex_vars_of_buffer):
14022         update modeline-format doc.
14023
14024         * device.h:
14025         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14026
14027         * emacs.c:
14028         timeline of all released versions of Emacs, for use in creating
14029         authorship comments and in synching up.
14030
14031         * glyphs-widget.c (image_instantiator_buttons):
14032         * glyphs-widget.c (image_instantiator_edit_fields):
14033         * glyphs-widget.c (image_instantiator_combo_box):
14034         * glyphs-widget.c (image_instantiator_scrollbar):
14035         * glyphs-widget.c (image_instantiator_progress_guage):
14036         * glyphs-widget.c (image_instantiator_tree_view):
14037         * glyphs-widget.c (image_instantiator_tab_control):
14038         * glyphs-widget.c (image_instantiator_labels):
14039         * glyphs-widget.c (image_instantiator_layout):
14040         * glyphs-widget.c (image_instantiator_native_layout):
14041         rename decode_domain method to governing_domain.
14042
14043         * glyphs.c:
14044         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14045         * glyphs.c (add_entry_to_device_ii_format_list):
14046         make sure we don't put an entry more than once into the list.
14047         * glyphs.c (check_instance_cache_mapper):
14048         *************************************************************
14049         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14050         HAVE BEEN GETTING.
14051         *************************************************************
14052         * glyphs.c (get_image_instantiator_governing_domain):
14053         clean up, expand on new concept of governing domain.
14054         * glyphs.c (instantiate_image_instantiator):
14055         * glyphs.c (allocate_image_instance):
14056         use governing_domain instead of cache_domain in naming.
14057         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14058         * glyphs.c (make_image_instance_1):
14059         * glyphs.c (Fmake_image_instance):
14060         allow for any domain (not just device), and process the
14061         governing domain correctly.  very big doc fix.
14062         * glyphs.c (Fimage_instance_domain):
14063         new primitive, to retrieve the governing domain of an image instance.
14064         * glyphs.c (image_instantiate):
14065         use new governing_domain stuff.  this fixes a crash you could get
14066         by instantiating certain widget glyphs in frame locales. (should
14067         signal an error instead of crashing.)
14068         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14069         * glyphs.c (Fglyphp): clean up doc.
14070         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14071         * glyphs.c (syms_of_glyphs):
14072         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14073         * glyphs.c (image_instantiator_format_create): add some comments about
14074         bogus code.
14075         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14076         for current-display-table. (Apparently Hrjove implemented in 1998 a
14077         design I wrote up in 1996, but didn't update the doc string.)
14078
14079         * glyphs.h: clean up a doc string.
14080         * glyphs.h (governing_domain):
14081         * glyphs.h (struct image_instantiator_methods):
14082         changes for governing_domain stuff.
14083
14084         * gutter.c:
14085         * gutter.c (Fgutter_specifier_p):
14086         * gutter.c (Fgutter_size_specifier_p):
14087         * gutter.c (Fgutter_visible_specifier_p):
14088         * objects.c:
14089         * objects.c (Fcolor_specifier_p):
14090         * objects.c (Ffont_specifier_p):
14091         * objects.c (Fface_boolean_specifier_p):
14092         doc strings moved to make-*-specifier.
14093
14094         * redisplay.c (add_disp_table_entry_runes_1):
14095         * redisplay.c (generate_fstring_runes):
14096         * redisplay.c (screen):
14097         add random comments and doc strings.
14098
14099         * specifier.c:
14100         * specifier.c (Fmake_specifier):
14101         major overhaul of this doc string.
14102
14103         * specifier.c (Fvalid_specifier_domain_p):
14104         comment about the bogosity of image instances being domains.
14105         * specifier.c (decode_domain):
14106         now non-static, used in glyphs.c.
14107         * specifier.c (specifier_instance):
14108         comment about the bogosity of image instances being domains.
14109         * specifier.c (Fgeneric_specifier_p):
14110         move doc string to make-generic-specifier.
14111         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14112         rebackslashify.
14113
14114         * specifier.h:
14115         * specifier.h (DOMAIN_FRAME):
14116         * specifier.h (DOMAIN_LIVE_P):
14117         * specifier.h (DOMAIN_XDEVICE):
14118         rebackslashify.
14119         add comments about problems with these macros.
14120         prototype for decode_domain.
14121
14122         * toolbar.c:
14123         * toolbar.c (Ftoolbar_specifier_p):
14124         move doc string to `make-toolbar-specifier'.
14125
14126         * window.c (window_unmap_subwindows_cache_mapper):
14127         *************************************************************
14128         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14129         HAVE BEEN GETTING.
14130         *************************************************************
14131
14132 2000-05-09  Andy Piper  <andy@xemacs.org>
14133
14134         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14135
14136         * window.c (Fset_window_configuration): reset the frame subwindow
14137         cache and re-initialize the window subwindow caches.
14138
14139         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14140
14141 2000-05-09  Ben Wing  <ben@xemacs.org>
14142
14143         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14144         DWORD.
14145
14146 2000-04-26  Mike Woolley  <mike@bulsara.com>
14147
14148         * ntheap.c: Changed recreate_heap to limit the amount reserved
14149         for the heap to that which is actually available. Also now
14150         displays a message box (with some dignostics) in the event that
14151         it still can't start.
14152
14153 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14154
14155         * callproc.c (Fold_call_process_internal): GCPRO path
14156
14157 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14158
14159         Patch by Bill Perry.
14160
14161         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14162         back data instead of #ifdef.
14163         (Fscrollbar_page_down): ditto.
14164
14165 2000-05-07  Ben Wing  <ben@xemacs.org>
14166
14167         * buffer.h:
14168         Kludge for defining Qmswindows_tstr.
14169
14170         * nt.c:
14171         * nt.c (open_input_file):
14172         * nt.c (open_output_file):
14173         * nt.c (rva_to_section):
14174         * nt.c (mswindows_executable_type):
14175         Move all memory-mapped-file routines here (some were in unexnt.c,
14176         which is bad because they are used by process-nt.c, and unexnt
14177         won't be around when portable dumping).  Synched the above routines
14178         with FSF 20.6.
14179
14180         * nt.h:
14181         Removed ifdef'd out bogus code.
14182         Fixed some prototypes.
14183
14184         * nt.h (file_data):
14185         * nt.h (OFFSET_TO_RVA):
14186         * nt.h (RVA_TO_OFFSET):
14187         * nt.h (RVA_TO_PTR):
14188         Moved the memory-mapped-file structures, macros and prototypes
14189         here, to parallel nt.c.  ntheap.h should really be removed
14190         entirely, and it's a non-portable-dumper specific file.
14191
14192         * ntheap.h (round_to_next):
14193         Moved the memory-mapped-file structures, macros and prototypes
14194         to nt.h.
14195
14196         * ntproc.c (compare_env):
14197         Moved rva_to_section and mswindows_executable_type to nt.c.
14198         Moved compare_env to process-nt.c.
14199         ntproc.c will die, one day.
14200
14201         * ntproc.c (sys_spawnve):
14202         Account for win32_ -> mswindows_.
14203
14204         * process-nt.c:
14205         * process-nt.c (struct nt_process_data):
14206         * process-nt.c (ensure_console_window_exists):
14207         * process-nt.c (compare_env):
14208         * process-nt.c (nt_create_process):
14209         * process-nt.c (nt_kill_process_by_pid):
14210         * process-nt.c (syms_of_process_nt):
14211         * process-nt.c (vars_of_process_nt):
14212         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14213         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14214         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14215         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14216         Move compare_env here from ntproc.c.
14217
14218         * process.c (Fprocess_send_region):
14219         Takes an optional fourth argument, BUFFER, which should fix some
14220         problems with call-process.
14221
14222         * syscommctrl.h:
14223         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14224
14225         * syswindows.h:
14226         Move ICC_BAR_CLASSES to syscommctrl.h.
14227         Add preliminary macros for MSWindows/Mule.  More to come.
14228
14229         * unexnt.c:
14230         * unexnt.c (unexec):
14231         open_output_file moved to nt.c.
14232
14233
14234 2000-05-05  Andy Piper  <andy@xemacs.org>
14235
14236         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14237         instance from the frame cache also since GC may catch up too late
14238         to make frame deletion sane.
14239
14240 2000-05-04  Andy Piper  <andy@xemacs.org>
14241
14242         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14243         (x_finalize_image_instance): ungcpro on deletion.
14244
14245         * glyphs.c (image_instantiator_format_create): give pointers a
14246         query geometry method so that the geometry is at least set.
14247
14248         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14249         initialize layouts if using widgets.
14250
14251 2000-05-03  Andy Piper  <andy@xemacs.org>
14252
14253         * nt.c: remove bogus reference to sysmmsystem.h
14254
14255         * gui-x.c (popup_selection_callback): fix no selection abort.
14256
14257 2000-05-02  Andy Piper  <andy@xemacs.org>
14258
14259         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14260         (mswindows_widget_instantiate): ditto.
14261
14262         * glyphs-widget.c (initialize_widget_image_instance): initialize
14263         children correctly.
14264         (widget_instantiate): cope with children and items in the same
14265         instance.
14266
14267         * glyphs.c (mark_image_instance): cope with children as a first
14268         class member.
14269         (image_instance_equal): ditto.
14270         (image_instance_hash): ditto.
14271         (image_instance_changed): ditto.
14272
14273 2000-04-30  Andy Piper  <andy@xemacs.org>
14274
14275         * glyphs.c (subwindow_query_geometry): new function. Return some
14276         defaults.
14277         (subwindow_instantiate): don't assign dimensions if none have been
14278         given.
14279         (image_instantiator_format_create): add subwindow_query_geometry.
14280         (print_image_instance): cope with layouts as widgets.
14281
14282 2000-04-29  Andy Piper  <andy@xemacs.org>
14283
14284         * frame.c (delete_frame_internal): call
14285         free_frame_subwindow_instance_cache so that all subwindows are
14286         finalized before their parent.
14287         (mark_frame): remove subwindow_cachels.
14288         (Fmake_frame): remove subwindow_cachel manipulation.
14289         (allocate_frame_core): subwindow_instance_cache is a weak list.
14290         (delete_frame_internal): set subwindow_instance_cache to nil.
14291
14292         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14293         finalization safe.
14294         (mswindows_finalize_image_instance): use the device
14295         not the domain as the domain may have died already.
14296
14297         * glyphs-x.c (x_finalize_image_instance): ditto.
14298         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14299         HEIGHT.
14300
14301         * redisplay-output.c (redisplay_unmap_subwindows): update for
14302         subwindow instance cache as a weak list.
14303         (redisplay_unmap_subwindows_maybe): ditto.
14304         (redisplay_unmap_subwindows_except_us): ditto.
14305
14306         * glyphs.c (unmap_subwindow): error checking will check the domain
14307         so don't deal with it here. Don't use cachels anymore.
14308         (map_subwindow): ditto.
14309         (update_subwindow_cachel_data): remove old accessor names.
14310         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14311         (Fresize_subwindow): don't update cachel.
14312         (mark_subwindow_cachels):
14313         (update_subwindow_cachel_data):
14314         (add_subwindow_cachel):
14315         (get_subwindow_cachel_index):
14316         (update_subwindow_cachel):
14317         (reset_subwindow_cachels):
14318         (mark_subwindow_cachels_as_not_updated): deleted.
14319         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14320         subwindow instance to the frame cache.
14321         (find_matching_subwindow): update for subwindow instance cache as
14322         a weak list.
14323         (update_widget_instances): ditto.
14324         (image_instance_type_to_mask):inlined.
14325         (free_frame_subwindow_instance_cache): new function. finalize all
14326         subwindows that are instantiated.
14327
14328         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14329         of cachel information.
14330         (IMAGE_INSTANCE_DISPLAY_X):
14331         (IMAGE_INSTANCE_DISPLAY_Y):
14332         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14333         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14334         (XIMAGE_INSTANCE_DISPLAY_X):
14335         (XIMAGE_INSTANCE_DISPLAY_Y):
14336         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14337         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14338         remove subwindow_cachel structure and function references.
14339         (image_instance_type_to_mask): inline from glyphs.c
14340
14341         * redisplay.c (redisplay_frame): remove subwindow_cachel
14342         references.
14343
14344         * frame.h (struct frame): remove subwindow_cachels.
14345         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14346
14347         * frameslots.h: add subwindow_instance_cache.
14348
14349         * window.c (replace_window): check subwindow cache of replacement.
14350         (window_unmap_subwindows_cache_mapper):
14351         (window_unmap_subwindows): new functions. Unmap all subwindows
14352         cached on this window.
14353         (mark_window_as_deleted): unmap all subwindows.
14354
14355 2000-04-27  Andy Piper  <andy@xemacs.org>
14356
14357         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14358
14359         * glyphs-widget.c (widget_layout): return something.
14360         (layout_layout): return something. Fail if not initialized.
14361         (layout_query_geometry): ditto.
14362         (image_instantiator_native_layout): new function. Initialized the
14363         native layout type.
14364         (widget_instantiate): don't do layout stuff here.
14365
14366         * glyphs.c (instantiate_image_instantiator): reorded calling or
14367         instantiate and post_instantiate with layout in between.
14368         (image_instance_layout): be more selective about deciding whether
14369         the layout has been done or not.
14370
14371         * glyphs.h (struct image_instantiator_methods): return a value
14372         from layout_method.
14373
14374 2000-04-26  Andy Piper  <andy@xemacs.org>
14375
14376         * glyphs.c (allocate_image_instance): make initial width and
14377         height unspecified. Set initialized to 0.
14378
14379         * syscommctrl.h new file. Encapsulates commctrl.h.
14380
14381         * syswindows.h new file. Encapsulates windows.h.
14382
14383         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14384         * nt.c: ditto.
14385         * console-msw.h: ditto.
14386
14387         * redisplay-tty.c (tty_output_display_block): remove layout references.
14388
14389         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14390         window handle rather than just the frame.
14391
14392         * glyphs.c (mark_image_instance): remove layout references.
14393         (print_image_instance): ditto.
14394         (image_instance_equal): ditto.
14395         (image_instance_hash): ditto.
14396         (decode_image_instance_type): ditto.
14397         (encode_image_instance_type): ditto.
14398         (image_instantiate): ditto.
14399         (allocate_glyph): ditto.
14400         (Fimage_instance_height): ditto.
14401         (Fimage_instance_width): ditto.
14402         (update_subwindow): ditto.
14403
14404         * redisplay-x.c (x_output_display_block): recode for layouts as
14405         widgets.
14406
14407         * redisplay-output.c (redisplay_output_layout): recode for layouts
14408         as widgets.
14409         (compare_runes): remove layout references.
14410
14411         * redisplay-msw.c (mswindows_output_display_block): recode for
14412         layouts as widgets.
14413
14414         * glyphs-widget.c (image_instantiator_layout): remove
14415         layout_possible_dest_types.
14416         (layout_possible_dest_types): deleted.
14417
14418         * glyphs.h (image_instance_type): remove layout references.
14419         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14420         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14421         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14422
14423 2000-04-25  Andy Piper  <andy@xemacs.org>
14424
14425         * glyphs-widget.c (image_instantiator_buttons):
14426         (image_instantiator_edit_fields):
14427         (image_instantiator_combo_box):
14428         (image_instantiator_scrollbar):
14429         (image_instantiator_progress_guage):
14430         (image_instantiator_tree_view):
14431         (image_instantiator_tab_control):
14432         (image_instantiator_labels):
14433         (image_instantiator_layout): call default post_instantiate method.
14434         (widget_post_instantiate): new function. Simply lays out the
14435         widgets.
14436
14437         * glyphs.h (struct image_instantiator_methods): add
14438         post_instantiate method.
14439
14440         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14441         method calls.
14442
14443 2000-04-23  Andy Piper  <andy@xemacs.org>
14444
14445         * glyphs.h (struct image_instantiator_methods): add
14446         decode_domain_method.
14447         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14448         derived from the domain.
14449         (IMAGE_INSTANCE_FRAME): new accessor.
14450         (XIMAGE_INSTANCE_FRAME): ditto.
14451
14452         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14453         instead of _SUBWINDOW_FRAME.
14454         (finalize_image_instance): ditto.
14455         (Fimage_instance_foreground): ditto.
14456         (Fimage_instance_background): ditto.
14457         (image_instantiate): ditto.
14458         (update_subwindow_cachel): ditto.
14459         (update_subwindow): ditto.
14460         (unmap_subwindow): ditto.
14461         (map_subwindow): ditto
14462         (subwindow_instantiate): ditto.
14463         * glyphs-msw.c (mswindows_update_widget): ditto.
14464         (mswindows_progress_gauge_instantiate): ditto.
14465         (mswindows_tab_control_update): ditto.
14466         * glyphs-x.c (x_update_widget): ditto.
14467         (x_widget_instantiate): ditto.
14468         (x_tab_control_instantiate): ditto.
14469         (x_tab_control_update): ditto.
14470         * event-msw.c (mswindows_wnd_proc): ditto
14471
14472         * glyphs-widget.c (image_instantiator_layout): use
14473         subwindow_decode_domain.
14474         (image_instantiator_buttons): ditto.
14475         (image_instantiator_edit_fields): ditto.
14476         (image_instantiator_combo_box): ditto.
14477         (image_instantiator_scrollbar): ditto.
14478         (image_instantiator_progress_guage): ditto.
14479         (image_instantiator_tree_view): ditto.
14480         (image_instantiator_tab_control): ditto.
14481         (image_instantiator_labels): ditto.
14482         (image_instantiator_layout): ditto.
14483
14484         * glyphs.c: add instance error checking to many functions.
14485         (instantiate_image_instantiator): decode device from cache_domain.
14486         (image_instantiate): partially rewrite by using
14487         decode_image_instantiator_domain to determine what domain the
14488         instance needs to be cached in.
14489         (decode_image_instantiator_domain): new function. Determine what
14490         domain the image needs to be cached in.
14491         (check_window_subwindow_cache): new error checking function.
14492         (check_instance_cache_mapper): ditto.
14493         (check_image_instance_structure): ditto.
14494         (subwindow_decode_domain): new function. Encodes a window as a
14495         subwindow's cache domain.
14496         (image_instantiator_format_create): use it for text and
14497         subwindows.
14498
14499 2000-04-21  Andy Piper  <andy@xemacs.org>
14500
14501         * glyphs.c (image_instance_device): new function.
14502         (image_instance_frame): new function.
14503         (image_instance_window): new function.
14504         (image_instance_live_p): new function.
14505
14506         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14507         cache to nil.
14508
14509         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14510         (IMAGE_INSTANCE_DOMAIN): new accessor.
14511         (XIMAGE_INSTANCE_DOMAIN): ditto.
14512
14513         * glyphs-x.c (x_finalize_image_instance): device->domain.
14514
14515         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14516         (mswindows_finalize_image_instance): ditto.
14517
14518         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14519         (gif_instantiate): ditto.
14520         (png_instantiate): ditto.
14521         (tiff_instantiate): ditto.
14522
14523         * glyphs.c (instantiate_image_instantiator): use domain rather
14524         than device.
14525         (mark_image_instance): device -> domain.
14526         (print_image_instance): ditto.
14527         (finalize_image_instance): ditto.
14528         (image_instance_equal): ditto.
14529         (allocate_image_instance): ditto.
14530         (Fcolorize_image_instance): ditto.
14531         (query_string_geometry): ditto.
14532         (image_instantiate): ditto
14533         (query_string_font): ditto.
14534         (image_instantiate): ditto.
14535         (update_subwindow): ditto.
14536         (unmap_subwindow): ditto.
14537         (map_subwindow): ditto.
14538         (subwindow_instantiate): ditto.
14539
14540         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14541         (DOMAIN_FRAME): ditto.
14542         (DOMAIN_WINDOW): ditto.
14543         (DOMAIN_LIVE_P): ditto.
14544         (XDOMAIN_DEVICE): ditto.
14545         (XDOMAIN_FRAME): ditto.
14546         (XDOMAIN_WINDOW): ditto.
14547
14548         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14549         a valid specifier domain.
14550
14551 2000-04-19  Andy Piper  <andy@xemacs.org>
14552
14553         * glyphs-widget.c (syms_of_glyphs_widget): remove
14554         widget-callback-current-channel.
14555         (vars_of_glyphs_widget): ditto.
14556         * glyphs.h: ditto
14557
14558         * gui.c (get_gui_callback): revert to previous behaviour.
14559
14560 2000-04-18  Andy Piper  <andy@xemacs.org>
14561
14562         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14563         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14564         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14565
14566         * glyphs.c (image_instance_equal): add margin_width.
14567         (image_instance_hash): ditto.
14568
14569         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14570         (layout_query_geometry): ditto.
14571         (layout_layout): ditto.
14572         (syms_of_glyphs_widget): add margin-width.
14573         (image_instantiator_layout): allow margin-width.
14574
14575         * glyphs.c (update_widget_instances): make a normal function.
14576         (syms_of_glyphs): remove Qupdate_widget_instances.
14577         * glyphs.h: ditto.
14578
14579         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14580         so that we don't corrupt ideas about the last event or
14581         command. Remove widget-callback-current-channel fiddling.
14582         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14583
14584 2000-05-01  Martin Buchholz <martin@xemacs.org>
14585
14586         * XEmacs 21.2.33 is released.
14587
14588 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14589
14590         * make-src-depend: Allow dots in header file name.
14591
14592 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14593
14594         * mule-charset.h (struct charset_lookup): Add
14595         next_allocated_1_byte_leading_byte and
14596         next_allocated_2_byte_leading_byte.
14597         * mule-charset.c: Move above two variables so that those values
14598         will be dumped.
14599
14600 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14601
14602         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14603         when string length is zero.
14604         (find_charsets_in_emchar_string): Ditto.
14605
14606 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14607
14608         * lisp.h: extern Qdialog and Qmenubar.
14609
14610         * gui-x.c: added events.h.
14611                 also fixed typo which made the file uncompilable.
14612
14613         * general.c: Added Qmenubar and Qdialog
14614
14615 2000-04-28  Ben Wing  <ben@xemacs.org>
14616
14617         * frame-msw.c (mswindows_init_frame_1):
14618         * frame-msw.c (mswindows_mark_frame):
14619         * event-msw.c (mswindows_enqueue_dispatch_event):
14620         * console-msw.h:
14621         * console-msw.h (struct mswindows_frame):
14622         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14623         there are now three hash tables for callbacks.
14624         mswindows_enqueue_dispatch_event is no longer static.
14625
14626         * dialog-x.c (maybe_run_dbox_text_callback):
14627         * dialog-x.c (dbox_descriptor_to_widget_value):
14628         switch to new cons3 form for callbacks.
14629
14630         * glyphs-msw.c (mswindows_register_gui_item):
14631         * glyphs-msw.c (mswindows_widget_instantiate):
14632         * glyphs-msw.c (add_tree_item):
14633         * glyphs-msw.c (add_tab_item):
14634         new image instance parameter, so it can be passed to callback-ex.
14635         respect :callback-ex as well as :callback.
14636
14637         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14638         add :callback-ex.
14639
14640         * glyphs.c (print_image_instance):
14641         prettify, e.g. now prints widget type.
14642
14643         * gui-x.h:
14644         certain funs have new image instance parameter.
14645
14646         * gui.c:
14647         * gui.c (get_gui_callback):
14648         * gui.c (gui_item_add_keyval_pair):
14649         * gui.c (gui_item_init):
14650         * gui.c (gui_add_item_keywords_to_plist):
14651         * gui.c (mark_gui_item):
14652         * gui.c (gui_item_hash):
14653         * gui.c (gui_item_equal):
14654         * gui.c (copy_gui_item):
14655         * gui.c (syms_of_gui):
14656         recognize callback-ex in a number of places.
14657         also, fix the annoying "can't get out of yes-no dialog" bug.
14658
14659         * gui.h:
14660         * gui.h (struct Lisp_Gui_Item):
14661         recognize callback-ex in a number of places.
14662
14663         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14664         new parameter in button_item_to_widget_value.
14665
14666         * glyphs-x.c (x_update_widget):
14667         * glyphs-x.c (x_button_instantiate):
14668         * glyphs-x.c (x_button_update):
14669         * glyphs-x.c (x_progress_gauge_instantiate):
14670         * glyphs-x.c (x_edit_field_instantiate):
14671         * glyphs-x.c (x_combo_box_instantiate):
14672         * glyphs-x.c (x_tab_control_instantiate):
14673         * glyphs-x.c (x_label_instantiate):
14674         new image instance parameter in various places.
14675
14676         * event-Xt.c:
14677         * event-Xt.c (enqueue_Xt_dispatch_event):
14678         this fun gets exported.
14679
14680         * gui-msw.c:
14681         * gui-msw.c (mswindows_handle_gui_wm_command):
14682         handle both :callback and :callback-ex, and generate our own
14683         event because it's one of the callback-ex arguments.
14684
14685         * gui-x.c:
14686         * gui-x.c (popup_selection_callback):
14687         handle both :callback and :callback-ex, and generate our own
14688         event because it's one of the callback-ex arguments.
14689         * gui-x.c (button_item_to_widget_value):
14690         * gui-x.c (gui_items_to_widget_values_1):
14691         * gui-x.c (gui_item_children_to_widget_values):
14692         * gui-x.c (gui_items_to_widget_values):
14693         new image instance parameter in various places.
14694
14695         * fns.c (Freplace_list):
14696         fix small typo in doc string.
14697
14698         * lisp.h:
14699         declare enqueue_Xt_dispatch_event.
14700
14701 2000-04-28  Ben Wing  <ben@xemacs.org>
14702
14703         * buffer.c:
14704         * buffer.c (Frecord_buffer):
14705         * buffer.c (syms_of_buffer):
14706         delete record-buffer-hook.
14707
14708         * fns.c:
14709         * fns.c (Freplace_list):
14710         * fns.c (syms_of_fns):
14711         new primitive replace-list.
14712
14713         * frameslots.h:
14714         slot for old buffer-alist.
14715
14716         * lisp.h:
14717         exfun replace-list.
14718
14719         * redisplay.c:
14720         * redisplay.c (redisplay_frame):
14721         * redisplay.c (syms_of_redisplay):
14722         * redisplay.c (vars_of_redisplay):
14723         new hook buffer-list-changed-hook.
14724         call it.
14725
14726 2000-04-27  Ben Wing  <ben@xemacs.org>
14727
14728         * extents.h: extern in_modeline_generation.
14729
14730         * redisplay.c (generate_formatted_string_db): set
14731         in_modeline_generation.
14732
14733         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14734         flags if in modeline generation.  otherwise frame-modified-tick
14735         is ticked far too often.
14736         Declare in_modeline_generation.
14737
14738 2000-04-26  Ben Wing  <ben@xemacs.org>
14739
14740         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14741         option.
14742         (vars_of_emacs): add quick-build as an error-checking option.
14743         A bit kludgy, but there doesn't seem much point in creating
14744         a real var for this.
14745
14746         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14747
14748 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14749
14750         * redisplay.h (struct display_line): Add a new variable,
14751         line_continuation.
14752
14753         * redisplay.c (create_text_block): Set dl->line_continuation if
14754         the line continues.
14755         (create_string_text_block): Ditto.
14756         (regenerate_window_incrementally): Use line_continuation instead
14757         of searching continuation glyph.
14758         (add_margin_runes): Call add_glyph_rune.
14759         (add_glyph_rune): Handle margin glyph.
14760
14761 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14762
14763         * filelock.c (fill_in_lock_file_name):
14764         ANSIfy.
14765         Check for IS_ANY_SEP instead of '/'.
14766         (lock_file_1):
14767         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14768         Never check errno without first seeing that system call failed.
14769         (unlock_file): Add GCPRO.
14770         (Flock_buffer): Fix docstring.
14771         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14772
14773 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14774
14775         * sysdep.c (get_pty_max_bytes):
14776         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14777         strings longer than 252 bytes.
14778
14779         * md5.c: Unconditionally include ANSI header <limits.h>
14780
14781         * glyphs-x.c (convert_EImage_to_XImage):
14782         * lisp-union.h (union Lisp_Object):
14783         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14784
14785 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14786
14787         * filelock.c (current_lock_owner): Remove unused variable o, p.
14788
14789 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14790
14791         * callint.c: Remove multiply defined symbol Qlet
14792         (syms_of_callint): ditto.
14793
14794 2000-04-14  Andy Piper  <andy@xemacs.org>
14795
14796         * general.c (syms_of_general): add last-command, this-command, let
14797         and funcall.
14798
14799         * lisp.h: declare various symbols.
14800
14801         * glyphs.h: declare Qwidget_callback_current_channel;
14802
14803         * glyphs-widget.c (syms_of_glyphs_widget): add
14804         Qgui_callback_current_channel.
14805         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14806
14807         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14808         widget-callback-current-channel when invoking the interactive
14809         arg. Also bind last-command and next-command when invoking the
14810         widget updates.
14811         * gui-x.c (popup_selection_callback): ditto.
14812
14813         * gui.c (get_gui_callback): massage args so that we are always
14814         calling eval. This allows us to add our own variable bindings
14815         outside.
14816
14817         * glyphs-x.c (x_button_instantiate): use
14818         gui_items_to_widget_values since this is GC safe.
14819         (x_progress_gauge_instantiate): ditto.
14820         (x_edit_field_instantiate): ditto.
14821         (x_label_instantiate): ditto.
14822
14823         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14824         (emacs_Xt_event_widget_focus_out): new function
14825         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14826         focus.
14827         (emacs_Xt_event_add_widget_actions): new function. add focus
14828         functions as actions.
14829         (init_event_Xt_late): use it.
14830
14831 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14832
14833         * event-stream.c (Fdispatch_event): Doc fix.
14834
14835 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14836
14837         * postgresql.c: Remove all references to PQsetenv*.
14838
14839         * postgresql.h: Remove references to PGsetenvHandler object.
14840         * lrecord.h (lrecord_type): Ditto.
14841
14842 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14843
14844         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14845         real_heigh and real_width members, and accessor macros for these.
14846
14847         * glyphs-msw.c (init_image_instance_geometry): New function.
14848         (init_image_instance_from_dibitmap): Use it.
14849         (mswindows_resource_instantiate): Use it.
14850         (init_image_instance_from_xbm_inline): Use it.
14851         (mswindows_initialize_image_instance_mask): Use real bitmap
14852         geometry.
14853         (mswindows_create_resized_bitmap): Ditto.
14854         (mswindows_create_resized_mask): Ditto.
14855
14856         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14857         and bitmap to their surface size.
14858
14859 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14860
14861         * process-unix.c (unix_send_process): Guard against process MIA
14862         after Faccept_process_output.
14863
14864 2000-04-11  Ben Wing  <ben@xemacs.org>
14865
14866         * eval.c (unbind_to_hairy): fix brokenness introduced by
14867         nanosecond speed improvements.
14868
14869 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14870
14871         * sunplay.c (init_device): To play sounds correctly, the device
14872         apparently needs to be initialized at least once by XEmacs.  Make
14873         it so.
14874
14875 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14876
14877         * redisplay.c (add_margin_runes): Add text image glyph
14878           handling.
14879
14880 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14881
14882         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14883         gcc is newer than 2.5.
14884
14885 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14886
14887         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14888
14889         * fns.c (size_bit_vector):
14890         * alloc.c (size_vector):
14891         (make_vector_internal):
14892         (make_bit_vector_internal):
14893         (sweep_bit_vectors_1):
14894         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14895
14896 2000-04-06  Andy Piper  <andy@xemacs.org>
14897
14898         * gmalloc.c (malloc): undo previous change.
14899         (malloc): ditto.
14900         (free): ditto.
14901         (realloc): ditto.
14902
14903 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14904
14905         * line-number.c (buffer_line_number): Revert to former version.
14906
14907 2000-04-06  Andy Piper  <andy@xemacs.org>
14908
14909         * gmalloc.c (malloc): add error checking.
14910         (malloc): ditto.
14911         (free): ditto.
14912         (realloc): ditto.
14913
14914         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14915         button_item_to_widget_value arg.
14916
14917         * glyphs-x.c (x_button_instantiate): add extra
14918         button_item_to_widget_value arg.
14919         (x_progress_gauge_instantiate): ditto.
14920         (x_edit_field_instantiate): ditto.
14921         (x_label_instantiate): ditto.
14922
14923         * gui-x.c (gui_items_to_widget_values_1): add extra
14924         button_item_to_widget_value arg.
14925         (button_item_to_widget_value): add extra menu_item_p arg.
14926
14927         * gui-x.h: change signature of button_item_to_widget_value.
14928
14929         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14930         button_item_to_widget_value arg.
14931
14932 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14933
14934         * buffer.h (struct buffer): auto_save_modified should be long.
14935
14936 2000-04-05  Andy Piper  <andy@xemacs.org>
14937
14938         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14939         type.
14940         (button_query_geometry): give a little more room so that athena
14941         buttons fit.
14942
14943 2000-04-05  Andy Piper  <andy@xemacs.org>
14944
14945         * faces.c (complex_vars_of_faces): The widget face should inherit
14946         the font of the gui-element face.
14947
14948 2000-04-04  Andy Piper  <andy@xemacs.org>
14949
14950         * glyphs-x.c (x_button_update): new function. unconditionally
14951         update a button's state when the instance is dirty.
14952         (image_instantiator_format_create_glyphs_x): add x_button_update.
14953         (x_widget_instantiate): remove old resize cruft.
14954
14955 2000-04-02  Andy Piper  <andy@xemacs.org>
14956
14957         * frame.c (change_frame_size_1): The introduction of gutters means
14958         that we need to allow 0 as a potential frame dimension.
14959
14960 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14961
14962         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14963         image glyph if allow_cursor.
14964         (add_hscroll_rune): Don't allow cursor to border glyph.
14965         (create_text_block): Ditto.
14966
14967         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14968         text not in buffer.
14969         (redisplay_output_layout): Call ensure_face_cachel_complete for
14970         text image glyph.
14971
14972
14973 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14974
14975         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14976
14977         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14978         not in buffer
14979
14980         * redisplay-tty.c (tty_output_display_block): Delete the routine
14981         for text image glyph
14982         * redisplay-x.c (x_output_display_block): ditto
14983         * redisplay-msw.c (mswindows_output_display_block): ditto
14984
14985 2000-02-02  Mike Alexander  <mta@arbortext.com>
14986
14987         Note: Some of these were committed by accident as part of other
14988         patches.
14989
14990         * regex.c (regex_compile): Avoid compiler warnings.
14991
14992         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14993
14994         * nt.h: Declare term_ntproc correctly.
14995
14996         * nt.c: Remove incorrect declaration of get_home_directory which
14997         is declared correctly in lisp.h.
14998
14999         * keymap.c (get_keyelt): Avoid compiler warnings.
15000         (raw_lookup_key_mapper): Avoid compiler warnings.
15001
15002         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15003
15004         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15005
15006         * filemode.c (mode_string): Avoid compiler warnings.
15007
15008         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15009         avoid warning.
15010
15011         * events-mod.h: Undef some things that winuser.h defines differently.
15012
15013         * data.c (Faset): Avoid compiler warnings.
15014
15015         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15016
15017 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15018
15019         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15020         Fall through to simple beep on error.
15021         Replace "extern" by real header file.
15022
15023         * linuxplay.c: Use nativesound.h
15024         (play_sound_data): Return error code. Be less verbose on error.
15025
15026         * sunplay.c: Use nativesound.h
15027         (play_sound_data): Return error code. Be less verbose on error.
15028
15029         * ntplay.c: Use nativesound.h
15030         (play_sound_data): Return fake error code
15031
15032         * sgiplay.c: Use nativesound.h
15033         (play_sound_data): Return error code
15034
15035         * hpplay.c: Use nativesound.h, partially implement
15036         new error code. Break compilation until finished.
15037         (play_sound_data): error code.
15038
15039         * nativesound.h (play_sound_file):
15040           (play_sound_data): Prototype in new header.
15041
15042 2000-03-31  Andy Piper  <andy@xemacs.org>
15043
15044         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15045         for toggle and radio buttons.
15046         (image_instantiator_buttons): use it.
15047
15048 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15049
15050         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15051         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15052         found. Scrollbar event probably belonged to some old config.
15053
15054 2000-03-31  Andy Piper  <andy@xemacs.org>
15055
15056         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15057         than 1.
15058         (initialize_widget_image_instance): default layout to
15059         LAYOUT_HORIZONTAL rather than 0.
15060         (widget_instantiate): reverse the item list at the end rather than
15061         every iteration.
15062         (layout_layout): re-code for the border text at the front of the
15063         item list rather than at the end.
15064         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15065         provided by the user.
15066         (widget_query_geometry): comment.
15067
15068 2000-03-30  Andy Piper  <andy@xemacs.org>
15069
15070         * glyphs-widget.c (image_instantiator_layout): allow standard
15071         widget keywords in layouts.
15072
15073         * gutter.c (output_gutter): cope with nil gutter contents.
15074
15075         * frame.c (Fset_frame_properties): add gutter docs.
15076
15077 2000-03-29  Andy Piper  <andy@xemacs.org>
15078
15079         * toolbar-msw.c (TBSTYLE_FLAT): add.
15080         (mswindows_output_toolbar): minor fiddling.
15081
15082 2000-03-29  Andy Piper  <andy@xemacs.org>
15083
15084         * gutter.c (output_gutter): force gutter size recalculation if
15085         what we are trying to display won't fit.
15086         (update_gutter_geometry): new function. A per-gutter version of
15087         update_frame_gutter_geometry.
15088         (update_frame_gutter_geometry): use it.
15089         (redraw_exposed_gutter): add extra debugging output.
15090
15091 2000-03-28  Mike Alexander  <mta@arbortext.com>
15092
15093         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15094         (pdump_file_unmap): Implement it on Windows
15095         (pdump_file_get): Save alocated handles for pdump_file_unmap
15096
15097 2000-03-28  Andy Piper  <andy@xemacs.org>
15098
15099         * gui.c (get_gui_callback): treat Quit specially.
15100
15101 2000-03-27  Andy Piper  <andy@xemacs.org>
15102
15103         * glyphs.c (image_instantiate): be careful to check in the same
15104         way we assigned.
15105
15106 2000-03-27  Didier Verna  <didier@xemacs.org>
15107
15108         * config.h.in: define the proper SMART_INCLUDE macro.
15109         handle renaming of `foo_h_path' to `foo_h_file'.
15110
15111         * database.c: ditto.
15112
15113         * emacs.c: ditto.
15114
15115         * linuxplay.c: ditto.
15116
15117         * terminfo.c: ditto.
15118
15119         * tooltalk.h: ditto.
15120
15121 2000-03-27  Andy Piper  <andy@xemacs.org>
15122
15123         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15124         gets updated whenever the face might have changed.
15125
15126 2000-03-26  Mike Alexander  <mta@arbortext.com>
15127
15128         * dumper.c (pdump_resource_free): Fix the comment.
15129
15130 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15131
15132         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15133
15134 2000-03-22  Mike Alexander  <mta@arbortext.com>
15135
15136         * dumper.c: Include Windows headers on Windows
15137         (pdump_resource_free): Add a body to the function
15138         (pdump_load): exe_name -> exe_path and add some comments.
15139
15140 2000-03-25  Mike Alexander  <mta@arbortext.com>
15141
15142         * gui.c (copy_gui_item_tree): Return a value in all cases
15143
15144 2000-03-21  Didier Verna  <didier@xemacs.org>
15145
15146         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15147         lwlib/config.h.in.
15148         (SMART_INCLUDE): new macro.
15149         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15150         the proper location.
15151
15152         * postgresql.c: use it.
15153
15154         * inline.c: ditto.
15155
15156 2000-03-24  Andy Piper  <andy@xemacs.org>
15157
15158         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15159         do this.
15160
15161 2000-03-24  Andy Piper  <andy@xemacs.org>
15162
15163         * redisplay-output.c (compare_runes): use image_instance_changed
15164         to detect changes. Do not depend on glyphs_changed, only depend on
15165         dirtiness.
15166          (redisplay_output_layout): add debug messages.
15167         (compare_runes): ditto.
15168
15169         * glyphs.h: declare new functions.
15170         (struct Lisp_Image_Instance): remove percent and associated
15171         accessors.
15172
15173         * gui.h: declare new copying functions.
15174
15175         * gui.c (copy_gui_item_tree): new function.
15176         (copy_gui_item): new function.
15177         (gui_item_id_hash): revert to standard hash.
15178         (gui_item_hash): ditto.
15179         (gui_item_hash_internal): deleted.
15180         (mark_gui_item): mark value.
15181         (gui_item_add_keyval_pair): add value.
15182         (gui_item_init): ditto.
15183         (gui_add_item_keywords_to_plist): ditto.
15184         (gui_item_equal): ditto.
15185         (syms_of_gui): add Q_value.
15186
15187         * glyphs-x.c (x_progress_gauge_update): use pending items and
15188         value for setting the state.
15189         (x_update_widget): don't set items from pending here.
15190
15191         * glyphs-widget.c (update_widget): update items here.
15192         (progress_gauge_set_property): use items for storing value. Put
15193         new value in pending items.
15194
15195         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15196         items for new value. Convert percent -> value.
15197         (mswindows_tab_control_update): don't update items here.
15198
15199         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15200         (update_subwindow): ditto.
15201         (image_instance_changed): new function. Compare hash values and
15202         past and present widget items.
15203         (image_instantiate): We more careful about where we instantiate
15204         things.
15205         (image_instantiate): add error checking.
15206
15207         * gutter.c (syms_of_gutter): use -hook.
15208
15209 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15210
15211         * console-tty.c (Fset_console_tty_input_coding_system): Use
15212         Qkeyboard.
15213         (Fset_console_tty_output_coding_system): Use Qterminal.
15214         (tty_init_console): Use Qkeyboard and Qterminal.
15215
15216 2000-03-21  Ben Wing  <ben@xemacs.org>
15217
15218         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15219         From Mike Alexander <mta@arbortext.com>.
15220
15221 2000-03-21  Ben Wing  <ben@xemacs.org>
15222
15223         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15224         process brokenness.  Proper implementation to come.
15225         * callproc.c:
15226         Rename call-process-internal to old-call-process-internal.
15227         New impl. in process.el.
15228
15229 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15230
15231         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15232
15233 2000-03-20  Andy Piper  <andy@xemacs.org>
15234
15235         * glyphs.c (full_list_hash): make hashes of the same elements in
15236         different orders return different values.
15237
15238 2000-03-20  Martin Buchholz <martin@xemacs.org>
15239
15240         * XEmacs 21.2.32 is released.
15241
15242 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15243
15244         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15245         (DFC_MALLOC_USE_CONVERTED_DATA):
15246         Add aliasing-safe casts to allow use with char* or unsigned char*
15247         lvalues.
15248
15249         * eldap.c (Fldap_open):
15250         (Fldap_search_basic):
15251         (Fldap_add):
15252         (Fldap_modify):
15253         Make C++-compilable.
15254         Make sure GCPRO'ed variables are initialized.
15255         Use temp variables to avoid repeated calls to Flength.
15256
15257 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15258
15259         * sysfile.h:
15260         Make sure PATH_MAX is always defined.
15261         Include limits.h for PATH_MAX.
15262         Deprecate use of MAXPATHLEN.
15263
15264 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15265
15266         * emacs.c: Add reinit_vars_of_fileio.
15267         * symsinit.h: Add reinit_vars_of_fileio.
15268         * fileio.c (reinit_vars_of_fileio): New.
15269         * fileio.c (Fmake_temp_name):
15270         Initialize temp_name random number from microseconds to make
15271         collisions even less likely.  Initialize always at process startup
15272         time.  (make-temp-name) used to return the same file name twice in
15273         a row when PDUMP.
15274         Random stylistic fiddling.
15275         Comment fixes.
15276
15277 2000-03-20  Andy Piper  <andy@xemacs.org>
15278
15279         * glyphs.c (image_instantiate): allow text glyphs to be
15280         instantiated in the minibuffer window.
15281
15282 2000-03-19  Andy Piper  <andy@xemacs.org>
15283
15284         * glyphs.c (image_instance_hash): be careful about which items we
15285         hash on.
15286
15287         * glyphs-widget.c (tab_control_set_property): record into pending
15288         items rather than the actual items.
15289
15290         * glyphs-x.c (x_update_widget): use pending items to update with.
15291
15292         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15293         to update with.
15294
15295         * glyphs.c (mark_image_instance): mark pending items.
15296
15297         * window.c (Fset_window_configuration): record the buffer.
15298         (Fselect_window): totally revert previous change which breaks many
15299         things.
15300
15301 2000-03-18  Andy Piper  <andy@xemacs.org>
15302
15303         * glyphs-msw.c (mswindows_tab_control_update): force selected
15304         item.
15305
15306         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15307         window domain cache, otherwise we get inconsistencies at
15308         startup. There is something fishy at startup which can lead to the
15309         minibuffer being the selected window when the gutter content is
15310         instantiated.
15311
15312         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15313         gcpros.
15314         (parse_gui_item_tree_children): ditto.
15315         (parse_gui_item_tree_item): ditto.
15316
15317         * glyphs.c (Fupdate_widget_instances): return something.
15318
15319 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15320
15321         * window.c (Fselect_window): Undo 2000-03-17 change.
15322
15323 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15324
15325         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15326         against v7.0 libraries.  Insta-coredump city until the postgres
15327         folks fix it.
15328
15329 2000-03-17  Andy Piper  <andy@xemacs.org>
15330
15331         * faces.c (complex_vars_of_faces): don't give the widget face an
15332         inherited background pixmap.
15333
15334         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15335         selected item.
15336
15337         * event-stream.c (Fdispatch_non_command_events): return something.
15338
15339         * gutter.c (output_gutter): use widget face.
15340         (clear_gutter): ditto.
15341
15342         * NEWS: adjust again.
15343
15344         * window.c (Fselect_window): make sure this runs to completion to
15345         avoid oddities with Fset_window_configuration.
15346         (Fcurrent_window_configuration): in general do not save the
15347         minibuffer as the selected window.
15348
15349         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15350
15351 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15352
15353         * emacs.c (Frunning_temacs_p): Revert previous patch.
15354         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15355
15356 2000-03-16  Andy Piper  <andy@xemacs.org>
15357
15358         * glyphs-x.c (x_tab_control_update): if no widget values then
15359         return.
15360
15361         * NEWS: update for new features.
15362
15363         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15364         synthetic event to the native system.
15365         (reinit_vars_of_event_Xt): set force_event_pending to
15366         emacs_Xt_force_event_pending.
15367
15368         * events.h (struct event_stream): add force_event_pending.
15369
15370         * specifier.c (recompute_one_cached_specifier_in_window): add
15371         comment.
15372
15373         * redisplay.c (redisplay_frame): don't call
15374         update_frame_subwindows. Reset subwindow cachels when
15375         subwindows_changed, removing this was an optimization too far.
15376
15377         * redisplay-output.c (compare_runes): reorganize so that we catch
15378         glyph changes when we want them. Set optimize_output when this
15379         would help layouts.
15380         (redisplay_output_layout): remove frame_really_changed, use
15381         optimize_output instead.
15382
15383         * redisplay-msw.c (mswindows_output_display_block): reset
15384         optimize_output after outputting a glyph.
15385         * redisplay-x.c (x_output_display_block): ditto.
15386         * redisplay-tty.c (tty_output_display_block): ditto.
15387
15388         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15389         functions.
15390         (gutter_specs_changed): do specific gutter positions.
15391         (top_gutter_specs_changed): new function. Only update the
15392         specified gutter specs.
15393         (bottom_gutter_specs_changed): ditto.
15394         (left_gutter_specs_changed): ditto.
15395         (right_gutter_specs_changed): ditto.
15396
15397         * gui.c (gui_item_hash_internal): new function, does a real hash.
15398         (gui_item_id_hash): use it.
15399         (gui_item_hash): hash the eval'ed gui_item.
15400
15401         * gui-x.c (popup_selection_callback): send an eval event to call
15402         Fupdate_widget_instances.
15403
15404         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15405         to call Fupdate_widget_instances.
15406
15407         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15408         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15409
15410         * glyphs.c: (update_frame_subwindows): deleted.
15411         (Fupdate_widget_instances): new function for updating the dirty
15412         state of widgets that might have changed.
15413         (syms_of_glyphs): add Qupdate_widget_instances.
15414         (full_list_hash): hash a list completely.
15415         (image_instance_hash): use it for items and properties.
15416
15417         * frame-msw.c (mswindows_size_frame_internal): remove unused
15418         variable.
15419
15420         * faces.h (struct face_cachel): fix comment.
15421
15422         * event-stream.c (Fdispatch_non_command_events): new
15423         function. Process non-command events, forcing an event cycle
15424         beforehand.
15425         (syms_of_event_stream): declare.
15426         (event_stream_force_event_pending): new function. Force an event
15427         on the native event queue so that an event cycle will occur next
15428         time we check.
15429
15430         * event-msw.c:
15431         (struct ntpipe_shove_stream):
15432         (mswindows_enqueue_dispatch_event):
15433         (mswindows_dequeue_dispatch_event):
15434         (mswindows_cancel_dispatch_event):
15435         (mswindows_pump_outstanding_events):
15436         (mswindows_drain_windows_queue):
15437         (mswindows_handle_paint):
15438         (mswindows_wnd_proc):
15439         (mswindows_key_to_emacs_keysym):
15440         (get_process_input_waitable):
15441         (emacs_mswindows_delete_stream_pair): re-indent file.
15442         (mswindows_need_event): do not process further fds if the windows
15443         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15444         fixes the 100% cpu problem.
15445         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15446
15447 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15448
15449         * alloc.h: New.
15450         * dumper.h: New.
15451         * dumper.c: New.
15452
15453         * emacs.c: Moved dump file searching to dumper.c.
15454         (Frunning_temacs_p): Fixed.
15455
15456         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15457         last_lrecord_type_index_assigned.
15458
15459 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15460
15461         * symsinit.h: Added reinit parameter to init_console_stream
15462         declaration.
15463
15464         * lisp.h: Added file parameter to pdump_load declaration.
15465
15466         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15467         support.  Added dump file searching.
15468
15469         * config.h.in: Added EMACS_PROGNAME.
15470
15471         * console-stream.c (init_console_stream): Fix reinitialisation
15472         when running from temacs.
15473
15474         * alloc.c (pdump): Add id support.
15475         (pdump_load): Add file parameter and signature/id support.
15476
15477         * Makefile.in.in: Add full pdump support.
15478
15479 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15480
15481         * postgresql.c: Update documentation to reflect latest code
15482         status.
15483         (print_result): Show tuple counts in printed representation when
15484         appropriate.
15485         (Fpq_put_nbytes): MULE-ize.
15486         (Fpq_get_line_async): Ditto.
15487
15488 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15489
15490         * postgresql.c (Fpq_lo_import): Fix return value.
15491         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15492
15493 2000-03-13  Ben Wing  <ben@xemacs.org>
15494
15495         * alloc.c (pdump_load):
15496         Fix compile warning under mswin.
15497
15498 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15499
15500         * postgresql.c: Mule-ization, bug fixes.
15501         Use PG_CODING to encapsulate coding system name changes.
15502         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15503         (pg-coding-system): Create.
15504
15505         (Fpq_conn_defaults): Mule-ize.
15506         (Fpq_connectdb): Mule-ize & bug fix.
15507         (Fpq_connect_start): Mule-ize.
15508         (Fpq_set_client_encoding): Mule-ize.
15509         (Fpq_finish): Document `DEAD' connection status.
15510         (Fpq_clear): Ditto.
15511         (Fpq_pgconn): Mule-ize.
15512         (Fpq_exec): Mule-ize & bug fix.
15513         (Fpq_send_query): Ditto.
15514         (Fpq_get_result): Ditto.
15515         (Fpq_res_status): Mule-ize.
15516         (Fpq_result_error_message): Mule-ize.
15517         (Fpq_ntuples): fix comments.
15518         (Fpq_fname): Mule-ize.
15519         (Fpq_fnumber): Mule-ize.
15520         (Fpq_ftype): fix comments.
15521         (Fpq_get_value): Mule-ize.
15522         (Fpq_cmd_status): Ditto.
15523         (Fpq_cmd_tuples): Ditto.
15524         (Fpq_oid_value): Ditto.
15525         (Fpq_notifies): Ditto.
15526         (Fpq_lo_import): Ditto.
15527         (Fpq_lo_export): Ditto.
15528         (Fpq_get_line): Ditto.
15529         (Fpq_put_line): Mule-ize and bug fix.
15530         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15531
15532 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15533
15534         * postgresql.c (vars_of_postgresql): Mule-ize.
15535         (Fpq_conn_defaults): Ditto.
15536
15537 2000-03-12  Ben Wing  <ben@xemacs.org>
15538
15539         * alloc.c (Fmake_byte_code):
15540         * alloc.c (debug_string_purity_print):
15541         * alloc.c (pdump_backtrace):
15542         * alloc.c (pdump_get_indirect_count):
15543         * alloc.c (pdump_register_sub):
15544         * alloc.c (pdump_register_object):
15545         * alloc.c (pdump_register_struct):
15546         * alloc.c (pdump_dump_data):
15547         * alloc.c (pdump_reloc_one):
15548         Minor cleanups.
15549
15550         * console-msw.c:
15551         * console-msw.c (GetConsoleHwnd):
15552         * console-msw.c (msw_hide_console):
15553         * console-msw.c (msw_show_console):
15554         * console-msw.c (msw_ensure_console_buffered):
15555         * console-msw.c (msw_output_console_string):
15556         * console-msw.c (console_type_create_mswindows):
15557
15558         a) Added functions to manipulate the console window for use with
15559         shell support.
15560
15561         b) Added support for writing text to the console, which is now
15562         used under Windows when xemacs is not being run non-interactively,
15563         to write text that would otherwise be destined for stdout because
15564         under these circumstances, text written to stdout tends to
15565         disappear and not be seen.
15566
15567         * console-msw.h:
15568         * event-Xt.c:
15569         * event-Xt.c (x_event_to_emacs_event):
15570         * event-Xt.c (describe_event_window):
15571         * events-mod.h (XEMACS_MOD_CONTROL):
15572         * events.c:
15573         * events.c (Fmake_event):
15574         * events.c (character_to_event):
15575         * events.c (event_to_character):
15576         * events.c (format_event_object):
15577         * events.c (Fevent_modifiers):
15578         * events.h:
15579         * events.h (struct key_data):
15580         * events.h (struct button_data):
15581         * events.h (struct misc_user_data):
15582         * frame-x.c (Fcde_start_drag_internal):
15583         * frame-x.c (Foffix_start_drag_internal):
15584         * gpmevent.c (Freceive_gpm_event):
15585         * keymap.c:
15586         * keymap.c (bucky_sym_to_bucky_bit):
15587         * keymap.c (control_meta_superify):
15588         * keymap.c (make_key_description):
15589         * keymap.c (keymap_lookup_directly):
15590         * keymap.c (create_bucky_submap):
15591         * keymap.c (keymap_store):
15592         * keymap.c (define_key_check_and_coerce_keysym):
15593         * keymap.c (define_key_parser):
15594         * keymap.c (define_key_alternate_name):
15595         * keymap.c (Fdefine_key):
15596         * keymap.c (raw_lookup_key_mapper):
15597         * keymap.c (struct map_keymap_unsorted_closure):
15598         * keymap.c (map_keymap_unsorted_mapper):
15599         * keymap.c (map_keymap_sort_predicate):
15600         * keymap.c (map_keymap_sorted):
15601         * keymap.c (accessible_keymaps_mapper_1):
15602         * keymap.c (where_is_recursive_mapper):
15603         * keymap.c (describe_map_mapper):
15604         * keymap.c (describe_map_sort_predicate):
15605         * keymap.c (describe_map):
15606         * keymap.c (complex_vars_of_keymap):
15607         And a number of other files, the key modifier preprocessor
15608         constants that xemacs uses have names that conflict with constants
15609         defined under MS Windows for other purposes, so they were renamed
15610         to begin with the prefix XEMACS_. The variables that hold such
15611         modifiers were changed to consistently be of type int to fix
15612         various compile warnings.
15613
15614         * console.c (complex_vars_of_console):
15615         * device.c:
15616         * device-msw.c:
15617         * device-msw.c (mswindows_finish_init_device):
15618         * device-msw.c (msw_get_workspace_coords):
15619         * device-msw.c (mswindows_device_system_metrics):
15620         and various other files, added support for a new
15621         device property called offset-workspace which returns the position
15622         of the upper left corner of the workspace area and goes along with
15623         the existing size-workspace property.
15624
15625         * dialog-msw.c:
15626         * dialog-msw.c (push_bufbyte_string_as_unicode):
15627         * dialog-msw.c (mswindows_popup_dialog_box):
15628         Added support for XEmacs-style accelerator specifications in
15629         button text.  Note: I didn't add support for this under X Windows,
15630         and somebody needs to do this.
15631
15632         * dialog.c:
15633         * dialog.c (Fpopup_dialog_box):
15634         Documented the support for accelerators that was just mentioned.
15635
15636         editfns.c (get_home_directory): Changed behavior under Windows
15637         when HOME not defined; former behavior was irretrievably broken.
15638
15639         * emacs.c:
15640         * emacs.c (main_1):
15641         * emacs.c (main):
15642         * minibuf.c (clear_echo_area_internal):
15643         * minibuf.c (echo_area_append):
15644         * print.c:
15645         * print.c (std_handle_out_external):
15646         * print.c (std_handle_out_va):
15647         * print.c (fatal):
15648         * print.c (write_string_to_stdio_stream):
15649         * print.c (output_string):
15650         * print.c (debug_print):
15651         * print.c (debug_backtrace):
15652         * print.c (debug_short_backtrace):
15653         Cleaned up the code that prints text to stdout so that this can be
15654         changed to output into a console window instead under MS Windows,
15655         as described above.
15656
15657         * eval.c:
15658         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15659         * eval.c (internal_catch):
15660         * eval.c (unwind_to_catch):
15661         * eval.c (throw_or_bomb_out):
15662         * eval.c (condition_case_1):
15663         * eval.c (signal_1):
15664         * eval.c (check_error_state_sanity):
15665         * eval.c (call_with_suspended_errors_1):
15666         * eval.c (call_with_suspended_errors):
15667         * eval.c (reinit_vars_of_eval):
15668         Added code to catch throw loops and check for a pesky bug that may
15669         be gone now.
15670
15671         * event-msw.c:
15672         * event-msw.c (key_needs_default_processing_p):
15673         * event-msw.c (mswindows_wnd_proc):
15674         * event-msw.c (mswindows_modifier_state):
15675         * event-msw.c (emacs_mswindows_quit_p):
15676         * event-msw.c (vars_of_event_mswindows):
15677         a) Added support for using the alt key to select menu items as is
15678         standard under MS Windows.  This is controlled using the variable
15679         menu-accelerator-enabled, just like under X Windows.  There is an
15680         option on the options menu to turn this support on.  I really
15681         think that it should be on by default under Windows, but I'm not
15682         going to make this change yet.
15683
15684         b)  Added support for dynamic display size changes under Windows.
15685
15686         * event-stream.c:
15687         * event-stream.c (maybe_echo_keys):
15688         * event-stream.c (Fnext_event):
15689         * event-stream.c (command_builder_find_leaf):
15690         * event-stream.c (lookup_command_event):
15691         * event-stream.c (execute_command_event):
15692         * event-stream.c (pre_command_hook):
15693         * event-stream.c (post_command_hook):
15694         * event-stream.c (syms_of_event_stream):
15695         * event-stream.c (vars_of_event_stream):
15696         * event-stream.c (complex_vars_of_event_stream):
15697         * events.h (struct command_builder):
15698
15699         a) Tried to clean up a little bit the horribly written x-specific
15700         accelerator code that crept into this file.  I moved this code
15701         into menubar-x.c where it belongs. I also needed to move the
15702         command builder structure into the file events.h because it is
15703         accessed directly by this accelerator code.  What I didn't do, but
15704         which should be done at some point, is to properly abstract this
15705         code using device methods instead of the kludgy way that it
15706         currently hooks into the event code.
15707
15708         b) Added the lisp variables this-command-properties and
15709         last-command- properties, which should be used to synchronize two
15710         adjacent commands in preference to playing games with the variable
15711         this-command, which is typically what happens.
15712
15713         c) Added some slightly nasty code to hook into the lisp support
15714         for shifted- motion-key selection.  This is actually necessary for
15715         somewhat complicated reasons, which are described in
15716         simple.el. (NB: I think the proper thing would be to have the code
15717         that calls the pre and post command hooks also call out to generic
15718         lisp functions in simple.el, where all built-in stuff could be
15719         added.  I will think about this more.)
15720
15721         * event-unixoid.c (poll_fds_for_input):
15722         * lread.c (readchar):
15723         * redisplay-tty.c (tty_clear_frame):
15724         * redisplay-x.c (x_get_gc):
15725         * signal.c (interrupt_signal):
15726         And a whole bunch of other files: fixed up places that printed
15727         directly to stderr to instead call the function stderr_out so that
15728         the changes I made under Windows work correctly.
15729
15730         * filemode.c (mode_string):
15731         Warning fixes.
15732
15733         * frame-msw.c:
15734         * frame-msw.c (mswindows_size_frame_internal):
15735         Fixed the computation of frame size and position to keep the frame
15736         within the workspace area, rather than within the physical
15737         dimensions of the screen, so that the frame doesn't overlap window
15738         manager decorations, such as the start menu and toolbar, typically
15739         at the bottom of the screen.
15740
15741         * frame.c (vars_of_frame):
15742         Changed the default frame title format under MS Windows to consist
15743         of buffername-XEmacs, which is standard under MS Windows.  I think
15744         it might be a good idea to change this everywhere because I think
15745         it is superior to the current frame title format, but this is the
15746         kind of change that is likely to cause some people to get annoyed,
15747         so I'm not making it.
15748
15749         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15750
15751         * gui-msw.c (mswindows_handle_gui_wm_command):
15752         Fixed compile warnings.
15753
15754         * gui-x.c:
15755         * gui-x.c (strdup_and_add_accel):
15756         * gui-x.c (button_item_to_widget_value):
15757         * gui-x.h:
15758         Added code to automatically put an accelerator onto the beginning
15759         of menu items that don't have one as is now the standard, and is
15760         described more later.  Also fixed things so that the menu item
15761         name can be an evaluated expression, again a new standard.
15762
15763         * gui.c:
15764         * gui.c (gui_item_add_keyval_pair):
15765         * gui.c (make_gui_item_from_keywords_internal):
15766         * gui.c (gui_add_item_keywords_to_plist):
15767         * gui.c (gui_item_accelerator):
15768         * gui.c (gui_name_accelerator):
15769         * gui.c (gui_item_included_p):
15770         * gui.c (gui_item_display_flush_left):
15771         * gui.c (gui_item_display_flush_right):
15772         * gui.c (parse_gui_item_tree_item):
15773         * gui.c (parse_gui_item_tree_children):
15774         * gui.c (parse_gui_item_tree_list):
15775         Mule-ized.  Cleanup.  GCPRO addition.
15776
15777         * line-number.c (buffer_line_number):
15778         * lisp.h:
15779         * lisp.h (EMACS_INT_MAX):
15780         Added the manifest constant EMACS_INT_MIN corresponding to the
15781         existing constant EMACS_INT_MAX.  This is partially to fix compile
15782         warnings under Windows, and partly for cleanliness.
15783
15784         * menubar-msw.c:
15785         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15786         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15787         * menubar-msw.c (displayable_menu_item):
15788         * menubar-msw.c (populate_menu_add_item):
15789         * menubar-msw.c (populate_or_checksum_helper):
15790         * menubar-msw.c (populate_menu):
15791         * menubar-msw.c (update_frame_menubar_maybe):
15792         * menubar-msw.c (prune_menubar):
15793         * menubar-msw.c (msw_char_is_accelerator):
15794         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15795         * menubar-msw.c (mswindows_handle_wm_command):
15796         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15797         * menubar-msw.c (mswindows_handle_wm_initmenu):
15798         * menubar-msw.c (mswindows_update_frame_menubars):
15799         * menubar-msw.c (mswindows_free_frame_menubars):
15800         * menubar-msw.c (mswindows_popup_menu):
15801         Fixed a bug in handling accelerators where an extra character
15802         would be displayed in the menu item.  Also generalized the
15803         function displayable_menu_item because it is now used by the
15804         dialog box code as well.  And finally, added code in the functions
15805         that create the menubar to extract a list of accelerators for the
15806         top level menubar, which is used in the event code to determine
15807         whether a particular alt-key combination should be used to invoke
15808         a menu item, or should be passed through to access the standard
15809         XEmacs keymap binding for this key combination.
15810
15811         Much needed GCPROing.
15812
15813         * menubar-x.c:
15814         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15815         * menubar-x.c (menu_item_descriptor_to_widget_value):
15816         * menubar-x.c (restore_in_menu_callback):
15817         * menubar-x.c (x_popup_menu):
15818         * menubar-x.c (menu_move_up):
15819         * menubar-x.c (menu_move_down):
15820         * menubar-x.c (menu_move_left):
15821         * menubar-x.c (menu_move_right):
15822         * menubar-x.c (menu_select_item):
15823         * menubar-x.c (command_builder_operate_menu_accelerator):
15824         * menubar-x.c (menu_accelerator_junk_on_error):
15825         * menubar-x.c (command_builder_find_menu_accelerator):
15826         * menubar-x.c (Faccelerate_menu):
15827         * menubar.h:
15828         Moved a whole bunch of code here that was previously in
15829         event-stream.c as described above.  There is also code connected
15830         to the new standard of adding an accelerator to the beginning of
15831         menu items that don't have one as described above and below.
15832
15833         * menubar.c:
15834         * menubar.c (menu_parse_submenu_keywords):
15835         * menubar.c (Fmenu_find_real_submenu):
15836         * menubar.c (Fnormalize_menu_item_name):
15837         * menubar.c (syms_of_menubar):
15838         * menubar.c (vars_of_menubar):
15839         * menubar.c (complex_vars_of_menubar):
15840
15841         a) Cleaned up a bunch of documentation and improved it.
15842
15843         b) XEmacs now automatically adds an accelerator onto the beginning
15844         of any menu items that don't have one.  I did this because there
15845         will inevitably be some menu items on the main menubar that don't
15846         have accelerators on them because the package that adds that
15847         particular menu item hasn't yet been fixed up to have accelerators
15848         in them and it looked rather strange to have some items with and
15849         some items without accelerators, especially since even in items
15850         without accelerators, you can, at least under windows, still
15851         access the item through an accelerator corresponding to the first
15852         character in the item's name.  If people don't like this behavior,
15853         I can add a variable to turn it off optionally, but I'm not sure
15854         this is a good idea because we really do need to have accelerators
15855         on all of the menu items, and if a package doesn't like the
15856         accelerators being put on the first character, then it should put
15857         the accelerators where they belong.
15858
15859         c) I made a behavior change, which is that the descriptor that
15860         specifies the text of the menu item, which formerly was just a
15861         string, can now also be an evaluated expression.  This makes this
15862         descriptor parallel with all of the others, which could also be
15863         evaluated expressions.  This also obviates the need for the
15864         keyword :label, which was previously listed in the documentation
15865         as unimplemented, and which was for the same purpose.
15866
15867         d) GCPROing.
15868
15869         * ntproc.c:
15870         * ntproc.c (new_child):
15871         * ntproc.c (sys_spawnve):
15872         * ntproc.c (find_child_console):
15873         * ntproc.c (sys_kill):
15874         Fixed compile warnings.  By the way, this file should really go
15875         away entirely, and this will happen as soon as Kirill makes his
15876         final round of process cleanups, which affect the function
15877         call-process.
15878
15879         * process-nt.c:
15880         * process-nt.c (struct nt_process_data):
15881         * process-nt.c (find_process_from_pid):
15882         * process-nt.c (send_signal_the_nt_way):
15883         * process-nt.c (enable_child_signals):
15884         * process-nt.c (find_child_console):
15885         * process-nt.c (send_signal_the_95_way):
15886         * process-nt.c (nt_finalize_process_data):
15887         * process-nt.c (ensure_console_window_exists):
15888         * process-nt.c (nt_create_process):
15889         * process-nt.c (nt_kill_child_process):
15890         * process-nt.c (nt_kill_process_by_pid):
15891         * process-nt.c (nt_open_network_stream):
15892         * process-nt.c (vars_of_process_nt):
15893         Copied over code from Emacs 20.5 to correctly send signals to sub-
15894         processes under Windows 95.  Also added code to automatically
15895         create and hide console window when a sub-process is created under
15896         Windows 95, which obviates the need for the separate runemacs.exe
15897         executable, and finally implemented some variables that were
15898         implemented in Emacs 20.5, but previously not in XEmacs.  These
15899         include mswindows- start-process-share-console and
15900         mswindows-start-process-inherit-error-mode. (Both of these only
15901         apply to Windows 95.)
15902
15903         * regex.c (regex_compile): Fixed a compile warning.
15904
15905         * select-msw.c:
15906         * select-msw.c (mswindows_own_selection):
15907         * select-msw.c (mswindows_get_foreign_selection):
15908         * select-msw.c (mswindows_disown_selection):
15909         * select-msw.c (console_type_create_select_mswindows):
15910         * select-msw.c (syms_of_select_mswindows):
15911         Cleaned up the file and implemented the device method
15912         selection_exists_p, which had accidentally been left out.  Also
15913         removed four lisp functions that were remnants from before the
15914         time when the selection code was properly device abstracted.
15915         These functions are no longer needed because there are generic
15916         equivalents, and because they were added recently and don't exist
15917         in FSF Emacs, I don't think there's any problem with just deleting
15918         them.
15919
15920         * sysdep.c:
15921         * sysdep.c (sys_subshell):
15922         Fixed a compile warning, although in this case there's probably
15923         something wrong with this code, and it ought to be looked into
15924         more thoroughly by somebody who understands it.
15925
15926         * window.c:
15927         * window.c (Fwindow_text_area_height):
15928         * window.c (Fwindow_width):
15929         * window.c (Fwindow_full_width):
15930         * window.c (Fwindow_pixel_width):
15931         * window.c (debug_print_window):
15932         * window.c (syms_of_window):
15933         Added functions window-text-area-height and window-full-width,
15934         which are functions for returning various width and height
15935         characteristics of a window. (One of these functions is necessary
15936         for making the file dialog box work correctly, and the other one
15937         was added for completeness.)  Also added a table to the
15938         documentation for window-height which describes the entire scheme
15939         for accessing width and height characteristics of a window.
15940
15941 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15942
15943         * nt.c (fstat): Added a comment for another problem with
15944         non-encapsulated [f]stat(), reported by Adrian Aichner
15945         <aichner@ecf.teradyne.com>.
15946
15947 2000-03-11  Andy Piper  <andy@xemacs.org>
15948
15949         * window.c (make_dummy_parent): initialize subwindow instance
15950         cache.
15951         (Fset_window_configuration): zero extent_modiff.
15952
15953 2000-03-10  Andy Piper  <andy@xemacs.org>
15954
15955         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15956         more changes can be triggered.
15957         (Fredisplay_frame): ditto.
15958         (Fredraw_device): ditto.
15959         (Fredisplay_device): ditto.
15960         (redisplay_frame): make non-static.
15961         (redisplay_frame): call update_frame_gutter_geometry outside of
15962         display proper.
15963
15964         * gutter.h: declare update_frame_gutter_geometry.
15965
15966         * redisplay.h: declare redisplay_frame.
15967
15968         * gutter.c (update_frame_gutter_geometry): move geometry changes
15969         in update_frame_gutters here. Geometry changes can only occur
15970         outside of redisplay.
15971         (update_frame_gutters): remove geometry change code.
15972         (Fredisplay_gutter_area): make sure that we are in display when we
15973         update and that we have flushed any size changes.
15974
15975 2000-03-11  Andy Piper  <andy@xemacs.org>
15976
15977         * alloc.c (pdump_dump_data): remove i & count shadows.
15978
15979 2000-02-27  Mike Alexander  <mta@arbortext.com>
15980
15981         * sysdep.h: Declare pdump_read_file
15982
15983         * sysdep.c (pdump_read_file): New function
15984
15985         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15986         dump data
15987
15988 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15989
15990         * lrecord.h: add `lrecord_type_pgsetenv'.
15991
15992 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15993
15994         * symsinit.h: declare (vars|syms)_of* functions.
15995         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15996
15997 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15998
15999         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16000
16001         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16002         GCCs.
16003
16004         * emacs.c (main_1): Call postgres initialization code.
16005
16006         * postgresql.h: New file.  PostgreSQL RDBMS support.
16007         * postgresql.c: New file.
16008
16009 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16010
16011         * redisplay-output.c (redisplay_output_display_block): Disable
16012         redundant code.
16013
16014 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16015
16016         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16017         (Fcanna_henkan_next): Ditto.
16018         (Fcanna_bunsetu_henkou): Ditto.
16019         (Fcanna_henkan_kakutei): Ditto.
16020         (Fcanna_henkan_end): Ditto.
16021         (Fcanna_henkan_quit): Ditto.
16022         (Fcanna_henkan_next): Set retun value correctly.
16023         (c2mu): Use unsigned char instead of signed char.
16024
16025 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16026
16027         * emacs.c (main_1): Always call syms_of_gui.
16028         * inline.c: include gui.h
16029
16030 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16031
16032         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16033         converted to Lisp_Object.
16034         (Qtop_bottom): New variable.
16035         (syms_of_redisplay): Initialize it.
16036         * redisplay.h (Vvisible_bell): Ditto.
16037         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16038         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16039         only flash top and bottom.
16040
16041 2000-03-08  Andy Piper  <andy@xemacs.org>
16042
16043         * buffer.c (Frename_buffer): record new buffer name the right way.
16044
16045 2000-03-08  Andy Piper  <andy@xemacs.org>
16046
16047         * glyphs.c (update_subwindow): increase hash depth so that widget
16048         items get picked up properly.
16049
16050         * redisplay-output.c (compare_runes): increase hash depth so that
16051         widget items get picked up properly.
16052
16053 2000-03-08  Andy Piper  <andy@xemacs.org>
16054
16055         * gutter.c (output_gutter): add some debug.
16056
16057         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16058         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16059         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16060
16061         * redisplay-output.c (compare_runes): use display_hash to
16062         determine if glyphs really are not the same.
16063
16064         * glyphs.c (update_subwindow): check display_hash to see if
16065         anything really needs to be updated. If not then do
16066         nothing. Record the display_hash after updating.
16067         (image_instance_equal): compare the image_instance face also.
16068
16069 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16070
16071         * redisplay.h: Fix comment style.
16072
16073 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16074
16075         * consle-msw.h (struct mswindows_frame):
16076         Added new member paint_pending to indicate whether a WM_PAINT
16077         magic event has been queued for this frame.
16078
16079         * event-msw.c (mswindows_drain_windows_queue):
16080         Don't queue a WM_PAINT magic event if one is already queued.
16081         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16082
16083         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16084
16085 2000-03-07  Didier Verna  <didier@xemacs.org>
16086
16087         * dired.c: #include `regex.h' after `sysfile.h'.
16088
16089 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16090
16091         * sound.c (init_nas_sound): Fix compiler warning.
16092
16093         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16094         (FREE_STRUCT_P):
16095         (MARK_STRUCT_AS_FREE):
16096         (MARK_STRUCT_AS_NOT_FREE):
16097         Make `gcc -fstrict-aliasing' work properly.
16098
16099 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16100
16101         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16102         (mswindows_delete_device): Call CoUnnitialize().
16103
16104         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16105
16106 2000-02-25    <CraigL@DyCon.com>
16107
16108         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16109         <errno.h>.
16110
16111         * sysdep.c: This extern declaration for environ prevents MinGW
16112         from finding the variable in CRTDLL.DLL.
16113
16114         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16115         windows headers.
16116         (SHGFI_EXETYPE): ..
16117         (WM_MOUSEWHEEL): ..
16118         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16119         definitions.
16120         (MMRESULT): Removed, now defined in cygwin's windows headers.
16121         (TIMECAPS): ..
16122         (uid_t,gid_t,pid_t,ssize_t): ..
16123         (_timeb): Removed, MinGW defines both _timeb and timeb.
16124         (HAVE_H_ERRNO): Added.
16125         (HAVE_TZNAME): Added, configure is not detecting this.
16126
16127 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16128
16129         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16130         * syntax.c (syntax_match): Use it.
16131
16132         * cmds.c: Import auto-fill-chars from FSF Emacs.
16133         (Vauto_fill_chars): New variables.
16134         (internal_self_insert): Check Vauto_fill_chars.
16135         (vars_of_cmds):
16136         Declare auto-fill-chars as a Lisp variable and initialize it.
16137
16138 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16139
16140         * fileio.c (Fmake_symbolic_link):
16141         (Ffile_symlink_p):
16142         Run handlers even if local machine doesn't have symlinks.
16143
16144 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16145
16146         * event-msw.c (mswindows_drain_windows_queue):
16147         Don't generate paint magic events for non-XEmacs frames.
16148
16149 2000-03-05  Andy Piper  <andy@xemacs.org>
16150
16151         * redisplay.c (redisplay_frame): generate_displayable_area and
16152         friends assumes that we are not in GC, we therefore have to make
16153         sure that this doesn't happen.
16154
16155         * gutter.c (calculate_gutter_size): generate_displayable_area
16156         assumes that we are not in GC, we therefore have to make sure that
16157         this doesn't happen.
16158
16159 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16160
16161         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16162
16163 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16164
16165         * redisplay.c (regenerate_window): Make sure we set a sane value
16166         for end_pos even if we jump out of the loop.
16167         (regenerate_window): Answer Ben's question :-).
16168         (start_end_of_last_line): Add may_error argument.
16169         (start_of_last_line):
16170         (end_of_last_line): Pass may_error = 0.
16171         (end_of_last_line_may_error): New function.
16172         (pixel_to_glyph_translation): Use it, so we don't crash in
16173         event_to_glyph.
16174
16175 2000-03-04  Andy Piper  <andy@xemacs.org>
16176
16177         * window.h (struct window): add gutter_extent_modiff.
16178
16179         * window.c (allocate_window): zero out gutter_extent_modiff.
16180
16181         * redisplay.h: declare sync_display_line_structs.
16182
16183         * redisplay.c (add_glyph_rune): add a better comment.
16184
16185         * redisplay-output.c (sync_display_line_structs): made non-static.
16186         (compare_runes): remove unneccesary glyph cachel access.
16187
16188         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16189
16190         * gutter.c (output_gutter): don't output the gutter if extent
16191         changes only involve extents in buffers. use 4 sets of display
16192         lines.
16193         (gutter_extent_signal_changed_region_maybe): new function. Mark
16194         extents in gutters as changed.
16195         (update_frame_gutters): use 4 sets of display lines.
16196         (reset_gutter_display_lines): ditto.
16197         (free_frame_gutters): ditto.
16198         (redraw_exposed_gutter): force output of gutters.
16199
16200         * frame.h (struct frame): add 4 sets of gutter display lines.
16201
16202         * extents.c: (extent_changed_for_redisplay): signal changes to
16203         extents in strings in the gutter as well as extents in buffers.
16204
16205 2000-03-02  Andy Piper  <andy@xemacs.org>
16206
16207         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16208
16209         * frame.c (Fmake_frame): make sure the gutters get initialized
16210         after the frame is visible.
16211         (set_frame_selected_window): re-arrange compilation macros a
16212         little.
16213         (change_frame_size_1): mark gutters changed.
16214
16215         * device.c (Fset_device_class): mark gutters changed.
16216
16217 2000-03-01  Andy Piper  <andy@xemacs.org>
16218
16219         * window.c (window_top_frame_gutter_height): deleted.
16220         (window_bottom_frame_gutter_height): ditto.
16221         (window_left_frame_gutter_height): ditto.
16222         (window_right_frame_gutter_height): ditto.
16223         (window_top_gutter_height): don't use them.
16224         (window_bottom_gutter_height): ditto.
16225         (window_left_gutter_width): ditto.
16226         (window_right_gutter_width): ditto.
16227         (Fsplit_window): ditto.
16228         (Fwindow_pixel_edges): don't use border dimensions here.
16229
16230         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16231         (update_scrollbar_instance): ditto.
16232
16233         * redisplay.c (generate_modeline): don't take gutters into account.
16234         (generate_modeline): ditto.
16235         (redisplay_frame): small gutter display optimization.
16236
16237         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16238
16239         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16240         gutters into account.
16241
16242         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16243         for window position and type.
16244
16245         * gutter.c (get_gutter_coords): fix for frame gutters.
16246         (update_frame_gutters): update frame geometry if the gutters have
16247         changed.
16248         (init_frame_gutters): record current gutter geometries.
16249
16250         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16251         var.
16252         (mswindows_widget_instantiate): ditto.
16253
16254         * frame.h (struct frame): add current_gutter_bounds.
16255
16256         * frame.c (change_frame_size_1): position window and minibuffer
16257         appropriately taking into account the frame gutters.
16258
16259         * frame-x.c: (x_initialize_frame_size): take into account the
16260         frame gutters.
16261
16262 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16263
16264         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16265
16266 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16267
16268         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16269
16270 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16271
16272         * file-coding.c (reset_decoding_stream): Clear previous
16273         detection state when autodetect.
16274
16275 2000-02-29  Didier Verna  <didier@xemacs.org>
16276
16277         * extents.c (set_extent_glyph_1): don't require extents to be
16278         attached.
16279
16280 2000-02-27  Andy Piper  <andy@xemacs.org>
16281
16282         * gutter.c (Fset_default_gutter_position): don't default left and
16283         right gutter visibility to t.
16284         (Fset_default_gutter_position): run
16285         default-gutter-position-changed-hook.
16286         (syms_of_gutter): add default-gutter-position-changed-hook.
16287
16288 2000-02-26  Andy Piper  <andy@xemacs.org>
16289
16290         * specifier.c (Fmake_specifier): add gutter references.
16291
16292         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16293
16294         * lisp.h: declare Fvalid_plist_p.
16295
16296         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16297         as changed.
16298         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16299         well as its visibility so that it gets reconstructed.
16300         (construct_window_gutter_spec): new function. Construct a string
16301         to be displayed in the gutter from a plist of strings. Take care
16302         to only use elements that are declared as visible.
16303         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16304         WINDOW_GUTTER.
16305         (gutter_validate): allow plists of strings in the specifier.
16306         (gutter_specs_changed): construct the real_gutter from the gutter
16307         specs using construct_window_gutter_spec.
16308         (gutter_visible_validate): gutter-visible is a new specifier type.
16309         (Fgutter_visible_specifier_p): new function for the new specifier.
16310         (syms_of_gutter): declare gutter-visible and
16311         Fgutter_visible_specifier_p.
16312         (specifier_type_create_gutter): intitalize new gutter-visible
16313         specifier.
16314         (reinit_specifier_type_create_gutter): ditto.
16315         (specifier_vars_of_gutter): use new specifier type for gutter
16316         visibility.
16317         (init_frame_gutters): construct real_gutter correctly.
16318         (Fgutter_specifier_p): beef up documentation.
16319         (Fgutter_size_specifier_p): ditto.
16320
16321         * winslots.h: add real_gutter slots.
16322
16323 2000-02-25  Andy Piper  <andy@xemacs.org>
16324
16325         * device-msw.c: Be kind to older cygwin versions. From Raymond
16326         Toy <toy@rtp.ericsson.se>.
16327
16328         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16329         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16330
16331 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16332
16333         * elhash.c (MARK_OBJ): Practice macro hygiene.
16334
16335 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16336
16337         * miscplay.c: s/__inline__/inline/g;
16338         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16339         (get_device_compdc): INLINE ==> static inline
16340         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16341         find -name '*.h' | \
16342         xargs global-replace \
16343         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16344
16345 2000-02-25  Andy Piper  <andy@xemacs.org>
16346
16347         * window.c (window_top_frame_gutter_height): new function.
16348         (window_top_window_gutter_height): ditto.
16349         (window_top_gutter_height): use them.
16350         (window_bottom_frame_gutter_height): new function.
16351         (window_bottom_window_gutter_height): ditto.
16352         (window_bottom_gutter_height): use them.
16353         (window_left_window_gutter_width): new function.
16354         (window_left_frame_gutter_width): ditto.
16355         (window_left_gutter_width): use them.
16356         (window_right_window_gutter_width): new function.
16357         (window_right_frame_gutter_width): ditto.
16358         (window_right_gutter_width): use them.
16359         (window_pixel_height): new function. calulate window pixel height
16360         with frame gutter involvement.
16361         (Fsplit_window): calculate new sizes taking frame gutters into
16362         account.
16363         (window_char_height_to_pixel_height): don't include frame gutters.
16364         (window_char_height): use window_pixel_height.
16365         (window_pixheight): rename from window_pixel_height.
16366         (change_window_height): use it.
16367         (window_pixel_height_to_char_height): don't include frame gutters.
16368         (window_char_width_to_pixel_width): ditto.
16369
16370 2000-02-25  Andy Piper  <andy@xemacs.org>
16371
16372         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16373         if it is.
16374
16375 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16376
16377         * alloc.c (staticpro):
16378         (staticpro_nodump):
16379         (dumpstruct):
16380         (dumpopaque):
16381         (pdump_wire):
16382         (pdump_wire_list):
16383         (compact_string_chars):
16384         (pdump_dump_wired):
16385         Convert:  if (foo) abort();  ==>  assert (! foo);
16386
16387         * eldap.c (Fldap_search_basic):
16388         (Fldap_add):
16389         (Fldap_modify):
16390         (Fldap_delete):
16391         Fix compiler warnings, and possible crashes if (random) return
16392         value were to be used.
16393
16394 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16395
16396         * device-msw.c: Workaround ResetDC failure.
16397
16398         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16399         applying a devmode.
16400
16401         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16402         (mswindows_text_width): Do not start printer page.
16403
16404         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16405
16406         * glyphs-msw.c: Added image methods to msprinter console and
16407         msprinter-specific image instantiation.
16408
16409 2000-02-20  Mike Alexander  <mta@arbortext.com>
16410
16411         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16412         to avoid crashes when selection-sets-clipboard is on
16413         (mswindows_own_selection): ditto
16414
16415 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16416
16417         * glyphs-msw.c:
16418         * redisplay-msw.c (get_frame_dc):
16419         (get_frame_compdc):
16420         * console-msw.h:
16421         * device-msw.c (mswindows_init_device):
16422         (mswindows_delete_device):
16423         (msprinter_init_device):
16424         (msprinter_delete_device):
16425         * frame-msw.c (mswindows_init_frame_1):
16426         (mswindows_delete_frame):
16427         (msprinter_init_frame_3):
16428         (msprinter_delete_frame): Move compatible DC to device object from
16429         frame object, for both mswindows and msprinter. Only one at a time
16430         is needed, it is a real waste to have one per frame!
16431
16432 2000-02-23  Andy Piper  <andy@xemacs.org>
16433
16434         * glyphs.c: add dynamic width and height elements.
16435         (image_instance_equal): ditto.
16436
16437         * glyphs-widget.c (widget_query_geometry): calculate width and
16438         height dynamically if required.
16439         (initialize_widget_image_instance): initialize dynamic dimensions.
16440         (widget_instantiate): pick-up dynamic dimensions.
16441
16442         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16443         dynamic determination. Add appropriate macros.
16444
16445         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16446         dimensions safe.
16447         (WINDOW_GUTTER_SIZE): ditto.
16448         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16449
16450         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16451         inline.
16452         (get_frame_dc): ditto.
16453
16454         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16455         here.
16456
16457 2000-02-23  Martin Buchholz <martin@xemacs.org>
16458
16459         * XEmacs 21.2.31 is released.
16460
16461 2000-02-22  Ben Wing <ben@xemacs.org>
16462
16463         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16464
16465 2000-02-22  Andy Piper  <andy@xemacs.org>
16466
16467         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16468
16469 2000-02-21  Mike Sperber <mike@xemacs.org>
16470
16471         * .dbxrc:
16472         * .gdbinit:
16473         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16474         variables.
16475
16476 2000-02-21  Mike Sperber <mike@xemacs.org>
16477
16478         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16479
16480 2000-02-21  Martin Buchholz <martin@xemacs.org>
16481
16482         * XEmacs 21.2.30 is released.
16483
16484 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16485
16486         Performance hacking.
16487         * *.c (syms_of_*):
16488         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16489         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16490         * emacs.c (main_1):
16491         * lisp.h (DEFUN):
16492         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16493         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16494         * symeval.h (DEFVAR_SYMVAL_FWD):
16495         * symbols.c (guts_of_unbound_marker):
16496         Make all c_readonly objects also lisp_readonly and marked for life.
16497         * lrecord.h (struct lrecord_implementation):
16498         Document flags better.
16499         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16500         * lrecord.h (DECLARE_LRECORD):
16501         * lrecord.h (XSETRECORD):
16502         * lrecord.h (RECORDP):
16503         * lrecord.h (RECORD_TYPEP):
16504         * lrecord.h (RECORD_MARKER): New.
16505         * lrecord.h (error_check_*):
16506         * lrecord.h (CONCHECK_NONRECORD):
16507         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16508         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16509         * lrecord.h (set_lheader_implementation):
16510         * lrecord.h (enum lrecord_type): New.
16511         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16512         * alloc.c (disksave_object_finalization_1):
16513         * alloc.c (mark_object):
16514         * alloc.c (lrecord_type_index):
16515         * alloc.c (tick_lcrecord_stats):
16516         * alloc.c (Fgarbage_collect):
16517         * alloc.c (init_alloc_once_early):
16518         * alloc.c (pdump_load):
16519         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16520         * alloc.c (lrecord_type_index): Delete.
16521         Make lisp object type indexes be constant.
16522           Makes (byte-compile) 5% faster.
16523         Put all marker functions into their own array.
16524           Makes (garbage-collect) 5% faster.
16525         Optimize SYMBOL_VALUE_MAGIC_P.
16526           Makes (byte-compile) 2-3% faster.
16527         * config.h.in (gc_checking_assert): New.
16528         * alloc.c: Use gc_checking_assert().
16529         * .dbxrc: Make compatible with new object type implementation.
16530         * .gdbinit: Make compatible with new object type implementation.
16531         * alloc.c: Delete all symbols defined only for debugging, such as
16532         Lisp_Type_Vector and lrecord_charset.
16533
16534 2000-02-21  Andy Piper  <andy@xemacs.org>
16535
16536         * gui-msw.c (Fmswindows_shell_execute): fix file location
16537         problems.
16538
16539         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16540         unshowing so that set_window_buffer doesn't undo
16541         kill_buffer_hook's hard work.
16542
16543         * glyphs-widget.c (tab_control_query_geometry): don't count the
16544         first item when calculating geometry.
16545
16546         * glyphs.c (map_subwindow): remove redundant code.
16547         (update_frame_subwindows): be more circumspect about when to
16548         update subwindows.
16549
16550         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16551         when items haven't changed. Update faces if faces have changed as
16552         well as just the widget face.
16553         (x_tab_control_update): Update faces if faces have changed as well
16554         as just the widget face.
16555
16556 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16557
16558         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16559         registration.
16560         (build_syscolor_string): Use mswindows_color_to_string to try to
16561         get a named color.
16562         (mswindows_device_system_metrics): Reverse the foreground and
16563         background colors so that they match the documentation.
16564
16565         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16566         they match the default Windows palette.
16567         (mswindows_color_to_string): New function.
16568
16569 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16570
16571         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16572
16573 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16574
16575         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16576         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16577
16578         * symbols.c (init_symbols_once_early): Removed obsolete
16579         DATA_SEG_BITS related kludge.
16580         (defvar_magic): Ditto.
16581
16582         * malloc.c: Removed obsolete DATA_SEG_BITS
16583         * ralloc.c: Ditto.
16584         * mem-limits.h: Ditto.
16585
16586         * Makefile.in.in: Removed obsolete HAVE_SHM
16587         * emacs.c: Ditto.
16588
16589 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16590
16591         *  device-msw.c (mswindows_delete_device): Free DDE string
16592         handles.
16593
16594 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16595
16596         * keymap.c (get_keyelt):
16597         * unexnt.c (unexec):
16598         * vm-limit.c (memory_warnings):
16599         * ntheap.c (recreate_heap):
16600         * ntheap.h (UNINIT_PTR):
16601         * select-msw.c (Fmswindows_get_clipboard):
16602         (Fmswindows_set_clipboard):
16603         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16604         * objects-msw.c:
16605         * menubar-msw.c (displayable_menu_item):
16606         * glyphs-msw.c:
16607         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16608         * sysdep.c (sys_subshell):
16609         * process-nt.c (nt_create_process):
16610         * nt.c (normalize_filename):
16611         (dostounix_filename):
16612         (unixtodos_filename):
16613         * ntproc.c (win32_executable_type):
16614         * ntplay.c (play_sound_data_1):
16615         (play_sound_file):
16616         * editfns.c (get_home_directory):
16617         * event-msw.c (struct winsock_stream):
16618         (mswindows_dde_callback):
16619         * device-msw.c (msprinter_init_device):
16620         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16621
16622         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16623         mswindows_clear_toolbar were swapped!
16624
16625         * objects-msw.c:(colormap_t):
16626         (fontmap_t):
16627         * emacs.c (struct standard_args): Fixed const jumble.
16628
16629         * glyphs-widget.c (update_widget): Fixed comparison notation.
16630
16631         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16632
16633         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16634         __declspec(noreturn) syntax.
16635
16636 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16637
16638         * eldap.c (Fldap_open):
16639         (Fldap_search_basic):
16640         (Fldap_add):
16641         (Fldap_modify):
16642         Use new coding system conversion macros.
16643
16644 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16645
16646         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16647
16648 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16649
16650         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16651         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16652
16653         * eldap.c (Qadd, Qreplace): New constant symbols
16654         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16655         interruptions by XEmacs signals
16656         Remove unnecessary calls to slow_down_interrupts and
16657         speed_up_interrupts
16658         (Fldap_search_basic): Renamed from Fldap_search_internal
16659         Added new optional parameter VERBOSE that triggers the
16660         display of progress messages
16661         Remove unnecessary calls to slow_down_interrupts and
16662         speed_up_interrupts
16663         LDAP result code analysis rewritten
16664         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16665         (syms_of_eldap): Define the new symbols and functions
16666
16667
16668 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16669
16670         * realpath.c: Determine PATH_MAX maximally portably.
16671
16672         * insdel.c (bytecount_to_charcount): Optimize.
16673         The function used to be optimized for entirely ASCII sequences.
16674         Now it is optimized for successive characters from the same
16675         charset.  This also wins big for _mostly_ ASCII sequences.
16676
16677         * fileio.c (Ffile_truename): convert return from realpath() using
16678         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16679         - Rewrite GCPROing slightly.
16680
16681         * sysdep.c (sys_open): Do filename conversion, like all other
16682         sys_* functions.  Fixes bug:
16683         (let ((file-name-coding-system 'iso-8859-2))
16684            (write-region x y latin2-name))
16685         ==> writes filename using internal encoding.
16686
16687 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16688
16689         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16690         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16691         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16692         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16693         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16694         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16695         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16696         (CONST_IF_NOT_DEBUG): Delete.
16697         * alloc.c (this_one_is_unmarkable): Delete.
16698         (mark_object): Don't check for this_one_is_unmarkable. Use the
16699         c_readonly flag instead.
16700         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16701
16702 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16703
16704         * event-msw.c (mswindows_drain_windows_queue):
16705         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16706         away redundant repaint events.
16707
16708 2000-02-17  Andy Piper  <andy@xemacs.org>
16709
16710         * redisplay.h: declare mark_redisplay_structs.
16711
16712         * redisplay.c (redisplay_window):
16713         (redisplay_frame): don't check subwindows_state_changed.
16714         (mark_redisplay): mark gutters here.
16715
16716         * glyphs.c: (instantiate_image_instantiator): always layout if we
16717         haven't done so already.
16718         (allocate_image_instance): don't mark as dirty.
16719         (update_subwindow): bind inhibit_quit.
16720
16721         * gutter.c (mark_gutters): new function.
16722
16723         * glyphs-x.c (x_update_widget): Always resize to get round a
16724         widget bug.
16725
16726         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16727         breaking absolutely everything.
16728
16729         * gutter.h: declare mark_gutters.
16730
16731 2000-02-16  Martin Buchholz <martin@xemacs.org>
16732
16733         * XEmacs 21.2.29 is released.
16734
16735 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16736
16737         * fns.c (size_bit_vector): Fix computation of the size.
16738
16739 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16740
16741         * *.[ch]: Change CONST to const globally.
16742         find -name '*.[ch]' | \
16743         xargs global-replace \
16744         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16745         - Remove vestigial references to CONST_IS_LOSING
16746
16747 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16748
16749         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16750         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16751         events instead of dispatching them directly.
16752         (mswindows_handle_paint): New function to do repainting.
16753         (mswindows_wnd_proc):
16754         (emacs_mswindows_handle_magic_event): Call above function.
16755
16756 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16757
16758         * objects-msw.c (mswindows_create_font_variant): Return the new
16759         font handle.
16760         (initialize_font_instance): Get font metrics from the underlined
16761         variant of the font to cope with the case where the underlined
16762         font has a bigger descent.
16763
16764 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16765
16766         * gui.c (gui_item_accelerator): Return the first underlined
16767         character in item name.
16768
16769 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16770
16771         * lisp.h: Added Qprinter.
16772
16773         * general.c (syms_of_general): Initialized it.
16774
16775         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16776         (get_frame_dc):
16777         (get_frame_compdc): Made inline.
16778
16779         * console.h (struct console_methods): Added eject_page method.
16780
16781         * frame.h: Added FRAME_DISPLAY_P and friends.
16782         Aligned backslahes in many macros in more readable fashion.
16783         Added page_number to struct frame, and an accessor macro
16784         for it.
16785
16786         * defice.h: Added DEVICE_DISPLAY_P and friends.
16787
16788         * device.c (Fdevice_printer_p): Used these.
16789
16790         * frame.c (allocate_frame_core): Initialize page number.
16791         (Fprint_job_page_number):
16792         (Fprint_job_eject_page): Implemented.
16793
16794         * frame-msw.c (msprinter_eject_page): Added method.
16795         (msprinter_start_page): Added.
16796
16797         * window.c (Fwindow_truncated_p): Fixed docstring.
16798         (Fwindow_last_line_visible_height): Implemented.
16799
16800 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16801
16802         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16803
16804 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16805
16806         * syntax.c (scan_words): Always advance at least one character.
16807
16808 2000-02-13  Andy Piper  <andy@xemacs.org>
16809
16810         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16811         to make sure the glyph is in the cachels.
16812
16813         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16814         global image instance flag.
16815         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16816         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16817
16818         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16819         (Fset_image_instance_property): mark layout as changed.
16820         (invalidate_glyph_geometry_maybe): mark layout as changed.
16821         (glyph_width): use new NEEDS_LAYOUT macro.
16822         (glyph_ascent): ditto.
16823         (glyph_descent): ditto.
16824         (glyph_height): ditto.
16825         (image_instance_layout): mark layout as clean after laying out.
16826         (update_subwindow): don't mark layout as clean here.
16827
16828         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16829         should no longer be needed.
16830
16831         * glyphs-x.c (x_update_widget): sanitize asserts.
16832         (x_finalize_image_instance): sanitize assignment to widgets.
16833
16834         * glyphs-widget.c (widget_instantiate): don't need to clear the
16835         layout flag here.
16836
16837 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16838
16839         * sysdep.c (getcwd): Use standard prototype.
16840         * sysdep.h (getcwd): Use standard prototype.
16841
16842         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16843         (sequence, start, end).
16844         Remove redundant type checking.
16845         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16846         view of `caller-protects') to avoid a crash where the real fix was
16847         found elsewhere.
16848
16849 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16850
16851         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16852
16853         * s/sol2.h: Remove feature macro initialization.
16854
16855         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16856         (vector_hash): New.  Code from internal_hash.
16857         * lrecord.h:
16858         Fix up allocation subsystem comments.
16859
16860         * config.h.in: Add __EXTENSIONS__ for Solaris.
16861
16862         * systime.h (EMACS_GETTIMEOFDAY): New.
16863         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16864         Remove Solaris-specific code.
16865         Use void* for the (ignored) second arg for gettimeofday().
16866
16867         * elhash.c (hash_table_hash): Implement it, finally.
16868         * elhash.c:  Use hashcode_t.
16869
16870         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16871         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16872
16873         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16874         * fns.c (size_bit_vector):
16875         * alloc.c (size_vector):
16876         (make_vector_internal):
16877         (make_bit_vector_internal):
16878         (sweep_bit_vectors_1):
16879         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16880
16881 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16882
16883         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16884         Include strings.h to avoid warnings for bzero and strcasecmp.
16885
16886 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16887
16888         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16889         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16890
16891         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16892         sequence.
16893
16894 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16895
16896         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16897         use a value field instead.
16898         (symbol_value_forward_forward): Use value field.
16899         (DEFVAR_SYMVAL_FWD): Use value field.
16900         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16901         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16902         (DEFVAR_CONST_INT): Ditto.
16903         (DEFVAR_BOOL): Ditto.
16904         (DEFVAR_CONST_BOOL): Ditto.
16905         (DEFVAR_INT_MAGIC): Ditto.
16906         (DEFVAR_BOOL_MAGIC): Ditto.
16907
16908         * symbols.c (guts_of_unbound_marker): Use value field.
16909         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16910         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16911
16912         * lisp.h: Declare dumpopaque and noninteractive1.
16913
16914         * alloc.c (dumpopaque): Added.
16915         (pdump_dump_opaquevec): Added.
16916         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16917         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16918         noninteractive.
16919
16920 2000-02-10  Andy Piper  <andy@xemacs.org>
16921
16922         * glyphs.c (image_instance_layout): if the size changes, mark it
16923         as such.
16924
16925         * redisplay-output.c (redisplay_output_layout): Update the
16926         subwindow here.
16927         (redisplay_output_subwindow): ditto.
16928
16929         * glyphs.c (update_subwindow): make sure we reset flags for
16930         layouts as well as everything else.
16931
16932         * glyphs-widget.c (layout_layout): don't need to set the instances
16933         dimensions here.
16934
16935 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16936
16937         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16938         not HAVE_DLOPEN, which is a lower-level thing.
16939
16940         * .cvsignore: Ignore gmon.out
16941
16942 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16943
16944         * .cvsignore: Ignore portable dumper xemacs.dmp file
16945
16946 2000-02-09  Andy Piper  <andy@xemacs.org>
16947
16948         * redisplay-output.c (redisplay_output_layout): be more clever
16949         about when we output based on the changed flags.
16950
16951         * glyphs.h (struct image_instantiator_methods): add update_method.
16952         (struct Lisp_Image_Instance): add changed flags. Declare new
16953         macros for manipulating them.
16954
16955         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16956         (image_instance_parent_glyph): find an image_instance's parent
16957         glyph or image_instance.
16958         (image_instance_layout): mark the size as changed.
16959         (set_image_instance_dirty_p): new function. mark an image
16960         instance, plus all of its parents, as dirty.
16961         (Fset_image_instance_property): use it.
16962         (Fglyph_animated_timeout_handler): use it.
16963         (update_subwindow): call update_widget and device methods for
16964         update_subwindow. Mark all changed flags as clean.
16965         (Fresize_subwindow): mark size as changed.
16966
16967         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16968         failures.
16969         (x_update_subwindow): only resize subwindows here.
16970         (x_update_widget): new function. Update all changed properties of
16971         a widget.
16972         (x_resize_subwindow): deleted.
16973         (x_widget_set_property): deleted.
16974         (x_progress_gauge_set_property): deleted.
16975         (x_progress_gauge_update): new function. Implement recorded
16976         changes.
16977         (x_tab_control_update): ditto.
16978         (x_tab_control_set_property): deleted.
16979         (console_type_create_glyphs_x): declare new functions.
16980         (image_instantiator_format_create_glyphs_x): ditto.
16981
16982         * glyphs-widget.c (widget_set_property): mark text changed.
16983         (update_widget): new function. Update properties of a widget.
16984         (widget_instantiate): for layouts make sure we set their
16985         children's parent correctly.
16986         (tab_control_set_property): new function. Record changes that will
16987         take place under redisplay's control.
16988         (progress_gauge_set_property): ditto.
16989         (image_instantiator_progress_guage): declare new functions.
16990         (image_instantiator_tab_control): ditto.
16991
16992         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16993         now.
16994         (mswindows_update_widget): new function. Update all properties on
16995         a widget that have changed.
16996         (mswindows_button_update): new function. Update a button's set
16997         state.
16998         (mswindows_tab_control_update): new function. Update the items in
16999         a tab.
17000         (mswindows_tab_control_set_property): deleted.
17001         (mswindows_progress_gauge_update): new function. Update the
17002         progress gauge's progress.
17003         (mswindows_widget_set_property): deleted. This is all done
17004         asynchronously now.
17005         (mswindows_progress_gauge_set_property): ditto.
17006         (console_type_create_glyphs_mswindows): declare new methods.
17007         (image_instantiator_format_create_glyphs_mswindows): ditto.
17008
17009         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17010         (msprinter_set_frame_properties): ditto.
17011
17012         * console.h (struct console_methods): Add update_widget_method.
17013
17014 2000-02-09  Andy Piper  <andy@xemacs.org>
17015
17016         * gui-msw.c (Fmswindows_shell_execute): Make
17017         mswindows-shell-execute industrial strength.
17018
17019 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17020
17021         * lrecord.h: Make macro argument `props' match member function `plist'.
17022         * fns.c (Fget):
17023         * fns.c (Fput):
17024         * fns.c (Fremprop):
17025         * fns.c (Fobject_plist):
17026         * alloc.c:
17027         * symbols.c:
17028         Object property list frobbing cleanup.
17029         - Allow any lisp object (compared with `eq'), not just symbols, as
17030           keys in object plists.
17031         - Move symbol plist frobbing into symbols.c, where it belongs.
17032         - Move string plist frobbing into alloc.c, where it belongs.
17033         - Everything's an lrecord now, so no need to test for symbolp, etc.
17034         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17035
17036         * extents.c: Reorder code to remove declarations.
17037
17038         * frame.h (store_in_alist): Remove useless declaration.
17039
17040 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17041
17042         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17043         * config.h.in: Add HAVE_XCONVERTCASE.
17044
17045 2000-02-07  Andy Piper  <andy@xemacs.org>
17046
17047         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17048         it breaks many things.
17049
17050 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17051
17052         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17053         actually can start a common comment type.
17054         * src/syntax.h (SYNTAX_END_P): ditto for end.
17055
17056 2000-02-07  Martin Buchholz <martin@xemacs.org>
17057
17058         * XEmacs 21.2.28 is released.
17059
17060 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17061
17062         * event-Xt.c (x_keysym_to_character): New.
17063         (maybe_define_x_key_as_self_inserting_character): New.
17064         (x_has_keysym): New.
17065         Auto-define all keys on the keyboard as self-insert-key.
17066
17067 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17068
17069         * menubar.c (vars_of_menubar): A small code simplification.
17070
17071         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17072
17073         * ExternalShell.c:
17074         * ExternalClient.c:
17075         * EmacsShell-sub.c:
17076         * EmacsManager.c:
17077         * EmacsFrame.c:
17078         Use consistent style for specifying X resources.
17079
17080         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17081         This makes (dontusethis-set-symbol-value-handler) actually usable.
17082
17083         * lrecord.h (lrecord_decription_type):
17084         * alloc.c (pdump_register_sub):
17085         (pdump_dump_data):
17086         (pdump_reloc_one):
17087         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17088         Comply with XEmacs coding style.
17089         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17090         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17091
17092         * keymap.c (Faccessible_keymaps):
17093         Make (accessible-keymaps map "\C-h") do the Right Thing.
17094         Make (accessible-keymaps map []) do the Right Thing.
17095         Make (accessible-keymaps map "") do the Right Thing.
17096         (check_keymap_definition_loop): New function.
17097         (keymap_store_internal): Keep luser from shooting self in foot,
17098           via (define-key ctl-x-4-map "p" global-map).
17099         Remove fullness slot from struct Lisp_Keymap, since hash tables
17100         are now reliable.
17101         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17102
17103 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17104
17105         * redisplay.c (init_redisplay): Fix small memory leak.
17106         * elhash.h:
17107         * elhash.c (pdump_reorganize_hash_table):
17108         Rename from reorganize_hash_table. Change prototype.
17109         Reuse the original memory for hentries.  Save 100k.
17110         * alloc.c (PDUMP_READ): new macro.
17111         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17112         * alloc.c: No need to #ifndef before #undef.
17113
17114         * print.c: Allow debug_print() to print readably by modifying
17115         debug_print_readably.  Use consistent variable names.
17116
17117         * .dbxrc: Try to get things to work even if stopped in a function
17118         without source available by explicitly specifying source files.
17119 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17120
17121         * unexnt.c (_start): Removed bogus code which caused loading heap
17122         from differrent executable file.
17123         Removed bogus assignment to _fmode, which caused inconsistencies.
17124
17125 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17126
17127         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17128         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17129         Do not preliminary `#define signal sigset'.
17130
17131         * systime.h: Do not prototype environ on windows nt and cygwin,
17132         this conflicts with system header.
17133
17134         * syssignal.h: Use correct define for WINDOWSNT
17135
17136         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17137         with system header.
17138
17139         * sysdep.c (near start of file): Fixed commentary and rearranged
17140         ifdefs in readable order.
17141         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17142         (start_of_text):
17143         (end_of_text):
17144         (end_of_data): Do not compile in if using PDUMP.
17145
17146         * symsinit.h: Prototyped vars_of_nt().
17147
17148         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17149         (find_child_console): Use it.
17150         (sys_kill): Use it.
17151
17152         * ntheap.h: Do not extern os_subtype.
17153
17154         * ntheap.c (cache_system_info): Do not cache unneeded:
17155         nt_major_version, nt_minor_version and os_subtype.
17156         (recreate_heap): Do not compile in when PDUMPing.
17157
17158         * nt.c (geteuid and friends): Use the new varibale
17159         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17160         (init_user_info): Removed the above mentioned hackery.
17161         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17162         stat has been fixed in the C runtime.
17163         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17164
17165         * file-coding.c (struct file_coding_dump): Do not define
17166         ucs_to_mule_table in the struct if not MULE.
17167         (struct struct lrecord_description fcd_description_1): Do not dump
17168         the above.
17169
17170         * emacs.c (main_1): Call vars_of_nt().
17171         (right before Fdump_emacs_data): Don't need lastfile if using both
17172         portabe dumper and system malloc.
17173
17174         * alloc.c (Fmemory_limit): Conditionalized out.
17175         (pdump): Use OPEN_BINARY for the portable dump file.
17176         (pdump_load): Ditto.
17177
17178 2000-02-02  Mike Alexander  <mta@arbortext.com>
17179
17180         * nt.c (convert_time): Set tm_isdst before calling mktime and
17181         avoid calling it at all if the compiler supports 64 bit integers.
17182         Also initialize utc_base_ft before using it.
17183
17184 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17185
17186         * frame.c (change_frame_size_1): Take f->internal_border_width
17187         into consideration when calculating the width of the frame.
17188
17189 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17190
17191         * window.c (frame_min_height):
17192         (frame_size_valid_p):
17193         (frame_pixsize_valid_p): Added.
17194         (check_frame_size): Generalized.
17195
17196         * window.h: Prototyped the above.
17197
17198         * lisp.h:
17199         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17200         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17201         Deleted Vwin32_* and Vbinary_process_* unused variables.
17202
17203         * device-msw.c (msprinter_init_device): Do not get printer font
17204         list; Added DEVMODE functions.
17205
17206         * frame-msw.c: Added lots of printer code.
17207
17208         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17209         general.c.
17210
17211         * console-msw.h: Added more msprinter device private slots.
17212
17213 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17214
17215         * event-msw.c (key_needs_default_processing_p): Added.
17216         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17217
17218 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17219
17220         * glyphs.c (image_instance_layout): Mark image instance as clean
17221         after layout.
17222         (glyph_dirty_p): Removed redundant function.
17223         (invalidate_glyph_geometry_maybe): Added.
17224         (update_glyph_cachel_data): Call it.
17225
17226         * glyphs.h: Prototyped it.
17227
17228         * redisplay.c (add_glyph_rune): Call it.
17229         (redisplay_window): Reset glyphs cachels when frame faces have
17230         changed, thus forcing recomputation of built-in border glyphs.
17231
17232 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17233
17234         * Makefile.in.in: Make portable dumper and purify play well together.
17235         Add imperfect, but better than nothing, support for pdump.
17236         Remove xemacs.dmp when temacs is re-generated.
17237         Don't ignore errors when dumping xemacs.
17238
17239         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17240
17241 2000-01-28  Andy Piper  <andy@xemacs.org>
17242
17243         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17244         (setup_normal_frame): ditto.
17245         (setup_frame_without_minibuffer): ditto.
17246         (setup_minibuffer_frame): ditto.
17247         (delete_frame_internal): ditto.
17248         (Fmake_frame_invisible): ditto.
17249         (Ficonify_frame): ditto.
17250
17251         * window.h: change Fset_window_buffer signature.
17252
17253         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17254         (Fset_window_buffer): allow recording of buffer if the window is
17255         the selected window.
17256         (window_loop): Use new Fset_window signature.
17257
17258 2000-01-23  Daniel Pittman  <daniel@danann.net>
17259
17260         * config.h.in: Added template for `HAVE_ATHENA_3D'
17261
17262 2000-01-29  Andy Piper  <andy@xemacs.org>
17263
17264         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17265
17266         * gutter.c (output_gutter): Don't output if the window isn't live.
17267
17268 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17269
17270         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17271         of 01/12/00: Moved SetFocus back here where it belongs.
17272
17273 2000-01-23  Andy Piper  <andy@xemacs.org>
17274
17275         * s/cygwin32.h: declare printer things.
17276
17277 2000-01-26  Andy Piper  <andy@xemacs.org>
17278
17279         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17280         Alexander.
17281
17282 2000-01-24  Andy Piper  <andy@xemacs.org>
17283
17284         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17285         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17286
17287         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17288
17289         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17290
17291         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17292
17293         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17294         (mswindows_output_display_block): Avoid local shadows.
17295
17296         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17297         (mswindows_enqueue_mouse_button_event): ditto.
17298         (mswindows_handle_gui_wm_command): remove declaration.
17299
17300         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17301         warnings.
17302
17303         * console-msw.h: Avoid shadows.
17304         (mswindows_get_toolbar_button_text):
17305         (emacs_mswindows_create_stream_pair):
17306         (emacs_mswindows_delete_stream_pair):
17307         (mswindows_handle_toolbar_wm_command): declare.
17308
17309         * device-msw.c (build_syscolor_string): Avoid shadows.
17310
17311 2000-01-23  Andy Piper  <andy@xemacs.org>
17312
17313         * glyphs-widget.c (widget_instantiate): reverse the items for
17314         layouts so that children are in the expected order.
17315
17316 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17317
17318         * ralloc.c: safe_bcopy ==> memmove
17319         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17320         * s/msdos.h: Remove BCOPY macros.
17321         * insdel.c (gap_right): Remove BCOPY conditional code.
17322         * insdel.c (gap_left): Remove BCOPY conditional code.
17323         XEmacs demands a working ANSI C compiler - hence memmove.
17324
17325         * regex.c (regex_compile): Remove accidental use of trigraphs.
17326
17327 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17328
17329         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17330         event timestamp.
17331
17332 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17333
17334         * event-msw.c (mswindows_drain_windows_queue): Added the
17335         parameter.
17336         (mswindows_need_event): Commented the call to
17337         mswindows_drain_windows_queue().
17338         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17339         only.
17340
17341         * console-msw.h: Moved a few function prototypes here from
17342         event-msw.c.
17343
17344         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17345         parameter from unsigned short to unsigned long.
17346         (Fmswindows_shell_execute): Added return value.
17347
17348 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17349
17350         * sysdep.c (init_system_name):
17351           process-unix.c (unix_canonicalized_host_name):
17352         Don't call freeaddrinfo() if getaddrinfo() fails.
17353
17354         * process-unix.c (unix_open_unix_network_stream):
17355         Moved the code to get a port # into address loop.
17356
17357 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17358
17359         * buffer.c (reinit_vars_of_buffer):
17360         The right place to initialize conversion_in_dynarr and
17361         conversion_out_dynarr.
17362
17363         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17364
17365         * process-unix.c (unix_canonicalize_host_name): Muleize.
17366         (unix_open_network_stream): Muleize.
17367
17368         * buffer.h: Fix up prototypes for ralloc.c functions.
17369
17370 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17371         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17372         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17373                 instead of gethostbyname()
17374         * process-unix.c: In unix_canonicalize_host_name() and
17375                 unix_open_network_stream(), add code to use getaddrinfo()
17376                 instead of gethostbyname().
17377
17378 2000-01-27  Daniel Pittman <daniel@danann.net>
17379
17380         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17381         libs when built with flat Athena.
17382
17383 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17384
17385         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17386         Use coding standards for function prototypes.
17387
17388 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17389
17390         * dialog-msw.c (push_lisp_string_as_unicode):
17391         * doc.c (unparesseuxify_doc_string):
17392         * dired.c (Fuser_name_completion_1):
17393         * dired.c (Fuser_name_all_completions):
17394         * dired.c (free_user_cache):
17395         * dired.c (user_name_completion):
17396         * console-x.c (get_display_arg_connection):
17397         * minibuf.c (clear_echo_area_internal):
17398         * minibuf.c (echo_area_append):
17399         * eldap.c (Fldap_open):
17400         * eldap.c (Fldap_search_internal):
17401         * frame-x.c (x_set_frame_text_value):
17402         * frame-x.c (x_set_frame_properties):
17403         * frame-x.c (x_create_widgets):
17404         * redisplay-tty.c (term_get_fkeys_1):
17405         * objects-x.c (x_parse_nearest_color):
17406         * objects-x.c (x_valid_color_name_p):
17407         * objects-x.c (x_initialize_font_instance):
17408         * objects-x.c (x_list_fonts):
17409         * objects-x.c (x_find_charset_font):
17410         * tooltalk.c (Fadd_tooltalk_message_arg):
17411         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17412         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17413         * process-unix.c (unix_create_process):
17414         * ntproc.c (sys_spawnve):
17415         * sound.c (Fplay_sound_file):
17416         * sound.c (Fplay_sound):
17417         * buffer.c (init_initial_directory):
17418         * buffer.c (init_buffer):
17419         * editfns.c (init_editfns):
17420         * editfns.c (Ftemp_directory):
17421         * editfns.c (Fuser_full_name):
17422         * editfns.c (uncache_home_directory):
17423         * editfns.c (get_home_directory):
17424         * editfns.c (Fuser_home_directory):
17425         * editfns.c (Fformat_time_string):
17426         * editfns.c (Fcurrent_time_string):
17427         * gui-x.c (button_item_to_widget_value):
17428         * database.c (Fopen_database):
17429         * event-Xt.c (x_to_emacs_keysym):
17430         * event-Xt.c (x_event_to_emacs_event):
17431         * event-Xt.c (describe_event_window):
17432         * event-msw.c (mswindows_wnd_proc):
17433         * glyphs-eimage.c (jpeg_instantiate):
17434         * glyphs-eimage.c (gif_instantiate):
17435         * glyphs-eimage.c (png_instantiate):
17436         * glyphs-eimage.c (tiff_instantiate):
17437         * glyphs-x.c (xbm_instantiate_1):
17438         * glyphs-x.c (x_xbm_instantiate):
17439         * glyphs-x.c (x_xface_instantiate):
17440         * glyphs-x.c (autodetect_instantiate):
17441         * glyphs-x.c (cursor_font_instantiate):
17442         * glyphs-x.c (x_widget_instantiate):
17443         * glyphs-x.c (x_widget_set_property):
17444         * glyphs-x.c (x_widget_property):
17445         * glyphs-x.c (BUILD_GLYPH_INST):
17446         * print.c (write_string_to_stdio_stream):
17447         * print.c (output_string):
17448         * print.c (Falternate_debugging_output):
17449         * print.c (Fexternal_debugging_output):
17450         * glyphs-msw.c (extract_xpm_color_names):
17451         * glyphs-msw.c (mswindows_xpm_instantiate):
17452         * glyphs-msw.c (bmp_instantiate):
17453         * glyphs-msw.c (resource_name_to_resource):
17454         * glyphs-msw.c (mswindows_resource_instantiate):
17455         * glyphs-msw.c (xbm_instantiate_1):
17456         * glyphs-msw.c (mswindows_xbm_instantiate):
17457         * glyphs-msw.c (mswindows_xface_instantiate):
17458         * glyphs-msw.c (mswindows_widget_instantiate):
17459         * glyphs-msw.c (add_tree_item):
17460         * glyphs-msw.c (add_tab_item):
17461         * glyphs-msw.c (mswindows_combo_box_instantiate):
17462         * glyphs-msw.c (mswindows_widget_property):
17463         * glyphs-msw.c (mswindows_combo_box_property):
17464         * glyphs-msw.c (mswindows_widget_set_property):
17465         * console.c (stuff_buffered_input):
17466         * objects-msw.c (mswindows_initialize_color_instance):
17467         * objects-msw.c (mswindows_valid_color_name_p):
17468         * objects-msw.c (mswindows_list_fonts):
17469         * objects-msw.c (mswindows_font_instance_truename):
17470         * bytecode.c (optimize_compiled_function):
17471         * select-x.c (symbol_to_x_atom):
17472         * select-x.c (x_atom_to_symbol):
17473         * select-x.c (hack_motif_clipboard_selection):
17474         * select-x.c (selection_data_to_lisp_data):
17475         * select-x.c (lisp_data_to_selection_data):
17476         * select-x.c (Fx_get_cutbuffer_internal):
17477         * select-x.c (Fx_store_cutbuffer_internal):
17478         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17479         * buffer.h (TO_INTERNAL_FORMAT): New function.
17480         * emacs.c (make_arg_list_1):
17481         * emacs.c (make_argc_argv):
17482         * emacs.c (main_1):
17483         * emacs.c (Fdump_emacs):
17484         * emacs.c (split_string_by_emchar_1):
17485         * file-coding.h:
17486         * lisp.h:
17487         * lstream.h:
17488         * symsinit.h:
17489         * device-x.c (x_init_device):
17490         * device-x.c (Fx_valid_keysym_name_p):
17491         * device-x.c (Fx_get_font_path):
17492         * device-x.c (Fx_set_font_path):
17493         * glyphs.c (bitmap_to_lisp_data):
17494         * glyphs.c (pixmap_to_lisp_data):
17495         * alloc.c (make_ext_string): Use coding system arguments.  Update
17496         all callers.
17497         * alloc.c (build_string):
17498         * callproc.c (child_setup):
17499         * callproc.c (init_callproc):
17500         * fileio.c (lisp_strerror):
17501         * fileio.c (directory_file_name):
17502         * fileio.c (Fexpand_file_name):
17503         * fileio.c (Ffile_truename):
17504         * fileio.c (Fsysnetunam):
17505         * fileio.c (Fdo_auto_save):
17506         * sysdep.c (sys_readdir):
17507         * tests.c: New file.  Allow adding C tests.
17508         Replace GET_* macros with a more comprehensible and flexible
17509         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17510         Modify all calls.
17511         Any coding system can be used to do format conversion.
17512         Eliminate enum external_data_format.
17513         Eliminate convert_to_external_format.
17514         Eliminate convert_to_internal_format.
17515         Make sure file-name, keyboard, terminal, and ctext are always
17516         defined as coding systems or aliases.  Make
17517         file-name-coding-system, terminal-coding-system, and
17518         keyboard-coding-system magical variables that are equivalent to
17519         defining the corresponding coding system aliases.
17520
17521         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17522         * file-coding.c (Fcoding_system_alias_p): New function.
17523         * file-coding.c (Fcoding_system_aliasee): New function.
17524         * file-coding.c (append_suffix_to_symbol): New function.
17525         * file-coding.c (dangling_coding_system_alias_p): New function.
17526         * file-coding.c (Ffind_coding_system):
17527         * file-coding.c (Fcopy_coding_system):
17528         * file-coding.c (encode_coding_no_conversion):
17529         * file-coding.c (syms_of_file_coding):
17530         * file-coding.c (vars_of_file_coding):
17531         Rewrite coding system alias code.
17532         Allow nested aliases, like symbolic links.
17533         Allow redefinition of coding system aliases.
17534         Prevent existence of dangling coding system aliases.
17535
17536         * dired.c (Fuser_name_completion_1):
17537         * dired.c (Fuser_name_all_completions):
17538         A crash would happen if user did QUIT in the middle of building
17539         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17540
17541         * lisp.h:
17542         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17543
17544         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17545         an unsigned char *.  Update all callers.
17546
17547 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17548
17549         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17550
17551 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17552
17553         * elhash.c (hentry_description): Use more portable definition.
17554         (resize_hash_table): Initialize new hentries using
17555         xnew_array_and_zero, thereby simplifying the code.
17556
17557         * mule-charset.c (make_charset): Make sure entire object is
17558         initialized, to avoid Purify warnings.
17559
17560         * alloc.c (resize_string): Fix unlikely crash with big strings.
17561
17562 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17563
17564         * realpath.c (xrealpath):
17565         Don't call getwd().
17566
17567 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17568
17569         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17570
17571 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17572
17573         * unexelfsgi.c (unexec): Change the way we decide which segment
17574         should be extended.
17575
17576         Assumption that .bss section should be outside the PT_LOADable
17577         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17578         it's present) is inside the 'data' segment. This would fail the
17579         test which was used to find a segment to grow and cover new
17580         heap. Instead of this assumption, I created another one - on IRIX
17581         the segment to grow should start below .bss and it's address
17582         should extent above the end of .bss. Once this segment is
17583         identified, it's grown to accommodate the new heap and new
17584         zero-length .bss section is added at the end of .data2.
17585
17586 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17587
17588         * eval.c (Feval): Wrong number of arguments should use original
17589         function, not the indirect_function version of it.
17590
17591 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17592
17593         * glyphs-x.c (x_button_instantiate): Don't add image if
17594         it is not a pixmap.
17595         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17596         is relative.
17597
17598 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17599
17600         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17601         declaration.
17602         (DEFVAR_INT_MAGIC): Ditto.
17603         (DEFVAR_BOOL_MAGIC): Ditto.
17604         * glyphs.h: Reindent backslash.
17605
17606 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17607
17608         * glyphs-widget.c (layout_query_geometry):
17609         (layout_layout): Use correct types for gheight, gwidth.
17610
17611 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17612
17613         * EmacsManager.c (QueryGeometry): Purified.
17614
17615 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17616
17617         * alloc.c (make_float): Make sure entire object is initialized, to
17618         avoid Purify warnings.
17619         (pdump_register_sub): Remove useless assignment.
17620         (pdump): Use xmalloc, not malloc.
17621         (pdump_load): Use xmalloc, not malloc.
17622
17623 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17624
17625         * callproc.c:
17626         * dired-msw.c:
17627         * fileio.c:
17628         * process-nt.c:
17629         * redisplay-msw.c:
17630         * sysdep.c: Removed redundant #include <windows.h>
17631
17632 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17633
17634         * frame.c (delete_frame_internal): Do not delete device when its
17635         implementation so declares.
17636         (delete_frame_internal): Set device selected frame to nil when
17637         last frame goes away.
17638
17639         * device-msw.c (msprinter_device_system_metrics): Implemented.
17640         (mswindows_device_system_metrics): Added 'device-dpi property.
17641
17642         * device.c: (Fdevice_printer_p): Added.
17643         Added 'offset-workspace device metric.
17644
17645         * console.h (device_metrics): Declared DM_offset_workspace.
17646
17647 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17648
17649         * fileio.c (Ffile_truename): Remove pointless and confusing
17650         initialization of elen.
17651
17652         * glyphs-widget.c: Compiler warning fixes.
17653
17654 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17655
17656         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17657         instead of a Lisp_Object as argument to make it consistent with
17658         the other LIVE_P macros.
17659         (CHECK_LIVE_PROCESS): New macro.
17660
17661         * process.c: Declare Qprocess_live_p.
17662         (Fprocess_live_p): New function.
17663         (create_process): Use PROCESS_LIVE_P.
17664         (read_process_output): Ditto.
17665         (set_process_filter): Ditto.
17666         (Fdelete_process): Ditto.
17667         (kill_buffer_processes): Ditto
17668         (process_send_signal): Use CHECK_LIVE_PROCESS.
17669         (Fprocess_input_coding_system): Check whether process is still
17670         alive (fix PR#1061).
17671         (Fprocess_output_coding_system): Ditto.
17672         (Fprocess_coding_system): Ditto.
17673         (Fset_process_input_coding_system): Ditto.
17674         (Fset_process_output_coding_system): Ditto.
17675
17676 2000-01-23  Andy Piper  <andy@xemacs.org>
17677
17678         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17679         layout and widget.
17680
17681         * glyphs.c (mark_image_instance): take into account changed
17682         image_instance format.
17683         (image_instance_equal): ditto.
17684         (image_instance_hash): ditto.
17685
17686         * glyphs-widget.c (widget_instantiate): Incorporate layout
17687         instantiation here. Delay layout of the layout until later.
17688         (layout_instantiate): deleted.
17689         (layout_query_geometry): new function. get the geometry of a
17690         layout.
17691         (layout_layout): layout a layout dynamically.
17692         (image_instantiator_widget): New function - splitting up
17693         image_instantiator_format_create_glyphs_widget for netwinder
17694         compilation.
17695         (image_instantiator_buttons):
17696         (image_instantiator_edit_fields):
17697         (image_instantiator_combo_box):
17698         (image_instantiator_scrollbar):
17699         (image_instantiator_progress_guage):
17700         (image_instantiator_tree_view):
17701         (image_instantiator_tab_control):
17702         (image_instantiator_labels):
17703         (image_instantiator_layout): ditto.
17704         (image_instantiator_format_create_glyphs_widget): Call preceding
17705         functions.
17706
17707 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17708
17709         * process.c (Fset_process_coding_system):
17710         * device-x.c (Fx_keysym_hash_table):
17711         Docstring fixes.
17712
17713         * lstream.c (Lstream_write): Return documented value, not 0.
17714
17715         * fileio.c (directory_file_name):
17716         (Fsubstitute_in_file_name):
17717         (Fsubstitute_insert_file_contents_internal):
17718         (Fwrite_region_internal):
17719         * emacs.c:
17720         * sysdep.c:
17721         * getloadavg.c:
17722         * systty.h:
17723         Remove vestigial APOLLO-conditional code.
17724
17725 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17726
17727         * getpagesize.h: Add guard macros.
17728         * libsst.h: Add guard macros.
17729         * libst.h: Add guard macros.
17730         * line-number.h: Add guard macros.
17731         * ndir.h: Add guard macros.
17732         * sysfloat.h: Add guard macros.
17733         * sysfile.h: Add guard macros.
17734         * sysproc.h: Add guard macros.
17735         * syswait.h: Add guard macros.
17736         * xintrinsic.h: Add guard macros.
17737         * xintrinsicp.h: Add guard macros.
17738         * xmmanager.h: Add guard macros.
17739         * xmmanagerp.h: Add guard macros.
17740         * xmprimitive.h: Add guard macros.
17741         * xmu.h: Add guard macros.
17742         * gpmevent.h: Add copyright statement. Add guard macros.
17743         * miscplay.h: Add guard macros.
17744         * *.h: Use consistent C-standards-approved guard macro names.
17745
17746         * opaque.c (make_opaque): Switch parameter order.
17747         * opaque.h (make_opaque): Switch parameter order.
17748         Update all callers.
17749         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17750
17751         * config.h.in (type_checking_assert): Added.
17752         (bufpos_checking_assert): Added.
17753
17754 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17755
17756         * alloc.c: Harmless pdump changes.
17757         - Use countof().
17758         - spell alignment correctly.
17759         * sysdep.c: Use countof()
17760
17761 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17762
17763         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17764         initially_selected_for_input() console method, default to 0.
17765         (semi_canonicalize_console_connection): Try to delegate to
17766         canonicalize_console_connection if no such console method.
17767         (canonicalize_console_connection): Vice versa.
17768         (print_console): Do not print nil connection.
17769
17770         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17771         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17772         (XDEVIMPF_FRAMELESS_OK): Added.
17773         (CONSOLE_INHERITS_METHOD): Added.
17774
17775         * console-msw.c (mswindows_canonicalize_console_connection):
17776         Added.
17777         (mswindows_canonicalize_device_connection): Added.
17778
17779         * console-msw.h (struct msprinter_device): Added this struct and
17780         accessor macros.
17781         (mswindows_device): Made fontlist a lisp object.
17782
17783         * device.c (semi_canonicalize_device_connection):  Try to delegate
17784         to canonicalize_device_connection if no such console method.
17785         (canonicalize_device_connection): Vice versa.
17786         (print_device): Do not print nil connection.
17787
17788         * device-msw.c (mswindows_init_device): Call InitCommonControls
17789         when have widgets.
17790         (mswindows_delete_device): Removed fontlist deallocation.
17791         (mswindows_mark_device): Added.
17792
17793         * events.c (event_equal): Added abort() at unreached code.
17794         (event_hash): Ditto.
17795
17796         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17797         fallback tags of Windows devices.
17798
17799         * general.c (syms_of_general): Initialized Qmsprinter.
17800
17801         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17802         of fallback tags of Windows devices.
17803
17804         * lisp.h: Declared Qmsprinter.
17805
17806         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17807         of strings.
17808         (mswindows_list_fonts): Ditto.
17809         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17810         that it can be used by both mswindows and msprinter devices.
17811         (initialize_font_instance): Added.
17812         (mswindows_initialize_font_instance): Use it.
17813         (msprinter_initialize_font_instance): Added.
17814
17815         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17816         and implementation flags check.
17817         (redisplay_without_hooks): Changed the call to the above.
17818         (Fredraw_device): Ditto.
17819         (Fredisplay_device): Ditto.
17820
17821         * redisplay-msw.c (get_frame_dc): Implemented.
17822         (get_frame_compdc): Implemented.
17823         (many functions): Use the two functions above to get device
17824         contexts, ether for a window or a printer.
17825
17826 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17827
17828         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17829         initialization here.
17830         (init_symbols_once_early): Call it.
17831         * emacs.c (main_1): Call it.
17832         * symsinit.h: Declare it.
17833
17834 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17835
17836         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17837         Lisp_Object.
17838         (pdump_backtrace): Ditto.
17839         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17840         (pdump_get_entry): Abort if trying to register a null pointer.
17841         (pdump_dump_data): Cleanup types when relocating.
17842         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17843         (pdump_dump_rtables): Remove bad casts.
17844         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17845         Lisp_Object instead of a EMACS_INT for the hashtable
17846         reorganization.
17847
17848 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17849
17850         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17851
17852         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17853
17854         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17855
17856         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17857
17858 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17859
17860         * faces.h (FACE_STRIKETHRU_P): Added.
17861
17862         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17863         of font variants.
17864
17865         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17866         (mswindows_set_dc_font): New function, aware of font variants,
17867         separated from mswindows_update_dc.
17868
17869         * objects-msw.h (struct mswindows_font_instance_data): Added
17870         definition.
17871
17872         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17873         cached fonts and the data structure.
17874         (mswindows_initialize_font_instance): Added creation of font data
17875         structure.
17876         (mswindows_print_font_instance): Print at least something.
17877         (mswindows_create_font_variant): Implemented.
17878         (mswindows_get_hfont): Implemented.
17879
17880 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17881
17882         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17883         prototyping problem with msvc.
17884
17885         * emacs.c (main_1): added syms_of_gui_mswindows() call
17886
17887         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17888         syms_of_gui_mswindows() function
17889
17890         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17891
17892 2000-01-18  Martin Buchholz <martin@xemacs.org>
17893
17894         * XEmacs 21.2.27 is released.
17895
17896 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17897
17898         * glyphs-eimage.c (struct tiff_error_struct):
17899         (tiff_error_func):
17900         (tiff_warning_func):
17901         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17902
17903         * unexmips.c:
17904         * unexhp9k3.c:
17905         * unexfreebsd.c:
17906         * unexec.c: Remove vestigial Lucid C code.
17907         * unexalpha.c:
17908         * unexaix.c:
17909         * termcap.c:
17910         * libsst.c: Ansify.
17911         Remove declarations of errno and strerror().
17912
17913         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17914
17915         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17916
17917 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17918
17919         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17920         Optimize.
17921
17922 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17923
17924         * md5.c:
17925         * file-coding.c:
17926         * file-coding.h:
17927         Change enum eol_type to eol_type_t.
17928
17929 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17930
17931         * gui.c (get_gui_callback): Check cons before accessing car.
17932
17933 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17934
17935         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17936         (XSETSPECIFIER_TYPE): Ditto.
17937
17938 2000-01-17  Didier Verna  <didier@xemacs.org>
17939
17940         * redisplay.c (generate_fstring_runes): compute string size in
17941         characters, not bytes.
17942
17943 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17944
17945         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17946
17947 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17948
17949         * print.c (print_error_message): Call print_prepare().
17950
17951 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17952
17953         * .dbxrc: Renamed from dbxrc.
17954
17955         * events.c (event_to_character):
17956         Use `assert (foo)' instead of `if (!foo) abort()'
17957
17958         * .gdbinit (xtype): Add documentation.
17959         * .gdbinit (check-temacs): New function.
17960         * .gdbinit (check-xemacs): New function.
17961         * dbxrc (check-xemacs): New function.
17962         * dbxrc (check-xemacs): New function.
17963
17964 2000-01-14  Andy Piper  <andy@xemacs.org>
17965
17966         * glyphs-widget.c (widget_query_geometry): Make sure that we
17967         calculate default dimensions correctly.
17968
17969 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17970
17971         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17972
17973         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17974         pdump_wire'd variable.
17975
17976         * emacs.c: (main_1): Conditionalized calls to
17977         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17978
17979 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17980
17981         * window.c (Fset_window_configuration):
17982         * sysdep.c (_start):
17983         * input-method-motif.c (res):
17984         * event-Xt.c (Xt_process_to_emacs_event):
17985         Simple compiler warning fixes.
17986
17987         * bytecode.c (funcall_compiled_function): Use the original
17988         function symbol on the backtrace list in preference to the
17989         compiled_function object in error messages.
17990
17991 2000-01-13  Andy Piper  <andy@xemacs.org>
17992
17993         * glyphs-x.c (update_widget_face): Make sure we update the widget
17994         background as well as foreground.
17995
17996 2000-01-13  Andy Piper  <andy@xemacs.org>
17997
17998         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17999         fields to subwindow.
18000         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18001         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18002         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18003         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18004
18005         * glyphs-widget.c (check_valid_tab_orientation): new function.
18006         (initialize_widget_image_instance): zero orientation and
18007         justification.
18008         (widget_instantiate): pick up orientation.
18009         (tab_control_query_geometry): return appropriate values for
18010         vertical tabs.
18011
18012         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18013         appropriate creation flags for left, right and bottom tabs.
18014
18015         * s/cygwin32.h: add tab definitions.
18016
18017 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18018
18019         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18020         frame upon hiding a subwindow.
18021         (mswindows_button_instantiate): Changed the push button style to
18022         BS_PUSHBUTTON.
18023         (mswindows_button_instantiate): Removed button BS_NOTIFY
18024         style.
18025         (mswindows_button_instantiate): Removed redundant check for
18026         a disabled gui item.
18027         (mswindows_button_instantiate): Made use of WS_TABSTOP
18028         consistent: "operable" controls (edit, button, tree, scroll) have
18029         this style, "display-only" ones (static, progress gauge) do
18030         not. This style is currently ignored by XEmacs though. Also,
18031         removed the WS_EX_CONTROLPARENT style - it is not for children,
18032         it is for their parents!
18033         (mswindows_edit_field_instantiate): Ditto.
18034         (mswindows_progress_gauge_instantiate): Ditto.
18035         (mswindows_tree_view_instantiate): Ditto.
18036         (mswindows_tab_control_instantiate): Ditto.
18037         (mswindows_scrollbar_instantiate): Ditto.
18038         (mswindows_combo_box_instantiate): Ditto.
18039         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18040         style to the "clip" window.
18041         (mswindows_button_instantiate): Removed compilation warning by
18042         equally typing terms of the ?: operator.
18043
18044 2000-01-12  Didier Verna  <didier@xemacs.org>
18045
18046         * redisplay.c (generate_fstring_runes): new parameter holding the
18047         last modeline-format extent.
18048         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18049         extent, fill the glyph block with it.
18050         (generate_fstring_runes): handle these parameters.
18051         (generate_formatted_string_db): ditto.
18052
18053         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18054         glyphs'extents in the modeline.
18055
18056 1999-01-11  Mike Woolley  <mike@bulsara.com>
18057
18058         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18059         256Mb, as a workaround for the non-starting problem many people
18060         have experienced.
18061
18062 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18063
18064         * console-tty.c (Fset_console_tty_output_coding_system):
18065         Force redrawing tty frame.
18066
18067 2000-01-10  Didier Verna  <didier@xemacs.org>
18068
18069         * redisplay.c (generate_fstring_runes): fix size computation bug.
18070
18071 2000-01-09  William M. Perry <wmperry@aventail.com>
18072
18073         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18074
18075 2000-01-09  Andy Piper  <andy@xemacs.org>
18076
18077         * glyphs-msw.c: index -> i to avoid shadows.
18078         (xbm_create_bitmap_from_data): make static.
18079         (check_valid_string_or_int): deleted.
18080         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18081
18082         * glyphs-x.c (x_update_subwindow): remove unused args.
18083
18084         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18085         back pointer - this is done in allocate_image_instance.
18086         (query_string_font): return Qnil to make the compiler happy.
18087         (unmap_subwindow): set to ~0 to make the compiler happy.
18088         (glyph_query_geometry): comment out until used.
18089         (glyph_layout): ditto.
18090
18091 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18092
18093         * insdel.c (signal_after_change): Remove extraneous unbind_to().